%PDF- %PDF-
Direktori : /home/opti/www/clear-wage-landing-page.optisoft.com.ng/server/chunks/ |
Current File : /home/opti/www/clear-wage-landing-page.optisoft.com.ng/server/chunks/555.js |
"use strict";exports.id=555,exports.ids=[555],exports.modules={8016:(t,e,i)=>{i.d(e,{_:()=>u});var s=i(4673),r=i(8890),n=i(5391);function o(t,e){[...e].reverse().forEach(i=>{let s=t.getVariant(i);s&&(0,r.C)(t,s),t.variantChildren&&t.variantChildren.forEach(t=>{o(t,e)})})}function a(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,r){(0,s.k)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return e.forEach(t=>{o.push((0,n.d)(t,i,{transitionOverride:r}))}),Promise.all(o)},set:i=>((0,s.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{Array.isArray(i)?o(t,i):"string"==typeof i?o(t,[i]):(0,r.C)(t,i)})),stop(){e.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}var l=i(7977),h=i(2482);let u=function(){let t=(0,l.h)(a);return(0,h.L)(t.mount,[]),t}},67:(t,e,i)=>{i.d(e,{v:()=>tE});var s=i(8968),r=i(285);let n={type:"spring",stiffness:500,damping:25,restSpeed:10},o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h=(t,{keyframes:e})=>e.length>2?a:r.G.has(t)?t.startsWith("scale")?o(e[1]):n:l;var u=i(3986),d=i(8250);let c={current:!1},p=t=>null!==t;function m(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(p),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}var f=i(5386),v=i(8111),g=i(5696),y=i(4380),x=i(8459),P=i(4673),w=i(282);let b=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(w.P.test(t)||"0"===t)&&!t.startsWith("url("));class T{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,x.m)(),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;let n=t[t.length-1],o=b(r,e),a=b(n,e);return(0,P.K)(o===a,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(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&&s)}(t,i,s,r)){if(c.current||!n){null==a||a(m(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}this.options.duration=0}let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}var S=i(8702);function A(t,e,i){let s=Math.max(e-5,0);return(0,S.R)(i-t(s),e-s)}var V=i(2361);function E(t,e){return t*Math.sqrt(1-e*e)}let C=["duration","bounce"],M=["stiffness","damping","mass"];function R(t,e){return e.some(e=>void 0!==t[e])}function D({keyframes:t,restDelta:e,restSpeed:i,...r}){let n;let o=t[0],a=t[t.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!R(t,M)&&R(t,C)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,o;(0,P.K)(t<=(0,s.w)(10),"Spring duration must be 10 seconds or less");let a=1-e;a=(0,V.u)(.05,1,a),t=(0,V.u)(.01,10,(0,s.X)(t)),a<1?(n=e=>{let s=e*a,r=s*t;return .001-(s-i)/E(e,a)*Math.exp(-r)},o=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=E(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),o=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,o,5/t);if(t=(0,s.w)(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-(0,s.X)(r.velocity||0)}),f=p||0,v=u/(2*Math.sqrt(h*d)),g=a-o,y=(0,s.X)(Math.sqrt(h/d)),x=5>Math.abs(g);if(i||(i=x?.01:2),e||(e=x?.005:.5),v<1){let t=E(y,v);n=e=>a-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)n=t=>a-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);n=e=>{let i=Math.exp(-v*y*e),s=Math.min(t*e,300);return a-i*((f+v*y*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}return{calculatedDuration:m&&c||null,next:t=>{let s=n(t);if(m)l.done=t>=c;else{let r=f;0!==t&&(r=v<1?A(n,t,s):0);let o=Math.abs(r)<=i,h=Math.abs(a-s)<=e;l.done=o&&h}return l.value=l.done?a:s,l}}}function k({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let P=t=>-g*Math.exp(-t/s),w=t=>x+P(t),b=t=>{let e=P(t),i=w(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},T=t=>{f(m.value)&&(d=t,c=D({keyframes:[m.value,v(m.value)],velocity:A(w,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),T(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}let L=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function F(t,e,i,s){if(t===e&&i===s)return y.Z;let r=e=>(function(t,e,i,s,r){let n,o;let a=0;do(n=L(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:L(r(t),e,s)}let j=F(.42,0,1,1),B=F(0,0,.58,1),$=F(.42,0,.58,1),O=t=>Array.isArray(t)&&"number"!=typeof t[0];var I=i(1852),W=i(5024),U=i(9833);let N=F(.33,1.53,.69,.99),X=(0,U.M)(N),z=(0,W.o)(X),H={linear:y.Z,easeIn:j,easeInOut:$,easeOut:B,circIn:I.Z7,circInOut:I.X7,circOut:I.Bn,backIn:X,backInOut:z,backOut:N,anticipate:t=>(t*=2)<1?.5*X(t):.5*(2-Math.pow(2,-10*(t-1)))},Y=t=>{if(Array.isArray(t)){(0,P.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return F(e,i,s,r)}return"string"==typeof t?((0,P.k)(void 0!==H[t],`Invalid easing type '${t}'`),H[t]):t};var K=i(9022),Z=i(5018),G=i(5343);function q(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var _=i(9963),J=i(8185),Q=i(2924);let tt=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},te=[_.$,J.m,Q.J],ti=t=>te.find(e=>e.test(t));function ts(t){let e=ti(t);(0,P.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===Q.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=q(a,s,t+1/3),n=q(a,s,t),o=q(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let tr=(t,e)=>{let i=ts(t),s=ts(e),r={...i};return t=>(r.red=tt(i.red,s.red,t),r.green=tt(i.green,s.green,t),r.blue=tt(i.blue,s.blue,t),r.alpha=(0,G.t)(i.alpha,s.alpha,t),J.m.transform(r))};var tn=i(236),to=i(8543);function ta(t,e){return i=>i>0?e:t}function tl(t,e){return i=>(0,G.t)(t,e,i)}function th(t){return"number"==typeof t?tl:"string"==typeof t?(0,to.t)(t)?ta:tn.$.test(t)?tr:tc:Array.isArray(t)?tu:"object"==typeof t?tn.$.test(t)?tr:td:ta}function tu(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>th(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function td(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=th(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let tc=(t,e)=>{let i=w.P.createTransformer(e),s=(0,w.V)(t),r=(0,w.V)(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?(0,K.z)(tu(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;s[n]=l,r[o]++}return s}(s,r),r.values),i):((0,P.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ta(t,e))};function tp(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,G.t)(t,e,i):th(t)(t,e)}function tm({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let r=O(s)?s.map(Y):Y(s),n={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if((0,P.k)(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&t[0]===t[1])return()=>e[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],r=i||tp,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||y.Z:e;n=(0,K.z)(t,n)}s.push(n)}return s}(e,s,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=(0,Z.Y)(t[i],t[i+1],e);return o[i](s)};return i?e=>l((0,V.u)(t[0],t[n-1],e)):l}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=(0,Z.Y)(0,e,s);t.push((0,G.t)(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||$).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(n.value=o(e),n.done=e>=t,n)}}let tf=t=>{let e=({timestamp:e})=>t(e);return{start:()=>f.Wi.update(e,!0),stop:()=>(0,f.Pn)(e),now:()=>f.frameData.isProcessing?f.frameData.timestamp:v.X.now()}},tv={decay:k,inertia:k,tween:tm,keyframes:tm,spring:D},tg=t=>t/100;class ty extends T{constructor({KeyframeResolver:t=x.e,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:i,motionValue:s,keyframes:r}=this.options,n=(t,e)=>this.onKeyframesResolved(t,e);i&&s&&s.owner?this.resolver=s.owner.resolveKeyframes(r,n,i,s):this.resolver=new t(r,n,i,s),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:a=0}=this.options,l=tv[s]||tm;l!==tm&&"number"!=typeof t[0]&&(e=(0,K.z)(tg,tp(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=function(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}(h));let{calculatedDuration:u}=h,d=u+n;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:u}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,P=r;if(c){let t=Math.min(this.currentTime,h)/u,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/u)):"mirror"===p&&(P=n)),x=(0,V.u)(0,1,i)*u}let w=y?{done:!1,value:a[0]}:P.next(x);o&&(w.value=o(w.value));let{done:b}=w;y||null===l||(b=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&void 0!==s&&(w.value=m(a,this.options,s)),v&&v(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tf,onPlay:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=i),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let tx=t=>Array.isArray(t)&&"number"==typeof t[0],tP=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tP([0,.65,.55,1]),circOut:tP([.55,0,1,.45]),backIn:tP([.31,.01,.66,-.59]),backOut:tP([.33,1.53,.69,.99])};function tb(t){return tT(t)||tw.easeOut}function tT(t){if(t)return tx(t)?tP(t):Array.isArray(t)?t.map(tb):tw[t]}let tS=function(t){let e;return()=>(void 0===e&&(e=t()),e)}(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tA=new Set(["opacity","clipPath","filter","transform"]);class tV extends T{constructor(t){super(t);let{name:e,motionValue:i,keyframes:s}=this.options;this.resolver=new g.s(s,(t,e)=>this.onKeyframesResolved(t,e),e,i),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:r=300,times:n,ease:o,type:a,motionValue:l,name:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("spring"===(s=this.options).type||"backgroundColor"===s.name||!function t(e){return!!(!e||"string"==typeof e&&e in tw||tx(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:e,onUpdate:i,motionValue:s,...l}=this.options,h=function(t,e){let i=new ty({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,l);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,n=h.times,o=h.ease,a="keyframes"}let u=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a,times:l}={}){let h={[e]:i};l&&(h.offset=l);let u=tT(a);return Array.isArray(u)&&(h.easing=u),t.animate(h,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,h,t,{...this.options,duration:r,times:n,ease:o});return u.startTime=v.X.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:i}=this.options;l.set(m(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:n,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,s.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,s.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return y.Z;let{animation:i}=e;i.timeline=t,i.onfinish=null}else this.pendingTimeline=t;return y.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:o,times:a}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,...h}=this.options,u=new ty({...h,keyframes:i,duration:r,type:n,ease:o,times:a,isGenerator:!0}),d=(0,s.w)(this.time);t.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o}=t;return tS()&&i&&tA.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}}let tE=(t,e,i,r={},n,o)=>a=>{let l=(0,u.e)(r,t)||{},p=l.delay||r.delay||0,{elapsed:v=0}=r;v-=(0,s.w)(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:n};(0,u.r)(l)||(g={...g,...h(t,g)}),g.duration&&(g.duration=(0,s.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,s.w)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(c.current||d.c.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!o&&void 0!==e.get()){let t=m(g.keyframes,l);if(void 0!==t){f.Wi.update(()=>{g.onUpdate(t),g.onComplete()});return}}return!o&&tV.supports(g)?new tV(g):new ty(g)}},5391:(t,e,i)=>{i.d(e,{d:()=>m});var s=i(3734),r=i(285),n=i(4517),o=i(67),a=i(3096),l=i(8890),h=i(3986),u=i(5386);function d(t,e,{delay:i=0,transitionOverride:s,type:d}={}){var c;let{transition:p=t.getDefaultTransition(),transitionEnd:m,...f}=e,v=t.getValue("willChange");s&&(p=s);let g=[],y=d&&t.animationState&&t.animationState.getState()[d];for(let e in f){let s=t.getValue(e,null!==(c=t.latestValues[e])&&void 0!==c?c:null),l=f[e];if(void 0===l||y&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(y,e))continue;let u={delay:i,elapsed:0,...(0,h.e)(p||{},e)},d=!1;if(window.HandoffAppearAnimations){let i=t.getProps()[n.M];if(i){let t=window.HandoffAppearAnimations(i,e);null!==t&&(u.elapsed=t,d=!0)}}s.start((0,o.v)(e,s,l,t.shouldReduceMotion&&r.G.has(e)?{type:!1}:u,t,d));let m=s.animation;m&&((0,a.L)(v)&&(v.add(e),m.then(()=>v.remove(e))),g.push(m))}return m&&Promise.all(g).then(()=>{u.Wi.update(()=>{m&&(0,l.C)(t,m)})}),g}function c(t,e,i={}){var r;let n=(0,s.x)(t,e,"exit"===i.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(o=i.transitionOverride);let a=n?()=>Promise.all(d(t,n,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:n,staggerDirection:a}=o;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(p).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(c(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,n,a,i)}:()=>Promise.resolve(),{when:h}=o;if(!h)return Promise.all([a(),l(i.delay)]);{let[t,e]="beforeChildren"===h?[a,l]:[l,a];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}function m(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>c(t,e,i)));else if("string"==typeof e)r=c(t,e,i);else{let n="function"==typeof e?(0,s.x)(t,e,i.custom):e;r=Promise.all(d(t,n,i))}return r.then(()=>{u.Wi.postRender(()=>{t.notify("AnimationComplete",e)})})}},4517:(t,e,i)=>{i.d(e,{M:()=>s});let s="data-"+(0,i(1322).D)("framerAppearId")},3695:(t,e,i)=>{i.d(e,{C:()=>s});let s=t=>Array.isArray(t)},3986:(t,e,i)=>{function s({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}function r(t,e){return t[e]||t.default||t}i.d(e,{e:()=>r,r:()=>s})},1852:(t,e,i)=>{i.d(e,{Bn:()=>o,X7:()=>a,Z7:()=>n});var s=i(5024),r=i(9833);let n=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(n),a=(0,s.o)(n)},5024:(t,e,i)=>{i.d(e,{o:()=>s});let s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9833:(t,e,i)=>{i.d(e,{M:()=>s});let s=t=>e=>1-t(1-e)},4038:(t,e,i)=>{i.d(e,{Z:()=>o});var s=i(8250);class r{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let n=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=n.reduce((t,e)=>(t[e]=function(t){let e=new r,i=new r,s=0,n=!1,o=!1,a=new WeakSet,l={schedule:(t,r=!1,o=!1)=>{let l=o&&n,h=l?e:i;return r&&a.add(t),h.add(t)&&l&&n&&(s=e.order.length),t},cancel:t=>{i.remove(t),a.delete(t)},process:r=>{if(n){o=!0;return}if(n=!0,[e,i]=[i,e],i.clear(),s=e.order.length)for(let i=0;i<s;i++){let s=e.order[i];a.has(s)&&(l.schedule(s),t()),s(r)}n=!1,o&&(o=!1,l.process(r))}};return l}(()=>i=!0),t),{}),h=t=>{l[t].process(a)},u=()=>{let r=s.c.useManualTiming?a.timestamp:performance.now();i=!1,a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,n.forEach(h),a.isProcessing=!1,i&&e&&(o=!1,t(u))},d=()=>{i=!0,o=!0,a.isProcessing||t(u)};return{schedule:n.reduce((t,e)=>{let s=l[e];return t[e]=(t,e=!1,r=!1)=>(i||d(),s.schedule(t,e,r)),t},{}),cancel:t=>n.forEach(e=>l[e].cancel(t)),state:a,steps:l}}},5386:(t,e,i)=>{i.d(e,{Pn:()=>n,S6:()=>a,Wi:()=>r,frameData:()=>o});var s=i(4380);let{schedule:r,cancel:n,state:o,steps:a}=(0,i(4038).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.Z,!0)},8111:(t,e,i)=>{let s;i.d(e,{X:()=>a});var r=i(8250),n=i(5386);function o(){s=void 0}let a={now:()=>(void 0===s&&a.set(n.frameData.isProcessing||r.c.useManualTiming?n.frameData.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(o)}}},5696:(t,e,i)=>{i.d(e,{s:()=>c});var s=i(534),r=i(4673),n=i(3002),o=i(8543);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(4080),h=i(5232),u=i(8459),d=i(8967);class c extends u.e{constructor(t,e,i,s){super(t,e,i,s,null==s?void 0:s.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(0,o.t)(s)){let l=function t(e,i,s=1){(0,r.k)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[l,h]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!l)return;let u=window.getComputedStyle(i).getPropertyValue(l);if(u){let t=u.trim();return(0,n.P)(t)?parseFloat(t):t}return(0,o.t)(h)?t(h,i,s+1):h}(s,e.current);void 0!==l&&(t[i]=l),i===t.length-1&&(this.finalKeyframe=s)}}if(!l.z2.has(i)||2!==t.length)return this.resolveNoneKeyframes();let[s,u]=t,d=(0,h.C)(s),c=(0,h.C)(u);if(d!==c){if((0,l.mP)(d)&&(0,l.mP)(c))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||(0,s.W)(r))&&i.push(e)}i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;)"string"==typeof t[r]&&"none"!==t[r]&&"0"!==t[r]&&(s=t[r]),r++;if(s&&i)for(let r of e)t[r]=(0,d.T)(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.lw[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(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,o=s[n];s[n]=l.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},6530:(t,e,i)=>{i.d(e,{E:()=>i6});var s=i(326),r=i(7577);let n=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),o=(0,r.createContext)({}),a=(0,r.createContext)(null);var l=i(2482);let h=(0,r.createContext)({strict:!1});var u=i(4517);let{schedule:d,cancel:c}=(0,i(4038).Z)(queueMicrotask,!1);function p(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function f(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let v=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g=["initial",...v];function y(t){return f(t.animate)||g.some(e=>m(t[e]))}function x(t){return!!(y(t)||t.variants)}function P(t){return Array.isArray(t)?t.join(" "):t}let w={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"]},b={};for(let t in w)b[t]={isEnabled:e=>w[t].some(t=>!!e[t])};var T=i(8263);let S=(0,r.createContext)({}),A=(0,r.createContext)({}),V=Symbol.for("motionComponentSymbol"),E=["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 C(t){if("string"!=typeof t||t.includes("-"));else if(E.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let M={};var R=i(285);function D(t,{layout:e,layoutId:i}){return R.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!M[t]||"opacity"===t)}var k=i(1551);let L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=R._.length;var j=i(8543);let B=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var $=i(2750);function O(t,e,i,s){let{style:r,vars:n,transform:o,transformOrigin:a}=t,l=!1,h=!1,u=!0;for(let t in e){let i=e[t];if((0,j.f)(t)){n[t]=i;continue}let s=$.j[t],d=B(i,s);if(R.G.has(t)){if(l=!0,o[t]=d,!u)continue;i!==(s.default||0)&&(u=!1)}else t.startsWith("origin")?(h=!0,a[t]=d):r[t]=d}if(!e.transform&&(l||s?r.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},s,r){let n="";for(let e=0;e<F;e++){let i=R._[e];if(void 0!==t[i]){let e=L[i]||i;n+=`${e}(${t[i]}) `}}return e&&!t.z&&(n+="translateZ(0)"),n=n.trim(),r?n=r(t,s?"":n):i&&s&&(n="none"),n}(t.transform,i,u,s):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}let I=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W(t,e,i){for(let s in e)(0,k.i)(e[s])||D(s,i)||(t[s]=e[s])}let U=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 N(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||U.has(t)}let X=t=>!N(t);try{!function(t){t&&(X=e=>e.startsWith("on")?!N(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var z=i(7162);function H(t,e,i){return"string"==typeof t?t:z.px.transform(e+i*t)}let Y={offset:"stroke-dashoffset",array:"stroke-dasharray"},K={offset:"strokeDashoffset",array:"strokeDasharray"};function Z(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...h},u,d,c){if(O(t,h,u,c),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:f}=t;p.transform&&(f&&(m.transform=p.transform),delete p.transform),f&&(void 0!==r||void 0!==n||m.transform)&&(m.transformOrigin=function(t,e,i){let s=H(e,t.x,t.width),r=H(i,t.y,t.height);return`${s} ${r}`}(f,void 0!==r?r:.5,void 0!==n?n:.5)),void 0!==e&&(p.x=e),void 0!==i&&(p.y=i),void 0!==s&&(p.scale=s),void 0!==o&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?Y:K;t[n.offset]=z.px.transform(-s);let o=z.px.transform(e),a=z.px.transform(i);t[n.array]=`${o} ${a}`}(p,o,a,l,!1)}let G=()=>({...I(),attrs:{}}),q=t=>"string"==typeof t&&"svg"===t.toLowerCase();var _=i(1322);function J(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let Q=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tt(t,e,i,s){for(let i in J(t,e,void 0,s),e.attrs)t.setAttribute(Q.has(i)?i:(0,_.D)(i),e.attrs[i])}function te(t,e,i){var s;let{style:r}=t,n={};for(let o in r)((0,k.i)(r[o])||e.style&&(0,k.i)(e.style[o])||D(o,t)||(null===(s=null==i?void 0:i.getValue(o))||void 0===s?void 0:s.liveStyle)!==void 0)&&(n[o]=r[o]);return n}function ti(t,e,i){let s=te(t,e,i);for(let i in t)((0,k.i)(t[i])||(0,k.i)(e[i]))&&(s[-1!==R._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}var ts=i(4085),tr=i(7977),tn=i(2083);function to(t){let e=(0,k.i)(t)?t.get():t;return(0,tn.p)(e)?e.toValue():e}let ta=t=>(e,i)=>{let s=(0,r.useContext)(o),n=(0,r.useContext)(a),l=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},s,r,n){let o={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=to(n[t]);let{initial:o,animate:a}=t,l=y(t),h=x(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;return d&&"boolean"!=typeof d&&!f(d)&&(Array.isArray(d)?d:[d]).forEach(e=>{let i=(0,ts.o)(t,e);if(!i)return;let{transitionEnd:s,transition:n,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let t in s)r[t]=s[t]}),r}(s,r,n,t),renderState:e()};return i&&(o.mount=t=>i(s,t,o)),o})(t,e,s,n);return i?l():(0,tr.h)(l)};var tl=i(5386);let th={useVisualState:ta({scrapeMotionValuesFromProps:ti,createRenderState:G,onMount:(t,e,{renderState:i,latestValues:s})=>{tl.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tl.Wi.render(()=>{Z(i,s,{enableHardwareAcceleration:!1},q(e.tagName),t.transformTemplate),tt(e,i)})}})},tu={useVisualState:ta({scrapeMotionValuesFromProps:te,createRenderState:I})};function td(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let tc=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tp(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let tm=t=>e=>tc(e)&&t(e,tp(e));function tf(t,e,i,s){return td(t,e,tm(i),s)}var tv=i(9022);function tg(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let ty=tg("dragHorizontal"),tx=tg("dragVertical");function tP(t){let e=!1;if("y"===t)e=tx();else if("x"===t)e=ty();else{let t=ty(),i=tx();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tw(){let t=tP(!0);return!t||(t(),!1)}class tb{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tT(t,e){let i=e?"onHoverStart":"onHoverEnd";return tf(t.current,e?"pointerenter":"pointerleave",(s,r)=>{if("touch"===s.pointerType||tw())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e);let o=n[i];o&&o(s,r)},{passive:!t.getProps()[i]})}class tS extends tb{mount(){this.unmount=(0,tv.z)(tT(this.node,!0),tT(this.node,!1))}unmount(){}}class tA extends tb{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,tv.z)(td(this.node.current,"focus",()=>this.onFocus()),td(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tV=(t,e)=>!!e&&(t===e||tV(t,e.parentElement));var tE=i(4380);function tC(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tp(i))}class tM extends tb{constructor(){super(...arguments),this.removeStartListeners=tE.Z,this.removeEndListeners=tE.Z,this.removeAccessibleListeners=tE.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=tf(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:r}=this.node.getProps();r||tV(this.node.current,t.target)?i&&i(t,e):s&&s(t,e)},{passive:!(i.onTap||i.onPointerUp)}),r=tf(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,tv.z)(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=td(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=td(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tC("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&i(t,e)})}),tC("down",(t,e)=>{this.startPress(t,e)}))}),e=td(this.node.current,"blur",()=>{this.isPressing&&tC("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tv.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&i(t,e)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tw()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&i(t,e)}mount(){let t=this.node.getProps(),e=tf(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=td(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tv.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tR=new WeakMap,tD=new WeakMap,tk=t=>{let e=tR.get(t.target);e&&e(t)},tL=t=>{t.forEach(tk)},tF={some:0,all:1};class tj extends tb{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:r}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:tF[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;tD.has(i)||tD.set(i,{});let s=tD.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(tL,{root:t,...e})),s[r]}(e);return tR.set(t,i),s.observe(t),()=>{tR.delete(t),s.unobserve(t)}}(this.node.current,n,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!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(),n=e?i:s;n&&n(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 tB=i(3695);function t$(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 tO=i(3734),tI=i(5391);let tW=[...v].reverse(),tU=v.length;function tN(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class tX extends tb{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,tI.d)(t,e,i))),i={animate:tN(!0),whileInView:tN(),whileHover:tN(),whileTap:tN(),whileDrag:tN(),whileFocus:tN(),exit:tN()},s=!0,r=e=>(i,s)=>{var r;let n=(0,tO.x)(t,s,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function n(n){let o=t.getProps(),a=t.getVariantContext(!0)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<tU;e++){var c;let p=tW[e],v=i[p],g=void 0!==o[p]?o[p]:a[p],y=m(g),x=p===n?v.isActive:null;!1===x&&(d=e);let P=g===a[p]&&g!==o[p]&&y;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...u},!v.isActive&&null===x||!g&&!v.prevProp||f(g)||"boolean"==typeof g)continue;let w=(c=v.prevProp,("string"==typeof g?g!==c:!!Array.isArray(g)&&!t$(g,c))||p===n&&v.isActive&&!P&&y||e>d&&y),b=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r(p),{});!1===x&&(S={});let{prevResolvedValues:A={}}=v,V={...A,...S},E=e=>{w=!0,h.has(e)&&(b=!0,h.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=S[t],i=A[t];if(!u.hasOwnProperty(t))((0,tB.C)(e)&&(0,tB.C)(i)?t$(e,i):e===i)?void 0!==e&&h.has(t)?E(t):v.protectedKeys[t]=!0:null!=e?E(t):h.add(t)}v.prevProp=g,v.prevResolvedValues=S,v.isActive&&(u={...u,...S}),s&&t.blockInitialAnimation&&(w=!1),w&&(!P||b)&&l.push(...T.map(t=>({animation:t,options:{type:p}})))}if(h.size){let e={};h.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),l.push({animation:e})}let p=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=n(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),f(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let tz=0;class tH extends tb{constructor(){super(...arguments),this.id=tz++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var tY=i(4673),tK=i(8968);let tZ=(t,e)=>Math.abs(t-e);class tG{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=tJ(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tZ(t.x,e.x)**2+tZ(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:r}=tl.frameData;this.history.push({...s,timestamp:r});let{onStart:n,onMove:o}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tq(e,this.transformPagePoint),tl.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=tJ("pointercancel"===t.type?this.lastMoveEventInfo:tq(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!tc(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=tq(tp(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=tl.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tJ(n,this.history)),this.removeListeners=(0,tv.z)(tf(this.contextWindow,"pointermove",this.handlePointerMove),tf(this.contextWindow,"pointerup",this.handlePointerUp),tf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tl.Pn)(this.updatePoint)}}function tq(t,e){return e?{point:e(t.point)}:t}function t_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tJ({point:t},e){return{point:t,delta:t_(t,tQ(e)),offset:t_(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=tQ(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,tK.w)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,tK.X)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function tQ(t){return t[t.length-1]}var t0=i(5018),t1=i(5343);function t5(t){return t.max-t.min}function t2(t,e=0,i=.01){return Math.abs(t-e)<=i}function t3(t,e,i,s=.5){t.origin=s,t.originPoint=(0,t1.t)(e.min,e.max,t.origin),t.scale=t5(i)/t5(e),(t2(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,t1.t)(i.min,i.max,t.origin)-t.originPoint,(t2(t.translate)||isNaN(t.translate))&&(t.translate=0)}function t8(t,e,i,s){t3(t.x,e.x,i.x,s?s.originX:void 0),t3(t.y,e.y,i.y,s?s.originY:void 0)}function t4(t,e,i){t.min=i.min+e.min,t.max=t.min+t5(e)}function t6(t,e,i){t.min=e.min-i.min,t.max=t.min+t5(e)}function t7(t,e,i){t6(t.x,e.x,i.x),t6(t.y,e.y,i.y)}var t9=i(2361);function et(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 ee(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 ei(t,e,i){return{min:es(t,e),max:es(t,i)}}function es(t,e){return"number"==typeof t?t:t[e]||0}let er=()=>({translate:0,scale:1,origin:0,originPoint:0}),en=()=>({x:er(),y:er()}),eo=()=>({min:0,max:0}),ea=()=>({x:eo(),y:eo()});function el(t){return[t("x"),t("y")]}function eh({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eu(t){return void 0===t||1===t}function ed({scale:t,scaleX:e,scaleY:i}){return!eu(t)||!eu(e)||!eu(i)}function ec(t){return ed(t)||ep(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ep(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function em(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function ef(t,e=0,i=1,s,r){t.min=em(t.min,e,i,s,r),t.max=em(t.max,e,i,s,r)}function ev(t,{x:e,y:i}){ef(t.x,e.translate,e.scale,e.originPoint),ef(t.y,i.translate,i.scale,i.originPoint)}function eg(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function ey(t,e){t.min=t.min+e,t.max=t.max+e}function ex(t,e,[i,s,r]){let n=void 0!==e[r]?e[r]:.5,o=(0,t1.t)(t.min,t.max,n);ef(t,e[i],e[s],o,e.scale)}let eP=["x","scaleX","originX"],ew=["y","scaleY","originY"];function eb(t,e){ex(t.x,e,eP),ex(t.y,e,ew)}function eT(t,e){return eh(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))}var eS=i(67);let eA=({current:t})=>t?t.ownerDocument.defaultView:null,eV=new WeakMap;class eE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ea(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new tG(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tp(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tP(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),el(t=>{let e=this.getAxisMotionValue(t).get()||0;if(z.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=t5(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&r(t,e);let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=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}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>el(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:eA(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&r(t,e)}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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!eC(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,t1.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,t1.t)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:et(t.x,i,r),y:et(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&el(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}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!p(e))return!1;let s=e.current;(0,tY.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=function(t,e,i){let s=eT(t,i),{scroll:r}=e;return r&&(ey(s.x,r.offset.x),ey(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),o={x:ee((t=r.layout.layoutBox).x,n.x),y:ee(t.y,n.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eh(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(el(o=>{if(!eC(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,eS.v)(t,i,0,e,this.visualElement))}stopAnimation(){el(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){el(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.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){el(e=>{let{drag:i}=this.getProps();if(!eC(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-(0,t1.t)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!p(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};el(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=t5(t),r=t5(e);return r>s?i=(0,t0.Y)(e.min,e.max-s,t.min):s>r&&(i=(0,t0.Y)(t.min,t.max-r,e.min)),(0,t9.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),el(e=>{if(!eC(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set((0,t1.t)(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;eV.set(this.visualElement,this);let t=tf(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=td(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(el(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function eC(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eM extends tb{constructor(t){super(t),this.removeGroupControls=tE.Z,this.removeListeners=tE.Z,this.controls=new eE(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tE.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let eR=t=>(e,i)=>{t&&t(e,i)};class eD extends tb{constructor(){super(...arguments),this.removePointerDownListener=tE.Z}onPointerDown(t){this.session=new tG(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eA(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eR(t),onStart:eR(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&s(t,e)}}}mount(){this.removePointerDownListener=tf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ek={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eL(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eF={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!z.px.test(t))return t;t=parseFloat(t)}let i=eL(t,e.target.x),s=eL(t,e.target.y);return`${i}% ${s}%`}};var ej=i(282);class eB extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;Object.assign(M,eO),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ek.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===r||(r?n.promote():n.relegate()||tl.Wi.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),d.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;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 e$(t){let[e,i]=function(){let t=(0,r.useContext)(a);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,r.useId)();return(0,r.useEffect)(()=>s(n),[]),!e&&i?[!1,()=>i&&i(n)]:[!0]}(),n=(0,r.useContext)(S);return(0,s.jsx)(eB,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(A),isPresent:e,safeToRemove:i})}let eO={borderRadius:{...eF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eF,borderTopRightRadius:eF,borderBottomLeftRadius:eF,borderBottomRightRadius:eF,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=ej.P.parse(t);if(s.length>5)return t;let r=ej.P.createTransformer(t),n="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,t1.t)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};var eI=i(777),eW=i(1852);let eU=["TopLeft","TopRight","BottomLeft","BottomRight"],eN=eU.length,eX=t=>"string"==typeof t?parseFloat(t):t,ez=t=>"number"==typeof t||z.px.test(t);function eH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eY=eZ(0,.5,eW.Bn),eK=eZ(.5,.95,tE.Z);function eZ(t,e,i){return s=>s<t?0:s>e?1:i((0,t0.Y)(t,e,s))}function eG(t,e){t.min=e.min,t.max=e.max}function eq(t,e){eG(t.x,e.x),eG(t.y,e.y)}function e_(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function eJ(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(z.aQ.test(e)&&(e=parseFloat(e),e=(0,t1.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,t1.t)(n.min,n.max,s);t===n&&(a-=e),t.min=e_(t.min,e,i,a,r),t.max=e_(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let eQ=["x","scaleX","originX"],e0=["y","scaleY","originY"];function e1(t,e,i,s){eJ(t.x,e,eQ,i?i.x:void 0,s?s.x:void 0),eJ(t.y,e,e0,i?i.y:void 0,s?s.y:void 0)}var e5=i(3986);function e2(t){return 0===t.translate&&1===t.scale}function e3(t){return e2(t.x)&&e2(t.y)}function e8(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function e4(t){return t5(t.x)/t5(t.y)}var e6=i(2840);class e7{constructor(){this.members=[]}add(t){(0,e6.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,e6.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)}}function e9(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}let it=(t,e)=>t.depth-e.depth;class ie{constructor(){this.children=[],this.isDirty=!1}add(t){(0,e6.y4)(this.children,t),this.isDirty=!0}remove(t){(0,e6.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(it),this.isDirty=!1,this.children.forEach(t)}}var ii=i(8111),is=i(4840);let ir=["","X","Y","Z"],io={visibility:"hidden"},ia=0,il={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ih(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function iu({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ia++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,il.totalNodes=il.resolvedTargetDeltas=il.recalculatedProjection=0,this.nodes.forEach(ip),this.nodes.forEach(iw),this.nodes.forEach(ib),this.nodes.forEach(im),window.MotionDebug&&window.MotionDebug.record(il)},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 ie)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eI.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,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ii.X.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&((0,tl.Pn)(s),t(r-250))};return tl.Wi.read(s,!0),()=>(0,tl.Pn)(s)}(s,0),ek.hasAnimatedSinceResize&&(ek.hasAnimatedSinceResize=!1,this.nodes.forEach(iP))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||iC,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!e8(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,e5.e)(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||iP(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,(0,tl.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(iT),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(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(ig);return}this.isUpdating||this.nodes.forEach(iy),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ix),this.nodes.forEach(id),this.nodes.forEach(ic),this.clearAllSnapshots();let t=ii.X.now();tl.frameData.delta=(0,t9.u)(0,1e3/60,t-tl.frameData.timestamp),tl.frameData.timestamp=t,tl.frameData.isProcessing=!0,tl.S6.update.process(tl.frameData),tl.S6.preRender.process(tl.frameData),tl.S6.render.process(tl.frameData),tl.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(iv),this.sharedNodes.forEach(iS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tl.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tl.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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=ea(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:i(this.instance)})}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!e3(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||ec(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),iD((e=s).x),iD(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ea();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(ey(e.x,i.offset.x),ey(e.y,i.offset.y)),e}removeElementScroll(t){let e=ea();eq(e,t);for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;if(s!==this.root&&r&&n.layoutScroll){if(r.isRoot){eq(e,t);let{scroll:i}=this.root;i&&(ey(e.x,-i.offset.x),ey(e.y,-i.offset.y))}ey(e.x,r.offset.x),ey(e.y,r.offset.y)}}return e}applyTransform(t,e=!1){let i=ea();eq(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&&eb(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),ec(s.latestValues)&&eb(i,s.latestValues)}return ec(this.latestValues)&&eb(i,this.latestValues),i}removeTransform(t){let e=ea();eq(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!ec(i.latestValues))continue;ed(i.latestValues)&&i.updateSnapshot();let s=ea();eq(s,i.measurePageBox()),e1(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return ec(this.latestValues)&&e1(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!==tl.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tl.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),t7(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),eq(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ea(),this.targetWithTransforms=ea()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,t4(i.x,s.x,r.x),t4(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eq(this.target,this.layout.layoutBox),ev(this.target,this.targetDelta)):eq(this.target,this.layout.layoutBox),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=ea(),this.relativeTargetOrigin=ea(),t7(this.relativeTargetOrigin,this.target,t.target),eq(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}il.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ed(this.parent.latestValues)||ep(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(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===tl.frameData.timestamp&&(s=!1),s)return;let{layout:r,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||!(r||n))return;eq(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(function(t,e,i,s=!1){let r,n;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let o=r.instance;(!o||!o.style||"contents"!==o.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eb(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,ev(t,n)),s&&ec(r.latestValues)&&eb(t,r.latestValues))}e.x=eg(e.x),e.y=eg(e.y)}})(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ea());let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=en(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=en(),this.projectionDeltaWithTransform=en());let h=this.projectionTransform;t8(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=e9(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),il.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=en();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=ea(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(iE));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(iA(o.x,t.x,s),iA(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m;t7(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,iV(p.x,m.x,a.x,s),iV(p.y,m.y,a.y,s),i&&(h=this.relativeTarget,c=i,h.x.min===c.x.min&&h.x.max===c.x.max&&h.y.min===c.y.min&&h.y.max===c.y.max)&&(this.isProjectionDirty=!1),i||(i=ea()),eq(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,t1.t)(0,void 0!==i.opacity?i.opacity:1,eY(s)),t.opacityExit=(0,t1.t)(void 0!==e.opacity?e.opacity:1,0,eK(s))):n&&(t.opacity=(0,t1.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<eN;r++){let n=`border${eU[r]}Radius`,o=eH(e,n),a=eH(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ez(o)===ez(a)?(t[n]=Math.max((0,t1.t)(eX(o),eX(a),s),0),(z.aQ.test(a)||z.aQ.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,t1.t)(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tl.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tl.Wi.update(()=>{ek.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,k.i)(0)?0:(0,is.BX)(0);return s.start((0,eS.v)("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&ik(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||ea();let e=t5(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=t5(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}eq(e,i),eb(e,r),t8(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new e7),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(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.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&&ih("z",t,s,this.animationValues);for(let e=0;e<ir.length;e++)ih(`rotate${ir[e]}`,t,s,this.animationValues),ih(`skew${ir[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()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return io;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=to(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=to(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;this.applyTransformsToTarget(),s.transform=e9(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,M){if(void 0===o[t])continue;let{correct:e,applyTo:i}=M[t],r="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=n===this?to(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ig),this.root.sharedNodes.clear()}}}function id(t){t.updateLayout()}function ic(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?el(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=t5(s);s.min=e[t].min,s.max=s.min+r}):ik(r,i.layoutBox,e)&&el(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=t5(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=en();t8(o,e,i.layoutBox);let a=en();n?t8(a,t.applyTransform(s,!0),i.measuredBox):t8(a,e,i.layoutBox);let l=!e3(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=ea();t7(o,i.layoutBox,r.layoutBox);let a=ea();t7(a,e,n.layoutBox),e8(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ip(t){il.totalNodes++,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 im(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iv(t){t.clearSnapshot()}function ig(t){t.clearMeasurements()}function iy(t){t.isLayoutDirty=!1}function ix(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iP(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iw(t){t.resolveTargetDelta()}function ib(t){t.calcProjection()}function iT(t){t.resetSkewAndRotation()}function iS(t){t.removeLeadSnapshot()}function iA(t,e,i){t.translate=(0,t1.t)(e.translate,0,i),t.scale=(0,t1.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iV(t,e,i,s){t.min=(0,t1.t)(e.min,i.min,s),t.max=(0,t1.t)(e.max,i.max,s)}function iE(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iC={duration:.45,ease:[.4,0,.1,1]},iM=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iR=iM("applewebkit/")&&!iM("chrome/")?Math.round:tE.Z;function iD(t){t.min=iR(t.min),t.max=iR(t.max)}function ik(t,e,i){return"position"===t||"preserve-aspect"===t&&!t2(e4(e),e4(i),.2)}let iL=iu({attachResizeListener:(t,e)=>td(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iF={current:void 0},ij=iu({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iF.current){let t=new iL({});t.mount(window),t.setOptions({layoutScroll:!0}),iF.current=t}return iF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var iB=i(5843);let i$={current:null},iO={current:!1};var iI=i(3096);let iW=new WeakMap;var iU=i(8459),iN=i(3002),iX=i(534),iz=i(236),iH=i(5232),iY=i(3883);let iK=[...iH.$,iz.$,ej.P],iZ=t=>iK.find((0,iY.l)(t));var iG=i(8967);let iq=Object.keys(b),i_=iq.length,iJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iQ=g.length;class i0{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},o={}){this.resolveKeyframes=(t,e,i,s)=>new this.KeyframeResolver(t,e,i,s,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iU.e,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.scheduleRender=()=>tl.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:l}=n;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=y(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==a[t]&&(0,k.i)(e)&&(e.set(a[t],!1),(0,iI.L)(h)&&h.add(t))}}mount(t){this.current=t,iW.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)),iO.current||function(){if(iO.current=!0,T.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i$.current=t.matches;t.addListener(e),e()}else i$.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i$.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;for(let t in iW.delete(this.current),this.projection&&this.projection.unmount(),(0,tl.Pn)(this.notifyUpdate),(0,tl.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let e in this.features)null===(t=this.features[e])||void 0===t||t.unmount();this.current=null}bindToMotionValue(t,e){let i=R.G.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tl.Wi.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),r(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,s,r){let n,o;for(let t=0;t<i_;t++){let i=iq[t],{isEnabled:s,Feature:r,ProjectionNode:a,MeasureLayout:l}=b[i];a&&(n=a),s(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&n){this.projection=new n(this.latestValues,function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(this.parent));let{layoutId:t,layout:i,drag:s,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!s||o&&p(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}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<iJ.length;e++){let i=iJ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){let{willChange:s}=e;for(let r in e){let n=e[r],o=i[r];if((0,k.i)(n))t.addValue(r,n),(0,iI.L)(s)&&s.add(r);else if((0,k.i)(o))t.addValue(r,(0,is.BX)(n,{owner:t})),(0,iI.L)(s)&&s.remove(r);else if(o!==n){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,(0,is.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}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iQ;t++){let i=g[t],s=this.props[i];(m(s)||!1===s)&&(e[i]=s)}return e}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,is.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&((0,iN.P)(s)||(0,iX.W)(s))?s=parseFloat(s):!iZ(s)&&ej.P.test(e)&&(s=(0,iG.T)(t,e)),this.setBaseTarget(t,(0,k.i)(s)?s.get():s)),(0,k.i)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=(0,ts.o)(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,k.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eI.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var i1=i(5696);class i5 extends i0{constructor(){super(...arguments),this.KeyframeResolver=i1.s}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]}}class i2 extends i5{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(R.G.has(e)){let t=(0,iB.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,j.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eT(t,e)}build(t,e,i,s){O(t,e,i,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return te(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,k.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,s){J(t,e,i,s)}}class i3 extends i5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(R.G.has(e)){let t=(0,iB.A)(e);return t&&t.default||0}return e=Q.has(e)?e:(0,_.D)(e),t.getAttribute(e)}measureInstanceViewportBox(){return ea()}scrapeMotionValuesFromProps(t,e,i){return ti(t,e,i)}build(t,e,i,s){Z(t,e,i,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,i,s){tt(t,e,i,s)}mount(t){this.isSVGTag=q(t.tagName),super.mount(t)}}let i8=(t,e)=>C(t)?new i3(e,{enableHardwareAcceleration:!1}):new i2(e,{allowProjection:t!==r.Fragment,enableHardwareAcceleration:!0}),i4={animation:{Feature:tX},exit:{Feature:tH},inView:{Feature:tj},tap:{Feature:tM},focus:{Feature:tA},hover:{Feature:tS},pan:{Feature:eD},drag:{Feature:eM,ProjectionNode:ij,MeasureLayout:e$},layout:{ProjectionNode:ij,MeasureLayout:e$}},i6=function(t){function e(e,i={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:c,Component:f}){t&&function(t){for(let e in t)b[e]={...b[e],...t[e]}}(t);let v=(0,r.forwardRef)(function(v,g){var x;let w;let b={...(0,r.useContext)(n),...v,layoutId:function({layoutId:t}){let e=(0,r.useContext)(S).id;return e&&void 0!==t?e+"-"+t:t}(v)},{isStatic:V}=b,E=function(t){let{initial:e,animate:i}=function(t,e){if(y(t)){let{initial:e,animate:i}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(o));return(0,r.useMemo)(()=>({initial:e,animate:i}),[P(e),P(i)])}(v),C=c(v,V);if(!V&&T.j){E.visualElement=function(t,e,i,s){let{visualElement:c}=(0,r.useContext)(o),p=(0,r.useContext)(h),m=(0,r.useContext)(a),f=(0,r.useContext)(n).reducedMotion,v=(0,r.useRef)();s=s||p.renderer,!v.current&&s&&(v.current=s(t,{visualState:e,parent:c,props:i,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:f}));let g=v.current;(0,r.useInsertionEffect)(()=>{g&&g.update(i,m)});let y=(0,r.useRef)(!!(i[u.M]&&!window.HandoffComplete));return(0,l.L)(()=>{g&&(d.postRender(g.render),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}(f,C,b,e);let i=(0,r.useContext)(A),s=(0,r.useContext)(h).strict;E.visualElement&&(w=E.visualElement.loadFeatures(b,s,t,i))}return(0,s.jsxs)(o.Provider,{value:E,children:[w&&E.visualElement?(0,s.jsx)(w,{visualElement:E.visualElement,...b}):null,i(f,v,(x=E.visualElement,(0,r.useCallback)(t=>{t&&C.mount&&C.mount(t),x&&(t?x.mount(t):x.unmount()),g&&("function"==typeof g?g(t):p(g)&&(g.current=t))},[x])),C,V,E.visualElement)]})});return v[V]=f,v}(t(e,i))}if("undefined"==typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,s)=>(i.has(s)||i.set(s,e(s)),i.get(s))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,s){return{...C(t)?th:tu,preloadedFeatures:i,useRender:function(t=!1){return(e,i,s,{latestValues:n},o)=>{let a=(C(e)?function(t,e,i,s){let n=(0,r.useMemo)(()=>{let i=G();return Z(i,e,{enableHardwareAcceleration:!1},q(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};W(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,i){let s={},n=function(t,e,i){let s=t.style||{},n={};return W(n,s,t),Object.assign(n,function({transformTemplate:t},e,i){return(0,r.useMemo)(()=>{let s=I();return O(s,e,{enableHardwareAcceleration:!i},t),Object.assign({},s.vars,s.style)},[e])}(t,e,i)),n}(t,e,i);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=n,s})(i,n,o,e),l=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(X(r)||!0===i&&N(r)||!e&&!N(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),h=e!==r.Fragment?{...l,...a,ref:s}:{},{children:u}=i,d=(0,r.useMemo)(()=>(0,k.i)(u)?u.get():u,[u]);return(0,r.createElement)(e,{...h,children:d})}}(e),createVisualElement:s,Component:t}})(t,e,i4,i8))},1322:(t,e,i)=>{i.d(e,{D:()=>s});let s=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},8543:(t,e,i)=>{i.d(e,{f:()=>r,t:()=>o});let s=t=>e=>"string"==typeof e&&e.startsWith(t),r=s("--"),n=s("var(--"),o=t=>!!n(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},4080:(t,e,i)=>{i.d(e,{Ei:()=>c,lw:()=>p,mP:()=>a,z2:()=>o});var s=i(285),r=i(7255),n=i(7162);let o=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===r.Rx||t===n.px,l=(t,e)=>parseFloat(t.split(", ")[e]),h=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return l(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},u=new Set(["x","y","z"]),d=s._.filter(t=>!u.has(t));function c(t){let e=[];return d.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}let p={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:h(4,13),y:h(5,14)};p.translateX=p.x,p.translateY=p.y},8967:(t,e,i)=>{i.d(e,{T:()=>o});var s=i(282),r=i(4227),n=i(5843);function o(t,e){let i=(0,n.A)(t);return i!==r.h&&(i=s.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},5843:(t,e,i)=>{i.d(e,{A:()=>o});var s=i(236),r=i(4227);let n={...i(2750).j,color:s.$,backgroundColor:s.$,outlineColor:s.$,fill:s.$,stroke:s.$,borderColor:s.$,borderTopColor:s.$,borderRightColor:s.$,borderBottomColor:s.$,borderLeftColor:s.$,filter:r.h,WebkitFilter:r.h},o=t=>n[t]},5232:(t,e,i)=>{i.d(e,{$:()=>o,C:()=>a});var s=i(7255),r=i(7162),n=i(3883);let o=[s.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,n.l)(t))},2750:(t,e,i)=>{i.d(e,{j:()=>o});var s=i(7255),r=i(7162);let n={...s.Rx,transform:Math.round},o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:s.bA,scaleX:s.bA,scaleY:s.bA,scaleZ:s.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:s.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:n,backgroundPositionX:r.px,backgroundPositionY:r.px,fillOpacity:s.Fq,strokeOpacity:s.Fq,numOctaves:n}},3883:(t,e,i)=>{i.d(e,{l:()=>s});let s=t=>e=>e.test(t)},285:(t,e,i)=>{i.d(e,{G:()=>r,_:()=>s});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(s)},8459:(t,e,i)=>{i.d(e,{e:()=>d,m:()=>u});var s=i(4080),r=i(5386);let n=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(n).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,s.Ei)(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])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,n.forEach(t=>t.complete()),n.clear()}function h(){n.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function u(){h(),l()}class d{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(n.add(this),o||(o=!0,r.Wi.read(h),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),n.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,n.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},3734:(t,e,i)=>{i.d(e,{x:()=>r});var s=i(4085);function r(t,e,i){let r=t.getProps();return(0,s.o)(r,e,void 0!==i?i:r.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}},4085:(t,e,i)=>{i.d(e,{o:()=>s});function s(t,e,i,s={},r={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,s,r)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,s,r)),e}},8890:(t,e,i)=>{i.d(e,{C:()=>o});var s=i(2083),r=i(4840),n=i(3734);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,n.x)(t,e)||{};for(let e in a={...a,...i}){let i=(0,s.Y)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,r.BX)(i))}}},8250:(t,e,i)=>{i.d(e,{c:()=>s});let s={skipAnimations:!1,useManualTiming:!1}},2840:(t,e,i)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:()=>r,y4:()=>s})},2361:(t,e,i)=>{i.d(e,{u:()=>s});let s=(t,e,i)=>i>e?e:i<t?t:i},4673:(t,e,i)=>{i.d(e,{K:()=>r,k:()=>n});var s=i(4380);let r=s.Z,n=s.Z},8263:(t,e,i)=>{i.d(e,{j:()=>s});let s="undefined"!=typeof document},3002:(t,e,i)=>{i.d(e,{P:()=>s});let s=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},534:(t,e,i)=>{i.d(e,{W:()=>s});let s=t=>/^0[^.\s]+$/u.test(t)},5343:(t,e,i)=>{i.d(e,{t:()=>s});let s=(t,e,i)=>t+(e-t)*i},4380:(t,e,i)=>{i.d(e,{Z:()=>s});let s=t=>t},9022:(t,e,i)=>{i.d(e,{z:()=>r});let s=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(s)},5018:(t,e,i)=>{i.d(e,{Y:()=>s});let s=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s}},2083:(t,e,i)=>{i.d(e,{Y:()=>n,p:()=>r});var s=i(3695);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),n=t=>(0,s.C)(t)?t[t.length-1]||0:t},777:(t,e,i)=>{i.d(e,{L:()=>r});var s=i(2840);class r{constructor(){this.subscriptions=[]}add(t){return(0,s.y4)(this.subscriptions,t),()=>(0,s.cl)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},8968:(t,e,i)=>{i.d(e,{X:()=>r,w:()=>s});let s=t=>1e3*t,r=t=>t/1e3},7977:(t,e,i)=>{i.d(e,{h:()=>r});var s=i(7577);function r(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},2482:(t,e,i)=>{i.d(e,{L:()=>r});var s=i(7577);let r=i(8263).j?s.useLayoutEffect:s.useEffect},8702:(t,e,i)=>{i.d(e,{R:()=>s});function s(t,e){return e?1e3/e*t:0}},4840:(t,e,i)=>{i.d(e,{BX:()=>u});var s=i(777),r=i(8702),n=i(8111),o=i(5386);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class h{constructor(t,e={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.X.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=a(this.current),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.X.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new h(t,e)}},9963:(t,e,i)=>{i.d(e,{$:()=>r});var s=i(8185);let r={test:(0,i(3996).i)("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:s.m.transform}},2924:(t,e,i)=>{i.d(e,{J:()=>a});var s=i(7255),r=i(7162),n=i(5423),o=i(3996);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,n.Nw)(e))+", "+r.aQ.transform((0,n.Nw)(i))+", "+(0,n.Nw)(s.Fq.transform(o))+")"}},236:(t,e,i)=>{i.d(e,{$:()=>a});var s=i(5423),r=i(9963),n=i(2924),o=i(8185);let a={test:t=>o.m.test(t)||r.$.test(t)||n.J.test(t),parse:t=>o.m.test(t)?o.m.parse(t):n.J.test(t)?n.J.parse(t):r.$.parse(t),transform:t=>(0,s.HD)(t)?t:t.hasOwnProperty("red")?o.m.transform(t):n.J.transform(t)}},8185:(t,e,i)=>{i.d(e,{m:()=>h});var s=i(2361),r=i(7255),n=i(5423),o=i(3996);let a=t=>(0,s.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},h={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,n.Nw)(r.Fq.transform(s))+")"}},3996:(t,e,i)=>{i.d(e,{d:()=>n,i:()=>r});var s=i(5423);let r=(t,e)=>i=>!!((0,s.HD)(i)&&s.mj.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),n=(t,e,i)=>r=>{if(!(0,s.HD)(r))return r;let[n,o,a,l]=r.match(s.KP);return{[t]:parseFloat(n),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},4227:(t,e,i)=>{i.d(e,{h:()=>l});var s=i(282),r=i(5423);let n=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(r.KP)||[];if(!s)return t;let o=i.replace(s,""),a=n.has(e)?1:0;return s!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...s.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},282:(t,e,i)=>{i.d(e,{P:()=>c,V:()=>l});var s=i(236),r=i(5423);let n="number",o="color",a=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},l=[],h=0,u=e.replace(a,t=>(s.$.test(t)?(r.color.push(h),l.push(o),i.push(s.$.parse(t))):t.startsWith("var(")?(r.var.push(h),l.push("var"),i.push(t)):(r.number.push(h),l.push(n),i.push(parseFloat(t))),++h,"${}")).split("${}");return{values:i,split:u,indexes:r,types:l}}function h(t){return l(t).values}function u(t){let{split:e,types:i}=l(t),a=e.length;return t=>{let l="";for(let h=0;h<a;h++)if(l+=e[h],void 0!==t[h]){let e=i[h];e===n?l+=(0,r.Nw)(t[h]):e===o?l+=s.$.transform(t[h]):l+=t[h]}return l}}let d=t=>"number"==typeof t?0:t,c={test:function(t){var e,i;return isNaN(t)&&(0,r.HD)(t)&&((null===(e=t.match(r.KP))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r.dA))||void 0===i?void 0:i.length)||0)>0},parse:h,createTransformer:u,getAnimatableNone:function(t){let e=h(t);return u(t)(e.map(d))}}},7255:(t,e,i)=>{i.d(e,{Fq:()=>n,Rx:()=>r,bA:()=>o});var s=i(2361);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},n={...r,transform:t=>(0,s.u)(0,1,t)},o={...r,default:1}},7162:(t,e,i)=>{i.d(e,{$C:()=>u,RW:()=>n,aQ:()=>o,px:()=>a,vh:()=>l,vw:()=>h});var s=i(5423);let r=t=>({test:e=>(0,s.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=r("deg"),o=r("%"),a=r("px"),l=r("vh"),h=r("vw"),u={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},5423:(t,e,i)=>{i.d(e,{HD:()=>a,KP:()=>r,Nw:()=>s,dA:()=>n,mj:()=>o});let s=t=>Math.round(1e5*t)/1e5,r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,o=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function a(t){return"string"==typeof t}},3096:(t,e,i)=>{i.d(e,{L:()=>r});var s=i(1551);function r(t){return!!((0,s.i)(t)&&t.add)}},1551:(t,e,i)=>{i.d(e,{i:()=>s});let s=t=>!!(t&&t.getVelocity)},3257:(t,e,i)=>{i.d(e,{YD:()=>h});var s=i(7577),r=Object.defineProperty,n=new Map,o=new WeakMap,a=0,l=void 0;function h({threshold:t,delay:e,trackVisibility:i,rootMargin:r,root:h,triggerOnce:u,skip:d,initialInView:c,fallbackInView:p,onChange:m}={}){var f;let[v,g]=s.useState(null),y=s.useRef(),[x,P]=s.useState({inView:!!c,entry:void 0});y.current=m,s.useEffect(()=>{let s;if(!d&&v)return s=function(t,e,i={},s=l){if(void 0===window.IntersectionObserver&&void 0!==s){let r=t.getBoundingClientRect();return e(s,{isIntersecting:s,target:t,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:h,elements:u}=function(t){let e=Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{var i;return`${e}_${"root"===e?(i=t.root)?(o.has(i)||(a+=1,o.set(i,a.toString())),o.get(i)):"0":t[e]}`}).toString(),i=n.get(e);if(!i){let s;let r=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{var i;let n=e.isIntersecting&&s.some(t=>e.intersectionRatio>=t);t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=n),null==(i=r.get(e.target))||i.forEach(t=>{t(n,e)})})},t);s=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:o,elements:r},n.set(e,i)}return i}(i),d=u.get(t)||[];return u.has(t)||u.set(t,d),d.push(e),h.observe(t),function(){d.splice(d.indexOf(e),1),0===d.length&&(u.delete(t),h.unobserve(t)),0===u.size&&(h.disconnect(),n.delete(r))}}(v,(t,e)=>{P({inView:t,entry:e}),y.current&&y.current(t,e),e.isIntersecting&&u&&s&&(s(),s=void 0)},{root:h,rootMargin:r,threshold:t,trackVisibility:i,delay:e},p),()=>{s&&s()}},[Array.isArray(t)?t.toString():t,v,h,r,u,d,i,p,e]);let w=null==(f=x.entry)?void 0:f.target,b=s.useRef();v||!w||u||d||b.current===w||(b.current=w,P({inView:!!c,entry:void 0}));let T=[g,x.inView,x.entry];return T.ref=T[0],T.inView=T[1],T.entry=T[2],T}s.Component}};