1import{a as e,n as t,o as n,r}from"./chunk-CMxvf4Kt.js";import{t as i}from"./react-cS1o3OVs.js";import{t as a}from"./link-B8zX2HDQ.js";import{t as o}from"./jsx-runtime-sLPvdpSW.js";import{t as s}from"./createLucideIcon-DsQZXInX.js";import{t as c}from"./download-B13b3Cvb.js";import{t as l}from"./file-text-CnJobDZz.js";import{n as u,t as d}from"./settings-BqKgZSS0.js";import{t as f}from"./search-rrILv6pg.js";import{t as p}from"./sparkles-BTDoYNRp.js";import{t as m}from"./users-9Z88kXKr.js";import{Gi as h,Or as g}from"./index-BzeQRyPn.js";import{n as _,r as v,t as y}from"./page-copy-n152bkjw.js";import{t as b}from"./SeoInternalLinks-BRZ9HIqE.js";var x=s(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),S=o();function C({id:e,label:t,children:n,className:r=``}){return(0,S.jsx)(`section`,{id:e,className:`relative px-5 py-24 md:px-10 md:py-32 ${r}`,children:(0,S.jsxs)(`div`,{className:`mx-auto max-w-[1320px]`,children:[t&&(0,S.jsx)(`p`,{className:`mb-6 text-[11px] uppercase tracking-[0.3em] text-gold`,children:t}),n]})})}function ee({className:e=``}){return(0,S.jsx)(`div`,{className:`h-px w-full bg-gold/40 ${e}`})}function te({children:e,className:t=``}){return(0,S.jsx)(`h2`,{className:`font-display text-[32px] leading-[1.05] tracking-tight text-white md:text-[48px] ${t}`,children:e})}function ne({children:e,className:t=``}){return(0,S.jsx)(`h3`,{className:`font-display text-[22px] leading-[1.15] tracking-tight text-white md:text-[28px] ${t}`,children:e})}function re({to:e,href:t,children:n,variant:r=`solid`,className:i=``,full:o}){let s=`inline-flex items-center justify-center rounded-sm px-6 py-3.5 text-[12px] font-bold uppercase tracking-[0.18em] transition-all duration-200 ${r===`solid`?`bg-gold text-black hover:bg-gold-hover`:`border border-gold text-gold hover:bg-gold hover:text-black`} ${o?`w-full`:``} ${i}`;return t?(0,S.jsx)(`a`,{href:t,className:s,children:n}):(0,S.jsx)(a,{to:e??`/`,className:s,children:n})}var w=n(i(),1),ie=(0,w.createContext)({});function ae(e){let t=(0,w.useRef)(null);return t.current===null&&(t.current=e()),t.current}var oe=typeof window<`u`?w.useLayoutEffect:w.useEffect,se=(0,w.createContext)(null);function ce(e,t){e.indexOf(t)===-1&&e.push(t)}function le(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var T=(e,t,n)=>n>t?t:n<e?e:n,E={},ue=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),de=e=>typeof e==`object`&&!!e,fe=e=>/^0[^.\s]+$/u.test(e);function pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var D=e=>e,me=(...e)=>e.reduce((e,t)=>n=>t(e(n))),he=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ge=class{constructor(){this.subscriptions=[]}add(e){return ce(this.subscriptions,e),()=>le(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},O=e=>e*1e3,k=e=>e/1e3,_e=(e,t)=>t?1e3/t*e:0,ve=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ye=1e-7,be=12;function xe(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ve(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ye&&++s<be);return o}function Se(e,t,n,r){if(e===t&&n===r)return D;let i=t=>xe(t,0,1,e,n);return e=>e===0||e===1?e:ve(i(e),t,r)}var Ce=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,we=e=>t=>1-e(1-t),Te=Se(.33,1.53,.69,.99),Ee=we(Te),De=Ce(Ee),Oe=e=>e>=1?1:(e*=2)<1?.5*Ee(e):.5*(2-2**(-10*(e-1))),ke=e=>1-Math.sin(Math.acos(e)),Ae=we(ke),je=Ce(ke),Me=Se(.42,0,1,1),Ne=Se(0,0,.58,1),Pe=Se(.42,0,.58,1),Fe=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ie=e=>Array.isArray(e)&&typeof e[0]==`number`,Le={linear:D,easeIn:Me,easeInOut:Pe,easeOut:Ne,circIn:ke,circInOut:je,circOut:Ae,backIn:Ee,backInOut:De,backOut:Te,anticipate:Oe},Re=e=>typeof e==`string`,ze=e=>{if(Ie(e)){e.length;let[t,n,r,i]=e;return Se(t,n,r,i)}else if(Re(e))return Le[e],`${e}`,Le[e];return e},Be=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],A={value:null,addProjectionMetrics:null};function Ve(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;
1n=r,r=o,n.forEach(l),t&&A.value&&A.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var He=40;function Ue(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Be.reduce((e,n)=>(e[n]=Ve(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=E.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,He),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Be.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Be.length;t++)o[Be[t]].cancel(e)},state:i,steps:o}}var{schedule:j,cancel:M,state:N,steps:We}=Ue(typeof requestAnimationFrame<`u`?requestAnimationFrame:D,!0),Ge;function Ke(){Ge=void 0}var P={now:()=>(Ge===void 0&&P.set(N.isProcessing||E.useManualTiming?N.timestamp:performance.now()),Ge),set:e=>{Ge=e,queueMicrotask(Ke)}},F={layout:0,mainThread:0,waapi:0},qe=e=>t=>typeof t==`string`&&t.startsWith(e),Je=qe(`--`),Ye=qe(`var(--`),Xe=e=>Ye(e)?Ze.test(e.split(`/*`)[0].trim()):!1,Ze=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Qe(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var $e={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},et={...$e,transform:e=>T(0,1,e)},tt={...$e,default:1},nt=e=>Math.round(e*1e5)/1e5,rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function it(e){return e==null}var at=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ot=(e,t)=>n=>!!(typeof n==`string`&&at.test(n)&&n.startsWith(e)||t&&!it(n)&&Object.prototype.hasOwnProperty.call(n,t)),st=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(rt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ct=e=>T(0,255,e),lt={...$e,transform:e=>Math.round(ct(e))},ut={test:ot(`rgb`,`red`),parse:st(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+lt.transform(e)+`, `+lt.transform(t)+`, `+lt.transform(n)+`, `+nt(et.transform(r))+`)`};function dt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ft={test:ot(`#`),parse:dt,transform:ut.transform},pt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),I=pt(`deg`),L=pt(`%`),R=pt(`px`),mt=pt(`vh`),ht=pt(`vw`),gt={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},_t={test:ot(`hsl`,`hue`),parse:st(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform(nt(t))+`, `+L.transform(nt(n))+`, `+nt(et.transform(r))+`)`},z={test:e=>ut.test(e)||ft.test(e)||_t.test(e),parse:e=>ut.test(e)?ut.parse(e):_t.test(e)?_t.parse(e):ft.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?ut.transform(e):_t.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},vt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yt(e){return isNaN(e)&&typeof e==`string`&&(e.match(rt)?.length||0)+(e.match(vt)?.length||0)>0}var bt=`number`,xt=`color`,St=`var`,Ct=`var(`,wt="${}",Tt=/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 Et(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Tt,e=>(z.test(e)?(r.color.push(a),i.push(xt),n.push(z.parse(e))):e.startsWith(Ct)?(r.var.push(a),i.push(St),n.push(e)):(r.number.push(a),i.push(bt),n.push(parseFloat(e))),++a,wt)).split(wt),indexes:r,types:i}}function Dt(e){return Et(e).values}function Ot({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===bt?i+=nt(r[a]):e===xt?i+=z.transform(r[a]):i+=r[a]}return i}}function kt(e){return Ot(Et(e))}var At=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,jt=(e,t)=>
1typeof e==`number`?t?.trim().endsWith(`/`)?e:0:At(e);function Mt(e){let t=Et(e);return Ot(t)(t.values.map((e,n)=>jt(e,t.split[n])))}var B={test:yt,parse:Dt,createTransformer:kt,getAnimatableNone:Mt};function Nt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Nt(s,r,e+1/3),a=Nt(s,r,e),o=Nt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ft(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,It=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Lt=[ft,ut,_t],Rt=e=>Lt.find(t=>t.test(e));function zt(e){let t=Rt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===_t&&(n=Pt(n)),n}var Bt=(e,t)=>{let n=zt(e),r=zt(t);if(!n||!r)return Ft(e,t);let i={...n};return e=>(i.red=It(n.red,r.red,e),i.green=It(n.green,r.green,e),i.blue=It(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),ut.transform(i))},Vt=new Set([`none`,`hidden`]);function Ht(e,t){return Vt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ut(e,t){return n=>V(e,t,n)}function Wt(e){return typeof e==`number`?Ut:typeof e==`string`?Xe(e)?Ft:z.test(e)?Bt:Jt:Array.isArray(e)?Gt:typeof e==`object`?z.test(e)?Bt:Kt:Ft}function Gt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Wt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Kt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Wt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function qt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Jt=(e,t)=>{let n=B.createTransformer(t),r=Et(e),i=Et(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Vt.has(e)&&!i.values.length||Vt.has(t)&&!r.values.length?Ht(e,t):me(Gt(qt(r,i),i.values),n):(`${e}${t}`,Ft(e,t))};function Yt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V(e,t,n):Wt(e)(e,t)}var Xt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>j.update(t,e),stop:()=>M(t),now:()=>N.isProcessing?N.timestamp:P.now()}},Zt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Qt=2e4;function $t(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function en(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min($t(r),Qt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:k(i)}}var H={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};function tn(e,t){return e*Math.sqrt(1-t*t)}var nn=12;function rn(e,t,n){let r=n;for(let n=1;n<nn;n++)r-=e(r)/t(r);return r}var an=.001;function on({duration:e=H.duration,bounce:t=H.bounce,velocity:n=H.velocity,mass:r=H.mass}){let i,a;H.maxDuration;let o=1-t;o=T(H.minDamping,H.maxDamping,o),e=T(H.minDuration,H.maxDuration,k(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=tn(t,o),c=Math.exp(-i);return an-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=tn(t**2,o);return(-i(t)+an>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=rn(i,a,s);if(e=O(e),isNaN(c))return{stiffness:H.stiffness,damping:H.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var sn=[`duration`,`bounce`],cn=[`stiffness`,`damping`,`mass`];function ln(e,t){return t.some(t=>e[t]!==void 0)}function un(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!ln(e,cn)&&ln(e,sn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*T(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:H.mass,stiffness:i,damping:a}}else{let n=on({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}return t}function dn(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=un({...n,velocity:-k(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=k(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?H.restSpeed.granular:H.restSpeed.default,i||=v?H.restDelta.granular:H.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=tn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let te={calculatedDuration:p&&d||null,velocity:e=>O(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=O(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=O(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min($t(te),Qt),t=Zt(t=>te.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return te}dn.applyToOptions=e=>{let t=en(e,100,dn);return e.ease=t.ease,e.duration=O(t.duration),e.type=`keyframes`,e};var fn=5;function pn(e,t,n){let r=Math.max(t-fn,0);return _e(n-e(r),t-r)}function mn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
1500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=dn({keyframes:[f.value,m(f.value)],velocity:pn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function hn(e,t,n){let r=[],i=n||E.mix||Yt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=me(Array.isArray(t)?t[n]||D:t,a)),r.push(a)}return r}function gn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=hn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=he(e[r],e[r+1],n);return s[r](i)};return n?t=>l(T(e[0],e[a-1],t)):l}function _n(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=he(0,t,r);e.push(V(n,1,i))}}function vn(e){let t=[0];return _n(t,e.length-1),t}function yn(e,t){return e.map(e=>e*t)}function bn(e,t){return e.map(()=>t||Pe).splice(0,e.length-1)}function xn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Fe(r)?r.map(ze):ze(r),a={done:!1,value:t[0]},o=gn(yn(n&&n.length===t.length?n:vn(t),e),t,{ease:Array.isArray(i)?i:bn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Sn=e=>e!==null;function Cn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Sn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var wn={decay:mn,inertia:mn,tween:xn,keyframes:xn,spring:dn};function Tn(e){typeof e.type==`string`&&(e.type=wn[e.type])}var En=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Dn=e=>e/100,On=class extends En{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},F.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Tn(e);let{type:t=xn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||xn;s!==xn&&typeof o[0]!=`number`&&(this.mixKeyframes=me(Dn,Yt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=$t(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=T(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);
1return S&&p!==mn&&(b.value=Cn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return k(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(this.currentTime)}set time(e){e=O(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return pn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=k(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Xt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,F.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function kn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var An=e=>e*180/Math.PI,jn=e=>Nn(An(Math.atan2(e[1],e[0]))),Mn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jn,rotateZ:jn,skewX:e=>An(Math.atan(e[1])),skewY:e=>An(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Nn=e=>(e%=360,e<0&&(e+=360),e),Pn=jn,Fn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),In=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ln={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fn,scaleY:In,scale:e=>(Fn(e)+In(e))/2,rotateX:e=>Nn(An(Math.atan2(e[6],e[5]))),rotateY:e=>Nn(An(Math.atan2(-e[2],e[0]))),rotateZ:Pn,rotate:Pn,skewX:e=>An(Math.atan(e[4])),skewY:e=>An(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Rn(e){return+!!e.includes(`scale`)}function zn(e,t){if(!e||e===`none`)return Rn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ln,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Mn,i=t}if(!i)return Rn(t);let a=r[t],o=i[1].split(`,`).map(Vn);return typeof a==`function`?a(o):o[a]}var Bn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return zn(n,t)};function Vn(e){return parseFloat(e.trim())}var Hn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Un=new Set([...Hn,`pathRotation`]),Wn=e=>e===$e||e===R,Gn=new Set([`x`,`y`,`z`]),Kn=Hn.filter(e=>!Gn.has(e));function qn(e){let t=[];return Kn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var U={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zn(t,`x`),y:(e,{transform:t})=>zn(t,`y`)};U.translateX=U.x,U.translateY=U.y;var Jn=new Set,Yn=!1,Xn=!1,Zn=!1;function Qn(){if(Xn){let e=Array.from(Jn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
1t.forEach(e=>{let t=qn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Xn=!1,Yn=!1,Jn.forEach(e=>e.complete(Zn)),Jn.clear()}function $n(){Jn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xn=!0)})}function er(){Zn=!0,$n(),Qn(),Zn=!1}var tr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Jn.add(this),Yn||(Yn=!0,j.read($n),j.resolveKeyframes(Qn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}kn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Jn.delete(this)}cancel(){this.state===`scheduled`&&(Jn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},nr=e=>e.startsWith(`--`);function rr(e,t,n){nr(t)?e.style.setProperty(t,n):e.style[t]=n}var ir={};function ar(e,t){let n=pe(e);return()=>ir[t]??n()}var or=ar(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),sr=ar(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),cr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:cr([0,.65,.55,1]),circOut:cr([.55,0,1,.45]),backIn:cr([.31,.01,.66,-.59]),backOut:cr([.33,1.53,.69,.99])};function ur(e,t){if(e)return typeof e==`function`?sr()?Zt(e,t):`ease-out`:Ie(e)?cr(e):Array.isArray(e)?e.map(e=>ur(e,t)||lr.easeOut):lr[e]}function dr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=ur(s,i);Array.isArray(d)&&(u.easing=d),A.value&&F.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return A.value&&p.finished.finally(()=>{F.waapi--}),p}function fr(e){return typeof e==`function`&&`applyToOptions`in e}function pr({type:e,...t}){return fr(e)&&sr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var mr=class extends En{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=pr(e);this.animation=dr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Cn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),rr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return k(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k(e)}get time(){return k(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=O(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&or()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D):r(this)}},hr={anticipate:Oe,backInOut:De,circInOut:je};function gr(e){return e in hr}function _r(e){typeof e.ease==`string`&&gr(e.ease)&&(e.ease=hr[e.ease])}var vr=10,yr=class extends mr{constructor(e){_r(e),Tn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new On({...a,autoplay:!1}),s=Math.max(vr,P.now()-this.startTime),c=T(0,vr,s-vr),l=o.sample(s).value,{name:u}=this.options;i&&u&&rr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},br=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function xr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Sr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=br(i,t),s=br(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:xr(e)||(n===`spring`||fr(n))&&r}function Cr(e){e.duration=0,e.type=`keyframes`}var wr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Tr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Er(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Tr.test(e[t]))return!0;return!1}var Dr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Or=pe(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function kr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Or()&&n&&(wr.has(n)||Dr.has(n)&&Er(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ar=40,jr=class extends En{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||tr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;Sr(e,i,a,o)||(u=!1,(E.instantAnimations||!s)&&l?.(Cn(e,n,t)),e[0]=e[e.length-1],Cr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ar?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&kr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new yr({...d,element:p})}catch{m=new On(d)}else m=new On(d);m.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),er()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Mr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Nr=30,Pr=e=>!isNaN(parseFloat(e)),Fr={current:void 0},Ir=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Pr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ge);let n=this.events[e].add(t);return e===`change`?()=>{n(),j.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Fr.current&&Fr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Nr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Nr);return _e(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Lr(e,t){return new Ir(e,t)}function Rr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function zr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Rr(n,e)}var Br={type:`spring`,stiffness:500,damping:25,restSpeed:10},Vr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hr={type:`keyframes`,duration:.8},Ur={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Wr=(e,{keyframes:t})=>t.length>2?Hr:Un.has(e)?e.startsWith(`scale`)?Vr(t[1]):Br:Ur,Gr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Kr(e){for(let t in e)if(!Gr.has(t))return!0;return!1}var qr=(e,t,n,r={},i,a)=>o=>{let s=zr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=O(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Kr(s)||Object.assign(u,Wr(e,u)),u.duration&&=O(u.duration),u.repeatDelay&&=O(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Cr(u),u.delay===0&&(d=!0)),(E.instantAnimations||E.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Cr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Cn(u.keyframes,s);if(e!==void 0){j.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new On(u):new jr(u)}
1,Jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yr(e){let t=Jr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Xr(e,t,n=1){`${e}`;let[r,i]=Yr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ue(e)?parseFloat(e):e}return Xe(i)?Xr(i,t,n+1):i}function Zr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Qr(e,t,n,r){if(typeof t==`function`){let[i,a]=Zr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Zr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function $r(e,t,n){let r=e.getProps();return Qr(r,t,n===void 0?r.custom:n,e)}var ei=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Hn]),ti=e=>Array.isArray(e);function ni(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lr(n))}function ri(e){return ti(e)?e[e.length-1]||0:e}function ii(e,t){let{transitionEnd:n={},transition:r={},...i}=$r(e,t)||{};i={...i,...n};for(let t in i)ni(e,t,ri(i[t]))}var W=e=>!!(e&&e.getVelocity);function ai(e){return!!(W(e)&&e.add)}function oi(e,t){let n=e.getValue(`willChange`);if(ai(n))return n.add(t);if(!n&&E.WillChange){let n=new E.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function si(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ci=`data-`+si(`framerAppearId`);function li(e){return e.props[ci]}function ui({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function di(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Rr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ui(f,t))continue;let o={delay:n,...zr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){j.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=li(e);if(n){let e=window.MotionHandoffAnimation(n,t,j);e!==null&&(o.startTime=e,p=!0)}}oi(e,t);let m=l??e.shouldReduceMotion;r.start(qr(t,r,i,m&&ei.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>j.update(()=>{o&&ii(e,o)});d.length?Promise.all(d).then(t):t()}return d}function fi(e,t,n={}){let r=$r(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(di(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return pi(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function pi(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(fi(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Mr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function mi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>fi(e,t,n));r=Promise.all(i)}
1else if(typeof t==`string`)r=fi(e,t,n);else{let i=typeof t==`function`?$r(e,t,n.custom):t;r=Promise.all(di(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var hi={test:e=>e===`auto`,parse:e=>e},gi=e=>t=>t.test(e),_i=[$e,R,L,I,ht,mt,hi],vi=e=>_i.find(gi(e));function yi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||fe(e)}var bi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function xi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(rt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!bi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Si=/\b([a-z-]*)\(.*?\)/gu,Ci={...B,getAnimatableNone:e=>{let t=e.match(Si);return t?t.map(xi).join(` `):e}},wi={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ti={...$e,transform:Math.round},Ei={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:I,pathRotation:I,rotateX:I,rotateY:I,rotateZ:I,scale:tt,scaleX:tt,scaleY:tt,scaleZ:tt,skew:I,skewX:I,skewY:I,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:et,originX:gt,originY:gt,originZ:R,zIndex:Ti,fillOpacity:et,strokeOpacity:et,numOctaves:Ti},Di={...Ei,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Ci,WebkitFilter:Ci,mask:wi,WebkitMask:wi},Oi=e=>Di[e],ki=new Set([Ci,wi]);function Ai(e,t){let n=Oi(e);return ki.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ji=new Set([`auto`,`none`,`0`]);function Mi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ji.has(t)&&Et(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ai(n,i)}var Ni=class extends tr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Xe(r))){let i=Xr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ei.has(n)||e.length!==2)return;let[r,i]=e,a=vi(r),o=vi(i);if(Qe(r)!==Qe(i)&&U[n]){this.needsMeasurement=!0;return}if(a!==o)if(Wn(a)&&Wn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else U[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||yi(e[t]))&&n.push(t);n.length&&Mi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=U[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Pi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Fi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ii(e){return de(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Li,cancel:Ri}=Ue(queueMicrotask,!1),G={x:!1,y:!1};function zi(){return G.x||G.y}function Bi(e){return e===`x`||e===`y`?G[e]?null:(G[e]=!0,()=>{G[e]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function Vi(e,t){let n=Pi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Hi(e){return!(e.pointerType===`touch`||zi())}function Ui(e,t,n={}){let[r,i,a]=Vi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Hi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Wi=(e,t)=>t?e===t?!0:Wi(e,t.parentElement):!1,Gi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ki=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function qi(e){return Ki.has(e.tagName)||e.isContentEditable===!0}var Ji=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Yi(e){return Ji.has(e.tagName)||e.isContentEditable===!0}var Xi=new WeakSet;function Zi(e){return t=>{t.key===`Enter`&&e(t)}}function Qi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var $i=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Zi(()=>{if(Xi.has(n))return;Qi(n,`down`);let e=Zi(()=>{Qi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Qi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ea(e){return Gi(e)&&!zi()}var ta=new WeakSet;function na(e,t,n={}){let[r,i,a]=Vi(e,n),o=e=>{let r=e.currentTarget;if(!ea(e)||ta.has(e))return;Xi.add(r),n.stopPropagation&&ta.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Xi.has(r)&&Xi.delete(r),ea(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Wi(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ii(e)&&(e.addEventListener(`focus`,e=>$i(e,i)),!qi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ra(e){return de(e)&&`ownerSVGElement`in e}var ia=new WeakMap,aa,oa=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ra(r)&&`getBBox`in r?r.getBBox()[t]:r[n],sa=oa(`inline`,`width`,`offsetWidth`),ca=oa(`block`,`height`,`offsetHeight`);function la({target:e,borderBoxSize:t}){ia.get(e)?.forEach(n=>{n(e,{get width(){return sa(e,t)},get height(){return ca(e,t)}})})}function ua(e){e.forEach(la)}function da(){typeof ResizeObserver>`u`||(aa=new ResizeObserver(ua))}function fa(e,t){aa||da();let n=Pi(e);return n.forEach(e=>{let n=ia.get(e);n||(n=new Set,ia.set(e,n)),n.add(t),aa?.observe(e)}),()=>{n.forEach(e=>{let n=ia.get(e);n?.delete(t),n?.size||aa?.unobserve(e)})}}var pa=new Set,ma;function ha(){ma=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pa.forEach(t=>t(e))},window.addEventListener(`resize`,ma)}function ga(e){return pa.add(e),ma||ha(),()=>{pa.delete(e),!pa.size&&typeof ma==`function`&&(window.removeEventListener(`resize`,ma),ma=void 0)}}function _a(e,t){return typeof e==`function`?ga(e):fa(e,t)}function va(e){return ra(e)&&e.tagName===`svg`}var ya=[..._i,z,B],ba=e=>ya.find(gi(e)),xa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sa=()=>({x:xa(),y:xa()}),Ca=()=>({min:0,max:0}),K=()=>({x:Ca(),y:Ca()}),wa=new WeakMap;function Ta(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ea(e){return typeof e==`string`||Array.isArray(e)}var Da=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Oa=[`initial`,...Da];function ka(e){return Ta(e.animate)||Oa.some(t=>Ea(e[t]))}function Aa(e){return!!(ka(e)||e.variants)}function ja(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);
1else if(W(a))e.addValue(r,Lr(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Lr(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ma={current:null},Na={current:!1},Pa=typeof window<`u`;function Fa(){if(Na.current=!0,Pa)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ma.current=e.matches;e.addEventListener(`change`,t),t()}else Ma.current=!1}var Ia=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],La={};function Ra(e){La=e}function za(){return La}var Ba=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=P.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,j.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ka(t),this.isVariantNode=Aa(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&W(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,wa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Na.current||Fa(),this.shouldReduceMotion=Ma.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),M(this.notifyUpdate),M(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&wr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new mr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:O(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Un.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&j.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 La){let t=La[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ia.length;t++){let n=Ia[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ja(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Lr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ue(n)||fe(n))?n=parseFloat(n):!ba(n)&&B.test(t)&&(n=Ai(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Qr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ge),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Li.render(this.render)}},Va=class extends Ba{constructor(){super(...arguments),this.KeyframeResolver=Ni}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},q=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Ha({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ua({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Wa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ga(e){return e===void 0||e===1}function Ka({scale:e,scaleX:t,scaleY:n}){return!Ga(e)||!Ga(t)||!Ga(n)}function qa(e){return Ka(e)||Ja(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ja(e){return Ya(e.x)||Ya(e.y)}function Ya(e){return e&&e!==`0%`}function Xa(e,t,n){return n+t*(e-n)}function Za(e,t,n,r,i){return i!==void 0&&(e=Xa(e,i,r)),Xa(e,n,r)+t}function Qa(e,t=0,n=1,r,i){e.min=Za(e.min,t,n,r,i),e.max=Za(e.max,t,n,r,i)}function $a(e,{x:t,y:n}){Qa(e.x,t.translate,t.scale,t.originPoint),Qa(e.y,n.translate,n.scale,n.originPoint)}var eo=.999999999999,to=1.0000000000001;function no(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(J(e.x,-a.scroll.offset.x),J(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$a(e,o)),r&&qa(a.latestValues)&&ao(e,a.latestValues,a.layout?.layoutBox))}t.x<to&&t.x>eo&&(t.x=1),t.y<to&&t.y>eo&&(t.y=1)}function J(e,t){e.min+=t,e.max+=t}function ro(e,t,n,r,i=.5){Qa(e,t,n,V(e.min,e.max,i),r)}function io(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}
1function ao(e,t,n){let r=n??e;ro(e.x,io(t.x,r.x),t.scaleX,t.scale,t.originX),ro(e.y,io(t.y,r.y),t.scaleY,t.scale,t.originY)}function oo(e,t){return Ha(Wa(e.getBoundingClientRect(),t))}function so(e,t,n){let r=oo(e,n),{scroll:i}=t;return i&&(J(r.x,i.offset.x),J(r.y,i.offset.y)),r}var co={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},lo=Hn.length;function uo(e,t,n){let r=``,i=!0;for(let a=0;a<lo;a++){let o=Hn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Fi(s,Ei[o]);if(!c){i=!1;let t=co[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Fi(a,Ei.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function fo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Un.has(e)){o=!0;continue}else if(Je(e)){i[e]=n;continue}else{let t=Fi(n,Ei[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=uo(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function po(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function mo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(R.test(e))e=parseFloat(e);else return e;return`${mo(e,t.target.x)}% ${mo(e,t.target.y)}%`}},go={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=V(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},_o={borderRadius:{...ho,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:go};function vo(e,{layout:t,layoutId:n}){return Un.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!_o[e]||e===`opacity`)}function yo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||vo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function bo(e){return window.getComputedStyle(e)}var xo=class extends Va{constructor(){super(...arguments),this.type=`html`,this.renderInstance=po}readValueFromInstance(e,t){if(Un.has(t))return this.projection?.isProjecting?Rn(t):Bn(e,t);{let n=bo(e),r=(Je(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return oo(e,t)}build(e,t,n){fo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yo(e,t,n)}},So={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Co={offset:`strokeDashoffset`,array:`strokeDasharray`};function wo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?So:Co;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var To=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Eo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(fo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of To)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&wo(d,i,a,o,!1)}var Do=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`]),Oo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ko(e,t,n,r){po(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Do.has(n)?n:si(n),t.attrs[n])}
1function Ao(e,t,n){let r=yo(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=Hn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var jo=class extends Va{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Un.has(t)){let e=Oi(t);return e&&e.default||0}return t=Do.has(t)?t:si(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ao(e,t,n)}build(e,t,n){Eo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ko(e,t,n,r)}mount(e){this.isSVGTag=Oo(e.tagName),super.mount(e)}},Mo=Oa.length;function No(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&No(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Mo;n++){let r=Oa[n],i=e.props[r];(Ea(i)||i===!1)&&(t[r]=i)}return t}function Po(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Fo=[...Da].reverse(),Io=Da.length;function Lo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>mi(e,t,n)))}function Ro(e){let t=Lo(e),n=Vo(),r=!0,i=!1,a=t=>(n,r)=>{let i=$r(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=No(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Io;t++){let p=Fo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ea(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Ta(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=zo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},ne=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=ti(t)&&ti(n)?!Po(t,n)||y:t!==n,r?t==null?u.add(e):ne(e):t!==void 0&&u.has(e)?ne(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let re=v&&y;b&&(!re||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!re&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=$r(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Mr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=$r(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Vo(),i=!0}}}function zo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Po(t,e):!1}function Bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vo(){return{animate:Bo(!0),whileInView:Bo(),whileHover:Bo(),whileTap:Bo(),whileDrag:Bo(),whileFocus:Bo(),exit:Bo()}}function Ho(e,t){e.min=t.min,e.max=t.max}function Y(e,t){Ho(e.x,t.x),Ho(e.y,t.y)}function Uo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Wo=.9999,Go=1.0001,Ko=-.01,qo=.01;function X(e){return e.max-e.min}function Jo(e,t,n){return Math.abs(e-t)<=n}function Yo(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Wo&&e.scale<=Go||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ko&&e.translate<=qo||isNaN(e.translate))&&(e.translate=0)}function Xo(e,t,n,r){Yo(e.x,t.x,n.x,r?r.originX:void 0),Yo(e.y,t.y,n.y,r?r.originY:void 0)}function Zo(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+X(t)}function Qo(e,t,n,r){Zo(e.x,t.x,n.x,r?.x),Zo(e.y,t.y,n.y,r?.y)}function $o(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+X(t)}function es(e,t,n,r){$o(e.x,t.x,n.x,r?.x),$o(e.y,t.y,n.y,r?.y)}function ts(e,t,n,r,i){return e-=t,e=Xa(e,1/n,r),i!==void 0&&(e=Xa(e,1/i,r)),e}function ns(e,t=0,n=1,r=.5,i,a=e,o=e){if(L.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=ts(e.min,t,n,s,i),e.max=ts(e.max,t,n,s,i)}function rs(e,t,[n,r,i],a,o){ns(e,t[n],t[r],t[i],t.scale,a,o)}var is=[`x`,`scaleX`,`originX`],as=[`y`,`scaleY`,`originY`];function os(e,t,n,r){rs(e.x,t,is,n?n.x:void 0,r?r.x:void 0),rs(e.y,t,as,n?n.y:void 0,r?r.y:void 0)}function ss(e){return e.translate===0&&e.scale===1}function cs(e){return ss(e.x)&&ss(e.y)}function ls(e,t){return e.min===t.min&&e.max===t.max}function us(e,t){return ls(e.x,t.x)&&ls(e.y,t.y)}function ds(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fs(e,t){return ds(e.x,t.x)&&ds(e.y,t.y)}function ps(e){return X(e.x)/X(e.y)}function ms(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Z(e){return[e(`x`),e(`y`)]}function hs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var gs=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],_s=gs.length,vs=e=>typeof e==`string`?parseFloat(e):e,ys=e=>typeof e==`number`||R.test(e);function bs(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,Ss(r)),e.opacityExit=V(t.opacity??1,0,Cs(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;i<_s;i++){let a=gs[i],o=xs(t,a),s=xs(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||ys(o)===ys(s)?(e[a]=Math.max(V(vs(o),vs(s),r),0),(L.test(s)||L.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V(t.rotate||0,n.rotate||0,r))}function xs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ss=ws(0,.5,Ae),Cs=ws(.5,.95,D);function ws(e,t,n){return r=>r<e?0:r>t?1:n(he(e,t,r))}
1function Ts(e,t,n){let r=W(e)?e:Lr(e);return r.start(qr(``,r,t,n)),r.animation}function Es(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Ds=(e,t)=>e.depth-t.depth,Os=class{constructor(){this.children=[],this.isDirty=!1}add(e){ce(this.children,e),this.isDirty=!0}remove(e){le(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ds),this.isDirty=!1,this.children.forEach(e)}};function ks(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(M(r),e(a-t))};return j.setup(r,!0),()=>M(r)}function As(e){return W(e)?e.get():e}var js=class{constructor(){this.members=[]}add(e){ce(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(le(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(le(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Ms={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Q={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ns=[``,`X`,`Y`,`Z`],Ps=1e3,Fs=0;function Is(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ls(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=li(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,j,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ls(r)}function Rs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Fs++,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=()=>{this.projectionUpdateScheduled=!1,A.value&&(Q.nodes=Q.calculatedTargetDeltas=Q.calculatedProjections=0),this.nodes.forEach(Vs),this.nodes.forEach(Xs),this.nodes.forEach(Zs),this.nodes.forEach(Hs),A.addProjectionMetrics&&A.addProjectionMetrics(Q)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Os)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ge),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ra(t)&&!va(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;j.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ks(i,250),Ms.hasAnimatedSinceResize&&(Ms.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(Ys)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!fs(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...zr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Ys(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),M(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(Qs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ls(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Gs),this.nodes.forEach(Ws);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ks);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qs),this.nodes.forEach(Js),this.nodes.forEach(zs),this.nodes.forEach(Bs)):this.nodes.forEach(Ks),this.clearAllSnapshots();let e=P.now();N.delta=T(0,1e3/60,e-N.timestamp),N.timestamp=e,N.isProcessing=!0,We.update.process(N),We.preRender.process(N),We.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Li.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Us),this.sharedNodes.forEach($s)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=K(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!cs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||qa(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),cc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(uc))){let{scroll:e}=this.root;e&&(J(t.x,e.offset.x),J(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(Y(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Y(t,e),J(t.x,i.offset.x),J(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||K();Y(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(J(r.x,-n.scroll.offset.x),J(r.y,-n.scroll.offset.y)),qa(n.latestValues)&&ao(r,n.latestValues,n.layout?.layoutBox)}return qa(this.latestValues)&&ao(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=K();Y(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!qa(n.latestValues))continue;let r;n.instance&&(Ka(n.latestValues)&&n.updateSnapshot(),r=K(),Y(r,n.measurePageBox())),os(t,n.latestValues,n.snapshot?.layoutBox,r)}return qa(this.latestValues)&&os(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=N.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Y(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),A.value&&Q.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ka(this.parent.latestValues)||Ja(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),es(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Y(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===N.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Y(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;no(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Uo(this.prevProjectionDelta.x,this.projectionDelta.x),Uo(this.prevProjectionDelta.y,this.projectionDelta.y)),Xo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!ms(this.projectionDelta.x,this.prevProjectionDelta.x)||!ms(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),A.value&&Q.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Sa(),this.projectionDelta=Sa(),this.projectionDeltaWithTransform=Sa()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Sa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=K(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(rc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=V(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=V(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(ec(o.x,e.x,n),ec(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(es(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),nc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&us(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=K(),Y(f,this.relativeTarget)),c&&(this.animationValues=a,bs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(M(this.pendingAnimation),void 0),this.pendingAnimation=j.update(()=>{Ms.hasAnimatedSinceResize=!0,F.layout++,this.motionValue||=Lr(0),this.motionValue.jump(0,!1),this.currentAnimation=Ts(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{F.layout--},onComplete:()=>{F.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&lc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||K();let t=X(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=X(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Y(t,n),ao(t,i),Xo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new js),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Is(`z`,e,r,this.animationValues);for(let t=0;t<Ns.length;t++)Is(`rotate${Ns[t]}`,e,r,this.animationValues),Is(`skew${Ns[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=As(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=As(t?.pointerEvents)||``),this.hasProjected&&!qa(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=hs(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in _o){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=_o[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?As(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ws),this.root.sharedNodes.clear()}}}function zs(e){e.updateLayout()}function Bs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Z(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=X(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ho(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else lc(i,t.layoutBox,n)&&Z(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=X(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Sa();Xo(o,n,t.layoutBox);let s=Sa();a?Xo(s,e.applyTransform(r,!0),t.measuredBox):Xo(s,n,t.layoutBox);let c=!cs(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=K();es(s,t.layoutBox,i.layoutBox,o);let c=K();es(c,n,a.layoutBox,o),fs(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Vs(e){A.value&&Q.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Hs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Us(e){e.clearSnapshot()}function Ws(e){e.clearMeasurements()}function Gs(e){e.isLayoutDirty=!0,e.updateLayout()}function Ks(e){e.isLayoutDirty=!1}function qs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Js(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Ys(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Xs(e){e.resolveTargetDelta()}function Zs(e){e.calcProjection()}
1function Qs(e){e.resetSkewAndRotation()}function $s(e){e.removeLeadSnapshot()}function ec(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tc(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function nc(e,t,n,r){tc(e.x,t.x,n.x,r),tc(e.y,t.y,n.y,r)}function rc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var ic={duration:.45,ease:[.4,0,.1,1]},ac=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oc=ac(`applewebkit/`)&&!ac(`chrome/`)?Math.round:D;function sc(e){e.min=oc(e.min),e.max=oc(e.max)}function cc(e){sc(e.x),sc(e.y)}function lc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Jo(ps(t),ps(n),.2)}function uc(e){return e!==e.root&&e.scroll?.wasRoot}var dc=Rs({attachResizeListener:(e,t)=>Es(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fc={current:void 0},pc=Rs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fc.current){let e=new dc({});e.mount(window),e.setOptions({layoutScroll:!0}),fc.current=e}return fc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),mc=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function hc(e=!0){let t=(0,w.useContext)(se);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,w.useId)();(0,w.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,w.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var gc=(0,w.createContext)({strict:!1}),_c={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`]},vc=!1;function yc(){if(vc)return;let e={};for(let t in _c)e[t]={isEnabled:e=>_c[t].some(t=>!!e[t])};Ra(e),vc=!0}function bc(){return yc(),za()}function xc(e){let t=bc();for(let n in e)t[n]={...t[n],...e[n]};Ra(t)}var Sc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Cc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Sc.has(e)}var wc=r({default:()=>Tc}),Tc,Ec=t((()=>{throw Tc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Dc=e=>!Cc(e);function Oc(e){typeof e==`function`&&(Dc=t=>t.startsWith(`on`)?!Cc(t):e(t))}try{Oc((Ec(),e(wc)).default)}catch{}function kc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||W(e[i])||
1(Dc(i)||n===!0&&Cc(i)||!t&&!Cc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Ac=(0,w.createContext)({});function jc(e,t){if(ka(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ea(t)?t:void 0,animate:Ea(n)?n:void 0}}return e.inherit===!1?{}:t}function Mc(e){let{initial:t,animate:n}=jc(e,(0,w.useContext)(Ac));return(0,w.useMemo)(()=>({initial:t,animate:n}),[Nc(t),Nc(n)])}function Nc(e){return Array.isArray(e)?e.join(` `):e}var Pc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fc(e,t,n){for(let r in t)!W(t[r])&&!vo(r,n)&&(e[r]=t[r])}function Ic({transformTemplate:e},t){return(0,w.useMemo)(()=>{let n=Pc();return fo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Lc(e,t){let n=e.style||{},r={};return Fc(r,n,e),Object.assign(r,Ic(e,t)),r}function Rc(e,t){let n={},r=Lc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var zc=()=>({...Pc(),attrs:{}});function Bc(e,t,n,r){let i=(0,w.useMemo)(()=>{let n=zc();return Eo(n,t,Oo(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Fc(t,e.style,e),i.style={...t,...i.style}}return i}var Vc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Hc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Vc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Hc(e)?Bc:Rc)(t,r,i,e),c=kc(t,typeof e==`string`,a),l=e===w.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,w.useMemo)(()=>W(u)?u.get():u,[u]);return(0,w.createElement)(e,{...l,children:d})}function Wc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Gc(n,r,i,e),renderState:t()}}function Gc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=As(a[e]);let{initial:o,animate:s}=e,c=ka(e),l=Aa(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ta(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Qr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Kc=e=>(t,n)=>{let r=(0,w.useContext)(Ac),i=(0,w.useContext)(se),a=()=>Wc(e,t,r,i);return n?a():ae(a)},qc=Kc({scrapeMotionValuesFromProps:yo,createRenderState:Pc}),Jc=Kc({scrapeMotionValuesFromProps:Ao,createRenderState:zc}),Yc=Symbol.for(`motionComponentSymbol`);function Xc(e,t,n){let r=(0,w.useRef)(n);(0,w.useInsertionEffect)(()=>{r.current=n});let i=(0,w.useRef)(null);return(0,w.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Zc=(0,w.createContext)({});function Qc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function $c(e,t,n,r,i,a){let{visualElement:o}=(0,w.useContext)(Ac),s=(0,w.useContext)(gc),c=(0,w.useContext)(se),l=(0,w.useContext)(mc),u=l.reducedMotion,d=l.skipAnimations,f=(0,w.useRef)(null),p=(0,w.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,w.useContext)(Zc);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&el(f.current,n,i,h);let g=(0,w.useRef)(!1);(0,w.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[ci],v=(0,w.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return oe(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,w.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function el(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:tl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Qc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function tl(e){if(e)return e.options.allowProjection===!1?tl(e.parent):e.projection}function nl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&xc(r);
1let a=n?n===`svg`:Hc(e),o=a?Jc:qc;function s(n,s){let c,l={...(0,w.useContext)(mc),...n,layoutId:rl(n)},{isStatic:u}=l,d=Mc(n),f=o(n,u);if(!u&&typeof window<`u`){il(l,r);let t=al(l);c=t.MeasureLayout,d.visualElement=$c(e,f,l,i,t.ProjectionNode,a)}return(0,S.jsxs)(Ac.Provider,{value:d,children:[c&&d.visualElement?(0,S.jsx)(c,{visualElement:d.visualElement,...l}):null,Uc(e,n,Xc(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,w.forwardRef)(s);return c[Yc]=e,c}function rl({layoutId:e}){let t=(0,w.useContext)(ie).id;return t&&e!==void 0?t+`-`+e:e}function il(e,t){(0,w.useContext)(gc).strict}function al(e){let{drag:t,layout:n}=bc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ol(e,t){if(typeof Proxy>`u`)return nl;let n=new Map,r=(n,r)=>nl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,nl(a,void 0,e,t)),n.get(a))})}var sl=(e,t)=>t.isSVG??Hc(e)?new jo(t):new xo(t,{allowProjection:e!==w.Fragment}),cl=class extends q{constructor(e){super(e),e.animationState||=Ro(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ta(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},ll=0,ul={animation:{Feature:cl},exit:{Feature:class extends q{constructor(){super(...arguments),this.id=ll++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=$r(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function dl(e){return{point:{x:e.pageX,y:e.pageY}}}var fl=e=>t=>Gi(t)&&e(t,dl(t));function pl(e,t,n,r){return Es(e,t,fl(n),r)}var ml=({current:e})=>e?e.ownerDocument.defaultView:null,hl=(e,t)=>Math.abs(e-t);function gl(e,t){let n=hl(e.x,t.x),r=hl(e.y,t.y);return Math.sqrt(n**2+r**2)}var _l=new Set([`auto`,`scroll`]),vl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=yl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=xl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=gl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=N;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=yl(t,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=xl(e.type===`pointercancel`?this.lastMoveEventInfo:yl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Gi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=yl(dl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=N;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,xl(s,this.history)),this.removeListeners=me(pl(this.contextWindow,`pointermove`,this.handlePointerMove),pl(this.contextWindow,`pointerup`,this.handlePointerUp),pl(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(_l.has(e.overflowX)||_l.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),M(this.updatePoint)}};function yl(e,t){return t?{point:t(e.point)}:e}function bl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xl({point:e},t){return{point:e,delta:bl(e,Cl(t)),offset:bl(e,Sl(t)),velocity:wl(t,.1)}}function Sl(e){return e[0]}function Cl(e){return e[e.length-1]}function wl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Cl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>O(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>O(t)*2&&(r=e[1]);let a=k(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Tl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?V(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?V(n,e,r.max):Math.min(e,n)),e}function El(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Dl(e,{top:t,left:n,bottom:r,right:i}){return{x:El(e.x,n,i),y:El(e.y,t,r)}}function Ol(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function kl(e,t){return{x:Ol(e.x,t.x),y:Ol(e.y,t.y)}}function Al(e,t){let n=.5,r=X(e),i=X(t);return i>r?n=he(t.min,t.max-r,e.min):r>i&&(n=he(e.min,e.max-i,t.min)),T(0,1,n)}function jl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Ml=.35;function Nl(e=Ml){return e===!1?e=0:e===!0&&(e=Ml),{x:Pl(e,`left`,`right`),y:Pl(e,`top`,`bottom`)}}function Pl(e,t,n){return{min:Fl(e,t),max:Fl(e,n)}}function Fl(e,t){return typeof e==`number`?e:e[t]||0}var Il=new WeakMap,Ll=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(dl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=X(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&j.update(()=>i(e,t),!1,!0),oi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Vl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&j.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new vl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ml(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&j.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Bl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Tl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Qc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Dl(n.layoutBox,e):this.constraints=!1,this.elastic=Nl(t),r!==this.constraints&&!Qc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Z(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=jl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Qc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=so(n,r.root,this.visualElement.getTransformPagePoint()),a=kl(r.layout.layoutBox,i);if(t){let e=t(Ua(a));this.hasMutatedConstraints=!!e,e&&(a=Ha(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Z(o=>{if(!Bl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oi(this.visualElement,e),n.start(qr(e,n,0,t,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Z(t=>{let{drag:n}=this.getProps();if(!Bl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-V(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Qc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Z(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Al({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(t=>{if(!Bl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(V(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Il.set(this.visualElement,this);let e=this.visualElement.current,t=pl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Yi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Qc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=zl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);let o=Es(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Z(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Ml,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Rl(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function zl(e,t,n){let r=_a(e,Rl(n)),i=_a(t,Rl(n));return()=>{r(),i()}}function Bl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Vl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Hl=class extends q{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new Ll(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Ul=e=>(t,n)=>{e&&j.update(()=>e(t,n),!1,!0)},Wl=class extends q{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new vl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ml(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ul(e),onStart:Ul(t),onMove:Ul(n),onEnd:(e,t)=>{delete this.session,r&&j.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=pl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Gl=!1,Kl=class extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Gl
1&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ms.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Gl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||j.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Li.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Gl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function ql(e){let[t,n]=hc(),r=(0,w.useContext)(ie);return(0,S.jsx)(Kl,{...e,layoutGroup:r,switchLayoutGroup:(0,w.useContext)(Zc),isPresent:t,safeToRemove:n})}var Jl={pan:{Feature:Wl},drag:{Feature:Hl,ProjectionNode:pc,MeasureLayout:ql}};function Yl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&j.postRender(()=>i(t,dl(t)))}var Xl=class extends q{mount(){let{current:e}=this.node;e&&(this.unmount=Ui(e,(e,t)=>(Yl(this.node,t,`Start`),e=>Yl(this.node,e,`End`))))}unmount(){}},Zl=class extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=me(Es(this.node.current,`focus`,()=>this.onFocus()),Es(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ql(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&j.postRender(()=>i(t,dl(t)))}var $l=class extends q{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=na(e,(e,t)=>(Ql(this.node,t,`Start`),(e,{success:t})=>Ql(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},eu=new WeakMap,tu=new WeakMap,nu=e=>{let t=eu.get(e.target);t&&t(e)},ru=e=>{e.forEach(nu)};function iu({root:e,...t}){let n=e||document;tu.has(n)||tu.set(n,{});let r=tu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ru,{root:e,...t})),r[i]}function au(e,t,n){let r=iu(t);return eu.set(e,n),r.observe(e),()=>{eu.delete(e),r.unobserve(e)}}var ou={some:0,all:1},su=class extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ou[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=au(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var lu={inView:{Feature:su},tap:{Feature:$l},focus:{Feature:Zl},hover:{Feature:Xl}},uu={layout:{ProjectionNode:pc,MeasureLayout:ql}},du=ol({...ul,...lu,...Jl,...uu},sl),fu={hidden:{opacity:0,y:30},show:{opacity:1,y:0,transition:{duration:.8,ease:[.22,1,.36,1]}}};function $({children:e,delay:t=0,className:n}){return(0,S.jsx)(du.div,{className:n,initial:`hidden`,whileInView:`show`,viewport:{once:!0,margin:`-80px`},variants:fu,transition:{delay:t},children:e})}var pu=[[`Hydration`,72],[`Pigmentation`,64],[`Texture`,81],[`Barrier Health`,78]];function mu(){let e=2*Math.PI*52,t=86/100*e;return(0,S.jsxs)(`div`,{className:`relative mx-auto w-full max-w-[320px]`,children:[(0,S.jsx)(`div`,{"aria-hidden":!0,
1className:`absolute -left-[3px] top-24 h-16 w-[3px] rounded-l bg-neutral-700`}),(0,S.jsx)(`div`,{"aria-hidden":!0,className:`absolute -left-[3px] top-44 h-24 w-[3px] rounded-l bg-neutral-700`}),(0,S.jsx)(`div`,{"aria-hidden":!0,className:`absolute -right-[3px] top-32 h-20 w-[3px] rounded-r bg-neutral-700`}),(0,S.jsx)(`div`,{className:`rounded-[44px] border border-neutral-800 bg-neutral-950 p-2 shadow-[0_30px_60px_-20px_rgba(0,0,0,0.8)]`,children:(0,S.jsxs)(`div`,{className:`relative overflow-hidden rounded-[36px] bg-[#0A0A0A]`,children:[(0,S.jsx)(`div`,{className:`absolute left-1/2 top-2 z-10 flex h-6 w-28 -translate-x-1/2 items-center justify-center rounded-full bg-black`,children:(0,S.jsx)(`div`,{className:`h-1.5 w-1.5 rounded-full bg-neutral-800`})}),(0,S.jsxs)(`div`,{className:`px-5 pb-6 pt-10`,children:[(0,S.jsxs)(`div`,{className:`flex items-center justify-between text-[9px] font-medium text-white/70`,children:[(0,S.jsx)(`span`,{children:`9:41`}),(0,S.jsx)(`span`,{className:`tracking-widest`,children:`â¢â¢â¢ 5G`})]}),(0,S.jsxs)(`div`,{className:`mt-4 flex items-center justify-between`,children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsx)(`div`,{className:`flex h-6 w-6 items-center justify-center rounded-full border border-gold`,children:(0,S.jsx)(p,{className:`h-3 w-3 text-gold`})}),(0,S.jsx)(`span`,{className:`font-display text-[11px] text-white`,children:`Your Spa`})]}),(0,S.jsx)(`span`,{className:`text-[9px] uppercase tracking-[0.2em] text-text-muted`,children:`Report`})]}),(0,S.jsx)(`p`,{className:`mt-4 font-display text-lg leading-tight text-white`,children:`Your Beauty Report`}),(0,S.jsx)(`p`,{className:`text-[10px] text-text-muted`,children:`Analyzed in 4.2 seconds`}),(0,S.jsx)(`div`,{className:`mt-4 flex items-center justify-center`,children:(0,S.jsxs)(`div`,{className:`relative`,children:[(0,S.jsxs)(`svg`,{width:`130`,height:`130`,viewBox:`0 0 130 130`,children:[(0,S.jsx)(`circle`,{cx:`65`,cy:`65`,r:`52`,fill:`none`,stroke:`#1f1f1f`,strokeWidth:`8`}),(0,S.jsx)(`circle`,{cx:`65`,cy:`65`,r:`52`,fill:`none`,stroke:`hsl(var(--gold))`,strokeWidth:`8`,strokeLinecap:`round`,strokeDasharray:`${t} ${e}`,transform:`rotate(-90 65 65)`})]}),(0,S.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center`,children:[(0,S.jsx)(`span`,{className:`font-mono text-3xl text-gold`,children:86}),(0,S.jsx)(`span`,{className:`text-[9px] uppercase tracking-[0.2em] text-text-muted`,children:`of 100`})]})]})}),(0,S.jsx)(`div`,{className:`mt-4 space-y-2`,children:pu.map(([e,t])=>(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{className:`flex items-center justify-between text-[10px]`,children:[(0,S.jsx)(`span`,{className:`text-white`,children:e}),(0,S.jsx)(`span`,{className:`font-mono text-text-muted`,children:t})]}),(0,S.jsx)(`div`,{className:`mt-1 h-1 overflow-hidden rounded-full bg-neutral-800`,children:(0,S.jsx)(`div`,{className:`h-full rounded-full bg-gold`,style:{width:`${t}%`}})})]},e))}),(0,S.jsxs)(`div`,{className:`mt-4 rounded-lg border border-border bg-[#131313] p-3`,children:[(0,S.jsx)(`p`,{className:`text-[9px] uppercase tracking-[0.18em] text-gold`,children:`Top Concern`}),(0,S.jsx)(`p`,{className:`mt-1 text-[12px] font-medium text-white`,children:`Uneven tone & mild pigmentation`}),(0,S.jsx)(`p`,{className:`mt-2 text-[10px] text-text-muted`,children:`Recommended: Hydradermabrasion Facial + Vitamin C peel series`})]}),(0,S.jsx)(`button`,{type:`button`,className:`mt-4 w-full rounded-full bg-gold py-2.5 text-[10px] font-bold uppercase tracking-[0.18em] text-black`,children:`Book Your Consultation â`})]})]})})]})}var hu=[{name:`Amara Johnson`,treatment:`Hydradermabrasion Facial`,score:86,status:`New Lead`,contact:`2 min ago`},{name:`Priya Desai`,treatment:`Wrinkle Relaxer Consult`,score:74,status:`Booked`,contact:`1 hr ago`},{name:`Jasmine Clarke`,treatment:`Chemical Peel`,score:68,status:`Follow-up`,contact:`3 hr ago`},{name:`Sofia Nguyen`,treatment:`Microneedling`,score:91,status:`Booked`,contact:`Yesterday`},{name:`Zoe Bennett`,treatment:`Lip Filler`,score:79,status:`New Lead`,contact:`Yesterday`},{name:`Maya Thompson`,treatment:`Skin Analysis`,score:82,status:`Contacted`,contact:`2 days ago`}],gu={"New Lead":`border-gold/60 bg-gold/10 text-gold`,Booked:`border-emerald-500/50 bg-emerald-500/10 text-emerald-400`,"Follow-up":`border-amber-500/50 bg-amber-500/10 text-amber-400`,Contacted:`border-neutral-500/50 bg-neutral-500/10 text-neutral-300`},_u=[{label:`Dashboard`,icon:u},{label:`Leads`,icon:m,active:!0},{label:`Consultations`,icon:p},{label:`Reports`,icon:l},{label:`Settings`,icon:d}];function vu(){return(0,S.jsxs)(`div`,{className:`mx-auto w-full max-w-5xl`,children:[(0,S.jsx)(`div`,{className:`rounded-t-xl border border-neutral-800 bg-neutral-900 p-2 shadow-[0_30px_60px_-2
10px_rgba(0,0,0,0.8)]`,children:(0,S.jsxs)(`div`,{className:`overflow-hidden rounded-md bg-black`,children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-border bg-[#0F0F0F] px-3 py-2`,children:[(0,S.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,S.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-neutral-700`}),(0,S.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-neutral-700`}),(0,S.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-neutral-700`})]}),(0,S.jsx)(`div`,{className:`ml-3 flex-1 rounded bg-black px-3 py-1 text-[10px] text-text-muted`,children:`yourspa.medspablueprint.ai/dashboard/leads`})]}),(0,S.jsxs)(`div`,{className:`flex min-h-[360px]`,children:[(0,S.jsxs)(`aside`,{className:`hidden w-44 shrink-0 border-r border-border bg-[#0A0A0A] p-4 md:block`,children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsx)(`div`,{className:`flex h-6 w-6 items-center justify-center rounded border border-gold`,children:(0,S.jsx)(p,{className:`h-3 w-3 text-gold`})}),(0,S.jsx)(`span`,{className:`font-display text-sm text-white`,children:`Lead Studio`})]}),(0,S.jsx)(`nav`,{className:`mt-6 space-y-1`,children:_u.map(({label:e,icon:t,active:n})=>(0,S.jsxs)(`div`,{className:`flex items-center gap-2 rounded px-2 py-1.5 text-[11px] ${n?`bg-gold/10 text-gold`:`text-text-muted`}`,children:[(0,S.jsx)(t,{className:`h-3.5 w-3.5`}),e]},e))})]}),(0,S.jsxs)(`div`,{className:`min-w-0 flex-1 p-5`,children:[(0,S.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`p`,{className:`text-[10px] uppercase tracking-[0.2em] text-gold`,children:`Leads`}),(0,S.jsx)(`h3`,{className:`font-display text-xl text-white`,children:`All Consultations`})]}),(0,S.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,S.jsxs)(`div`,{className:`flex items-center gap-2 rounded border border-border bg-[#0F0F0F] px-2.5 py-1.5`,children:[(0,S.jsx)(f,{className:`h-3 w-3 text-text-muted`}),(0,S.jsx)(`span`,{className:`text-[11px] text-text-muted`,children:`Search leadsâ¦`})]}),(0,S.jsxs)(`button`,{type:`button`,className:`flex items-center gap-1.5 rounded bg-gold px-3 py-1.5 text-[10px] font-bold uppercase tracking-[0.15em] text-black`,children:[(0,S.jsx)(c,{className:`h-3 w-3`}),`Export CSV`]})]})]}),(0,S.jsx)(`div`,{className:`mt-4 grid grid-cols-3 gap-3`,children:[[`24`,`New leads this week`],[`61%`,`Conversion rate`],[`$4,820`,`Pipeline value`]].map(([e,t])=>(0,S.jsxs)(`div`,{className:`rounded border border-border bg-[#0F0F0F] px-3 py-2`,children:[(0,S.jsx)(`p`,{className:`font-mono text-lg text-gold`,children:e}),(0,S.jsx)(`p`,{className:`text-[10px] text-text-muted`,children:t})]},t))}),(0,S.jsx)(`div`,{className:`mt-4 overflow-x-auto rounded border border-border`,children:(0,S.jsxs)(`table`,{className:`w-full min-w-[560px] text-left`,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{className:`border-b border-border bg-[#0F0F0F] text-[9px] uppercase tracking-[0.18em] text-text-muted`,children:[(0,S.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Lead Name`}),(0,S.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Treatment`}),(0,S.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Beauty Score`}),(0,S.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Status`}),(0,S.jsx)(`th`,{className:`px-3 py-2 font-medium`,children:`Last Contact`})]})}),(0,S.jsx)(`tbody`,{className:`text-[11px]`,children:hu.map(e=>(0,S.jsxs)(`tr`,{className:`border-b border-border/60 last:border-0`,children:[(0,S.jsx)(`td`,{className:`px-3 py-2.5 text-white`,children:e.name}),(0,S.jsx)(`td`,{className:`px-3 py-2.5 text-text-muted`,children:e.treatment}),(0,S.jsx)(`td`,{className:`px-3 py-2.5`,children:(0,S.jsx)(`span`,{className:`font-mono text-gold`,children:e.score})}),(0,S.jsx)(`td`,{className:`px-3 py-2.5`,children:(0,S.jsx)(`span`,{className:`rounded-full border px-2 py-0.5 text-[9px] uppercase tracking-[0.12em] ${gu[e.status]}`,children:e.status})}),(0,S.jsx)(`td`,{className:`px-3 py-2.5 text-text-muted`,children:e.contact})]},e.name))})]})})]})]})]})}),(0,S.jsx)(`div`,{className:`mx-auto h-3 w-[102%] -translate-x-[1%] rounded-b-2xl border border-t-0 border-neutral-800 bg-gradient-to-b from-neutral-800 to-neutral-950`}),(0,S.jsx)(`div`,{className:`mx-auto h-1.5 w-1/3 rounded-b-lg bg-neutral-900`})]})}var yu=[{n:1,title:`You Get Your Link`,body:`After signup, you choose a slug â ${h.consultSubdomainExample} â and we generate your branded landing page. Drop the link in your Instagram bio, TikTok, WhatsApp business profile, or website. One link, every channel.`},{n:2,title:`Client Taps Through`,body:`Your client lands on a page that looks and feels like your brand. Your logo, your colors, your welcome message. They tap Start and answer 8 quick questions covering age range, skin type, top concerns, current routine, and their goal.`},{n:3,title:`AI Builds Their Report`,body:`In about a minute the platform generates a personalized skin profile â top concerns, recommended in-clinic treatments, morning + evening routine, ingredients to use, ingredients to avoid. The client gets a stunning report. You get the lead.`},{n:4,title:`They Book`,body:`Clients go straight to your booking link (Acuity, Calendly, or any URL). Any consultation fee is paid to you in person at your clinic â we never take payment. Automatic WhatsApp follow-up is coming soon.`}];function bu(){let e=g.useLoaderData();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(C,{label:`How It Works`,children:[(0,S.jsxs)($,{children:[(0,S.jsx)(`h1`,{className:`max-w-3xl font-display text-4xl leading-tight tracking-tight text-foreground md:text-5xl`,children:y(e,`How MedSpa Blueprint AI Works`)}),(0,S.jsx)(`p`,{className:`mt-4 max-w-3xl font-display text-2xl leading-tight text-foreground
1/90 md:text-3xl`,children:v(e,`From an Instagram bio click to a booked appointment â in under 2 minutes.`)}),(0,S.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg leading-relaxed text-muted-foreground`,children:`Here's exactly what happens, step by step, for both your client and you.`})]}),(0,S.jsx)($,{delay:.15,children:(0,S.jsxs)(`div`,{className:`group relative mt-12 overflow-hidden rounded-sm border border-border bg-gradient-to-br from-[#111] via-black to-[#0A0A0A] px-6 py-14 md:py-20`,children:[(0,S.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0 opacity-40`,style:{background:`radial-gradient(circle at 50% 40%, hsl(var(--gold) / 0.18), transparent 55%)`}}),(0,S.jsxs)(`div`,{className:`relative z-10 flex flex-col items-center gap-8 md:flex-row md:justify-center md:gap-16`,children:[(0,S.jsx)(mu,{}),(0,S.jsx)(`button`,{type:`button`,"aria-label":`Watch a 90-second demo`,className:`flex h-20 w-20 items-center justify-center rounded-full border border-gold bg-black/60 backdrop-blur transition-transform hover:scale-110`,children:(0,S.jsx)(x,{className:`h-8 w-8 fill-gold text-gold`})})]}),(0,S.jsx)(`p`,{className:`relative z-10 mt-8 text-center text-[11px] uppercase tracking-[0.25em] text-white`,children:` 2`})]})})]}),(0,S.jsxs)(C,{label:`The Client Journey`,className:`border-t border-border`,children:[(0,S.jsx)($,{children:(0,S.jsx)(te,{children:`What your client sees.`})}),(0,S.jsx)(`div`,{className:`mt-12 space-y-12`,children:yu.map((e,t)=>(0,S.jsx)($,{delay:t*.05,children:(0,S.jsxs)(`div`,{className:`grid items-start gap-6 md:grid-cols-[100px_1fr]`,children:[(0,S.jsx)(`div`,{className:`flex h-14 w-14 items-center justify-center rounded-full border border-gold font-display text-2xl text-gold`,children:e.n}),(0,S.jsxs)(`div`,{className:`border-l-2 border-gold/30 pl-6`,children:[(0,S.jsx)(ne,{children:e.title}),(0,S.jsx)(`p`,{className:`mt-3 max-w-3xl text-[15px] leading-relaxed text-muted-foreground`,children:e.body})]})]})},e.n))})]}),(0,S.jsxs)(C,{label:`Your Dashboard`,className:`border-t border-border`,children:[(0,S.jsxs)($,{children:[(0,S.jsx)(te,{children:`What you see on the back end.`}),(0,S.jsx)(`p`,{className:`mt-6 max-w-2xl text-lg leading-relaxed text-muted-foreground`,children:`Every consultation appears in your dashboard instantly. Filter by date, paid status, skin concern, and source. Export to CSV. Message clients on WhatsApp with one tap.`})]}),(0,S.jsx)($,{delay:.2,children:(0,S.jsx)(`div`,{className:`mt-12 rounded-sm border border-border bg-gradient-to-br from-[#0F0F0F] via-black to-[#0A0A0A] px-4 py-10 md:px-10 md:py-14`,children:(0,S.jsx)(vu,{})})})]}),(0,S.jsx)(C,{className:`border-t border-border text-center`,children:(0,S.jsxs)($,{children:[(0,S.jsx)(ee,{className:`mx-auto max-w-xs`}),(0,S.jsx)(`h2`,{className:`mx-auto mt-10 max-w-3xl font-display text-[36px] italic leading-[1.05] tracking-tight text-white md:text-[56px]`,children:`Ready to see your own link?`}),(0,S.jsxs)(`div`,{className:`mt-10 flex flex-col items-center justify-center gap-3 sm:flex-row`,children:[(0,S.jsx)(a,{to:`/start-consultation`,style:{borderRadius:50},className:`inline-flex w-full items-center justify-center bg-gold px-7 py-4 text-center text-[12px] font-bold uppercase tracking-[0.18em] text-black hover:bg-gold-hover sm:w-auto`,children:`Start a Consultation â`}),(0,S.jsxs)(re,{href:`/auth?mode=signup&redirect=%2Fhow-it-works`,children:[`Start My Free `,7,`-Day Trial â`]})]}),(0,S.jsx)(`p`,{className:`mx-auto mt-4 max-w-md text-[11px] text-text-muted`,children:`Create your free account to start your AI consultation.`}),(0,S.jsx)(b,{links:_(e)})]})})]})}export{bu as component};
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.