1import{r as P}from"./react-vendor-DKmRkCg0.js";import{j as Me}from"./ui-vendor-BqP7nUKl.js";const Js=P.createContext({});function Qs(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const ti=typeof window<"u",ei=ti?P.useLayoutEffect:P.useEffect,qe=P.createContext(null);function Ze(t,e){t.indexOf(e)===-1&&t.push(e)}function Ot(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Y=(t,e,n)=>n>e?e:n<t?t:n;let ie=()=>{},et=()=>{};const J={},ni=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function si(t){return typeof t=="object"&&t!==null}const ii=t=>/^0[^.\s]+$/u.test(t);function Je(t){let e;return()=>(e===void 0&&(e=t()),e)}const $=t=>t,Hr=(t,e)=>n=>e(t(n)),jt=(...t)=>t.reduce(Hr),yt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Qe{constructor(){this.subscriptions=[]}add(e){return Ze(this.subscriptions,e),()=>Ot(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 o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _=t=>t*1e3,K=t=>t/1e3;function ri(t,e){return e?t*(1e3/e):0}const _r=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},oi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zr=1e-7,Xr=12;function Yr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=oi(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>zr&&++a<Xr);return r}function Nt(t,e,n,s){if(t===e&&n===s)return $;const i=o=>Yr(o,0,1,t,n);return o=>o===0||o===1?o:oi(i(o),e,s)}const ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,li=t=>e=>1-t(1-e),ui=Nt(.33,1.53,.69,.99),tn=li(ui),ci=ai(tn),hi=t=>(t*=2)<1?.5*tn(t):.5*(2-Math.pow(2,-10*(t-1))),en=t=>1-Math.sin(Math.acos(t)),fi=li(en),di=ai(en),qr=Nt(.42,0,1,1),Zr=Nt(0,0,.58,1),mi=Nt(.42,0,.58,1),pi=t=>Array.isArray(t)&&typeof t[0]!="number";function gi(t,e){return pi(t)?t[_r(0,t.length,e)]:t}const yi=t=>Array.isArray(t)&&typeof t[0]=="number",kn={linear:$,easeIn:qr,easeInOut:mi,easeOut:Zr,circIn:en,circInOut:di,circOut:fi,backIn:tn,backInOut:ci,backOut:ui,anticipate:hi},Jr=t=>typeof t=="string",Fn=t=>{if(yi(t)){et(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return Nt(e,n,s,i)}else if(Jr(t))return et(kn[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),kn[t];return t},Ht=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],In={value:null,addProjectionMetrics:null};function Qr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(h){r.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,f=!1,d=!1)=>{const p=d&&i?n:s;return f&&r.add(h),p.has(h)||p.add(h),h},cancel:h=>{s.delete(h),r.delete(h)},process:h=>{if(a=h,i){o=!0;return}
vendor: 25,938 bytes, line 1
1i=!0,[n,s]=[s,n],n.forEach(u),e&&In.value&&In.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const to=40;function vi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ht.reduce((y,w)=>(y[w]=Qr(o,e?w:void 0),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,p=()=>{const y=J.useManualTiming?i.timestamp:performance.now();n=!1,J.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,to),1)),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},v=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Ht.reduce((y,w)=>{const S=r[w];return y[w]=(b,M=!1,A=!1)=>(n||v(),S.schedule(b,M,A)),y},{}),cancel:y=>{for(let w=0;w<Ht.length;w++)r[Ht[w]].cancel(y)},state:i,steps:r}}const{schedule:D,cancel:q,state:O,steps:he}=vi(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0);let Xt;function eo(){Xt=void 0}const N={now:()=>(Xt===void 0&&N.set(O.isProcessing||J.useManualTiming?O.timestamp:performance.now()),Xt),set:t=>{Xt=t,queueMicrotask(eo)}},Ti=t=>e=>typeof e=="string"&&e.startsWith(t),xi=Ti("--"),no=Ti("var(--"),nn=t=>no(t)?so.test(t.split("/*")[0].trim()):!1,so=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const vt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...vt,transform:t=>Y(0,1,t)},_t={...vt,default:1},Mt=t=>Math.round(t*1e5)/1e5,sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function io(t){return t==null}const ro=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rn=(t,e)=>n=>!!(typeof n=="string"&&ro.test(n)&&n.startsWith(t)||e&&!io(n)&&Object.prototype.hasOwnProperty.call(n,e)),Si=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(sn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},oo=t=>Y(0,255,t),fe={...vt,transform:t=>Math.round(oo(t))},at={test:rn("rgb","red"),parse:Si("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+fe.transform(t)+", "+fe.transform(e)+", "+fe.transform(n)+", "+Mt(Rt.transform(s))+")"};function ao(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 De={test:rn("#"),parse:ao,transform:at.transform},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=Ut("deg"),X=Ut("%"),x=Ut("px"),lo=Ut("vh"),uo=Ut("vw"),On={...X,parse:t=>X.parse(t)/100,transform:t=>X.transform(t*100)},ft={test:rn("hsl","hue"),parse:Si("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+X.transform(Mt(e))+", "+X.transform(Mt(n))+", "+Mt(Rt.transform(s))+")"},F={test:t=>at.test(t)||De.test(t)||ft.test(t),parse:t=>at.test(t)?at.parse(t):ft.test(t)?ft.parse(t):De.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):ft.transform(t),getAnimatableNone:t=>{const e=F.parse(t);return e.alpha=0,F.transform(e)}},co=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ho(t){return isNaN(t)&&typeof t=="string"&&(t.match(sn)?.length||0)+(t.match(co)?.length||0)>0}const Pi="number",wi="color",fo="var",mo="var(",jn="${}",po=/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 Lt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(po,l=>(F.test(l)?(s.color.push(o),i.push(wi),n.push(F.parse(l))):l.startsWith(mo)?(s.var.push(o),i.push(fo),n.push(l)):(s.number.push(o),i.push(Pi),n.push(parseFloat(l))),++o,jn)).split(jn);return{values:n,split:a,indexes:s,types:i}}function Ai(t){return Lt(t).values}function bi(t){const{split:e,types:n}=Lt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Pi?o+=Mt(i[r]):a===wi?o+=F.transform(i[r]):o+=i[r]}return o}}const go=t=>typeof t=="number"?0:F.test(t)?F.getAnimatableNone(t):t;function yo(t){const e=Ai(t);return bi(t)(e.map(go))}const nt={test:ho,parse:Ai,createTransformer:bi,getAnimatableNone:yo};function de(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 vo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=de(l,a,t+1/3),o=de(l,a,t),r=de(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const E=(t,e,n)=>t+(e-t)*n,me=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},To=[De,at,ft],xo=t=>To.find(e=>e.test(t));function Nn(t){const e=xo(t);if(ie(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===ft&&(n=vo(n)),n}const Un=(t,e)=>{const n=Nn(t),s=Nn(e);if(!n||!s)return Jt(t,e);const i={...n};return o=>(i.red=me(n.red,s.red,o),i.green=me(n.green,s.green,o),i.blue=me(n.blue,s.blue,o),i.alpha=E(n.alpha,s.alpha,o),at.transform(i))},Ce=new Set(["none","hidden"]);function So(t,e){return Ce.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Po(t,e){return n=>E(t,e,n)}function on(t){return typeof t=="number"?Po:typeof t=="string"?nn(t)?Jt:F.test(t)?Un:bo:Array.isArray(t)?Vi:typeof t=="object"?F.test(t)?Un:wo:Jt}function Vi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>on(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function wo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=on(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Ao(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const bo=(t,e)=>{const n=nt.createTransformer(e),s=Lt(t),i=Lt(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?Ce.has(t)&&!i.values.length||Ce.has(e)&&!s.values.length?So(t,e):jt(Vi(Ao(s,i),i.values),n):(ie(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Jt(t,e))};function Mi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?E(t,e,n):on(t)(t,e)}const Vo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>q(e),now:()=>O.isProcessing?O.timestamp:N.now()}},Di=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Qt=2e4;function an(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 Ci(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(an(s),Qt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:K(i)}}const Mo=5;function Ei(t,e,n){const s=Math.max(e-Mo,0);return ri(n-t(s),e-s)}const R={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},pe=.001;function Do({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,o;ie(t<=_(R.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=Y(R.minDamping,R.maxDamping,r),t=Y(R.minDuration,R.maxDuration,K(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Ee(u,r),m=Math.exp(-h);return pe-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=Ee(Math.pow(u,2),r);return(-i(u)+pe>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-pe+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Eo(i,o,a);if(t=_(t),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Co=12;function Eo(t,e,n){let s=n;for(let i=1;i<Co;i++)s=s-t(s)/e(s);return s}function Ee(t,e){return t*Math.sqrt(1-e*e)}const Ro=["duration","bounce"],Lo=["stiffness","damping","mass"];function Wn(t,e){return e.some(n=>t[n]!==void 0)}function ko(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!Wn(t,Lo)&&Wn(t,Ro))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Y(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:R.mass,stiffness:i,damping:o}}else{const n=Do(t);e={...e,...n,mass:R.mass},e.isResolvedFromDuration=!0}return e}function kt(t=R.visualDuration,e=R.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=ko({...n,velocity:-K(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),v=r-o,g=K(Math.sqrt(l/c)),T=Math.abs(v)<5;s||(s=T?R.restSpeed.granular:R.restSpeed.default),i||(i=T?R.restDelta.granular:R.restDelta.default);let y;if(p<1){const S=Ee(g,p);y=b=>{const M=Math.exp(-p*g*b);return r-M*((m+p*g*v)/S*Math.sin(S*b)+v*Math.cos(S*b))}}else if(p===1)y=S=>r-Math.exp(-g*S)*(v+(m+g*v)*S);else{const S=g*Math.sqrt(p*p-1);y=b=>{const M=Math.exp(-p*g*b),A=Math.min(S*b,300);return r-M*((m+p*g*v)*Math.sinh(A)+S*v*Math.cosh(A))/S}}const w={calculatedDuration:d&&h||null,next:S=>{const b=y(S);if(d)a.done=S>=h;else{let M=S===0?m:0;p<1&&(M=S===0?_(m):Ei(y,S,b));const A=Math.abs(M)<=s,V=Math.abs(r-b)<=i;a.done=A&&V}return a.value=a.done?r:b,a},toString:()=>{const S=Math.min(an(w),Qt),b=Di(M=>w.next(S*M).value,S,30);return S+"ms "+b},toTransition:()=>{}};return w}kt.applyToOptions=t=>{const e=Ci(t,100,kt);return t.ease=e.ease,t.duration=_(e.duration),t.type="keyframes",t};function Re({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let p=n*e;const v=h+p,g=r===void 0?v:r(v);g!==v&&(p=g-h);const T=A=>-p*Math.exp(-A/s),y=A=>g+T(A),w=A=>{const V=T(A),B=y(A);f.done=Math.abs(V)<=u,f.value=f.done?g:B};let S,b;const M=A=>{d(f.value)&&(S=A,b=kt({keyframes:[f.value,m(f.value)],velocity:Ei(y,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:A=>{let V=!1;return!b&&S===void 0&&(V=!0,w(A),M(A)),S!==void 0&&A>=S?b.next(A-S):(!V&&w(A),f)}}}function Fo(t,e,n){const s=[],i=n||J.mix||Mi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||$:e;a=jt(l,a)}s.push(a)}return s}function Io(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(et(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Fo(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=yt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(Y(t[0],t[o-1],c)):u}function Ri(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=yt(0,e,s);t.push(E(n,1,i))}}function Li(t){const e=[0];return Ri(e,t.length-1),e}function Bo(t,e){return t.map(n=>n*e)}function Oo(t,e){return t.map(()=>e||mi).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=pi(s)?s.map(Fn):Fn(s),o={done:!1,value:e[0]},r=Bo(n&&n.length===e.length?n:Li(e),t),a=Io(r,e,{ease:Array.isArray(i)?i:Oo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const jo=t=>t!==null;function ln(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(jo),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const No={decay:Re,inertia:Re,tween:Dt,keyframes:Dt,spring:kt};function ki(t){typeof t.type=="string"&&(t.type=No[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 Uo=t=>t/100;class cn extends un{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,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;ki(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Dt;l!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=jt(Uo,Mi(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=an(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+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:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:v}=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 g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,w=s;if(h){const A=Math.min(this.currentTime,i)/a;let V=Math.floor(A),B=A%1;!B&&A>=1&&(B=1),B===1&&V--,V=Math.min(V,h+1),!!(V%2)&&(f==="reverse"?(B=1-B,d&&(B-=d/a)):f==="mirror"&&(w=r)),y=Y(0,1,B)*a}const S=T?{done:!1,value:c[0]}:w.next(y);o&&(S.value=o(S.value));let{done:b}=S;!T&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return M&&m!==Re&&(S.value=ln(c,this.options,v,this.speed)),p&&p(S.value),M&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(this.currentTime)}set time(e){e=_(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(N.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=K(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Vo,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 Wo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const lt=t=>t*180/Math.PI,Le=t=>{const e=lt(Math.atan2(t[1],t[0]));return ke(e)},Ko={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Le,rotateZ:Le,skewX:t=>lt(Math.atan(t[1])),skewY:t=>lt(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),Kn=Le,$n=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Gn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),$o={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$n,scaleY:Gn,scale:t=>($n(t)+Gn(t))/2,rotateX:t=>ke(lt(Math.atan2(t[6],t[5]))),rotateY:t=>ke(lt(Math.atan2(-t[2],t[0]))),rotateZ:Kn,rotate:Kn,skewX:t=>lt(Math.atan(t[4])),skewY:t=>lt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Ie(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=$o,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ko,i=a}if(!i)return Fe(e);const o=s[e],r=i[1].split(",").map(Ho);return typeof o=="function"?o(r):r[o]}const Go=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ie(n,e)};function Ho(t){return parseFloat(t.trim())}const Tt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(Tt),Hn=t=>t===vt||t===x,_o=new Set(["x","y","z"]),zo=Tt.filter(t=>!_o.has(t));function Xo(t){const e=[];return zo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const tt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ie(e,"x"),y:(t,{transform:e})=>Ie(e,"y")};tt.translateX=tt.x;tt.translateY=tt.y;const ut=new Set;let Be=!1,Oe=!1,je=!1;function Fi(){if(Oe){const t=Array.from(ut).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Xo(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(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Oe=!1,Be=!1,ut.forEach(t=>t.complete(je)),ut.clear()}function Ii(){ut.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Oe=!0)})}function Yo(){je=!0,Ii(),Fi(),je=!1}class hn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ut.add(this),Be||(Be=!0,D.read(Ii),D.resolveKeyframes(Fi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Wo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ut.delete(this)}cancel(){this.state==="scheduled"&&(ut.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qo=t=>t.startsWith("--");function Zo(t,e,n){qo(e)?t.style.setProperty(e,n):t.style[e]=n}const Jo=Je(()=>window.ScrollTimeline!==void 0),Qo={};function ta(t,e){const n=Je(t);return()=>Qo[e]??n()}const Bi=ta(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,_n={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function Oi(t,e){if(t)return typeof t=="function"?Bi()?Di(t,e):"ease-out":yi(t)?bt(t):Array.isArray(t)?t.map(n=>Oi(n,e)||_n.easeOut):_n[t]}function ea(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Oi(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function fn(t){return typeof t=="function"&&"applyToOptions"in t}function na({type:t,...e}){return fn(t)&&Bi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class sa 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:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,et(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=na(e);this.animation=ea(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=ln(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Zo(n,s,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return K(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Jo()?(this.animation.timeline=e,$):n(this)}}const ji={anticipate:hi,backInOut:ci,circInOut:di};function ia(t){return t in ji}function ra(t){typeof t.ease=="string"&&ia(t.ease)&&(t.ease=ji[t.ease])}const ge=10;class oa extends sa{constructor(e){ra(e),ki(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new cn({...r,autoplay:!1}),l=Math.max(ge,N.now()-this.startTime),u=Y(0,ge,l-ge);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const zn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(nt.test(t)||t==="0")&&!t.startsWith("url("));function aa(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 la(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=zn(i,e),a=zn(o,e);return ie(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:aa(t)||(n==="spring"||fn(n))&&s}function Ne(t){t.duration=0,t.type="keyframes"}const ua=new Set(["opacity","clipPath","filter","transform"]),ca=Je(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ha(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return ca()&&n&&ua.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const fa=40;class da extends un{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...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:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=c?.KeyframeResolver||hn;this.keyframeResolver=new d(a,(m,p,v)=>this.onKeyframesResolved(m,p,f,!v),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=N.now(),la(e,o,r,a)||((J.instantAnimations||!l)&&c?.(ln(e,s,n)),e[0]=e[e.length-1],Ne(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>fa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ha(f),m=f.motionValue?.owner?.current,p=d?new oa({...f,element:m}):new cn(f);p.finished.then(()=>{this.notifyFinished()}).catch($),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}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(),Yo()),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()}}class ma{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Xn(this.animations,"duration")}get iterationDuration(){return Xn(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Xn(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class pa extends ma{then(e,n){return this.finished.finally(e).then(()=>{})}}function Ni(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const ga=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ya(t){const e=ga.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const va=4;function Ui(t,e,n=1){et(n<=va,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=ya(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return ni(r)?parseFloat(r):r}return nn(i)?Ui(i,e,n+1):i}const Ta={type:"spring",stiffness:500,damping:25,restSpeed:10},xa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Sa={type:"keyframes",duration:.8},Pa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wa=(t,{keyframes:e})=>e.length>2?Sa:xt.has(t)?t.startsWith("scale")?xa(e[1]):Ta:Pa,Aa=t=>t!==null;function ba(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Aa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}function dn(t,e){return t?.[e]??t?.default??t}function Va({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const mn=(t,e,n,s={},i,o)=>r=>{const a=dn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-_(l);const c={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:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Va(a)||Object.assign(c,wa(t,c)),c.duration&&(c.duration=_(c.duration)),c.repeatDelay&&(c.repeatDelay=_(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ne(c),c.delay===0&&(h=!0)),(J.instantAnimations||J.skipAnimations)&&(h=!0,Ne(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=ba(c.keyframes,a);if(f!==void 0){D.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new cn(c):new da(c)};function Yn(t){const e=[{},{}];
vendor: 22,397 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function pn(t,e,n,s){if(typeof e=="function"){const[i,o]=Yn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Yn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function gt(t,e,n){const s=t.getProps();return pn(s,e,n!==void 0?n:s.custom,t)}const Wi=new Set(["width","height","top","left","right","bottom",...Tt]),qn=30,Ma=t=>!isNaN(parseFloat(t));class Da{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 o of this.dependents)o.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=Ma(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 Qe);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.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>qn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qn);return ri(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 ct(t,e){return new Da(t,e)}const Ue=t=>Array.isArray(t);function Ca(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ct(n))}function Ea(t){return Ue(t)?t[t.length-1]||0:t}function Ra(t,e){const n=gt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ea(o[r]);Ca(t,r,a)}}const I=t=>!!(t&&t.getVelocity);function La(t){return!!(I(t)&&t.add)}function We(t,e){const n=t.getValue("willChange");if(La(n))return n.add(e);if(!n&&J.WillChange){const s=new J.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function gn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ka="framerAppearId",Ki="data-"+gn(ka);function $i(t){return t.props[Ki]}function Fa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function yn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;const l=o?.reduceMotion;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const f=t.getValue(h,t.latestValues[h]??null),d=a[h];if(d===void 0||c&&Fa(c,h))continue;const m={delay:n,...dn(o||{},h)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=$i(t);if(y){const w=window.MotionHandoffAnimation(y,h,D);w!==null&&(m.startTime=w,v=!0)}}We(t,h);const g=l??t.shouldReduceMotion;f.start(mn(h,f,d,g&&Wi.has(h)?{type:!1}:m,t,v));const T=f.animation;T&&u.push(T)}return r&&Promise.all(u).then(()=>{D.update(()=>{r&&Ra(t,r)})}),u}function Ke(t,e,n={}){const s=gt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(yn(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:h}=i;return Ia(t,e,l,u,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Ia(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Ke(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Ni(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Ba(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ke(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ke(t,e,n);else{const i=typeof e=="function"?gt(t,e,n.custom):e;s=Promise.all(yn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Oa={test:t=>t==="auto",parse:t=>t},Gi=t=>e=>e.test(t),Hi=[vt,x,X,Q,uo,lo,Oa],Zn=t=>Hi.find(Gi(t));function ja(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ii(t):!0}const Na=new Set(["brightness","contrast","saturate","opacity"]);function Ua(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(sn)||[];if(!s)return t;const i=n.replace(s,"");let o=Na.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Wa=/\b([a-z-]*)\(.*?\)/gu,$e={...nt,getAnimatableNone:t=>{const e=t.match(Wa);return e?e.map(Ua).join(" "):t}},Jn={...vt,transform:Math.round},Ka={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:Q,skewX:Q,skewY:Q,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:Rt,originX:On,originY:On,originZ:x},vn={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,...Ka,zIndex:Jn,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Jn},$a={...vn,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:$e,WebkitFilter:$e},_i=t=>$a[t];function zi(t,e){let n=_i(t);return n!==$e&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ga=new Set(["auto","none","0"]);function Ha(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ga.has(o)&&Lt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=zi(n,i)}class _a extends hn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let h=e[c];if(typeof h=="string"&&(h=h.trim(),nn(h))){const f=Ui(h,n.current);f!==void 0&&(e[c]=f),c===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Wi.has(s)||e.length!==2)return;const[i,o]=e,r=Zn(i),a=Zn(o),l=Bn(i),u=Bn(o);if(l!==u&&tt[s]){this.needsMeasurement=!0;return}if(r!==a)if(Hn(r)&&Hn(a))for(let c=0;c<e.length;c++){const h=e[c];typeof h=="string"&&(e[c]=parseFloat(h))}else tt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||ja(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=tt[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 o=s.length-1,r=s[o];s[o]=tt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Xi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;e&&(s=e.current);const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Yi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function za(t){return si(t)&&"offsetHeight"in t}const{schedule:Tn,cancel:Nc}=vi(queueMicrotask,!1),H={x:!1,y:!1};function qi(){return H.x||H.y}function Xa(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function Zi(t,e){const n=Xi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Qn(t){return!(t.pointerType==="touch"||qi())}function Ya(t,e,n={}){const[s,i,o]=Zi(t,n),r=a=>{if(!Qn(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{Qn(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Ji=(t,e)=>e?t===e?!0:Ji(t,e.parentElement):!1,xn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,qa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qi(t){return qa.has(t.tagName)||t.isContentEditable===!0}const Yt=new WeakSet;function ts(t){return e=>{e.key==="Enter"&&t(e)}}function ye(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Za=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ts(()=>{if(Yt.has(n))return;ye(n,"down");const i=ts(()=>{ye(n,"up")}),o=()=>ye(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function es(t){return xn(t)&&!qi()}function Ja(t,e,n={}){const[s,i,o]=Zi(t,n),r=a=>{const l=a.currentTarget;if(!es(a))return;Yt.add(l);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Yt.has(l)&&Yt.delete(l),es(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Ji(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),za(a)&&(a.addEventListener("focus",u=>Za(u,i)),!Qi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Sn(t){return si(t)&&"ownerSVGElement"in t}function tr(t){return Sn(t)&&t.tagName==="svg"}const Qa=[...Hi,F,nt],tl=t=>Qa.find(Gi(t)),ns=()=>({translate:0,scale:1,origin:0,originPoint:0}),dt=()=>({x:ns(),y:ns()}),ss=()=>({min:0,max:0}),k=()=>({x:ss(),y:ss()}),Ge={current:null},er={current:!1},el=typeof window<"u";function nl(){if(er.current=!0,!!el)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ge.current=t.matches;t.addEventListener("change",e),e()}else Ge.current=!1}const Ft=new WeakMap;function re(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Pn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wn=["initial",...Pn];function oe(t){return re(t.animate)||wn.some(e=>It(t[e]))}function nr(t){return!!(oe(t)||t.variants)}function sl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(I(i))t.addValue(s,i);else if(I(o))t.addValue(s,ct(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,ct(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const is=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let te={};function sr(t){te=t}function il(){return te}class ir{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=hn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=N.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,D.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=oe(n),this.isVariantNode=nr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&I(d)&&d.set(l[f])}}mount(e){this.current=e,Ft.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:(er.current||nl(),this.shouldReduceMotion=Ge.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(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){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=xt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),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 te){const n=te[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 o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,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<is.length;s++){const i=is[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=sl(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=ct(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"&&(ni(s)||ii(s))?s=parseFloat(s):!tl(s)&&nt.test(n)&&(s=zi(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 o=pn(this.props,n,this.presenceContext?.custom);o&&(s=o[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 Qe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Tn.render(this.render)}}class rr extends ir{constructor(){super(...arguments),this.KeyframeResolver=_a}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 st{constructor(e){this.isMounted=!1,this.node=e}update(){}}function or({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function rl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ol(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 ve(t){return t===void 0||t===1}function He({scale:t,scaleX:e,scaleY:n}){return!ve(t)||!ve(e)||!ve(n)}function ot(t){return He(t)||ar(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ar(t){return rs(t.x)||rs(t.y)}function rs(t){return t&&t!=="0%"}function ee(t,e,n){const s=t-n,i=e*s;return n+i}function os(t,e,n,s,i){return i!==void 0&&(t=ee(t,i,s)),ee(t,n,s)+e}function _e(t,e=0,n=1,s,i){t.min=os(t.min,e,n,s,i),t.max=os(t.max,e,n,s,i)}function lr(t,{x:e,y:n}){_e(t.x,e.translate,e.scale,e.originPoint),_e(t.y,n.translate,n.scale,n.originPoint)}const as=.999999999999,ls=1.0000000000001;function al(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&pt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,lr(t,r)),s&&ot(o.latestValues)&&pt(t,o.latestValues))}e.x<ls&&e.x>as&&(e.x=1),e.y<ls&&e.y>as&&(e.y=1)}function mt(t,e){t.min=t.min+e,t.max=t.max+e}function us(t,e,n,s,i=.5){const o=E(t.min,t.max,i);_e(t,e,n,o,s)}function pt(t,e){us(t.x,e.x,e.scaleX,e.scale,e.originX),us(t.y,e.y,e.scaleY,e.scale,e.originY)}function ur(t,e){return or(ol(t.getBoundingClientRect(),e))}function ll(t,e,n){const s=ur(t,n),{scroll:i}=e;return i&&(mt(s.x,i.offset.x),mt(s.y,i.offset.y)),s}const ul={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cl=Tt.length;function hl(t,e,n){let s="",i=!0;for(let o=0;o<cl;o++){const r=Tt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const u=parseFloat(a);l=r.startsWith("scale")?u===1:u===0}if(!l||n){const u=Yi(a,vn[r]);if(!l){i=!1;const c=ul[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function An(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(xt.has(l)){r=!0;continue}
vendor: 6,538 bytes, line 1
1else if(xi(l)){i[l]=u;continue}else{const c=Yi(u,vn[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=hl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}function cr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function cs(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=cs(t,e.target.x),s=cs(t,e.target.y);return`${n}% ${s}%`}},fl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=nt.parse(t);if(i.length>5)return s;const o=nt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=E(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},ze={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:fl};function hr(t,{layout:e,layoutId:n}){return xt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ze[t]||t==="opacity")}function bn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(I(s[r])||i&&I(i[r])||hr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function dl(t){return window.getComputedStyle(t)}class fr extends rr{constructor(){super(...arguments),this.type="html",this.renderInstance=cr}readValueFromInstance(e,n){if(xt.has(n))return this.projection?.isProjecting?Fe(n):Go(e,n);{const s=dl(e),i=(xi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ur(e,n)}build(e,n,s){An(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return bn(e,n,s)}}function ml(t,e){return t in e}class pl extends ir{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(ml(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return k()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}const gl={offset:"stroke-dashoffset",array:"stroke-dasharray"},yl={offset:"strokeDashoffset",array:"strokeDasharray"};function vl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?gl:yl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Tl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function dr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(An(t,a,u),l){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=c?.transformBox??"fill-box",delete h.transformBox);for(const d of Tl)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&&vl(h,i,o,r,!1)}const mr=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"]),pr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function xl(t,e,n,s){cr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(mr.has(i)?i:gn(i),e.attrs[i])}function gr(t,e,n){const s=bn(t,e,n);for(const i in t)if(I(t[i])||I(e[i])){const o=Tt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class yr extends rr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(xt.has(n)){const s=_i(n);return s&&s.default||0}return n=mr.has(n)?n:gn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return gr(e,n,s)}build(e,n,s){dr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){xl(e,n,s,i)}mount(e){this.isSVGTag=pr(e.tagName),super.mount(e)}}const Sl=wn.length;function vr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?vr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Sl;n++){const s=wn[n],i=t.props[s];(It(i)||i===!1)&&(e[s]=i)}return e}function Tr(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 Pl=[...Pn].reverse(),wl=Pn.length;function Al(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ba(t,n,s)))}function bl(t){let e=Al(t),n=hs(),s=!0;const i=l=>(u,c)=>{const h=gt(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=vr(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let v=0;v<wl;v++){const g=Pl[v],T=n[g],y=u[g]!==void 0?u[g]:c[g],w=It(y),S=g===l?T.isActive:null;S===!1&&(m=v);let b=y===c[g]&&y!==u[g]&&w;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),T.protectedKeys={...d},!T.isActive&&S===null||!y&&!T.prevProp||re(y)||typeof y=="boolean")continue;const M=Vl(T.prevProp,y);let A=M||g===l&&T.isActive&&!b&&w||v>m&&w,V=!1;const B=Array.isArray(y)?y:[y];let j=B.reduce(i(g),{});S===!1&&(j={});const{prevResolvedValues:ht={}}=T,it={...ht,...j},ue=C=>{A=!0,f.has(C)&&(V=!0,f.delete(C)),T.needsAnimating[C]=!0;const L=t.getValue(C);L&&(L.liveStyle=!1)};for(const C in it){const L=j[C],z=ht[C];if(d.hasOwnProperty(C))continue;let Z=!1;Ue(L)&&Ue(z)?Z=!Tr(L,z):Z=L!==z,Z?L!=null?ue(C):f.add(C):L!==void 0&&f.has(C)?ue(C):T.protectedKeys[C]=!0}T.prevProp=y,T.prevResolvedValues=j,T.isActive&&(d={...d,...j}),s&&t.blockInitialAnimation&&(A=!1);const ce=b&&M;A&&(!ce||V)&&h.push(...B.map(C=>{const L={type:g};if(typeof C=="string"&&s&&!ce&&t.manuallyAnimateOnMount&&t.parent){const{parent:z}=t,Z=gt(z,C);if(z.enteringChildren&&Z){const{delayChildren:Kt}=Z.transition||{};L.delay=Ni(z.enteringChildren,t,Kt)}}return{animation:C,options:L}}))}
vendor: 53,972 bytes, line 1
1if(f.size){const v={};if(typeof u.initial!="boolean"){const g=gt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(v.transition=g.transition)}f.forEach(g=>{const T=t.getBaseTarget(g),y=t.getValue(g);y&&(y.liveStyle=!0),v[g]=T??null}),h.push({animation:v})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),n[l].isActive=u;const c=r(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=hs()}}}function Vl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Tr(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hs(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}function fs(t,e){t.min=e.min,t.max=e.max}function G(t,e){fs(t.x,e.x),fs(t.y,e.y)}function ds(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const xr=1e-4,Ml=1-xr,Dl=1+xr,Sr=.01,Cl=0-Sr,El=0+Sr;function U(t){return t.max-t.min}function Rl(t,e,n){return Math.abs(t-e)<=n}function ms(t,e,n,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=E(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ml&&t.scale<=Dl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Cl&&t.translate<=El||isNaN(t.translate))&&(t.translate=0)}function Ct(t,e,n,s){ms(t.x,e.x,n.x,s?s.originX:void 0),ms(t.y,e.y,n.y,s?s.originY:void 0)}function ps(t,e,n){t.min=n.min+e.min,t.max=t.min+U(e)}function Ll(t,e,n){ps(t.x,e.x,n.x),ps(t.y,e.y,n.y)}function gs(t,e,n){t.min=e.min-n.min,t.max=t.min+U(e)}function ne(t,e,n){gs(t.x,e.x,n.x),gs(t.y,e.y,n.y)}function ys(t,e,n,s,i){return t-=e,t=ee(t,1/n,s),i!==void 0&&(t=ee(t,1/i,s)),t}function kl(t,e=0,n=1,s=.5,i,o=t,r=t){if(X.test(e)&&(e=parseFloat(e),e=E(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=E(o.min,o.max,s);t===o&&(a-=e),t.min=ys(t.min,e,n,a,i),t.max=ys(t.max,e,n,a,i)}function vs(t,e,[n,s,i],o,r){kl(t,e[n],e[s],e[i],e.scale,o,r)}const Fl=["x","scaleX","originX"],Il=["y","scaleY","originY"];function Ts(t,e,n,s){vs(t.x,e,Fl,n?n.x:void 0,s?s.x:void 0),vs(t.y,e,Il,n?n.y:void 0,s?s.y:void 0)}function xs(t){return t.translate===0&&t.scale===1}function Pr(t){return xs(t.x)&&xs(t.y)}function Ss(t,e){return t.min===e.min&&t.max===e.max}function Bl(t,e){return Ss(t.x,e.x)&&Ss(t.y,e.y)}function Ps(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function wr(t,e){return Ps(t.x,e.x)&&Ps(t.y,e.y)}function ws(t){return U(t.x)/U(t.y)}function As(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function W(t){return[t("x"),t("y")]}function Ol(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}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,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Ar=["TopLeft","TopRight","BottomLeft","BottomRight"],jl=Ar.length,bs=t=>typeof t=="string"?parseFloat(t):t,Vs=t=>typeof t=="number"||x.test(t);function Nl(t,e,n,s,i,o){i?(t.opacity=E(0,n.opacity??1,Ul(s)),t.opacityExit=E(e.opacity??1,0,Wl(s))):o&&(t.opacity=E(e.opacity??1,n.opacity??1,s));for(let r=0;r<jl;r++){const a=`border${Ar[r]}Radius`;let l=Ms(e,a),u=Ms(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Vs(l)===Vs(u)?(t[a]=Math.max(E(bs(l),bs(u),s),0),(X.test(u)||X.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=E(e.rotate||0,n.rotate||0,s))}function Ms(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ul=br(0,.5,fi),Wl=br(.5,.95,$);function br(t,e,n){return s=>s<t?0:s>e?1:n(yt(t,e,s))}function Vr(t,e,n){const s=I(t)?t:ct(t);return s.start(mn("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Kl=(t,e)=>t.depth-e.depth;class $l{constructor(){this.children=[],this.isDirty=!1}add(e){Ze(this.children,e),this.isDirty=!0}remove(e){Ot(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Kl),this.isDirty=!1,this.children.forEach(e)}}function Gl(t,e){const n=N.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(q(s),t(o-e))};return D.setup(s,!0),()=>q(s)}function qt(t){return I(t)?t.get():t}class Hl{constructor(){this.members=[]}add(e){Ze(this.members,e),e.scheduleRender()}remove(e){if(Ot(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,o=e.options.layoutDependency;i!==void 0&&o!==void 0&&i===o||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Zt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Te=["","X","Y","Z"],_l=1e3;let zl=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 Mr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=$i(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Mr(s)}function Dr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=zl++,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(ql),this.nodes.forEach(tu),this.nodes.forEach(eu),this.nodes.forEach(Zl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new $l)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Qe),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Sn(r)&&!tr(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=Gl(f,250),Zt.hasAnimatedSinceResize&&(Zt.hasAnimatedSinceResize=!1,this.nodes.forEach(Es)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,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()||ou,{onLayoutAnimationStart:p,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!wr(this.targetLayout,d),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...dn(m,"layout"),onPlay:p,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,T)}else h||Es(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),q(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(nu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ds);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Cs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ql),this.nodes.forEach(Xl),this.nodes.forEach(Yl)):this.nodes.forEach(Cs),this.clearAllSnapshots();const a=N.now();O.delta=Y(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,he.update.process(O),he.preRender.process(O),he.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jl),this.sharedNodes.forEach(su)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Pr(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||ot(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),au(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(lu))){const{scroll:u}=this.root;u&&(mt(a.x,u.offset.x),mt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=k();if(G(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:h}=u;u!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&G(a,r),mt(a.x,c.offset.x),mt(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const l=k();G(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&pt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ot(c.latestValues)&&pt(l,c.latestValues)}return ot(this.latestValues)&&pt(l,this.latestValues),l}removeTransform(r){const a=k();G(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ot(u.latestValues))continue;He(u.latestValues)&&u.updateSnapshot();const c=k(),h=u.measurePageBox();G(c,h),Ts(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ot(this.latestValues)&&Ts(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ll(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):G(this.target,this.layout.layoutBox),lr(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||He(this.parent.latestValues)||ar(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ne(this.relativeTargetOrigin,a,l),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===O.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=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||c))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;al(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ds(this.prevProjectionDelta.x,this.projectionDelta.x),ds(this.prevProjectionDelta.y,this.projectionDelta.y)),Ct(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!As(this.projectionDelta.x,this.prevProjectionDelta.x)||!As(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=dt(),this.projectionDelta=dt(),this.projectionDeltaWithTransform=dt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=dt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,v=this.getStack(),g=!v||v.members.length<=1,T=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(ru));this.animationProgress=0;let y;this.mixTargetDelta=w=>{const S=w/1e3;Rs(h.x,r.x,S),Rs(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ne(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iu(this.relativeTarget,this.relativeTargetOrigin,f,S),y&&Bl(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=k()),G(y,this.relativeTarget)),p&&(this.animationValues=c,Nl(c,u,this.latestValues,S,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Zt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ct(0)),this.currentAnimation=Vr(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_l),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&Cr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const h=U(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=U(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}G(a,l),pt(a,c),Ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Hl),this.sharedNodes.get(r).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 r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&xe("z",r,u,this.animationValues);for(let c=0;c<Te.length;c++)xe(`rotate${Te[c]}`,r,u,this.animationValues),xe(`skew${Te[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=qt(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=qt(a?.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Ol(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in ze){if(c[m]===void 0)continue;const{correct:p,applyTo:v,isCSSVariable:g}=ze[m],T=h==="none"?c[m]:p(c[m],u);if(v){const y=v.length;for(let w=0;w<y;w++)r[v[w]]=T}else g?this.options.visualElement.renderState.vars[m]=T:r[m]=T}this.options.layoutId&&(r.pointerEvents=u===this?qt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ds),this.root.sharedNodes.clear()}}}function Xl(t){t.updateLayout()}function Yl(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,o=e.source!==t.layout.source;i==="size"?W(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=U(h);h.min=n[c].min,h.max=h.min+f}):Cr(i,e.layoutBox,n)&&W(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=U(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const r=dt();Ct(r,n,e.layoutBox);const a=dt();o?Ct(a,t.applyTransform(s,!0),e.measuredBox):Ct(a,n,e.layoutBox);const l=!Pr(r);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const d=k();ne(d,e.layoutBox,h.layoutBox);const m=k();ne(m,n,f.layoutBox),wr(d,m)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function ql(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 Zl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Jl(t){t.clearSnapshot()}function Ds(t){t.clearMeasurements()}function Cs(t){t.isLayoutDirty=!1}function Ql(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Es(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tu(t){t.resolveTargetDelta()}function eu(t){t.calcProjection()}function nu(t){t.resetSkewAndRotation()}function su(t){t.removeLeadSnapshot()}function Rs(t,e,n){t.translate=E(e.translate,0,n),t.scale=E(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ls(t,e,n,s){t.min=E(e.min,n.min,s),t.max=E(e.max,n.max,s)}function iu(t,e,n,s){Ls(t.x,e.x,n.x,s),Ls(t.y,e.y,n.y,s)}function ru(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ou={duration:.45,ease:[.4,0,.1,1]},ks=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Fs=ks("applewebkit/")&&!ks("chrome/")?Math.round:$;function Is(t){t.min=Fs(t.min),t.max=Fs(t.max)}function au(t){Is(t.x),Is(t.y)}function Cr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Rl(ws(e),ws(n),.2)}function lu(t){return t!==t.root&&t.scroll?.wasRoot}const uu=Dr({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Se={current:void 0},Er=Dr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Se.current){const t=new uu({});t.mount(window),t.setOptions({layoutScroll:!0}),Se.current=t}return Se.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ae=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function cu(t=!0){const e=P.useContext(qe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=P.useId();P.useEffect(()=>{if(t)return i(o)},[t]);const r=P.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Rr=P.createContext({strict:!1}),Bs={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 Os=!1;function hu(){if(Os)return;const t={};for(const e in Bs)t[e]={isEnabled:n=>Bs[e].some(s=>!!n[s])};sr(t),Os=!0}function Lr(){return hu(),il()}function fu(t){const e=Lr();for(const n in t)e[n]={...e[n],...t[n]};sr(e)}const du=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function se(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||du.has(t)}let kr=t=>!se(t);function mu(t){typeof t=="function"&&(kr=e=>e.startsWith("on")?!se(e):t(e))}try{mu(require("@emotion/is-prop-valid").default)}catch{}function pu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(kr(i)||n===!0&&se(i)||!e&&!se(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const le=P.createContext({});function gu(t,e){if(oe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||It(n)?n:void 0,animate:It(s)?s:void 0}}return t.inherit!==!1?e:{}}function yu(t){const{initial:e,animate:n}=gu(t,P.useContext(le));return P.useMemo(()=>({initial:e,animate:n}),[js(e),js(n)])}function js(t){return Array.isArray(t)?t.join(" "):t}const Vn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fr(t,e,n){for(const s in e)!I(e[s])&&!hr(s,n)&&(t[s]=e[s])}function vu({transformTemplate:t},e){return P.useMemo(()=>{const n=Vn();return An(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Tu(t,e){const n=t.style||{},s={};return Fr(s,n,t),Object.assign(s,vu(t,e)),s}function xu(t,e){const n={},s=Tu(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 Ir=()=>({...Vn(),attrs:{}});function Su(t,e,n,s){const i=P.useMemo(()=>{const o=Ir();return dr(o,e,pr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Fr(o,t.style,t),i.style={...o,...i.style}}return i}const Pu=["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 Mn(t){return typeof t!="string"||t.includes("-")?!1:!!(Pu.indexOf(t)>-1||/[A-Z]/u.test(t))}function wu(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Mn(t)?Su:xu)(e,s,i,t),u=pu(e,typeof t=="string",o),c=t!==P.Fragment?{...u,...l,ref:n}:{},{children:h}=e,f=P.useMemo(()=>I(h)?h.get():h,[h]);return P.createElement(t,{...c,children:f})}function Au({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:bu(n,s,i,t),renderState:e()}}function bu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=qt(o[f]);let{initial:r,animate:a}=t;const l=oe(t),u=nr(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!re(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=pn(t,f[d]);if(m){const{transitionEnd:p,transition:v,...g}=m;for(const T in g){let y=g[T];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(i[T]=y)}for(const T in p)i[T]=p[T]}}}return i}const Br=t=>(e,n)=>{const s=P.useContext(le),i=P.useContext(qe),o=()=>Au(t,e,s,i);return n?o():Qs(o)},Vu=Br({scrapeMotionValuesFromProps:bn,createRenderState:Vn}),Mu=Br({scrapeMotionValuesFromProps:gr,createRenderState:Ir}),Du=Symbol.for("motionComponentSymbol");function Cu(t,e,n){const s=P.useRef(n);P.useInsertionEffect(()=>{s.current=n});const i=P.useRef(null);return P.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const Or=P.createContext({});function Vt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Eu(t,e,n,s,i,o){const{visualElement:r}=P.useContext(le),a=P.useContext(Rr),l=P.useContext(qe),u=P.useContext(ae).reducedMotion,c=P.useRef(null),h=P.useRef(!1);s=s||a.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:o}),h.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));const f=c.current,d=P.useContext(Or);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ru(c.current,n,i,d);const m=P.useRef(!1);P.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const p=n[Ki],v=P.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return ei(()=>{h.current=!0,f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),v.current=!1),f.enteringChildren=void 0)}),f}function Ru(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:jr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Vt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function jr(t){if(t)return t.options.allowProjection!==!1?t.projection:jr(t.parent)}function Pe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&fu(s);const o=n?n==="svg":Mn(t),r=o?Mu:Vu;function a(u,c){let h;const f={...P.useContext(ae),...u,layoutId:Lu(u)},{isStatic:d}=f,m=yu(u),p=r(u,d);if(!d&&ti){ku();const v=Fu(f);h=v.MeasureLayout,m.visualElement=Eu(t,p,f,i,v.ProjectionNode,o)}return Me.jsxs(le.Provider,{value:m,children:[h&&m.visualElement?Me.jsx(h,{visualElement:m.visualElement,...f}):null,wu(t,u,Cu(p,m.visualElement,c),p,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=P.forwardRef(a);return l[Du]=t,l}function Lu({layoutId:t}){const e=P.useContext(Js).id;return e&&t!==void 0?e+"-"+t:t}function ku(t,e){P.useContext(Rr).strict}function Fu(t){const e=Lr(),{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 Iu(t,e){if(typeof Proxy>"u")return Pe;const n=new Map,s=(o,r)=>Pe(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Pe(r,void 0,t,e)),n.get(r))})}const Bu=(t,e)=>e.isSVG??Mn(t)?new yr(e):new fr(e,{allowProjection:t!==P.Fragment});class Ou extends st{constructor(e){super(e),e.animationState||(e.animationState=bl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();re(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 ju=0;class Nu extends st{constructor(){super(...arguments),this.id=ju++}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;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Uu={animation:{Feature:Ou},exit:{Feature:Nu}};function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}const Wu=t=>e=>xn(e)&&t(e,Wt(e));function Et(t,e,n,s){return Bt(t,e,Wu(n),s)}const Nr=({current:t})=>t?t.ownerDocument.defaultView:null,Ns=(t,e)=>Math.abs(t-e);function Ku(t,e){const n=Ns(t.x,e.x),s=Ns(t.y,e.y);return Math.sqrt(n**2+s**2)}const Us=new Set(["auto","scroll"]);class Ur{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=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;const d=Ae(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Ku(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:v}=d,{timestamp:g}=O;this.history.push({...v,timestamp:g});const{onStart:T,onMove:y}=this.handlers;m||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=we(m,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Ae(d.type==="pointercancel"?this.lastMoveEventInfo:we(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,T),v&&v(d,T)},!xn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=Wt(e),u=we(l,this.transformPagePoint),{point:c}=u,{timestamp:h}=O;this.history=[{...c,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Ae(u,this.history)),this.removeListeners=jt(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);(Us.has(s.overflowX)||Us.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),D.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),q(this.updatePoint)}}function we(t,e){return e?{point:e(t.point)}:t}function Ws(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ae({point:t},e){return{point:t,delta:Ws(t,Wr(e)),offset:Ws(t,$u(e)),velocity:Gu(e,.1)}}function $u(t){return t[0]}function Wr(t){return t[t.length-1]}function Gu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Wr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>_(e)));)n--;if(!s)return{x:0,y:0};const o=K(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Hu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?E(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?E(n,t,s.max):Math.min(t,n)),t}function Ks(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 _u(t,{top:e,left:n,bottom:s,right:i}){return{x:Ks(t.x,n,i),y:Ks(t.y,e,s)}}function $s(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 zu(t,e){return{x:$s(t.x,e.x),y:$s(t.y,e.y)}}function Xu(t,e){let n=.5;const s=U(t),i=U(e);return i>s?n=yt(e.min,e.max-s,t.min):s>i&&(n=yt(t.min,t.max-i,e.min)),Y(0,1,n)}function Yu(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 Xe=.35;function qu(t=Xe){return t===!1?t=0:t===!0&&(t=Xe),{x:Gs(t,"left","right"),y:Gs(t,"top","bottom")}}function Gs(t,e,n){return{min:Hs(t,e),max:Hs(t,n)}}function Hs(t,e){return typeof t=="number"?t:t[e]||0}const Zu=new WeakMap;class Ju{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n?(this.stopAnimation(),this.snapToCursor(Wt(h).point)):this.pauseAnimation()},r=(h,f)=>{this.stopAnimation();const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xa(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),W(g=>{let T=this.getAxisMotionValue(g).get()||0;if(X.test(T)){const{projection:y}=this.visualElement;if(y&&y.layout){const w=y.layout.layoutBox[g];w&&(T=U(w)*(parseFloat(T)/100))}}this.originPoint[g]=T}),p&&D.postRender(()=>p(h,f)),We(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=Qu(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),v&&v(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>W(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ur(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Nr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&D.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||!zt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Hu(r,this.constraints[e],this.elastic[e])),o.set(r)}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&&Vt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=_u(s.layoutBox,e):this.constraints=!1,this.elastic=qu(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&W(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Yu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Vt(e))return!1;const s=e.current;et(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ll(s,i.root,this.visualElement.getTransformPagePoint());let r=zu(i.layout.layoutBox,o);if(n){const a=n(rl(r));this.hasMutatedConstraints=!!a,a&&(r=or(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=W(c=>{if(!zt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return We(this.visualElement,e),s.start(mn(e,s,0,n,this.visualElement,!1))}stopAnimation(){W(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){W(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}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){W(n=>{const{drag:s}=this.getProps();if(!zt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-E(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Vt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};W(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Xu({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),W(r=>{if(!zt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(E(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Zu.set(this.visualElement,this);const e=this.visualElement.current,n=Et(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps(),h=l.target,f=h!==e&&Qi(h);u&&c&&!f&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const r=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(W(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Xe,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function zt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tc extends st{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new Ju(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}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 _s=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class ec extends st{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new Ur(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:_s(e),onStart:_s(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}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 be=!1;class nc extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),be&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Zt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),be=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Tn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;be=!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 Kr(t){const[e,n]=cu(),s=P.useContext(Js);return Me.jsx(nc,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(Or),isPresent:e,safeToRemove:n})}const sc={pan:{Feature:ec},drag:{Feature:tc,ProjectionNode:Er,MeasureLayout:Kr}};function zs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,Wt(e)))}class ic extends st{mount(){const{current:e}=this.node;e&&(this.unmount=Ya(e,(n,s)=>(zs(this.node,s,"Start"),i=>zs(this.node,i,"End"))))}unmount(){}}class rc extends st{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=jt(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xs(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),o=s[i];o&&D.postRender(()=>o(e,Wt(e)))}class oc extends st{mount(){const{current:e}=this.node;e&&(this.unmount=Ja(e,(n,s)=>(Xs(this.node,s,"Start"),(i,{success:o})=>Xs(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ye=new WeakMap,Ve=new WeakMap,ac=t=>{const e=Ye.get(t.target);e&&e(t)}
1,lc=t=>{t.forEach(ac)};function uc({root:t,...e}){const n=t||document;Ve.has(n)||Ve.set(n,{});const s=Ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(lc,{root:t,...e})),s[i]}function cc(t,e,n){const s=uc(e);return Ye.set(t,n),s.observe(t),()=>{Ye.delete(t),s.unobserve(t)}}const hc={some:0,all:1};class fc extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:hc[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return cc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(dc(e,n))&&this.startObserver()}unmount(){}}function dc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const mc={inView:{Feature:fc},tap:{Feature:oc},focus:{Feature:rc},hover:{Feature:ic}},pc={layout:{ProjectionNode:Er,MeasureLayout:Kr}},gc={...Uu,...mc,...sc,...pc},Wc=Iu(gc,Bu);function yc(t){const e=Qs(()=>ct(t)),{isStatic:n}=P.useContext(ae);if(n){const[,s]=P.useState(t);P.useEffect(()=>e.on("change",s),[])}return e}function vc(t,e){const n=yc(e()),s=()=>n.set(e());return s(),ei(()=>{const i=()=>D.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),q(s)}}),n}function Kc(t,...e){const n=t.length;function s(){let i="";for(let o=0;o<n;o++){i+=t[o];const r=e[o];r&&(i+=I(r)?r.get():r)}return i}return vc(e.filter(I),s)}function $c(t){const e=P.useRef(0),{isStatic:n}=P.useContext(ae);P.useEffect(()=>{if(n)return;const s=({timestamp:i,delta:o})=>{e.current||(e.current=i),t(i-e.current,o)};return D.update(s,!0),()=>q(s)},[t])}function Dn(t){return typeof t=="object"&&!Array.isArray(t)}function $r(t,e,n,s){return t==null?[]:typeof t=="string"&&Dn(e)?Xi(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function Tc(t,e,n){return t*(e+1)}function Ys(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function xc(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(Ot(t,i),s--)}}function Sc(t,e,n,s,i,o){xc(t,i,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:E(i,o,s[r]),easing:gi(n,r)})}function Pc(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function wc(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Ac="easeInOut",bc=20;function Vc(t,{defaultTransition:e={},...n}={},s,i){const o=e.duration||.3,r=new Map,a=new Map,l={},u=new Map;let c=0,h=0,f=0;for(let d=0;d<t.length;d++){const m=t[d];if(typeof m=="string"){u.set(m,h);continue}else if(!Array.isArray(m)){u.set(m.name,Ys(h,m.at,c,u));continue}let[p,v,g={}]=m;g.at!==void 0&&(h=Ys(h,g.at,c,u));let T=0;const y=(w,S,b,M=0,A=0)=>{const V=Mc(w),{delay:B=0,times:j=Li(V),type:ht=e.type||"keyframes",repeat:it,repeatType:ue,repeatDelay:ce=0,...Cn}=S;let{ease:C=e.ease||"easeOut",duration:L}=S;const z=typeof B=="function"?B(M,A):B,Z=V.length,Kt=fn(ht)?ht:i?.[ht||"keyframes"];if(Z<=2&&Kt){let St=100;if(Z===2&&Ec(V)){const Pt=V[1]-V[0];St=Math.abs(Pt)}const $t={...e,...Cn};L!==void 0&&($t.duration=_(L));const Gt=Ci($t,St,Kt);C=Gt.ease,L=Gt.duration}L??(L=o);const En=h+z;j.length===1&&j[0]===0&&(j[1]=1);const Rn=j.length-V.length;if(Rn>0&&Ri(j,Rn),V.length===1&&V.unshift(null),it){et(it<bc,"Repeat count too high, must be less than 20","repeat-count-high"),L=Tc(L,it);const St=[...V],$t=[...j];C=Array.isArray(C)?[...C]:[C];const Gt=[...C];for(let Pt=0;Pt<it;Pt++){V.push(...St);for(let wt=0;wt<St.length;wt++)j.push($t[wt]+(Pt+1)),C.push(wt===0?"linear":gi(Gt,wt-1))}Pc(j,it)}const Ln=En+L;
vendor: 2,437 bytes, line 1
1Sc(b,V,C,j,En,Ln),T=Math.max(z+L,T),f=Math.max(Ln,f)};if(I(p)){const w=qs(p,a);y(v,g,Zs("default",w))}else{const w=$r(p,v,s,l),S=w.length;for(let b=0;b<S;b++){v=v,g=g;const M=w[b],A=qs(M,a);for(const V in v)y(v[V],Dc(g,V),Zs(V,A),b,S)}}c=h,h+=T}return a.forEach((d,m)=>{for(const p in d){const v=d[p];v.sort(wc);const g=[],T=[],y=[];for(let M=0;M<v.length;M++){const{at:A,value:V,easing:B}=v[M];g.push(V),T.push(yt(0,f,A)),y.push(B||"easeOut")}T[0]!==0&&(T.unshift(0),g.unshift(g[0]),y.unshift(Ac)),T[T.length-1]!==1&&(T.push(1),g.push(null)),r.has(m)||r.set(m,{keyframes:{},transition:{}});const w=r.get(m);w.keyframes[p]=g;const{type:S,...b}=e;w.transition[p]={...b,duration:f,ease:y,times:T,...n}}}),r}function qs(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Zs(t,e){return e[t]||(e[t]=[]),e[t]}function Mc(t){return Array.isArray(t)?t:[t]}function Dc(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Cc=t=>typeof t=="number",Ec=t=>t.every(Cc);function Rc(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Sn(t)&&!tr(t)?new yr(e):new fr(e);n.mount(t),Ft.set(t,n)}function Lc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new pl(e);n.mount(t),Ft.set(t,n)}function kc(t,e){return I(t)||typeof t=="number"||typeof t=="string"&&!Dn(e)}function Gr(t,e,n,s){const i=[];if(kc(t,e))i.push(Vr(t,Dn(e)&&e.default||e,n&&(n.default||n)));else{if(t==null)return i;const o=$r(t,e,s),r=o.length;et(!!r,"No valid elements provided.","no-valid-elements");for(let a=0;a<r;a++){const l=o[a],u=l instanceof Element?Rc:Lc;Ft.has(l)||u(l);const c=Ft.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,r)),i.push(...yn(c,{...e,transition:h},{}))}}return i}function Fc(t,e,n){const s=[];return Vc(t,e,n,{spring:kt}).forEach(({keyframes:o,transition:r},a)=>{s.push(...Gr(a,o,r))}),s}function Ic(t){return Array.isArray(t)&&t.some(Array.isArray)}function Bc(t={}){const{scope:e,reduceMotion:n}=t;function s(i,o,r){let a=[],l;if(Ic(i))a=Fc(i,n!==void 0?{reduceMotion:n,...o}:o,e);else{const{onComplete:c,...h}=r||{};typeof c=="function"&&(l=c),a=Gr(i,o,n!==void 0?{reduceMotion:n,...h}:h,e)}const u=new pa(a);return l&&u.finished.then(l),e&&(e.animations.push(u),u.finished.then(()=>{Ot(e.animations,u)})),u}return s}const Gc=Bc();export{$c as a,Kc as b,Gc as c,Wc as m,yc as u};
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.