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