PageSourceSearch

https://www.bluettipower.eu/assets/proxy-L6UYu4R3.js

js bluettipower.eu collected 2026-10-03 20:05:21 UTC 105,763 bytes, 1 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.