vendor: 30,078 bytes, line 1
1import{r as S,j as w,L as Vn,g as Eo,t as Ro}from"./index-DvL9g74R.js";import{S as ko,R as Lo,a as jo}from"./SiteFooter-pCWvPm4A.js";import{c as Ze}from"./createLucideIcon-DjKEOHJE.js";import{T as Bo}from"./trophy-C_95RQMZ.js";import"./x-CaxTIWUj.js";const Ve=Ze("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Fo=Ze("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const Io=Ze("Disc3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]]),Ks=S.createContext({});function Oo(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const No=typeof window<"u",Uo=No?S.useLayoutEffect:S.useEffect,Je=S.createContext(null);function Qe(t,e){t.indexOf(e)===-1&&t.push(e)}function Zt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let tn=()=>{};const it={},Hs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function zs(t){return typeof t=="object"&&t!==null}const Gs=t=>/^0[^.\s]+$/u.test(t);function $s(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Wo=(t,e)=>n=>e(t(n)),Bt=(...t)=>t.reduce(Wo),Rt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class en{constructor(){this.subscriptions=[]}add(e){return Qe(this.subscriptions,e),()=>Zt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,z=t=>t/1e3;function _s(t,e){return e?t*(1e3/e):0}const Xs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ko=1e-7,Ho=12;function zo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Xs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Ko&&++a<Ho);return o}function Ft(t,e,n,s){if(t===e&&n===s)return G;const i=r=>zo(r,0,1,t,n);return r=>r===0||r===1?r:Xs(i(r),e,s)}const Ys=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qs=t=>e=>1-t(1-e),Zs=Ft(.33,1.53,.69,.99),nn=qs(Zs),Js=Ys(nn),Qs=t=>t>=1?1:(t*=2)<1?.5*nn(t):.5*(2-Math.pow(2,-10*(t-1))),sn=t=>1-Math.sin(Math.acos(t)),ti=qs(sn),ei=Ys(sn),Go=Ft(.42,0,1,1),$o=Ft(0,0,.58,1),ni=Ft(.42,0,.58,1),_o=t=>Array.isArray(t)&&typeof t[0]!="number",si=t=>Array.isArray(t)&&typeof t[0]=="number",Xo={linear:G,easeIn:Go,easeInOut:ni,easeOut:$o,circIn:sn,circInOut:ei,circOut:ti,backIn:nn,backInOut:Js,backOut:Zs,anticipate:Qs},Yo=t=>typeof t=="string",Cn=t=>{if(si(t)){tn(t.length===4);const[e,n,s,i]=t;return Ft(e,n,s,i)}else if(Yo(t))return Xo[t];return t},Nt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qo(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){o.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&o.add(l),m.add(l),l},cancel:l=>{s.delete(l),o.delete(l)},process:l=>{if(a=l,i){r=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(c),n.clear(),i=!1,r&&(r=!1,u.process(l))}};return u}const Zo=40;function ii(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Nt.reduce((v,b)=>(v[b]=qo(r),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:d,postRender:m}=o,p=()=>{const v=it.useManualTiming,b=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(b-i.timestamp,Zo),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},g=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Nt.reduce((v,b)=>{const A=o[b];return v[b]=(k,O=!1,V=!1)=>(n||g(),A.schedule(k,O,V)),v},{}),cancel:v=>{for(let b=0;b<Nt.length;b++)o[Nt[b]].cancel(v)},state:i,steps:o}}const{schedule:C,cancel:ot,state:F,steps:ue}=ii(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let Ht;function Jo(){Ht=void 0}const N={now:()=>(Ht===void 0&&N.set(F.isProcessing||it.useManualTiming?F.timestamp:performance.now()),Ht),set:t=>{Ht=t,queueMicrotask(Jo)}},oi=t=>e=>typeof e=="string"&&e.startsWith(t),ri=oi("--"),Qo=oi("var(--"),on=t=>Qo(t)?tr.test(t.split("/*")[0].trim()):!1,tr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const bt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kt={...bt,transform:t=>tt(0,1,t)},Ut={...bt,default:1},Ct=t=>Math.round(t*1e5)/1e5,rn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function er(t){return t==null}const nr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,an=(t,e)=>n=>!!(typeof n=="string"&&nr.test(n)&&n.startsWith(t)||e&&!er(n)&&Object.prototype.hasOwnProperty.call(n,e)),ai=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(rn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},sr=t=>tt(0,255,t),he={...bt,transform:t=>Math.round(sr(t))},ht={test:an("rgb","red"),parse:ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+he.transform(t)+", "+he.transform(e)+", "+he.transform(n)+", "+Ct(kt.transform(s))+")"};function ir(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ce={test:an("#"),parse:ir,transform:ht.transform},It=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=It("deg"),Q=It("%"),x=It("px"),or=It("vh"),rr=It("vw"),Dn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},yt={test:an("hsl","hue"),parse:ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Ct(e))+", "+Q.transform(Ct(n))+", "+Ct(kt.transform(s))+")"},R={test:t=>ht.test(t)||Ce.test(t)||yt.test(t),parse:t=>ht.test(t)?ht.parse(t):yt.test(t)?yt.parse(t):Ce.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):yt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},ar=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lr(t){return isNaN(t)&&typeof t=="string"&&(t.match(rn)?.length||0)+(t.match(ar)?.length||0)>0}const li="number",ci="color",cr="var",ur="var(",En="${}",hr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(hr,c=>(R.test(c)?(s.color.push(r),i.push(ci),n.push(R.parse(c))):c.startsWith(ur)?(s.var.push(r),i.push(cr),n.push(c)):(s.number.push(r),i.push(li),n.push(parseFloat(c))),++r,En)).split(En);return{values:n,split:a,indexes:s,types:i}}function fr(t){return Tt(t).values}function ui({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===li?i+=Ct(s[r]):o===ci?i+=R.transform(s[r]):i+=s[r]}return i}}function dr(t){return ui(Tt(t))}const mr=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t,pr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:mr(t);function gr(t){const e=Tt(t);return ui(e)(e.values.map((s,i)=>pr(s,e.split[i])))}const X={test:lr,parse:fr,createTransformer:dr,getAnimatableNone:gr};function fe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function yr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=fe(c,a,t+1/3),r=fe(c,a,t),o=fe(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,de=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},vr=[Ce,ht,yt],xr=t=>vr.find(e=>e.test(t));function Rn(t){const e=xr(t);if(!e)return!1;let n=e.parse(t);return e===yt&&(n=yr(n)),n}const kn=(t,e)=>{const n=Rn(t),s=Rn(e);if(!n||!s)return Jt(t,e);const i={...n};return r=>(i.red=de(n.red,s.red,r),i.green=de(n.green,s.green,r),i.blue=de(n.blue,s.blue,r),i.alpha=M(n.alpha,s.alpha,r),ht.transform(i))},Me=new Set(["none","hidden"]);function Tr(t,e){return Me.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wr(t,e){return n=>M(t,e,n)}function ln(t){return typeof t=="number"?wr:typeof t=="string"?on(t)?Jt:R.test(t)?kn:Pr:Array.isArray(t)?hi:typeof t=="object"?R.test(t)?kn:br:Jt}function hi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>ln(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function br(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ln(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Sr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Pr=(t,e)=>{const n=X.createTransformer(e),s=Tt(t),i=Tt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Me.has(t)&&!i.values.length||Me.has(e)&&!s.values.length?Tr(t,e):Bt(hi(Sr(s,i),i.values),n):Jt(t,e)};function fi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):ln(t)(t,e)}const Ar=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>ot(e),now:()=>F.isProcessing?F.timestamp:N.now()}},di=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Qt=2e4;function cn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Qt;)e+=n,s=t.next(e);return e>=Qt?1/0:e}function Vr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(cn(s),Qt);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:z(i)}}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function De(t,e){return t*Math.sqrt(1-e*e)}const Cr=12;function Mr(t,e,n){let s=n;for(let i=1;i<Cr;i++)s=s-t(s)/e(s);return s}const me=.001;function Dr({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,r,o=1-e;o=tt(D.minDamping,D.maxDamping,o),t=tt(D.minDuration,D.maxDuration,z(t)),o<1?(i=u=>{const l=u*o,h=l*t,f=l-n,d=De(u,o),m=Math.exp(-h);return me-f/d*m},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=De(Math.pow(u,2),o);return(-i(u)+me>0?-1:1)*((f-d)*m)/p}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-me+l*h},r=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const a=5/t,c=Mr(i,r,a);if(t=K(t),isNaN(c))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Er=["duration","bounce"],Rr=["stiffness","damping","mass"];function Ln(t,e){return e.some(n=>t[n]!==void 0)}function kr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Ln(t,Rr)&&Ln(t,Er))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=Dr({...t,velocity:0});e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function te(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:d}=kr({...n,velocity:-z(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(c*l)),g=o-r,y=z(Math.sqrt(c/l)),T=Math.abs(g)<5;s||(s=T?D.restSpeed.granular:D.restSpeed.default),i||(i=T?D.restDelta.granular:D.restDelta.default);let v,b,A,k,O,V;if(p<1)A=De(y,p),k=(m+p*y*g)/A,v=P=>{const E=Math.exp(-p*y*P);return o-E*(k*Math.sin(A*P)+g*Math.cos(A*P))},O=p*y*k+g*A,V=p*y*g-k*A,b=P=>Math.exp(-p*y*P)*(O*Math.sin(A*P)+V*Math.cos(A*P));else if(p===1){v=E=>o-Math.exp(-y*E)*(g+(m+y*g)*E);const P=m+y*g;b=E=>Math.exp(-y*E)*(y*P*E-m)}else{const P=y*Math.sqrt(p*p-1);v=Y=>{const et=Math.exp(-p*y*Y),q=Math.min(P*Y,300);return o-et*((m+p*y*g)*Math.sinh(q)+P*g*Math.cosh(q))/P};const E=(m+p*y*g)/P,W=p*y*E-g*P,at=p*y*g-E*P;b=Y=>{const et=Math.exp(-p*y*Y),q=Math.min(P*Y,300);return et*(W*Math.sinh(q)+at*Math.cosh(q))}}const j={calculatedDuration:d&&h||null,velocity:P=>K(b(P)),next:P=>{if(!d&&p<1){const W=Math.exp(-p*y*P),at=Math.sin(A*P),Y=Math.cos(A*P),et=o-W*(k*at+g*Y),q=K(W*(O*at+V*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-et)<=i,a.value=a.done?o:et,a}const E=v(P);if(d)a.done=P>=h;else{const W=K(b(P));a.done=Math.abs(W)<=s&&Math.abs(o-E)<=i}return a.value=a.done?o:E,a},toString:()=>{const P=Math.min(cn(j),Qt),E=di(W=>j.next(P*W).value,P,30);return P+"ms "+E},toTransition:()=>{}};return j}te.applyToOptions=t=>{const e=Vr(t,100,te);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const Lr=5;function mi(t,e,n){const s=Math.max(e-Lr,0);return _s(n-t(s),e-s)}function Ee({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||c!==void 0&&V>c,m=V=>a===void 0?c:c===void 0||Math.abs(a-V)<Math.abs(c-V)?a:c;let p=n*e;const g=h+p,y=o===void 0?g:o(g);y!==g&&(p=y-h);const T=V=>-p*Math.exp(-V/s),v=V=>y+T(V),b=V=>{const j=T(V),P=v(V);f.done=Math.abs(j)<=u,f.value=f.done?y:P};let A,k;const O=V=>{d(f.value)&&(A=V,k=te({keyframes:[f.value,m(f.value)],velocity:mi(v,V,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return O(0),{calculatedDuration:null,next:V=>{let j=!1;return!k&&A===void 0&&(j=!0,b(V),O(V)),A!==void 0&&V>=A?k.next(V-A):(!j&&b(V),f)}}}function jr(t,e,n){const s=[],i=n||it.mix||fi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||G:e;a=Bt(c,a)}s.push(a)}return s}function Br(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(tn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=jr(e,s,i),c=a.length,u=l=>{if(o&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=Rt(t[h],t[h+1],l);return a[h](f)};return n?l=>u(tt(t[0],t[r-1],l)):u}function Fr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Rt(0,e,s);t.push(M(n,1,i))}}function Ir(t){const e=[0];return Fr(e,t.length-1),e}function Or(t,e){return t.map(n=>n*e)}function Nr(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function Mt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=_o(s)?s.map(Cn):Cn(s),r={done:!1,value:e[0]},o=Or(n&&n.length===e.length?n:Ir(e),t),a=Br(o,e,{ease:Array.isArray(i)?i:Nr(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Ur=t=>t!==null;function re(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Ur),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Wr={decay:Ee,inertia:Ee,tween:Mt,keyframes:Mt,spring:te};function pi(t){typeof t.type=="string"&&(t.type=Wr[t.type])}class un{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Kr=t=>t/100;class ee extends un{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;pi(e);const{type:n=Mt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Mt;c!==Mt&&typeof a[0]!="number"&&(this.mixKeyframes=Bt(Kr,fi(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=cn(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,b=s;if(h){const V=Math.min(this.currentTime,i)/a;let j=Math.floor(V),P=V%1;!P&&V>=1&&(P=1),P===1&&j--,j=Math.min(j,h+1),j%2&&(f==="reverse"?(P=1-P,d&&(P-=d/a)):f==="mirror"&&(b=o)),v=tt(0,1,P)*a}let A;T?(this.delayState.value=l[0],A=this.delayState):A=b.next(v),r&&!T&&(A.value=r(A.value));let{done:k}=A;!T&&c!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return O&&m!==Ee&&(A.value=re(l,this.options,g,this.speed)),p&&p(A.value),O&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return mi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ar,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(N.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Hr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Re=t=>{const e=ft(Math.atan2(t[1],t[0]));return ke(e)},zr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Re,rotateZ:Re,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ke=t=>(t=t%360,t<0&&(t+=360),t),jn=Re,Bn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Fn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Gr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bn,scaleY:Fn,scale:t=>(Bn(t)+Fn(t))/2,rotateX:t=>ke(ft(Math.atan2(t[6],t[5]))),rotateY:t=>ke(ft(Math.atan2(-t[2],t[0]))),rotateZ:jn,rotate:jn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Le(t){return t.includes("scale")?1:0}function je(t,e){if(!t||t==="none")return Le(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Gr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=zr,i=a}if(!i)return Le(e);const r=s[e],o=i[1].split(",").map(_r);return typeof r=="function"?r(o):o[r]}const $r=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return je(n,e)};function _r(t){return parseFloat(t.trim())}const St=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(St),In=t=>t===bt||t===x,Xr=new Set(["x","y","z"]),Yr=St.filter(t=>!Xr.has(t));function qr(t){const e=[];return Yr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const st={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>je(e,"x"),y:(t,{transform:e})=>je(e,"y")};st.translateX=st.x;st.translateY=st.y;const dt=new Set;let Be=!1,Fe=!1,Ie=!1;function gi(){if(Fe){const t=Array.from(dt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=qr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fe=!1,Be=!1,dt.forEach(t=>t.complete(Ie)),dt.clear()}function yi(){dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Fe=!0)})}function Zr(){Ie=!0,yi(),gi(),Ie=!1}class hn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(dt.add(this),Be||(Be=!0,C.read(yi),C.resolveKeyframes(gi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Hr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dt.delete(this)}cancel(){this.state==="scheduled"&&(dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jr=t=>t.startsWith("--");function vi(t,e,n){Jr(e)?t.style.setProperty(e,n):t.style[e]=n}const Qr={};function xi(t,e){const n=$s(t);return()=>Qr[e]??n()}const ta=xi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ti=xi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,On={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vt([0,.65,.55,1]),circOut:Vt([.55,0,1,.45]),backIn:Vt([.31,.01,.66,-.59]),backOut:Vt([.33,1.53,.69,.99])};function wi(t,e){if(t)return typeof t=="function"?Ti()?di(t,e):"ease-out":si(t)?Vt(t):Array.isArray(t)?t.map(n=>wi(n,e)||On.easeOut):On[t]}function ea(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=wi(a,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function bi(t){return typeof t=="function"&&"applyToOptions"in t}function na({type:t,...e}){return bi(t)&&Ti()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Si extends un{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,tn(typeof e.type!="string");const u=na(e);this.animation=ea(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=re(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),vi(n,s,l),this.animation.cancel()}c?.(),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;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ta()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),G):i(this)}}const Pi={anticipate:Qs,backInOut:Js,circInOut:ei};function sa(t){return t in Pi}function ia(t){typeof t.ease=="string"&&sa(t.ease)&&(t.ease=Pi[t.ease])}const pe=10;class oa extends Si{constructor(e){ia(e),pi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ee({...o,autoplay:!1}),c=Math.max(pe,N.now()-this.startTime),u=tt(0,pe,c-pe),l=a.sample(c).value,{name:h}=this.options;r&&h&&vi(r,h,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const Nn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ra(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function aa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Nn(i,e),a=Nn(r,e);return!o||!a?!1:ra(t)||(n==="spring"||bi(n))&&s}function Oe(t){t.duration=0,t.type="keyframes"}const Ai=new Set(["opacity","clipPath","filter","transform"]),la=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ca(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&la.test(t[e]))return!0;return!1}const ua=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ha=$s(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return ha()&&n&&(Ai.has(n)||ua.has(n)&&ca(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const da=40;class ma extends un{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:u,element:l,...h},d=l?.KeyframeResolver||hn;this.keyframeResolver=new d(a,(m,p,g)=>this.onKeyframesResolved(m,p,f,!g),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=N.now();let h=!0;aa(e,r,o,a)||(h=!1,(it.instantAnimations||!c)&&l?.(re(e,s,n)),e[0]=e[e.length-1],Oe(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>da?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=h&&!u&&fa(d),p=d.motionValue?.owner?.current;let g;if(m)try{g=new oa({...d,element:p})}catch{g=new ee(d)}else g=new ee(d);g.finished.then(()=>{this.notifyFinished()}).catch(G),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Zr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Vi(t,e,n,s=0,i=1){const r=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const pa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ga(t){const e=pa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ci(t,e,n=1){const[s,i]=ga(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Hs(o)?parseFloat(o):o}return on(i)?Ci(i,e,n+1):i}const ya={type:"spring",stiffness:500,damping:25,restSpeed:10},va=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xa={type:"keyframes",duration:.8},Ta={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wa=(t,{keyframes:e})=>e.length>2?xa:Pt.has(t)?t.startsWith("scale")?va(e[1]):ya:Ta;function Mi(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function fn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Mi(n,t):n}const ba=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Sa(t){for(const e in t)if(!ba.has(e))return!0;return!1}const dn=(t,e,n,s={},i,r)=>o=>{const a=fn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-K(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Sa(a)||Object.assign(l,wa(t,l)),l.duration&&(l.duration=K(l.duration)),l.repeatDelay&&(l.repeatDelay=K(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Oe(l),l.delay===0&&(h=!0)),(it.instantAnimations||it.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,Oe(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=re(l.keyframes,a);if(f!==void 0){C.update(()=>{l.onUpdate(f),l.onComplete()});return}}return a.isSync?new ee(l):new ma(l)};function Un(t){const e=[{},{}];
vendor: 86,649 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function mn(t,e,n,s){if(typeof e=="function"){const[i,r]=Un(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Un(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return mn(s,e,n!==void 0?n:s.custom,t)}const Di=new Set(["width","height","top","left","right","bottom",...St]),Wn=30,Pa=t=>!isNaN(parseFloat(t));class Aa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Pa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new en);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Wn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wn);return _s(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(t,e){return new Aa(t,e)}const Ne=t=>Array.isArray(t);function Va(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,wt(n))}function Ca(t){return Ne(t)?t[t.length-1]||0:t}function Ma(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ca(r[o]);Va(t,o,a)}}const I=t=>!!(t&&t.getVelocity);function Da(t){return!!(I(t)&&t.add)}function Ue(t,e){const n=t.getValue("willChange");if(Da(n))return n.add(e);if(!n&&it.WillChange){const s=new it.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function pn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ea="framerAppearId",Ei="data-"+pn(Ea);function Ri(t){return t.props[Ei]}function Ra({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ki(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const c=t.getDefaultTransition();r=r?Mi(r,c):c;const u=r?.reduceMotion;s&&(r=s);const l=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),m=a[f];if(m===void 0||h&&Ra(h,f))continue;const p={delay:n,...fn(r||{},f)},g=d.get();if(g!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===g&&!p.velocity){C.update(()=>d.set(m));continue}let y=!1;if(window.MotionHandoffAnimation){const b=Ri(t);if(b){const A=window.MotionHandoffAnimation(b,f,C);A!==null&&(p.startTime=A,y=!0)}}Ue(t,f);const T=u??t.shouldReduceMotion;d.start(dn(f,d,m,T&&Di.has(f)?{type:!1}:p,t,y));const v=d.animation;v&&l.push(v)}if(o){const f=()=>C.update(()=>{o&&Ma(t,o)});l.length?Promise.all(l).then(f):f()}return l}function We(t,e,n={}){const s=mt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(ki(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=i;return ka(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function ka(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(We(c,e,{...o,delay:n+(typeof s=="function"?0:s)+Vi(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function La(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>We(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=We(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(ki(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ja={test:t=>t==="auto",parse:t=>t},Li=t=>e=>e.test(t),ji=[bt,x,Q,nt,rr,or,ja],Kn=t=>ji.find(Li(t));function Ba(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Gs(t):!0}const Fa=new Set(["brightness","contrast","saturate","opacity"]);function Ia(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(rn)||[];if(!s)return t;const i=n.replace(s,"");let r=Fa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Oa=/\b([a-z-]*)\(.*?\)/gu,Ke={...X,getAnimatableNone:t=>{const e=t.match(Oa);return e?e.map(Ia).join(" "):t}},He={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Hn={...bt,transform:Math.round},Na={rotate:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:nt,skewX:nt,skewY:nt,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:kt,originX:Dn,originY:Dn,originZ:x},gn={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,...Na,zIndex:Hn,fillOpacity:kt,strokeOpacity:kt,numOctaves:Hn},Ua={...gn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Ke,WebkitFilter:Ke,mask:He,WebkitMask:He},Bi=t=>Ua[t],Wa=new Set([Ke,He]);function Fi(t,e){let n=Bi(t);return Wa.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ka=new Set(["auto","none","0"]);function Ha(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Ka.has(r)&&Tt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Fi(n,i)}class za extends hn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),on(h))){const f=Ci(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Di.has(s)||e.length!==2)return;const[i,r]=e,o=Kn(i),a=Kn(r),c=Mn(i),u=Mn(r);if(c!==u&&st[s]){this.needsMeasurement=!0;return}if(o!==a)if(In(o)&&In(a))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else st[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ba(e[i]))&&s.push(i);s.length&&Ha(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=st[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=st[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ii(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Oi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ga(t){return zs(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:yn}=ii(queueMicrotask,!1),_={x:!1,y:!1};function Ni(){return _.x||_.y}function $a(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Ui(t,e){const n=Ii(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function _a(t){return!(t.pointerType==="touch"||Ni())}function Xa(t,e,n={}){const[s,i,r]=Ui(t,n);return s.forEach(o=>{let a=!1,c=!1,u;const l=()=>{o.removeEventListener("pointerleave",m)},h=g=>{u&&(u(g),u=void 0),l()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(g))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},m=g=>{if(g.pointerType!=="touch"){if(a){c=!0;return}h(g)}},p=g=>{if(!_a(g))return;c=!1;const y=e(o,g);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",p,i),o.addEventListener("pointerdown",d,i)}),r}const Wi=(t,e)=>e?t===e?!0:Wi(t,e.parentElement):!1,vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ya=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qa(t){return Ya.has(t.tagName)||t.isContentEditable===!0}const Za=new Set(["INPUT","SELECT","TEXTAREA"]);function Ja(t){return Za.has(t.tagName)||t.isContentEditable===!0}const zt=new WeakSet;function zn(t){return e=>{e.key==="Enter"&&t(e)}}function ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Qa=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=zn(()=>{if(zt.has(n))return;ge(n,"down");const i=zn(()=>{ge(n,"up")}),r=()=>ge(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Gn(t){return vn(t)&&!Ni()}const $n=new WeakSet;function tl(t,e,n={}){const[s,i,r]=Ui(t,n),o=a=>{const c=a.currentTarget;if(!Gn(a)||$n.has(a))return;zt.add(c),n.stopPropagation&&$n.add(a);const u=e(c,a),l=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),zt.has(c)&&zt.delete(c),Gn(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{l(d,c===window||c===document||n.useGlobalTarget||Wi(c,d.target))},f=d=>{l(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ga(a)&&(a.addEventListener("focus",u=>Qa(u,i)),!qa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function xn(t){return zs(t)&&"ownerSVGElement"in t}const Gt=new WeakMap;let $t;const Ki=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:xn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],el=Ki("inline","width","offsetWidth"),nl=Ki("block","height","offsetHeight");function sl({target:t,borderBoxSize:e}){Gt.get(t)?.forEach(n=>{n(t,{get width(){return el(t,e)},get height(){return nl(t,e)}})})}function il(t){t.forEach(sl)}function ol(){typeof ResizeObserver>"u"||($t=new ResizeObserver(il))}function rl(t,e){$t||ol();const n=Ii(t);return n.forEach(s=>{let i=Gt.get(s);i||(i=new Set,Gt.set(s,i)),i.add(e),$t?.observe(s)}),()=>{n.forEach(s=>{const i=Gt.get(s);i?.delete(e),i?.size||$t?.unobserve(s)})}}const _t=new Set;let vt;function al(){vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};_t.forEach(e=>e(t))},window.addEventListener("resize",vt)}function ll(t){return _t.add(t),vt||al(),()=>{_t.delete(t),!_t.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function _n(t,e){return typeof t=="function"?ll(t):rl(t,e)}function cl(t){return xn(t)&&t.tagName==="svg"}const ul=[...ji,R,X],hl=t=>ul.find(Li(t)),Xn=()=>({translate:0,scale:1,origin:0,originPoint:0}),xt=()=>({x:Xn(),y:Xn()}),Yn=()=>({min:0,max:0}),L=()=>({x:Yn(),y:Yn()}),fl=new WeakMap;function ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Lt(t){return typeof t=="string"||Array.isArray(t)}const Tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wn=["initial",...Tn];function le(t){return ae(t.animate)||wn.some(e=>Lt(t[e]))}function Hi(t){return!!(le(t)||t.variants)}function dl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(I(i))t.addValue(s,i);else if(I(r))t.addValue(s,wt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,wt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ze={current:null},zi={current:!1},ml=typeof window<"u";function pl(){if(zi.current=!0,!!ml)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ze.current=t.matches;t.addEventListener("change",e),e()}else ze.current=!1}const qn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ne={};function Gi(t){ne=t}function gl(){return ne}class yl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=N.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,C.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=le(n),this.isVariantNode=Hi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];u[d]!==void 0&&I(m)&&m.set(u[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,fl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zi.current||pl(),this.shouldReduceMotion=ze.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ot(this.notifyUpdate),ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ai.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,h=new Si({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:K(l)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Pt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ne){const n=ne[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<qn.length;s++){const i=qn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=dl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=wt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Hs(s)||Gs(s))?s=parseFloat(s):!hl(s)&&X.test(n)&&(s=Fi(e,n)),this.setBaseTarget(e,I(s)?s.get():s)),I(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=mn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!I(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new en),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){yn.render(this.render)}}class $i extends yl{constructor(){super(...arguments),this.KeyframeResolver=za}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class rt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function _i({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function vl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ye(t){return t===void 0||t===1}function Ge({scale:t,scaleX:e,scaleY:n}){return!ye(t)||!ye(e)||!ye(n)}function ut(t){return Ge(t)||Xi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Xi(t){return Zn(t.x)||Zn(t.y)}function Zn(t){return t&&t!=="0%"}function se(t,e,n){const s=t-n,i=e*s;return n+i}function Jn(t,e,n,s,i){return i!==void 0&&(t=se(t,i,s)),se(t,n,s)+e}function $e(t,e=0,n=1,s,i){t.min=Jn(t.min,e,n,s,i),t.max=Jn(t.max,e,n,s,i)}function Yi(t,{x:e,y:n}){$e(t.x,e.translate,e.scale,e.originPoint),$e(t.y,n.translate,n.scale,n.originPoint)}const Qn=.999999999999,ts=1.0000000000001;function Tl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Yi(t,o)),s&&ut(r.latestValues)&&Xt(t,r.latestValues,r.layout?.layoutBox))}e.x<ts&&e.x>Qn&&(e.x=1),e.y<ts&&e.y>Qn&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function es(t,e,n,s,i=.5){const r=M(t.min,t.max,i);$e(t,e,n,r,s)}function ns(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Xt(t,e,n){const s=n??t;es(t.x,ns(e.x,s.x),e.scaleX,e.scale,e.originX),es(t.y,ns(e.y,s.y),e.scaleY,e.scale,e.originY)}function qi(t,e){return _i(xl(t.getBoundingClientRect(),e))}function wl(t,e,n){const s=qi(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const bl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sl=St.length;function Pl(t,e,n){let s="",i=!0;for(let r=0;r<Sl;r++){const o=St[r],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);c=o.startsWith("scale")?u===1:u===0}if(!c||n){const u=Oi(a,gn[o]);if(!c){i=!1;const l=bl[o]||o;s+=`${l}(${u}) `}n&&(e[o]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function bn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const u=e[c];if(Pt.has(c)){o=!0;continue}else if(ri(c)){i[c]=u;continue}else{const l=Oi(u,gn[c]);c.startsWith("origin")?(a=!0,r[c]=l):s[c]=l}}if(e.transform||(o||n?s.transform=Pl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=r;s.transformOrigin=`${c} ${u} ${l}`}}function Zi(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ss(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const At={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=ss(t,e.target.x),s=ss(t,e.target.y);return`${n}% ${s}%`}},Al={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const r=X.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const u=M(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},_e={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:Al};function Ji(t,{layout:e,layoutId:n}){return Pt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!_e[t]||t==="opacity")}function Sn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(I(s[o])||i&&I(i[o])||Ji(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Vl(t){return window.getComputedStyle(t)}class Cl extends $i{constructor(){super(...arguments),this.type="html",this.renderInstance=Zi}readValueFromInstance(e,n){if(Pt.has(n))return this.projection?.isProjecting?Le(n):$r(e,n);{const s=Vl(e),i=(ri(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return qi(e,n)}build(e,n,s){bn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Sn(e,n,s)}}const Ml={offset:"stroke-dashoffset",array:"stroke-dasharray"},Dl={offset:"strokeDashoffset",array:"strokeDasharray"};function El(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ml:Dl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Rl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Qi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,u,l){if(bn(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=l?.transformBox??"fill-box",delete h.transformBox);for(const d of Rl)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&El(h,i,r,o,!1)}const to=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"]),eo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kl(t,e,n,s){Zi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(to.has(i)?i:pn(i),e.attrs[i])}function no(t,e,n){const s=Sn(t,e,n);for(const i in t)if(I(t[i])||I(e[i])){const r=St.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Ll extends $i{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Pt.has(n)){const s=Bi(n);return s&&s.default||0}return n=to.has(n)?n:pn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return no(e,n,s)}build(e,n,s){Qi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){kl(e,n,s,i)}mount(e){this.isSVGTag=eo(e.tagName),super.mount(e)}}const jl=wn.length;function so(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?so(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<jl;n++){const s=wn[n],i=t.props[s];(Lt(i)||i===!1)&&(e[s]=i)}return e}function io(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Bl=[...Tn].reverse(),Fl=Tn.length;function Il(t){return e=>Promise.all(e.map(({animation:n,options:s})=>La(t,n,s)))}function Ol(t){let e=Il(t),n=is(),s=!0,i=!1;const r=u=>(l,h)=>{const f=mt(t,h,u==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;l={...l,...p,...m}}return l};function o(u){e=u(t)}function a(u){const{props:l}=t,h=so(t.parent)||{},f=[],d=new Set;let m={},p=1/0;for(let y=0;y<Fl;y++){const T=Bl[y],v=n[T],b=l[T]!==void 0?l[T]:h[T],A=Lt(b),k=T===u?v.isActive:null;k===!1&&(p=y);let O=b===h[T]&&b!==l[T]&&A;if(O&&(s||i)&&t.manuallyAnimateOnMount&&(O=!1),v.protectedKeys={...m},!v.isActive&&k===null||!b&&!v.prevProp||ae(b)||typeof b=="boolean")continue;if(T==="exit"&&v.isActive&&k!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const V=Nl(v.prevProp,b);let j=V||T===u&&v.isActive&&!O&&A||y>p&&A,P=!1;const E=Array.isArray(b)?b:[b];let W=E.reduce(r(T),{});k===!1&&(W={});const{prevResolvedValues:at={}}=v,Y={...at,...W},et=B=>{j=!0,d.has(B)&&(P=!0,d.delete(B)),v.needsAnimating[B]=!0;const H=t.getValue(B);H&&(H.liveStyle=!1)};for(const B in Y){const H=W[B],lt=at[B];if(m.hasOwnProperty(B))continue;let pt=!1;Ne(H)&&Ne(lt)?pt=!io(H,lt):pt=H!==lt,pt?H!=null?et(B):d.add(B):H!==void 0&&d.has(B)?et(B):v.protectedKeys[B]=!0}v.prevProp=b,v.prevResolvedValues=W,v.isActive&&(m={...m,...W}),(s||i)&&t.blockInitialAnimation&&(j=!1);const q=O&&V;j&&(!q||P)&&f.push(...E.map(B=>{const H={type:T};if(typeof B=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,pt=mt(lt,B);if(lt.enteringChildren&&pt){const{delayChildren:Do}=pt.transition||{};H.delay=Vi(lt.enteringChildren,t,Do)}}return{animation:B,options:H}}))}if(d.size){const y={};if(typeof l.initial!="boolean"){const T=mt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(y.transition=T.transition)}d.forEach(T=>{const v=t.getBaseTarget(T),b=t.getValue(T);b&&(b.liveStyle=!0),y[T]=v??null}),f.push({animation:y})}let g=!!f.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=is(),i=!0}}}function Nl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!io(e,t):!1}function ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function is(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}function Xe(t,e){t.min=e.min,t.max=e.max}function $(t,e){Xe(t.x,e.x),Xe(t.y,e.y)}function os(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const oo=1e-4,Ul=1-oo,Wl=1+oo,ro=.01,Kl=0-ro,Hl=0+ro;function U(t){return t.max-t.min}function zl(t,e,n){return Math.abs(t-e)<=n}function rs(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ul&&t.scale<=Wl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Kl&&t.translate<=Hl||isNaN(t.translate))&&(t.translate=0)}function Dt(t,e,n,s){rs(t.x,e.x,n.x,s?s.originX:void 0),rs(t.y,e.y,n.y,s?s.originY:void 0)}function as(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+U(e)}function Gl(t,e,n,s){as(t.x,e.x,n.x,s?.x),as(t.y,e.y,n.y,s?.y)}function ls(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+U(e)}function ie(t,e,n,s){ls(t.x,e.x,n.x,s?.x),ls(t.y,e.y,n.y,s?.y)}function cs(t,e,n,s,i){return t-=e,t=se(t,1/n,s),i!==void 0&&(t=se(t,1/i,s)),t}function $l(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=M(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=M(r.min,r.max,s);t===r&&(a-=e),t.min=cs(t.min,e,n,a,i),t.max=cs(t.max,e,n,a,i)}function us(t,e,[n,s,i],r,o){$l(t,e[n],e[s],e[i],e.scale,r,o)}const _l=["x","scaleX","originX"],Xl=["y","scaleY","originY"];function hs(t,e,n,s){us(t.x,e,_l,n?n.x:void 0,s?s.x:void 0),us(t.y,e,Xl,n?n.y:void 0,s?s.y:void 0)}function fs(t){return t.translate===0&&t.scale===1}function ao(t){return fs(t.x)&&fs(t.y)}function ds(t,e){return t.min===e.min&&t.max===e.max}function Yl(t,e){return ds(t.x,e.x)&&ds(t.y,e.y)}function ms(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function lo(t,e){return ms(t.x,e.x)&&ms(t.y,e.y)}function ps(t){return U(t.x)/U(t.y)}function gs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function ql(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const co=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Zl=co.length,ys=t=>typeof t=="string"?parseFloat(t):t,vs=t=>typeof t=="number"||x.test(t);function Jl(t,e,n,s,i,r){i?(t.opacity=M(0,n.opacity??1,Ql(s)),t.opacityExit=M(e.opacity??1,0,tc(s))):r&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let o=0;o<Zl;o++){const a=co[o];let c=xs(e,a),u=xs(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||vs(c)===vs(u)?(t[a]=Math.max(M(ys(c),ys(u),s),0),(Q.test(u)||Q.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function xs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ql=uo(0,.5,ti),tc=uo(.5,.95,G);function uo(t,e,n){return s=>s<t?0:s>e?1:n(Rt(t,e,s))}function ec(t,e,n){const s=I(t)?t:wt(t);return s.start(dn("",s,e,n)),s.animation}function jt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const nc=(t,e)=>t.depth-e.depth;class sc{constructor(){this.children=[],this.isDirty=!1}add(e){Qe(this.children,e),this.isDirty=!0}remove(e){Zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nc),this.isDirty=!1,this.children.forEach(e)}}function ic(t,e){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(ot(s),t(r-e))};return C.setup(s,!0),()=>ot(s)}function Yt(t){return I(t)?t.get():t}class oc{constructor(){this.members=[]}add(e){Qe(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(Zt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ve=["","X","Y","Z"],rc=1e3;let ac=0;function xe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ho(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ri(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&ho(s)}function fo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=ac++,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,this.nodes.forEach(uc),this.nodes.forEach(gc),this.nodes.forEach(yc),this.nodes.forEach(hc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new sc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new en),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=xn(o)&&!cl(o),this.instance=o;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,h=0;const f=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,l&&l(),l=ic(f,250),qt.hasAnimatedSinceResize&&(qt.hasAnimatedSinceResize=!1,this.nodes.forEach(bs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||bc,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=u.getProps(),y=!this.targetLayout||!lo(this.targetLayout,d),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...fn(m,"layout"),onPlay:p,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,T)}else h||bs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ot(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(vc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ho(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const h=this.path[l];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(dc),this.nodes.forEach(Ts);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ws);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mc),this.nodes.forEach(pc),this.nodes.forEach(lc),this.nodes.forEach(cc)):this.nodes.forEach(ws),this.clearAllSnapshots();const a=N.now();F.delta=tt(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,ue.update.process(F),ue.preRender.process(F),ue.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fc),this.sharedNodes.forEach(xc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!U(this.snapshot.measuredBox.x)&&!U(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=L()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ao(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||ut(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Sc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return L();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pc))){const{scroll:u}=this.root;u&&(J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}removeElementScroll(o){const a=L();if($(a,o),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:h}=u;u!==this.root&&l&&h.layoutScroll&&(l.wasRoot&&$(a,o),J(a.x,l.offset.x),J(a.y,l.offset.y))}return a}applyTransform(o,a=!1,c){const u=c||L();$(u,o);for(let l=0;l<this.path.length;l++){const h=this.path[l];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(u.x,-h.scroll.offset.x),J(u.y,-h.scroll.offset.y)),ut(h.latestValues)&&Xt(u,h.latestValues,h.layout?.layoutBox)}return ut(this.latestValues)&&Xt(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(o){const a=L();$(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ut(u.latestValues))continue;let l;u.instance&&(Ge(u.latestValues)&&u.updateSnapshot(),l=L(),$(l,u.measurePageBox())),hs(a,u.latestValues,u.snapshot?.layoutBox,l)}return ut(this.latestValues)&&hs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:h}=this.options;if(!this.layout||!(l||h))return;this.resolvedRelativeTargetAt=F.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):$(this.target,this.layout.layoutBox),Yi(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ge(this.parent.latestValues)||Xi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),ie(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Tl(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=L());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(os(this.prevProjectionDelta.x,this.projectionDelta.x),os(this.prevProjectionDelta.y,this.projectionDelta.y)),Dt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!gs(this.projectionDelta.x,this.prevProjectionDelta.x)||!gs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xt(),this.projectionDelta=xt(),this.projectionDeltaWithTransform=xt()}setAnimationOrigin(o,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},h=xt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=L(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,g=this.getStack(),y=!g||g.members.length<=1,T=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(wc));this.animationProgress=0;let v;this.mixTargetDelta=b=>{const A=b/1e3;Ss(h.x,o.x,A),Ss(h.y,o.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ie(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Tc(this.relativeTarget,this.relativeTargetOrigin,f,A),v&&Yl(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=L()),$(v,this.relativeTarget)),p&&(this.animationValues=l,Jl(l,u,this.latestValues,A,T,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ec(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=o;if(!(!a||!c||!u)){if(this!==o&&this.layout&&u&&mo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||L();const h=U(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const f=U(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}$(a,c),Xt(a,l),Dt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oc),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&xe("z",o,u,this.animationValues);for(let l=0;l<ve.length;l++)xe(`rotate${ve[l]}`,o,u,this.animationValues),xe(`skew${ve[l]}`,o,u,this.animationValues);o.render();for(const l in u)o.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Yt(a?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Yt(a?.pointerEvents)||""),this.hasProjected&&!ut(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=ql(this.projectionDeltaWithTransform,this.treeScale,l);c&&(h=c(l,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:o.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in _e){if(l[m]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=_e[m],T=h==="none"?l[m]:p(l[m],u);if(g){const v=g.length;for(let b=0;b<v;b++)o[g[b]]=T}else y?this.options.visualElement.renderState.vars[m]=T:o[m]=T}this.options.layoutId&&(o.pointerEvents=u===this?Yt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Ts),this.root.sharedNodes.clear()}}}function lc(t){t.updateLayout()}function cc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Z(l=>{const h=r?e.measuredBox[l]:e.layoutBox[l],f=U(h);h.min=n[l].min,h.max=h.min+f});else if(i==="x"||i==="y"){const l=i==="x"?"y":"x";Xe(r?e.measuredBox[l]:e.layoutBox[l],n[l])}else mo(i,e.layoutBox,n)&&Z(l=>{const h=r?e.measuredBox[l]:e.layoutBox[l],f=U(n[l]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+f)});const o=xt();Dt(o,n,e.layoutBox);const a=xt();r?Dt(a,t.applyTransform(s,!0),e.measuredBox):Dt(a,n,e.layoutBox);const c=!ao(o);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:h,layout:f}=l;if(h&&f){const d=t.options.layoutAnchor||void 0,m=L();ie(m,e.layoutBox,h.layoutBox,d);const p=L();ie(p,n,f.layoutBox,d),lo(m,p)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function uc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function hc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function fc(t){t.clearSnapshot()}function Ts(t){t.clearMeasurements()}function dc(t){t.isLayoutDirty=!0,t.updateLayout()}function ws(t){t.isLayoutDirty=!1}function mc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function pc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function bs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function gc(t){t.resolveTargetDelta()}function yc(t){t.calcProjection()}function vc(t){t.resetSkewAndRotation()}function xc(t){t.removeLeadSnapshot()}function Ss(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ps(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function Tc(t,e,n,s){Ps(t.x,e.x,n.x,s),Ps(t.y,e.y,n.y,s)}function wc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bc={duration:.45,ease:[.4,0,.1,1]},As=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Vs=As("applewebkit/")&&!As("chrome/")?Math.round:G;function Cs(t){t.min=Vs(t.min),t.max=Vs(t.max)}function Sc(t){Cs(t.x),Cs(t.y)}function mo(t,e,n){return t==="position"||t==="preserve-aspect"&&!zl(ps(e),ps(n),.2)}function Pc(t){return t!==t.root&&t.scroll?.wasRoot}const Ac=fo({attachResizeListener:(t,e)=>jt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Te={current:void 0},po=fo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Te.current){const t=new Ac({});t.mount(window),t.setOptions({layoutScroll:!0}),Te.current=t}return Te.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),go=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Vc(t=!0){const e=S.useContext(Je);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=S.useId();S.useEffect(()=>{if(t)return i(r)},[t]);const o=S.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const yo=S.createContext({strict:!1}),Ms={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"]};let Ds=!1;function Cc(){if(Ds)return;const t={};for(const e in Ms)t[e]={isEnabled:n=>Ms[e].some(s=>!!n[s])};Gi(t),Ds=!0}function vo(){return Cc(),gl()}function Mc(t){const e=vo();for(const n in t)e[n]={...e[n],...t[n]};Gi(e)}const Dc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function oe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Dc.has(t)}let xo=t=>!oe(t);function Ec(t){typeof t=="function"&&(xo=e=>e.startsWith("on")?!oe(e):t(e))}try{Ec(require("@emotion/is-prop-valid").default)}catch{}function Rc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||I(t[i])||(xo(i)||n===!0&&oe(i)||!e&&!oe(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const ce=S.createContext({});function kc(t,e){if(le(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Lt(n)?n:void 0,animate:Lt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Lc(t){const{initial:e,animate:n}=kc(t,S.useContext(ce));return S.useMemo(()=>({initial:e,animate:n}),[Es(e),Es(n)])}function Es(t){return Array.isArray(t)?t.join(" "):t}const Pn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function To(t,e,n){for(const s in e)!I(e[s])&&!Ji(s,n)&&(t[s]=e[s])}function jc({transformTemplate:t},e){return S.useMemo(()=>{const n=Pn();return bn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Bc(t,e){const n=t.style||{},s={};return To(s,n,t),Object.assign(s,jc(t,e)),s}function Fc(t,e){const n={},s=Bc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const wo=()=>({...Pn(),attrs:{}});function Ic(t,e,n,s){const i=S.useMemo(()=>{const r=wo();return Qi(r,e,eo(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};To(r,t.style,t),i.style={...r,...i.style}}return i}const Oc=["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 An(t){return typeof t!="string"||t.includes("-")?!1:!!(Oc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Nc(t,e,n,{latestValues:s},i,r=!1,o){const c=(o??An(t)?Ic:Fc)(e,s,i,t),u=Rc(e,typeof t=="string",r),l=t!==S.Fragment?{...u,...c,ref:n}:{},{children:h}=e,f=S.useMemo(()=>I(h)?h.get():h,[h]);return S.createElement(t,{...l,children:f})}function Uc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Wc(n,s,i,t),renderState:e()}}function Wc(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Yt(r[f]);let{initial:o,animate:a}=t;const c=le(t),u=Hi(t);e&&u&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||o===!1;const h=l?a:o;if(h&&typeof h!="boolean"&&!ae(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=mn(t,f[d]);if(m){const{transitionEnd:p,transition:g,...y}=m;for(const T in y){let v=y[T];if(Array.isArray(v)){const b=l?v.length-1:0;v=v[b]}v!==null&&(i[T]=v)}for(const T in p)i[T]=p[T]}}}return i}const bo=t=>(e,n)=>{const s=S.useContext(ce),i=S.useContext(Je),r=()=>Uc(t,e,s,i);return n?r():Oo(r)},Kc=bo({scrapeMotionValuesFromProps:Sn,createRenderState:Pn}),Hc=bo({scrapeMotionValuesFromProps:no,createRenderState:wo}),zc=Symbol.for("motionComponentSymbol");function Gc(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(r=>{r&&t.onMount?.(r);const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r);e&&(r?e.mount(r):e.unmount())},[e])}const So=S.createContext({});function gt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function $c(t,e,n,s,i,r){const{visualElement:o}=S.useContext(ce),a=S.useContext(yo),c=S.useContext(Je),u=S.useContext(go),l=u.reducedMotion,h=u.skipAnimations,f=S.useRef(null),d=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:h,isSVG:r}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,p=S.useContext(So);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&_c(f.current,n,i,p);const g=S.useRef(!1);S.useInsertionEffect(()=>{m&&g.current&&m.update(n,c)});const y=n[Ei],T=S.useRef(!!y&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return Uo(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),T.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!T.current&&m.animationState&&m.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),T.current=!1),m.enteringChildren=void 0)}),m}function _c(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Po(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&>(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function Po(t){if(t)return t.options.allowProjection!==!1?t.projection:Po(t.parent)}function we(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Mc(s);const r=n?n==="svg":An(t),o=r?Hc:Kc;function a(u,l){let h;const f={...S.useContext(go),...u,layoutId:Xc(u)},{isStatic:d}=f,m=Lc(u),p=o(u,d);if(!d&&typeof window<"u"){Yc();const g=qc(f);h=g.MeasureLayout,m.visualElement=$c(t,p,f,i,g.ProjectionNode,r)}return w.jsxs(ce.Provider,{value:m,children:[h&&m.visualElement?w.jsx(h,{visualElement:m.visualElement,...f}):null,Nc(t,u,Gc(p,m.visualElement,l),p,d,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(a);return c[zc]=t,c}function Xc({layoutId:t}){const e=S.useContext(Ks).id;return e&&t!==void 0?e+"-"+t:t}function Yc(t,e){S.useContext(yo).strict}function qc(t){const e=vo(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Zc(t,e){if(typeof Proxy>"u")return we;const n=new Map,s=(r,o)=>we(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,we(o,void 0,t,e)),n.get(o))})}const Jc=(t,e)=>e.isSVG??An(t)?new Ll(e):new Cl(e,{allowProjection:t!==S.Fragment});class Qc extends rt{constructor(e){super(e),e.animationState||(e.animationState=Ol(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ae(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tu=0;class eu extends rt{constructor(){super(...arguments),this.id=tu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"){const a=mt(this.node,r,o);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const h in l)this.node.getValue(h)?.jump(l[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const nu={animation:{Feature:Qc},exit:{Feature:eu}};function Ot(t){return{point:{x:t.pageX,y:t.pageY}}}const su=t=>e=>vn(e)&&t(e,Ot(e));function Et(t,e,n,s){return jt(t,e,su(n),s)}const Ao=({current:t})=>t?t.ownerDocument.defaultView:null,Rs=(t,e)=>Math.abs(t-e);function iu(t,e){const n=Rs(t.x,e.x),s=Rs(t.y,e.y);return Math.sqrt(n**2+s**2)}const ks=new Set(["auto","scroll"]);class Vo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Wt(this.lastRawMoveEventInfo,this.transformPagePoint));const d=be(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=iu(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=d,{timestamp:y}=F;this.history.push({...g,timestamp:y});const{onStart:T,onMove:v}=this.handlers;m||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Wt(m,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=be(d.type==="pointercancel"?this.lastMoveEventInfo:Wt(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,T),g&&g(d,T)},!vn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=Ot(e),u=Wt(c,this.transformPagePoint),{point:l}=u,{timestamp:h}=F;this.history=[{...l,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,be(u,this.history)),this.removeListeners=Bt(Et(this.contextWindow,"pointermove",this.handlePointerMove),Et(this.contextWindow,"pointerup",this.handlePointerUp),Et(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(ks.has(s.overflowX)||ks.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),C.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function Wt(t,e){return e?{point:e(t.point)}:t}function Ls(t,e){return{x:t.x-e.x,y:t.y-e.y}}function be({point:t},e){return{point:t,delta:Ls(t,Co(e)),offset:Ls(t,ou(e)),velocity:ru(e,.1)}}function ou(t){return t[0]}function Co(t){return t[t.length-1]}function ru(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Co(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>K(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>K(e)*2&&(s=t[1]);const r=z(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function au(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function js(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function lu(t,{top:e,left:n,bottom:s,right:i}){return{x:js(t.x,n,i),y:js(t.y,e,s)}}function Bs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function cu(t,e){return{x:Bs(t.x,e.x),y:Bs(t.y,e.y)}}function uu(t,e){let n=.5;const s=U(t),i=U(e);return i>s?n=Rt(e.min,e.max-s,t.min):s>i&&(n=Rt(t.min,t.max-i,e.min)),tt(0,1,n)}function hu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ye=.35;function fu(t=Ye){return t===!1?t=0:t===!0&&(t=Ye),{x:Fs(t,"left","right"),y:Fs(t,"top","bottom")}}function Fs(t,e,n){return{min:Is(t,e),max:Is(t,n)}}function Is(t,e){return typeof t=="number"?t:t[e]||0}const du=new WeakMap;class mu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Ot(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$a(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(y=>{let T=this.getAxisMotionValue(y).get()||0;if(Q.test(T)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[y];b&&(T=U(b)*(parseFloat(T)/100))}}this.originPoint[y]=T}),p&&C.update(()=>p(h,f),!1,!0),Ue(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=gu(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&C.update(()=>g(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Vo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:Ao(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Kt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=au(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&>(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=lu(s.layoutBox,e):this.constraints=!1,this.elastic=fu(n),i!==this.constraints&&!gt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=hu(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=wl(s,i.root,this.visualElement.getTransformPagePoint());let o=cu(i.layout.layoutBox,r);if(n){const a=n(vl(o));this.hasMutatedConstraints=!!a,a&&(o=_i(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Z(l=>{if(!Kt(l,n,this.currentDirection))return;let h=c&&c[l]||{};(o===!0||o===l)&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[l]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(l,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ue(this.visualElement,e),s.start(dn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Z(n=>{const{drag:s}=this.getProps();if(!Kt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],c=r.get()||0;r.set(e[n]-M(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!gt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Z(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=uu({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(o=>{if(!Kt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];a.set(M(c,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;du.set(this.visualElement,this);const e=this.visualElement.current,n=Et(e,"pointerdown",u=>{const{drag:l,dragListener:h=!0}=this.getProps(),f=u.target,d=f!==e&&Ja(f);l&&h&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();gt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=pu(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),C.read(i);const a=jt(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Z(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ye,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Os(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function pu(t,e,n){const s=_n(t,Os(n)),i=_n(e,Os(n));return()=>{s(),i()}}function Kt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function gu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class yu extends rt{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new mu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Se=t=>(e,n)=>{t&&C.update(()=>t(e,n),!1,!0)};class vu extends rt{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new Vo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ao(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Se(e),onStart:Se(n),onMove:Se(s),onEnd:(r,o)=>{delete this.session,i&&C.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Et(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Pe=!1;class xu extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Pe&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Pe=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||C.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),yn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Pe=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Mo(t){const[e,n]=Vc(),s=S.useContext(Ks);return w.jsx(xu,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(So),isPresent:e,safeToRemove:n})}const Tu={pan:{Feature:vu},drag:{Feature:yu,ProjectionNode:po,MeasureLayout:Mo}};function Ns(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&C.postRender(()=>r(e,Ot(e)))}class wu extends rt{mount(){const{current:e}=this.node;e&&(this.unmount=Xa(e,(n,s)=>(Ns(this.node,s,"Start"),i=>Ns(this.node,i,"End"))))}unmount(){}}class bu extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bt(jt(this.node.current,"focus",()=>this.onFocus()),jt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Us(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&C.postRender(()=>r(e,Ot(e)))}class Su extends rt{mount(){const{current:e}=this.node;if(!e)return;
1const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=tl(e,(i,r)=>(Us(this.node,r,"Start"),(o,{success:a})=>Us(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const qe=new WeakMap,Ae=new WeakMap,Pu=t=>{const e=qe.get(t.target);e&&e(t)},Au=t=>{t.forEach(Pu)};function Vu({root:t,...e}){const n=t||document;Ae.has(n)||Ae.set(n,{});const s=Ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Au,{root:t,...e})),s[i]}function Cu(t,e,n){const s=Vu(e);return qe.set(t,n),s.observe(t),()=>{qe.delete(t),s.unobserve(t)}}const Mu={some:0,all:1};class Du extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Mu[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};this.stopObserver=Cu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Eu(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Eu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ru={inView:{Feature:Du},tap:{Feature:Su},focus:{Feature:bu},hover:{Feature:wu}},ku={layout:{ProjectionNode:po,MeasureLayout:Mo}},Lu={...nu,...Ru,...Tu,...ku},Ws=Zc(Lu,Jc),ju="/assets/hero-vinyl-D5Y-clPh.jpg",Bu="/__l5e/assets-v1/2c6ae527-f756-41bb-befc-779cfc52aa36/big-o-tires-banner.png",Fu={url:Bu},Iu="/__l5e/assets-v1/70f088d1-cd51-4663-bedb-830546d2a1ad/contest-kern-county-fair.png",Ou={url:Iu},Nu="/__l5e/assets-v1/08a7893b-34fe-44fc-8d87-42763e389e2d/contest-magic-mountain-fright-fest.jpg",Uu={url:Nu},Wu=[{slug:"magic-mountain-fright-fest",title:"Win Tickets To Magic Mountainâs Fright Fest!",tag:"Giveaway",ends:"",image:Uu.url,widgetId:"102174-ubsv95jn",blurb:` 2`},{slug:"kern-county-fair",title:"WIN TICKETS TO THE KERN COUNTY FAIR!!",tag:"Giveaway",ends:"",image:Ou.url,widgetId:"102226-7rtndv6j",blurb:` 3`}],Ku=[{icon:Io,title:"Show Schedule",to:"/shows",desc:"From morning grooves to late night soul."},{icon:Bo,title:"Win Prizes",to:"/contests",desc:"Tickets, swag and VIP experiences."},{icon:Fo,title:"Live Events",to:"/events",desc:"Concerts, parties, and community jams."}];function Hu(t,e,n){t.preventDefault();const s={link_id:e,href:n,session_id:Eo()||null,referrer:document.referrer||null,user_agent:navigator.userAgent.
3slice(0,500)};Ro({data:s}).catch(()=>{}).finally(()=>{window.open(n,"_blank","noopener,noreferrer")})}function zu(){return w.jsxs("section",{className:"container mx-auto px-4 py-12",children:[w.jsxs("div",{className:"text-center",children:[w.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.3em] text-groove-orange",children:"Current Giveaways"}),w.jsx("h2",{className:"mt-2 text-2xl uppercase tracking-wide md:text-4xl whitespace-nowrap",children:"Enter for your chance to win!"})]}),w.jsx("div",{className:"mt-8 grid max-w-5xl mx-auto grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:Wu.slice(0,3).map(t=>w.jsxs("div",{className:"text-left",children:[w.jsxs("a",{href:`https://sweepwidget.com/c/${t.widgetId}`,target:"_blank",rel:"noreferrer",className:"group block",children:[w.jsx("div",{className:"overflow-hidden rounded-xl shadow-[var(--shadow-card)] ring-1 ring-border",children:w.jsx("img",{src:t.image,alt:t.title,className:"aspect-video w-full object-cover transition duration-500 group-hover:scale-105",loading:"lazy"})}),w.jsx("p",{className:"mt-4 text-lg font-bold leading-snug text-groove-ink",children:t.title})]}),w.jsx("div",{className:"mt-4",children:w.jsxs("a",{href:`https://sweepwidget.com/c/${t.widgetId}`,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-groove-gold px-6 py-2.5 text-xs font-bold uppercase tracking-[0.2em] text-groove-ink ring-2 ring-groove-ink hover:brightness-105",children:["Enter ",w.jsx(Ve,{className:"h-4 w-4"})]})})]},t.slug))})]})}function Gu(){const t="https://www.bigotires.com/regions/bakersfield-area";return w.jsx("section",{className:"container mx-auto px-4 pb-12",children:w.jsx("a",{href:t,target:"_blank",rel:"noreferrer",onClick:e=>Hu(e,"big-o-tires",t),className:"block overflow-hidden rounded-xl shadow-[var(--shadow-card)] ring-1 ring-border transition hover:brightness-105",children:w.jsx("img",{src:Fu.url,alt:"Big O Tires â 4 tires for $400 installed. Select sets of 15, 16, 17 and 18 inch tires.",className:"w-full object-cover",loading:"lazy"})})})}function $u(){const t=S.useRef(!1);return S.useEffect(()=>{if(t.current)return;if(document.querySelector('script[src="https://elfsightcdn.com/platform.js"]')){t.current=!0;return}const n=document.createElement("script");n.src="https://elfsightcdn.com/platform.js",n.async=!0,document.body.appendChild(n),t.current=!0},[]),w.jsxs("section",{className:"container mx-auto px-4 py-16",children:[w.jsx("p",{className:"text-center text-xs font-bold uppercase tracking-[0.3em] text-groove-orange",children:"Follow Us"}),w.jsx("h2",{className:"mt-3 text-center text-3xl md:text-4xl",children:"@groove993"}),w.jsx("div",{className:"mt-8",children:w.jsx("div",{className:"elfsight-app-c3a3b814-207b-401a-989c-4c9ea01a4a0b","data-elfsight-app-lazy":!0})})]})}function th(){return w.jsxs("div",{className:"min-h-screen",children:[w.jsx(ko,{}),w.jsxs("section",{className:"relative overflow-hidden",children:[w.jsxs("div",{className:"absolute inset-0",children:[w.jsx("img",{src:ju,alt:"",className:"h-full w-full object-cover opacity-25",width:1920,height:1280}),w.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/30 via-background/40 to-background/70 opacity-40"})]}),w.jsx("div",{className:"container relative mx-auto px-4 pt-20 pb-32 md:pt-32 md:pb-44",children:w.jsxs(Ws.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},children:[w.jsxs("h1",{className:"mt-6 max-w-4xl text-5xl leading-[0.95] sm:text-7xl md:text-[8rem]",children:["Bakersfield's Home For ",w.jsx("span",{className:"text-groove-red-letters",children:"Old School and Throwbacks"})]}),w.jsxs("p",{className:"mt-6 max-w-xl text-lg text-muted-foreground",children:["R&B, soul, funk and throwback jams that built generations. Tune in to ",w.jsx("strong",{className:"text-foreground",children:"Groove 99.3 FM"})," â your daily dose of the classics."]}),w.jsxs("div",{className:"mt-10 flex flex-wrap gap-4",children:[w.jsxs("a",{href:"https://streamdb7web.securenetsystems.net/cl/KKBB",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-groove-gold px-7 py-4 font-bold uppercase tracking-wider text-groove-ink shadow-[var(--shadow-glow)] ring-2 ring-groove-ink hover:brightness-105 hover:scale-105 transition",children:[w.jsx(Lo,{className:"h-5 w-5"})," Listen Live"]}),w.jsxs(Vn,{to:"/shows",className:"inline-flex items-center gap-2 rounded-full bg-background px-7 py-4 font-bold uppercase tracking-wider text-groove-ink border-2 border-groove-ink hover:bg-groove-gold transition",children:["See Shows ",w.jsx(Ve,{className:"h-4 w-4"})]})]})]})})]}),w.jsx("div",{className:"border-y border-border/50 bg-grain bg-card/40 overflow-hidden py-5",children:w.jsx("div",{className:"ticker flex gap-12 whitespace-nowrap font-display text-2xl uppercase tracking-wider text-groove-orange/80",children:Array.from({length:2}).map((t,e)=>w.jsx("div",{className:"flex gap-12 pr-12",children:["R&B Classics","â
","Soul Power","â
","Funk Forever","â
","Throwback Thursdays","â
","New Jack Swing","â
","Old School Hip Hop","â
"].map((n,s)=>w.jsx("span",{className:s%2?"text-groove-gold":"",children:n},s))},e))})}),w.jsx("section",{className:"container mx-auto px-4 py-24",children:w.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:Ku.map((t,e)=>w.jsx(Ws.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},children:w.jsxs(Vn,{to:t.to,className:"bg-grain group relative block overflow-hidden rounded-2xl border border-border bg-card p-8 transition hover:border-groove-orange hover:-translate-y-1 shadow-[var(--shadow-card)]",children:[w.jsx(t.icon,{className:"h-10 w-10 text-groove-orange"}),w.jsx("h3",{className:"mt-6 text-3xl",children:t.title}),w.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:t.desc}),w.jsx(Ve,{className:"absolute right-6 top-6 h-5 w-5 text-muted-foreground transition group-hover:translate-x-1 group-hover:text-groove-orange"})]})},t.title))})}),w.jsx(zu,{}),w.jsx(Gu,{}),w.jsx($u,{}),w.jsx(jo,{})]})}
3export{th as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.