1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{502:(e,t,n)=>{let r;n.d(t,{_s:()=>I});var i=n(84538),o=n(56565);let a=o.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),s=()=>{let e=o.useContext(a);if(!e)throw Error("useDrawerContext must be used within a Drawer.Root");return e};function l(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function u(){return d(/^iPhone/)||d(/^iPad/)||d(/^Mac/)&&navigator.maxTouchPoints>1}function d(e){return"undefined"!=typeof window&&null!=window.navigator?e.test(window.navigator.platform):void 0}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}
1[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");let h="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function c(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let f="undefined"!=typeof document&&window.visualViewport;function p(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function m(e){for(p(e)&&(e=e.parentElement);e&&!p(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}let g=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),v=0;function y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function w(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=m(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function x(e){return e instanceof HTMLInputElement&&!g.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function b(...e){return o.useCallback(function(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}(...e),e)}let T=new WeakMap;function P(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)}),n||T.set(e,r)}let A=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function S(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[A(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/))?parseFloat(i[1].split(", ")[A(t)?5:4]):null}function C(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}let k=[.32,.72,0,1],M="vaul-dragging";function R(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>null==t.current?void 0:t.current.call(t,...e),[])}function E({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=function({defaultProp:e,onChange:t}){let n=o.useState(e),[r]=n,i=o.useRef(r),a=R(t);return o.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:r,l=R(n);return[s,o.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)},[a,e,i,l])]}let D=()=>()=>{},j=null;function L({open:e,onOpenChange:t,children:n,onDrag:s,onRelease:d,snapPoints:p,shouldScaleBackgroun
1d:g=!1,setBackgroundColorOnScale:b=!0,closeThreshold:C=.25,scrollLockTimeout:R=100,dismissible:D=!0,handleOnly:L=!1,fadeFromIndex:V=p&&p.length-1,activeSnapPoint:O,setActiveSnapPoint:F,fixed:I,modal:B=!0,onClose:N,nested:$,noBodyStyles:U=!1,direction:W="bottom",defaultOpen:z=!1,disablePreventScroll:_=!0,snapToSequentialPoint:H=!1,preventScrollRestoration:K=!1,repositionInputs:G=!0,onAnimationEnd:Y,container:X,autoFocus:q=!1}){var Z,Q;let[J=!1,ee]=E({defaultProp:z,prop:e,onChange:e=>{null==t||t(e),e||$||eD(),setTimeout(()=>{null==Y||Y(e)},500),e&&!B&&"undefined"!=typeof window&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),e||(document.body.style.pointerEvents="auto")}}),[et,en]=o.useState(!1),[er,ei]=o.useState(!1),[eo,ea]=o.useState(!1),es=o.useRef(null),el=o.useRef(null),eu=o.useRef(null),ed=o.useRef(null),eh=o.useRef(null),ec=o.useRef(!1),ef=o.useRef(null),ep=o.useRef(0),em=o.useRef(!1),eg=o.useRef(!z),ev=o.useRef(0),ey=o.useRef(null),ew=o.useRef((null==(Z=ey.current)?void 0:Z.getBoundingClientRect().height)||0),ex=o.useRef((null==(Q=ey.current)?void 0:Q.getBoundingClientRect().width)||0),eb=o.useRef(0),eT=o.useCallback(e=>{p&&e===ek.length-1&&(el.current=new Date)},[]),{activeSnapPoint:eP,activeSnapPointIndex:eA,setActiveSnapPoint:eS,onRelease:eC,snapPointsOffset:ek,onDrag:eM,shouldFade:eR,getPercentageDragged:eE}=function({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:l="bottom",container:u,snapToSequentialPoint:d}){let[h,c]=E({prop:e,defaultProp:null==n?void 0:n[0],onChange:t}
1),[f,p]=o.useState("undefined"!=typeof window?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);o.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let m=o.useMemo(()=>h===(null==n?void 0:n[n.length-1])||null,[n,h]),g=o.useMemo(()=>{var e;return null!=(e=null==n?void 0:n.findIndex(e=>e===h))?e:null},[n,h]),v=n&&n.length>0&&(a||0===a)&&!Number.isNaN(a)&&n[a]===h||!n,y=o.useMemo(()=>{var e;let t=u?{width:u.getBoundingClientRect().width,height:u.getBoundingClientRect().height}:"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return null!=(e=null==n?void 0:n.map(e=>{let n="string"==typeof e,r=0;if(n&&(r=parseInt(e,10)),A(l)){let i=n?r:f?e*t.height:0;return f?"bottom"===l?t.height-i:-t.height+i:i}let i=n?r:f?e*t.width:0;return f?"right"===l?t.width-i:-t.width+i:i}))?e:[]},[n,f,u]),w=o.useMemo(()=>null!==g?null==y?void 0:y[g]:null,[y,g]),x=o.useCallback(e=>{var t;let o=null!=(t=null==y?void 0:y.findIndex(t=>t===e))?t:null;s(o),P(r.current,{transition:`transform 0.5s cubic-bezier(${k.join(",")})`,transform:A(l)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),y&&o!==y.length-1&&void 0!==a&&o!==a&&o<a?P(i.current,{transition:`opacity 0.5s cubic-bezier(${k.join(",")})`,opacity:"0"}):P(i.current,{transition:`opacity 0.5s cubic-bezier(${k.join(",")})`,opacity:"1"}),c(null==n?void 0:n[Math.max(o,0)])},[r.current,n,y,a,i,c]);return o.useEffect(()=>{if(h||e){var t;let r=null!=(t=null==n?void 0:n.findIndex(t=>t===e||t===h))?t:-1;y&&-1!==r&&"number"==typeof y[r]&&x(y[r])}},[h,e,n,y,x]),{isLastSnapPoint:m,activeSnapPoint:h,shouldFade:v,getPercentageDragged:function(e,t){if(!n||"number"!=typeof g||!y||void 0===a)return null;let r=g===a-1;if(g>=a&&t)return 0;if(r&&!t)return 1;if(!v&&!r)return null;let i=r?g+1:g-1,o=e/Math.abs(r?y[i]-y[i-1]:y[i+1]-y[i]);return r?1-o:o},setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:function({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(void 0===a)return;let s="bottom"===l||"right"===l?(null!=w?w:0)-e:(null!=w?w:0)+e,u=g===a-1,h=0===g,c=e>0;if(u&&P(i.current,{transition:`opacity 0.5s cubic-bezier(${k.join(",")})`}),!d&&r>2&&!c)return void(o?t():x(y[0]));if(!d&&r>2&&c&&y&&n)return void x(y[n.length-1]);let f=null==y?void 0:y.reduce((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-s)<Math.abs(e-s)?t:e),p=A(l)?window.innerHeight:window.innerWidth;if(r>.4&&Math.abs(e)<.4*p){let e=c?1:-1;return e>0&&m&&n?void x(y[n.length-1]):void(h&&e<0&&o&&t(),null===g||x(y[g+e]))}x(f)},onDrag:function({draggedDistance:e}){if(null===w)return;let t="bottom"===l||"right"===l?w-e:w+e;("bottom"===l||"right"===l)&&t<y[y.length-1]||("top"===l||"left"===l)&&t>y[y.length-1]||P(r.current,{transform:A(l)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})},snapPointsOffset:y}}({snapPoints:p,activeSnapPointProp:O,setActiveSnapPointProp:F,drawerRef:ey,fadeFromIndex:V,overlayRef:es,onSnapPointChange:eT,direction:W,container:X,snapToSequentialPoint:H});!function(e={}){let{isDisabled:t}=e;h(()=>{if(!t){var e,n,i;let t,o,a,s,l,d,h;return 1==++v&&u()&&(a=0,s=window.pageXOffset,l=window.pageYOffset,d=c((e=document.documentElement,n="paddingRight",i=`${window.innerWidth-document.documentElement.clientWidth}px`,t=e.style[n],e.style[n]=i,()=>{e.style[n]=t})),window.scrollTo(0,0),h=c(y(document,"touchstart",e=>{((o=m(e.target))!==document.documentElement||o!==document.body)&&(a=e.changedTouches[0].pageY)},{passive:!1,capture:!0}),y(document,"touchmove",e=>{if(!o||o===document.documentElement||o===document.body)return void e.preventDefault();let t=e.changedTouches[0].pageY,n=o.scrollTop,r=o.scrollHeight-o.clientHeight;0!==r&&((n<=0&&t>a||n>=r&&t<a)&&e.preventDefault(),a=t)},{passive:!1,capture:!0}),y(document,"touchend",e=>{let t=e.target;x(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame(()=>{t.style.transform=""}))},{passive:!1,capture:!0}),y(document,"focus",e=>{let t=e.target;x(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",f&&(f.height<window.innerHeight?requestAnimationFrame(()=>{w(t)}):f.addEventListener("resize",()=>w(t),{once:!0}))}))},!0),y(window,"scroll",()=>{window.scrollTo(0,0)})),r=()=>{d(),h(),window.scrollTo(s,l)}),()=>{0==--v&&(null==r||r())}}},[t])}({isDisabled:!J||er||!B||eo||!et||!G||!_});let{restorePositionSetting:eD}=function({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[s,u]=o.useState(()=>"undefined"!=typeof window?window.location.href:""),d=o.useRef(0),h=o.useCallback(()=>
1{if(l()&&null===j&&e&&!a){j={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-d.current}px`,left:`${-e}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&d.current>=t&&(document.body.style.top=`${-(d.current+e)}px`)}),300)}},[e]),c=o.useCallback(()=>{if(l()&&null!==j&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,j),window.requestAnimationFrame(()=>{i&&s!==window.location.href?u(window.location.href):window.scrollTo(t,e)}),j=null}},[s]);return o.useEffect(()=>{function e(){d.current=window.scrollY}return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),o.useEffect(()=>{if(t)return()=>{"undefined"==typeof document||document.querySelector("[data-vaul-drawer]")||c()}},[t,c]),o.useEffect(()=>{!n&&r&&(e?(window.matchMedia("(display-mode: standalone)").matches||h(),t||window.setTimeout(()=>{c()},500)):c())},[e,r,s,t,n,h,c]),{restorePositionSetting:c}}({isOpen:J,modal:B,nested:null!=$&&$,hasBeenOpened:et,preventScrollRestoration:K,noBodyStyles:U});function ej(){return(window.innerWidth-26)/window.innerWidth}function eL(e,t){var n;let r=e,i=null==(n=window.getSelection())?void 0:n.toString(),o=ey.current?S(ey.current,W):null,a=new Date;if("SELECT"===r.tagName||r.hasAttribute("data-vaul-no-drag")||r.closest("[data-vaul-no-drag]"))return!1;if("right"===W||"left"===W)return!0;if(el.current&&a.getTime()-el.current.getTime()<500)return!1;if(null!==o&&("bottom"===W?o>0:o<0))return!0;if(i&&i.length>0)return!1;if(eh.current&&a.getTime()-eh.current.getTime()<R&&0===o||t)return eh.current=a,!1;for(;r;){if(r.scrollHeight>r.clientHeight){if(0!==r.scrollTop)return eh.current=new Date,!1;if("dialog"===r.getAttribute("role"))break}r=r.parentNode}return!0}function eV(e){er&&ey.current&&(ey.current.classList.remove(M),ec.current=!1,ei(!1),ed.current=new Date),null==N||N(),e||ee(!1),setTimeout(()=>{p&&eS(p[0])},500)}function eO(){if(!ey.current)return;let e=document.querySelector("[data-vaul-drawer-wrapper]"),t=S(ey.current,W);P(ey.current,{transform:"translate3d(0, 0, 0)",transition:`transform 0.5s cubic-bezier(${k.join(",")})`}),P(es.current,{transition:`opacity 0.5s cubic-bezier(${k.join(",")})`,opacity:"1"}),g&&t&&t>0&&J&&P(e,{borderRadius:"8px",overflow:"hidden",...A(W)?{transform:`scale(${ej()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${ej()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${k.join(",")})`},!0)}return o.useEffect(()=>{window.requestAnimationFrame(()=>{eg.current=!0})},[]),o.useEffect(()=>{var e;function t(){if(ey.current&&G&&(x(document.activeElement)||em.current)){var e;let t=(null==(e=window.visualViewport)?void 0:e.height)||0,n=window.innerHeight,r=n-t,i=ey.current.getBoundingClientRect().height||0;eb.current||(eb.current=i);let o=ey.current.getBoundingClientRect().top;if(Math.abs(ev.current-r)>60&&(em.current=!em.current),p&&p.length>0&&ek&&eA&&(r+=ek[eA]||0),ev.current=r,i>t||em.current){let e=ey.current.getBoundingClientRect().height,a=e;e>t&&(a=t-(i>.8*n?o:26)),I?ey.current.style.height=`${e-Math.max(r,0)}px`:ey.current.style.height=`${Math.max(a,t-o)}px`}else{let e;e=navigator.userAgent,"undefined"!=typeof window&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))||(ey.current.style.height=`${eb.current}px`)}p&&p.length>0&&!em.current?ey.current.style.bottom="0px":ey.current.style.bottom=`${Math.max(r,0)}px`}}return null==(e=window.visualViewport)||e.addEventListener("resize",t),()=>{var e;return null==(e=window.visualViewport)?void 0:e.removeEventListener("resize",t)}},[eA,p,ek]),o.useEffect(()=>(J&&(P(document.documentElement,{scrollBehavior:"auto"}
1),el.current=new Date),()=>{!function(e,t){if(!e||!(e instanceof HTMLElement))return;let n=T.get(e);n&&(e.style[t]=n[t])}(document.documentElement,"scrollBehavior")}),[J]),o.useEffect(()=>{B||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[B]),o.createElement(i.bL,{defaultOpen:z,onOpenChange:e=>{(D||e)&&(e?en(!0):eV(!0),ee(e))},open:J},o.createElement(a.Provider,{value:{activeSnapPoint:eP,snapPoints:p,setActiveSnapPoint:eS,drawerRef:ey,overlayRef:es,onOpenChange:t,onPress:function(e){var t,n;!D&&!p||(!ey.current||ey.current.contains(e.target))&&(ew.current=(null==(t=ey.current)?void 0:t.getBoundingClientRect().height)||0,ex.current=(null==(n=ey.current)?void 0:n.getBoundingClientRect().width)||0,ei(!0),eu.current=new Date,u()&&window.addEventListener("touchend",()=>ec.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),ep.current=A(W)?e.pageY:e.pageX)},onRelease:function(e){var t,n;if(!er||!ey.current)return;ey.current.classList.remove(M),ec.current=!1,ei(!1),ed.current=new Date;let r=S(ey.current,W);
1if(!e||!eL(e.target,!1)||!r||Number.isNaN(r)||null===eu.current)return;let i=ed.current.getTime()-eu.current.getTime(),o=ep.current-(A(W)?e.pageY:e.pageX),a=Math.abs(o)/i;if(a>.05&&(ea(!0),setTimeout(()=>{ea(!1)},200)),p){eC({draggedDistance:o*("bottom"===W||"right"===W?1:-1),closeDrawer:eV,velocity:a,dismissible:D}),null==d||d(e,!0);return}if("bottom"===W||"right"===W?o>0:o<0){eO(),null==d||d(e,!0);return}if(a>.4){eV(),null==d||d(e,!1);return}let s=Math.min(null!=(t=ey.current.getBoundingClientRect().height)?t:0,window.innerHeight),l=Math.min(null!=(n=ey.current.getBoundingClientRect().width)?n:0,window.innerWidth);if(Math.abs(r)>=("left"===W||"right"===W?l:s)*C){eV(),null==d||d(e,!1);return}null==d||d(e,!0),eO()},onDrag:function(e){if(ey.current&&er){let t="bottom"===W||"right"===W?1:-1,n=(ep.current-(A(W)?e.pageY:e.pageX))*t,r=n>0,i=p&&!D&&!r;if(i&&0===eA)return;let o=Math.abs(n),a=document.querySelector("[data-vaul-drawer-wrapper]"),l=o/("bottom"===W||"top"===W?ew.current:ex.current),u=eE(o,r);if(null!==u&&(l=u),i&&l>=1||!ec.current&&!eL(e.target,r))return;if(ey.current.classList.add(M),ec.current=!0,P(ey.current,{transition:"none"}),P(es.current,{transition:"none"}),p&&eM({draggedDistance:n}),r&&!p){let e=Math.min(-(8*(Math.log(n+1)-2)*1),0)*t;P(ey.current,{transform:A(W)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`});return}let d=1-l;if((eR||V&&eA===V-1)&&(null==s||s(e,l),P(es.current,{opacity:`${d}`,transition:"none"},!0)),a&&es.current&&g){let e=Math.min(ej()+l*(1-ej()),1),t=8-8*l,n=Math.max(0,14-14*l);P(a,{borderRadius:`${t}px`,transform:A(W)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:"none"},!0)}if(!p){let e=o*t;P(ey.current,{transform:A(W)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}},dismissible:D,shouldAnimate:eg,handleOnly:L,isOpen:J,isDragging:er,shouldFade:eR,closeDrawer:eV,onNestedDrag:function(e,t){if(t<0)return;let n=(window.innerWidth-16)/window.innerWidth,r=n+t*(1-n),i=-16+16*t;P(ey.current,{transform:A(W)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;ef.current&&window.clearTimeout(ef.current),P(ey.current,{transition:`transform 0.5s cubic-bezier(${k.join(",")})`,transform:A(W)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&ey.current&&(ef.current=setTimeout(()=>{let e=S(ey.current,W);P(ey.current,{transition:"none",transform:A(W)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))},onNestedRelease:function(e,t){let n=A(W)?window.innerHeight:window.innerWidth,r=t?(n-16)/n:1,i=t?-16:0;t&&P(ey.current,{transition:`transform 0.5s cubic-bezier(${k.join(",")})`,transform:A(W)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})},keyboardIsOpen:em,modal:B,snapPointsOffset:ek,activeSnapPointIndex:eA,direction:W,shouldScaleBackground:g,setBackgroundColorOnScale:b,noBodyStyles:U,container:X,autoFocus:q}},n))}let V=o.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:l,isOpen:u,modal:d,shouldAnimate:h}=s(),c=b(t,n),f=r&&r.length>0;if(!d)return null;let p=o.useCallback(e=>a(e),[a]);return o.createElement(i.hJ,{onMouseUp:p,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":u&&f?"true":"false","data-vaul-snap-points-overlay":u&&l?"true":"false","data-vaul-animate":(null==h?void 0:h.current)?"true":"false",...e})});V.displayName="Drawer.Overlay";let O=o.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){let{drawerRef:l,onPress:u,onRelease:d,onDrag:h,keyboardIsOpen:c,snapPointsOffset:f,activeSnapPointIndex:p,modal:m,isOpen:g,direction:v,snapPoints:y,container:w,handleOnly:x,shouldAnimate:T,autoFocus:P}=s(),[S,M]=o.useState(!1),R=b(a,l),E=o.useRef(null),j=o.useRef(null),L=o.useRef(!1),V=y&&y.length>0;function O(e){E.current=null,L.current=!1,d(e)}return!function(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=s(),a=o.useRef(null),l=(0,o.useMemo)(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-26)/window.innerWidth}o.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!t)return;!function(...e){}(r&&!i?C(document.body,{background:"black"}):D,C(t,{transformOrigin:A(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:"0.5s",transitionTimingFunction:`cubic-bezier(${k.join(",")})`}));let n=C(t,{borderRadius:"8px",overflow:"hidden",...A(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}}
1);return()=>{n(),a.current=window.setTimeout(()=>{l?document.body.style.background=l:document.body.style.removeProperty("background")},500)}}},[t,n,l])}(),o.useEffect(()=>{V&&window.requestAnimationFrame(()=>{M(!0)})},[]),o.createElement(i.UC,{"data-vaul-drawer-direction":v,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":g&&V?"true":"false","data-vaul-custom-container":w?"true":"false","data-vaul-animate":(null==T?void 0:T.current)?"true":"false",...r,ref:R,style:f&&f.length>0?{"--snap-point-height":`${f[null!=p?p:0]}px`,...t}:t,onPointerDown:e=>{x||(null==r.onPointerDown||r.onPointerDown.call(r,e),E.current={x:e.pageX,y:e.pageY},u(e))},onOpenAutoFocus:e=>{null==n||n(e),P||e.preventDefault()},onPointerDownOutside:t=>{(null==e||e(t),!m||t.defaultPrevented)?t.preventDefault():c.current&&(c.current=!1)},onFocusOutside:e=>{if(!m)return void e.preventDefault()},onPointerMove:e=>{if(j.current=e,x||(null==r.onPointerMove||r.onPointerMove.call(r,e),!E.current))return;let t=e.pageY-E.current.y,n=e.pageX-E.current.x,i="touch"===e.pointerType?10:2;((e,t,n=0)=>
1{if(L.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),o=i>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&i>=0&&i<=n)return o}else if(!(e.y*a<0)&&r>=0&&r<=n)return!o;return L.current=!0,!0})({x:n,y:t},v,i)?h(e):(Math.abs(n)>i||Math.abs(t)>i)&&(E.current=null)},onPointerUp:e=>{null==r.onPointerUp||r.onPointerUp.call(r,e),E.current=null,L.current=!1,d(e)},onPointerOut:e=>{null==r.onPointerOut||r.onPointerOut.call(r,e),O(j.current)},onContextMenu:e=>{null==r.onContextMenu||r.onContextMenu.call(r,e),j.current&&O(j.current)}})});O.displayName="Drawer.Content";let F=o.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:l,activeSnapPoint:u,setActiveSnapPoint:d,dismissible:h,handleOnly:c,isOpen:f,onPress:p,onDrag:m}=s(),g=o.useRef(null),v=o.useRef(!1);function y(){g.current&&window.clearTimeout(g.current),v.current=!1}return o.createElement("div",{onClick:function(){v.current?y():window.setTimeout(()=>{!function(){if(a||e||v.current)return y();if(y(),!l||0===l.length){h||i();return}if(u===l[l.length-1]&&h)return i();let t=l.findIndex(e=>e===u);-1===t||d(l[t+1])}()},120)},onPointerCancel:y,onPointerDown:e=>{c&&p(e),g.current=window.setTimeout(()=>{v.current=!0},250)},onPointerMove:e=>{c&&m(e)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},o.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});F.displayName="Drawer.Handle";let I={Root:L,NestedRoot:function({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:l}=s();if(!i)throw Error("Drawer.NestedRoot must be placed in another drawer");return o.createElement(L,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),null==e||e(t,n)},onOpenChange:e=>{e&&a(e),null==t||t(e)},onRelease:l,...r})},Content:O,Overlay:V,Trigger:i.l9,Portal:function(e){let t=s(),{container:n=t.container,...r}=e;return o.createElement(i.ZL,{container:n,...r})},Handle:F,Close:i.bm,Title:i.hE,Description:i.VY}},646:(e,t,n)=>{n.d(t,{c3:()=>o});var r=n(56690);function i(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let o=i(0,r.c3);i(0,r.kc)},834:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(62676);function i(e){return(0,r.G)(e)&&"offsetHeight"in e}},4314:(e,t,n)=>{n.d(t,{Avatar:()=>g,AvatarFallback:()=>x,AvatarImage:()=>y,H4:()=>A,_V:()=>P,bL:()=>T});var r=n(56565),i=n(54308),o=n(75247),a=n(80069),s=n(59079),l=n(38852);function u(){return()=>{}}var d=n(48561),h="Avatar",[c,f]=(0,i.A)(h),[p,m]=c(h),g=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...i}=e,[o,a]=r.useState("idle");return(0,d.jsx)(p,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:(0,d.jsx)(s.sG.span,{...i,ref:t})})});g.displayName=h;var v="AvatarImage",y=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:i,onLoadingStatusChange:h=()=>{},...c}=e,f=m(v,n),p=function(e,{referrerPolicy:t,crossOrigin:n}){let i=(0,l.useSyncExternalStore)(u,()=>!0,()=>!1),o=r.useRef(null),s=i?(o.current||(o.current=new window.Image),o.current):null,[d,h]=r.useState(()=>b(s,e));return(0,a.N)(()=>{h(b(s,e))},[s,e]),(0,a.N)(()=>{let e=e=>()=>{h(e)};if(!s)return;let r=e("loaded"),i=e("error");return s.addEventListener("load",r),s.addEventListener("error",i),t&&(s.referrerPolicy=t),"string"==typeof n&&(s.crossOrigin=n),()=>{s.removeEventListener("load",r),s.removeEventListener("error",i)}},[s,n,t]),d}(i,c),g=(0,o.c)(e=>{h(e),f.onImageLoadingStatusChange(e)});return(0,a.N)(()=>{"idle"!==p&&g(p)},[p,g]),"loaded"===p?(0,d.jsx)(s.sG.img,{...c,ref:t,src:i}):null});y.displayName=v;var w="AvatarFallback",x=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:i,...o}=e,a=m(w,n),[l,u]=r.useState(void 0===i);return r.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(e)}},[i]),l&&"loaded"!==a.imageLoadingStatus?(0,d.jsx)(s.sG.span,{...o,ref:t}):null});function b(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}x.displayName=w;var T=g,P=y,A=x},6481:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},7558:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},14492:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])}
1,15299:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},15562:(e,t,n)=>{n.d(t,{UC:()=>eX,YJ:()=>eq,q7:()=>eQ,JU:()=>eZ,ZL:()=>eY,bL:()=>eK,wv:()=>eJ,l9:()=>eG});var r=n(56565),i=n(41220),o=n(39108),a=n(54308),s=n(94139),l=n(59079),u=n(55264),d=n(27197),h=n(48762),c=n(22893),f=n(25218),p=n(79171),m=n(30774),g=n(54543),v=n(57941),y=n(84145),w=n(5864),x=n(75247),b=n(44444),T=n(53977),P=n(48561),A=["Enter"," "],S=["ArrowUp","PageDown","End"],C=["ArrowDown","PageUp","Home",...S],k={ltr:[...A,"ArrowRight"],rtl:[...A,"ArrowLeft"]},M={ltr:["ArrowLeft"],rtl:["ArrowRight"]},R="Menu",[E,D,j]=(0,u.N)(R),[L,V]=(0,a.A)(R,[j,m.Bk,y.RG]),O=(0,m.Bk)(),F=(0,y.RG)(),[I,B]=L(R),[N,$]=L(R),U=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=O(t),[u,h]=r.useState(null),c=r.useRef(!1),f=(0,x.c)(a),p=(0,d.jH)(o);return r.useEffect(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,P.jsx)(m.bL,{...l,children:(0,P.jsx)(I,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:h,children:(0,P.jsx)(N,{scope:t,onClose:r.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:p,modal:s,children:i})})})};U.displayName=R;var W=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=O(n);return(0,P.jsx)(m.Mz,{...i,...r,ref:t})});W.displayName="MenuAnchor";var z="MenuPortal",[_,H]=L(z,{forceMount:void 0}),K=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=B(z,t);return(0,P.jsx)(_,{scope:t,forceMount:n,children:(0,P.jsx)(v.C,{present:n||o.open,children:(0,P.jsx)(g.Z,{asChild:!0,container:i,children:r})})})};K.displayName=z;var G="MenuContent",[Y,X]=L(G),q=r.forwardRef((e,t)=>{let n=H(G,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=B(G,e.__scopeMenu),a=$(G,e.__scopeMenu);return(0,P.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,P.jsx)(v.C,{present:r||o.open,children:(0,P.jsx)(E.Slot,{scope:e.__scopeMenu,children:a.modal?(0,P.jsx)(Z,{...i,ref:t}):(0,P.jsx)(Q,{...i,ref:t})})})})}),Z=r.forwardRef((e,t)=>{let n=B(G,e.__scopeMenu),a=r.useRef(null),s=(0,o.s)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,b.Eq)(e)},[]),(0,P.jsx)(ee,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Q=r.forwardRef((e,t)=>{let n=B(G,e.__scopeMenu);return(0,P.jsx)(ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),J=(0,w.TL)("MenuContent.ScrollLock"),ee=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:w,onInteractOutside:x,onDismiss:b,disableOutsideScroll:A,...k}=e,M=B(G,n),R=$(G,n),E=O(n),j=F(n),L=D(n),[V,I]=r.useState(null),N=r.useRef(null),U=(0,o.s)(t,N,M.onContentChange),W=r.useRef(0),z=r.useRef(""),_=r.useRef(0),H=r.useRef(null),K=r.useRef("right"),X=r.useRef(0),q=A?T.A:r.Fragment;r.useEffect(()=>()=>window.clearTimeout(W.current),[]),(0,c.Oh)();let Z=r.useCallback(e=>{var t,n;return K.current===H.current?.side&&(t=e,!!(n=H.current?.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e],s=t[o],l=a.x,u=a.y,d=s.x,h=s.y;u>r!=h>r&&n<(d-l)*(r-u)/(h-u)+l&&(i=!i)}return i}({x:t.clientX,y:t.clientY},n))},[]);return(0,P.jsx)(Y,{scope:n,searchRef:z,onItemEnter:r.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:r.useCallback(e=>{Z(e)||(N.current?.focus(),I(null))},[Z]),onTriggerLeave:r.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:_,onPointerGraceIntentChange:r.useCallback(e=>{H.current=e},[]),children:(0,P.jsx)(q,{...A?{as:J,allowPinchZoom:!0}:void 0,children:(0,P.jsx)(f.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,i.mK)(l,e=>{e.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,P.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:w,onInteractOutside:x,onDismiss:b,children:(0,P.jsx)(y.bL,{asChild:!0,...j,dir:R.dir,orientation:"vertical",loop:a,currentTabStopId:V,onCurrentTabStopIdChange:I,onEntryFocus:(0,i.mK)(p,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,P.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eC(M.open),"data-radix-menu-content":"",dir:R.dir,...E,...k,ref:U,style:{outline:"none",...k.style},onKeyDown:(0,i.mK)(k.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;if(t){var i;let t,o,a,s,l,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(i=e.key,t=z.current+i,o=L().filter(e=>!e.disabled),a=document.activeElement,s=o.find(e=>e.ref.current===a)?.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,a=(r=Math.max(o,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}(o.map(e=>e.textValue),t,s),u=o.find(e=>e.textValue===l)?.ref.current,function e(t){z.current=t,window.clearTimeout(W.current),""!==t&&(W.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let o=N.current;if(e.target!==o||!C.includes(e.key))return;e.preventDefault();let a=L().filter(e=>!e.disabled).map(e=>e.ref.current);S.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(W.current),z.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eR(e=>{let t=e.target,n=X.current!==e.clientX;e.currentTarget.contains(t)&&n&&(K.current=e.clientX>X.current?"right":"left",X.current=e.clientX)}))})})})})})})});q.displayName=G;var et=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,P.jsx)(l.sG.div,{role:"group",...r,ref:t})});et.displayName="MenuGroup";var en=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,P.jsx)(l.sG.div,{...r,ref:t})});en.displayName="MenuLabel";var er="MenuItem",ei="menu.itemSelect",eo=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...s}=e,u=r.useRef(null),d=$(er,e.__scopeMenu),h=X(er,e.__scopeMenu),c=(0,o.s)(t,u),f=r.useRef(!1);return(0,P.jsx)(ea,{...s,ref:c,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(ei,{bubbles:!0,cancelable:!0});e.addEventListener(ei,e=>a?.(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?f.current=!1:d.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==h.searchRef.current;n||t&&" "===e.key||A.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ea=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:s,...u}=e,d=X(er,n),h=F(n),c=r.useRef(null),f=(0,o.s)(t,c),[p,m]=r.useState(!1),[g,v]=r.useState("");return r.useEffect(()=>{let e=c.current;e&&v((e.textContent??"").trim())},[u.children]),(0,P.jsx)(E.ItemSlot,{scope:n,disabled:a,textValue:s??g,children:(0,P.jsx)(y.q7,{asChild:!0,...h,focusable:!a,children:(0,P.jsx)(l.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,eR(e=>{a?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eR(e=>d.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>m(!0)),onBlur:(0,i.mK)(e.onBlur,()=>m(!1))})})})}),es=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,P.jsx)(em,{scope:e.__scopeMenu,checked:n,children:(0,P.jsx)(eo,{role:"menuitemcheckbox","aria-checked":ek(n)?"mixed":n,...o,ref:t,"data-state":eM(n),onSelect:(0,i.mK)(o.onSelect,()=>r?.(!!ek(n)||!n),{checkForDefaultPrevented:!1})})})});es.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[eu,ed]=L(el,{value:void 0,onValueChange:()=>{}}),eh=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,x.c)(r);return(0,P.jsx)(eu,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,P.jsx)(et,{...i,ref:t})})});eh.displayName=el;var ec="MenuRadioItem",ef=r.forwardRef((e,t)=>{let{value:n,...r}=e,o=ed(ec,e.__scopeMenu),a=n===o.value;return(0,P.jsx)(em,{scope:e.__scopeMenu,checked:a,children:(0,P.jsx)(eo,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eM(a),onSelect:(0,i.mK)(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ef.displayName=ec;var ep="MenuItemIndicator",[em,eg]=L(ep,{checked:!1}
1),ev=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=eg(ep,n);return(0,P.jsx)(v.C,{present:r||ek(o.checked)||!0===o.checked,children:(0,P.jsx)(l.sG.span,{...i,ref:t,"data-state":eM(o.checked)})})});ev.displayName=ep;var ey=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,P.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ey.displayName="MenuSeparator";var ew=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=O(n);return(0,P.jsx)(m.i3,{...i,...r,ref:t})});ew.displayName="MenuArrow";var[ex,eb]=L("MenuSub"),eT="MenuSubTrigger",eP=r.forwardRef((e,t)=>{let n=B(eT,e.__scopeMenu),a=$(eT,e.__scopeMenu),s=eb(eT,e.__scopeMenu),l=X(eT,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=l,c={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),h(null)}},[d,h]),(0,P.jsx)(W,{asChild:!0,...c,children:(0,P.jsx)(ea,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":eC(n.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eR(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eR(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,o=t[i?"left":"right"],a=t[i?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:o,y:t.top},{x:a,y:t.top},{x:a,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let r=""!==l.searchRef.current;e.disabled||r&&" "===t.key||k[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});eP.displayName=eT;var eA="MenuSubContent",eS=r.forwardRef((e,t)=>{let n=H(G,e.__scopeMenu),{forceMount:a=n.forceMount,...s}=e,l=B(G,e.__scopeMenu),u=$(G,e.__scopeMenu),d=eb(eA,e.__scopeMenu),h=r.useRef(null),c=(0,o.s)(t,h);return(0,P.jsx)(E.Provider,{scope:e.__scopeMenu,children:(0,P.jsx)(v.C,{present:a||l.open,children:(0,P.jsx)(E.Slot,{scope:e.__scopeMenu,children:(0,P.jsx)(ee,{id:d.contentId,"aria-labelledby":d.triggerId,...s,ref:c,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&h.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=M[u.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})});function eC(e){return e?"open":"closed"}function ek(e){return"indeterminate"===e}function eM(e){return ek(e)?"indeterminate":e?"checked":"unchecked"}function eR(e){return t=>"mouse"===t.pointerType?e(t):void 0}eS.displayName=eA;var eE="DropdownMenu",[eD,ej]=(0,a.A)(eE,[V]),eL=V(),[eV,eO]=eD(eE),eF=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:o,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,d=eL(t),h=r.useRef(null),[c,f]=(0,s.i)({prop:o,defaultProp:a??!1,onChange:l,caller:eE});return(0,P.jsx)(eV,{scope:t,triggerId:(0,p.B)(),triggerRef:h,contentId:(0,p.B)(),open:c,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,P.jsx)(U,{...d,open:c,onOpenChange:f,dir:i,modal:u,children:n})})};eF.displayName=eE;var eI="DropdownMenuTrigger",eB=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=eO(eI,n),u=eL(n);return(0,P.jsx)(W,{asChild:!0,...u,children:(0,P.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>
1{!r&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eB.displayName=eI;var eN=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eL(t);return(0,P.jsx)(K,{...r,...n})};eN.displayName="DropdownMenuPortal";var e$="DropdownMenuContent",eU=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=eO(e$,n),s=eL(n),l=r.useRef(!1);return(0,P.jsx)(q,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eU.displayName=e$;var eW=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(et,{...i,...r,ref:t})});eW.displayName="DropdownMenuGroup";var ez=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(en,{...i,...r,ref:t})});ez.displayName="DropdownMenuLabel";var e_=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(eo,{...i,...r,ref:t})});e_.displayName="DropdownMenuItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(es,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(eh,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(ef,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(ev,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator";var eH=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(ey,{...i,...r,ref:t})});eH.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(ew,{...i,...r,ref:t})}).displayName="DropdownMenuArrow",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(eP,{...i,...r,ref:t})}).displayName="DropdownMenuSubTrigger",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=eL(n);return(0,P.jsx)(eS,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var eK=eF,eG=eB,eY=eN,eX=eU,eq=eW,eZ=ez,eQ=e_,eJ=eH},19329:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},19715:(e,t,n)=>{let r,i,o;n.d(t,{P:()=>og});var a,s=n(56565);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set(l),d=e=>180*e/Math.PI,h=e=>f(d(Math.atan2(e[1],e[0]))),c={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:h,rotateZ:h,skewX:e=>d(Math.atan(e[1])),skewY:e=>d(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},f=e=>((e%=360)<0&&(e+=360),e),p=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),m=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),g={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p,scaleY:m,scale:e=>(p(e)+m(e))/2,rotateX:e=>
1f(d(Math.atan2(e[6],e[5]))),rotateY:e=>f(d(Math.atan2(-e[2],e[0]))),rotateZ:h,rotate:h,skewX:e=>d(Math.atan(e[4])),skewY:e=>d(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function v(e){return+!!e.includes("scale")}function y(e,t){let n,r;if(!e||"none"===e)return v(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=g,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=c,r=t}if(!r)return v(t);let o=n[t],a=r[1].split(",").map(w);return"function"==typeof o?o(a):a[o]}function w(e){return parseFloat(e.trim())}let x=e=>t=>"string"==typeof t&&t.startsWith(e),b=x("--"),T=x("var(--"),P=e=>!!T(e)&&A.test(e.split("/*")[0].trim()),A=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function S({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}let C=(e,t,n)=>e+(t-e)*n;function k(e){return void 0===e||1===e}function M({scale:e,scaleX:t,scaleY:n}){return!k(e)||!k(t)||!k(n)}function R(e){return M(e)||E(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function E(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function D(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function j(e,t=0,n=1,r,i){e.min=D(e.min,t,n,r,i),e.max=D(e.max,t,n,r,i)}function L(e,{x:t,y:n}){j(e.x,t.translate,t.scale,t.originPoint),j(e.y,n.translate,n.scale,n.originPoint)}function V(e,t){e.min=e.min+t,e.max=e.max+t}function O(e,t,n,r,i=.5){let o=C(e.min,e.max,i);j(e,t,n,o,r)}function F(e,t){O(e.x,t.x,t.scaleX,t.scale,t.originX),O(e.y,t.y,t.scaleY,t.scale,t.originY)}function I(e,t){return S(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let B=new Set(["width","height","top","left","right","bottom",...l]),N=(e,t,n)=>n>t?t:n<e?e:n,$={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},U={...$,transform:e=>N(0,1,e)},W={...$,default:1},z=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),_=z("deg"),H=z("%"),K=z("px"),G=z("vh"),Y=z("vw"),X={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(100*e)},q=e=>t=>t.test(e),Z=[$,K,H,_,Y,G,{test:e=>"auto"===e,parse:e=>e}],Q=e=>Z.find(q(e)),J=()=>{},ee=()=>{},et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,en=e=>e===$||e===K,er=new Set(["x","y","z"]),ei=l.filter(e=>!er.has(e)),eo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>y(t,"x"),y:(e,{transform:t})=>y(t,"y")};eo.translateX=eo.x,eo.translateY=eo.y;let ea=e=>e,es={},el=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eu(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=el.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(d.schedule(t),e()),l++,t(s)}let d={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t,l=0,n.clear(),i=!1,o&&(o=!1,d.process(e))}};return d}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:d,update:h,preRender:c,render:f,postRender:p}=a,m=()=>{let o=es.useManualTiming?i.timestamp:performance.now();n=!1,es.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),d.process(i),h.process(i),c.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:el.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<el.length;t++)a[el[t]].cancel(e)},state:i,steps:a}}let{schedule:ed,cancel:eh,state:ec,steps:ef}=eu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ea,!0),ep=new Set,em=!1,eg=!1,ev=!1;function ey(){if(eg){let e=Array.from(ep).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t,r=(t=[],ei.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eg=!1,em=!1,ep.forEach(e=>e.complete(ev)),ep.clear()}function ew(){ep.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eg=!0)})}class ex{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ep.add(this),em||(em=!0,ed.read(ew),ed.resolveKeyframes(ey))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ep.delete(this)}cancel(){"scheduled"===this.state&&(ep.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eb=e=>Math.round(1e5*e)/1e5,eT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eA=(e,t)=>n=>!!("string"==typeof n&&eP.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eS=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(eT);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eC={...$,transform:e=>Math.round(N(0,255,e))},ek={test:eA("rgb","red"),parse:eS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eC.transform(e)+", "+eC.transform(t)+", "+eC.transform(n)+", "+eb(U.transform(r))+")"},eM={test:eA("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ek.transform},eR={test:eA("hsl","hue"),parse:eS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+H.transform(eb(t))+", "+H.transform(eb(n))+", "+eb(U.transform(r))+")"},eE={test:e=>ek.test(e)||eM.test(e)||eR.test(e),parse:e=>ek.test(e)?ek.parse(e):eR.test(e)?eR.parse(e):eM.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ek.transform(e):eR.transform(e),getAnimatableNone:e=>{let t=eE.parse(e);return t.alpha=0,eE.transform(t)}},eD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ej="number",eL="color",eV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eO(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(eV,e=>(eE.test(e)?(r.color.push(o),i.push(eL),n.push(eE.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(ej),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function eF(e){return eO(e).values}function eI(e){let{split:t,types:n}=eO(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===ej?i+=eb(e[o]):t===eL?i+=eE.transform(e[o]):i+=e[o]}return i}}let eB=e=>"number"==typeof e?0:eE.test(e)?eE.getAnimatableNone(e):e,eN={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eT)?.length||0)+(e.match(eD)?.length||0)>0},parse:eF,createTransformer:eI,getAnimatableNone:function(e){let t=eF(e);return eI(e)(t.map(eB))}},e$=new Set(["brightness","contrast","saturate","opacity"]);function eU(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eT)||[];if(!r)return e;let i=n.replace(r,""),o=+!!e$.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let eW=/\b([a-z-]*)\(.*?\)/gu,ez={...eN,getAnimatableNone:e=>{let t=e.match(eW);return t?t.map(eU).join(" "):e}},e_={...$,transform:Math.round},eH={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K,rotate:_,rotateX:_,rotateY:_,rotateZ:_,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:_,skewX:_,skewY:_,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:U,originX:X,originY:X,originZ:K,zIndex:e_,fillOpacity:U,strokeOpacity:U,numOctaves:e_},eK={...eH,color:eE,backgroundColor:eE,outlineColor:eE,fill:eE,stroke:eE,borderColor:eE,borderTopColor:eE,borderRightColor:eE,borderBottomColor:eE,borderLeftColor:eE,filter:ez,WebkitFilter:ez},eG=e=>eK[e];function eY(e,t){let n=eG(e);return n!==ez&&(n=eN),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
1let eX=new Set(["auto","none","0"]);class eq extends ex{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&P(r=r.trim())){let i=function e(t,n,r=1){ee(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=et.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return P(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!B.has(n)||2!==e.length)return;let[r,i]=e,o=Q(r),a=Q(i);if(o!==a)if(en(o)&&en(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eo[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eX.has(t)&&eO(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eY(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eo[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=eo[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eZ=e=>!!(e&&e.getVelocity);function eQ(){r=void 0}let eJ={now:()=>(void 0===r&&eJ.set(ec.isProcessing||es.useManualTiming?ec.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(eQ)}};function e0(e,t){-1===e.indexOf(t)&&e.push(t)}function e1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class e2{constructor(){this.subscriptions=[]}add(e){return e0(this.subscriptions,e),()=>e1(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class e5{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=eJ.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eJ.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e2);let n=this.events[e].add(t);return"change"===e?()=>{n(),ed.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return o&&o.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eJ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e6(e,t){return new e5(e,t)}let e3=[...Z,eE,eN],{schedule:e4}=eu(queueMicrotask,!1),e9={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},e8={};for(let e in e9)e8[e]={isEnabled:t=>e9[e].some(e=>!!t[e])};let e7=()=>({translate:0,scale:1,origin:0,originPoint:0}),te=()=>({x:e7(),y:e7()}),tt=()=>({min:0,max:0}),tn=()=>({x:tt(),y:tt()});var tr=n(26529);let ti={current:null},to={current:!1},ta=new WeakMap;function ts(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tl(e){return"string"==typeof e||Array.isArray(e)}let tu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...tu];function th(e){return ts(e.animate)||td.some(t=>tl(e[t]))}function tc(e){return!!(th(e)||e.variants)}function tf(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tp(e,t,n,r){if("function"==typeof t){let[i,o]=tf(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tf(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tg{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ex,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=eJ.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ed.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=th(t),this.isVariantNode=tc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&eZ(t)&&t.set(s[e])}}mount(e){this.current=e,ta.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),to.current||function(){if(to.current=!0,tr.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ti.current=e.matches;e.addEventListener("change",t),t()}else ti.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ti.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eh(this.notifyUpdate),eh(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=u.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ed.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in e8){let t=e8[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tn()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tm.length;t++){let n=tm[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(eZ(i))e.addValue(r,i);else if(eZ(o))e.addValue(r,e6(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,e6(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=e6(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!e3.find(q(r))&&eN.test(t)&&(n=eY(e,t))}this.setBaseTarget(e,eZ(n)?n.get():n)}return eZ(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tp(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||eZ(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new e2),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e4.render(this.render)}}class tv extends tg{constructor(){super(...arguments),this.KeyframeResolver=eq}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eZ(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let ty=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tx=l.length;function tb(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(u.has(e)){a=!0;continue}if(b(e)){i[e]=n;continue}{let t=ty(n,eH[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<tx;o++){let a=l[o],s=e[a];if(void 0===s)continue;let u=!0;if(!(u="number"==typeof s?s===+!!a.startsWith("scale"):0===parseFloat(s))||n){let e=ty(s,eH[a]);if(!u){i=!1;let t=tw[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}function tT(e,{style:t,vars:n},r,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}let tP={};function tA(e,{layout:t,layoutId:n}){return u.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tP[e]||"opacity"===e)}function tS(e,t,n){let{style:r}=e,i={};for(let o in r)(eZ(r[o])||t.style&&eZ(t.style[o])||tA(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}class tC extends tv{constructor(){super(...arguments),this.type="html",this.renderInstance=tT}readValueFromInstance(e,t){if(u.has(t))return this.projection?.isProjecting?v(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return y(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(b(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return I(e,t)}build(e,t,n){tb(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tS(e,t,n)}}let tk=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tR={offset:"strokeDashoffset",array:"strokeDasharray"};function tE(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s}
1,l,u,d){if(tb(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:c}=e;h.transform&&(c.transform=h.transform,delete h.transform),(c.transform||h.transformOrigin)&&(c.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),c.transform&&(c.transformBox=d?.transformBox??"fill-box",delete h.transformBox),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tM:tR;e[o.offset]=K.transform(-r);let a=K.transform(t),s=K.transform(n);e[o.array]=`${a} ${s}`}(h,i,o,a,!1)}let tD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tj=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,t,n){let r=tS(e,t,n);for(let n in e)(eZ(e[n])||eZ(t[n]))&&(r[-1!==l.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tV extends tv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tn}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(u.has(t)){let e=eG(t);return e&&e.default||0}return t=tD.has(t)?t:tk(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tL(e,t,n)}
1build(e,t,n){tE(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tT(e,t,void 0,r),t.attrs)e.setAttribute(tD.has(n)?n:tk(n),t.attrs[n])}mount(e){this.isSVGTag=tj(e.tagName),super.mount(e)}}let tO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tF(e){if("string"!=typeof e||e.includes("-"));else if(tO.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tI=n(48561),tB=n(87600);let tN=(0,s.createContext)({strict:!1});var t$=n(67007);let tU=(0,s.createContext)({});function tW(e){return Array.isArray(e)?e.join(" "):e}let tz=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t_(e,t,n){for(let r in t)eZ(t[r])||tA(r,n)||(e[r]=t[r])}let tH=()=>({...tz(),attrs:{}}),tK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tG(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tK.has(e)}let tY=e=>!tG(e);try{a=require("@emotion/is-prop-valid").default,"function"==typeof a&&(tY=e=>e.startsWith("on")?!tG(e):a(e))}catch{}var tX=n(60046),tq=n(74360);function tZ(e){return eZ(e)?e.get():e}let tQ=e=>(t,n)=>{let r=(0,s.useContext)(tU),i=(0,s.useContext)(tX.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=tZ(o[e]);let{initial:a,animate:s}=e,l=th(e),u=tc(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let d=!!n&&!1===n.initial,h=(d=d||!1===a)?s:a;if(h&&"boolean"!=typeof h&&!ts(h)){let t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){let r=tp(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():(0,tq.M)(o)},tJ=tQ({scrapeMotionValuesFromProps:tS,createRenderState:tz}),t0=tQ({scrapeMotionValuesFromProps:tL,createRenderState:tH}),t1=Symbol.for("motionComponentSymbol");function t2(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let t5="data-"+tk("framerAppearId"),t6=(0,s.createContext)({});var t3=n(96945);function t4(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(let t in e)e8[t]={...e8[t],...e[t]}}(n);let i=tF(e)?t0:tJ;function o(n,o){var a;let l,u={...(0,s.useContext)(t$.Q),...n,layoutId:function({layoutId:e}){let t=(0,s.useContext)(tB.L).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:d}=u,h=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tl(t)?t:void 0,animate:tl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(tU));return(0,s.useMemo)(()=>({initial:t,animate:n}),[tW(t),tW(n)])}(n),c=i(n,d);if(!d&&tr.B){(0,s.useContext)(tN).strict;let t=function(e){let{drag:t,layout:n}=e8;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,h.visualElement=function(e,t,n,r,i){let{visualElement:o}=(0,s.useContext)(tU),a=(0,s.useContext)(tN),l=(0,s.useContext)(tX.t),u=(0,s.useContext)(t$.Q).reducedMotion,d=(0,s.useRef)(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let h=d.current,c=(0,s.useContext)(t6);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&t2(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}(d.current,n,i,c);let f=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{h&&f.current&&h.update(n,l)});let p=n[t5],m=(0,s.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,t3.E)(()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,s.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),h.enteringChildren=void 0)}),h}(e,c,u,r,t.ProjectionNode)}return(0,tI.jsxs)(tU.Provider,{value:h,children:[l&&h.visualElement?(0,tI.jsx)(l,{visualElement:h.visualElement,...u}):null,function(e,t,n,{latestValues:r},i,o=!1){let a=(tF(e)?function(e,t,n,r){let i=(0,s.useMemo)(()=>{let n=tH();return tE(n,t,tj(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};t_(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},t_(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{let n=tz();return tb(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
1`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(tY(i)||!0===n&&tG(i)||!t&&!tG(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==s.Fragment?{...l,...a,ref:n}:{},{children:d}=t,h=(0,s.useMemo)(()=>eZ(d)?d.get():d,[d]);return(0,s.createElement)(e,{...u,children:h})}(e,n,(a=h.visualElement,(0,s.useCallback)(e=>{e&&c.onMount&&c.onMount(e),a&&(e?a.mount(e):a.unmount()),o&&("function"==typeof o?o(e):t2(o)&&(o.current=e))},[a])),c,d,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let a=(0,s.forwardRef)(o);return a[t1]=e,a}function t9(e,t,n){let r=e.getProps();return tp(r,t,void 0!==n?n:r.custom,e)}function t8(e,t){return e?.[t]??e?.default??e}let t7=e=>Array.isArray(e);function ne(e,t){let n=e.getValue("willChange");if(eZ(n)&&n.add)return n.add(t);if(!n&&es.WillChange){let n=new es.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function nt(e){e.duration=0,e.type}let nn=(e,t)=>n=>t(e(n)),nr=(...e)=>e.reduce(nn),ni=e=>1e3*e,no={layout:0,mainThread:0,waapi:0};function na(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ns(e,t){return n=>n>0?t:e}let nl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nu=[eM,ek,eR];function nd(e){let t=nu.find(t=>t.test(e));if(J(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===eR&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=na(s,r,e+1/3),o=na(s,r,e),a=na(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nh=(e,t)=>{let n=nd(e),r=nd(t);if(!n||!r)return ns(e,t);let i={...n};return e=>(i.red=nl(n.red,r.red,e),i.green=nl(n.green,r.green,e),i.blue=nl(n.blue,r.blue,e),i.alpha=C(n.alpha,r.alpha,e),ek.transform(i))},nc=new Set(["none","hidden"]);function nf(e,t){return n=>C(e,t,n)}function np(e){return"number"==typeof e?nf:"string"==typeof e?P(e)?ns:eE.test(e)?nh:nv:Array.isArray(e)?nm:"object"==typeof e?eE.test(e)?nh:ng:ns}function nm(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>np(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ng(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=np(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nv=(e,t)=>{let n=eN.createTransformer(t),r=eO(e),i=eO(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return J(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ns(e,t);if(nc.has(e)&&!i.values.length||nc.has(t)&&!r.values.length)return nc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nr(nm(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n)};function ny(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?C(e,t,n):np(e)(e,t)}let nw=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ed.update(t,e),stop:()=>eh(t),now:()=>ec.isProcessing?ec.timestamp:eJ.now()}},nx=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nb(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nT(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nP=.01,nA=2,nS=.005,nC=.5;function nk(e,t){return e*Math.sqrt(1-t*t)}let nM=["duration","bounce"],nR=["stiffness","damping","mass"];function nE(e,t){return t.some(t=>void 0!==e[t])}function nD(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:c,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nE(e,nR)&&nE(e,nM))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*N(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;J(e<=ni(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=N(.05,1,a),e=N(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nk(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=nk(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=ni(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;
1return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),m=f||0,g=d/(2*Math.sqrt(u*h)),v=s-a,y=Math.sqrt(u/h)/1e3,w=5>Math.abs(v);if(i||(i=w?nP:nA),o||(o=w?nS:nC),g<1){let e=nk(y,g);n=t=>s-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)n=e=>s-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*y*t),r=Math.min(e*t,300);return s-n*((m+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}let x={calculatedDuration:p&&c||null,next:e=>{let t=n(e);if(p)l.done=e>=c;else{let r=0===e?m:0;g<1&&(r=0===e?ni(m):nT(n,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(r)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(nb(x),2e4),t=nx(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function nj({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:d}){let h,c,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,v=void 0===a?g:a(g);v!==g&&(m=v-f);let y=e=>-m*Math.exp(-e/r),w=e=>v+y(e),x=e=>{let t=y(e),n=w(e);p.done=Math.abs(t)<=u,p.value=p.done?v:n},b=e=>{let t;if(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l){var n;h=e,c=nD({keyframes:[p.value,(n=p.value,void 0===s?l:void 0===l||Math.abs(s-n)<Math.abs(l-n)?s:l)],velocity:nT(w,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==h||(t=!0,x(e),b(e)),void 0!==h&&e>=h)?c.next(e-h):(t||x(e),p)}}}nD.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nb(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nD);return e.ease=t.ease,e.duration=ni(t.duration),e.type="keyframes",e};let nL=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nV(e,t,n,r){return e===t&&n===r?ea:i=>0===i||1===i?i:nL(function(e,t,n,r,i){let o,a,s=0;do(o=nL(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let nO=nV(.42,0,1,1),nF=nV(0,0,.58,1),nI=nV(.42,0,.58,1),nB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nN=e=>t=>1-e(1-t),n$=nV(.33,1.53,.69,.99),nU=nN(n$),nW=nB(nU),nz=e=>(e*=2)<1?.5*nU(e):.5*(2-Math.pow(2,-10*(e-1))),n_=e=>1-Math.sin(Math.acos(e)),nH=nN(n_),nK=nB(n_),nG=e=>Array.isArray(e)&&"number"==typeof e[0],nY={linear:ea,easeIn:nO,easeInOut:nI,easeOut:nF,circIn:n_,circInOut:nK,circOut:nH,backIn:nU,backInOut:nW,backOut:n$,anticipate:nz},nX=e=>{if(nG(e)){ee(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return nV(t,n,r,i)}return"string"==typeof e?(ee(void 0!==nY[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nY[e]):e},nq=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function nZ({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(nX):nX(r),s={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ee(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||es.mix||ny,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nr(Array.isArray(t)?t[n]||ea:t,o)),r.push(o)}return r}(t,r,i),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=nq(e[r],e[r+1],n);return s[r](i)};return n?t=>u(N(e[0],e[o-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=nq(0,t,r);e.push(C(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||nI).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}let nQ=e=>null!==e;function nJ(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(nQ),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}let n0={decay:nj,inertia:nj,tween:nZ,keyframes:nZ,spring:nD};function n1(e){"string"==typeof e.type&&(e.type=n0[e.type])}class n2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let n5=e=>e/100;class n6 extends n2{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eJ.now()&&this.tick(eJ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},no.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;n1(e);let{type:t=nZ,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||nZ;s!==nZ&&"number"!=typeof a[0]&&(this.mixKeyframes=nr(n5,ny(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nb(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:c,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(n=1-n,c&&(n-=c/a)):"mirror"===h&&(w=o)
1),y=N(0,1,n)*a}let x=v?{done:!1,value:u[0]}:w.next(y);i&&(x.value=i(x.value));let{done:b}=x;v||null===s||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&f!==nj&&(x.value=nJ(u,this.options,m,this.speed)),p&&p(x.value),T&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=ni(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eJ.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nw,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eJ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,no.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function n3(e){let t;return()=>(void 0===t&&(t=e()),t)}let n4=n3(()=>void 0!==window.ScrollTimeline),n9={},n8=(i=n3(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>n9.linearEasing??i()),n7=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:n7([0,.65,.55,1]),circOut:n7([.55,0,1,.45]),backIn:n7([.31,.01,.66,-.59]),backOut:n7([.33,1.53,.69,.99])};function rt(e){return"function"==typeof e&&"applyToOptions"in e}class rn extends n2{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ee("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return rt(e)&&n8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let d={[t]:n};l&&(d.offset=l);let h=function e(t,n){if(t)return"function"==typeof t?n8()?nx(t,n):"ease-out":nG(t)?n7(t):Array.isArray(t)?t.map(t=>e(t,n)||re.easeOut):re[t]}(s,i);Array.isArray(h)&&(d.easing=h);let c={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let f=e.animate(d,c);return f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=nJ(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=ni(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&n4())?(this.animation.timeline=e,ea):t(this)}}let rr={anticipate:nz,backInOut:nW,circInOut:nK};class ri extends rn{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rr&&(e.ease=rr[e.ease])}(e),n1(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new n6({...o,autoplay:!1}),s=ni(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let ro=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eN.test(e)||"0"===e)&&!e.startsWith("url(")),ra=new Set(["opacity","clipPath","filter","transform"]),rs=n3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rl extends n2{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eJ.now();const h={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...d},c=u?.KeyframeResolver||ex;this.keyframeResolver=new c(a,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=eJ.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=ro(i,t),s=ro(o,t);return J(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rt(n))&&r)}(e,i,o,a)&&((es.instantAnimations||!s)&&u?.(nJ(e,n,t)),e[0]=e[e.length-1],nt(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return rs()&&n&&ra.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(d)?new ri({...d,element:d.motionValue.owner.current}):new n6(d);h.finished.then(()=>this.notifyFinished()).catch(ea),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ev=!0,ew(),ey(),ev=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ru=e=>null!==e,rd={type:"spring",stiffness:500,damping:25,restSpeed:10},rh={type:"keyframes",duration:.8},rc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rf=(e,t,n,r={},i,o)=>a=>{let s=t8(r,e)||{},l=s.delay||r.delay||0,{elapsed:d=0}=r;d-=ni(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}(s)&&Object.assign(h,((e,{keyframes:t})=>t.length>2?rh:u.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rd:rc)(e,h)),h.duration&&(h.duration=ni(h.duration)),h.repeatDelay&&(h.repeatDelay=ni(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nt(h),0===h.delay&&(c=!0)),(es.instantAnimations||es.skipAnimations)&&(c=!0,nt(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,c&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(ru),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(h.keyframes,s);if(void 0!==e)return void ed.update(()=>{h.onUpdate(e),h.onComplete()})}return s.isSync?new n6(h):new rl(h)};function rp(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(o=r);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(u,t))continue;let a={delay:n,...t8(o||{},t)},d=r.get();if(void 0!==d&&!r.isAnimating&&!Array.isArray(i)&&i===d&&!a.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[t5];if(n){let e=window.MotionHandoffAnimation(n,t,ed);null!==e&&(a.startTime=e,h=!0)}}ne(e,t),r.start(rf(t,r,i,e.shouldReduceMotion&&B.has(t)?{type:!1}:a,e,h));let c=r.animation;c&&l.push(c)}return a&&Promise.all(l).then(()=>{ed.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=t9(e,t)||{};for(let t in i={...i,...n}){var o;let n=t7(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,e6(n))}}(e,a)})}),l}function rm(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function rg(e,t,n={}){let r=t9(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rp(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(rg(l,t,{...a,delay:n+("function"==typeof r?0:r)+rm(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;
1if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function rv(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let ry=td.length,rw=[...tu].reverse(),rx=tu.length;function rb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rT(){return{animate:rb(!0),whileInView:rb(),whileHover:rb(),whileTap:rb(),whileDrag:rb(),whileFocus:rb(),exit:rb()}}class rP{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rA extends rP{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rg(e,t,n)));else if("string"==typeof t)r=rg(e,t,n);else{let i="function"==typeof t?t9(e,t,n.custom):t;r=Promise.all(rp(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rT(),r=!0,i=t=>(n,r)=>{let i=t9(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:a}=e,s=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<ry;e++){let r=td[e],i=t.props[r];(tl(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],u=new Set,d={},h=1/0;for(let t=0;t<rx;t++){var c,f;let p=rw[t],m=n[p],g=void 0!==a[p]?a[p]:s[p],v=tl(g),y=p===o?m.isActive:null;!1===y&&(h=t);let w=g===s[p]&&g!==a[p]&&v;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),m.protectedKeys={...d},!m.isActive&&null===y||!g&&!m.prevProp||ts(g)||"boolean"==typeof g)continue;let x=(c=m.prevProp,"string"==typeof(f=g)?f!==c:!!Array.isArray(f)&&!rv(f,c)),b=x||p===o&&m.isActive&&!w&&v||t>h&&v,T=!1,P=Array.isArray(g)?g:[g],A=P.reduce(i(p),{});!1===y&&(A={});let{prevResolvedValues:S={}}=m,C={...S,...A},k=t=>{b=!0,u.has(t)&&(T=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=A[e],n=S[e];if(!d.hasOwnProperty(e))(t7(t)&&t7(n)?rv(t,n):t===n)?void 0!==t&&u.has(e)?k(e):m.protectedKeys[e]=!0:null!=t?k(e):u.add(e)}m.prevProp=g,m.prevResolvedValues=A,m.isActive&&(d={...d,...A}),r&&e.blockInitialAnimation&&(b=!1);let M=w&&x,R=!M||T;b&&R&&l.push(...P.map(t=>{let n={type:p};if("string"==typeof t&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=t9(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rm(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof a.initial){let n=t9(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rT(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ts(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rS=0;class rC extends rP{constructor(){super(...arguments),this.id=rS++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
1{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rk={x:!1,y:!1};function rM(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rR=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rE(e){return{point:{x:e.pageX,y:e.pageY}}}function rD(e,t,n,r){return rM(e,t,e=>rR(e)&&n(e,rE(e)),r)}function rj(e){return e.max-e.min}function rL(e,t,n,r=.5){e.origin=r,e.originPoint=C(t.min,t.max,e.origin),e.scale=rj(n)/rj(t),e.translate=C(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rV(e,t,n,r){rL(e.x,t.x,n.x,r?r.originX:void 0),rL(e.y,t.y,n.y,r?r.originY:void 0)}function rO(e,t,n){e.min=n.min+t.min,e.max=e.min+rj(t)}function rF(e,t,n){e.min=t.min-n.min,e.max=e.min+rj(t)}function rI(e,t,n){rF(e.x,t.x,n.x),rF(e.y,t.y,n.y)}function rB(e){return[e("x"),e("y")]}let rN=({current:e})=>e?e.ownerDocument.defaultView:null,r$=(e,t)=>Math.abs(e-t);class rU{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=r_(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(r$(e.x,t.x)**2+r$(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=ec;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rW(t,this.transformPagePoint),ed.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=r_("pointercancel"===e.type?this.lastMoveEventInfo:rW(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!rR(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const a=rW(rE(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=ec;this.history=[{...s,timestamp:l}];const{onSessionStart:u}=t;u&&u(e,r_(a,this.history)),this.removeListeners=nr(rD(this.contextWindow,"pointermove",this.handlePointerMove),rD(this.contextWindow,"pointerup",this.handlePointerUp),rD(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),eh(this.updatePoint)}}function rW(e,t){return t?{point:t(e.point)}:e}function rz(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r_({point:e},t){return{point:e,delta:rz(e,rH(t)),offset:rz(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=rH(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ni(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function rH(e){return e[e.length-1]}function rK(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rG(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rY(e,t,n){return{min:rX(e,t),max:rX(e,n)}}function rX(e,t){return"number"==typeof e?e:e[t]||0}let rq=new WeakMap;class rZ{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rE(e).point)},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(rk[e])return null;else return rk[e]=!0,()=>{rk[e]=!1};return rk.x||rk.y?null:(rk.x=rk.y=!0,()=>{rk.x=rk.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(H.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rj(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ed.postRender(()=>i(e,t)),ne(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rB(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new rU(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:rN(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&ed.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!rQ(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?C(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?C(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&t2(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:rK(e.x,n,i),y:rK(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rY(e,"left","right"),y:rY(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rB(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!t2(t))return!1;let r=t.current;ee(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=I(e,n),{scroll:i}=t;return i&&(V(r.x,i.offset.x),V(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:rG(e.x,o.x),y:rG(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=S(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rB(a=>
1{if(!rQ(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ne(this.visualElement,e),n.start(rf(e,n,0,t,this.visualElement,!1))}stopAnimation(){rB(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rB(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rB(t=>{let{drag:n}=this.getProps();if(!rQ(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-C(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!t2(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,s,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],o=.5,a=rj(n),(s=rj(i))>a?o=nq(i.min,i.max-a,n.min):a>s&&(o=nq(n.min,n.max-s,i.min)),N(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rB(t=>{if(!rQ(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(C(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;rq.set(this.visualElement,this);let e=rD(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();t2(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ed.read(t);let i=rM(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rB(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function rQ(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class rJ extends rP{constructor(e){super(e),this.removeGroupControls=ea,this.removeListeners=ea,this.controls=new rZ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ea}unmount(){this.removeGroupControls(),this.removeListeners()}}let r0=e=>(t,n)=>{e&&ed.postRender(()=>e(t,n))};class r1 extends rP{constructor(){super(...arguments),this.removePointerDownListener=ea}onPointerDown(e){this.session=new rU(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rN(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:r0(e),onStart:r0(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&ed.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rD(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var r2=n(72841);let r5={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function r6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let r3={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!K.test(e))return e;else e=parseFloat(e);let n=r6(e,t.target.x),r=r6(e,t.target.y);return`${n}% ${r}%`}},r4=!1;class r9 extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in r7)tP[e]=r7[e],b(e)&&(tP[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),r4&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),r5.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,r4=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||ed.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e4.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r4=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function r8(e){let[t,n]=(0,r2.xQ)(),r=(0,s.useContext)(tB.L);return(0,tI.jsx)(r9,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(t6),isPresent:t,safeToRemove:n})}let r7={borderRadius:{...r3,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:r3,borderTopRightRadius:r3,borderBottomLeftRadius:r3,borderBottomRightRadius:r3,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=eN.parse(e);if(r.length>5)return e;let i=eN.createTransformer(e),o=+("number"!=typeof r[0]),a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=C(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var ie=n(62676);function it(e){return(0,ie.G)(e)&&"ownerSVGElement"in e}let ir=(e,t)=>e.depth-t.depth;class ii{constructor(){this.children=[],this.isDirty=!1}add(e){e0(this.children,e),this.isDirty=!0}remove(e){e1(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ir),this.isDirty=!1,this.children.forEach(e)}}let io=["TopLeft","TopRight","BottomLeft","BottomRight"],ia=io.length,is=e=>"string"==typeof e?parseFloat(e):e,il=e=>"number"==typeof e||K.test(e);function iu(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let id=ic(0,.5,nH),ih=ic(.5,.95,ea);function ic(e,t,n){return r=>r<e?0:r>t?1:n(nq(e,t,r))}function ip(e,t){e.min=t.min,e.max=t.max}function im(e,t){ip(e.x,t.x),ip(e.y,t.y)}function ig(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iv(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(H.test(t)&&(t=parseFloat(t),t=C(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=C(o.min,o.max,r);e===o&&(s-=t),e.min=iv(e.min,t,n,s,i),e.max=iv(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let iw=["x","scaleX","originX"],ix=["y","scaleY","originY"];function ib(e,t,n,r){iy(e.x,t,iw,n?n.x:void 0,r?r.x:void 0),iy(e.y,t,ix,n?n.y:void 0,r?r.y:void 0)}function iT(e){return 0===e.translate&&1===e.scale}function iP(e){return iT(e.x)&&iT(e.y)}function iA(e,t){return e.min===t.min&&e.max===t.max}function iS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iC(e,t){return iS(e.x,t.x)&&iS(e.y,t.y)}function ik(e){return rj(e.x)/rj(e.y)}function iM(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iR{constructor(){this.members=[]}add(e){e0(this.members,e),e.scheduleRender()}remove(e){if(e1(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iE=["","X","Y","Z"],iD=0;function ij(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iF),this.nodes.forEach(iz),this.nodes.forEach(i_),this.nodes.forEach(iI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ii)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e2),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=it(t)&&!(it(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;ed.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=eJ.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(eh(o),i(n-250))},ed.setup(o,!0),n=()=>eh(o),r5.hasAnimatedSinceResize&&(r5.hasAnimatedSinceResize=!1,this.nodes.forEach(iW))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||iq,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iC(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t8(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||iW(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(iH),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[t5];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ed,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iN);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i$);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iU),this.nodes.forEach(iV),this.nodes.forEach(iO)):this.nodes.forEach(i$),this.clearAllSnapshots();let e=eJ.now();ec.delta=N(0,1e3/60,e-ec.timestamp),ec.timestamp=e,ec.isProcessing=!0,ef.update.process(ec),ef.preRender.process(ec),ef.render.process(ec),ec.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iB),this.sharedNodes.forEach(iK)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ed.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ed.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rj(this.snapshot.measuredBox.x)||rj(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iP(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||R(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),iJ((t=r).x),iJ(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tn();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(i1))){let{scroll:e}=this.root;e&&(V(t.x,e.offset.x),V(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tn();if(im(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&im(t,e),V(t.x,i.offset.x),V(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=tn();im(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&F(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),R(r.latestValues)&&F(n,r.latestValues)}return R(this.latestValues)&&F(n,this.latestValues),n}removeTransform(e){let t=tn();im(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!R(n.latestValues))continue;M(n.latestValues)&&n.updateSnapshot();let r=tn();im(r,n.measurePageBox()),ib(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return R(this.latestValues)&&ib(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ec.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=ec.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tn(),this.relativeTargetOrigin=tn(),rI(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tn(),this.targetWithTransforms=tn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,rO(o.x,a.x,s.x),rO(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):im(this.target,this.layout.layoutBox),L(this.target,this.targetDelta)):im(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tn(),this.relativeTargetOrigin=tn(),rI(this.relativeTargetOrigin,this.target,e.target),im(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||M(this.parent.latestValues)||E(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ec.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;im(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o,a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&F(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,L(e,o)),r&&R(i.latestValues)&&F(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tn());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ig(this.prevProjectionDelta.x,this.projectionDelta.x),ig(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rV(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iM(this.projectionDelta.x,this.prevProjectionDelta.x)&&iM(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=te(),this.projectionDelta=te(),this.projectionDeltaWithTransform=te()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=te();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=tn(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(iX));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(iG(a.x,e.x,r),iG(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,f,p,m,g;rI(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=s,g=r,iY(f.x,p.x,m.x,g),iY(f.y,p.y,m.y,g),n&&(u=this.relativeTarget,c=n,iA(u.x,c.x)&&iA(u.y,c.y))&&(this.isProjectionDirty=!1),n||(n=tn()),im(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=C(0,n.opacity??1,id(r)),e.opacityExit=C(t.opacity??1,0,ih(r))):o&&(e.opacity=C(t.opacity??1,n.opacity??1,r));for(let i=0;i<ia;i++){let o=`border${io[i]}Radius`,a=iu(t,o),s=iu(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||il(a)===il(s)?(e[o]=Math.max(C(is(a),is(s),r),0),(H.test(s)||H.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=C(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,h,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ed.update(()=>{var t,n,r;let i;r5.hasAnimatedSinceResize=!0,no.layout++,this.motionValue||(this.motionValue=e6(0)),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{no.layout--},onComplete:()=>{no.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=eZ(t)?t:e6(t)).start(rf("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&i0(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tn();let t=rj(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rj(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}im(t,n),F(t,i),rV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iR),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ij("z",e,r,this.animationValues);for(let t=0;t<iE.length;t++)ij(`rotate${iE[t]}`,e,r,this.animationValues),ij(`skew${iE[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tZ(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tZ(t?.pointerEvents)||""),this.hasProjected&&!R(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tP){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=tP[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?tZ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iN),this.root.sharedNodes.clear()}}}function iV(e){e.updateLayout()}function iO(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rB(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rj(r);r.min=n[e].min,r.max=r.min+i}):i0(i,t.layoutBox,n)&&rB(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=rj(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=te();rV(a,n,t.layoutBox);let s=te();o?rV(s,e.applyTransform(r,!0),t.measuredBox):rV(s,n,t.layoutBox);let l=!iP(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=tn();rI(a,t.layoutBox,i.layoutBox);let s=tn();rI(s,n,o.layoutBox),iC(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iF(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iB(e){e.clearSnapshot()}function iN(e){e.clearMeasurements()}function i$(e){e.isLayoutDirty=!1}function iU(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iW(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iz(e){e.resolveTargetDelta()}function i_(e){e.calcProjection()}function iH(e){e.resetSkewAndRotation()}function iK(e){e.removeLeadSnapshot()}function iG(e,t,n){e.translate=C(t.translate,0,n),e.scale=C(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iY(e,t,n,r){e.min=C(t.min,n.min,r),e.max=C(t.max,n.max,r)}function iX(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let iq={duration:.45,ease:[.4,0,.1,1]},iZ=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iQ=iZ("applewebkit/")&&!iZ("chrome/")?Math.round:ea;function iJ(e){e.min=iQ(e.min),e.max=iQ(e.max)}function i0(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ik(t)-ik(n)))}function i1(e){return e!==e.root&&e.scroll?.wasRoot}let i2=iL({attachResizeListener:(e,t)=>rM(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i5={current:void 0},i6=iL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!i5.current){let e=new i2({});e.mount(window),e.setOptions({layoutScroll:!0}),i5.current=e}return i5.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var i3=n(79817);function i4(e,t){let n=(0,i3.K)(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function i9(e){return!("touch"===e.pointerType||rk.x||rk.y)}function i8(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ed.postRender(()=>i(t,rE(t)))}class i7 extends rP{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=i4(e,n),a=e=>{if(!i9(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{i9(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(i8(this.node,t,"Start"),e=>i8(this.node,e,"End"))))}unmount(){}}class oe extends rP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nr(rM(this.node.current,"focus",()=>this.onFocus()),rM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ot=n(834);let on=(e,t)=>!!t&&(e===t||on(e,t.parentElement)),or=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),oi=new WeakSet;function oo(e){return t=>{"Enter"===t.key&&e(t)}}function oa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function os(e){return rR(e)&&!(rk.x||rk.y)}function ol(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ed.postRender(()=>i(t,rE(t)))}class ou extends rP{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=i4(e,n),a=e=>{let r=e.currentTarget;if(!os(e))return;oi.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),oi.has(r)&&oi.delete(r),os(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||on(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,ot.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=oo(()=>{if(oi.has(n))return;oa(n,"down");let e=oo(()=>{oa(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oa(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),or.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ol(this.node,t,"Start"),(e,{success:t})=>ol(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let od=new WeakMap,oh=new WeakMap,oc=e=>{let t=od.get(e.target);t&&t(e)},of=e=>{e.forEach(oc)},op={some:0,all:1};class om extends rP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:a}=n,s={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:op[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;oh.has(n)||oh.set(n,{});let r=oh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(of,{root:e,...t})),r[i]}(s),od.set(e,l),t.observe(e),()=>{od.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let og=function(e,t){if("undefined"==typeof Proxy)return t4;let n=new Map,r=(n,r)=>t4(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,t4(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rA},exit:{Feature:rC},inView:{Feature:om},tap:{Feature:ou},focus:{Feature:oe},hover:{Feature:i7},pan:{Feature:r1},drag:{Feature:rJ,ProjectionNode:i6,MeasureLayout:r8},layout:{ProjectionNode:i6,MeasureLayout:r8}},(e,t)=>tF(e)?new tV(t):new tC(t,{allowProjection:e!==s.Fragment}))}
1,26529:(e,t,n)=>{n.d(t,{B:()=>r});let r="undefined"!=typeof window},26966:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},27197:(e,t,n)=>{n.d(t,{jH:()=>o});var r=n(56565);n(48561);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},30774:(e,t,n)=>{n.d(t,{Mz:()=>e1,i3:()=>e5,UC:()=>e2,bL:()=>e0,Bk:()=>eB});var r=n(56565);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},h={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function y(e){return v.has(f(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>h[e])}let x=["left","right"],b=["right","left"],T=["top","bottom"],P=["bottom","top"];function A(e){return e.replace(/left|right|bottom|top/g,e=>d[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function k(e,t,n){let r,{reference:i,floating:o}=e,a=y(t),s=m(y(t)),l=g(s),u=f(t),d="y"===a,h=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,v=i[l]/2-o[l]/2;switch(u){case"top":r={x:h,y:i.y-o.height};break;case"bottom":r={x:h,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:c};break;case"left":r={x:i.x-o.width,y:c};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=v*(n&&d?-1:1);break;case"end":r[s]+=v*(n&&d?-1:1)}return r}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=k(u,r,l),c=r,f={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:g,y:v,data:y,reset:w}=await m({x:d,y:h,initialPlacement:r,placement:c,strategy:i,middlewareData:f,re
1cts:u,platform:a,elements:{reference:e,floating:t}});d=null!=g?g:d,h=null!=v?v:h,f={...f,[o]:{...f[o],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(c=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:h}=k(u,c,l)),n=-1)}return{x:d,y:h,placement:c,strategy:i,middlewareData:f}};async function R(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=c(t,e),m=S(p),g=s[f?"floating"===h?"reference":"floating":h],v=C(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),y="floating"===h?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:l}):y);return{top:(v.top-b.top+m.top)/x.y,bottom:(b.bottom-v.bottom+m.bottom)/x.y,left:(v.left-b.left+m.left)/x.x,right:(b.right-v.right+m.right)/x.x}}function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return i.some(t=>e[t]>=0)}let j=new Set(["left","top"]);async function L(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===y(n),u=j.has(a)?-1:1,d=o&&l?-1:1,h=c(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof v&&(g="end"===s?-1*v:v),l?{x:g*d,y:m*u}:{x:m*u,y:g*d}}function V(){return"undefined"!=typeof window}function O(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!V()&&(e instanceof Node||e instanceof F(e).Node)}function N(e){return!!V()&&(e instanceof Element||e instanceof F(e).Element)}function $(e){return!!V()&&(e instanceof HTMLElement||e instanceof F(e).HTMLElement)}function U(e){return!!V()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof F(e).ShadowRoot)}let W=new Set(["inline","contents"]);function z(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!W.has(i)}let _=new Set(["table","td","th"]),H=[":popover-open",":modal"];function K(e){return H.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let G=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function q(e){let t=Z(),n=N(e)?ee(e):e;return G.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(O(e))}function ee(e){return F(e).getComputedStyle(e)}function et(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||I(e);return U(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=en(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&z(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=F(i);if(o){let e=ei(a);
1return t.concat(a,a.visualViewport||[],z(i)?i:[],e&&n?er(e):[])}return t.concat(i,er(i,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=$(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function ea(e){return N(e)?e:e.contextElement}function es(e){let t=ea(e);if(!$(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=eo(t),a=(o?s(n.width):n.width)/r,l=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=u(0);function eu(e){let t=F(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ed(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ea(e),s=u(1);t&&(r?N(r)&&(s=es(r)):s=es(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===F(a))&&i)?eu(a):u(0),d=(o.left+l.x)/s.x,h=(o.top+l.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(a){let e=F(a),t=r&&N(r)?F(r):r,n=e,i=ei(n);for(;i&&r&&t!==n;){let e=es(i),t=i.getBoundingClientRect(),r=ee(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,h*=e.y,c*=e.x,f*=e.y,d+=o,h+=a,i=ei(n=F(i))}}return C({width:c,height:f,x:d,y:h})}function eh(e,t){let n=et(e).scrollLeft;return t?t.left+n:ed(I(e)).left+n}function ec(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eh(e,n),y:n.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ep(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=F(e),r=I(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=Z();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=eh(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t){let t,n,o,s,l,u,d;r=I(e),t=I(r),n=et(r),o=r.ownerDocument.body,s=a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+eh(r),d=-n.scrollTop,"rtl"===ee(o).direction&&(u+=a(t.clientWidth,o.clientWidth)-s),i={width:s,height:l,x:u,y:d}}else if(N(t)){let e,r,o,a,s,l;r=(e=ed(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,a=$(t)?es(t):u(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,i={width:s,height:l,x:o*a.x,y:r*a.y}}else{let n=eu(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(i)}function em(e){return"static"===ee(e).position}function eg(e,t){if(!$(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=F(e);if(K(e))return r;if(!$(e)){let t=en(e);for(;t&&!J(t);){if(N(t)&&!em(t))return t;t=en(t)}return r}let i=eg(e,t);for(;i&&(n=i,_.has(O(n)))&&em(i);)i=eg(i,t);return i&&J(i)&&em(i)&&!q(i)?r:i||function(e){let t=en(e);for(;$(t)&&!J(t);){if(q(t))return t;if(K(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),i=I(t),o="fixed"===n,a=ed(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o)if(("body"!==O(t)||z(i))&&(s=et(t)),r){let e=ed(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eh(i));o&&!r&&i&&(l.x=eh(i));let d=!i||r||o?u(0):ec(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=I(r),s=!!t&&K(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},d=u(1),h=u(0),c=$(r);if((c||!c&&!o)&&(("body"!==O(r)||z(a))&&(l=et(r)),$(r))){let e=ed(r);d=es(r),h.x=e.x+r.clientLeft,h.y=e.y+r.clientTop}let f=!a||c||o?u(0):ec(a,l);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+f.x,y:n.y*d.y-l.scrollTop*d.y+h.y+f.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>N(e)&&"body"!==O(e)),i=null,o="fixed"===ee(e).position,a=o?en(e):e;for(;N(a)&&!J(a);){let t=ee(a),n=q(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ef.has(i.position)||z(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!N(r)||J(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=ep(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ep(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ev,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:es,isElement:N,isRTL:function(e){return"rtl"===ee(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:h,padding:f=0}=c(e,t)||{};if(null==h)return{};let v=S(f),w={x:n,y:r},x=m(y(i)),b=g(x),T=await l.getDimensions(h),P="y"===x,A=P?"clientHeight":"clientWidth",C=s.reference[b]+s.reference[x]-w[x]-s.floating[b],k=w[x]-s.reference[x],M=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),R=M?M[A]:0;R&&await (null==l.isElement?void 0:l.isElement(M))||(R=u.floating[A]||s.floating[b]);let E=R/2-T[b]/2-1,D=o(v[P?"top":"left"],E),j=o(v[P?"bottom":"right"],E),L=R-T[b]-j,V=R/2-T[b]/2+(C/2-k/2),O=a(D,o(V,L)),F=!d.arrow&&null!=p(i)&&V!==O&&s.reference[b]/2-(V<D?D:j)-T[b]/2<0,I=F?V<D?V-D:V-L:0;return{[x]:w[x]+I,data:{[x]:O,centerOffset:V-O-I,...F&&{alignmentOffset:I}},reset:F}}});var eT=n(44216),eP="undefined"!=typeof document?r.useLayoutEffect:function(){};function eA(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eA(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){let n=eS(e);return Math.round(t*n)/n}function ek(e){let t=r.useRef(e);return eP(()=>{t.current=e}),t}var eM=n(59079),eR=n(48561),eE=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eR.jsx)(eM.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eR.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eE.displayName="Arrow";var eD=n(39108),ej=n(54308),eL=n(75247),eV=n(80069),eO=n(59299),eF="Popper",[eI,eB]=(0,ej.A)(eF),[eN,e$]=eI(eF),eU=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eR.jsx)(eN,{scope:t,anchor:i,onAnchorChange:o,children:n})};eU.displayName=eF;var eW="PopperAnchor",ez=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=e$(eW,n),s=r.useRef(null),l=(0,eD.s)(t,s),u=r.useRef(null);return r.useEffect(()=>{let e=u.current;u.current=i?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),i?null:(0,eR.jsx)(eM.sG.div,{...o,ref:l})});ez.displayName=eW;var e_="PopperContent",[eH,eK]=eI(e_),eG=r.forwardRef((e,t)=>{var n,i,s,u,d,h,v,S,C,k,V,O,F,B,N,$,U,W,z,_,H;let{__scopePopper:K,side:G="bottom",sideOffset:Y=0,align:X="center",alignOffset:q=0,arrowPadding:Z=0,avoidCollisions:Q=!0,collisionBoundary:J=[],collisionPadding:ee=0,sticky:et="partial",hideWhenDetached:en=!1,updatePositionStrategy:ei="optimized",onPlaced:eo,...es}=e,el=e$(e_,K),[eu,eh]=r.useState(null),ec=(0,eD.s)(t,e=>eh(e)),[ef,ep]=r.useState(null),em=(0,eO.X)(ef),eg=em?.width??0,ev=em?.height??0,ey="number"==typeof ee?ee:{top:0,right:0,bottom:0,left:0,...ee},eE=Array.isArray(J)?J:[J],ej=eE.length>0,eF={padding:ey,boundary:eE.filter(eZ),altBoundary:ej},{refs:eI,floatingStyles:eB,placement:eN,isPositioned:eU,middlewareData:eW}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[h,c]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(i);eA(f,i)||p(i);let[m,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==P.current&&(P.current=e,g(e))},[]),x=r.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),b=a||m,T=s||v,P=r.useRef(null),A=r.useRef(null),S=r.useRef(h),C=null!=u,k=ek(u),R=ek(o),E=ek(d),D=r.useCallback(()=>{var e,r;let i,o,a;if(!P.current||!A.current)return;let s={placement:t,strategy:n,middleware:f};R.current&&(s.platform=R.current),(e=P.current,r=A.current,i=new Map,a={...(o={platform:ew,...s}).platform,_c:i},M(e,r,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==E.current};j.current&&!eA(S.current,t)&&(S.current=t,eT.flushSync(()=>{c(t)}))})},[f,t,n,R,E]);eP(()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,c(e=>({...e,isPositioned:!1})))},[d]);let j=r.useRef(!1);eP(()=>(j.current=!0,()=>{j.current=!1}),[]),eP(()=>{if(b&&(P.current=b),T&&(A.current=T),b&&T){if(k.current)return k.current(b,T,D);D()}},[b,T,D,k,C]);let L=r.useMemo(()=>({reference:P,floating:A,setReference:w,setFloating:x}),[w,x]),V=r.useMemo(()=>({reference:b,floating:T}),[b,T]),O=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!V.floating)return e;let t=eC(V.floating,h.x),r=eC(V.floating,h.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eS(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,V.floating,h.x,h.y]);return r.useMemo(()=>({...h,update:D,refs:L,elements:V,floatingStyles:O}),[h,D,L,V,O])}({strategy:"fixed",placement:G+("center"!==X?"-"+X:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:h="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,f=ea(e),p=s||u?[...f?er(f):[],...er(t)]:[];
1p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&h?function(e,t){let n,r=null,i=I(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(d,h){void 0===d&&(d=!1),void 0===h&&(h=1),s();let c=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=c;if(d||t(),!m||!g)return;let v={rootMargin:-l(p)+"px "+-l(i.clientWidth-(f+m))+"px "+-l(i.clientHeight-(p+g))+"px "+-l(f)+"px",threshold:a(0,o(1,h))||1},y=!0;function w(t){let r=t[0].intersectionRatio;if(r!==h){if(!y)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ex(c,e.getBoundingClientRect())||u(),y=!1}try{r=new IntersectionObserver(w,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(w,v)}r.observe(e)}(!0),s}(f,n):null,g=-1,v=null;d&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!c&&v.observe(f),v.observe(t));let y=c?ed(e):null;return c&&function t(){let r=ed(e);y&&!ex(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===ei}),elements:{reference:el.anchor},middleware:[{...{name:"offset",options:s=n={mainAxis:Y+ev,alignmentAxis:q},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:a}=e,l=await L(e,s);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:o}}}},options:[n,i]},Q&&{...{name:"shift",options:C=v={mainAxis:!0,crossAxis:!1,limiter:"partial"===et?{...(void 0===(h=u)&&(h={}),{options:h,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=c(h,e),u={x:t,y:n},d=y(r),p=m(d),g=u[p],v=u[d],w=c(a,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){let e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+x.mainAxis,n=i.reference[p]+i.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(l){var b,T;let e="y"===p?"width":"height",t=j.has(f(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(b=o.offset)?void 0:b[d])||0)+(t?0:x.crossAxis),a=i.reference[d]+i.reference[e]+(t?0:(null==(T=o.offset)?void 0:T[d])||0)-(t?x.crossAxis:0);v<n?v=n:v>a&&(v=a)}return{[p]:g,[d]:v}}}),options:[u,d]}:void 0,...eF},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=c(C,e),d={x:t,y:n},h=await R(e,u),p=y(f(r)),g=m(p),v=d[g],w=d[p];if(i){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=v+h[e],r=v-h[t];v=a(n,o(v,r))}
1if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=w+h[e],r=w-h[t];w=a(n,o(w,r))}let x=l.fn({...e,[g]:v,[p]:w});return{...x,data:{x:x.x-t,y:x.y-n,enabled:{[g]:i,[p]:s}}}}},options:[v,S]},Q&&{...{name:"flip",options:O=k={...eF},async fn(e){var t,n,r,i,o,a,s,l;let u,d,h,{placement:v,middlewareData:S,rects:C,initialPlacement:k,platform:M,elements:E}=e,{mainAxis:D=!0,crossAxis:j=!0,fallbackPlacements:L,fallbackStrategy:V="bestFit",fallbackAxisSideDirection:F="none",flipAlignment:I=!0,...B}=c(O,e);if(null!=(t=S.arrow)&&t.alignmentOffset)return{};let N=f(v),$=y(k),U=f(k)===k,W=await (null==M.isRTL?void 0:M.isRTL(E.floating)),z=L||(U||!I?[A(k)]:(u=A(k),[w(k),u,w(u)])),_="none"!==F;!L&&_&&z.push(...(d=p(k),h=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;case"left":case"right":return t?T:P;default:return[]}}(f(k),"start"===F,W),d&&(h=h.map(e=>e+"-"+d),I&&(h=h.concat(h.map(w)))),h));let H=[k,...z],K=await R(e,B),G=[],Y=(null==(n=S.flip)?void 0:n.overflows)||[];if(D&&G.push(K[N]),j){let e,t,n,r,i=(a=v,s=C,void 0===(l=W)&&(l=!1),e=p(a),n=g(t=m(y(a))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=A(r)),[r,A(r)]);G.push(K[i[0]],K[i[1]])}if(Y=[...Y,{placement:v,overflows:G}],!G.every(e=>e<=0)){let e=((null==(r=S.flip)?void 0:r.index)||0)+1,t=H[e];if(t&&("alignment"!==j||$===y(t)||Y.every(e=>y(e.placement)!==$||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(i=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(V){case"bestFit":{let e=null==(o=Y.filter(e=>{if(_){let t=y(e.placement);return t===$||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=k}if(v!==n)return{reset:{placement:n}}}return{}}},options:[k,V]},{...{name:"size",options:N=F={...eF,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:s,rects:l,platform:u,elements:d}=e,{apply:h=()=>{},...m}=c(N,e),g=await R(e,m),v=f(s),w=p(s),x="y"===y(s),{width:b,height:T}=l.floating;"top"===v||"bottom"===v?(r=v,i=w===(await (null==u.isRTL?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(i=v,r="end"===w?"top":"bottom");let P=T-g.top-g.bottom,A=b-g.left-g.right,S=o(T-g[r],P),C=o(b-g[i],A),k=!e.middlewareData.shift,M=S,E=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(E=A),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(M=P),k&&!w){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);x?E=b-2*(0!==e||0!==t?e+t:a(g.left,g.right)):M=T-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await h({...e,availableWidth:E,availableHeight:M});let D=await u.getDimensions(d.floating);return b!==D.width||T!==D.height?{reset:{rects:!0}}:{}}},options:[F,B]},ef&&{...{name:"arrow",options:W=$={element:ef,padding:Z},fn(e){let{element:t,padding:n}="function"==typeof W?W(e):W;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eb({element:t.current,padding:n}).fn(e):{}:t?eb({element:t,padding:n}).fn(e):{}}},options:[$,U]},eQ({arrowWidth:eg,arrowHeight:ev}),en&&{...{name:"hide",options:H=z={strategy:"referenceHidden",...eF},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=c(H,e);switch(n){case"referenceHidden":{let n=E(await R(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=E(await R(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}},options:[z,_]}]}),[ez,eK]=eJ(eN),eG=(0,eL.c)(eo);(0,eV.N)(()=>{eU&&eG?.()},[eU,eG]);let eY=eW.arrow?.x,eX=eW.arrow?.y,eq=eW.arrow?.centerOffset!==0,[e0,e1]=r.useState();return(0,eV.N)(()=>{eu&&e1(window.getComputedStyle(eu).zIndex)},[eu]),(0,eR.jsx)("div",{ref:eI.setFloating,"data-radix-popper-content-wrapper":"",style:{...eB,transform:eU?eB.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e0,"--radix-popper-transform-origin":[eW.transformOrigin?.x,eW.transformOrigin?.y].join(" "),...eW.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eR.jsx)(eH,{scope:K,placedSide:ez,onArrowChange:ep,arrowX:eY,arrowY:eX,shouldHideArrow:eq,children:(0,eR.jsx)(eM.sG.div,{"data-side":ez,"data-align":eK,...es,ref:ec,style:{...es.style,animation:eU?void 0:"none"}})})})});eG.displayName=e_;var eY="PopperArrow",eX={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eq=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eK(eY,n),o=eX[i.placedSide];return(0,eR.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eR.jsx)(eE,{...r,ref:t,style:{...r.style,display:"block"}})})});function eZ(e){return null!==e}eq.displayName=eY;var eQ=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=eJ(n),d={start:"0%",center:"50%",end:"100%"}[u],h=(i.arrow?.x??0)+a/2,c=(i.arrow?.y??0)+s/2,f="",p="";return"bottom"===l?(f=o?d:`${h}px`,p=`${-s}px`):"top"===l?(f=o?d:`${h}px`,p=`${r.floating.height+s}px`):"right"===l?(f=`${-s}px`,p=o?d:`${c}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=o?d:`${c}px`),{data:{x:f,y:p}}}});function eJ(e){let[t,n="center"]=e.split("-");return[t,n]}var e0=eU,e1=ez,e2=eG,e5=eq},31045:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("sun-dim",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M20 12h.01",key:"1ykeid"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M4 12h.01",key:"158zrr"}],["path",{d:"M17.657 6.343h.01",key:"31pqzk"}],["path",{d:"M17.657 17.657h.01",key:"jehnf4"}],["path",{d:"M6.343 17.657h.01",key:"gdk6ow"}],["path",{d:"M6.343 6.343h.01",key:"1uurf0"}]])},31535:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},35325:(e,t,n)=>{n.d(t,{b:()=>s});var r=n(56565),i=n(59079),o=n(48561),a=r.forwardRef((e,t)=>(0,o.jsx)(i.sG.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var s=a},36800:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},38852:(e,t,n)=>{e.exports=n(79627)},41398:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},47707:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},53043:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},53706:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return u}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(57484),a=n(82546),s=n(24026),l=o._(n(67186));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[60,70,75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let d=s.Image},55264:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(56565),i=n(54308),o=n(39108),a=n(5864),s=n(48561);function l(e){let t=e+"CollectionProvider",[n,l]=(0,i.A)(t),[u,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};h.displayName=t;let c=e+"CollectionSlot",f=(0,a.TL)(c),p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=d(c,n),a=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(f,{ref:a,children:r})});p.displayName=c;let m=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,a.TL)(m),y=r.forwardRef((e,t)=>
1{let{scope:n,children:i,...a}=e,l=r.useRef(null),u=(0,o.s)(t,l),h=d(m,n);return r.useEffect(()=>(h.itemMap.set(l,{ref:l,...a}),()=>void h.itemMap.delete(l))),(0,s.jsx)(v,{...{[g]:""},ref:u,children:i})});return y.displayName=m,[{Provider:h,Slot:p,ItemSlot:y},function(t){let n=d(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}var u=new WeakMap;function d(e,t){var n,r;let i,o,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(n=e,r=t,i=n.length,(a=(o=h(r))>=0?o:i+o)<0||a>=i?-1:a);return -1===s?void 0:e[s]}function h(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,a=h(e),s=a>=0?a:o+a,l=s<0||s>=o?-1:s;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;a<0&&s++;let d=[...this.#e],c=!1;for(let e=s;e<u;e++)if(s===e){let o=d[e];d[e]===t&&(o=d[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{c||d[e-1]!==t||(c=!0);let n=d[c?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}})},56293:(e,t,n)=>{n.d(t,{default:()=>i.a});var r=n(53706),i=n.n(r)},56379:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]])},59191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])}
1,59299:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(56565),i=n(80069);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},60046:(e,t,n)=>{n.d(t,{t:()=>r});let r=(0,n(56565).createContext)(null)},61712:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},62676:(e,t,n)=>{n.d(t,{G:()=>r});function r(e){return"object"==typeof e&&null!==e}},63143:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])},66438:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},67007:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(56565).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},72841:(e,t,n)=>{n.d(t,{xQ:()=>o});var r=n(56565),i=n(60046);function o(e=!0){let t=(0,r.useContext)(i.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:s}=t,l=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return s(l)},[e]);let u=(0,r.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!n&&a?[!1,u]:[!0]}},74360:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(56565);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},76953:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},78234:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},79627:(e,t,n)=>{var r=n(56565),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,d=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&d({inst:i})},[e,n,t]),a(function(){return u(i)&&d({inst:i}),e(function(){u(i)&&d({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},79817:(e,t,n)=>{n.d(t,{K:()=>r});function r(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}},81522:(e,t,n)=>{n.d(t,{D:()=>d,N:()=>h});var r=n(56565),i=(e,t,n,r,i,o,a,s)=>{let l=document.documentElement,u=["light","dark"];function d(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?i.map(e=>o[e]||e):i;n?(l.classList.remove(...r),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),n=t,s&&u.includes(n)&&(l.style.colorScheme=n)}if(r)d(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(r)}catch(e){}},o=["light","dark"],a="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=r.createContext(void 0),u={setTheme:e=>{},themes:[]},d=()=>{var e;return null!=(e=r.useContext(l))?e:u},h=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(f,{...e}),c=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:i=!0,storageKey:s="theme",themes:u=c,defaultTheme:d=n?"system":"light",attribute:h="data-theme",value:f,children:y,nonce:w,scriptProps:x})=>{let[b,T]=r.useState(()=>m(s,d)),[P,A]=r.useState(()=>"system"===b?v():b),S=f?Object.values(f):u,C=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let a=f?f[r]:r,s=t?g(w):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...S),a&&l.classList.add(a)):e.startsWith("data-")&&(a?l.setAttribute(e,a):l.removeAttribute(e))};if(Array.isArray(h)?h.forEach(u):u(h),i){let e=o.includes(d)?d:null,t=o.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[w]),k=r.useCallback(e=>{let t="function"==typeof e?e(b):e;T(t);try{localStorage.setItem(s,t)}catch(e){}},[b]),M=r.useCallback(t=>{A(v(t)),"system"===b&&n&&!e&&C("system")},[b,e]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?T(e.newValue):k(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),r.useEffect(()=>{C(null!=e?e:b)},[e,b]);let R=r.useMemo(()=>({theme:b,setTheme:k,forcedTheme:e,resolvedTheme:"system"===b?P:b,themes:n?[...u,"system"]:u,systemTheme:n?P:void 0}),[b,k,e,P,n,u]);return r.createElement(l.Provider,{value:R},r.createElement(p,{forcedTheme:e,storageKey:s,attribute:h,enableSystem:n,enableColorScheme:i,defaultTheme:d,value:f,themes:u,nonce:w,scriptProps:x}),y)},p=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:l,themes:u,nonce:d,scriptProps:h})=>{let c=JSON.stringify([n,t,s,e,u,l,o,a]).slice(1,-1);return r.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${c})`}})}),m=(e,t)=>
1{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},83374:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]])},84145:(e,t,n)=>{n.d(t,{RG:()=>b,bL:()=>E,q7:()=>D});var r=n(56565),i=n(41220),o=n(55264),a=n(39108),s=n(54308),l=n(79171),u=n(59079),d=n(75247),h=n(94139),c=n(27197),f=n(48561),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,w]=(0,o.N)(g),[x,b]=(0,s.A)(g,[w]),[T,P]=x(g),A=r.forwardRef((e,t)=>(0,f.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(S,{...e,ref:t})})}));A.displayName=g;var S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:l,currentTabStopId:v,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:P=!1,...A}=e,S=r.useRef(null),C=(0,a.s)(t,S),k=(0,c.jH)(l),[M,E]=(0,h.i)({prop:v,defaultProp:w??null,onChange:x,caller:g}),[D,j]=r.useState(!1),L=(0,d.c)(b),V=y(n),O=r.useRef(!1),[F,I]=r.useState(0);return r.useEffect(()=>{let e=S.current;if(e)return e.addEventListener(p,L),()=>e.removeEventListener(p,L)},[L]),(0,f.jsx)(T,{scope:n,orientation:o,dir:k,loop:s,currentTabStopId:M,onItemFocus:r.useCallback(e=>E(e),[E]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>I(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:D||0===F?-1:0,"data-orientation":o,...A,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=V().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),P)}}O.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>j(!1))})})}),C="RovingFocusGroupItem",k=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:d,...h}=e,c=(0,l.B)(),p=s||c,m=P(C,n),g=m.currentTabStopId===p,w=y(n),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:T}=m;return r.useEffect(()=>{if(o)return x(),()=>b()},[o,x,b]),(0,f.jsx)(v.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,f.jsx)(u.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...h,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return M[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=w().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=m.loop?(n=i,r=o+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>R(i))}}),children:"function"==typeof d?d({isCurrentTabStop:g,hasTabStop:null!=T}):d})})});k.displayName=C;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var E=A,D=k},86867:(e,t,n)=>{n.d(t,{N:()=>y});
1var r=n(48561),i=n(56565),o=n(87600),a=n(74360),s=n(96945),l=n(60046),u=n(834),d=n(67007);class h extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t,anchorX:n,root:o}){let a=(0,i.useId)(),s=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(d.Q);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:d,right:h}=l.current;if(t||!s.current||!e||!r)return;let c="left"===n?`left: ${d}`:`right: ${h}`;s.current.dataset.motionPopId=a;let f=document.createElement("style");u&&(f.nonce=u);let p=o??document.head;return p.appendChild(f),f.sheet&&f.sheet.insertRule(` 2 [data-motion-pop-id="${a}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${r}px !important; 6 ${c}px !important; 7 top: ${i}px !important; 8 } 9 `),()=>{p.contains(f)&&p.removeChild(f)}},[t]),(0,r.jsx)(h,{isPresent:t,childRef:s,sizeRef:l,children:i.cloneElement(e,{ref:s})})}let f=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:d,anchorX:h,root:f})=>{let m=(0,a.M)(p),g=(0,i.useId)(),v=!0,y=(0,i.useMemo)(()=>(v=!1,{id:g,initial:t,isPresent:n,custom:s,onExitComplete:e=>
9{for(let t of(m.set(e,!0),m.values()))if(!t)return;o&&o()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[n,m,o]);return u&&v&&(y={...y}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[n]),i.useEffect(()=>{n||m.size||!o||o()},[n]),"popLayout"===d&&(e=(0,r.jsx)(c,{isPresent:n,anchorX:h,root:f,children:e})),(0,r.jsx)(l.t.Provider,{value:y,children:e})};function p(){return new Map}var m=n(72841);let g=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync",propagate:h=!1,anchorX:c="left",root:p})=>{let[y,w]=(0,m.xQ)(h),x=(0,i.useMemo)(()=>v(e),[e]),b=h&&!y?[]:x.map(g),T=(0,i.useRef)(!0),P=(0,i.useRef)(x),A=(0,a.M)(()=>new Map),[S,C]=(0,i.useState)(x),[k,M]=(0,i.useState)(x);(0,s.E)(()=>{T.current=!1,P.current=x;for(let e=0;e<k.length;e++){let t=g(k[e]);b.includes(t)?A.delete(t):!0!==A.get(t)&&A.set(t,!1)}},[k,b.length,b.join("-")]);let R=[];if(x!==S){let e=[...x];for(let t=0;t<k.length;t++){let n=k[t],r=g(n);b.includes(r)||(e.splice(t,0,n),R.push(n))}return"wait"===d&&R.length&&(e=R),M(v(e)),C(x),null}let{forceRender:E}=(0,i.useContext)(o.L);return(0,r.jsx)(r.Fragment,{children:k.map(e=>{let i=g(e),o=(!h||!!y)&&(x===k||b.includes(i));return(0,r.jsx)(f,{isPresent:o,initial:(!T.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:d,root:p,onExitComplete:o?void 0:()=>{if(!A.has(i))return;A.set(i,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(E?.(),M(P.current),h&&w?.(),l&&l())},anchorX:c,children:e},i)})})}},87600:(e,t,n)=>{n.d(t,{L:()=>r});let r=(0,n(56565).createContext)({})},92017:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(61102).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},93895:(e,t,n)=>{n.d(t,{UC:()=>O,ZL:()=>V,bL:()=>j,l9:()=>L});
9var r,i=n(56565),o=n(41220),a=n(54308),s=n(94139),l=n(39108),u=n(30774),d=n(54543),h=n(57941),c=n(59079),f=n(48762),p=n(48561),m="HoverCard",[g,v]=(0,a.A)(m,[u.Bk]),y=(0,u.Bk)(),[w,x]=g(m),b=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:l=700,closeDelay:d=300}=e,h=y(t),c=i.useRef(0),f=i.useRef(0),g=i.useRef(!1),v=i.useRef(!1),[x,b]=(0,s.i)({prop:r,defaultProp:o??!1,onChange:a,caller:m}),T=i.useCallback(()=>{clearTimeout(f.current),c.current=window.setTimeout(()=>b(!0),l)},[l,b]),P=i.useCallback(()=>{clearTimeout(c.current),g.current||v.current||(f.current=window.setTimeout(()=>b(!1),d))},[d,b]),A=i.useCallback(()=>b(!1),[b]);return i.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(f.current)},[]),(0,p.jsx)(w,{scope:t,open:x,onOpenChange:b,onOpen:T,onClose:P,onDismiss:A,hasSelectionRef:g,isPointerDownOnContentRef:v,children:(0,p.jsx)(u.bL,{...h,children:n})})};b.displayName=m;var T="HoverCardTrigger",P=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=x(T,n),a=y(n);return(0,p.jsx)(u.Mz,{asChild:!0,...a,children:(0,p.jsx)(c.sG.a,{"data-state":i.open?"open":"closed",...r,ref:t,onPointerEnter:(0,o.mK)(e.onPointerEnter,D(i.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,D(i.onClose)),onFocus:(0,o.mK)(e.onFocus,i.onOpen),onBlur:(0,o.mK)(e.onBlur,i.onClose),onTouchStart:(0,o.mK)(e.onTouchStart,e=>e.preventDefault())})})});P.displayName=T;var A="HoverCardPortal",[S,C]=g(A,{forceMount:void 0}),k=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=x(A,t);return(0,p.jsx)(S,{scope:t,forceMount:n,children:(0,p.jsx)(h.C,{present:n||o.open,children:(0,p.jsx)(d.Z,{asChild:!0,container:i,children:r})})})};k.displayName=A;var M="HoverCardContent",R=i.forwardRef((e,t)=>{let n=C(M,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,a=x(M,e.__scopeHoverCard);return(0,p.jsx)(h.C,{present:r||a.open,children:(0,p.jsx)(E,{"data-state":a.open?"open":"closed",...i,onPointerEnter:(0,o.mK)(e.onPointerEnter,D(a.onOpen)),onPointerLeave:(0,o.mK)(e.onPointerLeave,D(a.onClose)),ref:t})})});R.displayName=M;var E=i.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:h,...c}=e,m=x(M,n),g=y(n),v=i.useRef(null),w=(0,l.s)(t,v),[b,T]=i.useState(!1);return i.useEffect(()=>{if(b){let e=document.body;return r=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r,e.style.webkitUserSelect=r}}},[b]),i.useEffect(()=>{if(v.current){let e=()=>{T(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),i.useEffect(()=>{v.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(v.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,p.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:h,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:(0,o.mK)(d,e=>{e.preventDefault()}),onDismiss:m.onDismiss,children:(0,p.jsx)(u.UC,{...g,...c,onPointerDown:(0,o.mK)(c.onPointerDown,e=>{e.currentTarget.contains(e.target)&&T(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:w,style:{...c.style,userSelect:b?"text":void 0,WebkitUserSelect:b?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function D(e){return t=>"touch"===t.pointerType?void 0:e()}i.forwardRef((e,t)=>
9{let{__scopeHoverCard:n,...r}=e,i=y(n);return(0,p.jsx)(u.i3,{...i,...r,ref:t})}).displayName="HoverCardArrow";var j=b,L=P,V=k,O=R},96945:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(56565);let i=n(26529).B?r.useLayoutEffect:r.useEffect},98919:(e,t,n)=>{n.d(t,{q7:()=>R,bL:()=>M});var r=n(56565),i=n(54308),o=n(59079),a=n(84145),s=n(41220),l=n(94139),u=n(48561),d="Toggle",h=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[h,c]=(0,l.i)({prop:n,onChange:i,defaultProp:r??!1,caller:d});return(0,u.jsx)(o.sG.button,{type:"button","aria-pressed":h,"data-state":h?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:(0,s.mK)(e.onClick,()=>{e.disabled||c(!h)})})});h.displayName=d;var c=n(27197),f="ToggleGroup",[p,m]=(0,i.A)(f,[a.RG]),g=(0,a.RG)(),v=r.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,u.jsx)(x,{...r,ref:t});if("multiple"===n)return(0,u.jsx)(b,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${f}\``)});v.displayName=f;var[y,w]=p(f),x=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,d]=(0,l.i)({prop:n,defaultProp:i??"",onChange:o,caller:f});return(0,u.jsx)(y,{scope:e.__scopeToggleGroup,type:"single",value:r.useMemo(()=>s?[s]:[],[s]),onItemActivate:d,onItemDeactivate:r.useCallback(()=>d(""),[d]),children:(0,u.jsx)(A,{...a,ref:t})})}),b=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...a}=e,[s,d]=(0,l.i)({prop:n,defaultProp:i??[],onChange:o,caller:f}),h=r.useCallback(e=>d((t=[])=>[...t,e]),[d]),c=r.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,u.jsx)(y,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:h,onItemDeactivate:c,children:(0,u.jsx)(A,{...a,ref:t})})});v.displayName=f;var[T,P]=p(f),A=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:l,loop:d=!0,...h}=e,f=g(n),p=(0,c.jH)(l),m={role:"group",dir:p,...h};return(0,u.jsx)(T,{scope:n,rovingFocus:i,disabled:r,children:i?(0,u.jsx)(a.bL,{asChild:!0,...f,orientation:s,dir:p,loop:d,children:(0,u.jsx)(o.sG.div,{...m,ref:t})}):(0,u.jsx)(o.sG.div,{...m,ref:t})})}),S="ToggleGroupItem",C=r.forwardRef((e,t)=>{let n=w(S,e.__scopeToggleGroup),i=P(S,e.__scopeToggleGroup),o=g(e.__scopeToggleGroup),s=n.value.includes(e.value),l=i.disabled||e.disabled,d={...e,pressed:s,disabled:l},h=r.useRef(null);return i.rovingFocus?(0,u.jsx)(a.q7,{asChild:!0,...o,focusable:!l,active:s,ref:h,children:(0,u.jsx)(k,{...d,ref:t})}):(0,u.jsx)(k,{...d,ref:t})});C.displayName=S;var k=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,o=w(S,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===o.type?a:void 0;return(0,u.jsx)(h,{...s,...i,ref:t,onPressedChange:e=>{e?o.onItemActivate(r):o.onItemDeactivate(r)}})}),M=v,R=C}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.