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