1import{d as G,m as E,a as O,c as _,w as tt,b as Be,q as Dt,Q as kt,e as it,ap as Hr,aq as $,ar as Cn,as as _r,at as Kr,f as wt,k as on,i as Zt,g as Qt,j as Mt,s as Jt,t as te,au as L,av as ae,aw as Oe,ax as Nt,z as pt,ay as Gr,az as Ht,aA as Xs,aB as _t,aC as Yr,aD as qs,aE as Xr,aF as qr,aG as Zr,o as Ie,aH as Zs,aI as Qr,aJ as Jr,aK as z,aL as Fe,aM as le,aN as Pe,aO as Qs,y as ue,a3 as ta,aP as ea,r as vt,aQ as na,P as ia,h as sa,am as oa,aR as ra,aS as Js,aT as aa,aU as la,a0 as ua}from"./CfmJu-Wg.js";const to=G({name:"MdsAnchor",__name:"anchor",props:{role:{},tabindex:{},href:{},target:{},rel:{},nuxt:{type:Boolean},prefetch:{type:Boolean},download:{type:Boolean},trackingData:{},ariaCurrent:{type:[String,Boolean]}},setup(t){const e=t,n=E(()=>e.nuxt&&e.target!=="_blank"),i=E(()=>e.href?/^https?:\/\//.test(e.href):!1),s=E(()=>{if(e.rel)return e.rel;if(e.target==="_blank"||i.value)return"noopener noreferrer"}),r=E(()=>({...n.value?{to:e.href,prefetch:e.prefetch??!1}:{href:e.href,target:e.target,rel:s.value,...e.download&&{download:!0}},...e.role!==void 0&&{role:e.role},...e.tabindex!==void 0&&{tabindex:e.tabindex},...e.ariaCurrent!=null&&e.ariaCurrent!==!1&&{"aria-current":e.ariaCurrent}}));return(o,a)=>(O(),_(kt(n.value?it(Hr):"a"),Dt(r.value,{class:"ds-focusable","data-track-component-name":o.trackingData.componentName,"data-track-text":o.trackingData.text,"data-track-title":o.trackingData.title?o.trackingData.title:void 0,"data-track-level":o.trackingData.level?o.trackingData.level:void 0}),{default:tt(()=>[Be(o.$slots,"default")]),_:3},16,["data-track-component-name","data-track-text","data-track-title","data-track-level"]))}}),eo=(t,e)=>{if(!(!t&&!e))return{...t,...e}},vd=(t,e)=>{if(t)return{...t,trackingData:eo(e,t.trackingData)}},ca=["href","target","rel","nuxt","prefetch","download","role","tabindex","ariaCurrent"];function ri(t,e){const n={};for(const i of e)t[i]!==void 0&&(n[i]=t[i]);return n}const no=(t,e,n)=>E(()=>{const i=$(t),s=$(e);return i.disabled?{...n?.keepWhenDisabled?ri(i,n.keepWhenDisabled):{},"aria-disabled":"true",role:"link",trackingData:s}:{...ri(i,ca),trackingData:s}}),rn=G({name:"MdsIcon",__name:"icon",props:{category:{},name:{},size:{default:16}},setup(t){const e=Cn(t,["category","name","size"]),n=_r(Kr,"span"),i=r=>r.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),s=E(()=>!t.category||!t.name?null:`${i(t.category)}:${i(t.name)}`);return(r,o)=>(O(),_(kt(it(n)),Dt({class:"flex"},e,{name:s.value,"data-icon-category":r.category,"data-icon-name":r.name,style:{fontSize:`${r.size}px`}}),null,16,["name","data-icon-category","data-icon-name","style"]))}}),ha={class:"grid overflow-clip"},ai="motion-safe:pointer:transition motion-safe:pointer:duration-500 motion-safe:pointer:ease-spring",fa=G({__name:"animated-icon",props:{icon:{},animation:{}},setup(t){const e=E(()=>t.icon.size??16),n=E(()=>t.animation&&t.animation in i),i={base:{outgoing:"motion-safe:pointer:group-hover:opacity-0 motion-safe:pointer:group-hover/animate-button-icon:opacity-0",incoming:"motion-safe:pointer:flex motion-safe:pointer:group-hover:opacity-100 motion-safe:pointer:group-hover/animate-button-icon:opacity-100"},"translate-right":{outgoing:"motion-safe:pointer:group-hover:translate-x-full motion-safe:pointer:group-hover/animate-button-icon:translate-x-full",incoming:"-translate-x-full motion-safe:pointer:group-hover:translate-x-0 motion-safe:pointer:group-hover/animate-button-icon:translate-x-0"},"translate-left":{outgoing:"motion-safe:pointer:group-hover:-translate-x-full motion-safe:pointer:group-hover/animate-button-icon:-translate-x-full",incoming:"translate-x-full motion-safe:pointer:group-hover:translate-x-0 motion-safe:pointer:group-hover/animate-button-icon:translate-x-0"},"translate-up":{outgoing:"motion-safe:pointer:group-hover:-translate-y-full motion-safe:pointer:group-hover/animate-button-icon:-translate-y-full",incoming:"translate-y-full motion-safe:pointer:group-hover:translate-y-0 motion-safe:pointer:group-hover/animate-button-icon:translate-y-0"},"translate-down":{outgoing:"motion-safe:pointer:group-hover:translate-y-full motion-safe:pointer:group-hover/animate-button-icon:translate-y-full",incoming:"-translate-y-full motion-safe:pointer:group-hover:translate-y-0 motion-safe:pointer:group-hover/animate-button-icon:translate-y-0"}},s=E(()=>n.value?[i.base.outgoing,i[t.animation].outgoing]:""),r=E(()=>n.value?[i.base.incoming,i[t.animation].incoming]:""),o=E(()=>t.animation==="rotate-90-right"||t.animation==="rotate-90-left"),a={"rotate-90-right":"motion-safe:pointer:group-hover:rotate-90 motion-safe:pointer:group-hover/animate-button-icon:rotate-90","rotate-90-left":"motion-safe:pointer:group-hover:-rotate-90 motion-safe:pointer:group-hover/animate-button-icon:-rotate-90"};return(l,c)=>(O(),wt("span",ha,[on("span",{class:Qt(["flex items-center justify-center area",[l.animation&&ai,n.value&&s.value,o.value&&a[l.animation]]])},[Zt(rn,{size:e.value,name:l.icon.name,category:l.icon.category},null,8,["size","name","category"])],2),n.value?(O(),wt("span",{key:0,"aria-hidden":"true",class:Qt(["hidden items-center justify-center opacity-0 area",[ai,r.value]])},[Zt(rn,{size:e.value,name:l.icon.name,category:l.icon.category},null,8,["size","name","category"])],2)):Mt("",!0)]))}}),ee=G({name:"MdsTypography",__name:"typography",props:{variant:{default:"body"},is:{default:"p"}},setup(t){const e={mono:"variable-font-size-0.75 font-mono font-medium leading-[112%] uppercase","link-s":"variable-font-size-0.75 variable-font-we
1ight-500 leading-[138%]","link-m":"variable-font-size-1 font-medium leading-[134%]","link-l":"variable-font-size-1.5 variable-font-weight-500 leading-[126%]","body-s":"variable-font-size-0.75 font-normal leading-[138%]","body-s-emphasized":"variable-font-size-0.75 variable-font-weight-500 leading-[138%]",body:"variable-font-size-1 font-normal leading-[134%]","body-emphasized":"variable-font-size-1 font-medium leading-[134%]","heading-xs":"variable-font-size-1.25 variable-font-weight-500 leading-[130%]","heading-s":"variable-font-size-1.5 variable-font-weight-500 leading-[126%]","heading-m":"variable-font-size-2 variable-font-weight-500 leading-[118%]","heading-l":"variable-font-size-2.5 variable-font-weight-500 leading-[110%] xl:variable-font-size-3 xl:leading-[102%]","display-m":"variable-font-size-3 variable-font-weight-500 leading-[102%] xl:variable-font-size-4","display-l":"variable-font-size-3.5 variable-font-weight-500 leading-[102%] xl:variable-font-size-5","display-xl":"variable-font-size-4 variable-font-weight-500 leading-[102%] xl:variable-font-size-6","dangerouslyNotResponsive:Heading-S-To-Heading-M":"variable-font-size-1.5 variable-font-weight-500 leading-[126%] xl:variable-font-size-2 xl:leading-[118%]"};return(n,i)=>(O(),_(kt(n.is),{class:Qt(["leading-trim",e[n.variant]])},{default:tt(()=>[Be(n.$slots,"default",{variant:n.variant})]),_:3},8,["class"]))}}),da={key:0,class:"grid overflow-clip px-2.5 pt-2 pb-3"},ma={class:"flex opacity-100 transition duration-700 ease-spring area motion-safe:pointer:group-hover:-translate-y-full motion-safe:pointer:group-hover:opacity-0"},pa={class:"hidden translate-y-full opacity-0 transition duration-700 ease-spring area motion-safe:pointer:flex motion-safe:pointer:group-hover:translate-y-0 motion-safe:pointer:group-hover:opacity-100","aria-hidden":"true"},li="MdsButton",yd=G({name:li,__name:"button",props:{label:{},variant:{default:"active"},icon:{},iconPosition:{default:"right"},iconAnimation:{},size:{default:"default"},ariaLabel:{},trackingData:{},mono:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},decorative:{type:Boolean,default:!1},tabindex:{},is:{default:"button"},href:{},target:{},rel:{},nuxt:{type:Boolean}},setup(t){const e=Cn(t,["label","is","icon","iconPosition","variant","size","href","ariaLabel","disabled","mono","decorative","target","rel","tabindex"]),n=E(()=>eo({text:t.label,componentName:li},e.trackingData)),i=no(()=>({href:t.href,target:t.target,rel:t.rel,disabled:t.disabled,nuxt:e.nuxt,tabindex:t.tabindex}),n,{keepWhenDisabled:["tabindex"]}),s=E(()=>t.decorative?{}:t.is==="a"?i.value:{type:"button",disabled:t.disabled,tabindex:t.tabindex}),r=E(()=>t.label?t.icon?"text+icon":"text":"icon"),o=E(()=>r.value==="icon"?t.size==="small"?"size-m":t.size==="large"?"p-s":"size-l":t.size==="small"?"px-7 xl:px-10 h-m":"px-12 xl:px-16 h-l"),a=E(()=>{const l={active:"bg-active-primary",primary:"bg-main-solid",secondary:t.size==="large"?"bg-main-light-secondary backdrop-blur-l":"bg-main-light-secondary backdrop-blur-m"},c={active:"text-main-solid dark:text-main-surface",primary:"text-main-surface green:text-active-primary",secondary:"text-main-solid"},u={active:"text-black/(--color-black-1400-opacity)",primary:"text-white/(--color-white-1800-opacity) dark:text-black/(--color-black-1400-opacity)",secondary:"text-black/(--color-black-1400-opacity) dark:text-white/(--color-white-1400-opacity)"},h={active:"green:hover:bg-main-solid green:hover:text-active-primary before:bg-main-light-secondary dark:before:bg-black/(--color-black-200-opacity) green:before:bg-white/(--color-white-2800-opacity) before:opacity-0 hover:before:opacity-100 green:hover:before:opacity-0 active:before:opacity-0 green:active:before:opacity-100 outline-active-primary",primary:"hover:bg-active-primary hover:text-main-solid dark:hover:text-main-surface before:bg-main-light-secondary dark:before:bg-black/(--color-black-200-opacity) before:opacity-0 active:before:opacity-100 outline-main-solid",secondary:"before:bg-main-light-secondary before:opacity-0 hover:before:opacity-100 active:before:opacity-0 outline-main-solid"};return[l[t.variant],t.disabled?u[t.variant]:c[t.variant],h[t.variant]]});return(l,c)=>(O(),_(kt(l.decorative?"div":l.is==="a"?to:"button"),Dt(s.value,{class:["group ds-focusable relative flex items-center justify-center gap-3xs rounded-m whitespace-nowrap transition-colors duration-300 before-content-empty before:absolute before:inset-0 before:rounded-inherit before:transition-opacity before:duration-300 focus-visible:outline-offset-4",[a.value,o.value,l.iconPosition==="left"?"flex-row-reverse":"flex-row",l.disabled&&"pointer-events-none"]],"aria-label":l.ariaLabel?l.ariaLabel:void 0,"data-track-component-name":l.decorative?void 0:n.value?.componentName,"data-track-text":l.decorative?void 0:n.value?.text,"data-track-title":!l.decorative&&n.value?.title?n.value.title:void 0}),{default:tt(()=>[l.label?(O(),wt("span",da,[on("span",ma,[Zt(ee,{is:"span",variant:l.mono?"mono":"link-m"},{default:tt(()=>[Jt(te(l.label),1)]),_:1},8,["variant"])]),on("span",pa,[Zt(ee,{is:"span",variant:l.mono?"mono":"link-m"},{default:tt(()=>[Jt(te(l.label),1)]),_:1},8,["variant"])])])):Mt("",!0),l.icon?(O(),_(fa,{key:1,icon:l.icon,animation:!l.label&&l.iconA
1nimation?l.iconAnimation:void 0},null,8,["icon","animation"])):Mt("",!0)]),_:1},16,["class","aria-label","data-track-component-name","data-track-text","data-track-title"]))}}),ga=G({name:"MdsParticle",__name:"particle",props:{animation:{default:"none"},colorClass:{default:"bg-active-primary"},size:{}},setup(t){const e=E(()=>t.size===6?"size-6":t.size===8?"size-8":"size-6 xl:size-8");return(n,i)=>(O(),wt("span",{"aria-hidden":"true",class:Qt(["shrink-0",[e.value,n.colorClass,{"animate-pulse":n.animation==="pulse"}]])},null,2))}}),va={class:"flex gap-8"},ya=G({name:"MdsEyebrow",__name:"eyebrow",props:{text:{},particle:{type:Boolean,default:!1},particleAnimation:{default:"none"},particleColorClass:{},variant:{default:"primary"},textClass:{}},setup(t){const e=E(()=>t.textClass?t.textClass:{"text-active-primary":t.variant==="active","text-main-solid":t.variant==="primary","text-main-contrast-primary":t.variant==="secondary"});return(n,i)=>(O(),wt("span",va,[n.particle?(O(),_(ga,{key:0,animation:n.particleAnimation,"color-class":n.particleColorClass},null,8,["animation","color-class"])):Mt("",!0),Zt(ee,{is:"span",variant:"mono",class:Qt(["text-left",e.value])},{default:tt(()=>[Jt(te(n.text),1)]),_:1},8,["class"])]))}}),st=Gr?window:void 0;function F(t){var e;const n=$(t);return(e=n?.$el)!==null&&e!==void 0?e:n}function et(...t){const e=(i,s,r,o)=>(i.addEventListener(s,r,o),()=>i.removeEventListener(s,r,o)),n=E(()=>{const i=Ht($(t[0])).filter(s=>s!=null);return i.every(s=>typeof s!="string")?i:void 0});return Xs(()=>{var i,s;return[(i=(s=n.value)===null||s===void 0?void 0:s.map(r=>F(r)))!==null&&i!==void 0?i:[st].filter(r=>r!=null),Ht($(n.value?t[1]:t[0])),Ht(it(n.value?t[2]:t[1])),$(n.value?t[3]:t[2])]},([i,s,r,o],a,l)=>{if(!i?.length||!s?.length||!r?.length)return;const c=Jr(o)?{...o}:o,u=i.flatMap(h=>s.flatMap(d=>r.map(f=>e(h,d,f,c))));l(()=>{u.forEach(h=>h())})},{flush:"post"})}function bd(t,e,n={}){const{window:i=st,ignore:s=[],capture:r=!0,detectIframe:o=!1,controls:a=!1}=n;if(!i)return a?{stop:Nt,cancel:Nt,trigger:Nt}:Nt;let l=!0;const c=p=>$(s).some(v=>{if(typeof v=="string")return Array.from(i.document.querySelectorAll(v)).some(y=>y===p.target||p.composedPath().includes(y));{const y=F(v);return y&&(p.target===y||p.composedPath().includes(y))}});function u(p){const v=$(p);return v&&v.$.subTree.shapeFlag===16}function h(p,v){const y=$(p),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(T=>T.el===v.target||v.composedPath().includes(T.el))}const d=p=>{const v=F(t);if(p.target!=null&&!(!(v instanceof Element)&&u(t)&&h(t,p))&&!(!v||v===p.target||p.composedPath().includes(v))){if("detail"in p&&p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}};let f=!1;const m=[et(i,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),d(p))},{passive:!0,capture:r}),et(i,"pointerdown",p=>{const v=F(t);l=!c(p)&&!!(v&&!p.composedPath().includes(v))},{passive:!0}),o&&et(i,"blur",p=>{setTimeout(()=>{var v;const y=F(t);((v=i.document.activeElement)===null||v===void 0?void 0:v.tagName)==="IFRAME"&&!y?.contains(i.document.activeElement)&&e(p)},0)},{passive:!0})].filter(Boolean),g=()=>m.forEach(p=>p());return a?{stop:g,cancel:()=>{l=!1},trigger:p=>{l=!0,d(p),l=!1}}:g}function ba(){const t=L(!1),e=Zs();return e&&Ie(()=>{t.value=!0},e),t}function Vn(t){const e=ba();return E(()=>(e.value,!!t()))}function xa(t,e,n={}){const{window:i=st,...s}=n;let r;const o=Vn(()=>i&&"MutationObserver"in i),a=()=>{r&&(r.disconnect(),r=void 0)},l=pt(E(()=>{const h=Ht($(t)).map(F).filter(Qr);return new Set(h)}),h=>{a(),o.value&&h.size&&(r=new MutationObserver(e),h.forEach(d=>r.observe(d,s)))},{immediate:!0,flush:"post"}),c=()=>r?.takeRecords(),u=()=>{l(),a()};return qs(u),{isSupported:o,stop:u,takeRecords:c}}const wa=Symbol("vueuse-ssr-width");function io(){const t=Xr()?qr(wa,null):null;return typeof t=="number"?t:void 0}function ft(t,e={}){const{window:n=st,ssrWidth:i=io()}=e,s=Vn(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=L(typeof i=="number"),o=L(),a=L(!1),l=c=>{a.value=c.matches};return ae(()=>{if(r.value){r.value=!s.value,a.value=$(t).split(",").some(c=>{const u=c.includes("not all"),h=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(h||d);return h&&f&&(f=i>=_t(h[1])),d&&f&&(f=i<=_t(d[1])),u?!f:f});return}s.value&&(o.value=n.matchMedia($(t)),a.value=o.value.matches)}),et(o,"change",l,{passive:!0}),E(()=>a.value)}
1const xd={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function wd(t,e={}){function n(f,m){let g=$(t[$(f)]);return m!=null&&(g=Yr(g,m)),typeof g=="number"&&(g=`${g}px`),g}const{window:i=st,strategy:s="min-width",ssrWidth:r=io()}=e,o=typeof r=="number",a=o?L(!1):{value:!0};o&&Oe(()=>a.value=!!i);function l(f,m){return!a.value&&o?f==="min"?r>=_t(m):r<=_t(m):i?i.matchMedia(`(${f}-width: ${m})`).matches:!1}const c=f=>ft(()=>`(min-width: ${n(f)})`,e),u=f=>ft(()=>`(max-width: ${n(f)})`,e),h=Object.keys(t).reduce((f,m)=>(Object.defineProperty(f,m,{get:()=>s==="min-width"?c(m):u(m),enumerable:!0,configurable:!0}),f),{});function d(){const f=Object.keys(t).map(m=>[m,h[m],_t(n(m))]).sort((m,g)=>m[2]-g[2]);return E(()=>f.filter(([,m])=>m.value).map(([m])=>m))}return Object.assign(h,{greaterOrEqual:c,smallerOrEqual:u,greater(f){return ft(()=>`(min-width: ${n(f,.1)})`,e)},smaller(f){return ft(()=>`(max-width: ${n(f,-.1)})`,e)},between(f,m){return ft(()=>`(min-width: ${n(f)}) and (max-width: ${n(m,-.1)})`,e)},isGreater(f){return l("min",n(f,.1))},isGreaterOrEqual(f){return l("min",n(f))},isSmaller(f){return l("max",n(f,-.1))},isSmallerOrEqual(f){return l("max",n(f))},isInBetween(f,m){return l("min",n(f))&&l("max",n(m,-.1))},current:d,active(){const f=d();return E(()=>f.value.length===0?"":f.value.at(s==="min-width"?-1:0))}})}function Td(t={}){const{window:e=st}=t,n=L(1),i=ft(()=>`(resolution: ${n.value}dppx)`,t);let s=Nt;return e&&(s=Xs(i,()=>n.value=e.devicePixelRatio)),{pixelRatio:Zr(n),stop:s}}function so(t,e,n={}){const{window:i=st,...s}=n;let r;const o=Vn(()=>i&&"ResizeObserver"in i),a=()=>{r&&(r.disconnect(),r=void 0)},l=pt(E(()=>{const u=$(t);return Array.isArray(u)?u.map(h=>F(h)):[F(u)]}),u=>{if(a(),o.value&&i){r=new ResizeObserver(e);for(const h of u)h&&r.observe(h,s)}},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return qs(c),{isSupported:o,stop:c}}function Sd(t,e={}){const{reset:n=!0,windowResize:i=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:o="sync"}=e,a=L(0),l=L(0),c=L(0),u=L(0),h=L(0),d=L(0),f=L(0),m=L(0);function g(){const v=F(t);if(!v){n&&(a.value=0,l.value=0,c.value=0,u.value=0,h.value=0,d.value=0,f.value=0,m.value=0);return}const y=v.getBoundingClientRect();a.value=y.height,l.value=y.bottom,c.value=y.left,u.value=y.right,h.value=y.top,d.value=y.width,f.value=y.x,m.value=y.y}function p(){o==="sync"?g():o==="next-frame"&&requestAnimationFrame(()=>g())}return so(t,p),pt(()=>F(t),v=>!v&&p()),xa(t,p,{attributeFilter:["style","class"]}),s&&et("scroll",p,{capture:!0,passive:!0}),i&&et("resize",p,{passive:!0}),Oe(()=>{r&&p()}),{height:a,bottom:l,left:c,right:u,top:h,width:d,x:f,y:m,update:p}}function Ad(t,e={width:0,height:0},n={}){const{window:i=st,box:s="content-box"}=n,r=E(()=>{var h;return(h=F(t))===null||h===void 0||(h=h.namespaceURI)===null||h===void 0?void 0:h.includes("svg")}),o=L(e.width),a=L(e.height),{stop:l}=so(t,([h])=>{const d=s==="border-box"?h.borderBoxSize:s==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&r.value){const f=F(t);if(f){const m=f.getBoundingClientRect();o.value=m.width,a.value=m.height}}else if(d){const f=Ht(d);o.value=f.reduce((m,{inlineSize:g})=>m+g,0),a.value=f.reduce((m,{blockSize:g})=>m+g,0)}else o.value=h.contentRect.width,a.value=h.contentRect.height},n);Oe(()=>{const h=F(t);h&&(o.value="offsetWidth"in h?h.offsetWidth:e.width,a.value="offsetHeight"in h?h.offsetHeight:e.height)});const c=pt(()=>F(t),h=>{o.value=h?e.width:0,a.value=h?e.height:0});function u(){l(),c()}return{width:o,height:a,stop:u}}function Pd(t={}){const{window:e=st}=t;if(!e)return L(!1);const n=L(e.document.hasFocus()),i={passive:!0};return et(e,"blur",()=>{n.value=!1},i),et(e,"focus",()=>{n.value=!0},i),n}function Ed(t={}){const{window:e=st,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:o="inner"}=t,a=L(n),l=L(i),c=()=>{if(e)if(o==="outer")a.value=e.outerWidth,l.value=e.outerHeight;else if(o==="visual"&&e.visualViewport){const{width:h,height:d,scale:f}
1=e.visualViewport;a.value=Math.round(h*f),l.value=Math.round(d*f)}else r?(a.value=e.innerWidth,l.value=e.innerHeight):(a.value=e.document.documentElement.clientWidth,l.value=e.document.documentElement.clientHeight)};c(),Oe(c);const u={passive:!0};return et("resize",c,u),e&&o==="visual"&&e.visualViewport&&et(e.visualViewport,"resize",c,u),s&&pt(ft("(orientation: portrait)"),()=>c()),{width:a,height:l}}const ge=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ta(t,e){let n=new Set,i=new Set,s=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,d=!1)=>{const m=d&&s?n:i;return h&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{i.delete(u),o.delete(u)},process:u=>{if(a=u,s){r=!0;return}s=!0,[n,i]=[i,n],n.forEach(l),n.clear(),s=!1,r&&(r=!1,c.process(u))}};return c}const rt={},Sa=40;function oo(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ge.reduce((b,T)=>(b[T]=Ta(r),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:d,render:f,postRender:m}=o,g=()=>{const b=rt.useManualTiming?s.timestamp:performance.now();n=!1,rt.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(b-s.timestamp,Sa),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),h.process(s),d.process(s),f.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(g))},p=()=>{n=!0,i=!0,s.isProcessing||t(g)};return{schedule:ge.reduce((b,T)=>{const w=o[T];return b[T]=(S,D=!1,A=!1)=>(n||p(),w.schedule(S,D,A)),b},{}),cancel:b=>{for(let T=0;T<ge.length;T++)o[ge[T]].cancel(b)},state:s,steps:o}}const{schedule:P,cancel:K,state:I,steps:Ue}=oo(typeof requestAnimationFrame<"u"?requestAnimationFrame:z,!0);let xe;function Aa(){xe=void 0}const j={now:()=>(xe===void 0&&j.set(I.isProcessing||rt.useManualTiming?I.timestamp:performance.now()),xe),set:t=>{xe=t,queueMicrotask(Aa)}},X=t=>t*1e3,U=t=>t/1e3;function Pa(t,e){const n=j.now(),i=({timestamp:s})=>{const r=s-n;r>=e&&(K(i),t(r-e))};return P.setup(i,!0),()=>K(i)}const ce=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ct=ce("deg"),nt=ce("%"),x=ce("px"),Ea=ce("vh"),Ca=ce("vw"),ui={...nt,parse:t=>nt.parse(t)/100,transform:t=>nt.transform(t*100)};function ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const J={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=ci(t,e.target.x),i=ci(t,e.target.y);return`${n}% ${i}%`}},q=(t,e,n)=>n>e?e:n<t?t:n,Lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ne={...Lt,transform:t=>q(0,1,t)},ve={...Lt,default:1},Kt=t=>Math.round(t*1e5)/1e5,Mn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Va(t){return t==null}const Ma=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dn=(t,e)=>n=>!!(typeof n=="string"&&Ma.test(n)&&n.startsWith(t)||e&&!Va(n)&&Object.prototype.hasOwnProperty.call(n,e)),ro=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,r,o,a]=i.match(Mn);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Da=t=>q(0,255,t),We={...Lt,transform:t=>Math.round(Da(t))},yt={test:Dn("rgb","red"),parse:ro("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+We.transform(t)+", "+We.transform(e)+", "+We.transform(n)+", "+Kt(ne.transform(i))+")"};function ka(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const an={test:Dn("#"),parse:ka,transform:yt.transform},Pt={test:Dn("hsl","hue"),parse:ro("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+nt.transform(Kt(e))+", "+nt.transform(Kt(n))+", "+Kt(ne.transform(i))+")"},k={test:t=>yt.test(t)||an.test(t)||Pt.test(t),parse:t=>yt.test(t)?yt.parse(t):Pt.test(t)?Pt.parse(t):an.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yt.transform(t):Pt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},La=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ra(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Mn))==null?void 0:e.length)||0)+(((n=t.match(La))==null?void 0:n.length)||0)>0}const ao="number",lo="color",Ba="var",Oa="var(",hi="${}",Ia=/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 ie(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const a=e.replace(Ia,l=>(k.test(l)?(i.color.push(r),s.push(lo),n.push(k.parse(l))):l.startsWith(Oa)?(i.var.push(r),s.push(Ba),n.push(l)):(i.number.push(r),s.push(ao),n.push(parseFloat(l))),++r,hi)).split(hi);return{values:n,split:a,indexes:i,types:s}}function uo(t){return ie(t).values}function co(t){const{split:e,types:n}=ie(t),i=e.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=e[o],s[o]!==void 0){const a=n[o];a===ao?r+=Kt(s[o]):a===lo?r+=k.transform(s[o]):r+=s[o]}return r}}const Fa=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t;function ja(t){const e=uo(t);return co(t)(e.map(Fa))}
1const mt={test:Ra,parse:uo,createTransformer:co,getAnimatableNone:ja},V=(t,e,n)=>t+(e-t)*n,ho={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=mt.parse(t);if(s.length>5)return i;const r=mt.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const c=V(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),r(s)}},fo=t=>e=>typeof e=="string"&&e.startsWith(t),kn=fo("--"),$a=fo("var(--"),Ln=t=>$a(t)?za.test(t.split("/*")[0].trim()):!1,za=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function fi(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const se={borderRadius:{...J,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomLeftRadius:J,borderBottomRightRadius:J,boxShadow:ho};function mo(t){for(const e in t)se[e]=t[e],kn(e)&&(se[e].isCSSVariable=!0)}const[Na,Ua]=Fe("Motion"),[Wa,Cd]=Fe("LayoutGroup");function di(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class lt{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(e){}beforeUnmount(){}}function Gt(t,e,n){if(Array.isArray(t))return t.reduce((i,s)=>{const r=Gt(s,e,n);return r?{...i,...r}:i},{});if(typeof t=="object")return t;if(t&&e){const i=e[t];return typeof i=="function"?i(n):i}}function Ha(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!_a(t,e):t!==e}function _a(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function mi(t){return t?.startsWith("--")}const Ka=t=>t;function Ga(t){return typeof t=="number"}const Ya=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Xa=new Set(Ya);function po(t){return Xa.has(t)}class qa{constructor(e){this.features=[];const{features:n=[],lazyMotionContext:i}=e.options,s=n.concat(i.features.value);this.features=s.map(o=>new o(e));const r=this.features;pt(i.features,o=>{o.forEach(a=>{if(!s.includes(a)){s.push(a);const l=new a(e);r.push(l),e.isMounted()&&(l.beforeMount(),l.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var n;return(n=e.beforeMount)==null?void 0:n.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var n;return(n=e.update)==null?void 0:n.call(e)})}beforeUpdate(e){this.features.forEach(n=>{var i;return(i=n.beforeUpdate)==null?void 0:i.call(n,e)})}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}function Za(t){return typeof t=="string"||t===!1||Array.isArray(t)}const Ee=new WeakMap;let Qa=0;class Ja{constructor(e,n){var i;this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=z,this.id=`motion-state-${Qa++}`,this.options=e,this.parent=n,(i=n?.children)==null||i.add(this);const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new qa(this),this.type=po(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(n,i)=>{var s;return Za(this.options[i])?this.options[i]:(s=this.parent)==null?void 0:s.context[i]}};this._context=new Proxy({},e)}return this._context}initTarget(e){var n;const i=this.options.custom??((n=this.options.animatePresenceContext)==null?void 0:n.custom);this.baseTarget=e.reduce((s,r)=>({...s,...Gt(this.options[r]||this.context[r],this.options.variants,i)}),{}),this.target={}}updateOptions(e){var n;this.options=e,(n=this.visualElement)==null||n.update({...this.options,whileTap:this.options.whilePress},null)}beforeMount(){this.featureManager.beforeMount()}mount(e,n,i=!1){var s;this.element=e,this.updateOptions(n),this.featureManager.mount(),!i&&this.options.animate&&((s=this.startAnimation)==null||s.call(this))}clearAnimation(){var e,n;this.currentProcess&&K(this.currentProcess),this.currentProcess=null,(n=(e=this.visualElement)==null?void 0:e.variantChildren)==null||n.forEac
1h(i=>{i.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=P.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(){var e,n,i;(n=(e=this.parent)==null?void 0:e.children)==null||n.delete(this),Ee.delete(this.element),this.featureManager.unmount(),(i=this.visualElement)==null||i.unmount(),this.clearAnimation()}beforeUpdate(e){this.featureManager.beforeUpdate(e)}update(e){this.updateOptions(e),this.featureManager.update(),this.startAnimation()}setActive(e,n,i=!0){var s;!this.element||this.activeStates[e]===n||(this.activeStates[e]=n,(s=this.visualElement.variantChildren)==null||s.forEach(r=>{r.state.setActive(e,n,!1)}),i&&this.animateUpdates({isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}getSnapshot(e,n){}didUpdate(e){}}const Tt=new WeakMap;function pi(t,e,n){return new CustomEvent(t,{detail:{target:e,isExit:n}})}const gi={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},tl={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:gi,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Ka},skew:gi},el=["translate","scale","rotate","skew"],nl=["","X","Y","Z"],Rn=new Map,Ce=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];el.forEach(t=>{nl.forEach(e=>{Ce.push(t+e),Rn.set(t+e,tl[t])})});const il=new Set(Ce),sl=t=>il.has(t),vi={x:"translateX",y:"translateY",z:"translateZ"};function ol([t],[e]){return Ce.indexOf(t)-Ce.indexOf(e)}function rl(t,[e,n]){return`${t} ${e}(${n})`}function al(t){return t.sort(ol).reduce(rl,"").trim()}const yi={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},R=t=>!!(t&&t.getVelocity),ll={get:(t,e)=>{let n=mi(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&n!=="0"){const i=Rn.get(e);i&&(n=i.initialValue)}return n},set:(t,e,n)=>{mi(e)?t.style.setProperty(e,n):t.style[e]=n}};function ul(t){var e;const n={},i=[];for(let s in t){let r=t[s];r=R(r)?r.get():r,sl(s)&&s in vi&&(s=vi[s]);let o=Array.isArray(r)?r[0]:r;const a=Rn.get(s);a?(o=Ga(r)?(e=a.toDefaultUnit)==null?void 0:e.call(a,r):r,i.push([s,o])):n[s]=o}return i.length&&(n.transform=al(i)),Object.keys(n).length===0?null:n}const cl={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function hl(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function fl(t,e,n=1,i=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=x.transform(-i);const s=x.transform(e),r=x.transform(n);t["stroke-dasharray"]=`${s} ${r}`}function dl(t){const e={},n={};for(const i in t){const s=hl(i);if(s in cl){const r=t[i];e[s]=R(r)?r.get():r}else n[i]=t[i]}return e["path-length"]!==void 0&&fl(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attrs:e,style:n}}function ml({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function pl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function gl(t,e){return ml(pl(t.getBoundingClientRect(),e))}const bi={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"]},ln={};for(const t in bi)ln[t]={isEnabled:e=>bi[t].some(n=>!!e[n])};const xi=()=>({translate:0,scale:1,origin:0,originPoint:0}),Et=()=>({x:xi(),y:xi()}),wi=()=>({min:0,max:0}),B=()=>({x:wi(),y:wi()}),vl=typeof window<"u",Ve={current:null},go={current:!1};function yl(){if(go.current=!0,!!vl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ve.current=t.matches;t.addEventListener("change",e),e()}else Ve.current=!1}function bl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function xl(t){return typeof t=="string"||Array.isArray(t)}const wl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tl=["initial",...wl];function vo(t){return bl(t.animate)||Tl.some(e=>xl(t[e]))}function Sl(t){return!!(vo(t)||t.variants)}function Ti(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}function Bn(t,e){t.indexOf(e)===-1&&t.push(e)}function he(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class On{constructor(){this.subscriptions=[]}add(e){return Bn(this.subscriptions,e),()=>he(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let r=0;r<s;r++){const o=this.subscriptions[r];o&&o(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function In(t,e){return e?t*(1e3/e):0}const Si=30,Al=t=>!isNaN(parseFloat(t)),ht={current:void 0};class Pl{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var s;const r=j.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Al(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new On);const i=this.events[e].add(n);return e==="change"?()=>{i(),P.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.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 ht.current&&ht.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Si)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Si);return In(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function W(t,e){return new Pl(t,e)}function El(t,e,n){for(const i in e){const s=e[i],r=n[i];if(R(s))t.addValue(i,s);else if(R(r))t.addValue(i,W(s,{owner:t}));else if(r!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,W(o!==void 0?o:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}function Ai(t){const e=[{},{}];
1return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function yo(t,e,n,i){if(typeof e=="function"){const[s,r]=Ai(i);e=e(n!==void 0?n:t.custom,s,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,r]=Ai(i);e=e(n!==void 0?n:t.custom,s,r)}return e}function Cl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const bt=t=>t*180/Math.PI,un=t=>{const e=bt(Math.atan2(t[1],t[0]));return cn(e)},Vl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:un,rotateZ:un,skewX:t=>bt(Math.atan(t[1])),skewY:t=>bt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},cn=t=>(t=t%360,t<0&&(t+=360),t),Pi=un,Ei=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ci=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ml={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ei,scaleY:Ci,scale:t=>(Ei(t)+Ci(t))/2,rotateX:t=>cn(bt(Math.atan2(t[6],t[5]))),rotateY:t=>cn(bt(Math.atan2(-t[2],t[0]))),rotateZ:Pi,rotate:Pi,skewX:t=>bt(Math.atan(t[4])),skewY:t=>bt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function hn(t){return t.includes("scale")?1:0}function fn(t,e){if(!t||t==="none")return hn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=Ml,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Vl,s=a}if(!s)return hn(e);const r=i[e],o=s[1].split(",").map(kl);return typeof r=="function"?r(o):o[r]}const Dl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return fn(n,e)};function kl(t){return parseFloat(t.trim())}const Rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bt=new Set(Rt),Vi=t=>t===Lt||t===x,Ll=new Set(["x","y","z"]),Rl=Rt.filter(t=>!Ll.has(t));function Bl(t){const e=[];return Rl.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const dt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>fn(e,"x"),y:(t,{transform:e})=>fn(e,"y")};dt.translateX=dt.x;dt.translateY=dt.y;const xt=new Set;let dn=!1,mn=!1,pn=!1;function bo(){if(mn){const t=Array.from(xt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Bl(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))==null||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}mn=!1,dn=!1,xt.forEach(t=>t.complete(pn)),xt.clear()}function xo(){xt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(mn=!0)})}function Ol(){pn=!0,xo(),bo(),pn=!1}class Fn{constructor(e,n,i,s,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xt.add(this),dn||(dn=!0,P.read(xo),P.resolveKeyframes(bo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;if(e[0]===null){const r=s?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){const a=i.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),s&&r===void 0&&s.set(e[0])}Cl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),xt.delete(this)}cancel(){this.state==="scheduled"&&(xt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),To=t=>/^0[^.\s]+$/u.test(t),Il={test:t=>t==="auto",parse:t=>t},So=t=>e=>e.test(t),Ao=[Lt,x,nt,ct,Ca,Ea,Il],Mi=t=>Ao.find(So(t)),Fl=[...Ao,k,mt],jl=t=>Fl.find(So(t)),$l=new Set(["brightness","contrast","saturate","opacity"]);function zl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Mn)||[];
1if(!i)return t;const s=n.replace(i,"");let r=$l.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const Nl=/\b([a-z-]*)\(.*?\)/gu,gn={...mt,getAnimatableNone:t=>{const e=t.match(Nl);return e?e.map(zl).join(" "):t}},Di={...Lt,transform:Math.round},Ul={rotate:ct,rotateX:ct,rotateY:ct,rotateZ:ct,scale:ve,scaleX:ve,scaleY:ve,scaleZ:ve,skew:ct,skewX:ct,skewY:ct,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:ne,originX:ui,originY:ui,originZ:x},jn={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,backgroundPositionX:x,backgroundPositionY:x,...Ul,zIndex:Di,fillOpacity:ne,strokeOpacity:ne,numOctaves:Di},Wl={...jn,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:gn,WebkitFilter:gn},Po=t=>Wl[t];function Eo(t,e){let n=Po(t);return n!==gn&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const{schedule:Co}=oo(queueMicrotask,!0),ki=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vo{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,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=Fn,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=()=>{const d=j.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,P.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=vo(n),this.isVariantNode=Sl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const f=h[d];l[d]!==void 0&&R(f)&&f.set(l[d])}}mount(e){var n;this.current=e,Tt.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((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(go.current||yl(),this.shouldReduceMotion=Ve.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.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,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Bt.has(e);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&P.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ln){const n=ln[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const r=this.features[e];
1r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):B()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<ki.length;i++){const s=ki[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=e[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=El(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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=W(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(wo(i)||To(i))?i=parseFloat(i):!jl(i)&&mt.test(n)&&(i=Eo(e,n)),this.setBaseTarget(e,R(i)?i.get():i)),R(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=yo(this.props,i,(n=this.presenceContext)==null?void 0:n.custom);o&&(s=o[e])}if(i&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!R(r)?r:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new On),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Co.render(this.render)}}const Mo=new Set(["width","height","top","left","right","bottom",...Rt]);var Hl={},Li;let fe=()=>{},at=()=>{};typeof process<"u"&&((Li=Hl)==null?void 0:Li.NODE_ENV)!=="production"&&(fe=(t,e,n)=>{!t&&typeof console<"u"&&console.warn(Ti(e,n))},at=(t,e,n)=>{if(!t)throw new Error(Ti(e,n))});const _l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kl(t){const e=_l.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Gl=4;function Do(t,e,n=1){at(n<=Gl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[i,s]=Kl(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const o=r.trim();return wo(o)?parseFloat(o):o}return Ln(s)?Do(s,e,n+1):s}function Yl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||To(t):!0}const Xl=new Set(["auto","none","0"]);function ql(t,e,n){let i=0,s;for(;i<t.length&&!s;){const r=t[i];typeof r=="string"&&!Xl.has(r)&&ie(r).values.length&&(s=t[i]),i++}if(s&&n)for(const r of e)t[r]=Eo(n,s)}class Zl extends Fn{constructor(e,n,i,s,r){super(e,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Ln(h))){const d=Do(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Mo.has(i)||e.length!==2)return;const[s,r]=e,o=Mi(s),a=Mi(r),l=fi(s),c=fi(r);if(l!==c&&dt[i]){this.needsMeasurement=!0;return}if(o!==a)if(Vi(o)&&Vi(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else dt[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)(e[s]===null||Yl(e[s]))&&i.push(s);i.length&&ql(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const r=n.getValue(i);r&&r.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=dt[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(e=this.removedTransforms)!=null&&e.length&&this.removedTransforms.forEac
1h(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}class ko extends Vo{constructor(){super(...arguments),this.KeyframeResolver=Zl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;R(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Lo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ql={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jl=Rt.length;function tu(t,e,n){let i="",s=!0;for(let r=0;r<Jl;r++){const o=Rt[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=Lo(a,jn[o]);if(!l){s=!1;const u=Ql[o]||o;i+=`${u}(${c}) `}n&&(e[o]=c)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function Ro(t,e,n){const{style:i,vars:s,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Bt.has(l)){o=!0;continue}else if(kn(l)){s[l]=c;continue}else{const u=Lo(c,jn[l]);l.startsWith("origin")?(a=!0,r[l]=u):i[l]=u}}if(e.transform||(o||n?i.transform=tu(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;i.transformOrigin=`${l} ${c} ${u}`}}function Bo(t,{style:e,vars:n},i,s){const r=t.style;let o;for(o in e)r[o]=e[o];s?.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function eu(t,{layout:e,layoutId:n}){return Bt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!se[t]||t==="opacity")}function Oo(t,e,n){var i;const{style:s}=t,r={};for(const o in s)(R(s[o])||e.style&&R(e.style[o])||eu(o,t)||((i=n?.getValue(o))==null?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function nu(t){return window.getComputedStyle(t)}class Io extends ko{constructor(){super(...arguments),this.type="html",this.renderInstance=Bo}readValueFromInstance(e,n){var i;if(Bt.has(n))return(i=this.projection)!=null&&i.isProjecting?hn(n):Dl(e,n);{const s=nu(e),r=(kn(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return gl(e,n)}build(e,n,i){Ro(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Oo(e,n,i)}}const $n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),iu={offset:"stroke-dashoffset",array:"stroke-dasharray"},su={offset:"strokeDashoffset",array:"strokeDasharray"};function ou(t,e,n=1,i=0,s=!0){t.pathLength=1;const r=s?iu:su;t[r.offset]=x.transform(-i);const o=x.transform(e),a=x.transform(n);t[r.array]=`${o} ${a}`}const ru=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function au(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Ro(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const f of ru)h[f]!==void 0&&(d[f]=h[f],delete h[f]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),i!==void 0&&(h.scale=i),s!==void 0&&ou(h,s,r,o,!1)}const Fo=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"]),lu=t=>typeof t=="string"&&t.toLowerCase()==="svg";function uu(t,e,n,i){Bo(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Fo.has(s)?s:$n(s),e.attrs[s])}function cu(t,e,n){const i=Oo(t,e,n);for(const s in t)if(R(t[s])||R(e[s])){const r=Rt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=t[s]}return i}class jo extends ko{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=B}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Bt.has(n)){const i=Po(n);return i&&i.default||0}return n=Fo.has(n)?n:$n(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return cu(e,n,i)}build(e,n,i){au(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,s){uu(e,n,i,s)}mount(e){this.isSVGTag=lu(e.tagName),super.mount(e)}}function hu(t,e){return po(t)?new jo(e):new Io(e)}function fu(t,e,n,i=0,s=1){const r=Array.from(t),o=r.indexOf(e),a=t.size,l=(a-1)*i,c=typeof n=="function";return o===r.length-1&&(e.parent.enteringChildren=void 0),c?n(o,a):s===1?o*i:l-o*i}function zn(t){return typeof t=="object"&&!Array.isArray(t)}function je(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);const s=n?.[t]??i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function $o(t,e,n,i){return typeof t=="string"&&zn(e)?je(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function du(t,e,n){return t*(e+1)}function Ri(t,e,n,i){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):i.get(e)??t}const mu=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t},zo=t=>Array.isArray(t)&&typeof t[0]!="number";function No(t,e){return zo(t)?t[mu(0,t.length,e)]:t}function pu(t,e,n){for(let i=0;i<t.length;i++){const s=t[i];s.at>e&&s.at<n&&(he(t,s),i--)}}function gu(t,e,n,i,s,r){pu(t,s,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:V(s,r,i[o]),easing:No(n,o)})}function vu(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function yu(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const St=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i};function Uo(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=St(0,e,i);t.push(V(n,1,s))}}function Nn(t){const e=[0];return Uo(e,t.length-1),e}const Me=2e4;function Un(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Me;)e+=n,i=t.next(e);return e>=Me?1/0:e}function Wo(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Un(i),Me);return{type:"keyframes",ease:r=>i.next(s*r).value/e,duration:U(s)}}function Wn(t){return typeof t=="function"&&"applyToOptions"in t}const bu="easeInOut",xu=20;function wu(t,{defaultTransition:e={},...n}={},i,s){const r=e.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,h=0,d=0;for(let f=0;f<t.length;f++){const m=t[f];if(typeof m=="string"){c.set(m,h);continue}else if(!Array.isArray(m)){c.set(m.name,Ri(h,m.at,u,c));continue}let[g,p,v={}]=m;v.at!==void 0&&(h=Ri(h,v.at,u,c));let y=0;const b=(T,w,S,D=0,A=0)=>{const C=Tu(T),{delay:N=0,times:Z=Nn(C),type:Ne="keyframes",repeat:Ot,repeatType:md,repeatDelay:pd=0,...Wr}=w;let{ease:ut=e.ease||"easeOut",duration:ot}=w;const ti=typeof N=="function"?N(D,A):N,ei=C.length,ni=Wn(Ne)?Ne:s?.[Ne||"keyframes"];if(ei<=2&&ni){let It=100;if(ei===2&&Pu(C)){const Ft=C[1]-C[0];It=Math.abs(Ft)}const me={...Wr};ot!==void 0&&(me.duration=X(ot));const pe=Wo(me,It,ni);ut=pe.ease,ot=pe.duration}ot??(ot=r);const ii=h+ti;Z.length===1&&Z[0]===0&&(Z[1]=1);const si=Z.length-C.length;if(si>0&&Uo(Z,si),C.length===1&&C.unshift(null),Ot){at(Ot<xu,"Repeat count too high, must be less than 20","repeat-count-high"),ot=du(ot,Ot);const It=[...C],me=[...Z];ut=Array.isArray(ut)?[...ut]:[ut];const pe=[...ut];for(let Ft=0;Ft<Ot;Ft++){C.push(...It);for(let jt=0;jt<It.length;jt++)Z.push(me[jt]+(Ft+1)),ut.push(jt===0?"linear":No(pe,jt-1))}vu(Z,Ot)}const oi=ii+ot;gu(S,C,ut,Z,ii,oi),y=Math.max(ti+ot,y),d=Math.max(oi,d)};if(R(g)){const T=Bi(g,a);b(p,v,Oi("default",T))}else{const T=$o(g,p,i,l),w=T.length;for(let S=0;S<w;S++){p=p,v=v;const D=T[S],A=Bi(D,a);for(const C in p)b(p[C],Su(v,C),Oi(C,A),S,w)}}u=h,h+=y}return a.forEach((f,m)=>{for(const g in f){const p=f[g];p.sort(yu);const v=[],y=[],b=[];for(let w=0;w<p.length;w++){const{at:S,value:D,easing:A}=p[w];
1v.push(D),y.push(St(0,d,S)),b.push(A||"easeOut")}y[0]!==0&&(y.unshift(0),v.unshift(v[0]),b.unshift(bu)),y[y.length-1]!==1&&(y.push(1),v.push(null)),o.has(m)||o.set(m,{keyframes:{},transition:{}});const T=o.get(m);T.keyframes[g]=v,T.transition[g]={...e,duration:d,ease:b,times:y,...n}}}),o}function Bi(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Oi(t,e){return e[t]||(e[t]=[]),e[t]}function Tu(t){return Array.isArray(t)?t:[t]}function Su(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Au=t=>typeof t=="number",Pu=t=>t.every(Au),Eu=t=>Array.isArray(t);function Cu(t,e,n){const i=t.getProps();return yo(i,e,i.custom,t)}function Vu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,W(n))}function Mu(t){return Eu(t)?t[t.length-1]||0:t}function Du(t,e){const n=Cu(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=Mu(r[o]);Vu(t,o,a)}}function ku(t){return!!(R(t)&&t.add)}function Lu(t,e){const n=t.getValue("willChange");if(ku(n))return n.add(e);if(!n&&rt.WillChange){const i=new rt.WillChange("auto");t.addValue("willChange",i),i.add(e)}}const Ru="framerAppearId",Bu="data-"+$n(Ru);function Ho(t){return t.props[Bu]}const Ou=t=>t!==null;function Iu(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Ou),r=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[r]}const Fu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),$u={type:"keyframes",duration:.8},zu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nu=(t,{keyframes:e})=>e.length>2?$u:Bt.has(t)?t.startsWith("scale")?ju(e[1]):Fu:zu;function Uu({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Hn(t,e){return t?.[e]??t?.default??t}function vn(t){t.duration=0,t.type="keyframes"}function He(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Wu({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,r=0,o=0;if(!e)s=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=He(l,a,t+1/3),r=He(l,a,t),o=He(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function De(t,e){return n=>n>0?e:t}const _e=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Hu=[an,yt,Pt],_u=t=>Hu.find(e=>e.test(t));function Ii(t){const e=_u(t);if(fe(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===Pt&&(n=Wu(n)),n}const Fi=(t,e)=>{const n=Ii(t),i=Ii(e);if(!n||!i)return De(t,e);const s={...n};return r=>(s.red=_e(n.red,i.red,r),s.green=_e(n.green,i.green,r),s.blue=_e(n.blue,i.blue,r),s.alpha=V(n.alpha,i.alpha,r),yt.transform(s))},yn=new Set(["none","hidden"]);function Ku(t,e){return yn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}const Gu=(t,e)=>n=>e(t(n)),de=(...t)=>t.reduce(Gu);function Yu(t,e){return n=>V(t,e,n)}function _n(t){return typeof t=="number"?Yu:typeof t=="string"?Ln(t)?De:k.test(t)?Fi:Zu:Array.isArray(t)?_o:typeof t=="object"?k.test(t)?Fi:Xu:De}function _o(t,e){const n=[...t],i=n.length,s=t.map((r,o)=>_n(r)(r,e[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function Xu(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=_n(t[s])(t[s],e[s]));return s=>{for(const r in i)n[r]=i[r](s);return n}}function qu(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const r=e.types[s],o=t.indexes[r][i[r]],a=t.values[o]??0;n[s]=a,i[r]++}return n}const Zu=(t,e)=>{const n=mt.createTransformer(e),i=ie(t),s=ie(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?yn.has(t)&&!s.values.length||yn.has(e)&&!i.values.length?Ku(t,e):de(_o(qu(i,s),s.values),n):(fe(!0,`Complex values '${t}' and '${e}' 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"),De(t,e))};function Ko(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?V(t,e,n):_n(t)(t,e)}const Qu=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>P.update(e,n),stop:()=>K(e),now:()=>I.isProcessing?I.timestamp:j.now()}},Go=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let r=0;r<s;r++)i+=Math.round(t(r/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Ju=5;function Yo(t,e,n){const i=Math.max(e-Ju,0);return In(n-t(i),e-i)}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ke=.001;function tc({duration:t=M.duration,bounce:e=M.bounce,velocity:n=M.velocity,mass:i=M.mass}){let s,r;fe(t<=X(M.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=q(M.minDamping,M.maxDamping,o),t=q(M.minDuration,M.maxDuration,U(t)),o<1?(s=c=>{const u=c*o,h=u*t,d=u-n,f=bn(c,o),m=Math.exp(-h);return Ke-d/f*m},r=c=>{const h=c*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-h),g=bn(Math.pow(c,2),o);return(-s(c)+Ke>0?-1:1)*((d-f)*m)/g}):(s=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ke+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=nc(s,r,a);if(t=X(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}const ec=12;function nc(t,e,n){let i=n;for(let s=1;s<ec;s++)i=i-t(i)/e(i);return i}function bn(t,e){return t*Math.sqrt(1-e*e)}const ic=["duration","bounce"],sc=["stiffness","damping","mass"];function ji(t,e){return e.some(n=>t[n]!==void 0)}function oc(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!ji(t,sc)&&ji(t,ic))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:M.mass,stiffness:s,damping:r}}else{const n=tc(t);e={...e,...n,mass:M.mass},e.isResolvedFromDuration=!0}return e}function oe(t=M.visualDuration,e=M.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=oc({...n,velocity:-U(n.velocity||0)}),m=d||0,g=c/(2*Math.sqrt(l*u)),p=o-r,v=U(Math.sqrt(l/u)),y=Math.abs(p)<5;i||(i=y?M.restSpeed.granular:M.restSpeed.default),s||(s=y?M.restDelta.granular:M.restDelta.default);let b;if(g<1){const w=bn(v,g);b=S=>{const D=Math.exp(-g*v*S);return o-D*((m+g*v*p)/w*Math.sin(w*S)+p*Math.cos(w*S))}}else if(g===1)b=w=>o-Math.exp(-v*w)*(p+(m+v*p)*w);else{const w=v*Math.sqrt(g*g-1);b=S=>{const D=Math.exp(-g*v*S),A=Math.min(w*S,300);return o-D*((m+g*v*p)*Math.sinh(A)+w*p*Math.cosh(A))/w}}
1const T={calculatedDuration:f&&h||null,next:w=>{const S=b(w);if(f)a.done=w>=h;else{let D=w===0?m:0;g<1&&(D=w===0?X(m):Yo(b,w,S));const A=Math.abs(D)<=i,C=Math.abs(o-S)<=s;a.done=A&&C}return a.value=a.done?o:S,a},toString:()=>{const w=Math.min(Un(T),Me),S=Go(D=>T.next(w*D).value,w,30);return w+"ms "+S},toTransition:()=>{}};return T}oe.applyToOptions=t=>{const e=Wo(t,100,oe);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};function xn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const p=h+g,v=o===void 0?p:o(p);v!==p&&(g=v-h);const y=A=>-g*Math.exp(-A/i),b=A=>v+y(A),T=A=>{const C=y(A),N=b(A);d.done=Math.abs(C)<=c,d.value=d.done?v:N};let w,S;const D=A=>{f(d.value)&&(w=A,S=oe({keyframes:[d.value,m(d.value)],velocity:Yo(b,A,d.value),damping:s,stiffness:r,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:A=>{let C=!1;return!S&&w===void 0&&(C=!0,T(A),D(A)),w!==void 0&&A>=w?S.next(A-w):(!C&&T(A),d)}}}function rc(t,e,n){const i=[],s=n||rt.mix||Ko,r=t.length-1;for(let o=0;o<r;o++){let a=s(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||z:e;a=de(l,a)}i.push(a)}return i}function Kn(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;if(at(r===e.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=rc(e,i,s),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=St(t[h],t[h+1],u);return a[h](d)};return n?u=>c(q(t[0],t[r-1],u)):c}function ac(t,e){return t.map(n=>n*e)}const lc=le(.42,0,1,1),uc=le(0,0,.58,1),Xo=le(.42,0,.58,1),qo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zo=t=>e=>1-t(1-e),Qo=le(.33,1.53,.69,.99),Gn=Zo(Qo),Jo=qo(Gn),tr=t=>(t*=2)<1?.5*Gn(t):.5*(2-Math.pow(2,-10*(t-1))),Yn=t=>1-Math.sin(Math.acos(t)),er=Zo(Yn),nr=qo(Yn),ir=t=>Array.isArray(t)&&typeof t[0]=="number",$i={linear:z,easeIn:lc,easeInOut:Xo,easeOut:uc,circIn:Yn,circInOut:nr,circOut:er,backIn:Gn,backInOut:Jo,backOut:Qo,anticipate:tr},cc=t=>typeof t=="string",zi=t=>{if(ir(t)){at(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,i,s]=t;return le(e,n,i,s)}else if(cc(t))return at($i[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),$i[t];return t};function hc(t,e){return t.map(()=>e||Xo).splice(0,t.length-1)}function Yt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=zo(i)?i.map(zi):zi(i),r={done:!1,value:e[0]},o=ac(n&&n.length===e.length?n:Nn(e),t),a=Kn(o,e,{ease:Array.isArray(s)?s:hc(e,s)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const fc=t=>t!==null;function Xn(t,{repeat:e,repeatType:n="loop"},i,s=1){const r=t.filter(fc),a=s<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const dc={decay:xn,inertia:xn,tween:Yt,keyframes:Yt,spring:oe};function sr(t){typeof t.type=="string"&&(t.type=dc[t.type])}class qn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const mc=t=>t/100;class $e extends qn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,i;const{motionValue:s}=this.options;s&&s.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;sr(e);const{type:n=Yt,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Yt;l!==Yt&&typeof a[0]!="number"&&(this.mixKeyframes=de(mc,Ko(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Un(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:f,type:m,onUpdate:g,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let b=this.currentTime,T=i;if(h){const A=Math.min(this.currentTime,s)/a;let C=Math.floor(A),N=A%1;!N&&A>=1&&(N=1),N===1&&C--,C=Math.min(C,h+1),C%2&&(d==="reverse"?(N=1-N,f&&(N-=f/a)):d==="mirror"&&(T=o)),b=q(0,1,N)*a}const w=y?{done:!1,value:u[0]}:T.next(b);r&&(w.value=r(w.value));let{done:S}=w;!y&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return D&&m!==xn&&(w.value=Xn(u,this.options,p,this.speed)),g&&g(w.value),D&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(this.currentTime)}set time(e){var n;e=X(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(j.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=U(this.currentTime))}play(){var e,n;if(this.isStopped)return;const{driver:i=Qu,startTime:s}=this.options;this.driver||(this.driver=i(o=>this.tick(o))),(n=(e=this.options).onPlay)==null||n.call(e);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=s??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(j.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Vd(t){return new $e(t)}const pc=t=>t.startsWith("--");function gc(t,e,n){pc(e)?t.style.setProperty(e,n):t.style[e]=n}function Zn(t){let e;return()=>(e===void 0&&(e=t()),e)}const or=Zn(()=>window.ScrollTimeline!==void 0),vc={};function yc(t,e){const n=Zn(t);return()=>vc[e]??n()}const rr=yc(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ut=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Ni={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ut([0,.65,.55,1]),circOut:Ut([.55,0,1,.45]),backIn:Ut([.31,.01,.66,-.59]),backOut:Ut([.33,1.53,.69,.99])};function ar(t,e){if(t)return typeof t=="function"?rr()?Go(t,e):"ease-out":ir(t)?Ut(t):Array.isArray(t)?t.map(n=>ar(n,e)||Ni.easeOut):Ni[t]}function bc(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=ar(a,s);Array.isArray(h)&&(u.easing=h);const d={delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),t.animate(u,d)}function xc({type:t,...e}){return Wn(t)&&rr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class wc extends qn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:s,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,at(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=xc(e);this.animation=bc(n,i,s,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=Xn(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):gc(n,i,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var e,n;const i=((n=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:n.call(e).duration)||0;return U(Number(i))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&or()?(this.animation.timeline=e,z):n(this)}}const lr={anticipate:tr,backInOut:Jo,circInOut:nr};function Tc(t){return t in lr}function Sc(t){typeof t.ease=="string"&&Tc(t.ease)&&(t.ease=lr[t.ease])}const Ge=10;class Ac extends wc{constructor(e){Sc(e),sr(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new $e({...o,autoplay:!1}),l=Math.max(Ge,j.now()-this.startTime),c=q(0,Ge,l-Ge);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Ui=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(mt.test(t)||t==="0")&&!t.startsWith("url("));function Pc(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Ec(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Ui(s,e),a=Ui(r,e);return fe(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Pc(t)||(n==="spring"||Wn(n))&&i}const Cc=new Set(["opacity","clipPath","filter","transform"]),Vc=Zn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Mc(t){var e;const{motionValue:n,name:i,repeatDelay:s,repeatType:r,damping:o,type:a}=t;if(!(((e=n?.owner)==null?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return Vc()&&i&&Cc.has(i)&&(i!=="transform"||!u)&&!c&&!s&&r!=="mirror"&&o!==0&&a!=="inertia"}const Dc=40;class kc extends qn{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:
1o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var d;super(),this.stop=()=>{var g,p;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(p=this.keyframeResolver)==null||p.cancel()},this.createdAt=j.now();const f={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},m=u?.KeyframeResolver||Fn;this.keyframeResolver=new m(a,(g,p,v)=>this.onKeyframesResolved(g,p,f,!v),l,c,u),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(e,n,i,s){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=i;this.resolvedAt=j.now(),Ec(e,r,o,a)||((rt.instantAnimations||!l)&&u?.(Xn(e,i,n)),e[0]=e[e.length-1],vn(i),i.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Dc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},f=!c&&Mc(d)?new Ac({...d,element:d.motionValue.owner.current}):new $e(d);f.finished.then(()=>this.notifyFinished()).catch(z),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Ol()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Qn=(t,e,n,i={},s,r)=>o=>{const a=Hn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-X(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};Uu(a)||Object.assign(u,Nu(t,u)),u.duration&&(u.duration=X(u.duration)),u.repeatDelay&&(u.repeatDelay=X(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(vn(u),u.delay===0&&(h=!0)),(rt.instantAnimations||rt.skipAnimations)&&(h=!0,vn(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=Iu(u.keyframes,a);if(d!==void 0){P.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new $e(u):new kc(u)};function Lc({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Rc(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;i&&(r=i);const l=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),d=a[u];if(d===void 0||c&&Lc(c,u))continue;const f={delay:n,...Hn(r||{},u)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(d)&&d===m&&!f.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const v=Ho(t);if(v){const y=window.MotionHandoffAnimation(v,u,P);y!==null&&(f.startTime=y,g=!0)}}Lu(t,u),h.start(Qn(u,h,d,t.shouldReduceMotion&&Mo.has(u)?{type:!1}:f,t,g));const p=h.animation;p&&l.push(p)}return o&&Promise.all(l).then(()=>{P.update(()=>{o&&Du(t,o)})}),l}function Bc(t,e){return t in e}class Oc extends Vo{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Bc(n,e)){const i=e[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return B()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function ur(t){return typeof t=="object"&&t!==null}function ze(t){return ur(t)&&"ownerSVGElement"in t}function cr(t){return ze(t)&&t.tagName==="svg"}function Ic(t){const e={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ze(t)&&!cr(t)?new jo(e):new Io(e);n.mount(t),Tt.set(t,n)}function Fc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Oc(e);n.mount(t),Tt.set(t,n)}function hr(t,e,n){const i=R(t)?t:W(t);return i.start(Qn("",i,e,n)),i.animation}function jc(t,e){return R(t)||typeof t=="number"||typeof t=="string"&&!zn(e)}function fr(t,e,n,i){const s=[];if(jc(t,e))s.push(hr(t,zn(e)&&e.default||e,n&&(n.default||n)));else{const r=$o(t,e,i),o=r.length;at(!!o,"No valid elements provided.","no-valid-elements");for(let a=0;a<o;a++){const l=r[a];at(l!==null,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const c=l instanceof Element?Ic:Fc;Tt.has(l)||c(l);const u=Tt.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Rc(u,{...e,transition:h},{}))}}return s}function $c(t,e,n){const i=[];return wu(t,e,n,{spring:oe}).forEach(({keyframes:r,transition:o},a)=>{i.push(...fr(a,r,o))}),i}class zc{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e){const n=this.animations.map(i=>i.attachTimeline(e));return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Wi(this.animations,"duration")}get iterationDuration(){return Wi(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Wi(t,e){let n=0;for(let i=0;i<t.length;i++){const s=t[i][e];s!==null&&s>n&&(n=s)}return n}class Nc extends zc{then(e,n){return this.finished.finally(e).then(()=>{})}}function Uc(t){return Array.isArray(t)&&t.some(Array.isArray)}function Wc(t){function e(n,i,s){let r=[],o;if(Uc(n))r=$c(n,i,t);else{const{onComplete:l,...c}=s||{};typeof l=="function"&&(o=l),r=fr(n,i,c,t)}const a=new Nc(r);return o&&a.finished.then(o),t&&(t.animations.push(a),a.finished.then(()=>{he(t.animations,a)})),a}return e}const dr=Wc(),Hc=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class _c extends lt{constructor(e){var n,i;super(e),this.animateUpdates=({controlActiveState:s,directAnimate:r,directTransition:o,controlDelay:a=0,isExit:l}={})=>{const{reducedMotion:c}=this.state.options.motionConfig;this.state.visualElement.shouldReduceMotion=c==="always"||c==="user"&&!!Ve.current;const u=this.state.target;this.state.target={...this.state.baseTarget};let h={};h=this.resolveStateAnimation({controlActiveState:s,directAnimate:r,directTransition:o}),this.state.finalTransition=h;const d=this.createAnimationFactories(u,h,a),{getChildAnimations:f}=this.setupChildAnimations(h,this.state.activeStates);return this.executeAnimations({factories:d,getChildAnimations:f,transition:h,controlActiveState:s,isExit:l})},this.state.visualElement=hu(this.state.options.as,{presenceContext:null,parent:(n=this.state.parent)==null?void 0:n.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reducedMotion}),(i=this.state.visualElement.parent)==null||i.addChild(this.state.visualElement),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;di(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:n,transition:i,controlActiveState:s,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>
1h()).filter(Boolean)),a={...this.state.target},l=this.state.element,c=h=>{var d,f;r&&(this.state.isExiting=!0),l.dispatchEvent(pi("motionstart",a)),(f=(d=this.state.options).onAnimationStart)==null||f.call(d,a),h.then(()=>{var m,g,p,v;if(r){this.state.isExiting=!1;const y=this.state.options.animatePresenceContext;if(y?.onMotionExitComplete&&this.state.presenceContainer){const b=this.state,T=b.visualElement.projection;(m=b.options)!=null&&m.layoutId&&((g=T.currentAnimation)==null?void 0:g.state)==="running"&&!b.options.exit||y.onMotionExitComplete(b.presenceContainer,b)}}l.dispatchEvent(pi("motioncomplete",a,r)),(v=(p=this.state.options).onAnimationComplete)==null||v.call(p,a)}).catch(z)},u=()=>{const h=i?.when?(i.when==="beforeChildren"?o():n()).then(()=>i.when==="beforeChildren"?n():o()):Promise.all([o(),n()]);return c(h),h};return s?u:u()}setupChildAnimations(e,n){var i;const s=this.state.visualElement;if(!((i=s.variantChildren)!=null&&i.size)||!n)return{getChildAnimations:()=>Promise.resolve()};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:a=0}=e||{},l=s.variantChildren.size,c=(l-1)*r,u=typeof a=="function",h=u?f=>a(f,l):o===1?(f=0)=>f*r:(f=0)=>c-f*r,d=Array.from(s.variantChildren).map((f,m)=>f.state.animateUpdates({controlActiveState:n,controlDelay:(u?0:a)+h(m)}));return{getChildAnimations:()=>Promise.all(d.map(f=>f()))}}createAnimationFactories(e,n,i){const s=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!Ha(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=ll.get(this.state.element,r));const a=this.state.target[r]==="none"&&Pe(yi[r])?yi[r]:this.state.target[r];s.push(()=>{var l;return dr(this.state.element,{[r]:a},{...n?.[r]||n,delay:(((l=n?.[r])==null?void 0:l.delay)||n?.delay||0)+i})})}),s}resolveStateAnimation({controlActiveState:e,directAnimate:n,directTransition:i}){let s=this.state.options.transition,r={};const{variants:o,custom:a,transition:l,animatePresenceContext:c}=this.state.options,u=a??c?.custom;return this.state.activeStates={...this.state.activeStates,...e},Hc.forEach(h=>{if(!this.state.activeStates[h]||di(this.state.options[h]))return;const d=this.state.options[h];let f=Pe(d)?Gt(d,o,u):void 0;if(this.state.visualElement.isVariantNode){const m=Gt(this.state.context[h],o,u);f=Object.assign(m?m||{}:r,f)}f&&(h!=="initial"&&(s=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),n&&(r=Gt(n,o,u),s=r.transition||i||l),Object.entries(r).forEach(([h,d])=>{h!=="transition"&&(this.state.target[h]=d)}),s}mount(){var e,n;const{element:i}=this.state;Ee.set(i,this.state),Tt.get(i)||(this.state.visualElement.mount(i),Tt.set(i,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription();const s=this.state.visualElement,r=s.parent;if(s.enteringChildren=void 0,(e=this.state.parent)!=null&&e.isMounted()&&!s.isControllingVariants&&((n=r?.enteringChildren)!=null&&n.has(s))){const{delayChildren:o}=this.state.parent.finalTransition||{};this.animateUpdates({controlActiveState:this.state.parent.activeStates,controlDelay:fu(r.enteringChildren,s,o)})()}}update(){const{animate:e}=this.state.options,{animate:n}=this.state.visualElement.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}function mr(t){return ur(t)&&"offsetHeight"in t}const Kc={y:!1};function Gc(){return Kc.y}const pr=(t,e)=>e?t===e?!0:pr(t,e.parentElement):!1,Yc=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function gr(t,e){const n=je(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}const Xc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qc(t){return Xc.has(t.tagName)||t.isContentEditable===!0}const we=new WeakSet;function Hi(t){return e=>{e.key==="Enter"&&t(e)}}function Ye(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Zc=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Hi(()=>{if(we.has(n))return;Ye(n,"down");const s=Hi(()=>{Ye(n,"up")}),r=()=>Ye(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function _i(t){return Yc(t)&&!0}function Qc(t,e,n={}){const[i,s,r]=gr(t,n),o=a=>{const l=a.currentTarget;if(!_i(a))return;we.add(l);const c=e(l,a),u=(f,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),we.has(l)&&we.delete(l),_i(f)&&typeof c=="function"&&c(f,{success:m})},h=f=>{u(f,l===window||l===document||n.useGlobalTarget||pr(l,f.target))},d=f=>{u(f,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",d,s)};
1return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),mr(a)&&(a.addEventListener("focus",c=>Zc(c,s)),!qc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function vr(t){return{point:{x:t.pageX,y:t.pageY}}}function Ki(t,e,n){const i=t.options;i.whilePress&&t.setActive("whilePress",n==="Start");const s=`onPress${n==="End"?"":n}`,r=i[s];r&&P.postRender(()=>r(e,vr(e)))}class Jc extends lt{isActive(){const{whilePress:e,onPress:n,onPressCancel:i,onPressStart:s}=this.state.options;return!!(e||n||i||s)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:n,onPressCancel:i,onPressStart:s}=this.state.options;e||n||i||s||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Qc(e,(n,i)=>(Ki(this.state,i,"Start"),(s,{success:r})=>Ki(this.state,s,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function Gi(t){return!(t.pointerType==="touch"||Gc())}function th(t,e,n={}){const[i,s,r]=gr(t,n),o=a=>{if(!Gi(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{Gi(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return i.forEach(a=>{a.addEventListener("pointerenter",o,s)}),r}function Yi(t,e,n){const i=t.options;i.whileHover&&t.setActive("whileHover",n==="Start");const s=`onHover${n}`,r=i[s];r&&P.postRender(()=>r(e,vr(e)))}class eh extends lt{isActive(){const{whileHover:e,onHoverStart:n,onHoverEnd:i}=this.state.options;return!!(e||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:n,onHoverEnd:i}=this.state.visualElement.prevProps;e||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=th(e,(n,i)=>(Yi(this.state,i,"Start"),s=>{Yi(this.state,s,"End")})))}}const nh={some:0,all:1};function yr(t,e,{root:n,margin:i,amount:s="some"}={}){const r=je(t),o=new WeakMap,a=c=>{c.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?o.set(u.target,d):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:nh[s]});return r.forEach(c=>l.observe(c)),()=>l.disconnect()}function Xi(t,e,n){const i=t.options;i.whileInView&&t.setActive("whileInView",n==="Enter");const s=`onViewport${n}`,r=i[s];r&&P.postRender(()=>r(e))}class ih extends lt{isActive(){const{whileInView:e,onViewportEnter:n,onViewportLeave:i}=this.state.options;return!!(e||n||i)}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:n,...i}=this.state.options.inViewOptions||{};this.unmount=yr(e,(s,r)=>{if(Xi(this.state,r,"Enter"),!n)return o=>{Xi(this.state,r,"Leave")}},i)}mount(){this.startObserver()}update(){const{props:e,prevProps:n}=this.state.visualElement;["amount","margin","root"].some(sh(e,n))&&this.startObserver()}}function sh({inViewOptions:t={}},{inViewOptions:e={}}={}){return n=>t[n]!==e[n]}function ke(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}class oh extends lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=de(ke(this.state.element,"focus",()=>this.onFocus()),ke(this.state.element,"blur",()=>this.onBlur()))}}const rh=(t,e)=>t.depth-e.depth;class ah{constructor(){this.children=[],this.isDirty=!1}add(e){Bn(this.children,e),this.isDirty=!0}remove(e){he(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rh),this.isDirty=!1,this.children.forEach(e)}}function Xe(t){return R(t)?t.get():t}const br=["TopLeft","TopRight","BottomLeft","BottomRight"],lh=br.length,qi=t=>typeof t=="string"?parseFloat(t):t,Zi=t=>typeof t=="number"||x.test(t);function uh(t,e,n,i,s,r){s?(t.opacity=V(0,n.opacity??1,ch(i)),t.opacityExit=V(e.opacity??1,0,hh(i))):r&&(t.opacity=V(e.opacity??1,n.opacity??1,i));for(let o=0;o<lh;o++){const a=`border${br[o]}Radius`;let l=Qi(e,a),c=Qi(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Zi(l)===Zi(c)?(t[a]=Math.max(V(qi(l),qi(c),i),0),(nt.test(c)||nt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=V(e.rotate||0,n.rotate||0,i))}function Qi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ch=xr(0,.5,er),hh=xr(.5,.95,z);function xr(t,e,n){return i=>i<t?0:i>e?1:n(St(t,e,i))}function Ji(t,e){t.min=e.min,t.max=e.max}function Y(t,e){Ji(t.x,e.x),Ji(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function qe(t){return t===void 0||t===1}function wn({scale:t,scaleX:e,scaleY:n}
1){return!qe(t)||!qe(e)||!qe(n)}function gt(t){return wn(t)||wr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wr(t){return es(t.x)||es(t.y)}function es(t){return t&&t!=="0%"}function Le(t,e,n){const i=t-n,s=e*i;return n+s}function ns(t,e,n,i,s){return s!==void 0&&(t=Le(t,s,i)),Le(t,n,i)+e}function Tn(t,e=0,n=1,i,s){t.min=ns(t.min,e,n,i,s),t.max=ns(t.max,e,n,i,s)}function Tr(t,{x:e,y:n}){Tn(t.x,e.translate,e.scale,e.originPoint),Tn(t.y,n.translate,n.scale,n.originPoint)}const is=.999999999999,ss=1.0000000000001;function fh(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let r,o;for(let a=0;a<s;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ct(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Tr(t,o)),i&>(r.latestValues)&&Ct(t,r.latestValues))}e.x<ss&&e.x>is&&(e.x=1),e.y<ss&&e.y>is&&(e.y=1)}function ye(t,e){t.min=t.min+e,t.max=t.max+e}function os(t,e,n,i,s=.5){const r=V(t.min,t.max,s);Tn(t,e,n,r,i)}function Ct(t,e){os(t.x,e.x,e.scaleX,e.scale,e.originX),os(t.y,e.y,e.scaleY,e.scale,e.originY)}const Sr=1e-4,dh=1-Sr,mh=1+Sr,Ar=.01,ph=0-Ar,gh=0+Ar;function H(t){return t.max-t.min}function vh(t,e,n){return Math.abs(t-e)<=n}function rs(t,e,n,i=.5){t.origin=i,t.originPoint=V(e.min,e.max,t.origin),t.scale=H(n)/H(e),t.translate=V(n.min,n.max,t.origin)-t.originPoint,(t.scale>=dh&&t.scale<=mh||isNaN(t.scale))&&(t.scale=1),(t.translate>=ph&&t.translate<=gh||isNaN(t.translate))&&(t.translate=0)}function Xt(t,e,n,i){rs(t.x,e.x,n.x,i?i.originX:void 0),rs(t.y,e.y,n.y,i?i.originY:void 0)}function as(t,e,n){t.min=n.min+e.min,t.max=t.min+H(e)}function yh(t,e,n){as(t.x,e.x,n.x),as(t.y,e.y,n.y)}function ls(t,e,n){t.min=e.min-n.min,t.max=t.min+H(e)}function Re(t,e,n){ls(t.x,e.x,n.x),ls(t.y,e.y,n.y)}function us(t,e,n,i,s){return t-=e,t=Le(t,1/n,i),s!==void 0&&(t=Le(t,1/s,i)),t}function bh(t,e=0,n=1,i=.5,s,r=t,o=t){if(nt.test(e)&&(e=parseFloat(e),e=V(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=V(r.min,r.max,i);t===r&&(a-=e),t.min=us(t.min,e,n,a,s),t.max=us(t.max,e,n,a,s)}function cs(t,e,[n,i,s],r,o){bh(t,e[n],e[i],e[s],e.scale,r,o)}const xh=["x","scaleX","originX"],wh=["y","scaleY","originY"];function hs(t,e,n,i){cs(t.x,e,xh,n?n.x:void 0,i?i.x:void 0),cs(t.y,e,wh,n?n.y:void 0,i?i.y:void 0)}function fs(t){return t.translate===0&&t.scale===1}function Pr(t){return fs(t.x)&&fs(t.y)}function ds(t,e){return t.min===e.min&&t.max===e.max}function Th(t,e){return ds(t.x,e.x)&&ds(t.y,e.y)}function ms(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Er(t,e){return ms(t.x,e.x)&&ms(t.y,e.y)}function ps(t){return H(t.x)/H(t.y)}function gs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Sh{constructor(){this.members=[]}add(e){Bn(this.members,e),e.scheduleRender()}remove(e){if(he(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const r=this.members[s];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ah(t,e,n){let i="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:m}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),f&&(i+=`skewX(${f}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}function vs(t){return[t("x"),t("y")]}const Te={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ze=["","X","Y","Z"],Ph=1e3;let Eh=0;function Qe(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Cr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ho(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",P,!(s||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Cr(i)}function Vr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e?.()){this.id=Eh++,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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(Mh),this.nodes.forEach(Rh),this.nodes.forEach(Bh),this.nodes.forEach(Dh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ah)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new On),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ze(o)&&!cr(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;P.read(()=>{h=window.innerWidth}),t(o,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=Pa(d,250),Te.hasAnimatedSinceResize&&(Te.hasAnimatedSinceResize=!1,this.nodes.forEach(xs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||$h,{onLayoutAnimationStart:g,onLayoutAnimationComplete:p}=c.getProps(),v=!this.targetLayout||!Er(this.targetLayout,f),y=!h&&d;if(this.options.layoutRoot||this.resumeFrom||y||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Hn(m,"layout"),onPlay:g,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,y)}else h||xs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),K(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.forEach(Oh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ys);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lh),this.nodes.forEach(Ch),this.nodes.forEach(Vh)):this.nodes.forEach(bs),this.clearAllSnapshots();const a=j.now();I.delta=q(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,Ue.update.process(I),Ue.preRender.process(I),Ue.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Co.read(this.scheduleUpdate))}
1clearAllSnapshots(){this.nodes.forEach(kh),this.sharedNodes.forEach(Ih)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=B(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||gt(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),zh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return B();const l=a.measureViewportBox();if(!(((o=this.scroll)==null?void 0:o.wasRoot)||this.path.some(Nh))){const{scroll:u}=this.root;u&&(ye(l.x,u.offset.x),ye(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=B();if(Y(l,o),(a=this.scroll)!=null&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&Y(l,o),ye(l.x,h.offset.x),ye(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=B();Y(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ct(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),gt(u.latestValues)&&Ct(l,u.latestValues)}return gt(this.latestValues)&&Ct(l,this.latestValues),l}removeTransform(o){const a=B();Y(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!gt(c.latestValues))continue;wn(c.latestValues)&&c.updateSnapshot();const u=B(),h=c.measurePageBox();Y(u,h),hs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return gt(this.latestValues)&&hs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(a=this.parent)!=null&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!this.layout||!(h||d))return;this.resolvedRelativeTargetAt=I.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),Tr(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||wn(this.parent.latestValues)||wr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),Re(this.relativeTargetOrigin,a,l),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(o=this.parent)!=null&&o.isProjectionDirty)&&
1(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;Y(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;fh(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=B());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ts(this.prevProjectionDelta.x,this.projectionDelta.x),ts(this.prevProjectionDelta.y,this.projectionDelta.y)),Xt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!gs(this.projectionDelta.x,this.prevProjectionDelta.x)||!gs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Et(),this.projectionDelta=Et(),this.projectionDeltaWithTransform=Et()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Et();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=B(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=f!==m,p=this.getStack(),v=!p||p.members.length<=1,y=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(jh));this.animationProgress=0;let b;this.mixTargetDelta=T=>{const w=T/1e3;ws(h.x,o.x,w),ws(h.y,o.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Re(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fh(this.relativeTarget,this.relativeTargetOrigin,d,w),b&&Th(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=B()),Y(b,this.relativeTarget)),g&&(this.animationValues=u,uh(u,c,this.latestValues,w,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=P.update(()=>{Te.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=W(0)),this.currentAnimation=hr(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ph),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Mr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||B();const h=H(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=H(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Y(a,l),Ct(a,u),Xt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Sh),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
1resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Qe("z",o,c,this.animationValues);for(let u=0;u<Ze.length;u++)Qe(`rotate${Ze[u]}`,o,c,this.animationValues),Qe(`skew${Ze[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Xe(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Xe(a?.pointerEvents)||""),this.hasProjected&&!gt(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Ah(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:d,y:f}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in se){if(u[m]===void 0)continue;const{correct:g,applyTo:p,isCSSVariable:v}=se[m],y=h==="none"?u[m]:g(u[m],c);if(p){const b=p.length;for(let T=0;T<b;T++)o[p[T]]=y}else v?this.options.visualElement.renderState.vars[m]=y:o[m]=y}this.options.layoutId&&(o.pointerEvents=c===this?Xe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ys),this.root.sharedNodes.clear()}}}function Ch(t){t.updateLayout()}function Vh(t){var e;const n=((e=t.resumeFrom)==null?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?vs(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=H(d);d.min=i[h].min,d.max=d.min+f}):Mr(r,n.layoutBox,i)&&vs(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=H(i[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Et();Xt(a,i,n.layoutBox);const l=Et();o?Xt(l,t.applyTransform(s,!0),n.measuredBox):Xt(l,i,n.layoutBox);const c=!Pr(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const m=B();Re(m,n.layoutBox,d.layoutBox);const g=B();Re(g,i,f.layoutBox),Er(m,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Mh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Dh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function kh(t){t.clearSnapshot()}function ys(t){t.clearMeasurements()}function bs(t){t.isLayoutDirty=!1}function Lh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function xs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Rh(t){t.resolveTargetDelta()}function Bh(t){t.calcProjection()}
1function Oh(t){t.resetSkewAndRotation()}function Ih(t){t.removeLeadSnapshot()}function ws(t,e,n){t.translate=V(e.translate,0,n),t.scale=V(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ts(t,e,n,i){t.min=V(e.min,n.min,i),t.max=V(e.max,n.max,i)}function Fh(t,e,n,i){Ts(t.x,e.x,n.x,i),Ts(t.y,e.y,n.y,i)}function jh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const $h={duration:.45,ease:[.4,0,.1,1]},Ss=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),As=Ss("applewebkit/")&&!Ss("chrome/")?Math.round:z;function Ps(t){t.min=As(t.min),t.max=As(t.max)}function zh(t){Ps(t.x),Ps(t.y)}function Mr(t,e,n){return t==="position"||t==="preserve-aspect"&&!vh(ps(e),ps(n),.2)}function Nh(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}function Uh(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const Wh=Vr({attachResizeListener:(t,e)=>Uh(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Je={current:void 0},Hh=Vr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Je.current){const t=new Wh({});t.mount(window),t.setOptions({layoutScroll:!0}),Je.current=t}return Je.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Dr(t){if(t)return t.options.allowProjection!==!1?t.projection:Dr(t.parent)}const kr={borderRadius:{...J,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomLeftRadius:J,borderBottomRightRadius:J,boxShadow:ho};function Wt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class _h extends lt{constructor(e){super(e),mo(kr)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new Hh(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Dr(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options,{layoutId:n,layout:i,drag:s=!1,dragConstraints:r=!1}=e;this.state.visualElement.projection.setOptions({layout:i,layoutId:n,alwaysMeasureLayout:!!n||!!s||r&&Wt(r),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var o,a;!((o=this.state.visualElement.projection)!=null&&o.isPresent)&&this.state.options.layoutId&&!this.state.isExiting&&((a=this.state.options.animatePresenceContext)==null||a.onMotionExitComplete(this.state.presenceContainer,this.state))}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function Lr(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function Jn(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Kh(t){return e=>Lr(e)&&t(e,Jn(e))}function qt(t,e,n,i){return ke(t,e,Kh(n),i)}function Rr(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Es=Rr("dragHorizontal"),Cs=Rr("dragVertical");function Gh(t){let e=!1;if(t==="y")e=Cs();else if(t==="x")e=Es();else{const n=Es(),i=Cs();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function Sn(t){return t.max-t.min}function Yh(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?V(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?V(n,t,i.max):Math.min(t,n)),t}const An=.35;function Xh(t,{top:e,left:n,bottom:i,right:s}){return{x:Vs(t.x,n,s),y:Vs(t.y,e,i)}}function Vs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function qh(t=An){return t===!1?t=0:t===!0&&(t=An),{x:Ms(t,"left","right"),y:Ms(t,"top","bottom")}}function Ms(t,e,n){return{min:Ds(t,e),max:Ds(t,n)}}function Ds(t,e){return typeof t=="number"?t:t[e]||0}function Zh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}function Qh(t,e){return{x:ks(t.x,e.x),y:ks(t.y,e.y)}}function ks(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Jh(t,e){let n=.5;const i=Sn(t),s=Sn(e);return s>i?n=St(e.min,e.max-i,t.min):i>s&&(n=St(t.min,t.max-s,e.min)),q(0,1,n)}const Ls=(t,e)=>Math.abs(t-e);function tf(t,e){const n=Ls(t.x,e.x),i=Ls(t.y,e.y);return Math.sqrt(n**2+i**2)}const Rs=new Set(["auto","scroll"]);class Br{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=en(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=tf(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:p}=I;this.history.push({...g,timestamp:p});const{onStart:v,onMove:y}=this.handlers;f||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=tn(f,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:p}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=en(d.type==="pointercancel"?this.lastMoveEventInfo:tn(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,v),g&&g(d,v)},!Lr(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const a=Jn(e),l=tn(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=I;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,en(l,this.history)),this.removeListeners=de(qt(this.contextWindow,"pointermove",this.handlePointerMove),qt(this.contextWindow,"pointerup",this.handlePointerUp),qt(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}isScrollable(e){const n=window.getComputedStyle(e);return n.overflow==="auto"||n.overflow==="scroll"||n.overflowX==="auto"||n.overflowX==="scroll"||n.overflowY==="auto"||n.overflowY==="scroll"}
1startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(Rs.has(i.overflowX)||Rs.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:s.x-n.x,y:s.y-n.y};r.x===0&&r.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,s),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){var e;this.removeListeners&&this.removeListeners(),(e=this.removeScrollListeners)==null||e.call(this),this.scrollPositions.clear(),K(this.updatePoint)}}function tn(t,e){return e?{point:e(t.point)}:t}function Bs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function en({point:t},e){return{point:t,delta:Bs(t,Or(e)),offset:Bs(t,ef(e)),velocity:nf(e,.1)}}function ef(t){return t[0]}function Or(t){return t[t.length-1]}function nf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Or(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>X(e)));)n--;if(!i)return{x:0,y:0};const r=U(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Os=()=>({min:0,max:0});function sf(){return{x:Os(),y:Os()}}function Q(t){return[t("x"),t("y")]}function of(t){return!!(R(t)&&t.add)}function Is(t,e){const n=t.getValue("willChange");if(of(n))return n.add(e)}function Ir({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function rf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function af({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Fs(t,e){t.min=t.min+e,t.max=t.max+e}function lf(t,e){return Ir(rf(t.getBoundingClientRect(),e))}function uf(t,e,n){const i=lf(t,n),{scroll:s}=e;return s&&(Fs(i.x,s.offset.x),Fs(i.y,s.offset.y)),i}function cf(t){var e;return(e=t.projection)==null?void 0:e.isPresent}function Fr({current:t}){return t?t.ownerDocument.defaultView:null}const hf=new WeakMap;class ff{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=sf(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const i=c=>{n?this.stopAnimation():this.pauseAnimation(),n&&this.snapToCursor(Jn(c,"page").point)},s=(c,u)=>{this.stopAnimation();const{drag:h,dragPropagation:d,onDragStart:f}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gh(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(g=>{let p=this.getAxisMotionValue(g).get()||0;if(nt.test(p)){const{projection:v}=this.visualElement;if(v&&v.layout){const y=v.layout.layoutBox[g];y&&(p=Sn(y)*(parseFloat(p)/100))}}this.originPoint[g]=p}),f&&P.postRender(()=>f(c,u)),Is(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(c,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:f,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(d&&this.currentDirection===null){this.currentDirection=df(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),m&&m(c,u)},o=(c,u)=>this.stop(c,u),a=()=>Q(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)==null?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Br(e,{onSessionStart:i,onStart:s,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Fr(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&P.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!be(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=Yh(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;n&&Wt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Xh(s.layoutBox,n):this.constraints=!1,this.elastic=qh(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Zh(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Wt(e))return!1;const i=e,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=uf(i,s.root,this.visualElement.getTransformPagePoint());let o=Qh(s.layout.layoutBox,r);if(n){const a=n(af(o));this.hasMutatedConstraints=!!a,a&&(o=Ir(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Q(u=>{if(!be(u,n,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const d=s?200:1e6,f=s?40:1e7,m={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Is(this.visualElement,e),i.start(Qn(e,i,0,n,this.visualElement,!1))}stopAnimation(){cf(this.visualElement)&&Q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Q(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[n]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Q(n=>{const{drag:i}=this.getProps();if(!be(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];r.set(e[n]-V(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Wt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Q(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=Jh({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Q(o=>
1{if(!be(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(V(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;hf.set(this.visualElement,this);const e=this.visualElement.current,n=qt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Wt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),P.read(i);const o=ke(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Q(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=An,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function be(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function df(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class mf extends lt{constructor(e){super(e),this.removeGroupControls=z,this.removeListeners=z,this.controls=new ff(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||z}unmount(){this.removeGroupControls(),this.removeListeners()}}let $t=!1;class pf extends lt{constructor(e){super(e),mo(kr),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}beforeUpdate(e){this.getSnapshot(e,void 0)}update(){this.didUpdate()}didUpdate(){var e,n;$t&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&($t=!1,(n=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||n.didUpdate())}mount(){var e;const n=this.state.options,i=this.state.options.layoutGroup;if(n.layout||n.layoutId){const s=this.state.visualElement.projection;if(s){s.promote();const r=s.getStack();r?.prevLead&&!r.prevLead.snapshot&&(r.prevLead.willUpdate(),$t=!0),(e=i?.group)==null||e.add(s)}Te.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){this.getSnapshot(this.state.options,!1)}unmount(){const e=this.state.options.layoutGroup,n=this.state.visualElement.projection;n&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(n),this.state.options.layoutId&&($t=!0),this.didUpdate())}getSnapshot(e,n){const i=this.state.visualElement.projection,{drag:s,layoutDependency:r,layout:o,layoutId:a}=e;if(!i||!o&&!a&&!s)return;$t=!0;const l=this.state.options;(s||l.layoutDependency!==r||r===void 0||Pe(n)&&i.isPresent!==n)&&i.willUpdate(),Pe(n)&&n!==i.isPresent&&(i.isPresent=n,n?i.promote():i.relegate())}}function js(t){return(e,n)=>{t&&P.postRender(()=>t(e,n))}}class gf extends lt{constructor(){super(...arguments),this.removePointerDownListener=z}onPointerDown(e){this.session=new Br(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Fr(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:js((e,n)=>{const{onPanSessionStart:i}=this.state.options;i&&i(e,n)}),onStart:js((e,n)=>{const{onPanStart:i}=this.state.options;i&&i(e,n)}),onMove:(e,n)=>{const{onPan:i}=this.state.options;i&&i(e,n)},onEnd:(e,n)=>{const{onPanEnd:i}=this.state.options;delete this.session,i&&P.postRender(()=>i(e,n))}}}mount(){this.removePointerDownListener=qt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vf=[_c,Jc,eh,ih,oh,_h,gf,mf,pf];let yf=0;function bf(t){const e=new WeakMap,n=Qs();function i(r){if(t.mode!=="popLayout")return;const o=r.offsetParent,a=o instanceof HTMLElement&&o.offsetWidth||0,l={height:r.offsetHeight||0,width:r.offsetWidth||0,top:r.offsetTop,left:r.offsetLeft,right:0};l.right=a-l.width-l.left;
1const c=t.anchorX==="left"?`left: ${l.left}px`:`right: ${l.right}px`,u=`pop-${yf++}`;r.dataset.motionPopId=u;const h=document.createElement("style");n.value.nonce&&(h.nonce=n.value.nonce),e.set(r,h),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` 2 [data-motion-pop-id="${u}"] { 3 position: absolute !important; 4 width: ${l.width}px !important; 5 height: ${l.height}px !important; 6 top: ${l.top}px !important; 7 ${c} !important; 8 } 9 `)}function s(r){const o=e.get(r);o&&(e.delete(r),P.render(()=>{document.head.removeChild(o)}))}return{addPopStyle:i,removePopStyle:s}}const Pn="data-ap-child",[xf,wf]=Fe("AnimatePresenceContext");function Tf(t){const e=new Map,n=new Set,{addPopStyle:i,removePopStyle:s}=bf(t);function r(m,g){let p=e.get(m);p||(p={motions:new Set,exitingMotions:new Set,el:m},e.set(m,p)),p.motions.add(g)}function o(m,g){const p=e.get(m);p&&(p.exitingMotions.delete(g),p.exitingMotions.size===0&&p.done&&h(p))}function a(m){n.add(m)}function l(m){n.delete(m)}const c={initial:t.initial,custom:t.custom,register:r,onMotionExitComplete:o,registerPending:a,unregisterPending:l};pt(()=>t.custom,m=>{c.custom=m},{flush:"pre"}),wf(c),Ie(()=>{c.initial=void 0});function u(m){if(m instanceof HTMLElement&&!m.hasAttribute(Pn)){m.setAttribute(Pn,"");const g=Ee.get(m);g&&!g.presenceContainer&&(g.presenceContainer=m,r(m,g))}}function h(m){var g,p,v,y,b;s(m.el),m.motions.forEach(T=>{T.getSnapshot(T.options,!1)}),(g=m.done)==null||g.call(m),m.done=void 0,(p=m.el)!=null&&p.isConnected?(y=(v=m.motions.values().next())==null?void 0:v.value)==null||y.didUpdate():(m.motions.forEach(T=>{T.unmount()}),m.motions.clear()),(b=t.onExitComplete)==null||b.call(t)}function d(m,g){u(m);const p=e.get(m);p&&(p.exitingMotions.clear(),p.motions.forEach(v=>{v.setActive("exit",!1),v.getSnapshot(v.options,!0)})),g()}function f(m,g){var p,v,y;const b=m;u(b),n.forEach(S=>{S.element&&b.contains(S.element)&&(S.presenceContainer=b,r(b,S),n.delete(S))});const T=e.get(b),w=Ee.get(b);if((!T||T.motions.size===0)&&!w){g(),(p=t.onExitComplete)==null||p.call(t);return}T.done=g,i(b),T.motions.forEach(S=>{T.exitingMotions.add(S),S.setActive("exit",!0),S.getSnapshot(S.options,!1)}),(y=(v=T.motions.values().next())==null?void 0:v.value)==null||y.didUpdate()}return ue(()=>{e.forEach(m=>{m.motions.forEach(g=>{g.unmount()})}),e.clear()}),{enter:d,exit:f}}const Dd=G({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:"left"}},setup(t){const e=t,{enter:n,exit:i}=Tf(e),s=E(()=>e.mode!=="wait"?{tag:e.as}:{mode:e.mode==="wait"?"out-in":void 0});return(r,o)=>(O(),_(kt(r.mode==="wait"?ta:ea),Dt(s.value,{appear:"",onLeave:it(i),onEnter:it(n)}),{default:tt(()=>[Be(r.$slots,"default")]),_:3},16,["onLeave","onEnter"]))}}),Sf=50,$s=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Af=()=>({time:0,x:$s(),y:$s()}),Pf={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function zs(t,e,n,i){const s=n[e],{length:r,position:o}=Pf[e],a=s.current,l=n.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=St(0,s.scrollLength,s.current);const c=i-l;s.velocity=c>Sf?0:In(s.current-a,c)}function Ef(t,e,n){zs(t,"x",e,n),zs(t,"y",e,n),e.time=n}function Cf(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(mr(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const r=i.getBoundingClientRect();n.x+=s.left-r.left,n.y+=s.top-r.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:r}=i.getBBox();n.x+=s,n.y+=r;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const En={start:0,center:.5,end:1};function Ns(t,e,n=0){let i=0;if(t in En&&(t=En[t]),typeof t=="string"){const s=parseFloat(t);t.endsWith("px")?i=s:t.endsWith("%")?t=s/100:t.endsWith("vw")?i=s/100*document.documentElement.clientWidth:t.endsWith("vh")?i=s/100*document.documentElement.clientHeight:t=s}return typeof t=="number"&&(i=e*t),n+i}const Vf=[0,0];function Mf(t,e,n,i){let s=Array.isArray(t)?t:Vf,r=0,o=0;return typeof t=="number"?s=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?s=t.split(" "):s=[t,En[t]?t:"0"]),r=Ns(s[0],n,i),o=Ns(s[1],e),r-o}const Df={All:[[0,0],[1,1]]},kf={x:0,y:0};function Lf(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Rf(t,e,n){const{offset:i=Df.All}=n,{target:s=t,axis:r="y"}=n,o=r==="y"?"height":"width",a=s!==t?Cf(s,t):kf,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:Lf(s),c={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let u=!e[r].interpolate;const h=i.length;for(let d=0;d<h;d++){const f=Mf(i[d],c[o],l[o],a[r]);
9!u&&f!==e[r].interpolatorOffsets[d]&&(u=!0),e[r].offset[d]=f}u&&(e[r].interpolate=Kn(e[r].offset,Nn(i),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=q(0,1,e[r].interpolate(e[r].current))}function Bf(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function Of(t,e,n,i={}){return{measure:s=>{Bf(t,i.target,n),Ef(t,n,s),(i.offset||i.target)&&Rf(t,n,i)},notify:()=>e(n)}}const Se=new WeakMap;let At;const jr=(t,e,n)=>(i,s)=>s&&s[0]?s[0][t+"Size"]:ze(i)&&"getBBox"in i?i.getBBox()[e]:i[n],If=jr("inline","width","offsetWidth"),Ff=jr("block","height","offsetHeight");function jf({target:t,borderBoxSize:e}){var n;(n=Se.get(t))==null||n.forEach(i=>{i(t,{get width(){return If(t,e)},get height(){return Ff(t,e)}})})}function $f(t){t.forEach(jf)}function zf(){typeof ResizeObserver>"u"||(At=new ResizeObserver($f))}function Nf(t,e){At||zf();const n=je(t);return n.forEach(i=>{let s=Se.get(i);s||(s=new Set,Se.set(i,s)),s.add(e),At?.observe(i)}),()=>{n.forEach(i=>{const s=Se.get(i);s?.delete(e),s?.size||At?.unobserve(i)})}}const Ae=new Set;let Vt;function Uf(){Vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ae.forEach(e=>e(t))},window.addEventListener("resize",Vt)}function Wf(t){return Ae.add(t),Vt||Uf(),()=>{Ae.delete(t),!Ae.size&&typeof Vt=="function"&&(window.removeEventListener("resize",Vt),Vt=void 0)}}function Hf(t,e){return typeof t=="function"?Wf(t):Nf(t,e)}const zt=new WeakMap,Us=new WeakMap,nn=new WeakMap,Ws=t=>t===document.scrollingElement?window:t;function $r(t,{container:e=document.scrollingElement,...n}={}){if(!e)return z;let i=nn.get(e);i||(i=new Set,nn.set(e,i));const s=Af(),r=Of(e,t,s,n);if(i.add(r),!zt.has(e)){const a=()=>{for(const h of i)h.measure(I.timestamp);P.preUpdate(l)},l=()=>{for(const h of i)h.notify()},c=()=>P.read(a);zt.set(e,c);const u=Ws(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&Us.set(e,Hf(e,c)),u.addEventListener("scroll",c,{passive:!0}),c()}const o=zt.get(e);return P.read(o,!1,!0),()=>{var a;K(o);const l=nn.get(e);if(!l||(l.delete(r),l.size))return;const c=zt.get(e);zt.delete(e),c&&(Ws(e).removeEventListener("scroll",c),(a=Us.get(e))==null||a(),window.removeEventListener("resize",c))}}const Hs=new Map;function _f(t){const e={value:0},n=$r(i=>{e.value=i[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function zr({source:t,container:e,...n}){const{axis:i}=n;t&&(e=t);const s=Hs.get(e)??new Map;Hs.set(e,s);const r=n.target??"self",o=s.get(r)??{},a=i+(n.offset??[]).join(",");return o[a]||(o[a]=!n.target&&or()?new ScrollTimeline({source:e,axis:i}):_f({container:e,...n})),o[a]}function Nr(t,e){let n;const i=()=>{const{currentTime:s}=e,o=(s===null?0:s.value)/100;n!==o&&t(o),n=o};return P.preUpdate(i,!0),()=>K(i)}function Kf(t,e){const n=zr(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:i=>(i.pause(),Nr(s=>{i.time=i.iterationDuration*s},n))})}function Gf(t){return t.length===2}function Yf(t,e){return Gf(t)?$r(n=>{t(n[e.axis].progress,n)},e):Nr(t,zr(e))}function Xf(t,{axis:e="y",container:n=document.scrollingElement,...i}={}){if(!n)return z;const s={axis:e,container:n,...i};return typeof t=="function"?Yf(t,s):Kf(t,s)}function sn(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],s=t[1+n],r=t[2+n],o=t[3+n],a=Kn(s,r,o);return e?a(i):a}function re(t){if(t)return t.nodeType===3||t.nodeType===8?re(t.nextSibling):t}function _s(t){return re(F(t))}const[qf]=Fe("LazyMotionContext");function Zf(t){const e=Na(null),n=Wa({}),i=Qs(),s=xf({}),r=qf({features:vt([]),strict:!1}),o=na();function a(){return n.id&&t.layoutId?`${n.id}-${t.layoutId}`:t.layoutId||void 0}function l(){return{...t,lazyMotionContext:r,layoutId:a(),transition:t.transition??i.value.transition,layoutGroup:n,motionConfig:i.value,inViewOptions:t.inViewOptions??i.value.inViewOptions,animatePresenceContext:s,initial:s.initial===!1?s.initial:t.initial===!0?void 0:t.initial}}function c(){return{...o,...l()}}const u=new Ja(c(),e);
9Ua(u);function h(){var f;const m=u.type==="svg",g={...o};Object.keys(o).forEach(y=>{R(o[y])&&(g[y]=o[y].get())});let p={...t.style,...m?{}:((f=u.visualElement)==null?void 0:f.latestValues)||u.baseTarget};if(m){const{attrs:y,style:b}=dl({...u.isMounted()?u.target:u.baseTarget,...p});(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=b.transformBox??"fill-box",delete y.transformBox),Object.assign(g,y),p=b}t.drag&&t.dragListener!==!1&&Object.assign(p,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const v=ul(p);return v&&(g.style=v),g}const d=Zs().proxy;return ia(()=>{u.beforeMount()}),Ie(()=>{if(u.mount(re(d.$el),c(),Jf(d)),s.register&&u.element){const f=u.element.closest(`[${Pn}]`);f?(u.presenceContainer=f,s.register(f,u)):s.registerPending&&s.registerPending(u)}}),sa(()=>u.beforeUnmount()),ue(()=>{s.unregisterPending&&s.unregisterPending(u);const f=re(d.$el);f?.isConnected||u.unmount()}),oa(()=>{u.beforeUpdate(c())}),ra(()=>{u.update(c())}),{getProps:l,getAttrs:h,layoutGroup:n,state:u}}const Qf={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function Jf(t){var e;const n=((e=re(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&n}const td=new Map,ed=new Map;function nd(t){if(!Array.isArray(t))return[t];const e=[];for(const n of t)Array.isArray(n)?e.push(...n):e.push(n);return e}const id=["area","img","input"];function sd(t,e,n){var i,s;if(typeof t=="string"&&id.includes(t))return Js(t,e);if(t==="template"){if(!n.default)return null;const r=nd(n.default()),o=r.findIndex(u=>u.type!==aa);if(o===-1)return r;const a=r[o];(i=a.props)==null||delete i.ref;const l=a.props?Dt(e,a.props):e;e.class&&((s=a.props)!=null&&s.class)&&delete a.props.class;const c=la(a,l);for(const u in l)u.startsWith("on")&&(c.props||(c.props={}),c.props[u]=l[u]);return r.length===1?c:(r[o]=c,r)}return null}function Ks(t,e={}){var n;const i=typeof t=="string",s=i?t:t.name||"",r=((n=e.features)==null?void 0:n.length)>0?td:ed;if(i&&r?.has(t))return r.get(t);const o=G({inheritAttrs:!1,props:{...Qf,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:s?`motion.${s}`:"Motion",setup(a,{slots:l}){const{getProps:c,getAttrs:u,state:h}=Zf(a);function d(){const f=h.element;if((!(typeof a.as=="object")||a.asChild)&&f){const{style:g}=u();if(g)for(const[p,v]of Object.entries(g))f.style[p]=v}}return()=>{const f=c(),m=u(),g=a.asChild?"template":a.as,p={...e.forwardMotionProps||a.forwardMotionProps?f:{},...m,onVnodeUpdated:d},v=sd(g,p,l);return v!==null?v:Js(g,{...p},l)}}});return i&&r?.set(t,o),o}function od(t=[]){return new Proxy({},{get(e,n){return n==="create"?(i,s)=>Ks(i,{...s,features:t}):Ks(n,{features:t})}})}const rd=od(vf),kd=rd.create("div");function Ur(t){const e=W(t()),n=()=>e.set(t()),i=()=>P.preRender(n,!1,!0);let s;const r=a=>
9{s=a.map(l=>l.on("change",i))},o=()=>{s.forEach(a=>a()),K(n)};return ue(()=>{o()}),{subscribe:r,unsubscribe:o,value:e,updateValue:n}}function ad(t){ht.current=[];const{value:e,subscribe:n,unsubscribe:i,updateValue:s}=Ur(t);return n(ht.current),ht.current=void 0,ae(()=>{i(),ht.current=[],s(),n(ht.current),ht.current=void 0}),e}function ld(t,e,n,i){if(typeof t=="function")return ad(t);if(n&&!Array.isArray(n)&&typeof n=="object"){const o={};for(const a in n)if(Object.prototype.hasOwnProperty.call(n,a)){const l=n[a];o[a]=ld(t,e,l,i)}return o}let s,r;if(typeof e=="function")r=e,s=Array.isArray(t)?t:[t];else if(ua(e)){const o=W(0);let a=sn(e.value,n,i);pt(e,l=>{a=sn(l,n,i),o.set(o.get()+1)},{flush:"sync"}),r=l=>Array.isArray(l)?a(l[0]):a(l),s=Array.isArray(t)?[...t,o]:[t,o]}else r=sn(e,n,i),s=Array.isArray(t)?t:[t];return Array.isArray(t)?Gs(s,r):Gs(s,o=>r(o[0]))}function Gs(t,e){const n=[],i=()=>{n.length=0;const o=t.length;for(let a=0;a<o;a++)n[a]=t[a].get();return e(n)},{value:s,subscribe:r}=Ur(i);return r(t),s}function Ld(t,e,n){const i=t.on(e,n);return ue(()=>{i()}),i}const ud=typeof window>"u";function cd(){return{scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}}function Rd(t={}){const e=cd();return ae(n=>{if(ud)return;const i=Xf((s,{x:r,y:o})=>{e.scrollX.set(r.current),e.scrollXProgress.set(r.progress),e.scrollY.set(o.current),e.scrollYProgress.set(o.progress)},{offset:it(t.offset),axis:it(t.axis),container:_s(t.container),target:_s(t.target)});n(()=>{i()})},{flush:"post"}),e}function hd(t={}){const e=ft("(prefers-reduced-motion: reduce)",t);return E(()=>e.value)}function fd(t,e){const n=vt(!1);return ae(i=>{const s=it(e)||{},{once:r}=s,o=F(t);if(!o||r&&n.value)return;const l=yr(o,()=>(n.value=!0,r?void 0:()=>{n.value=!1}),{...s,root:it(s.root)});i(()=>{l()})},{flush:"post"}),n}const Bd=G({name:"MdsLink",__name:"link",props:{label:{},trackingData:{},role:{},tabindex:{},variant:{default:"link-m"},ariaLabel:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},ariaCurrent:{type:[String,Boolean]},is:{default:"a"},href:{},target:{},rel:{},nuxt:{type:Boolean}},setup(t){const e=Cn(t,["is","variant","iconPosition","ariaLabel","icon","disabled","href","target","rel","role","tabindex","ariaCurrent"]),n=E(()=>t.is!=="a"?!1:e.nuxt===!0),i=E(()=>t.icon?.size!=null?t.icon.size:t.variant==="link-s"?16:24),s=E(()=>e.trackingData??{text:e.label,componentName:"MdsLink"}),r=no(()=>({href:t.href,target:t.target,rel:t.rel,role:t.role,tabindex:t.tabindex,ariaCurrent:t.ariaCurrent,disabled:t.disabled}),s,{keepWhenDisabled:["tabindex"]});return(o,a)=>(O(),_(kt(o.is==="a"?to:"button"),Dt(o.is==="a"?it(r):{type:"button",disabled:o.disabled},{nuxt:n.value,class:["group flex items-center gap-3xs outline-main-solid focus-visible:outline-offset-4",[{"flex-row":o.icon&&o.iconPosition!=="left","flex-row-reverse":o.icon&&o.iconPosition==="left"},{"pointer-events-none text-main-contrast-secondary":o.disabled}]],"aria-label":o.ariaLabel,"data-track-component-name":s.value.componentName,"data-track-text":s.value.text,"data-track-title":s.value.title?s.value.title:void 0,"data-track-level":s.value.level?s.value.level:void 0,"data-track-id":s.value.id?s.value.id:void 0}),{default:tt(()=>[o.label?(O(),_(ee,{key:0,is:"span",variant:o.variant},{default:tt(()=>[Jt(te(e.label),1)]),_:1},8,["variant"])):Mt("",!0),o.icon&&o.variant!=="mono"?(O(),_(rn,{key:1,category:o.icon.category,name:o.icon.name,size:i.value,class:"transition-colors duration-200 group-hover:text-active-primary group-active:text-main-solid"},null,8,["category","name","size"])):Mt("",!0)]),_:1},16,["nuxt","class","aria-label","data-track-component-name","data-track-text","data-track-title","data-track-level","data-track-id"]))}}),dd={class:"mx-auto grid w-full max-w-[calc(var(--container-max-width)+(var(--grid-gap)*2))] grid-cols-[repeat(var(--grid-unit),1fr)] gap-(--grid-gap) px-(--grid-margin)"},Od=G({name:"MdsGrid",__name:"grid",setup(t){return(e,n)=>(O(),wt("div",dd,[Be(e.$slots,"default")]))}}),Ys="!@#$%^&*():{};[]|,.<>/?",Id=G({name:"MdsScrambleText",__name:"scramble-text",props:{text:{},is:{default:"p"},variant:{default:"mono"},cycles:{default:2},shuffleTime:{default:50},startDelay:{default:0},whileInView:{type:Boolean,default:!0},eyebrowVariant:{},textClass:{},particle:{type:Boolean},particleAnimation:{}},setup(t){const e=hd(),n=vt(null),i=vt(null),s=vt(null),r=vt(t.text||""),o=t.text||"",a=vt(!1),l=fd(s,{once:!0}),c=()=>{n.value&&(clearInterval(n.value),n.value=null)},u=()=>{c();let f=0;const m=Math.min(5,o.length),g=Math.max(o.length-m,0),p=o.length-g;n.value=setInterval(()=>{const v=o.split("").map((y,b)=>{if(b<g)return y;const T=b-g;if(f/t.cycles>T)return y;const w=Math.floor(Math.random()*Ys.length);return Ys[w]}).join("");r.value=v,f++,f>=p*t.cycles&&h()},t.shuffleTime)},h=()=>{c(),r.value=t.text},d=()=>{e.value||a.value||(a.value=!0,i.value=dr(0,1,{duration:t.startDelay,onComplete:()=>u()}))};return ae(()=>{t.whileInView&&l.value&&d()}),Ie(()=>{t.whileInView||d()}),ue(()=>{i.value?.stop(),c()}),(f,m)=>(O(),wt("span",{ref_key:"elementRef",ref:s},[f.variant==="mono"?(O(),_(ya,{key:0,text:r.value,variant:f.eyebrowVariant,"text-class":f.textClass,particle:f.particle,"particle-animation":f.particleAnimation},null,8,["text","variant","text-class","particle","particle-animation"])):(O(),_(ee,{key:1,is:f.is,variant:f.variant},{default:tt(()=>[Jt(te(r.value),1)]),_:1},8,["is","variant"]))],512))}});
9export{Wc as A,F as B,Pd as C,P as D,K as E,so as F,Td as G,Ur as H,R as I,no as J,et as K,vd as L,kd as M,Ad as N,ga as O,Sd as P,ft as Q,Vd as R,I as S,$e as T,to as _,Rd as a,ld as b,Id as c,Dd as d,wd as e,xd as f,ee as g,yd as h,rn as i,Ld as j,Od as k,ya as l,rd as m,Bd as n,fd as o,W as p,dr as q,Ed as r,bd as s,eo as t,hd as u,Wa as v,mu as w,Cd as x,zi as y,q as z};
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.