1var tu=Object.defineProperty;var M=(t,e)=>()=>(t&&(e=t(t=0)),e);var Oi=(t,e)=>{for(var r in e)tu(t,r,{get:e[r],enumerable:!0})};function Mr(t,e){Object.assign(t,{[Symbol.for("figma.react.props")]:e})}var Wh,Gh,Hh,Yh,$h,Xh,Kh,qh,Zh,Jh,Qh,tp,ep,rp,ip,np,ap,op,sp,lp,up,mp,cp,dp,hp,pp,fp,gp,yp,vp,xp,wp,bp,Sp,Tp,ji=M(()=>{Wh=globalThis.__GLOBALS__.React,{Children:Gh,cloneElement:Hh,Component:Yh,createContext:$h,createElement:Xh,createFactory:Kh,createRef:qh,forwardRef:Zh,Fragment:Jh,isValidElement:Qh,lazy:tp,memo:ep,Profiler:rp,PureComponent:ip,startTransition:np,StrictMode:ap,Suspense:op,useCallback:sp,useContext:lp,useDebugValue:up,useDeferredValue:mp,useEffect:cp,useId:dp,useImperativeHandle:hp,useInsertionEffect:pp,useLayoutEffect:fp,useMemo:gp,useReducer:yp,useRef:vp,useState:xp,useSyncExternalStore:wp,useTransition:bp,version:Sp}=globalThis.__GLOBALS__.React;Tp=globalThis.__GLOBALS__.React.forwardRef(function({children:e,renderText:r,renderTextCharacter:i,renderTextLine:n,renderTextWord:a,style:o,childrenStyles:s,onClick:l,onMouseEnter:u,onMouseLeave:m,onMouseDown:d,onMouseUp:h},f){let v=globalThis.__GLOBALS__.React,S=globalThis.__GLOBALS__.NewRenderHooksContext,y=v.useContext(S),g={};r&&(g.renderText=r),i&&(g.renderTextCharacter=i),n&&(g.renderTextLine=n),a&&(g.renderTextWord=a),f&&(g.nodeRef=f),o&&(g.style=o),s&&(g.childrenStyles=s),l&&(g.onClick=l),d&&(g.onMouseDown=d),h&&(g.onMouseUp=h),u&&(g.onMouseEnter=u),m&&(g.onMouseLeave=m);let b=y.cloneWithAdditionalHooks(g);return v.createElement(S.Provider,{value:b},e)})});var Pp,eu,ru,_i,ht,La,Ap,Cp,Se,Rr,iu,Mp,Rp,Vp,Dp,kp,Lp,Fp,Ot,j,Bp,Ip,H,Vr,Op,oe,Ui,Tt,jp,z,pt,_p,Up,Np,R=M(()=>{Pp=globalThis.__GLOBALS__.React,{Children:eu,cloneElement:ru,Component:_i,createContext:ht,createElement:La,createFactory:Ap,createRef:Cp,forwardRef:Se,Fragment:Rr,isValidElement:iu,lazy:Mp,memo:Rp,Profiler:Vp,PureComponent:Dp,startTransition:kp,StrictMode:Lp,Suspense:Fp,useCallback:Ot,useContext:j,useDebugValue:Bp,useDeferredValue:Ip,useEffect:H,useId:Vr,useImperativeHandle:Op,useInsertionEffect:oe,useLayoutEffect:Ui,useMemo:Tt,useReducer:jp,useRef:z,useState:pt,useSyncExternalStore:_p,useTransition:Up,version:Np}=globalThis.__GLOBALS__.React});function $e(t,e){t.indexOf(e)===-1&&t.push(e)}function Dt(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Ba([...t],e,r){let i=e<0?t.length+e:e;if(i>=0&&i<t.length){let n=r<0?t.length+r:r,[a]=t.splice(e,1);t.splice(n,0,a)}return t}function Lr(t){return typeof t=="object"&&t!==null}function Kt(t){let e;return()=>(e===void 0&&(e=t()),e)}function Xe(t,e){return e?t*(1e3/e):0}function su(t,e,r,i,n){let a,o,s=0;do o=e+(r-e)/2,a=Oa(o,i,n)-t,a>0?r=o:e=o;while(Math.abs(a)>au&&++s<ou);return o}function Ke(t,e,r,i){if(t===e&&r===i)return $;let n=a=>su(a,0,1,t,r);return a=>a===0||a===1?a:Oa(n(a),e,i)}function Br(t,e){return Xi(t)?t[Ia(0,t.length,e)]:t}var it,jt,Y,ct,kr,Fr,$,nu,kt,Pt,Te,X,st,Ia,Oa,au,ou,ja,_a,Ua,Ni,zi,Wi,Gi,Hi,Yi,lu,uu,$i,Xi,Ir,Fa,mu,Or,Na=M(()=>{it=(t,e,r)=>r>e?e:r<t?t:r,jt=()=>{},Y=()=>{},ct={},kr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);Fr=t=>/^0[^.\s]+$/u.test(t);$=t=>t,nu=(t,e)=>r=>e(t(r)),kt=(...t)=>t.reduce(nu),Pt=(t,e,r)=>{let i=e-t;return i===0?1:(r-t)/i},Te=class{constructor(){this.subscriptions=[]}add(t){return $e(this.subscriptions,t),()=>Dt(this.subscriptions,t)}notify(t,e,r){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,e,r);else for(let n=0;n<i;n++){let a=this.subscriptions[n];a&&a(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},X=t=>t*1e3,st=t=>t/1e3;Ia=(t,e,r)=>{let i=e-t;return((r-t)%i+i)%i+t},Oa=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,au=1e-7,ou=12;ja=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_a=t=>e=>1-t(1-e),Ua=Ke(.33,1.53,.69,.99),Ni=_a(Ua),zi=ja(Ni),Wi=t=>(t*=2)<1?.5*Ni(t):.5*(2-Math.pow(2,-10*(t-1))),Gi=t=>1-Math.sin(Math.acos(t)),Hi=_a(Gi),Yi=ja(Gi),lu=Ke(.42,0,1,1),uu=Ke(0,0,.58,1),$i=Ke(.42,0,.58,1),Xi=t=>Array.isArray(t)&&typeof t[0]!="number";Ir=t=>Array.isArray(t)&&typeof t[0]=="number",Fa={linear:$,easeIn:lu,easeInOut:$i,easeOut:uu,circIn:Gi,circInOut:Yi,circOut:Hi,backIn:Ni,backInOut:zi,backOut:Ua,anticipate:Wi},mu=t=>typeof t=="string",Or=t=>{if(Ir(t)){Y(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,i,n]=t;return Ke(e,r,i,n)}else if(mu(t))return Y(Fa[t]!==void 0,`Invalid easing type '${t}
1'`,"invalid-easing-type"),Fa[t];return t}});var T=M(()=>{Na()});function cu(t,e){let r=new Set,i=new Set,n=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(d){o.has(d)&&(m.schedule(d),t()),l++,d(s)}let m={schedule:(d,h=!1,f=!1)=>{let v=f&&n?r:i;return h&&o.add(d),v.has(d)||v.add(d),d},cancel:d=>{i.delete(d),o.delete(d)},process:d=>{if(s=d,n){a=!0;return}n=!0,[r,i]=[i,r],r.forEach(u),e&&Lt.value&&Lt.value.frameloop[e].push(l),l=0,r.clear(),n=!1,a&&(a=!1,m.process(d))}};return m}function Go(t,e){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=Ze.reduce((g,b)=>(g[b]=cu(a,e?b:void 0),g),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:m,update:d,preRender:h,render:f,postRender:v}=o,S=()=>{let g=ct.useManualTiming?n.timestamp:performance.now();r=!1,ct.useManualTiming||(n.delta=i?1e3/60:Math.max(Math.min(g-n.timestamp,du),1)),n.timestamp=g,n.isProcessing=!0,s.process(n),l.process(n),u.process(n),m.process(n),d.process(n),h.process(n),f.process(n),v.process(n),n.isProcessing=!1,r&&e&&(i=!1,t(S))},y=()=>{r=!0,i=!0,n.isProcessing||t(S)};return{schedule:Ze.reduce((g,b)=>{let c=o[b];return g[b]=(V,x=!1,L=!1)=>(r||y(),c.schedule(V,x,L)),g},{}),cancel:g=>{for(let b=0;b<Ze.length;b++)o[Ze[b]].cancel(g)},state:n,steps:o}}function hu(){_r=void 0}function za(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}function gu(t){return t==null}function xu(t){let e="",r="",i="",n="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),n=t.substring(4,5),e+=e,r+=r,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}function Tu(t){return isNaN(t)&&typeof t=="string"&&(t.match(An)?.length||0)+(t.match(Su)?.length||0)>0}function ar(t){let e=t.toString(),r=[],i={color:[],number:[],var:[]},n=[],a=0,o=e.replace(Au,s=>(nt.test(s)?(i.color.push(a),n.push(Ko),r.push(nt.parse(s))):s.startsWith(Pu)?(i.var.push(a),n.push(Eu),r.push(s)):(i.number.push(a),n.push(Xo),r.push(parseFloat(s))),++a,Ga)).split(Ga);return{values:r,split:o,indexes:i,types:n}}function qo(t){return ar(t).values}function Zo(t){let{split:e,types:r}=ar(t),i=e.length;return n=>{let a="";for(let o=0;o<i;o++)if(a+=e[o],n[o]!==void 0){let s=r[o];s===Xo?a+=Qe(n[o]):s===Ko?a+=nt.transform(n[o]):a+=n[o]}return a}}function Mu(t){let e=qo(t);return Zo(t)(e.map(Cu))}function Zi(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Ru({hue:t,saturation:e,lightness:r,alpha:i}){t/=360,e/=100,r/=100;let n=0,a=0,o=0;if(!e)n=a=o=r;else{let s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=Zi(l,s,t+1/3),a=Zi(l,s,t),o=Zi(l,s,t-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function Nr(t,e){return r=>r>0?e:t}function Ha(t){let e=Du(t);if(jt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===Ee&&(r=Ru(r)),r}function ku(t,e){return sn.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Lu(t,e){return r=>N(t,e,r)}function Mn(t){return typeof t=="number"?Lu:typeof t=="string"?Pn(t)?Nr:nt.test(t)?Ya:Iu:Array.isArray(t)?Jo:typeof t=="object"?nt.test(t)?Ya:Fu:Nr}function Jo(t,e){let r=[...t],i=r.length,n=t.map((a,o)=>Mn(a)(a,e[o]));return a=>{for(let o=0;o<i;o++)r[o]=n[o](a);return r}}function Fu(t,e){let r={...t,...e},i={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(i[n]=Mn(t[n])(t[n],e[n]));return n=>{for(let a in i)r[a]=i[a](n);return r}}function Bu(t,e){let r=[],i={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let a=e.types[n],o=t.indexes[a][i[a]],s=t.values[o]??0;r[n]=s,i[a]++}return r}function Qo(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?N(t,e,r):Mn(t)(t,e)}function Rn(t){let e=0,r=50,i=t.next(e);for(;!i.done&&e<2e4;)e+=r,i=t.next(e);return e>=2e4?1/0:e}function Vn(t,e=100,r){let i=r({...t,keyframes:[0,e]}),n=Math.min(Rn(i),2e4);return{type:"keyframes",ease:a=>i.next(n*a).value/e,duration:st(n)}}function es(t,e,r){let i=Math.max(e-ju,0);return Xe(r-t(i),e-i)}function _u({duration:t=q.duration,bounce:e=q.bounce,velocity:r=q.velocity,mass:i=q.mass}){let n,a;jt(t<=X(q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=it(q.minDamping,q.maxDamping,o),t=it(q.minDuration,q.maxDuration,st(t)),o<1?(n=u=>{let m=u*o,d=m*t,h=m-r,f=ln(u,o),v=Math.exp(-d);return Qi-h/f*v},a=u=>{let m=u*o*t,d=m*r+r,h=Math.pow(o,2)*Math.pow(u,2)*t,f=Math.exp(-m),v=ln(Math.pow(u,2),o);return(-n(u)+Qi>0?-1:1)*((d-h)*f)/v}):(n=u=>{let m=Math.exp(-u*t),d=(u-r)*t+1;return-Qi+m*d},a=u=>{let m=Math.exp(-u*t),d=(r-u)*(t*t);return m*d});let s=5/t,l=Nu(n,a,s);if(t=X(t),isNaN(l))return{stiffness:q.stiffness,damping:q.damping,duration:t};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}function Nu(t,e,r){let i=r;for(let n=1;n<Uu;n++)i=i-t(i)/e(i);return i}function ln(t,e){return t*Math.sqrt(1-e*e)}function $a(t,e){return e.some(r=>t[r]!==void 0)}function Gu(t){let e={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...t};if(!$a(t,Wu)&&$a(t,zu))if(t.visualDuration){let r=t.visualDuration,i=2*Math.PI/(r*1.2),n=i*i,a=2*it(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:q.mass,stiffness:n,damping:a}}else{let r=_u(t);e={...e,...r,mass:q.mass},e.isResolvedFromDuration=!0}return e}function De(t=q.visualDuration,e=q.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:i,restDelta:n}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:u,mass:m,duration:d,velocity:h,isResolvedFromDuration:f}=Gu({...r,velocity:-st(r.velocity||0)}),v=h||0,S=u/(2*Math.sqrt(l*m)),y=o-a,g=st(Math.sqrt(l/m)),b=Math.abs(y)<5;i||(i=b?q.restSpeed.granular:q.restSpeed.default),n||(n=b?q.restDelta.granular:q.restDelta.default);let c;if(S<1){let x=ln(g,S);c=L=>{let _=Math.exp(-S*g*L);return o-_*((v+S*g*y)/x*Math.sin(x*L)+y*Math.cos(x*L))}}else if(S===1)c=x=>o-Math.exp(-g*x)*(y+(v+g*y)*x);else{let x=g*Math.sqrt(S*S-1);c=L=>{let _=Math.exp(-S*g*L),k=Math.min(x*L,300);return o-_*((v+S*g*y)*Math.sinh(k)+x*y*Math.cosh(k))/x}}
1let V={calculatedDuration:f&&d||null,next:x=>{let L=c(x);if(f)s.done=x>=d;else{let _=x===0?v:0;S<1&&(_=x===0?X(v):es(c,x,L));let k=Math.abs(_)<=i,I=Math.abs(o-L)<=n;s.done=k&&I}return s.value=s.done?o:L,s},toString:()=>{let x=Math.min(Rn(V),2e4),L=ts(_=>V.next(x*_).value,x,30);return x+"ms "+L},toTransition:()=>{}};return V}function un({keyframes:t,velocity:e=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:u=.5,restSpeed:m}){let d=t[0],h={done:!1,value:d},f=k=>s!==void 0&&k<s||l!==void 0&&k>l,v=k=>s===void 0?l:l===void 0||Math.abs(s-k)<Math.abs(l-k)?s:l,S=r*e,y=d+S,g=o===void 0?y:o(y);g!==y&&(S=g-d);let b=k=>-S*Math.exp(-k/i),c=k=>g+b(k),V=k=>{let I=b(k),St=c(k);h.done=Math.abs(I)<=u,h.value=h.done?g:St},x,L,_=k=>{f(h.value)&&(x=k,L=De({keyframes:[h.value,v(h.value)],velocity:es(c,k,h.value),damping:n,stiffness:a,restDelta:u,restSpeed:m}))};return _(0),{calculatedDuration:null,next:k=>{let I=!1;return!L&&x===void 0&&(I=!0,V(k),_(k)),x!==void 0&&k>=x?L.next(k-x):(!I&&V(k),h)}}}function Hu(t,e,r){let i=[],n=r||ct.mix||Qo,a=t.length-1;for(let o=0;o<a;o++){let s=n(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]||$:e;s=kt(l,s)}i.push(s)}return i}function Dn(t,e,{clamp:r=!0,ease:i,mixer:n}={}){let a=t.length;if(Y(a===e.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=Hu(e,i,n),l=s.length,u=m=>{if(o&&m<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(m<t[d+1]);d++);let h=Pt(t[d],t[d+1],m);return s[d](h)};return r?m=>u(it(t[0],t[a-1],m)):u}function kn(t,e){let r=t[t.length-1];for(let i=1;i<=e;i++){let n=Pt(0,e,i);t.push(N(r,1,n))}}function Yr(t){let e=[0];return kn(e,t.length-1),e}function Yu(t,e){return t.map(r=>r*e)}function $u(t,e){return t.map(()=>e||$i).splice(0,t.length-1)}function tr({duration:t=300,keyframes:e,times:r,ease:i="easeInOut"}){let n=Xi(i)?i.map(Or):Or(i),a={done:!1,value:e[0]},o=Yu(r&&r.length===e.length?r:Yr(e),t),s=Dn(o,e,{ease:Array.isArray(n)?n:$u(e,n)});return{calculatedDuration:t,next:l=>(a.value=s(l),a.done=l>=t,a)}}function Ln(t,{repeat:e,repeatType:r="loop"},i,n=1){let a=t.filter(Xu),o=n<0||e&&r!=="loop"&&e%2===1?0:a.length-1;return!o||i===void 0?a[o]:i}function rs(t){typeof t.type=="string"&&(t.type=Ku[t.type])}function In(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}function dn(t){return t.includes("scale")?1:0}function hn(t,e){if(!t||t==="none")return dn(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),i,n;if(r)i=Ju,n=r;else{let s=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Zu,n=s}if(!n)return dn(e);let a=i[e],o=n[1].split(",").map(tm);return typeof a=="function"?a(o):o[a]}function tm(t){return parseFloat(t.trim())}function im(t){let e=[];return rm.forEach(r=>{let i=t.getValue(r);i!==void 0&&(e.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),e}function is(){if(fn){let t=Array.from(he).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),r=new Map;e.forEach(i=>{let n=im(i);n.length&&(r.set(i,n),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();let n=r.get(i);n&&n.forEach(([a,o])=>{i.getValue(a)?.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}fn=!1,pn=!1,he.forEach(t=>t.complete(gn)),he.clear()}function ns(){he.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fn=!0)})}function nm(){gn=!0,ns(),is(),gn=!1}function am(t,e,r){jn(e)?t.style.setProperty(e,r):t.style[e]=r}function sm(t,e){let r=Kt(t);return()=>om[e]??r()}function ss(t,e){if(t)return typeof t=="function"?os()?ts(t,e):"ease-out":Ir(t)?Je(t):Array.isArray(t)?t.map(r=>ss(r,e)||Ja.easeOut):Ja[t]}function ls(t,e,r,{delay:i=0,duration:n=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},u=void 0){let m={[e]:r};l&&(m.offset=l);let d=ss(s,n);Array.isArray(d)&&(m.easing=d),Lt.value&&de.waapi++;let h={delay:i,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};u&&(h.pseudoElement=u);let f=t.animate(m,h);return Lt.value&&f.finished.finally(()=>{de.waapi--}),f}function $r(t){return typeof t=="function"&&"applyToOptions"in t}function lm({type:t,...e}){return $r(t)&&os()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}function um(t){return t in us}function mm(t){typeof t.ease=="string"&&um(t.ease)&&(t.ease=us[t.ease])}function dm(t){let e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function hm(t,e,r,i){let n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;let a=t[t.length-1],o=Qa(n,e),s=Qa(a,e);return jt(o===s,`You are trying to animate ${e} from "${n}" to "${a}". "${o?a:n}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:dm(t)||(r==="spring"||$r(r))&&i}function yn(t){t.duration=0,t.type="keyframes"}function gm(t){let{motionValue:e,name:r,repeatDelay:i,repeatType:n,damping:a,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:s,transformTemplate:l}=e.owner.getProps();return fm()&&r&&pm.has(r)&&(r!=="transform"||!l)&&!s&&!i&&n!=="mirror"&&a!==0&&o!=="inertia"}function to(t,e){let r=0;for(let i=0;i<t.length;i++){let n=t[i][e];n!==null&&n>r&&(r=n)}return r}function cs(t){let e=eo.get(t)||new Map;return eo.set(t,e),e}function ds(t,e,r,i=0,n=1){let a=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,s=(o-1)*i;return typeof r=="function"?r(a,o):n===1?a*i:s-a*i}function bm(t){let e=wm.exec(t);if(!e)return[,];let[,r,i,n]=e;return[`--${r??i}`,n]}function hs(t,e,r=1){Y(r<=Sm,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,n]=bm(t);if(!i)return;let a=window.getComputedStyle(e).getPropertyValue(i);if(a){let o=a.trim();return kr(o)?parseFloat(o):o}return Pn(n)?hs(n,e,r+1):n}function Rm(t,{repeat:e,repeatType:r="loop"},i){let n=t.filter(Mm),a=e&&r!=="loop"&&e%2===1?0:n.length-1;return!a||i===void 0?n[a]:i}function sr(t,e){return t?.[e]??t?.default??t}function Vm({when:t,delay:e,delayChildren:r,staggerChildren:i,staggerDirection:n,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:u,...m}){return!!Object.keys(m).length}function ro(t){let e=[{},{}];return t?.values.forEach((r,i)=>{e[0][i]=r.get(),e[1][i]=r.getVelocity()}),e}function qr(t,e,r,i){if(typeof e=="function"){let[n,a]=ro(i);e=e(r!==void 0?r:t.custom,n,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,a]=ro(i);e=e(r!==void 0?r:t.custom,n,a)}return e}function Me(t,e,r){let i=t.getProps();return qr(i,e,r!==void 0?r:i.custom,t)}function _t(t,e){return new Re(t,e)}function km(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,_t(r))}function Lm(t){return vn(t)?t[t.length-1]||0:t}function fs(t,e){let r=Me(t,e),{transitionEnd:i={},transition:n={},...a}=r||{};a={...a,...i};for(let o in a){let s=Lm(a[o]);km(t,o,s)}}function Fm(t){return!!(W(t)&&t.add)}function Zr(t,e){let r=t.getValue("willChange");if(Fm(r))return r.add(e);if(!r&&ct.WillChange){let i=new ct.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function Jr(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Un(t){return t.props[Qr]}function Bm({protectedKeys:t,needsAnimating:e},r){let i=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,i}function ti(t,e,{delay:r=0,transitionOverride:i,type:n}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:o,...s}=e,l=a?.reduceMotion;i&&(a=i);let u=[],m=n&&t.animationState&&t.animationState.getState()[n];for(let d in s){let h=t.getValue(d,t.latestValues[d]??null),f=s[d];if(f===void 0||m&&Bm(m,d))continue;let v={delay:r,...sr(a||{},d)},S=h.get();if(S!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===S&&!v.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){let c=Un(t);if(c){let V=window.MotionHandoffAnimation(c,d,B);V!==null&&(v.startTime=V,y=!0)}}Zr(t,d);let g=l??t.shouldReduceMotion;h.start(Kr(d,h,f,g&&ps.has(d)?{type:!1}:v,t,y));let b=h.animation;b&&u.push(b)}return o&&Promise.all(u).then(()=>{B.update(()=>{o&&fs(t,o)})}),u}function xn(t,e,r={}){let i=Me(t,e,r.type==="exit"?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(n=r.transitionOverride);let a=i?()=>Promise.all(ti(t,i,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:m,staggerDirection:d}=n;return Im(t,e,l,u,m,d,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,u]=s==="beforeChildren"?[a,o]:[o,a];return l().then(()=>u())}else return Promise.all([a(),o(r.delay)])}function Im(t,e,r=0,i=0,n=0,a=1,o){let s=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),s.push(xn(l,e,{...o,delay:r+(typeof i=="function"?0:i)+ds(t.variantChildren,l,i,n,a)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(s)}function ei(t,e,r={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){let n=e.map(a=>xn(t,a,r));i=Promise.all(n)}else if(typeof e=="string")i=xn(t,e,r);else{let n=typeof e=="function"?Me(t,e,r.custom):e;i=Promise.all(ti(t,n,r))}return i.then(()=>{t.notify("AnimationComplete",e)})}function jm(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Fr(t):!0}function Um(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[i]=r.match(An)||[];if(!i)return t;let n=r.replace(i,""),a=_m.has(e)?1:0;return i!==r&&(a*=100),e+"("+a+n+")"}function ws(t,e){let r=xs(t);return r!==wn&&(r=Jt),r.getAnimatableNone?r.getAnimatableNone(e):void 0}function Hm(t,e,r){let i=0,n;for(;i<t.length&&!n;){let a=t[i];
1typeof a=="string"&&!Gm.has(a)&&ar(a).values.length&&(n=t[i]),i++}if(n&&r)for(let a of e)t[a]=ws(r,n)}function bs(t,e){for(let r=0;r<t.length;r++)typeof t[r]=="number"&&$m.has(e)&&(t[r]=t[r]+"px")}function pe(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;e&&(i=e.current);let n=r?.[t]??i.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(i=>i!=null)}function Nn(t){return(e,r)=>{let i=pe(e),n=[];for(let a of i){let o=t(a,r);n.push(o)}return()=>{for(let a of n)a()}}}function ii(t){let e=new WeakMap,r=[];return(i,n)=>{let a=e.get(i)??new Xm;e.set(i,a);for(let o in n){let s=n[o],l=t(i,a,o,s);r.push(l)}return()=>{for(let o of r)o()}}}function Km(t,e){if(!(e in t))return!1;let r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return r&&typeof r.set=="function"}function ni(t){return Lr(t)&&"offsetHeight"in t}function Zm(t){let e="",r=!0;for(let i=0;i<Qt.length;i++){let n=Qt[i],a=t.latest[n];if(a===void 0)continue;let o=!0;if(typeof a=="number")o=a===(n.startsWith("scale")?1:0);else{let s=parseFloat(a);o=n.startsWith("scale")?s===1:s===0}if(!o){r=!1;let s=qm[n]||n,l=t.latest[n];e+=`${s}(${l}) `}}return r?"none":e.trim()}function Qm(t,e,r,i){return B.render(()=>t.setAttribute("pathLength","1")),r==="pathOffset"?e.set(r,i,()=>{let n=e.latest[r];t.setAttribute("stroke-dashoffset",`${-n}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new Re("1 1"),()=>{let{pathLength:n=1,pathSpacing:a}=e.latest;t.setAttribute("stroke-dasharray",`${n} ${a??1-Number(n)}`)}),e.set(r,i,void 0,e.get("stroke-dasharray")))}function ec(t){return t.replace(/^attr([A-Z])/,(e,r)=>r.toLowerCase())}function Ss(){return Mt.x||Mt.y}function Ts(t){return t==="x"||t==="y"?Mt[t]?null:(Mt[t]=!0,()=>{Mt[t]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}function Es(t,e){let r=pe(t),i=new AbortController,n={passive:!0,...e,signal:i.signal};return[r,n,()=>i.abort()]}function oo(t){return!(t.pointerType==="touch"||Ss())}function Ps(t,e,r={}){let[i,n,a]=Es(t,r),o=s=>{if(!oo(s))return;let{target:l}=s,u=e(l,s);if(typeof u!="function"||!l)return;let m=d=>{oo(d)&&(u(d),l.removeEventListener("pointerleave",m))};l.addEventListener("pointerleave",m,n)};return i.forEach(s=>{s.addEventListener("pointerenter",o,n)}),a}function Gn(t){return rc.has(t.tagName)||t.isContentEditable===!0}function so(t){return e=>{e.key==="Enter"&&t(e)}}function en(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function lo(t){return lr(t)&&!Ss()}function Cs(t,e,r={}){let[i,n,a]=Es(t,r),o=s=>{let l=s.currentTarget;if(!lo(s))return;Ur.add(l);let u=e(l,s),m=(f,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),Ur.has(l)&&Ur.delete(l),lo(f)&&typeof u=="function"&&u(f,{success:v})},d=f=>{m(f,l===window||l===document||r.useGlobalTarget||As(l,f.target))},h=f=>{m(f,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",h,n)};return i.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",o,n),ni(s)&&(s.addEventListener("focus",l=>ic(l,n)),!Gn(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function Hn(t,e){let r=window.getComputedStyle(t);return jn(e)?r.getPropertyValue(e):r[e]}function ur(t){return Lr(t)&&"ownerSVGElement"in t}function Yn(t){return ur(t)&&t.tagName==="svg"}function Rs(...t){let e=!Array.isArray(t[0]),r=e?0:-1,i=t[0+r],n=t[1+r],a=t[2+r],o=t[3+r],s=Dn(n,a,o);return e?s(i):s}function Vs(){if($n.current=!0,!!oc)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>zr.current=t.matches;t.addEventListener("change",e),e()}else zr.current=!1}function Fe(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Be(t){return typeof t=="string"||Array.isArray(t)}function Ie(t){return Fe(t.animate)||Kn.some(e=>Be(t[e]))}function qn(t){return!!(Ie(t)||t.variants)}function sc(t,e,r){for(let i in e){let n=e[i],a=r[i];if(W(n))t.addValue(i,n);else if(W(a))t.addValue(i,_t(n,{owner:t}));else if(a!==n)if(t.hasValue(i)){let o=t.getValue(i);o.liveStyle===!0?o.jump(n):o.hasAnimated||o.set(n)}else{let o=t.getStaticValue(i);t.addValue(i,_t(o!==void 0?o:n,{owner:t}))}}for(let i in r)e[i]===void 0&&t.removeValue(i);return e}function oi(t){Wr=t}function Ds(){return Wr}function Zn({top:t,left:e,right:r,bottom:i}){return{x:{min:e,max:r},y:{min:t,max:i}}}function Ls({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function lc(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function rn(t){return t===void 0||t===1}function Sn({scale:t,scaleX:e,scaleY:r}){return!rn(t)||!rn(e)||!rn(r)}function le(t){return Sn(t)||Fs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Fs(t){return ho(t.x)||ho(t.y)}function ho(t){return t&&t!=="0%"}function Gr(t,e,r){let i=t-r,n=e*i;return r+n}function po(t,e,r,i,n){return n!==void 0&&(t=Gr(t,n,i)),Gr(t,r,i)+e}function Tn(t,e=0,r=1,i,n){t.min=po(t.min,e,r,i,n),t.max=po(t.max,e,r,i,n)}function Bs(t,{x:e,y:r}){Tn(t.x,e.translate,e.scale,e.originPoint),Tn(t.y,r.translate,r.scale,r.originPoint)}function uc(t,e,r,i=!1){let n=r.length;if(!n)return;e.x=e.y=1;let a,o;for(let s=0;s<n;s++){a=r[s],o=a.projectionDelta;let{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ce(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Bs(t,o)),i&&le(a.latestValues)&&Ce(t,a.latestValues))}e.x<go&&e.x>fo&&(e.x=1),e.y<go&&e.y>fo&&(e.y=1)}function Ae(t,e){t.min=t.min+e,t.max=t.max+e}function yo(t,e,r,i,n=.5){let a=N(t.min,t.max,n);Tn(t,e,r,a,i)}function Ce(t,e){yo(t.x,e.x,e.scaleX,e.scale,e.originX),yo(t.y,e.y,e.scaleY,e.scale,e.originY)}function Is(t,e){return Zn(lc(t.getBoundingClientRect(),e))}function Os(t,e,r){let i=Is(t,r),{scroll:n}=e;return n&&(Ae(i.x,n.offset.x),Ae(i.y,n.offset.y)),i}function js(t,e,r){let i="",n=!0;for(let a=0;a<cc;a++){let o=Qt[a],s=t[o];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(o.startsWith("scale")?1:0);else{let u=parseFloat(s);l=o.startsWith("scale")?u===1:u===0}if(!l||r){let u=zn(s,ri[o]);if(!l){n=!1;let m=mc[o]||o;i+=`${m}(${u}) `}r&&(e[o]=u)}}return i=i.trim(),r?i=r(e,n?"":i):n&&(i="none"),i}function li(t,e,r){let{style:i,vars:n,transformOrigin:a}=t,o=!1,s=!1;for(let l in e){let u=e[l];if(Ut.has(l)){o=!0;continue}else if(Yo(l)){n[l]=u;continue}else{let m=zn(u,ri[l]);l.startsWith("origin")?(s=!0,a[l]=m):i[l]=m}}if(e.transform||(o||r?i.transform=js(e,t.transform,r):i.transform&&(i.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:m
1=0}=a;i.transformOrigin=`${l} ${u} ${m}`}}function _s(t,{style:e,vars:r},i,n){let a=t.style,o;for(o in e)a[o]=e[o];n?.applyProjectionStyles(a,i);for(o in r)a.setProperty(o,r[o])}function vo(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}function Jn(t,{layout:e,layoutId:r}){return Ut.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!En[t]||t==="opacity")}function ui(t,e,r){let i=t.style,n=e?.style,a={};if(!i)return a;for(let o in i)(W(i[o])||n&&W(n[o])||Jn(o,t)||r?.getValue(o)?.liveStyle!==void 0)&&(a[o]=i[o]);return a}function hc(t){return window.getComputedStyle(t)}function pc(t,e){return t in e}function yc(t,e,r=1,i=0,n=!0){t.pathLength=1;let a=n?fc:gc;t[a.offset]=`${-i}`,t[a.array]=`${e} ${r}`}function Qn(t,{attrX:e,attrY:r,attrScale:i,pathLength:n,pathSpacing:a=1,pathOffset:o=0,...s},l,u,m){if(li(t,s,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:h}=t;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=m?.transformBox??"fill-box",delete d.transformBox);for(let f of vc)d[f]!==void 0&&(h[f]=d[f],delete d[f]);e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&(d.scale=i),n!==void 0&&yc(d,n,a,o,!1)}function xc(t,e,r,i){_s(t,e,void 0,i);for(let n in e.attrs)t.setAttribute(Ns.has(n)?n:Jr(n),e.attrs[n])}function ea(t,e,r){let i=ui(t,e,r);for(let n in t)if(W(t[n])||W(e[n])){let a=Qt.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[a]=t[n]}return i}function zs(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent?zs(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}let e={};for(let r=0;r<wc;r++){let i=Kn[r],n=t.props[i];(Be(n)||n===!1)&&(e[i]=n)}return e}function Ws(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Tc(t){return e=>Promise.all(e.map(({animation:r,options:i})=>ei(t,r,i)))}function Gs(t){let e=Tc(t),r=xo(),i=!0,n=l=>(u,m)=>{let d=Me(t,m,l==="exit"?t.presenceContext?.custom:void 0);if(d){let{transition:h,transitionEnd:f,...v}=d;u={...u,...v,...f}}return u};function a(l){e=l(t)}function o(l){let{props:u}=t,m=zs(t.parent)||{},d=[],h=new Set,f={},v=1/0;for(let y=0;y<Sc;y++){let g=bc[y],b=r[g],c=u[g]!==void 0?u[g]:m[g],V=Be(c),x=g===l?b.isActive:null;x===!1&&(v=y);let L=c===m[g]&&c!==u[g]&&V;if(L&&i&&t.manuallyAnimateOnMount&&(L=!1),b.protectedKeys={...f},!b.isActive&&x===null||!c&&!b.prevProp||Fe(c)||typeof c=="boolean")continue;let _=Ec(b.prevProp,c),k=_||g===l&&b.isActive&&!L&&V||y>v&&V,I=!1,St=Array.isArray(c)?c:[c],mt=St.reduce(n(g),{});x===!1&&(mt={});let{prevResolvedValues:wt={}}=b,rt={...wt,...mt},C=Q=>{k=!0,h.has(Q)&&(I=!0,h.delete(Q)),b.needsAnimating[Q]=!0;let J=t.getValue(Q);J&&(J.liveStyle=!1)};for(let Q in rt){let J=mt[Q],tt=wt[Q];if(f.hasOwnProperty(Q))continue;let bt=!1;vn(J)&&vn(tt)?bt=!Ws(J,tt):bt=J!==tt,bt?J!=null?C(Q):h.add(Q):J!==void 0&&h.has(Q)?C(Q):b.protectedKeys[Q]=!0}b.prevProp=c,b.prevResolvedValues=mt,b.isActive&&(f={...f,...mt}),i&&t.blockInitialAnimation&&(k=!1);let He=L&&_;k&&(!He||I)&&d.push(...St.map(Q=>{let J={type:g};if(typeof Q=="string"&&i&&!He&&t.manuallyAnimateOnMount&&t.parent){let{parent:tt}=t,bt=Me(tt,Q);if(tt.enteringChildren&&bt){let{delayChildren:Bt}=bt.transition||{};J.delay=ds(tt.enteringChildren,t,Bt)}}return{animation:Q,options:J}}))}if(h.size){let y={};if(typeof u.initial!="boolean"){let g=Me(t,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{let b=t.getBaseTarget(g),c=t.getValue(g);c&&(c.liveStyle=!0),y[g]=b??null}),d.push({animation:y})}let S=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(S=!1),i=!1,S?e(d):Promise.resolve()}function s(l,u){if(r[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),r[l].isActive=u;let m=o(l);for(let d in r)r[d].protectedKeys={};return m}
1return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r,reset:()=>{r=xo()}}}function Ec(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ws(e,t):!1}function se(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xo(){return{animate:se(!0),whileInView:se(),whileHover:se(),whileTap:se(),whileDrag:se(),whileFocus:se(),exit:se()}}function wo(t,e){t.min=e.min,t.max=e.max}function Ct(t,e){wo(t.x,e.x),wo(t.y,e.y)}function bo(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function lt(t){return t.max-t.min}function Rc(t,e,r){return Math.abs(t-e)<=r}function So(t,e,r,i=.5){t.origin=i,t.originPoint=N(e.min,e.max,t.origin),t.scale=lt(r)/lt(e),t.translate=N(r.min,r.max,t.origin)-t.originPoint,(t.scale>=Pc&&t.scale<=Ac||isNaN(t.scale))&&(t.scale=1),(t.translate>=Cc&&t.translate<=Mc||isNaN(t.translate))&&(t.translate=0)}function er(t,e,r,i){So(t.x,e.x,r.x,i?i.originX:void 0),So(t.y,e.y,r.y,i?i.originY:void 0)}function To(t,e,r){t.min=r.min+e.min,t.max=t.min+lt(e)}function Vc(t,e,r){To(t.x,e.x,r.x),To(t.y,e.y,r.y)}function Eo(t,e,r){t.min=e.min-r.min,t.max=t.min+lt(e)}function Hr(t,e,r){Eo(t.x,e.x,r.x),Eo(t.y,e.y,r.y)}function Po(t,e,r,i,n){return t-=e,t=Gr(t,1/r,i),n!==void 0&&(t=Gr(t,1/n,i)),t}function Dc(t,e=0,r=1,i=.5,n,a=t,o=t){if(Rt.test(e)&&(e=parseFloat(e),e=N(o.min,o.max,e/100)-o.min),typeof e!="number")return;let s=N(a.min,a.max,i);t===a&&(s-=e),t.min=Po(t.min,e,r,s,n),t.max=Po(t.max,e,r,s,n)}function Ao(t,e,[r,i,n],a,o){Dc(t,e[r],e[i],e[n],e.scale,a,o)}function Co(t,e,r,i){Ao(t.x,e,kc,r?r.x:void 0,i?i.x:void 0),Ao(t.y,e,Lc,r?r.y:void 0,i?i.y:void 0)}function Mo(t){return t.translate===0&&t.scale===1}function $s(t){return Mo(t.x)&&Mo(t.y)}function Ro(t,e){return t.min===e.min&&t.max===e.max}function Fc(t,e){return Ro(t.x,e.x)&&Ro(t.y,e.y)}function Vo(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Xs(t,e){return Vo(t.x,e.x)&&Vo(t.y,e.y)}function Do(t){return lt(t.x)/lt(t.y)}function ko(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Et(t){return[t("x"),t("y")]}function Bc(t,e,r){let i="",n=t.x.translate/e.x,a=t.y.translate/e.y,o=r?.z||0;if((n||a||o)&&(i=`translate3d(${n}px, ${a}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:u,rotate:m,rotateX:d,rotateY:h,skewX:f,skewY:v}=r;u&&(i=`perspective(${u}px) ${i}`),m&&(i+=`rotate(${m}deg) `),d&&(i+=`rotateX(${d}deg) `),h&&(i+=`rotateY(${h}deg) `),f&&(i+=`skewX(${f}deg) `),v&&(i+=`skewY(${v}deg) `)}let s=t.x.scale*e.x,l=t.y.scale*e.y;return(s!==1||l!==1)&&(i+=`scale(${s}, ${l})`),i||"none"}function Oc(t,e,r,i,n,a){n?(t.opacity=N(0,r.opacity??1,jc(i)),t.opacityExit=N(e.opacity??1,0,_c(i))):a&&(t.opacity=N(e.opacity??1,r.opacity??1,i));for(let o=0;o<Ic;o++){let s=`border${Ks[o]}Radius`,l=Bo(e,s),u=Bo(r,s);l===void 0&&u===void 0||(l||(l=0),u||(u=0),l===0||u===0||Fo(l)===Fo(u)?(t[s]=Math.max(N(Lo(l),Lo(u),i),0),(Rt.test(u)||Rt.test(l))&&(t[s]+="%")):t[s]=u)}(e.rotate||r.rotate)&&(t.rotate=N(e.rotate||0,r.rotate||0,i))}function Bo(t,e){return t[e]!==void 0?t[e]:t.borderRadius}function qs(t,e,r){return i=>i<t?0:i>e?1:r(Pt(t,e,i))}function ra(t,e,r){let i=W(t)?t:_t(t);return i.start(Kr("",i,e,r)),i.animation}function Nt(t,e,r,i={passive:!0}){return t.addEventListener(e,r,i),()=>t.removeEventListener(e,r)}function Zs(t,e){let r=yt.now(),i=({timestamp:n})=>{let a=n-r;a>=e&&(vt(i),t(a-e))};return B.setup(i,!0),()=>vt(i)}function Ve(t){return W(t)?t.get():t}function an(t,e,r,i){let{latestValues:n}=e;n[t]&&(r[t]=n[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Js(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let r=Un(e);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",B,!(n||a))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Js(i)}function Qs({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(a={},o=e?.()){this.id=Gc++,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,Lt.value&&(ue.nodes=ue.calculatedTargetDeltas=ue.calculatedProjections=0),this.nodes.forEac
1h($c),this.nodes.forEach(Zc),this.nodes.forEach(Jc),this.nodes.forEach(Xc),Lt.addProjectionMetrics&&Lt.addProjectionMetrics(ue)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let s=0;s<this.path.length;s++)this.path[s].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nc)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Te),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){let s=this.eventHandlers.get(a);s&&s.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=ur(a)&&!Yn(a),this.instance=a;let{layoutId:o,layout:s,visualElement:l}=this.options;if(l&&!l.current&&l.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||o)&&(this.isLayoutDirty=!0),t){let u,m=0,d=()=>this.root.updateBlockedByResize=!1;B.read(()=>{m=window.innerWidth}),t(a,()=>{let h=window.innerWidth;h!==m&&(m=h,this.root.updateBlockedByResize=!0,u&&u(),u=Zs(d,250),rr.hasAnimatedSinceResize&&(rr.hasAnimatedSinceResize=!1,this.nodes.forEach(jo)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||s)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:m,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||l.getDefaultTransition()||id,{onLayoutAnimationStart:v,onLayoutAnimationComplete:S}=l.getProps(),y=!this.targetLayout||!Xs(this.targetLayout,h),g=!m&&d;if(this.options.layoutRoot||this.resumeFrom||g||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...sr(f,"layout"),onPlay:v,onComplete:S};(l.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,g)}else m||jo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vt(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(Qc),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Js(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let m=this.path[u];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:o,layout:s}=this.options;if(o===void 0&&!s)return;let l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Io);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Oo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qc),this.nodes.forEach(Hc),this.nodes.forEach(Yc)):this.nodes.forEach(Oo),this.clearAllSnapshots();let a=yt.now();at.delta=it(0,1e3/60,a-at.timestamp),at.timestamp=a,at.isProcessing=!0,Ki.update.process(at),Ki.preRender.process(at),Ki.render.process(at),at.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ai.read(this.scheduleUpdate))}
1clearAllSnapshots(){this.nodes.forEach(Kc),this.sharedNodes.forEach(td)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lt(this.snapshot.measuredBox.x)&&!lt(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 s=0;s<this.path.length;s++)this.path[s].updateScroll();let a=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:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){let s=i(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:s,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:s}}}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!$s(this.projectionDelta),s=this.getTransformTemplate(),l=s?s(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;a&&this.instance&&(o||le(this.latestValues)||u)&&(n(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let o=this.measurePageBox(),s=this.removeElementScroll(o);return a&&(s=this.removeTransform(s)),nd(s),{animationId:this.root.animationId,measuredBox:o,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return K();let o=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ad))){let{scroll:s}=this.root;s&&(Ae(o.x,s.offset.x),Ae(o.y,s.offset.y))}return o}removeElementScroll(a){let o=K();if(Ct(o,a),this.scroll?.wasRoot)return o;for(let s=0;s<this.path.length;s++){let l=this.path[s],{scroll:u,options:m}=l;l!==this.root&&u&&m.layoutScroll&&(u.wasRoot&&Ct(o,a),Ae(o.x,u.offset.x),Ae(o.y,u.offset.y))}return o}applyTransform(a,o=!1){let s=K();Ct(s,a);for(let l=0;l<this.path.length;l++){let u=this.path[l];!o&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ce(s,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),le(u.latestValues)&&Ce(s,u.latestValues)}return le(this.latestValues)&&Ce(s,this.latestValues),s}removeTransform(a){let o=K();Ct(o,a);for(let s=0;s<this.path.length;s++){let l=this.path[s];if(!l.instance||!le(l.latestValues))continue;Sn(l.latestValues)&&l.updateSnapshot();let u=K(),m=l.measurePageBox();Ct(u,m),Co(o,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return le(this.latestValues)&&Co(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==at.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(a||s&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:u}=this.options;if(!this.layout||!(l||u))return;this.resolvedRelativeTargetAt=at.timestamp;let m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.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(),Vc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),Bs(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0),Lt.value&&ue.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Sn(this.parent.latestValues)||Fs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,o,s){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),Hr(this.relativeTargetOrigin,o,s),Ct(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),o=!!this.resumingFrom||this!==a,s=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(s=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===at.timestamp&&(s=!1),s)return;let{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;Ct(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,d=this.treeScale.y;uc(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=K());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bo(this.prevProjectionDelta.x,this.projectionDelta.x),bo(this.prevProjectionDelta.y,this.projectionDelta.y)),er(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==d||!ko(this.projectionDelta.x,this.prevProjectionDelta.x)||!ko(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),Lt.value&&ue.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Pe(),this.projectionDelta=Pe(),this.projectionDeltaWithTransform=Pe()}setAnimationOrigin(a,o=!1){let s=this.snapshot,l=s?s.latestValues:{},u={...this.latestValues},m=Pe();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;let d=K(),h=s?s.source:void 0,f=this.layout?this.layout.source:void 0,v=h!==f,S=this.getStack(),y=!S||S.members.length<=1,g=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(rd));this.animationProgress=0;let b;this.mixTargetDelta=c=>{let V=c/1e3;_o(m.x,a.x,V),_o(m.y,a.y,V),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ed(this.relativeTarget,this.relativeTargetOrigin,d,V),b&&Fc(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=K()),Ct(b,this.relativeTarget)),v&&(this.animationValues=u,Oc(u,l,this.latestValues,V,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{rr.hasAnimatedSinceResize=!0,de.layout++,this.motionValue||(this.motionValue=_t(0)),this.currentAnimation=ra(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onStop:()=>{de.layout--},onComplete:()=>{de.layout--,a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:o,target:s,layout:l,latestValues:u}=a;if(!(!o||!s||!l)){if(this!==a&&this.layout&&l&&tl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){s=this.target||K();let m=lt(this.layout.layoutBox.x);s.x.min=a.target.x.min,s.x.max=s.x.min+m;let d=lt(this.layout.layoutBox.y);s.y.min=a.target.y.min,s.y.max=s.y.min+d}Ct(o,s),Ce(o,u),er(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new zc),this.sharedNodes.get(a).add(o);let s=o.options.initialPromotionConfig;o.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(o):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;
1return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:s}={}){let l=this.getStack();l&&l.promote(this,s),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let o=!1,{latestValues:s}=a;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(o=!0),!o)return;let l={};s.z&&an("z",a,l,this.animationValues);for(let u=0;u<nn.length;u++)an(`rotate${nn[u]}`,a,l,this.animationValues),an(`skew${nn[u]}`,a,l,this.animationValues);a.render();for(let u in l)a.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let s=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ve(o?.pointerEvents)||"",a.transform=s?s(this.latestValues,""):"none";return}let l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ve(o?.pointerEvents)||""),this.hasProjected&&!le(this.latestValues)&&(a.transform=s?s({},""):"none",this.hasProjected=!1);return}a.visibility="";let u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let m=Bc(this.projectionDeltaWithTransform,this.treeScale,u);s&&(m=s(u,m)),a.transform=m;let{x:d,y:h}=this.projectionDelta;a.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,l.animationValues?a.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(let f in En){if(u[f]===void 0)continue;let{correct:v,applyTo:S,isCSSVariable:y}=En[f],g=m==="none"?u[f]:v(u[f],l);if(S){let b=S.length;for(let c=0;c<b;c++)a[S[c]]=g}else y?this.options.visualElement.renderState.vars[f]=g:a[f]=g}this.options.layoutId&&(a.pointerEvents=l===this?Ve(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Io),this.root.sharedNodes.clear()}}}function Hc(t){t.updateLayout()}function Yc(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=t.layout,{animationType:n}=t.options,a=e.source!==t.layout.source;n==="size"?Et(m=>{let d=a?e.measuredBox[m]:e.layoutBox[m],h=lt(d);d.min=r[m].min,d.max=d.min+h}):tl(n,e.layoutBox,r)&&Et(m=>{let d=a?e.measuredBox[m]:e.layoutBox[m],h=lt(r[m]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+h)});let o=Pe();er(o,r,e.layoutBox);let s=Pe();a?er(s,t.applyTransform(i,!0),e.measuredBox):er(s,r,e.layoutBox);let l=!$s(o),u=!1;if(!t.resumeFrom){let m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){let{snapshot:d,layout:h}=m;if(d&&h){let f=K();Hr(f,e.layoutBox,d.layoutBox);let v=K();Hr(v,r,h.layoutBox),Xs(f,v)||(u=!0),m.options.layoutRoot&&(t.relativeTarget=v,t.relativeTargetOrigin=f,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:s,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function $c(t){Lt.value&&ue.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Xc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Kc(t){t.clearSnapshot()}function Io(t){t.clearMeasurements()}function Oo(t){t.isLayoutDirty=!1}function qc(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function jo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zc(t){t.resolveTargetDelta()}
1function Jc(t){t.calcProjection()}function Qc(t){t.resetSkewAndRotation()}function td(t){t.removeLeadSnapshot()}function _o(t,e,r){t.translate=N(e.translate,0,r),t.scale=N(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Uo(t,e,r,i){t.min=N(e.min,r.min,i),t.max=N(e.max,r.max,i)}function ed(t,e,r,i){Uo(t.x,e.x,r.x,i),Uo(t.y,e.y,r.y,i)}function rd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}function Wo(t){t.min=zo(t.min),t.max=zo(t.max)}function nd(t){Wo(t.x),Wo(t.y)}function tl(t,e,r){return t==="position"||t==="preserve-aspect"&&!Rc(Do(e),Do(r),.2)}function ad(t){return t!==t.root&&t.scroll?.wasRoot}var Ze,Lt,du,B,vt,at,Ki,_r,yt,de,Ho,Yo,pu,Pn,fu,Le,nr,jr,Qe,An,yu,Cn,$o,vu,qi,me,on,or,qt,Rt,P,wu,bu,Wa,Ee,nt,Su,Xo,Ko,Eu,Pu,Ga,Au,Cu,Jt,N,Ji,Vu,Du,Ya,sn,Iu,Ou,ts,ju,q,Qi,Uu,zu,Wu,Xu,Ku,Fn,qu,Bn,ce,mn,Zu,cn,Xa,Ka,qa,Ju,Qu,Qt,Ut,Za,em,rm,Zt,he,pn,fn,gn,On,jn,as,om,os,Je,Ja,_n,us,tn,cm,Qa,pm,fm,ym,vm,xm,Xr,eo,ms,wm,Sm,Tm,Em,Pm,Am,Cm,Mm,Kr,ps,io,Dm,ke,Re,vn,W,gs,Qr,Om,ys,vs,no,_m,Nm,wn,ao,zm,ri,Wm,xs,Gm,Ym,$m,Ef,zn,Xm,bn,Pf,Af,qm,Jm,Wn,Mf,tc,Rf,ai,Vf,Mt,As,lr,rc,Ur,ic,Ms,kf,Lf,nc,ac,uo,Pe,mo,K,zr,$n,oc,te,Xn,Kn,co,Wr,si,ks,ft,fo,go,mc,cc,qe,dc,En,mi,Us,fc,gc,vc,Ns,ta,ci,wc,bc,Sc,Hs,Pc,Ac,Ys,Cc,Mc,kc,Lc,Ks,Ic,Lo,Fo,jc,_c,Uc,Nc,zc,rr,ue,nn,Wc,Gc,id,No,zo,od,ir,di,Gf,el=M(()=>{T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();T();Ze=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Lt={value:null,addProjectionMetrics:null};du=40;({schedule:B,cancel:vt,state:at,steps:Ki}=Go(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0));yt={now:()=>(_r===void 0&&yt.set(at.isProcessing||ct.useManualTiming?at.timestamp:performance.now()),_r),set:t=>{_r=t,queueMicrotask(hu)}},de={layout:0,mainThread:0,waapi:0},Ho=t=>e=>typeof e=="string"&&e.startsWith(t),Yo=Ho("--"),pu=Ho("var(--"),Pn=t=>pu(t)?fu.test(t.split("/*")[0].trim()):!1,fu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;Le={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},nr={...Le,transform:t=>it(0,1,t)},jr={...Le,default:1},Qe=t=>Math.round(t*1e5)/1e5,An=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;yu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cn=(t,e)=>r=>!!(typeof r=="string"&&yu.test(r)&&r.startsWith(t)||e&&!gu(r)&&Object.prototype.hasOwnProperty.call(r,e)),$o=(t,e,r)=>i=>{if(typeof i!="string")return i;let[n,a,o,s]=i.match(An);return{[t]:parseFloat(n),[e]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},vu=t=>it(0,255,t),qi={...Le,transform:t=>Math.round(vu(t))},me={test:Cn("rgb","red"),parse:$o("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:i=1})=>"rgba("+qi.transform(t)+", "+qi.transform(e)+", "+qi.transform(r)+", "+Qe(nr.transform(i))+")"};on={test:Cn("#"),parse:xu,transform:me.transform},or=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),qt=or("deg"),Rt=or("%"),P=or("px"),wu=or("vh"),bu=or("vw"),Wa={...Rt,parse:t=>Rt.parse(t)/100,transform:t=>Rt.transform(t*100)},Ee={test:Cn("hsl","hue"),parse:$o("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+Rt.transform(Qe(e))+", "+Rt.transform(Qe(r))+", "+Qe(nr.transform(i))+")"},nt={test:t=>me.test(t)||on.test(t)||Ee.test(t),parse:t=>me.test(t)?me.parse(t):Ee.test(t)?Ee.parse(t):on.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?me.transform(t):Ee.transform(t),getAnimatableNone:t=>{let e=nt.parse(t);return e.alpha=0,nt.transform(e)}},Su=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;Xo="number",Ko="color",Eu="var",Pu="var(",Ga="${}",Au=/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;Cu=t=>typeof t=="number"?0:nt.test(t)?nt.getAnimatableNone(t):t;Jt={test:Tu,parse:qo,createTransformer:Zo,getAnimatableNone:Mu};N=(t,e,r)=>t+(e-t)*r,Ji=(t,e,r)=>{let i=t*t,n=r*(e*e-i)+i;return n<0?0:Math.sqrt(n)},Vu=[on,me,Ee],Du=t=>Vu.find(e=>e.test(t));Ya=(t,e)=>{let r=Ha(t),i=Ha(e);if(!r||!i)return Nr(t,e);let n={...r};return a=>(n.red=Ji(r.red,i.red,a),n.green=Ji(r.green,i.green,a),n.blue=Ji(r.blue,i.blue,a),n.alpha=N(r.alpha,i.alpha,a),me.transform(n))},sn=new Set(["none","hidden"]);Iu=(t,e)=>{let r=Jt.createTransformer(e),i=ar(t),n=ar(e);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?sn.has(t)&&!n.values.length||sn.has(e)&&!i.values.length?ku(t,e):kt(Jo(Bu(i,n),n.values),r):(jt(!0,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Nr(t,e))};Ou=t=>{let e=({timestamp:r})=>t(r);return{start:(r=!0)=>B.update(e,r),stop:()=>vt(e),now:()=>at.isProcessing?at.timestamp:yt.now()}},ts=(t,e,r=10)=>{let i="",n=Math.max(Math.round(e/r),2);for(let a=0;a<n;a++)i+=Math.round(t(a/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};ju=5;q={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},Qi=.001;Uu=12;zu=["duration","bounce"],Wu=["stiffness","damping","mass"];De.applyToOptions=t=>{let e=Vn(t,100,De);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};Xu=t=>t!==null;Ku={decay:un,inertia:un,tween:tr,keyframes:tr,spring:De};Fn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}},qu=t=>t/100,Bn=class extends Fn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},de.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;rs(t);let{type:e=tr,repeat:r=0,repeatDelay:i=0,repeatType:n,velocity:a=0}=t,{keyframes:o}=t,s=e||tr;s!==tr&&typeof o[0]!="number"&&(this.mixKeyframes=kt(qu,Qo(o[0],o[1])),o=[0,100]);let l=s({...t,keyframes:o});n==="mirror"&&(this.mirroredGenerator=s({...t,keyframes:[...o].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=Rn(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:r,totalDuration:i,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return r.next(0);let{delay:l=0,keyframes:u,repeat:m,repeatType:d,repeatDelay:h,type:f,onUpdate:v,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,c=r;if(m){let _=Math.min(this.currentTime,i)/o,k=Math.floor(_),I=_%1;!I&&_>=1&&(I=1),I===1&&k--,k=Math.min(k,m+1),k%2&&(d==="reverse"?(I=1-I,h&&(I-=h/o)):d==="mirror"&&(c=a)),b=it(0,1,I)*o}let V=g?{done:!1,value:u[0]}:c.next(b);n&&(V.value=n(V.value));let{done:x}=V;!g&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&x);return L&&f!==un&&(V.value=Ln(u,this.options,S,this.speed)),v&&v(V.value),L&&this.finish(),V}then(t,e){return this.finished.then(t,e)}get duration(){return st(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+st(t)}get time(){return st(this.currentTime)}set time(t){t=X(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(yt.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=st(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=Ou,startTime:e}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=e??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.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,de.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};ce=t=>t*180/Math.PI,mn=t=>{let e=ce(Math.atan2(t[1],t[0]));return cn(e)},Zu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:mn,rotateZ:mn,skewX:t=>ce(Math.atan(t[1])),skewY:t=>ce(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},cn=t=>(t=t%360,t<0&&(t+=360),t),Xa=mn,Ka=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qa=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ju={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ka,scaleY:qa,scale:t=>(Ka(t)+qa(t))/2,rotateX:t=>cn(ce(Math.atan2(t[6],t[5]))),rotateY:t=>cn(ce(Math.atan2(-t[2],t[0]))),rotateZ:Xa,rotate:Xa,skewX:t=>ce(Math.atan(t[4])),skewY:t=>ce(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};Qu=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return hn(r,e)};Qt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ut=new Set(Qt),Za=t=>t===Le||t===P,em=new Set(["x","y","z"]),rm=Qt.filter(t=>!em.has(t));Zt={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>hn(e,"x"),y:(t,{transform:e})=>hn(e,"y")};Zt.translateX=Zt.x;Zt.translateY=Zt.y;he=new Set,pn=!1,fn=!1,gn=!1;On=class{constructor(t,e,r,i,n,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=i,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(he.add(this),pn||(pn=!0,B.read(ns),B.resolveKeyframes(is))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:i}=this;if(t[0]===null){let n=i?.get(),a=t[t.length-1];if(n!==void 0)t[0]=n;else if(r&&e){let o=r.readValue(e,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&n===void 0&&i.set(t[0])}In(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),he.delete(this)}cancel(){this.state==="scheduled"&&(he.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}},jn=t=>t.startsWith("--");as=Kt(()=>window.ScrollTimeline!==void 0),om={};os=sm(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Je=([t,e,r,i])=>`cubic-bezier(${t}, ${e}, ${r}, ${i})`,Ja={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Je([0,.65,.55,1]),circOut:Je([.55,0,1,.45]),backIn:Je([.31,.01,.66,-.59]),backOut:Je([.33,1.53,.69,.99])};_n=class extends Fn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:r,keyframes:i,pseudoElement:n,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=t;this.isPseudoElement=!!n,this.allowFlatten=a,this.options=t,Y(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let l=lm(t);this.animation=ls(e,r,i,l,n),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let u=Ln(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(u):am(e,r,u),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:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return st(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+st(t)}get time(){return st(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&as()?(this.animation.timeline=t,$):e(this)}},us={anticipate:Wi,backInOut:zi,circInOut:Yi};tn=10,cm=class extends _n{constructor(t){mm(t),rs(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:r,onComplete:i,element:n,...a}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}let o=new Bn({...a,autoplay:!1}),s=Math.max(tn,yt.now()-this.startTime),l=it(0,tn,s-tn);e.setWithVelocity(o.sample(Math.max(0,s-l)).value,o.sample(s).value,l),o.stop()}},Qa=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jt.test(t)||t==="0")&&!t.startsWith("url("));pm=new Set(["opacity","clipPath","filter","transform"]),fm=Kt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));ym=40,vm=class extends Fn{constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:a="loop",keyframes:o,name:s,motionValue:l,element:u,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yt.now();let d={autoplay:t,delay:e,type:r,repeat:i,repeatDelay:n,repeatType:a,name:s,motionValue:l,element:u,...m},h=u?.KeyframeResolver||On;this.keyframeResolver=new h(o,(f,v,S)=>this.onKeyframesResolved(f,v,d,!S),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,r,i){this.keyframeResolver=void 0;let{name:n,type:a,velocity:o,delay:s,isHandoff:l,onUpdate:u}=r;this.resolvedAt=yt.now(),hm(t,n,a,o)||((ct.instantAnimations||!s)&&u?.(Ln(t,r,e)),t[0]=t[t.length-1],yn(r),r.repeat=0);let m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ym?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:e,...r,keyframes:t},d=!l&&gm(m),h=m.motionValue?.owner?.current,f=d?new cm({...m,element:h}):new Bn(m);f.finished.then(()=>{this.notifyFinished()}).catch($),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nm()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},xm=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=e}attachTimeline(t){let e=this.animations.map(r=>r.attachTimeline(t));return()=>{e.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return to(this.animations,"duration")}get iterationDuration(){return to(this.animations,"iterationDuration")}
1runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};Xr=class extends xm{then(t,e){return this.finished.finally(t).then(()=>{})}},eo=new WeakMap,ms=(t,e="")=>`${t}:${e}`;wm=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;Sm=4;Tm={type:"spring",stiffness:500,damping:25,restSpeed:10},Em=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Pm={type:"keyframes",duration:.8},Am={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cm=(t,{keyframes:e})=>e.length>2?Pm:Ut.has(t)?t.startsWith("scale")?Em(e[1]):Tm:Am,Mm=t=>t!==null;Kr=(t,e,r,i={},n,a)=>o=>{let s=sr(i,t)||{},l=s.delay||i.delay||0,{elapsed:u=0}=i;u=u-X(l);let m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-u,onUpdate:h=>{e.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:n};Vm(s)||Object.assign(m,Cm(t,m)),m.duration&&(m.duration=X(m.duration)),m.repeatDelay&&(m.repeatDelay=X(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let d=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(yn(m),m.delay===0&&(d=!0)),(ct.instantAnimations||ct.skipAnimations)&&(d=!0,yn(m),m.delay=0),m.allowFlatten=!s.type&&!s.ease,d&&!a&&e.get()!==void 0){let h=Rm(m.keyframes,s);if(h!==void 0){B.update(()=>{m.onUpdate(h),m.onComplete()});return}}return s.isSync?new Bn(m):new vm(m)};ps=new Set(["width","height","top","left","right","bottom",...Qt]),io=30,Dm=t=>!isNaN(parseFloat(t)),ke={current:void 0},Re=class{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let i=yt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Dm(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Te);let r=this.events[t].add(e);return t==="change"?()=>{r(),B.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ke.current&&ke.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>io)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,io);return Xe(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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()}};vn=t=>Array.isArray(t);W=t=>!!(t&&t.getVelocity);gs="framerAppearId",Qr="data-"+Jr(gs);Om={test:t=>t==="auto",parse:t=>t},ys=t=>e=>e.test(t),vs=[Le,P,Rt,qt,bu,wu,Om],no=t=>vs.find(ys(t));_m=new Set(["brightness","contrast","saturate","opacity"]);Nm=/\b([a-z-]*)\(.*?\)/gu,wn={...Jt,getAnimatableNone:t=>{let e=t.match(Nm);return e?e.map(Um).join(" "):t}},ao={...Le,transform:Math.round},zm={rotate:qt,rotateX:qt,rotateY:qt,rotateZ:qt,scale:jr,scaleX:jr,scaleY:jr,scaleZ:jr,skew:qt,skewX:qt,skewY:qt,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:nr,originX:Wa,originY:Wa,originZ:P},ri={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...zm,zIndex:ao,fillOpacity:nr,strokeOpacity:nr,numOctaves:ao},Wm={...ri,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:wn,WebkitFilter:wn},xs=t=>Wm[t];
1Gm=new Set(["auto","none","0"]);Ym=class extends On{constructor(t,e,r,i,n){super(t,e,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let m=t[u];if(typeof m=="string"&&(m=m.trim(),Pn(m))){let d=hs(m,e.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!ps.has(r)||t.length!==2)return;let[i,n]=t,a=no(i),o=no(n),s=za(i),l=za(n);if(s!==l&&Zt[r]){this.needsMeasurement=!0;return}if(a!==o)if(Za(a)&&Za(o))for(let u=0;u<t.length;u++){let m=t[u];typeof m=="string"&&(t[u]=parseFloat(m))}else Zt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||jm(t[i]))&&r.push(i);r.length&&Hm(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Zt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let n=r.length-1,a=r[n];r[n]=Zt[e](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([o,s])=>{t.getValue(o).set(s)}),this.resolveNoneKeyframes()}},$m=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);Ef=Kt(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0});zn=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xm=class{constructor(){this.latest={},this.values=new Map}set(t,e,r,i,n=!0){let a=this.values.get(t);a&&a.onRemove();let o=()=>{let u=e.get();n?this.latest[t]=zn(u,ri[t]):this.latest[t]=u,r&&B.render(r)};o();let s=e.on("change",o);i&&e.addDependent(i);let l=()=>{s(),r&&vt(r),this.values.delete(t),i&&e.removeDependent(i)};return this.values.set(t,{value:e,onRemove:l}),l}get(t){return this.values.get(t)?.value}destroy(){for(let t of this.values.values())t.onRemove()}};bn=(t,e,r,i)=>{let n=Km(t,r),a=n?r:r.startsWith("data")||r.startsWith("aria")?Jr(r):r,o=n?()=>{t[a]=e.latest[r]}:()=>{let s=e.latest[r];s==null?t.removeAttribute(a):t.setAttribute(a,String(s))};return e.set(r,i,o)},Pf=Nn(ii(bn)),Af=ii((t,e,r,i)=>e.set(r,i,()=>{t[r]=e.latest[r]},void 0,!1));qm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};Jm=new Set(["originX","originY","originZ"]),Wn=(t,e,r,i)=>{let n,a;return Ut.has(r)?(e.get("transform")||(!ni(t)&&!e.get("transformBox")&&Wn(t,e,"transformBox",new Re("fill-box")),e.set("transform",new Re("none"),()=>{t.style.transform=Zm(e)})),a=e.get("transform")):Jm.has(r)?(e.get("transformOrigin")||e.set("transformOrigin",new Re(""),()=>{let o=e.latest.originX??"50%",s=e.latest.originY??"50%",l=e.latest.originZ??0;t.style.transformOrigin=`${o} ${s} ${l}`}),a=e.get("transformOrigin")):jn(r)?n=()=>{t.style.setProperty(r,e.latest[r])}:n=()=>{t.style[r]=e.latest[r]},e.set(r,i,n,a)},Mf=Nn(ii(Wn));tc=(t,e,r,i)=>r.startsWith("path")?Qm(t,e,r,i):r.startsWith("attr")?bn(t,e,ec(r),i):(r in t.style?Wn:bn)(t,e,r,i),Rf=Nn(ii(tc));({schedule:ai,cancel:Vf}=Go(queueMicrotask,!1)),Mt={x:!1,y:!1};As=(t,e)=>e?t===e?!0:As(t,e.parentElement):!1,lr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,rc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);Ur=new WeakSet;ic=(t,e)=>{let r=t.currentTarget;if(!r)return;let i=so(()=>{if(Ur.has(r))return;en(r,"down");let n=so(()=>{en(r,"up")}),a=()=>en(r,"cancel");r.addEventListener("keyup",n,e),r.addEventListener("blur",a,e)});r.addEventListener("keydown",i,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),e)};Ms=(t,e,r)=>(i,n)=>n&&n[0]?n[0][t+"Size"]:ur(i)&&"getBBox"in i?i.getBBox()[e]:i[r],kf=Ms("inline","width","offsetWidth"),Lf=Ms("block","height","offsetHeight");nc=[...vs,nt,Jt],ac=t=>nc.find(ys(t)),uo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Pe=()=>({x:uo(),y:uo()}),mo=()=>({min:0,max:0}),K=()=>({x:mo(),y:mo()}),zr={current:null},$n={current:!1},oc=typeof window<"u";te=new WeakMap;Xn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kn=["initial",...Xn];co=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wr={};si=class{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:n,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=On,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let d=yt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,B.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=Ie(e),this.isVariantNode=qn(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...m}=this.scrapeMotionValuesFromProps(e,{},this);for(let d in m){let h=m[d];s[d]!==void 0&&W(h)&&h.set(s[d])}}mount(t){this.current=t,te.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,r)=>this.bindToMotionValue(r,e)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($n.current||Vs(),this.shouldReduceMotion=zr.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vt(this.notifyUpdate),vt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=Ut.has(t);r&&this.onBindTransform&&this.onBindTransform();let i=e.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&B.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wr){let e=Wr[t];if(!e)continue;let{isEnabled:r,Feature:i}=e;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){let n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let r=0;r<co.length;r++){let i=co[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,a=t[n];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=sc(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let r=this.values.get(t);e!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&e!==void 0&&(r=_t(e===null?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(kr(r)||Fr(r))?r=parseFloat(r):!ac(r)&&Jt.test(e)&&(r=ws(t,e)),this.setBaseTarget(t,W(r)?r.get():r)),W(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let{initial:e}=this.props,r;if(typeof e=="string"||typeof e=="object"){let n=qr(this.props,e,this.presenceContext?.custom);n&&(r=n[t])}if(e&&r!==void 0)return r;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!W(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Te),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ai.render(this.render)}},ks=class extends si{constructor(){super(...arguments),this.KeyframeResolver=Ym}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){let r=t.style;return r?r[e]:void 0}removeValueFromRenderState(t,{vars:e,style:r}){delete e[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}},ft=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};fo=.999999999999,go=1.0000000000001;mc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cc=Qt.length;qe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;let r=vo(t,e.target.x),i=vo(t,e.target.y);return`${r}% ${i}%`}},dc={correct:(t,{treeScale:e,projectionDelta:r})=>{let i=t,n=Jt.parse(t);if(n.length>5)return i;let a=Jt.createTransformer(t),o=typeof n[0]!="number"?1:0,s=r.x.scale*e.x,l=r.y.scale*e.y;n[0+o]/=s,n[1+o]/=l;let u=N(s,l,.5);return typeof n[2+o]=="number"&&(n[2+o]/=u),typeof n[3+o]=="number"&&(n[3+o]/=u),a(n)}},En={borderRadius:{...qe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomLeftRadius:qe,borderBottomRightRadius:qe,boxShadow:dc};mi=class extends ks{constructor(){super(...arguments),this.type="html",this.renderInstance=_s}readValueFromInstance(t,e){if(Ut.has(e))return this.projection?.isProjecting?dn(e):Qu(t,e);{let r=hc(t),i=(Yo(e)?r.getPropertyValue(e):r[e])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Is(t,e)}build(t,e,r){li(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return ui(t,e,r)}};Us=class extends si{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(pc(e,t)){let r=t[e];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return K()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}},fc={offset:"stroke-dashoffset",array:"stroke-dasharray"},gc={offset:"strokeDashoffset",array:"strokeDasharray"};vc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];Ns=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"]),ta=t=>typeof t=="string"&&t.toLowerCase()==="svg";ci=class extends ks{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Ut.has(e)){let r=xs(e);return r&&r.default||0}return e=Ns.has(e)?e:Jr(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return ea(t,e,r)}build(t,e,r){Qn(t,e,this.isSVGTag,r.transformTemplate,r.style)}
1renderInstance(t,e,r,i){xc(t,e,r,i)}mount(t){this.isSVGTag=ta(t.tagName),super.mount(t)}},wc=Kn.length;bc=[...Xn].reverse(),Sc=Xn.length;Hs=1e-4,Pc=1-Hs,Ac=1+Hs,Ys=.01,Cc=0-Ys,Mc=0+Ys;kc=["x","scaleX","originX"],Lc=["y","scaleY","originY"];Ks=["TopLeft","TopRight","BottomLeft","BottomRight"],Ic=Ks.length,Lo=t=>typeof t=="string"?parseFloat(t):t,Fo=t=>typeof t=="number"||P.test(t);jc=qs(0,.5,Hi),_c=qs(.5,.95,$);Uc=(t,e)=>t.depth-e.depth,Nc=class{constructor(){this.children=[],this.isDirty=!1}add(t){$e(this.children,t),this.isDirty=!0}remove(t){Dt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Uc),this.isDirty=!1,this.children.forEach(t)}};zc=class{constructor(){this.members=[]}add(t){$e(this.members,t),t.scheduleRender()}remove(t){if(Dt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){let e=this.members.findIndex(i=>t===i);if(e===0)return!1;let r;for(let i=e;i>=0;i--){let n=this.members[i];if(n.isPresent!==!1){r=n;break}}return r?(this.promote(r),!0):!1}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();let i=r.options.layoutDependency,n=t.options.layoutDependency;i!==void 0&&n!==void 0&&i===n||(t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:r}=t;e.onExitComplete&&e.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},rr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ue={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nn=["","X","Y","Z"],Wc=1e3,Gc=0;id={duration:.45,ease:[.4,0,.1,1]},No=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),zo=No("applewebkit/")&&!No("chrome/")?Math.round:$;od=Qs({attachResizeListener:(t,e)=>Nt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ir={current:void 0},di=Qs({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ir.current){let t=new od({});t.mount(window),t.setOptions({layoutScroll:!0}),ir.current=t}return ir.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Gf=Ze.reduce((t,e)=>(t[e]=r=>vt(r),t),{})});var E=M(()=>{T();el()});function mr(t){return typeof t=="object"&&!Array.isArray(t)}var ia=M(()=>{});function hi(t,e,r,i){return t==null?[]:typeof t=="string"&&mr(e)?pe(t,r,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(n=>n!=null):[t]}var na=M(()=>{E();ia()});function sd(t,e,r){return t*(e+1)}function rl(t,e,r,i){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:e.startsWith("<")?Math.max(0,r+parseFloat(e.slice(1))):i.get(e)??t}function ld(t,e,r){for(let i=0;i<t.length;i++){let n=t[i];n.at>e&&n.at<r&&(Dt(t,n),i--)}}function ud(t,e,r,i,n,a){ld(t,n,a);for(let o=0;o<e.length;o++)t.push({value:e[o],at:N(n,a,i[o]),easing:Br(r,o)})}function md(t,e){for(let r=0;r<t.length;r++)t[r]=t[r]/(e+1)}function cd(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}function al(t,{defaultTransition:e={},...r}={},i,n){let a=e.duration||.3,o=new Map,s=new Map,l={},u=new Map,m=0,d=0,h=0;for(let f=0;f<t.length;f++){let v=t[f];if(typeof v=="string"){u.set(v,d);continue}else if(!Array.isArray(v)){u.set(v.name,rl(d,v.at,m,u));continue}let[S,y,g={}]=v;g.at!==void 0&&(d=rl(d,g.at,m,u));let b=0,c=(V,x,L,_=0,k=0)=>{let I=pd(V),{delay:St=0,times:mt=Yr(I),type:wt=e.type||"keyframes",repeat:rt,repeatType:C,repeatDelay:He=0,...Q}=x,{ease:J=e.ease||"easeOut",duration:tt}
1=x,bt=typeof St=="function"?St(_,k):St,Bt=I.length,ne=$r(wt)?wt:n?.[wt||"keyframes"];if(Bt<=2&&ne){let $t=100;if(Bt===2&&yd(I)){let Xt=I[1]-I[0];$t=Math.abs(Xt)}let ae={...e,...Q};tt!==void 0&&(ae.duration=X(tt));let be=Vn(ae,$t,ne);J=be.ease,tt=be.duration}tt??(tt=a);let et=d+bt;mt.length===1&&mt[0]===0&&(mt[1]=1);let Ar=mt.length-I.length;if(Ar>0&&kn(mt,Ar),I.length===1&&I.unshift(null),rt){Y(rt<hd,"Repeat count too high, must be less than 20","repeat-count-high"),tt=sd(tt,rt);let $t=[...I],ae=[...mt];J=Array.isArray(J)?[...J]:[J];let be=[...J];for(let Xt=0;Xt<rt;Xt++){I.push(...$t);for(let It=0;It<$t.length;It++)mt.push(ae[It]+(Xt+1)),J.push(It===0?"linear":Br(be,It-1))}md(mt,rt)}let Cr=et+tt;ud(L,I,J,mt,et,Cr),b=Math.max(bt+tt,b),h=Math.max(Cr,h)};if(W(S)){let V=il(S,s);c(y,g,nl("default",V))}else{let V=hi(S,y,i,l),x=V.length;for(let L=0;L<x;L++){y=y,g=g;let _=V[L],k=il(_,s);for(let I in y)c(y[I],fd(g,I),nl(I,k),L,x)}}m=d,d+=b}return s.forEach((f,v)=>{for(let S in f){let y=f[S];y.sort(cd);let g=[],b=[],c=[];for(let _=0;_<y.length;
1_++){let{at:k,value:I,easing:St}=y[_];g.push(I),b.push(Pt(0,h,k)),c.push(St||"easeOut")}b[0]!==0&&(b.unshift(0),g.unshift(g[0]),c.unshift(dd)),b[b.length-1]!==1&&(b.push(1),g.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let V=o.get(v);V.keyframes[S]=g;let{type:x,...L}=e;V.transition[S]={...L,duration:h,ease:c,times:b,...r}}}),o}function il(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function nl(t,e){return e[t]||(e[t]=[]),e[t]}function pd(t){return Array.isArray(t)?t:[t]}function fd(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var dd,hd,gd,yd,ol=M(()=>{E();T();na();E();T();dd="easeInOut",hd=20;gd=t=>typeof t=="number",yd=t=>t.every(gd)});function vd(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=ur(t)&&!Yn(t)?new ci(e):new mi(e);r.mount(t),te.set(t,r)}function xd(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new Us(e);r.mount(t),te.set(t,r)}function wd(t,e){return W(t)||typeof t=="number"||typeof t=="string"&&!mr(e)}function sl(t,e,r,i){let n=[];if(wd(t,e))n.push(ra(t,mr(e)&&e.default||e,r&&(r.default||r)));else{if(t==null)return n;let a=hi(t,e,i),o=a.length;Y(!!o,"No valid elements provided.","no-valid-elements");for(let s=0;s<o;s++){let l=a[s],u=l instanceof Element?vd:xd;te.has(l)||u(l);let m=te.get(l),d={...r};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(s,o)),n.push(...ti(m,{...e,transition:d},{}))}}return n}function bd(t,e,r){let i=[];return al(t,e,r,{spring:De}).forEach(({keyframes:n,transition:a},o)=>{i.push(...sl(o,n,a))}),i}function Sd(t){return Array.isArray(t)&&t.some(Array.isArray)}function aa(t={}){let{scope:e,reduceMotion:r}=t;function i(n,a,o){let s=[],l;if(Sd(n))s=bd(n,r!==void 0?{reduceMotion:r,...a}:a,e);else{let{onComplete:m,...d}=o||{};typeof m=="function"&&(l=m),s=sl(n,a,r!==void 0?{reduceMotion:r,...d}:d,e)}let u=new Xr(s);return l&&u.finished.then(l),e&&(e.animations.push(u),u.finished.then(()=>{Dt(e.animations,u)})),u}return i}var Td,pi=M(()=>{E();T();E();ol();E();T();E();ia();na();Td=aa()});function ll(t,e,r,i){if(t==null)return[];let n=pe(t,i),a=n.length;Y(!!a,"No valid elements provided.","no-valid-elements");let o=[];for(let l=0;l<a;l++){let u=n[l],m={...r};typeof m.delay=="function"&&(m.delay=m.delay(l,a));for(let d in e){let h=e[d];Array.isArray(h)||(h=[h]);let f={...sr(m,d)};f.duration&&(f.duration=X(f.duration)),f.delay&&(f.delay=X(f.delay));let v=cs(u),S=ms(d,f.pseudoElement||""),y=v.get(S);y&&y.stop(),o.push({map:v,key:S,unresolvedKeyframes:h,options:{...f,element:u,name:d,allowFlatten:!m.type&&!m.ease}})}}for(let l=0;l<o.length;l++){let{unresolvedKeyframes:u,options:m}=o[l],{element:d,name:h,pseudoElement:f}=m;!f&&u[0]===null&&(u[0]=Hn(d,h)),In(u),bs(u,h),!f&&u.length<2&&u.unshift(Hn(d,h)),m.keyframes=u}let s=[];for(let l=0;l<o.length;l++){let{map:u,key:m,options:d}=o[l],h=new _n(d);u.set(m,h),h.finished.finally(()=>u.delete(m)),s.push(h)}return s}var ul=M(()=>{E();T()});var ml,Ed,fi=M(()=>{E();ul();ml=t=>{function e(r,i,n){return new Xr(ll(r,i,n,t))}return e},Ed=ml()});function Z(t){let e=z(null);return e.current===null&&(e.current=t()),e.current}var ut=M(()=>{"use client";R()});var cr=M(()=>{"use client";R()});var oa=M(()=>{"use client";ut();cr();fi()});var zt,ee=M(()=>{"use client";R();zt=ht(null)});function gi(t=!0){let e=j(zt);if(e===null)return[!0,null];let{isPresent:r,onExitComplete:i,register:n}=e,a=Vr();H(()=>{if(t)return n(a)},[t]);let o=Ot(()=>t&&i&&i(a),[a,i,t]);return!r&&i?[!1,o]:[!0]}var dr=M(()=>{"use client";R();ee()});var fe,ge=M(()=>{"use client";R();fe=ht({})});var hr,pr=M(()=>{"use client";R();hr=ht({strict:!1})});var At,Vt=M(()=>{"use client";R();At=ht({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})});var Ft,re=M(()=>{"use client";R();Ft=ht({})});var fr,gr=M(()=>{"use client";R();fr=ht({})});function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}var sa,ie=M(()=>{E();sa=t=>e=>lr(e)&&t(e,Wt(e))});function Gt(t,e,r,i){return Nt(t,e,sa(r),i)}var Oe=M(()=>{E();ie()});var Pd,Ad,Cd,ye,je=M(()=>{E();E();Pd=class extends ft{constructor(t){super(t),t.animationState||(t.animationState=Gs(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Fe(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ad=0,Cd=class extends ft{constructor(){super(...arguments),this.id=Ad++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}},ye={animation:{Feature:Pd},exit:{Feature:Cd}}});function ve(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}var la=M(()=>{});function ma(t,e){let r=ua(t.x,e.x),i=ua(t.y,e.y);return Math.sqrt(r**2+i**2)}var ua,yi=M(()=>{ua=(t,e)=>Math.abs(t-e)});function D(t,e,r){if(vi&&vi(t,e),dl)return dl(t,e,r)}function xt(t,e,r){if(vi&&vi(t,e),hl)return hl(t,e,r)}var ca,dl,hl,vi,dt=M(()=>{({Fragment:ca,jsx:dl,jsxs:hl}=globalThis.__GLOBALS__.ReactJSXRuntime),vi=globalThis.__GLOBALS__.modifyReactJSXProps});function xi(t){let[e,r]=gi(),i=j(fe);return D(Md,{...t,layoutGroup:i,switchLayoutGroup:j(fr),isPresent:e,safeToRemove:r})}var da,Md,ha=M(()=>{"use client";dt();E();R();dr();ge();gr();da=!1,Md=class extends _i{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),r&&r.register&&i&&r.register(n),da&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:i,isPresent:n}=this.props,{projection:a}=r;return a&&(a.isPresent=n,t.layoutDependency!==e&&a.setOptions({...a.options,layoutDependency:e}),da=!0,i||t.layoutDependency!==e||e===void 0||t.isPresent!==n?a.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?a.promote():a.relegate()||B.postRender(()=>{let o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ai.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:i}=t;da=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}});function pa(t,e){return e?{point:e(t.point)}:t}function fl(t,e){return{x:t.x-e.x,y:t.y-e.y}}function fa({point:t},e){return{point:t,delta:fl(t,Tl(e)),offset:fl(t,Rd(e)),velocity:Vd(e,.1)}}function Rd(t){return t[0]}function Tl(t){return t[t.length-1]}function Vd(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null,n=Tl(t);for(;r>=0&&(i=t[r],!(n.timestamp-i.timestamp>X(e)));)r--;if(!i)return{x:0,y:0};let a=st(n.timestamp-i.timestamp);if(a===0)return{x:0,y:0};let o={x:(n.x-i.x)/a,y:(n.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Dd(t,{min:e,max:r},i){return e!==void 0&&t<e?t=i?N(e,t,i.min):Math.max(t,e):r!==void 0&&t>r&&(t=i?N(r,t,i.max):Math.min(t,r)),t}function gl(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function kd(t,{top:e,left:r,bottom:i,right:n}){return{x:gl(t.x,r,n),y:gl(t.y,e,i)}}function yl(t,e){let r=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function Ld(t,e){return{x:yl(t.x,e.x),y:yl(t.y,e.y)}}function Fd(t,e){let r=.5,i=lt(t),n=lt(e);return n>i?r=Pt(e.min,e.max-i,t.min):i>n&&(r=Pt(t.min,t.max-n,e.min)),it(0,1,r)}function Bd(t,e){let r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}function Id(t=ga){return t===!1?t=0:t===!0&&(t=ga),{x:vl(t,"left","right"),y:vl(t,"top","bottom")}}function vl(t,e,r){return{min:xl(t,e),max:xl(t,r)}}function xl(t,e){return typeof t=="number"?t:t[e]||0}function wi(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function _d(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}var bl,pl,Sl,ga,Od,jd,Ud,wl,Nd,bi,Si=M(()=>{E();T();E();T();Oe();ie();la();E();T();Oe();ie();yi();E();T();E();T();Oe();ha();E();bl=({current:t})=>t?t.ownerDocument.defaultView:null,pl=new Set(["auto","scroll"]),Sl=class{constructor(t,e,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let h=fa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=ma(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!v)return;let{point:S}=h,{timestamp:y}=at;this.history.push({...S,timestamp:y}
1);let{onStart:g,onMove:b}=this.handlers;f||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pa(f,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();let{onEnd:v,onSessionEnd:S,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let g=fa(h.type==="pointercancel"?this.lastMoveEventInfo:pa(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,g),S&&S(h,g)},!lr(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;let s=Wt(t),l=pa(s,this.transformPagePoint),{point:u}=l,{timestamp:m}=at;this.history=[{...u,timestamp:m}];let{onSessionStart:d}=e;d&&d(t,fa(l,this.history)),this.removeListeners=kt(Gt(this.contextWindow,"pointermove",this.handlePointerMove),Gt(this.contextWindow,"pointerup",this.handlePointerUp),Gt(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let r=getComputedStyle(e);(pl.has(r.overflowX)||pl.has(r.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:i.x-e.x,y:i.y-e.y};n.x===0&&n.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,i),B.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vt(this.updatePoint)}};ga=.35;Od=new WeakMap,jd=class{constructor(t){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=t}start(t,{snapToCursor:e=!1,distanceThreshold:r}={}){let{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;let n=m=>{e?(this.stopAnimation(),this.snapToCursor(Wt(m).point)):this.pauseAnimation()},a=(m,d)=>{this.stopAnimation();let{drag:h,dragPropagation:f,onDragStart:v}=this.getProps();if(h&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ts(h),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(y=>{let g=this.getAxisMotionValue(y).get()||0;if(Rt.test(g)){let{projection:b}=this.visualElement;if(b&&b.layout){let c=b.layout.layoutBox[y];c&&(g=lt(c)*(parseFloat(g)/100))}}this.originPoint[y]=g}),v&&B.postRender(()=>v(m,d)),Zr(this.visualElement,"transform");let{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},o=(m,d)=>{this.latestPointerEvent=m,this.latestPanInfo=d;let{dragPropagation:h,dragDirectionLock:f,onDirectionLock:v,onDrag:S}=this.getProps();if(!h&&!this.openDragLock)return;let{offset:y}=d;if(f&&this.currentDirection===null){this.currentDirection=_d(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),S&&S(m,d)},s=(m,d)=>{this.latestPointerEvent=m,this.latestPanInfo=d,this.stop(m,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Et(m=>this.getAnimationState(m)==="paused"&&this.getAxisMotionValue(m).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Sl(t,{onSessionStart:n,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:bl(this.visualElement),element:this.visualElement.current})}stop(t,e){let r=t||this.latestPointerEvent,i=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!r)return;let{velocity:a}=i;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&B.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,r){let{drag:i}=this.getProps();if(!r||!wi(t,i,this.currentDirection))return;let n=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Dd(a,this.constraints[t],this.elastic[t])),n.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&ve(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kd(r.layoutBox,t):this.constraints=!1,this.elastic=Id(e),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=Bd(r.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ve(t))return!1;let r=t.current;Y(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let n=Os(r,i.root,this.visualElement.getTransformPagePoint()),a=Ld(i.layout.layoutBox,n);if(e){let o=e(Ls(a));this.hasMutatedConstraints=!!o,o&&(a=Zn(o))}return a}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},l=Et(u=>{if(!wi(u,e,this.currentDirection))return;let m=s&&s[u]||{};a&&(m={min:0,max:0});let d=i?200:1e6,h=i?40:1e7,f={type:"inertia",velocity:r?t[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...n,...m};return this.startAxisValueAnimation(u,f)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return Zr(this.visualElement,t),r.start(Kr(t,r,0,e,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Et(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps();return r[e]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Et(e=>{let{drag:r}=this.getProps();if(!wi(e,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(e);if(i&&i.layout){let{min:a,max:o}=i.layout.layoutBox[e],s=n.get()||0;n.set(t[e]-N(a,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!ve(e)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};Et(a=>{let o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){let s=o.get();i[a]=Fd({min:s,max:s},this.constraints[a])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Et(a=>{if(!wi(a,t,null))return;let o=this.getAxisMotionValue(a),{min:s,max:l}=this.constraints[a];o.set(N(s,l,i[a]))})}addListeners(){if(!this.visualElement.current)return;Od.set(this.visualElement,this);let t=this.visualElement.current,e=Gt(t,"pointerdown",s=>{let{drag:l,dragListener:u=!0}=this.getProps(),m=s.target,d=m!==t&&Gn(m);l&&u&&!d&&this.start(s)}),r=()=>{let{dragConstraints:s}=this.getProps();ve(s)&&s.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),B.read(r);let a=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:s,hasLayoutChanged:l})=>{this.isDragging&&l&&(Et(u=>{let m=this.getAxisMotionValue(u);m&&(this.originPoint[u]+=s[u].translate,m.set(m.get()+s[u].translate))}),this.visualElement.render())});return()=>{a(),e(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:a=ga,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:a,dragMomentum:o}}};Ud=class extends ft{constructor(t){super(t),this.removeGroupControls=$,this.removeListeners=$,this.controls=new jd(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},wl=t=>(e,r)=>{t&&B.postRender(()=>t(e,r))},Nd=class extends ft{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(t){this.session=new Sl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bl(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wl(t),onStart:wl(e),onMove:r,onEnd:(n,a)=>{delete this.session,i&&B.postRender(()=>i(n,a))}}}mount(){this.removePointerDownListener=Gt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},bi={pan:{Feature:Nd},drag:{Feature:Ud,ProjectionNode:di,MeasureLayout:xi}}});function El(t,e,r){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,a=i[n];a&&B.postRender(()=>a(e,Wt(e)))}function Pl(t,e,r){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),a=i[n];a&&B.postRender(()=>a(e,Wt(e)))}function $d({root:t,...e}){let r=t||document;ya.has(r)||ya.set(r,{});let i=ya.get(r),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver(Yd,{root:t,...e})),i[n]}function Xd(t,e,r){let i=$d(e);return va.set(t,r),i.observe(t),()=>{va.delete(t),i.unobserve(t)}}function Zd({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}var zd,Wd,Gd,va,ya,Hd,Yd,Kd,qd,Ti,Ei=M(()=>{E();ie();E();T();E();ie();E();zd=class extends ft{mount(){let{current:t}=this.node;t&&(this.unmount=Ps(t,(e,r)=>(El(this.node,r,"Start"),i=>El(this.node,i,"End"))))}unmount(){}},Wd=class extends ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=kt(Nt(this.node.current,"focus",()=>this.onFocus()),Nt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};Gd=class extends ft{mount(){let{current:t}=this.node;t&&(this.unmount=Cs(t,(e,r)=>(Pl(this.node,r,"Start"),(i,{success:n})=>Pl(this.node,i,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}},va=new WeakMap,ya=new WeakMap,Hd=t=>{let e=va.get(t.target);e&&e(t)}
1,Yd=t=>{t.forEach(Hd)};Kd={some:0,all:1},qd=class extends ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:r,amount:i="some",once:n}=t,a={root:e?e.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Kd[i]},o=s=>{let{isIntersecting:l}=s;if(this.isInView===l||(this.isInView=l,n&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);let{onViewportEnter:u,onViewportLeave:m}=this.node.getProps(),d=l?u:m;d&&d(s)};return Xd(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(Zd(t,e))&&this.startObserver()}unmount(){}};Ti={inView:{Feature:qd},tap:{Feature:Gd},focus:{Feature:Wd},hover:{Feature:zd}}});var Pi,Ai=M(()=>{E();ha();Pi={layout:{ProjectionNode:di,MeasureLayout:xi}}});function Jd(){if(Cl)return;let t={};for(let e in Al)t[e]={isEnabled:r=>Al[e].some(i=>!!r[i])};oi(t),Cl=!0}function Ci(){return Jd(),Ds()}var Al,Cl,xa=M(()=>{E();Al={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"]},Cl=!1});function wa(t){let e=Ci();for(let r in t)e[r]={...e[r],...t[r]};oi(e)}var Mi=M(()=>{E();xa()});var _e,Ri=M(()=>{_e=()=>({style:{},transform:{},transformOrigin:{},vars:{}})});function ba(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Sa=M(()=>{});var Ta=M(()=>{Sa();Sa()});var Qd,Ml,Ea=M(()=>{Ta();Qd=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focu
1sable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ml=ba(function(t){return Qd.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91})});var Pa={};Oi(Pa,{default:()=>Ml});var Rl=M(()=>{Ta();Ea();Ea()});function Ue(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||th.has(t)}var th,Vi=M(()=>{th=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"])});function Dl(t){typeof t=="function"&&(Vl=e=>e.startsWith("on")?!Ue(e):t(e))}function Aa(t,e,r){let i={};for(let n in t)n==="values"&&typeof t.values=="object"||(Vl(n)||r===!0&&Ue(n)||!e&&!Ue(n)||t.draggable&&n.startsWith("onDrag"))&&(i[n]=t[n]);return i}var Ne,eh,Vl,yr=M(()=>{Rl();Vi();Ne=t=>{let e=i=>typeof i.default<"u"?i.default:i,r=i=>Object.assign({__esModule:!0},i);switch(t){case"@emotion/is-prop-valid":return r(Pa);default:return console.error('module "'+t+'" not found'),null}},eh=(t=>typeof Ne<"u"?Ne:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof Ne<"u"?Ne:e)[r]}):t)(function(t){if(typeof Ne<"u")return Ne.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),Vl=t=>!Ue(t);try{Dl(eh("@emotion/is-prop-valid").default)}catch{}});function ze(t){return typeof t!="string"||t.includes("-")?!1:!!(rh.indexOf(t)>-1||/[A-Z]/u.test(t))}var rh,Di=M(()=>{rh=["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 ih({scrapeMotionValuesFromProps:t,createRenderState:e},r,i,n){return{latestValues:nh(r,i,n,t),renderState:e()}}function nh(t,e,r,i){let n={},a=i(t,{});for(let h in a)n[h]=Ve(a[h]);let{initial:o,animate:s}=t,l=Ie(t),u=qn(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),s===void 0&&(s=e.animate));let m=r?r.initial===!1:!1;m=m||o===!1;let d=m?s:o;if(d&&typeof d!="boolean"&&!Fe(d)){let h=Array.isArray(d)?d:[d];for(let f=0;f<h.length;f++){let v=qr(t,h[f]);if(v){let{transitionEnd:S,transition:y,...g}=v;for(let b in g){let c=g[b];if(Array.isArray(c)){let V=m?c.length-1:0;c=c[V]}c!==null&&(n[b]=c)}for(let b in S)n[b]=S[b]}}}return n}var xe,We=M(()=>{"use client";E();R();re();ee();ut();xe=t=>(e,r)=>{let i=j(Ft),n=j(zt),a=()=>ih(t,e,i,n);return r?a():Z(a)}});var vr,xr=M(()=>{vr=typeof window<"u"});var ki,wr=M(()=>{ki=Symbol.for("motionComponentSymbol")});var Ht,Yt=M(()=>{"use client";R();xr();Ht=vr?Ui:H});function ah(t,e){if(Ie(t)){let{initial:r,animate:i}=t;return{initial:r===!1||Be(r)?r:void 0,animate:Be(i)?i:void 0}}return t.inherit!==!1?e:{}}function oh(t){let{initial:e,animate:r}=ah(t,j(Ft));return Tt(()=>({initial:e,animate:r}),[kl(e),kl(r)])}function kl(t){return Array.isArray(t)?t.join(" "):t}function Ll(t,e,r){for(let i in e)!W(e[i])&&!Jn(i,r)&&(t[i]=e[i])}function sh({transformTemplate:t},e){return Tt(()=>{let r=_e();return li(r,e,t),Object.assign({},r.vars,r.style)}
1,[e])}function lh(t,e){let r=t.style||{},i={};return Ll(i,r,t),Object.assign(i,sh(t,e)),i}function uh(t,e){let r={},i=lh(t,e);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function mh(t,e,r,i){let n=Tt(()=>{let a=Fl();return Qn(a,e,ta(i),t.transformTemplate,t.style),{...a.attrs,style:{...a.style}}},[e]);if(t.style){let a={};Ll(a,t.style,t),n.style={...a,...n.style}}return n}function ch(t,e,r,{latestValues:i},n,a=!1,o){let s=(o??ze(t)?mh:uh)(e,i,n,t),l=Aa(e,typeof t=="string",a),u=t!==Rr?{...l,...s,ref:r}:{},{children:m}=e,d=Tt(()=>W(m)?m.get():m,[m]);return La(t,{...u,children:d})}function ph(t,e,r){let i=z(r);oe(()=>{i.current=r});let n=z(null);return Ot(a=>{a&&t.onMount?.(a),e&&(a?e.mount(a):e.unmount());let o=i.current;if(typeof o=="function")if(a){let s=o(a);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):o(a);else o&&(o.current=a)},[e])}function fh(t,e,r,i,n,a){let{visualElement:o}=j(Ft),s=j(hr),l=j(zt),u=j(At).reducedMotion,m=z(null),d=z(!1);i=i||s.renderer,!m.current&&i&&(m.current=i(t,{visualState:e,parent:o,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:a}),d.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let h=m.current,f=j(fr);h&&!h.projection&&n&&(h.type==="html"||h.type==="svg")&&gh(m.current,r,n,f);let v=z(!1);oe(()=>{h&&v.current&&h.update(r,l)});let S=r[Qr],y=z(!!S&&!window.MotionHandoffIsComplete?.(S)&&window.MotionHasOptimisedAnimation?.(S));return Ht(()=>{d.current=!0,h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),H(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(S)}),y.current=!1),h.enteringChildren=void 0)}),h}function gh(t,e,r,i){let{layoutId:n,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:m}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:Bl(t.parent)),t.projection.setOptions({layoutId:n,layout:a,alwaysMeasureLayout:!!o||s&&ve(s),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:l,layoutRoot:u})}function Bl(t){if(t)return t.options.allowProjection!==!1?t.projection:Bl(t.parent)}function Li(t,{forwardMotionProps:e=!1,type:r}={},i,n){i&&wa(i);let a=r?r==="svg":ze(t),o=a?hh:dh;function s(u,m){let d,h={...j(At),...u,layoutId:yh(u)},{isStatic:f}=h,v=oh(u),S=o(u,f);if(!f&&vr){vh(h,i);let y=xh(h);d=y.MeasureLayout,v.visualElement=fh(t,S,h,n,y.ProjectionNode,a)}return xt(Ft.Provider,{value:v,children:[d&&v.visualElement?D(d,{visualElement:v.visualElement,...h}):null,ch(t,u,ph(S,v.visualElement,m),S,f,e,a)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let l=Se(s);return l[ki]=t,l}function yh({layoutId:t}){let e=j(fe).id;return e&&t!==void 0?e+"-"+t:t}function vh(t,e){let r=j(hr).strict}function xh(t){let e=Ci(),{drag:r,layout:i}=e;if(!r&&!i)return{};let n={...r,...i};return{MeasureLayout:r?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}var Fl,dh,hh,Ca=M(()=>{"use client";dt();T();R();ge();pr();Vt();re();R();re();E();E();R();E();R();Ri();E();R();Ri();yr();Di();Di();E();We();Ri();E();We();xr();xa();Mi();wr();R();E();R();pr();Vt();re();ee();gr();la();Yt();Fl=()=>({..._e(),attrs:{}});dh=xe({scrapeMotionValuesFromProps:ui,createRenderState:_e}),hh=xe({scrapeMotionValuesFromProps:ea,createRenderState:Fl})});var Il,Ma=M(()=>{je();Si();Ei();Ai();Il={...ye,...Ti,...bi,...Pi}});var Ge,br=M(()=>{E();R();Di();Ge=(t,e)=>e.isSVG??ze(t)?new ci(e):new mi(e,{allowProjection:t!==Rr})});var Sr=M(()=>{E();T();T();T();E();T();E()});var Fi=M(()=>{T();E();E();Sr();E();Sr()});var Bi=M(()=>{E()});function Nl(t,e){if(typeof Proxy>"u")return Li;let r=new Map,i=(a,o)=>Li(a,o,t,e),n=(a,o)=>i(a,o);return new Proxy(n,{get:(a,o)=>o==="create"?i:(r.has(o)||r.set(o,Li(o,void 0,t,e)),r.get(o))})}function zl(t){let e=Z(()=>_t(t)),{isStatic:r}=j(At);if(r){let[,i]=pt(t);H(()=>
1e.on("change",i),[])}return e}function Wl(t,e){let r=zl(e()),i=()=>r.set(e());return i(),Ht(()=>{let n=()=>B.preRender(i,!1,!0),a=t.map(o=>o.on("change",n));return()=>{a.forEach(o=>o()),vt(i)}}),r}function Ch(t){ke.current=[],t();let e=Wl(ke.current,t);return ke.current=void 0,e}function Gl(t,e,r,i){if(typeof t=="function")return Ch(t);if(r!==void 0&&!Array.isArray(r)&&typeof e!="function")return Mh(t,e,r,i);let n=typeof e=="function"?e:Rs(e,r,i);return Array.isArray(t)?jl(t,n):jl([t],([a])=>n(a))}function jl(t,e){let r=Z(()=>[]);return Wl(t,()=>{r.length=0;let i=t.length;for(let n=0;n<i;n++)r[n]=t[n].get();return e(r)})}function Mh(t,e,r,i){let n=Z(()=>Object.keys(r)),a=Z(()=>({}));for(let o of n)a[o]=Gl(t,e,r[o],i);return a}function Vh(t,e,r,i){if(!i)return t;let n=t.findIndex(m=>m.value===e);if(n===-1)return t;let a=i>0?1:-1,o=t[n+a];if(!o)return t;let s=t[n],l=o.layout,u=N(l.min,l.max,.5);return a===1&&s.layout.max+r>u||a===-1&&s.layout.min+r<u?Ba(t,n,n+a):t}function Dh({children:t,as:e="ul",axis:r="y",onReorder:i,values:n,...a},o){let s=Z(()=>we[e]),l=[],u=z(!1),m=z(null);Y(!!n,"Reorder.Group must be provided a values prop","reorder-values");let d={axis:r,groupRef:m,registerItem:(v,S)=>{let y=l.findIndex(g=>v===g.value);y!==-1?l[y].layout=S[r]:l.push({value:v,layout:S[r]}),l.sort(Fh)},updateOrder:(v,S,y)=>{if(u.current)return;let g=Vh(l,v,S,y);l!==g&&(u.current=!0,i(g.map(Lh).filter(b=>n.indexOf(b)!==-1)))}};H(()=>{u.current=!1});let h=v=>{m.current=v,typeof o=="function"?o(v):o&&(o.current=v)},f={overflowAnchor:"none",...a.style};return D(s,{...a,style:f,ref:h,ignoreStrict:!0,children:D(Hl.Provider,{value:d,children:t})})}function Lh(t){return t.value}function Fh(t,e){return t.layout.min-e.layout.min}function Ih(){if(Tr){let t=Ra(Tr,"y");t&&(Pr.delete(t),Er.delete(t));let e=Ra(Tr,"x");e&&e!==t&&(Pr.delete(e),Er.delete(e)),Tr=null}}function Oh(t,e){let r=getComputedStyle(t),i=e==="x"?r.overflowX:r.overflowY;return Bh.has(i)}function Ra(t,e){let r=t?.parentElement;for(;r;){if(Oh(r,e))return r;r=r.parentElement}return null}function jh(t,e,r){let i=e.getBoundingClientRect(),n=r==="x"?i.left:i.top,a=r==="x"?i.right:i.bottom,o=t-n,s=a-t;if(o<50){let l=1-o/50;return{amount:-25*l*l,edge:"start"}}else if(s<50){let l=1-s/50;return{amount:25*l*l,edge:"end"}}return{amount:0,edge:null}}function _h(t,e,r,i){if(!t)return;Tr=t;let n=Ra(t,r);if(!n)return;let a=e-(r==="x"?window.scrollX:window.scrollY),{amount:o,edge:s}=jh(a,n,r);if(s===null){Pr.delete(n),Er.delete(n);return}if(Pr.get(n)!==s){if(!(s==="start"&&i<0||s==="end"&&i>0))return;Pr.set(n,s);let l=r==="x"?n.scrollWidth-n.clientWidth:n.scrollHeight-n.clientHeight;Er.set(n,l)}if(o>0){let l=Er.get(n);if((r==="x"?n.scrollLeft:n.scrollTop)>=l)return}r==="x"?n.scrollLeft+=o:n.scrollTop+=o}function Ul(t,e=0){return W(t)?t:zl(e)}function Uh({children:t,style:e={},value:r,as:i="li",onDrag:n,onDragEnd:a,layout:o=!0,...s},l){let u=Z(()=>we[i]),m=j(Hl),d={x:Ul(e.x),y:Ul(e.y)},h=Gl([d.x,d.y],([g,b])=>g||b?1:"unset");Y(!!m,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");let{axis:f,registerItem:v,updateOrder:S,groupRef:y}=m;return D(u,{drag:f,...s,dragSnapToOrigin:!0,style:{...e,x:d.x,y:d.y,zIndex:h},layout:o,onDrag:(g,b)=>{let{velocity:c,point:V}=b,x=d[f].get();S(r,x,c[f]),_h(y.current,V[f],f,c[f]),n&&n(g,b)},onDragEnd:(g,b)=>{Ih(),a&&a(g,b)},onLayoutMeasure:g=>{v(r,g)},ref:l,ignoreStrict:!0,children:t})}var Th,Eh,Dx,Ph,we,Ah,mw,hw,_l,Bb,Rh,Hl,kh,Bh,Er,Pr,Tr,Nh,Yl=M(()=>{dt();R();ge();ut();Yt();dt();R();R();ee();ut();dt();E();R();R();Vt();R();dr();R();dt();R();ge();R();E();R();R();Yt();E();dt();R();pr();Mi();dt();R();Vt();yr();ut();T();Ca();br();Ma();Oe();ie();je();We();E();E();yr();xr();Yt();cr();je();Ei();br();Si();Ai();je();br();R();T();E();T();R();Fi();ut();Yt();T();E();E();Yt();E();R();Vt();ut();E();R();Vt();E();ut();E();E();R();Vt();E();ut();E();E();T();R();R();Vt();T();T();E();T();R();ut();cr();pi();oa();ut();Yt();dr();R();ee();R();E();ut();wr();wr();Vi();E();R();E();T();R();R();Bi();E();T();R();R();E();T();E();ge();Vt();re();ee();gr();E();R();We();ut();dt();T();R();ut();T();R();re();dt();T();R();R();ut();E();T();dt();E();T();R();ut();pi();fi();Fi();Sr();Bi();yi();Th=Object.defineProperty,Eh=(t,e)=>{for(var r in e)Th(t,r,{get:e[r],enumerable:!0})},Dx=ht(null);
1Ph=Nl(),we=Nl(Il,Ge),Ah={renderer:Ge,...ye,...Ti},mw={...Ah,...bi,...Pi},hw={renderer:Ge,...ye};_l=()=>({}),Bb=xe({scrapeMotionValuesFromProps:_l,createRenderState:_l}),Rh={};Eh(Rh,{Group:()=>kh,Item:()=>Nh});Hl=ht(null);kh=Se(Dh);Bh=new Set(["auto","scroll"]),Er=new WeakMap,Pr=new WeakMap,Tr=null;Nh=Se(Uh)});var Ii=M(()=>{pi();fi();oa();dr();ge();pr();Vt();re();ee();gr();Oe();ie();je();Si();Ei();Ai();Mi();Ca();wr();We();Vi();Ma();br();Fi();Sr();yr();Bi();yi();xr();ut();Yt();cr();E();T();dt();R();Yl()});var $l=M(()=>{Ii();Ii()});var Xl=M(()=>{Ii();$l()});var Kl={};Oi(Kl,{default:()=>Va});function Va({buttonColor:t="#6366F1",accentColor:e="#6366F1",showSuccessAnimation:r=!0,emailjsServiceId:i="YOUR_SERVICE_ID",emailjsTemplateId:n="YOUR_TEMPLATE_ID",emailjsPublicKey:a="YOUR_PUBLIC_KEY"}){let[o,s]=pt({name:"",email:"",to_email:"[email protected]"}),[l,u]=pt({name:"",email:""}),[m,d]=pt("idle"),[h,f]=pt(!1),[v,S]=pt("");H(()=>{let x=document.createElement("script");return x.src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js",x.async=!0,x.onload=()=>{window.emailjs.init(a),f(!0)},document.body.appendChild(x),()=>{document.body.removeChild(x)}},[a]);let y=x=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x),g=()=>{let x={name:o.name.trim()===""?"Name is required":"",email:o.email.trim()===""?"Email is required":y(o.email)?"":"Please enter a valid email"};return u(x),!x.name&&!x.email},b=x=>{let{name:L,value:_}=x.target;s(k=>({...k,[L]:_})),l[L]&&u(k=>({...k,[L]:""}))},c=async()=>{if(!h||i==="YOUR_SERVICE_ID"||n==="YOUR_TEMPLATE_ID"||a==="YOUR_PUBLIC_KEY")return console.error("EmailJS not properly configured"),S("Email sending is not configured. Please set up EmailJS credentials."),d("error"),!1;try{let x=await window.emailjs.send(i,n,{from_name:o.name,from_email:o.email,to_email:o.to_email,message:`${o.name} (${o.email}) is interested.`,subject:"New Interest Submission"});return console.log("Email sent successfully:",x),!0}catch(x){return console.error("Failed to send email:",x),S("Failed to send email. Please try again later."),!1}};return D("div",{className:"w-full max-w-md mx-auto p-6 bg-gray-900 text-gray-100 rounded-lg shadow-md",children:m==="success"?xt(we.div,{className:"text-center py-10",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},children:[D("div",{className:"mb-4 flex justify-center",children:r&&D(we.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"rounded-full p-2",style:{backgroundColor:e},children:D("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:D("polyline",{points:"20 6 9 17 4 12"})})})}),D("h3",{className:"text-xl font-semibold mb-2",children:"Thank You!"}),D("p",{className:"text-gray-400",children:"Your message has been sent to [email protected]"}),D("button",{className:"mt-6 text-sm text-gray-400 underline",onClick:()=>d("idle"),children:"Send another message"})]}):m==="error"?xt(we.div,{className:"text-center py-10",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},children:[D("div",{className:"mb-4 flex justify-center",children:D("div",{className:"rounded-full p-2 bg-red-500",children:xt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[D("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),D("h3",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),D("p",{className:"text-gray-400",children:v||"Failed to send your message. Please try again."}),D("button",{className:"mt-6 text-sm text-gray-400 underline",onClick:()=>d("idle"),children:"Try again"})]}):xt(ca,{children:[D("h2",{className:"text-xl font-semibold mb-6 text-center text-gray-100",children:"Leave your contact info"}),(i==="YOUR_SERVICE_ID"||n==="YOUR_TEMPLATE_ID"||a==="YOUR_PUBLIC_KEY")&&xt("div",{className:"mb-4 p-3 bg-yellow-800 text-yellow-200 rounded-md text-sm",children:[D("strong",{children:"Setup required:"})," You need to configure EmailJS to send emails.",xt("ol",{className:"list-decimal ml-5 mt-2",children:[xt("li",{children:["Create an account at ",D("a",{href:"https://www.emailjs.com/",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"EmailJS.com"})]}),D("li",{children:"Create an Email Service (Gmail, Outlook, etc.)"}),D("li",{children:"Create an Email Template with variables: from_name, from_email, to_email, message, subject"}),D("li",{children:"Set the props: emailjsServiceId, emailjsTemplateId, and emailjsPublicKey"})]})]}),xt("form",{onSubmit:async x=>{if(x.preventDefault(),!g())return;d("submitting"),await c()?(d("success"),setTimeout(()=>{s({name:"",email:"",to_email:"[email protected]"}),d("idle")},5e3)):d("error")},children:[xt("div",{className:"mb-4",children:[D("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-300 mb-1",children:"Name"}),D("input",{type:"text",id:"name",name:"name",value:o.name,onChange:b,className:`w-full px-3 py-2 border rounded-md bg-gray-800 placeholder-gray-500 text-gray-100 focus:outline-none focus:ring-2 ${l.name?"border-red-500 focus:ring-red-200":`border-gray-700 focus:ring-${e.replace("#","")}
1/40 focus:border-${e}`}`,placeholder:"Your name"}),l.name&&D("p",{className:"mt-1 text-sm text-red-500",children:l.name})]}),xt("div",{className:"mb-6",children:[D("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Email Address"}),D("input",{type:"email",id:"email",name:"email",value:o.email,onChange:b,className:`w-full px-3 py-2 border rounded-md bg-gray-800 placeholder-gray-500 text-gray-100 focus:outline-none focus:ring-2 ${l.email?"border-red-500 focus:ring-red-200":`border-gray-700 focus:ring-${e.replace("#","")}/40 focus:border-${e}`}`,placeholder:"[email protected]"}),l.email&&D("p",{className:"mt-1 text-sm text-red-500",children:l.email})]}),D("button",{type:"submit",style:{backgroundColor:t},className:"w-full py-2 px-4 rounded-md text-white font-medium transition-all hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2 flex items-center justify-center text-center",disabled:m==="submitting",children:m==="submitting"?xt("div",{className:"flex items-center justify-center",children:[xt("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[D("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),D("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Sending..."]}):"I'm interested"})]})]})})}var ql=M(()=>{ji();R();Xl();dt();Mr(Va,{buttonColor:{label:"Button Color",type:"string",defaultValue:"#6366F1"},accentColor:{label:"Accent Color",type:"string",defaultValue:"#6366F1"},showSuccessAnimation:{label:"Show Success Animation",type:"boolean",defaultValue:!0},emailjsServiceId:{label:"EmailJS Service ID",type:"string",defaultValue:"YOUR_SERVICE_ID"},emailjsTemplateId:{label:"EmailJS Template ID",type:"string",defaultValue:"YOUR_TEMPLATE_ID"},emailjsPublicKey:{label:"EmailJS Public Key",type:"string",defaultValue:"YOUR_PUBLIC_KEY"}})});var Zl={};Oi(Zl,{default:()=>Da});function Da({petalColor1:t="#FFB7C5",petalColor2:e="#FFE6F0"}){let r=z(null),i=z(null),n=z(null);return H(()=>{let a=p=>{let w=p.replace("#",""),A=parseInt(w.length===3?w.split("").map(U=>U+U).join(""):w,16);return[(A>>16&255)/255,(A>>8&255)/255,(A&255)/255]},o=a(t),s=a(e),l=r.current;if(!l)return;let u=` 2 uniform mat4 uProjection; 3 uniform mat4 uModelview; 4 uniform vec3 uResolution; 5 uniform vec3 uOffset; 6 uniform vec3 uDOF; 7 uniform vec3 uFade; 8 9 attribute vec3 aPosition; 10 attribute vec3 aEuler; 11 attribute vec2 aMisc; 12 13 varying vec3 pposition; 14 varying float psize; 15 varying float palpha; 16 varying float pdist; 17 varying vec3 normX; 18 varying vec3 normY; 19 varying vec3 normZ; 20 varying vec3 normal; 21 varying float diffuse; 22 varying float specular; 23 varying float rstop; 24 varying float distancefade; 25 26 void main(void) { 27 vec4 pos = uModelview * vec4(aPosition + uOffset, 1.0); 28 gl_Position = uProjection * pos; 29 gl_PointSize = aMisc.x * uProjection[1][1] / -pos.z * uResolution.y * 0.5; 30 31 pposition = pos.xyz; 32 psize = aMisc.x; 33 pdist = length(pos.xyz); 34 palpha = smoothstep(0.0, 1.0, (pdist - 0.1) / uFade.z); 35 36 vec3 elrsn = sin(aEuler); 37 vec3 elrcs = cos(aEuler); 38 mat3 rotx = mat3(1.0, 0.0, 0.0, 0.0, elrcs.x, elrsn.x, 0.0, -elrsn.x, elrcs.x); 39 mat3 roty = mat3(elrcs.y, 0.0, -elrsn.y, 0.0, 1.0, 0.0, elrsn.y, 0.0, elrcs.y); 40 mat3 rotz = mat3(elrcs.z, elrsn.z, 0.0, -elrsn.z, elrcs.z, 0.0, 0.0, 0.0, 1.0); 41 mat3 rotmat = rotx * roty * rotz; 42 normal = rotmat[2]; 43 44 mat3 trrotm = mat3(rotmat[0][0], rotmat[1][0], rotmat[2][0], 45 rotmat[0][1], rotmat[1][1], rotmat[2][1], 46 rotmat[0][2], rotmat[1][2], rotmat[2][2]); 47 normX = trrotm[0]; 48 normY = trrotm[1]; 49 normZ = trrotm[2]; 50 51 const vec3 lit = vec3(0.6917144638660746, 0.6917144638660746, -0.20751433915982237);
52 float tmpdfs = dot(lit, normal); 53 if(tmpdfs < 0.0) { 54 normal = -normal; 55 tmpdfs = dot(lit, normal); 56 } 57 diffuse = 0.4 + tmpdfs; 58 59 vec3 eyev = normalize(-pos.xyz); 60 if(dot(eyev, normal) > 0.0) { 61 vec3 hv = normalize(eyev + lit); 62 specular = pow(max(dot(hv, normal), 0.0), 20.0); 63 } else { 64 specular = 0.0; 65 } 66 67 rstop = clamp((abs(pdist - uDOF.x) - uDOF.y) / uDOF.z, 0.0, 1.0); 68 rstop = pow(rstop, 0.5); 69 distancefade = min(1.0, exp((uFade.x - pdist) * 0.69315 / uFade.y)); 70 } 71 `,m=` 72 #ifdef GL_ES 73 precision highp float; 74 #endif 75 76 uniform vec3 uDOF; 77 uniform vec3 uFade; 78 uniform vec3 uColor1; 79 uniform vec3 uColor2; 80 81 const vec3 fadeCol = vec3(0.08, 0.03, 0.06); 82 83 varying vec3 pposition; 84 varying float psize; 85 varying float palpha; 86 varying float pdist; 87 varying vec3 normX; 88 varying vec3 normY; 89 varying vec3 normZ; 90 varying vec3 normal; 91 varying float diffuse; 92 varying float specular; 93 varying float rstop; 94 varying float distancefade; 95 96 float ellipse(vec2 p, vec2 o, vec2 r) { 97 vec2 lp = (p - o) / r; 98 return length(lp) - 1.0; 99 } 100 101 void main(void) { 102 vec3 p = vec3(gl_PointCoord - vec2(0.5, 0.5), 0.0) * 2.0; 103 vec3 d = vec3(0.0, 0.0, -1.0); 104 float nd = normZ.z; 105 if(abs(nd) < 0.0001) discard; 106 107 float np = dot(normZ, p); 108 vec3 tp = p + d * np / nd; 109 vec2 coord = vec2(dot(normX, tp), dot(normY, tp)); 110 111 const float flwrsn = 0.258819045102521; 112 const float flwrcs = 0.965925826289068; 113 mat2 flwrm = mat2(flwrcs, -flwrsn, flwrsn, flwrcs); 114 vec2 flwrp = vec2(abs(coord.x), coord.y) * flwrm; 115 116 float r; 117 if(flwrp.x < 0.0) { 118 r = ellipse(flwrp, vec2(0.065, 0.024) * 0.5, vec2(0.36, 0.96) * 0.5); 119 } else { 120 r = ellipse(flwrp, vec2(0.065, 0.024) * 0.5, vec2(0.58, 0.96) * 0.5); 121 } 122 123 if(r > rstop) discard; 124 125 vec3 col = mix(uColor1, uColor2, r); 126 float grady = mix(0.0, 1.0, pow(coord.y * 0.5 + 0.5, 0.35)); 127 col *= vec3(1.0, grady, grady); 128 col *= mix(0.8, 1.0, pow(abs(coord.x), 0.3)); 129 col = col * diffuse + specular; 130 col = mix(fadeCol, col, distancefade); 131 132 float alpha = (rstop > 0.001)? (0.5 - r / (rstop * 2.0)) : 1.0; 133 alpha = smoothstep(0.0, 1.0, alpha) * palpha; 134 135 gl_FragColor = vec4(col * 0.5, alpha); 136 } 137 `,d=` 138 uniform vec3 uResolution; 139 attribute vec2 aPosition; 140 varying vec2 texCoord; 141 varying vec2 screenCoord; 142 143 void main(void) { 144 gl_Position = vec4(aPosition, 0.0, 1.0); 145 texCoord = aPosition.xy * 0.5 + vec2(0.5, 0.5); 146 screenCoord = aPosition.xy * vec2(uResolution.z, 1.0); 147 } 148 `,h=` 149 #ifdef GL_ES 150 precision highp float; 151 #endif 152 uniform sampler2D uSrc; 153 uniform vec2 uDelta; 154 varying vec2 texCoord; 155 varying vec2 screenCoord; 156 157 void main(void) { 158 vec4 col = texture2D(uSrc, texCoord); 159 gl_FragColor = vec4(col.rgb * 2.0 - vec3(0.5), col.a); 160 } 161 `,f=` 162 #ifdef GL_ES 163 precision highp float; 164 #endif 165 uniform sampler2D uSrc; 166 uniform vec2 uDelta; 167 uniform vec4 uBlurDir; 168 varying vec2 texCoord; 169 varying vec2 screenCoord; 170 171 void main(void) { 172 vec4 col = texture2D(uSrc, texCoord); 173 col += texture2D(uSrc, texCoord + uBlurDir.xy * uDelta); 174 col += texture2D(uSrc, texCoord - uBlurDir.xy * uDelta); 175 col += texture2D(uSrc, texCoord + (uBlurDir.xy + uBlurDir.zw) * uDelta); 176 col += texture2D(uSrc, texCoord - (uBlurDir.xy + uBlurDir.zw) * uDelta); 177 gl_FragColor = col / 5.0; 178 } 179 `,v=` 180 uniform vec3 uResolution; 181 attribute vec2 aPosition; 182 varying vec2 texCoord; 183 varying vec2 screenCoord; 184 185 void main(void) { 186 gl_Position = vec4(aPosition, 0.0, 1.0); 187 texCoord = aPosition.xy * 0.5 + vec2(0.5, 0.5); 188 screenCoord = aPosition.xy * vec2(uResolution.z, 1.0); 189 } 190 `,S=` 191 #ifdef GL_ES 192 precision highp float; 193 #endif 194 uniform sampler2D uSrc; 195 uniform sampler2D uBloom; 196 uniform vec2 uDelta; 197 varying vec2 texCoord; 198 varying vec2 screenCoord; 199 200 void main(void) { 201 vec4 srccol = texture2D(uSrc, texCoord) * 2.0; 202 vec4 bloomcol = texture2D(uBloom, texCoord); 203 vec4 col = srccol + bloomcol * (vec4(1.0) + srccol); 204 col *= smoothstep(1.0, 0.0, pow(length((texCoord - vec2(0.5)) * 2.0), 1.2) * 0.5); 205 col = pow(col, vec4(0.45454545454545)); 206
207 // Preserve alpha from source 208 gl_FragColor = vec4(col.rgb, srccol.a); 209 } 210 `,y={create:(p,w,A)=>({x:p,y:w,z:A}),dot:(p,w)=>p.x*w.x+p.y*w.y+p.z*w.z,cross:(p,w,A)=>{p.x=w.y*A.z-w.z*A.y,p.y=w.z*A.x-w.x*A.z,p.z=w.x*A.y-w.y*A.x},normalize:p=>{let w=p.x*p.x+p.y*p.y+p.z*p.z;w>1e-5&&(w=1/Math.sqrt(w),p.x*=w,p.y*=w,p.z*=w)},arrayForm:p=>(p.array?(p.array[0]=p.x,p.array[1]=p.y,p.array[2]=p.z):p.array=new Float32Array([p.x,p.y,p.z]),p.array)},g={createIdentity:()=>new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),loadProjection:(p,w,A,U,G)=>{let ot=U*Math.tan(A*Math.PI/180*.5)*2,O=ot*w;p[0]=2*U/O,p[1]=0,p[2]=0,p[3]=0,p[4]=0,p[5]=2*U/ot,p[6]=0,p[7]=0,p[8]=0,p[9]=0,p[10]=-(G+U)/(G-U),p[11]=-1,p[12]=0,p[13]=0,p[14]=-2*G*U/(G-U),p[15]=0},loadLookAt:(p,w,A,U)=>{let G=y.create(w.x-A.x,w.y-A.y,w.z-A.z);y.normalize(G);let ot=y.create(1,0,0);y.cross(ot,U,G),y.normalize(ot);let O=y.create(1,0,0);y.cross(O,G,ot),y.normalize(O),p[0]=ot.x,p[1]=O.x,p[2]=G.x,p[3]=0,p[4]=ot.y,p[5]=O.y,p[6]=G.y,p[7]=0,p[8]=ot.z,p[9]=O.z,p[10]=G.z,p[11]=0,p[12]=-(w.x*p[0]+w.y*p[4]+w.z*p[8]),p[13]=-(w.x*p[1]+w.y*p[5]+w.z*p[9]),p[14]=-(w.x*p[2]+w.y*p[6]+w.z*p[10]),p[15]=1}},b=p=>{let w=p.parentElement;w&&(p.width=w.clientWidth,p.height=w.clientHeight)};b(l);let c;try{c=l.getContext("webgl",{alpha:!0,premultipliedAlpha:!1,antialias:!0})||l.getContext("experimental-webgl",{alpha:!0,premultipliedAlpha:!1,antialias:!0}),i.current=c}catch(p){console.error("WebGL not supported",p);return}let V={start:Date.now(),prev:Date.now(),delta:0,elapsed:0},x={width:0,height:0,aspect:1,array:new Float32Array(3),halfWidth:0,halfHeight:0,halfArray:new Float32Array(3),setSize:function(p,w){this.width=p,this.height=w,this.aspect=p/w,this.array[0]=p,this.array[1]=w,this.array[2]=this.aspect,this.halfWidth=Math.floor(p/2),this.halfHeight=Math.floor(w/2),this.halfArray[0]=this.halfWidth,this.halfArray[1]=this.halfHeight,this.halfArray[2]=this.halfWidth/this.halfHeight}},L=(p,w)=>{let A={width:p,height:w,sizeArray:new Float32Array([p,w,p/w]),dtxArray:new Float32Array([1/p,1/w])};return A.frameBuffer=c.createFramebuffer(),A.renderBuffer=c.createRenderbuffer(),A.texture=c.createTexture(),c.bindTexture(c.TEXTURE_2D,A.texture),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,p,w,0,c.RGBA,c.UNSIGNED_BYTE,null),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR),c.bindFramebuffer(c.FRAMEBUFFER,A.frameBuffer),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,A.texture,0),c.bindRenderbuffer(c.RENDERBUFFER,A.renderBuffer),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,p,w),c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,A.renderBuffer),c.bindTexture(c.TEXTURE_2D,null),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),A},_=(p,w)=>{let A=c.createShader(p);return c.shaderSource(A,w),c.compileShader(A),c.getShaderParameter(A,c.COMPILE_STATUS)?A:(console.error(c.getShaderInfoLog(A)),c.deleteShader(A),null)},k=(p,w,A,U)=>{let G=_(c.VERTEX_SHADER,p),ot=_(c.FRAGMENT_SHADER,w);if(!G||!ot)return null;let O=c.createProgram();return c.attachShader(O,G),c.attachShader(O,ot),c.deleteShader(G),c.deleteShader(ot),c.linkProgram(O),c.getProgramParameter(O,c.LINK_STATUS)?(A&&(O.uniforms={},A.forEach(F=>{O.uniforms[F]=c.getUniformLocation(O,F)})),U&&(O.attributes={},U.forEach(F=>{O.attributes[F]=c.getAttribLocation(O,F)})),O):(console.error(c.getProgramInfoLog(O)),null)},I=p=>{c.useProgram(p);for(let w in p.attributes)c.enableVertexAttribArray(p.attributes[w])},St=p=>{for(let w in p.attributes)c.disableVertexAttribArray(p.attributes[w]);c.useProgram(null)};class mt{constructor(){this.velocity=[0,0,0],this.rotation=[0,0,0],this.position=[0,0,0],this.euler=[0,0,0],this.size=1,this.alpha=1,this.zkey=0}update(w){this.position[0]+=this.velocity[0]*w,this.position[1]+=this.velocity[1]*w,this.position[2]+=this.velocity[2]*w,this.euler[0]+=this.rotation[0]*w,this.euler[1]+=this.rotation[1]*w,this.euler[2]+=this.rotation[2]*w}}let wt={angle:60,nearfar:new Float32Array([.1,100]),matrix:g.createIdentity()},rt={position:y.create(0,0,100),lookat:y.create(0,0,0),up:y.create(0,1,0),dof:y.create(10,4,8),matrix:g.createIdentity()},C={numFlowers:1600,particles:[],offset:new Float32Array([0,0,0]),fader:y.create(0,10,0),area:y.create(20,20,20)},He=()=>{C.program=k(u,m,["uProjection","uModelview","uResolution","uOff
210set","uDOF","uFade","uColor1","uColor2"],["aPosition","aEuler","aMisc"]),C.particles=Array.from({length:C.numFlowers},()=>new mt),C.dataArray=new Float32Array(C.numFlowers*8),C.buffer=c.createBuffer(),c.bindBuffer(c.ARRAY_BUFFER,C.buffer),c.bufferData(c.ARRAY_BUFFER,C.dataArray,c.DYNAMIC_DRAW),c.bindBuffer(c.ARRAY_BUFFER,null)},Q=()=>{C.area.x=C.area.y*x.aspect,C.fader.x=10,C.fader.y=C.area.z,C.fader.z=.1;let p=Math.PI*2,w=()=>Math.random()*2-1;C.particles.forEach(A=>{let U=y.create(w()*.3+.8,w()*.2-1,w()*.3+.5);y.normalize(U);let G=2+Math.random();A.velocity=[U.x*G,U.y*G,U.z*G],A.rotation=[w()*p*.5,w()*p*.5,w()*p*.5],A.position=[w()*C.area.x,w()*C.area.y,w()*C.area.z],A.euler=[Math.random()*p,Math.random()*p,Math.random()*p],A.size=.9+Math.random()*.1})},J=()=>{let p=Math.PI*2,w=(F,gt,Ye)=>{Math.abs(F.position[gt])-F.size*.5>Ye&&(F.position[gt]+=F.position[gt]>0?-Ye*2:Ye*2)},A=(F,gt)=>{F.euler[gt]=F.euler[gt]%p,F.euler[gt]<0&&(F.euler[gt]+=p)};C.particles.forEach(F=>{F.update(V.delta,V.elapsed),w(F,0,C.area.x),w(F,1,C.area.y),w(F,2,C.area.z),A(F,0),A(F,1),A(F,2),F.alpha=1,F.zkey=rt.matrix[2]*F.position[0]+rt.matrix[6]*F.position[1]+rt.matrix[10]*F.position[2]+rt.matrix[14]}),C.particles.sort((F,gt)=>F.zkey-gt.zkey);let U=0,G=C.numFlowers*3,ot=C.numFlowers*6;C.particles.forEach(F=>{C.dataArray[U++]=F.position[0],C.dataArray[U++]=F.position[1],C.dataArray[U++]=F.position[2],C.dataArray[G++]=F.euler[0],C.dataArray[G++]=F.euler[1],C.dataArray[G++]=F.euler[2],C.dataArray[ot++]=F.size,C.dataArray[ot++]=F.alpha}),c.enable(c.BLEND),c.blendFunc(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA);let O=C.program;I(O),c.uniformMatrix4fv(O.uniforms.uProjection,!1,wt.matrix),c.uniformMatrix4fv(O.uniforms.uModelview,!1,rt.matrix),c.uniform3fv(O.uniforms.uResolution,x.array),c.uniform3fv(O.uniforms.uDOF,y.arrayForm(rt.dof)),c.uniform3fv(O.uniforms.uFade,y.arrayForm(C.fader)),c.uniform3fv(O.uniforms.uColor1,o),c.uniform3fv(O.uniforms.uColor2,s),c.bindBuffer(c.ARRAY_BUFFER,C.buffer),c.bufferData(c.ARRAY_BUFFER,C.dataArray,c.DYNAMIC_DRAW),c.vertexAttribPointer(O.attributes.aPosition,3,c.FLOAT,!1,0,0),c.vertexAttribPointer(O.attributes.aEuler,3,c.FLOAT,!1,0,C.numFlowers*3*4),c.vertexAttribPointer(O.attributes.aMisc,2,c.FLOAT,!1,0,C.numFlowers*6*4);for(let F=1;F<2;F++){let gt=F*-2;
210[[-1,-1],[-1,1],[1,-1],[1,1]].forEach(([Ye,Ql])=>{C.offset[0]=C.area.x*Ye,C.offset[1]=C.area.y*Ql,C.offset[2]=C.area.z*gt,c.uniform3fv(O.uniforms.uOffset,C.offset),c.drawArrays(c.POINTS,0,C.numFlowers)})}C.offset.fill(0),c.uniform3fv(O.uniforms.uOffset,C.offset),c.drawArrays(c.POINTS,0,C.numFlowers),c.bindBuffer(c.ARRAY_BUFFER,null),St(O),c.disable(c.BLEND)},tt=(p,w,A,U)=>{let G=["uResolution","uSrc","uDelta",...A||[]],ot=["aPosition",...U||[]],O=k(p,w,G,ot),F=new Float32Array([-1,-1,1,-1,-1,1,1,1]),gt=c.createBuffer();return c.bindBuffer(c.ARRAY_BUFFER,gt),c.bufferData(c.ARRAY_BUFFER,F,c.STATIC_DRAW),c.bindBuffer(c.ARRAY_BUFFER,null),{program:O,buffer:gt,dataArray:F}},bt=(p,w)=>{let A=p.program;I(A),c.uniform3fv(A.uniforms.uResolution,x.array),w&&(c.uniform2fv(A.uniforms.uDelta,w.dtxArray),c.uniform1i(A.uniforms.uSrc,0),c.activeTexture(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,w.texture))},Bt=p=>{c.bindBuffer(c.ARRAY_BUFFER,p.buffer),c.vertexAttribPointer(p.program.attributes.aPosition,2,c.FLOAT,!1,0,0),c.drawArrays(c.TRIANGLE_STRIP,0,4)},ne=p=>St(p.program),et={},Ar=()=>{et.mkBrightBuf=tt(d,h),et.dirBlur=tt(d,f,["uBlurDir"]),et.finalComp=tt(v,S,["uBloom"])},Cr=()=>{c.enable(c.TEXTURE_2D),c.disable(c.DEPTH_TEST);let p=(w,A)=>{c.bindFramebuffer(c.FRAMEBUFFER,w.frameBuffer),c.viewport(0,0,w.width,w.height),A&&(c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT))};p(x.wHalfRT0,!0),bt(et.mkBrightBuf,x.mainRT),Bt(et.mkBrightBuf),ne(et.mkBrightBuf);for(let w=0;w<2;w++){let A=1.5+w,U=2+w;p(x.wHalfRT1,!0),bt(et.dirBlur,x.wHalfRT0),c.uniform4f(et.dirBlur.program.uniforms.uBlurDir,A,0,U,0),Bt(et.dirBlur),ne(et.dirBlur),p(x.wHalfRT0,!0),bt(et.dirBlur,x.wHalfRT1),c.uniform4f(et.dirBlur.program.uniforms.uBlurDir,0,A,0,U),Bt(et.dirBlur),ne(et.dirBlur)}c.bindFramebuffer(c.FRAMEBUFFER,null),c.viewport(0,0,x.width,x.height),c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT),bt(et.finalComp,x.mainRT),c.uniform1i(et.finalComp.program.uniforms.uBloom,1),c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,x.wHalfRT0.texture),Bt(et.finalComp),ne(et.finalComp),c.enable(c.DEPTH_TEST)},$t=()=>{x.setSize(c.canvas.width,c.canvas.height),c.clearColor(0,0,0,0),c.viewport(0,0,x.width,x.height),x.mainRT=L(x.width,x.height),x.wFullRT0=L(x.width,x.height),x.wFullRT1=L(x.width,x.height),x.wHalfRT0=L(x.halfWidth,x.halfHeight),x.wHalfRT1=L(x.halfWidth,x.halfHeight)},ae=()=>{Q(),rt.position.z=C.area.z+wt.nearfar[0],wt.angle=Math.atan2(C.area.y,rt.position.z+C.area.z)*180/Math.PI*2,g.loadProjection(wt.matrix,x.aspect,wt.angle,wt.nearfar[0],wt.nearfar[1])},be=()=>{g.loadLookAt(rt.matrix,rt.position,rt.lookat,rt.up),c.enable(c.DEPTH_TEST),c.bindFramebuffer(c.FRAMEBUFFER,x.mainRT.frameBuffer),c.viewport(0,0,x.mainRT.width,x.mainRT.height),c.clearColor(0,0,0,0),c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT),J(),Cr()},Xt=()=>{let p=Date.now();V.elapsed=(p-V.start)/1e3,V.delta=(p-V.prev)/1e3,V.prev=p,be(),n.current=requestAnimationFrame(Xt)};$t(),Ar(),He(),ae(),V.start=Date.now(),V.prev=V.start,Xt();let It=()=>{b(l),$t(),ae()};window.addEventListener("resize",It);let ka=new ResizeObserver(()=>{It()});return l.parentElement&&ka.observe(l.parentElement),()=>{window.removeEventListener("resize",It),n.current&&cancelAnimationFrame(n.current),ka.disconnect()}},[t,e]),D("div",{className:"w-full h-full relative",children:D("canvas",{ref:r,className:"absolute top-0 left-0 w-full h-full",style:{display:"block",pointerEvents:"none"}})})}var Jl=M(()=>{ji();R();dt();Mr(Da,{petalColor1:{label:"Petal Color 1",type:"string",defaultValue:"#FFB7C5"},petalColor2:{label:"Petal Color 2",type:"string",defaultValue:"#FFE6F0"}})});var sS=()=>Promise.resolve().then(()=>(ql(),Kl)),lS=()=>Promise.resolve().then(()=>(Jl(),Zl));export{lS as Code1851_871,sS as Code88_217};
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.