PageSourceSearch

https://www.eqiqs.com/assets/vendor-motion-C3azNPMs.js

js eqiqs.com collected 2026-09-24 13:48:10 UTC 123,603 bytes, 9 lines download raw bytes

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

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.