1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[586],{1586:function(t,e,i){i.d(e,{g:function(){return nl}});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}var n=i(8948);let r={x:!1,y:!1};var a=i(9604),o=i(7041),l=i(6359),h=i(129);function u(t,e){return t?.[e]??t?.default??t}function d(t){t.duration=0,t.type="keyframes"}var c=i(9893),p=i(8640);let m=t=>1e3*t,f=t=>t/1e3;var y=i(5632);let v={layout:0,mainThread:0,waapi:0};var g=i(6506);let x=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>o.Wi.update(e,t),stop:()=>(0,o.Pn)(e),now:()=>o.frameData.isProcessing?o.frameData.timestamp:y.X.now()}},T=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function P(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var w=i(2782);function S(t,e,i){let s=Math.max(e-5,0);return(0,w.R)(i-t(s),e-s)}let A={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};function b(t,e){return t*Math.sqrt(1-e*e)}let D=["duration","bounce"],M=["stiffness","damping","mass"];function V(t,e){return e.some(e=>void 0!==t[e])}function E(t=A.visualDuration,e=A.bounce){let i;let s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:c,duration:y,velocity:v,isResolvedFromDuration:g}=function(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!V(t,M)&&V(t,D)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,p.u)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:A.mass,stiffness:s,damping:n}}else{let i=function({duration:t=A.duration,bounce:e=A.bounce,velocity:i=A.velocity,mass:s=A.mass}){let n,r;(0,h.K)(t<=m(A.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,p.u)(A.minDamping,A.maxDamping,a),t=(0,p.u)(A.minDuration,A.maxDuration,f(t)),a<1?(n=e=>{let s=e*a,n=s*t;return .001-(s-i)/b(e,a)*Math.exp(-n)},r=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=b(Math.pow(e,2),a);return(s*i+i-r)*Math.exp(-s)*(-n(e)+.001>0?-1:1)/o}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=m(t),isNaN(o))return{stiffness:A.stiffness,damping:A.damping,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:A.mass}).isResolvedFromDuration=!0}}return e}({...s,velocity:-f(s.velocity||0)}),x=v||0,w=d/(2*Math.sqrt(u*c)),E=o-a,C=f(Math.sqrt(u/c)),k=5>Math.abs(E);if(n||(n=k?A.restSpeed.granular:A.restSpeed.default),r||(r=k?A.restDelta.granular:A.restDelta.default),w<1){let t=b(C,w);i=e=>o-Math.exp(-w*C*e)*((x+w*C*E)/t*Math.sin(t*e)+E*Math.cos(t*e))}else if(1===w)i=t=>o-Math.exp(-C*t)*(E+(x+C*E)*t);else{let t=C*Math.sqrt(w*w-1);i=e=>{let i=Math.exp(-w*C*e),s=Math.min(t*e,300);return o-i*((x+w*C*E)*Math.sinh(s)+t*E*Math.cosh(s))/t}}let R={calculatedDuration:g&&y||null,next:t=>{let e=i(t);if(g)l.done=t>=y;else{let s=0===t?x:0;w<1&&(s=0===t?m(x):S(i,t,e));let a=Math.abs(s)<=n,h=Math.abs(o-e)<=r;l.done=a&&h}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(P(R),2e4),e=T(e=>R.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return R}function C({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==o&&t<o||void 0!==l&&t>l,y=t=>void 0===o?l:void 0===l?o:Math.abs(o-t)<Math.abs(l-t)?o:l,v=i*e,g=p+v,x=void 0===a?g:a(g);x!==g&&(v=x-p);let T=t=>-v*Math.exp(-t/s),P=t=>x+T(t),w=t=>{let e=T(t),i=P(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},A=t=>{f(m.value)&&(d=t,c=E({keyframes:[m.value,y(m.value)],velocity:S(P,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),A(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}E.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(P(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:f(n)}}(t,100,E);return t.ease=e.ease,t.duration=m(e.duration),t.type="keyframes",t};var k=i(1308);let R=(0,k._)(.42,0,1,1),L=(0,k._)(0,0,.58,1),j=(0,k._)(.42,0,.58,1),B=t=>Array.isArray(t)&&"number"!=typeof t[0],F=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,I=t=>e=>1-t(1-e),O=(0,k._)(.33,1.53,.69,.99),U=I(O),W=F(U),$=t=>(t*=2)<1?.5*U(t):.5*(2-Math.pow(2,-10*(t-1))),N=t=>1-Math.sin(Math.acos(t)),X=I(N),z=F(N),Y=t=>Array.isArray(t)&&"number"==typeof t[0],K={linear:n.Z,easeIn:R,easeInOut:j,easeOut:L,circIn:N,circInOut:z,circOut:X,backIn:U,backInOut:W,backOut:O,anticipate:$},H=t=>"string"==typeof t,_=t=>{if(Y(t)){(0,h.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return(0,k._)(e,i,s,n)}return H(t)?((0,h.k)(void 0!==K[t],`Invalid easing type '${t}
1'`,"invalid-easing-type"),K[t]):t};var G=i(9084),Z=i(7770);function q({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let n=B(s)?s.map(_):_(s),r={done:!1,value:e[0]},a=(i&&i.length===e.length?i:(0,Z.Y)(e)).map(e=>e*t),o=(0,G.s)(a,e,{ease:Array.isArray(n)?n:e.map(()=>n||j).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}let Q=t=>null!==t;function J(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(Q),a=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}let tt={decay:C,inertia:C,tween:q,keyframes:q,spring:E};function te(t){"string"==typeof t.type&&(t.type=tt[t.type])}class ti{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ts=t=>t/100;class tn extends ti{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==y.X.now()&&this.tick(y.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},v.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;te(t);let{type:e=q,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:a}=t,o=e||q;o!==q&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,c.z)(ts,(0,g.C)(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=P(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,T=i;if(u){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(T=r)),x=(0,p.u)(0,1,i)*a}let P=g?{done:!1,value:h[0]}:T.next(x);n&&(P.value=n(P.value));let{done:w}=P;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&m!==C&&(P.value=J(h,this.options,y,this.speed)),f&&f(P.value),S&&this.finish(),P}then(t,e){return this.finished.then(t,e)}get duration(){return f(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+f(t)}get time(){return f(this.currentTime)}set time(t){t=m(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(y.X.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=f(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=x,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(y.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,v.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tr=i(6113);let ta=t=>180*t/Math.PI,to=t=>th(ta(Math.atan2(t[1],t[0]))),tl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:to,rotateZ:to,skewX:t=>ta(Math.atan(t[1])),skewY:t=>ta(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},th=t=>((t%=360)<0&&(t+=360),t),tu=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),td=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tu,
1scaleY:td,scale:t=>(tu(t)+td(t))/2,rotateX:t=>th(ta(Math.atan2(t[6],t[5]))),rotateY:t=>th(ta(Math.atan2(-t[2],t[0]))),rotateZ:to,rotate:to,skewX:t=>ta(Math.atan(t[4])),skewY:t=>ta(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tp(t){return t.includes("scale")?1:0}function tm(t,e){let i,s;if(!t||"none"===t)return tp(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tc,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tl,s=e}if(!s)return tp(e);let r=i[e],a=s[1].split(",").map(ty);return"function"==typeof r?r(a):a[r]}let tf=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tm(i,e)};function ty(t){return parseFloat(t.trim())}var tv=i(9495),tg=i(1280);let tx=t=>t===tg.Rx||t===a.px,tT=new Set(["x","y","z"]),tP=tv._.filter(t=>!tT.has(t)),tw={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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})=>tm(e,"x"),y:(t,{transform:e})=>tm(e,"y")};tw.translateX=tw.x,tw.translateY=tw.y;let tS=new Set,tA=!1,tb=!1,tD=!1;function tM(){if(tb){let t=Array.from(tS).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tP.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tb=!1,tA=!1,tS.forEach(t=>t.complete(tD)),tS.clear()}function tV(){tS.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tb=!0)})}class tE{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tS.add(this),tA||(tA=!0,o.Wi.read(tV),o.Wi.resolveKeyframes(tM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tS.delete(this)}cancel(){"scheduled"===this.state&&(tS.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tC=t=>t.startsWith("--");var tk=i(2345),tR=i(91),tL=i(9073);let tj={},tB=function(t,e){let i=(0,tL.X)(t);return()=>tj[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tF=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,tI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tF([0,.65,.55,1]),circOut:tF([.55,0,1,.45]),backIn:tF([.31,.01,.66,-.59]),backOut:tF([.33,1.53,.69,.99])};function tO(t){return"function"==typeof t&&"applyToOptions"in t}class tU extends ti{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,(0,h.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return tO(t)&&tB()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?tB()?T(e,i):"ease-out":Y(e)?tF(e):Array.isArray(e)?e.map(e=>t(e,i)||tI.easeOut):tI[e]}(o,n);Array.isArray(d)&&(u.easing=d),tR.f.value&&v.waapi++;let c={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return tR.f.value&&p.finished.finally(()=>{v.waapi--}),p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=J(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):tC(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return f(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+f(t)}get time(){return f(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=m(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,tk.t)())?(this.animation.timeline=t,n.Z):e(this)}}let tW={anticipate:$,backInOut:W,circInOut:z};class t$ extends tU{constructor(t){"string"==typeof t.ease&&t.ease in tW&&(t.ease=tW[t.ease]),te(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new tn({...r,autoplay:!1}),o=m(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}var tN=i(7957);let tX=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.P.test(t)||"0"===t)&&!t.startsWith("url(")),tz=new Set(["opacity","clipPath","filter","transform"]),tY=(0,tL.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tK extends ti{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=y.X.now();let d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||tE;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:c}=i;
1this.resolvedAt=y.X.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=tX(n,e),o=tX(r,e);return(0,h.K)(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||tO(i))&&s)}(t,r,a,o)&&((tr.c.instantAnimations||!l)&&c?.(J(t,i,e)),t[0]=t[t.length-1],d(i),i.repeat=0);let p={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=!u&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tY()&&i&&tz.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(p)?new t$({...p,element:p.motionValue.owner.current}):new tn(p);m.finished.then(()=>this.notifyFinished()).catch(n.Z),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tD=!0,tV(),tM(),tD=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let tH=t=>null!==t,t_={type:"spring",stiffness:500,damping:25,restSpeed:10},tG=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tZ={type:"keyframes",duration:.8},tq={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tQ=(t,{keyframes:e})=>e.length>2?tZ:tv.G.has(t)?t.startsWith("scale")?tG(e[1]):t_:tq,tJ=(t,e,i,s={},n,r)=>a=>{let l=u(s,t)||{},h=l.delay||s.delay||0,{elapsed:c=0}=s;c-=m(h);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(p,tQ(t,p)),p.duration&&(p.duration=m(p.duration)),p.repeatDelay&&(p.repeatDelay=m(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let f=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(d(p),0!==p.delay||(f=!0)),(tr.c.instantAnimations||tr.c.skipAnimations)&&(f=!0,d(p),p.delay=0),p.allowFlatten=!l.type&&!l.ease,f&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(tH),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(p.keyframes,l);if(void 0!==t){o.Wi.update(()=>{p.onUpdate(t),p.onComplete()});return}}return l.isSync?new tn(p):new tK(p)};function t0(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let t1=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function t2(t){return{point:{x:t.pageX,y:t.pageY}}}let t5=t=>e=>t1(e)&&t(e,t2(e));function t9(t,e,i,s){return t0(t,e,t5(i),s)}function t3({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function t4(t){return t.max-t.min}function t6(t,e,i,s=.5){t.origin=s,t.originPoint=(0,l.t)(e.min,e.max,t.origin),t.scale=t4(i)/t4(e),t.translate=(0,l.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function t8(t,e,i,s){t6(t.x,e.x,i.x,s?s.originX:void 0),t6(t.y,e.y,i.y,s?s.originY:void 0)}
1function t7(t,e,i){t.min=i.min+e.min,t.max=t.min+t4(e)}function et(t,e,i){t.min=e.min-i.min,t.max=t.min+t4(e)}function ee(t,e,i){et(t.x,e.x,i.x),et(t.y,e.y,i.y)}let ei=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:ei(),y:ei()}),en=()=>({min:0,max:0}),er=()=>({x:en(),y:en()});function ea(t){return[t("x"),t("y")]}function eo(t){return void 0===t||1===t}function el({scale:t,scaleX:e,scaleY:i}){return!eo(t)||!eo(e)||!eo(i)}function eh(t){return el(t)||eu(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eu(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ed(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function ec(t,e=0,i=1,s,n){t.min=ed(t.min,e,i,s,n),t.max=ed(t.max,e,i,s,n)}function ep(t,{x:e,y:i}){ec(t.x,e.translate,e.scale,e.originPoint),ec(t.y,i.translate,i.scale,i.originPoint)}function em(t,e){t.min=t.min+e,t.max=t.max+e}function ef(t,e,i,s,n=.5){let r=(0,l.t)(t.min,t.max,n);ec(t,e,i,r,s)}function ey(t,e){ef(t.x,e.x,e.scaleX,e.scale,e.originX),ef(t.y,e.y,e.scaleY,e.scale,e.originY)}function ev(t,e){return t3(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let eg=({current:t})=>t?t.ownerDocument.defaultView:null;var ex=i(3026),eT=i(1741);function eP(t,e){let i=t.getValue("willChange");if((0,eT.i)(i)&&i.add)return i.add(e);if(!i&&tr.c.WillChange){let i=new tr.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ew=(t,e)=>Math.abs(t-e);class eS{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eD(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(ew(t.x,e.x)**2+ew(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=o.frameData;this.history.push({...r,timestamp:a});let{onStart:l,onMove:h}=this.handlers;s||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eA(e,this.transformPagePoint),o.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eD("pointercancel"===t.type?this.lastMoveEventInfo:eA(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!t1(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;let a=eA(t2(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=o.frameData;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,eD(a,this.history)),this.removeListeners=(0,c.z)(t9(this.contextWindow,"pointermove",this.handlePointerMove),t9(this.contextWindow,"pointerup",this.handlePointerUp),t9(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,o.Pn)(this.updatePoint)}}function eA(t,e){return e?{point:e(t.point)}:t}function eb(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eD({point:t},e){return{point:t,delta:eb(t,eM(e)),offset:eb(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=eM(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>m(.1)));)i--;if(!s)return{x:0,y:0};let r=f(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let a={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function eM(t){return t[t.length-1]}var eV=i(1104);function eE(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function eC(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function ek(t,e,i){return{min:eR(t,e),max:eR(t,i)}}function eR(t,e){return"number"==typeof t?t:t[e]||0}let eL=new WeakMap;class ej{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=er(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new eS(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(t2(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?r[i]?null:(r[i]=!0,()=>{r[i]=!1}):r.x||r.y?null:(r.x=r.y=!0,()=>{r.x=r.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ea(t=>{let e=this.getAxisMotionValue(t).get()||0;if(a.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=t4(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&o.Wi.postRender(()=>n(t,e)),eP(this.visualElement,"transform");let{animationState:l}=this.visualElement;l&&l.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>ea(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,distanceThreshold:i,contextWindow:eg(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&o.Wi.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!eB(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,l.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,l.t)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,ex.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:eE(t.x,i,n),y:eE(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ek(t,"left","right"),y:ek(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ea(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,ex.I)(e))return!1;let s=e.current;(0,h.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let r=function(t,e,i){let s=ev(t,i),{scroll:n}=e;return n&&(em(s.x,n.offset.x),em(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a={x:eC((t=n.layout.layoutBox).x,r.x),y:eC(t.y,r.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=t3(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(ea(a=>{if(!eB(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return eP(this.visualElement,t),i.start(tJ(t,i,0,e,this.visualElement,!1))}stopAnimation(){ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ea(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ea(e=>{let{drag:i}=this.getProps();if(!eB(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-(0,l.t)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,ex.I)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ea(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=t4(t),n=t4(e);return n>s?i=(0,eV.Y)(e.min,e.max-s,t.min):s>n&&(i=(0,eV.Y)(t.min,t.max-n,e.min)),(0,p.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ea(e=>{if(!eB(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,l.t)(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;eL.set(this.visualElement,this);let t=t9(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,ex.I)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),o.Wi.read(e);let n=t0(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ea(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function eB(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eF extends s{constructor(t){super(t),this.removeGroupControls=n.Z,this.removeListeners=n.Z,this.controls=new ej(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||n.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let eI=t=>(e,i)=>{t&&o.Wi.postRender(()=>t(e,i))};class eO extends s{constructor(){super(...arguments),this.removePointerDownListener=n.Z}onPointerDown(t){this.session=new eS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eg(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eI(t),onStart:eI(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&o.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=t9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eU=i(1549);let{schedule:eW,cancel:e$}=(0,i(4152).Z)(queueMicrotask,!1);var eN=i(4194),eX=i(6068),ez=i(8150),eY=i(9670);let eK={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eH(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e_={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!a.px.test(t))return t;t=parseFloat(t)}let i=eH(t,e.target.x),s=eH(t,e.target.y);return`${i}% ${s}%`}};var eG=i(1905);let eZ=!1;class eq extends eN.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,eG.B)(eJ),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),eZ&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),eK.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,eZ=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent===n||(n?r.promote():r.relegate()||o.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),eW.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;eZ=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eQ(t){let[e,i]=(0,eX.oO)(),s=(0,eN.useContext)(ez.p);return(0,eU.jsx)(eq,{...t,layoutGroup:s,switchLayoutGroup:(0,eN.useContext)(eY.g),isPresent:e,safeToRemove:i})}let eJ={borderRadius:{...e_,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e_,borderTopRightRadius:e_,borderBottomLeftRadius:e_,borderBottomRightRadius:e_,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tN.P.parse(t);if(s.length>5)return t;let n=tN.P.createTransformer(t),r="number"!=typeof s[0]?1:0,a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=o;let h=(0,l.t)(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=h),"number"==typeof s[3+r]&&(s[3+r]/=h),n(s)}}};var e0=i(3456),e1=i(6153),e2=i(1822),e5=i(747);function e9(t){return t.props[e5.M]}var e3=i(8424);let e4=(t,e)=>t.depth-e.depth;class e6{constructor(){this.children=[],this.isDirty=!1}add(t){(0,e3.y4)(this.children,t),this.isDirty=!0}remove(t){(0,e3.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e4),this.isDirty=!1,this.children.forEac
1h(t)}}var e8=i(3240);let e7=["TopLeft","TopRight","BottomLeft","BottomRight"],it=e7.length,ie=t=>"string"==typeof t?parseFloat(t):t,ii=t=>"number"==typeof t||a.px.test(t);function is(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ir=io(0,.5,X),ia=io(.5,.95,n.Z);function io(t,e,i){return s=>s<t?0:s>e?1:i((0,eV.Y)(t,e,s))}function il(t,e){t.min=e.min,t.max=e.max}function ih(t,e){il(t.x,e.x),il(t.y,e.y)}function iu(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function id(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function ic(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(a.aQ.test(e)&&(e=parseFloat(e),e=(0,l.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let h=(0,l.t)(r.min,r.max,s);t===r&&(h-=e),t.min=id(t.min,e,i,h,n),t.max=id(t.max,e,i,h,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let ip=["x","scaleX","originX"],im=["y","scaleY","originY"];function iy(t,e,i,s){ic(t.x,e,ip,i?i.x:void 0,s?s.x:void 0),ic(t.y,e,im,i?i.y:void 0,s?s.y:void 0)}function iv(t){return 0===t.translate&&1===t.scale}function ig(t){return iv(t.x)&&iv(t.y)}function ix(t,e){return t.min===e.min&&t.max===e.max}function iT(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iP(t,e){return iT(t.x,e.x)&&iT(t.y,e.y)}function iw(t){return t4(t.x)/t4(t.y)}function iS(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iA{constructor(){this.members=[]}add(t){(0,e3.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,e3.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let ib={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iD=["","X","Y","Z"],iM=0;function iV(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function iE({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=iM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tR.f.value&&(ib.nodes=ib.calculatedTargetDeltas=ib.calculatedProjections=0),this.nodes.forEach(iR),this.nodes.forEach(iU),this.nodes.forEach(iW),this.nodes.forEach(iL),tR.f.addProjectionMetrics&&tR.f.addProjectionMetrics(ib)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new e6)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e2.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,e0.v)(e)&&(!(0,e0.v)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i;let s=0,n=()=>this.root.updateBlockedByResize=!1;o.Wi.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==s&&(s=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=y.X.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,o.Pn)(s),t(n-250))};return o.Wi.setup(s,!0),()=>(0,o.Pn)(s)}(n,0),eK.hasAnimatedSinceResize&&(eK.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(iO)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||iK,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!iP(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...u(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||iO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,o.Pn)(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(i$),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=e9(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",o.Wi,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iB);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(iF);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iI),this.nodes.forEach(iC),this.nodes.forEach(ik)):this.nodes.forEach(iF),this.clearAllSnapshots();let t=y.X.now();o.frameData.delta=(0,p.u)(0,1e3/60,t-o.frameData.timestamp),o.frameData.timestamp=t,o.frameData.isProcessing=!0,o.yL.update.process(o.frameData),o.yL.preRender.process(o.frameData),o.yL.render.process(o.frameData),o.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eW.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ij),this.sharedNodes.forEach(iN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,o.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){o.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||t4(this.snapshot.measuredBox.x)||t4(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ig(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||eh(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);
1return t&&(s=this.removeTransform(s)),iG((e=s).x),iG(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return er();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(iq))){let{scroll:t}=this.root;t&&(em(e.x,t.offset.x),em(e.y,t.offset.y))}return e}removeElementScroll(t){let e=er();if(ih(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&ih(e,t),em(e.x,n.offset.x),em(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=er();ih(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ey(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),eh(s.latestValues)&&ey(i,s.latestValues)}return eh(this.latestValues)&&ey(i,this.latestValues),i}removeTransform(t){let e=er();ih(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eh(i.latestValues))continue;el(i.latestValues)&&i.updateSnapshot();let s=er();ih(s,i.measurePageBox()),iy(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return eh(this.latestValues)&&iy(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==o.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(this.layout&&(s||n)){if(this.resolvedRelativeTargetAt=o.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),ee(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ih(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=er(),this.targetWithTransforms=er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,l;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,t7(r.x,a.x,l.x),t7(r.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ih(this.target,this.layout.layoutBox),ep(this.target,this.targetDelta)):ih(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),ee(this.relativeTargetOrigin,this.target,t.target),ih(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tR.f.value&&ib.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||el(this.parent.latestValues)||eu(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===o.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;ih(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,r;let a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ey(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ep(t,r)),s&&eh(n.latestValues)&&ey(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=er());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iu(this.prevProjectionDelta.x,this.projectionDelta.x),iu(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),t8(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&iS(this.projectionDelta.x,this.prevProjectionDelta.x)&&iS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tR.f.value&&ib.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=es();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let h=er(),u=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),d=this.getStack(),c=!d||d.members.length<=1,p=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(iY));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(iX(o.x,t.x,s),iX(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var d,m,f,y;ee(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,y=this.relativeTargetOrigin,iz(f.x,y.x,h.x,s),iz(f.y,y.y,h.y,s),i&&(d=this.relativeTarget,m=i,ix(d.x,m.x)&&ix(d.y,m.y))&&(this.isProjectionDirty=!1),i||(i=er()),ih(i,this.relativeTarget)}u&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,l.t)(0,i.opacity??1,ir(s)),t.opacityExit=(0,l.t)(e.opacity??1,0,ia(s))):r&&(t.opacity=(0,l.t)(e.opacity??1,i.opacity??1,s));for(let n=0;n<it;n++){let r=`border${e7[n]}Radius`,o=is(e,r),h=is(i,r);(void 0!==o||void 0!==h)&&(o||(o=0),h||(h=0),0===o||0===h||ii(o)===ii(h)?(t[r]=Math.max((0,l.t)(ie(o),ie(h),s),0),(a.aQ.test(h)||a.aQ.test(o))&&(t[r]+="%")):t[r]=h)}(e.rotate||i.rotate)&&(t.rotate=(0,l.t)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,p,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,o.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=o.Wi.update(()=>
1{eK.hasAnimatedSinceResize=!0,v.layout++,this.motionValue||(this.motionValue=(0,e1.BX)(0)),this.currentAnimation=function(t,e,i){let s=(0,eT.i)(t)?t:(0,e1.BX)(t);return s.start(tJ("",s,e,i)),s.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{v.layout--},onComplete:()=>{v.layout--,t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&iZ(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||er();let e=t4(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=t4(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}ih(e,i),ey(e,n),t8(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iA),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&iV("z",t,s,this.animationValues);for(let e=0;e<iD.length;e++)iV(`rotate${iD[e]}`,t,s,this.animationValues),iV(`skew${iD[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,e8.b)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,e8.b)(e?.pointerEvents)||""),this.hasProjected&&!eh(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,eG.P){if(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eG.P[e],l="none"===r?n[e]:i(n[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,e8.b)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(iB),this.root.sharedNodes.clear()}}}function iC(t){t.updateLayout()}function ik(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?ea(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=t4(s);s.min=i[t].min,s.max=s.min+n}):iZ(n,e.layoutBox,i)&&ea(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],a=t4(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=es();t8(a,i,e.layoutBox);let o=es();r?t8(o,t.applyTransform(s,!0),e.measuredBox):t8(o,i,e.layoutBox);let l=!ig(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=er();ee(a,e.layoutBox,n.layoutBox);let o=er();ee(o,i,r.layoutBox),iP(a,o)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iR(t){tR.f.value&&ib.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iL(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ij(t){t.clearSnapshot()}function iB(t){t.clearMeasurements()}function iF(t){t.isLayoutDirty=!1}function iI(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iO(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iU(t){t.resolveTargetDelta()}function iW(t){t.calcProjection()}function i$(t){t.resetSkewAndRotation()}function iN(t){t.removeLeadSnapshot()}function iX(t,e,i){t.translate=(0,l.t)(e.translate,0,i),t.scale=(0,l.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iz(t,e,i,s){t.min=(0,l.t)(e.min,i.min,s),t.max=(0,l.t)(e.max,i.max,s)}function iY(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iK={duration:.45,ease:[.4,0,.1,1]},iH=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),i_=iH("applewebkit/")&&!iH("chrome/")?Math.round:n.Z;function iG(t){t.min=i_(t.min),t.max=i_(t.max)}function iZ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iw(e)-iw(i)))}function iq(t){return t!==t.root&&t.scroll?.wasRoot}let iQ=iE({attachResizeListener:(t,e)=>t0(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iJ={current:void 0},i0=iE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iJ.current){let t=new iQ({});t.mount(window),t.setOptions({layoutScroll:!0}),iJ.current=t}return iJ.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var i1=i(1853),i2=i(2126);function i5(t,e,i){let s=t.getProps();return(0,i2.o)(s,e,void 0!==i?i:s.custom,t)}let i9=new Set(["width","height","top","left","right","bottom",...tv._]),i3=t=>Array.isArray(t);function i4(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(r=s);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let s=t.getValue(e,t.latestValues[e]??null),n=l[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let a={delay:i,...u(r||{},e)},c=s.get();if(void 0!==c&&!s.isAnimating&&!Array.isArray(n)&&n===c&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=e9(t);if(i){let t=window.MotionHandoffAnimation(i,e,o.Wi);null!==t&&(a.startTime=t,p=!0)}}eP(t,e),s.start(tJ(e,s,n,t.shouldReduceMotion&&i9.has(e)?{type:!1}:a,t,p));let m=s.animation;m&&h.push(m)}return a&&Promise.all(h).then(()=>{o.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=i5(t,e)||{};for(let e in n={...n,...i}){var r;let i=i3(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,e1.BX)(i))}}(t,a)})}),h}function i6(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function i8(t,e,i={}){let s=i5(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(i4(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(i8(l,e,{...a,delay:i+("function"==typeof s?0:s)+i6(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}function i7(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}var st=i(4242),se=i(2696);let si=se.V.length,ss=[...se.e].reverse(),sn=se.e.length;function sr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sa(){return{animate:sr(!0),whileInView:sr(),whileHover:sr(),whileTap:sr(),whileDrag:sr(),whileFocus:sr(),exit:sr()}}class so extends s{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>i8(t,e,i)));else if("string"==typeof e)s=i8(t,e,i);else{let n="function"==typeof e?i5(t,e,i.custom):e;s=Promise.all(i4(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sa(),s=!0,n=e=>(i,s)=>{let n=i5(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function r(r){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<si;t++){let s=se.V[t],n=e.props[s];((0,st.$)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<sn;e++){var c;let p=ss[e],m=i[p],f=void 0!==a[p]?a[p]:o[p],y=(0,st.$)(f),v=p===r?m.isActive:null;!1===v&&(d=e);let g=f===o[p]&&f!==a[p]&&y;if(g&&s&&t.manuallyAnimateOnMount&&(g=!1),m.protectedKeys={...u},!m.isActive&&null===v||!f&&!m.prevProp||(0,i1.H)(f)||"boolean"==typeof f)continue;let x=(c=m.prevProp,"string"==typeof f?f!==c:!!Array.isArray(f)&&!i7(f,c)),T=x||p===r&&m.isActive&&!g&&y||e>d&&y,P=!1,w=Array.isArray(f)?f:[f],S=w.reduce(n(p),{});!1===v&&(S={});let{prevResolvedValues:A={}}=m,b={...A,...S},D=e=>{T=!0,h.has(e)&&(P=!0,h.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in b){let e=S[t],i=A[t];if(!u.hasOwnProperty(t))(i3(e)&&i3(i)?i7(e,i):e===i)?void 0!==e&&h.has(t)?D(t):m.protectedKeys[t]=!0:null!=e?D(t):h.add(t)}m.prevProp=f,m.prevResolvedValues=S,m.isActive&&(u={...u,...S}),s&&t.blockInitialAnimation&&(T=!1);let M=g&&x,V=!M||P;T&&V&&l.push(...w.map(e=>{let i={type:p};if("string"==typeof e&&s&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=i5(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=i6(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=i5(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let p=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sa()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,i1.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sl=0;class sh extends s{constructor(){super(...arguments),this.id=sl++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var su=i(437);function sd(t,e){let i=(0,su.I)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function sc(t){return!("touch"===t.pointerType||r.x||r.y)}function sp(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&o.Wi.postRender(()=>n(e,t2(e)))}class sm extends s{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=sd(t,i),a=t=>{if(!sc(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{sc(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",a,n)}),r}(t,(t,e)=>(sp(this.node,e,"Start"),t=>sp(this.node,t,"End"))))}unmount(){}}class sf extends s{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=(0,c.z)(t0(this.node.current,"focus",()=>this.onFocus()),t0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sy=i(7344);let sv=(t,e)=>!!e&&(t===e||sv(t,e.parentElement)),sg=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sx=new WeakSet;function sT(t){return e=>{"Enter"===e.key&&t(e)}}function sP(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sw=(t,e)=>{let i=t.currentTarget;if(!i)return;let s=sT(()=>{if(sx.has(i))return;sP(i,"down");let t=sT(()=>{sP(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sP(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function sS(t){return t1(t)&&!(r.x||r.y)}function sA(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&o.Wi.postRender(()=>n(e,t2(e)))}class sb extends s{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=sd(t,i),a=t=>{let s=t.currentTarget;if(!sS(t))return;sx.add(s);let r=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sx.has(s)&&sx.delete(s),sS(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,s===window||s===document||i.useGlobalTarget||sv(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),(0,sy.R)(t)&&(t.addEventListener("focus",t=>sw(t,n)),sg.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(sA(this.node,e,"Start"),(t,{success:e})=>sA(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sD=new WeakMap,sM=new WeakMap,sV=t=>{let e=sD.get(t.target);e&&e(t)},sE=t=>{t.forEach(sV)},sC={some:0,all:1};class sk extends s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:sC[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;sM.has(i)||sM.set(i,{});let s=sM.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(sE,{root:t,...e})),s[n]}(e);return sD.set(t,i),s.observe(t),()=>{sD.delete(t),s.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var sR=i(8217);let sL=t=>e=>e.test(t),sj=[tg.Rx,a.px,a.aQ,a.RW,a.vw,a.vh,{test:t=>"auto"===t,parse:t=>t}],sB=t=>sj.find(sL(t)),sF=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),sI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,sO=t=>/^0[^.\s]+$/u.test(t);var sU=i(9282);let sW=new Set(["brightness","contrast","saturate","opacity"]);function s$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(sU.K)||[];if(!s)return t;let n=i.replace(s,""),r=sW.has(e)?1:0;return s!==i&&(r*=100),e+"("+r+n+")"}let sN=/\b([a-z-]*)\(.*?\)/gu,sX={...tN.P,getAnimatableNone:t=>{let e=t.match(sN);return e?e.map(s$).join(" "):t}};
1var sz=i(7176);let sY={...i(5541).j,color:sz.$,backgroundColor:sz.$,outlineColor:sz.$,fill:sz.$,stroke:sz.$,borderColor:sz.$,borderTopColor:sz.$,borderRightColor:sz.$,borderBottomColor:sz.$,borderLeftColor:sz.$,filter:sX,WebkitFilter:sX},sK=t=>sY[t];function sH(t,e){let i=sK(t);return i!==sX&&(i=tN.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let s_=new Set(["auto","none","0"]);class sG extends tE{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,sR.t)(s))){let n=function t(e,i,s=1){(0,h.k)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=sI.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return sF(t)?parseFloat(t):t}return(0,sR.t)(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!i9.has(i)||2!==t.length)return;let[s,n]=t,r=sB(s),a=sB(n);if(r!==a){if(tx(r)&&tx(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tw[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;(null===t[e]||("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||sO(s)))&&i.push(e)}i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!s_.has(e)&&(0,tN.V)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=sH(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=tw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let sZ=[...sj,sz.$,tN.P],sq=t=>sZ.find(sL(t));var sQ=i(80),sJ=i(57);let s0={current:null},s1={current:!1},s2=new WeakMap;var s5=i(4269);let s9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class s3{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tE,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=()=>{let t=y.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,o.Wi.render(this.render,!1,!0))};let{latestValues:l,renderState:h}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=(0,s5.G)(e),this.isVariantNode=(0,s5.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&(0,eT.i)(e)&&e.set(l[t])}}mount(t){this.current=t,s2.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),s1.current||function(){if(s1.current=!0,sJ.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s0.current=t.matches;t.addEventListener("change",e),e()}else s0.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s0.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,o.Pn)(this.notifyUpdate),(0,o.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=tv.G.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&o.Wi.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in sQ.featureDefinitions){let e=sQ.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):er()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<s9.length;e++){let i=s9[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if((0,eT.i)(n))t.addValue(s,n);else if((0,eT.i)(r))t.addValue(s,(0,e1.BX)(n,{owner:t}));else if(r!==n){if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,e1.BX)(void 0!==e?e:n,{owner:t}))}}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,e1.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(sF(i)||sO(i))?i=parseFloat(i):!sq(i)&&tN.P.test(e)&&(i=sH(t,e)),this.setBaseTarget(t,(0,eT.i)(i)?i.get():i)),(0,eT.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=(0,i2.o)(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,eT.i)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new e2.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){eW.render(this.render)}}class s4 extends s3{constructor(){super(...arguments),this.KeyframeResolver=sG}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,eT.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var s6=i(8909);function s8(t,{style:e,vars:i},s,n){let r;let a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}var s7=i(1472);class nt extends s4{constructor(){super(...arguments),this.type="html",this.renderInstance=s8}readValueFromInstance(t,e){if(tv.G.has(e))return this.projection?.isProjecting?tp(e):tf(t,e);{let i=window.getComputedStyle(t),s=((0,sR.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ev(t,e)}build(t,e,i){(0,s6.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,s7.U)(t,e,i)}}var ne=i(7030),ni=i(3993);let ns=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"]);var nn=i(9099),nr=i(4353);class na extends s4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=er}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(tv.G.has(e)){let t=sK(e);return t&&t.default||0}return e=ns.has(e)?e:(0,ne.D)(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return(0,nr.U)(t,e,i)}build(t,e,i){(0,ni.i)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){!function(t,e,i,s){for(let i in s8(t,e,void 0,s),e.attrs)t.setAttribute(ns.has(i)?i:(0,ne.D)(i),e.attrs[i])}(t,e,0,s)}mount(t){this.isSVGTag=(0,nn.a)(t.tagName),super.mount(t)}}var no=i(8510);let nl={renderer:(t,e)=>(0,no.q)(t)?new na(e):new nt(e,{allowProjection:t!==eN.Fragment}),animation:{Feature:so},exit:{Feature:sh},inView:{Feature:sk},tap:{Feature:sb},focus:{Feature:sf},hover:{Feature:sm},pan:{Feature:eO},drag:{Feature:eF,ProjectionNode:i0,MeasureLayout:eQ},layout:{ProjectionNode:i0,MeasureLayout:eQ}}}}]);
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.