PageSourceSearch

https://appverticals-stg.vercel.app/_next/static/chunks/1021-9002d5bde86f684d.js

js appverticals-stg.vercel.app collected 2026-10-03 06:07:16 UTC 123,752 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1021],{567:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},2217:(t,e,i)=>{i.d(e,{D:()=>o});var n=i(82897),s=i(23492);let r={...i(90802).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:s.p,WebkitFilter:s.p},o=t=>r[t]},2735:(t,e,i)=>{function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,s){if("function"==typeof e){let[r,o]=n(s);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=n(s);e=e(void 0!==i?i:t.custom,r,o)}return e}i.d(e,{a:()=>s})},3870:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},4331:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{W9:()=>a,vY:()=>d,Kq:()=>n,V1:()=>o,ph:()=>l,Xu:()=>p,lQ:()=>u,qB:()=>h,Ai:()=>s,fD:()=>c,fj:()=>m,$e:()=>r});let r=()=>{},o=()=>{},a={skipAnimations:!1,useManualTiming:!1};function l(t){let e;return()=>(void 0===e&&(e=t()),e)}let u=t=>t,h=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};class d{constructor(){this.subscriptions=[]}add(t){return n(this.subscriptions,t),()=>s(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let c=t=>1e3*t,p=t=>t/1e3;function m(t,e){return e?1e3/e*t:0}},4576:(t,e,i)=>{i.d(e,{I:()=>c,r:()=>d});let n=t=>180*t/Math.PI,s=t=>o(n(Math.atan2(t[1],t[0]))),r={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:s,rotateZ:s,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(n(Math.atan2(t[6],t[5]))),rotateY:t=>o(n(Math.atan2(-t[2],t[0]))),rotateZ:s,rotate:s,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return h(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=u,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=r,n=e}if(!n)return h(e);let o=i[e],a=n[1].split(",").map(p);return"function"==typeof o?o(a):a[o]}let c=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return d(i,e)};function p(t){return parseFloat(t.trim())}},5910:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},7345:(t,e,i)=>{i.d(e,{Z:()=>r});var n=i(4331),s=i(21109);function r(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let o=(0,n.qB)(0,e,r);t.push((0,s.k)(i,1,o))}}(e,t.length-1),e}},12083:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(23082),s=i(45471),r=i(22282),o=i(97219);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:o,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+s.KN.transform((0,r.a)(i))+", "+s.KN.transform((0,r.a)(o))+", "+(0,r.a)(n.X4.transform(a))+")"}}},14570:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},16498:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},18203:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(44438),s=i(79280);let r=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,s.W9)(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=>{var i;let[n,s]=e;null===(i=t.getValue(n))||void 0===i||i.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,r.forEach(t=>t.complete()),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{scheduleResolve(){this.isScheduled=!0,this.isAsync?(r.add(this),o||(o=!0,n.Gt.read(u),n.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){let s=null==n?void 0:n.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),r.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,r.delete(this))}resume(){this.isComplete||this.scheduleResolve()}constructor(t,e,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}}},18559:(t,e,i)=>{i.d(e,{f:()=>ti});var n=i(44438),s=i(4331);let r={current:!1},o=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function a(t,e,i,n){if(t===e&&i===n)return s.lQ;let r=e=>
1(function(t,e,i,n,s){let r,a,l=0;do(r=o(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:o(r(t),e,n)}var l=i(567),u=i(16498);let h=a(.33,1.53,.69,.99),d=(0,u.G)(h),c=(0,l.V)(d),p=t=>(t*=2)<1?.5*d(t):.5*(2-Math.pow(2,-10*(t-1)));var m=i(59282),f=i(33796),v=i(18203),g=i(93013);let y=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(g.f.test(t)||"0"===t)&&!t.startsWith("url(")),x=t=>null!==t;function P(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=t.filter(x),o=n&&"loop"!==s&&n%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}class w{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,v.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.kB.now(),this.hasAttemptedResolve=!0;let{name:i,type:o,velocity:a,delay:l,onComplete:u,onUpdate:h,isGenerator:d}=this.options;if(!d&&!function(t,e,i,r){let o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;let a=t[t.length-1],l=y(o,e),u=y(a,e);return(0,s.$e)(l===u,"You are trying to animate ".concat(e,' from "').concat(o,'" to "').concat(a,'". ').concat(o," is not an animatable value - to enable this animation set ").concat(o," to a value animatable to ").concat(a," via the `style` property.")),!!l&&!!u&&(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||(0,n.WH)(i))&&r)}(t,i,o,a))if(r.current||!l){h&&h(P(t,this.options,e)),u&&u(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.kB.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}}var T=i(77782),S=i(47437),b=i(97007);function A(t,e,i){let n=Math.max(e-5,0);return(0,s.fj)(i-t(n),e-n)}let M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function V(t,e){return t*Math.sqrt(1-e*e)}let E=["duration","bounce"],k=["stiffness","damping","mass"];function D(t,e){return e.some(e=>void 0!==t[e])}function C(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.bounce,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:i}:e,{restSpeed:o,restDelta:a}=r,l=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],h={done:!1,value:l},{stiffness:d,damping:c,mass:p,duration:m,velocity:f,isResolvedFromDuration:v}=function(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!D(t,k)&&D(t,E))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,T.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:M.mass,stiffness:n,damping:s}}else{let i=function(t){let e,i,{duration:n=M.duration,bounce:r=M.bounce,velocity:o=M.velocity,mass:a=M.mass}=t;(0,s.$e)(n<=(0,s.fD)(M.maxDuration),"Spring duration must be 10 seconds or less");let l=1-r;l=(0,T.q)(M.minDamping,M.maxDamping,l),n=(0,T.q)(M.minDuration,M.maxDuration,(0,s.Xu)(n)),l<1?(e=t=>{let e=t*l,i=e*n;return .001-(e-o)/V(t,l)*Math.exp(-i)},i=t=>{let i=t*l*n,s=Math.pow(l,2)*Math.pow(t,2)*n,r=Math.exp(-i),a=V(Math.pow(t,2),l);return(i*o+o-s)*r*(-e(t)+.001>0?-1:1)/a}):(e=t=>-.001+Math.exp(-t*n)*((t-o)*n+1),i=t=>n*n*(o-t)*Math.exp(-t*n));let u=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=(0,s.fD)(n),isNaN(u))return{stiffness:M.stiffness,damping:M.damping,duration:n};{let t=Math.pow(u,2)*a;return{stiffness:t,damping:2*l*Math.sqrt(a*t),duration:n}}}(t);(e={...e,...i,mass:M.mass}).isResolvedFromDuration=!0}return e}({...r,velocity:-(0,s.Xu)(r.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(d*p)),x=u-l,P=(0,s.Xu)(Math.sqrt(d/p)),w=5>Math.abs(x);if(o||(o=w?M.restSpeed.granular:M.restSpeed.default),a||(a=w?M.restDelta.granular:M.restDelta.default),y<1){let e=V(P,y);t=t=>u-Math.exp(-y*P*t)*((g+y*P*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}else if(1===y)t=t=>
1u-Math.exp(-P*t)*(x+(g+P*x)*t);else{let e=P*Math.sqrt(y*y-1);t=t=>{let i=Math.exp(-y*P*t),n=Math.min(e*t,300);return u-i*((g+y*P*x)*Math.sinh(n)+e*x*Math.cosh(n))/e}}let S={calculatedDuration:v&&m||null,next:e=>{let i=t(e);if(v)h.done=e>=m;else{let n=0;y<1&&(n=0===e?(0,s.fD)(g):A(t,e,i));let r=Math.abs(u-i)<=a;h.done=Math.abs(n)<=o&&r}return h.value=h.done?u:i,h},toString:()=>{let t=Math.min((0,n.tu)(S),n.YE),e=(0,n.KZ)(e=>S.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return S}function R(t){let e,i,{keyframes:n,velocity:s=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},v=t=>void 0!==h&&t<h||void 0!==d&&t>d,g=t=>void 0===h?d:void 0===d?h:Math.abs(h-t)<Math.abs(d-t)?h:d,y=r*s,x=m+y,P=void 0===u?x:u(x);P!==x&&(y=P-m);let w=t=>-y*Math.exp(-t/o),T=t=>P+w(t),S=t=>{let e=w(t),i=T(t);f.done=Math.abs(e)<=c,f.value=f.done?P:i},b=t=>{v(f.value)&&(e=t,i=C({keyframes:[f.value,g(f.value)],velocity:A(T,t,f.value),damping:a,stiffness:l,restDelta:c,restSpeed:p}))};return b(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,S(t),b(t)),void 0!==e&&t>=e)?i.next(t-e):(n||S(t),f)}}}C.applyToOptions=t=>{let e=(0,n.XG)(t,100,C);return t.ease=(0,n.nL)()?e.ease:"easeOut",t.duration=(0,s.fD)(e.duration),t.type="keyframes",t};let j=a(.42,0,1,1),B=a(0,0,.58,1),L=a(.42,0,.58,1),F=t=>Array.isArray(t)&&"number"!=typeof t[0],O={linear:s.lQ,easeIn:j,easeInOut:L,easeOut:B,circIn:m.po,circInOut:m.tn,circOut:m.yT,backIn:d,backInOut:c,backOut:h,anticipate:p},U=t=>{if((0,n.DW)(t)){(0,s.V1)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return a(e,i,n,r)}return"string"==typeof t?((0,s.V1)(void 0!==O[t],"Invalid easing type '".concat(t,"'")),O[t]):t};var I=i(97846),W=i(7345);function N(t){let{duration:e=300,keyframes:i,times:n,ease:s="easeInOut"}=t,r=F(s)?s.map(U):U(s),o={done:!1,value:i[0]},a=(n&&n.length===i.length?n:(0,W.Z)(i)).map(t=>t*e),l=(0,I.G)(a,i,{ease:Array.isArray(r)?r:i.map(()=>r||L).splice(0,i.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let G=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:()=>n.Gt.update(e,!0),stop:()=>(0,n.WG)(e),now:()=>n.uv.isProcessing?n.uv.timestamp:n.kB.now()}},q={decay:R,inertia:R,tween:N,keyframes:N,spring:C},K=t=>t/100;class X extends w{flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=(0,n.WH)(s)?s:q[s]||N;u!==N&&"number"!=typeof t[0]&&(e=(0,b.F)(K,(0,S.j)(t[0],t[1])),t=[0,100]);let h=u({...this.options,keyframes:t});"mirror"===a&&(i=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,n.tu)(h));let{calculatedDuration:d}=h,c=d+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(r+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;n.qU.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/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 v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(c){let t=Math.min(this.currentTime,u)/h,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,m&&(i-=m/h)):"mirror"===p&&(x=r)),y=(0,T.q)(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:S}=w;g||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&void 0!==n&&(w.value=P(a,this.options,n)),f&&f(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,s.Xu)(t.calculatedDuration):0}
1get time(){return(0,s.Xu)(this.currentTime)}set time(t){t=(0,s.fD)(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.Xu)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=G,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"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(),n.qU.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,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:e,motionValue:i,element:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||v.h;this.resolver=new r(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}let Y=new Set(["opacity","clipPath","filter","transform"]),z=(0,s.ph)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),H={anticipate:p,backInOut:c,circInOut:m.tn};class Q extends w{initPlayback(t,e){var i;let{duration:s=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,n.nL)()&&o in H&&(o=H[o]),i=this.options,(0,n.WH)(i.type)||"spring"===i.type||!(0,n.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new X({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,o=h.ease,a="keyframes"}let d=(0,n.RK)(l.owner.current,u,t,{...this.options,duration:s,times:r,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,n.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(P(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,s.Xu)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,s.Xu)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,s.fD)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}get finished(){return this.resolved.animation.finished}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}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return s.lQ;let{animation:i}=e;(0,n.vG)(i,t)}else this.pendingTimeline=t;return s.lQ}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;
1"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;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new X({...h,keyframes:i,duration:n,type:r,ease:o,times:a,isGenerator:!0}),c=(0,s.fD)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),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:n,repeatType:s,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return z()&&i&&Y.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new f.K(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}}var $=i(87387);let _={type:"spring",stiffness:500,damping:25,restSpeed:10},Z=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),J={type:"keyframes",duration:.8},tt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},te=(t,e)=>{let{keyframes:i}=e;return i.length>2?J:$.f.has(t)?t.startsWith("scale")?Z(i[1]):_:tt},ti=function(t,e,i){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;return u=>{let h=(0,n.rU)(o,t)||{},d=h.delay||o.delay||0,{elapsed:c=0}=o;c-=(0,s.fD)(d);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-c,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:l?void 0:a};!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...d}=t;return!!Object.keys(d).length}(h)&&(p={...p,...te(t,p)}),p.duration&&(p.duration=(0,s.fD)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,s.fD)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let m=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(p.duration=0,0!==p.delay||(m=!0)),(r.current||s.W9.skipAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!h.type&&!h.ease,m&&!l&&void 0!==e.get()){let t=P(p.keyframes,h);if(void 0!==t)return n.Gt.update(()=>{p.onUpdate(t),p.onComplete()}),new n.b3([])}return!l&&Q.supports(p)?new Q(p):new X(p)}}},18802:(t,e,i)=>{i.d(e,{U:()=>o});var n=i(44438),s=i(34379),r=i(20419);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,r.K)(t,e)||{};for(let e in a={...a,...i}){let i=(0,s.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},19780:(t,e,i)=>{i.d(e,{J:()=>o});var n=i(93013),s=i(23492),r=i(2217);function o(t,e){let i=(0,r.D)(t);return i!==s.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},20419:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(2735);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},21109:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},22282:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},23082:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>o});var n=i(77782);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},o={...s,default:1}},23492:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(93013),s=i(66479);let r=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(s.S)||[];if(!n)return t;let o=i.replace(n,""),a=+!!r.has(e);return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},24935:(t,e,i)=>{i.d(e,{B:()=>u});var n=i(77782),s=i(23082),r=i(22282),o=i(97219);let a=t=>(0,n.q)(0,255,t),l={...s.ai,transform:t=>Math.round(a(t))},u={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:o=1}=t;return"rgba("+l.transform(e)+", "+l.transform(i)+", "+l.transform(n)+", "+(0,r.a)(s.X4.transform(o))+")"}}},31070:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(87387).U])},31788:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(78450).I)("framerAppearId")},33796:(t,e,i)=>{i.d(e,{K:()=>f});var n=i(56440),s=i(31070),r=i(93013),o=i(19780);
1let a=new Set(["auto","none","0"]);var l=i(18203),u=i(4331),h=i(3870),d=i(93676);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(79280),m=i(39067);class f extends l.h{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,d.p)(n))){let s=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,u.V1)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[s,r]=function(t){let e=c.exec(t);if(!e)return[,];let[,i,n,s]=e;return["--".concat(null!=i?i:n),s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return(0,h.i)(t)?parseFloat(t):t}return(0,d.p)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!s.$.has(i)||2!==t.length)return;let[n,r]=t,o=(0,m.n)(n),a=(0,m.n)(r);if(o!==a)if((0,p.E4)(o)&&(0,p.E4)(a))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 s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||(0,n.$)(s))&&i.push(e)}if(i.length){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!a.has(e)&&(0,r.V)(e).values.length&&(n=t[s]),s++}if(n&&e)for(let s of i)t[s]=(0,o.J)(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=p.Hr[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.forEac
1h(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}}},34379:(t,e,i)=>{i.d(e,{B:()=>s,K:()=>r});var n=i(5910);let s=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),r=t=>(0,n.p)(t)?t[t.length-1]||0:t},39067:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var n=i(23082),s=i(45471),r=i(61987);let o=[n.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,r.w)(t))},40039:(t,e,i)=>{i.d(e,{Al:()=>a,x:()=>l});var n,s=((n=function(){return s}).toString=n.toLocaleString=n[Symbol.toPrimitive]=function(){return""},n.valueOf=function(){return!1},new Proxy(Object.freeze(n),{get:function(t,e){return t.hasOwnProperty(e)?t[e]:s}}));let r=i.g.window,o=i.g.document;i.g.navigator;let a=void 0!==o?o:s,l=void 0!==r?r:s},44438:(t,e,i)=>{let n;i.d(e,{b3:()=>a,qU:()=>l,vG:()=>S,tu:()=>x,WG:()=>V,bt:()=>J,XG:()=>P,Gt:()=>M,uv:()=>E,PP:()=>k,KZ:()=>p,rU:()=>g,PT:()=>U,DW:()=>h,WH:()=>w,Mc:()=>W,yL:()=>T,YE:()=>y,k2:()=>D,OQ:()=>te,c$:()=>z,KJ:()=>L,Wp:()=>B,RK:()=>v,Qu:()=>u,nL:()=>c,Jb:()=>r,kB:()=>R});var s=i(4331);let r=(0,s.ph)(()=>void 0!==window.ScrollTimeline);class o{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>r()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class a extends o{then(t,e){return this.finished.finally(t).then(()=>{})}}let l={layout:0,mainThread:0,waapi:0},u={value:null,addProjectionMetrics:null},h=t=>Array.isArray(t)&&"number"==typeof t[0],d={},c=function(t,e){let i=(0,s.ph)(t);return()=>d[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),p=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return`linear(${n.substring(0,n.length-2)})`},m=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,f={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:m([0,.65,.55,1]),circOut:m([.55,0,1,.45]),backIn:m([.31,.01,.66,-.59]),backOut:m([.33,1.53,.69,.99])};function v(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:d}={},g){let y={[e]:i};d&&(y.offset=d);let x=function t(e,i){if(e)return"function"==typeof e&&c()?p(e,i):h(e)?m(e):Array.isArray(e)?e.map(e=>t(e,i)||f.easeOut):f[e]}(a,s);Array.isArray(x)&&(y.easing=x),u.value&&l.waapi++;let P=t.animate(y,{delay:n,duration:s,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal",pseudoElement:g});return u.value&&P.finished.finally(()=>{l.waapi--}),P}function g(t,e){return t?.[e]??t?.default??t}new WeakMap;let y=2e4;function x(t){let e=0,i=t.next(e);for(;!i.done&&e<y;)e+=50,i=t.next(e);return e>=y?1/0:e}function P(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(x(n),y);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:(0,s.Xu)(r)}}function w(t){return"function"==typeof t&&"applyToOptions"in t}function T(t){return!!("function"==typeof t&&c()||!t||"string"==typeof t&&(t in f||c())||h(t)||Array.isArray(t)&&t.every(T))}function S(t,e){t.timeline=e,t.onfinish=null}let b=["read","resolveKeyframes","update","preRender","render","postRender"];function A(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>i=!0,a=b.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(d.schedule(e),t()),l++,e(a)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(h),e&&u.value&&u.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,d.process(t))}};return d}(o,e?i:void 0),t),{}),{read:l,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let o=s.W9.useManualTiming?r.timestamp:performance.now();i=!1,s.W9.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,l.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))},v=()=>{i=!0,n=!0,r.isProcessing||t(f)};return{schedule:b.reduce((t,e)=>{let n=a[e];return t[e]=(t,e=!1,s=!1)=>(i||v(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e<b.length;e++)a[b[e]].cancel(t)},state:r,steps:a}}let{schedule:M,cancel:V,state:E,steps:k}=A("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.lQ,!0),{schedule:D}=A(queueMicrotask,!1);function C(){n=void 0}let R={now:()=>(void 0===n&&R.set(E.isProcessing||s.W9.useManualTiming?E.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(C)}},j={x:!1,y:!1};function B(t){if("x"===t||"y"===t)if(j[t])return null;else return j[t]=!0,()=>{j[t]=!1};return j.x||j.y?null:(j.x=j.y=!0,()=>{j.x=j.y=!1})}function L(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function F(t,e){let i=L(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function O(t){return!("touch"===t.pointerType||j.x||j.y)}function U(t,e,i={}){let[n,s,r]=F(t,i),o=t=>{if(!O(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{O(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}let I=(t,e)=>!!e&&(t===e||I(t,e.parentElement)),W=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,N=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),G=new WeakSet;function q(t){return e=>{"Enter"===e.key&&t(e)}}function K(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let X=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=q(()=>{if(G.has(i))return;K(i,"down");let t=q(()=>{K(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>K(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function Y(t){return W(t)&&!(j.x||j.y)}function z(t,e,i={}){let[n,s,r]=F(t,i),o=t=>{let n=t.currentTarget;if(!Y(t)||G.has(n))return;G.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Y(t)&&G.has(n)&&(G.delete(n),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||I(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};
1return n.forEach(t=>{if((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t instanceof HTMLElement)t.addEventListener("focus",t=>X(t,s)),!N.has(t.tagName)&&-1===t.tabIndex&&!t.hasAttribute("tabindex")&&(t.tabIndex=0)}),r}function H(){let{value:t}=statsBuffer;if(null===t){cancelFrame(H);return}t.frameloop.rate.push(frameData.delta),t.animations.mainThread.push(activeAnimations.mainThread),t.animations.waapi.push(activeAnimations.waapi),t.animations.layout.push(activeAnimations.layout)}function Q(t){return t.reduce((t,e)=>t+e,0)/t.length}function $(t,e=Q){return 0===t.length?{min:0,max:0,avg:0}:{min:Math.min(...t),max:Math.max(...t),avg:e(t)}}let _=t=>Math.round(1e3/t),Z=t=>!isNaN(parseFloat(t)),J={current:void 0};class tt{constructor(t,e={}){this.version="12.6.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=R.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.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=R.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=Z(this.current))}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.vY);let i=this.events[t].add(e);return"change"===t?()=>{i(),M.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 J.current&&J.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=R.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,s.fj)(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 te(t,e){return new tt(t,e)}let ti=null,tn=null},45471:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>u,px:()=>o,uj:()=>s,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),s=n("deg"),r=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},46926:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(31788);function s(t){return t.props[n.n]}},47437:(t,e,i)=>{i.d(e,{j:()=>A});var n=i(21109),s=i(4331);function r(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 o=i(67730),a=i(24935),l=i(12083);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},d=[o.u,a.B,l.V],c=t=>d.find(e=>e.test(t));function p(t){let e=c(t);if((0,s.$e)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:s}=t;e/=360,n/=100;let o=0,a=0,l=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,s=2*n-t;o=r(s,t,e+1/3),a=r(s,t,e),l=r(s,t,e-1/3)}else o=a=l=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*l),alpha:s}}(i)),i}let m=(t,e)=>{let i=p(t),s=p(e);if(!i||!s)return u(t,e);let r={...i};return t=>(r.red=h(i.red,s.red,t),r.green=h(i.green,s.green,t),r.blue=h(i.blue,s.blue,t),r.alpha=(0,n.k)(i.alpha,s.alpha,t),a.B.transform(r))};var f=i(97007),v=i(82897),g=i(93013),y=i(93676);let x=new Set(["none","hidden"]);function P(t,e){return i=>(0,n.k)(t,e,i)}function w(t){return"number"==typeof t?P:"string"==typeof t?(0,y.p)(t)?u:v.y.test(t)?m:b:Array.isArray(t)?T:"object"==typeof t?v.y.test(t)?m:S:u}function T(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function S(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=w(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let b=(t,e)=>{let i=g.f.createTransformer(e),n=(0,g.V)(t),r=(0,g.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?x.has(t)&&!r.values.length||x.has(e)&&!n.values.length?function(t,e){return x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,f.F)(T(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){var s;let o=e.types[r],a=t.indexes[o][n[o]],l=null!==(s=t.values[a])&&void 0!==s?s:0;i[r]=l,n[o]++}return i}(n,r),r.values),i):((0,s.$e)(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
1olors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),u(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,n.k)(t,e,i):w(t)(t,e)}},51508:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},56440:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},59282:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>a,yT:()=>o});var n=i(567),s=i(16498);let r=t=>1-Math.sin(Math.acos(t)),o=(0,s.G)(r),a=(0,n.V)(r)},59734:(t,e,i)=>{i.d(e,{P:()=>iz});var n,s,r=i(4331);function o(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}var a=i(85982),l=i(5910);function u(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function h(t){return"string"==typeof t||Array.isArray(t)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...d],p=c.length;var m=i(20419);let f=[...d].reverse(),v=d.length;function g(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}
1class x{update(){}constructor(t){this.isMounted=!1,this.node=t}}class P extends x{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();o(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return(0,a._)(t,i,n)})),i=y(),n=!0,s=e=>(i,n)=>{var s;let r=(0,m.K)(t,n,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<p;t++){let n=c[t],s=e.props[n];(h(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},g=[],y=new Set,x={},P=1/0;for(let e=0;e<v;e++){var w,T;let c=f[e],p=i[c],m=void 0!==a[c]?a[c]:d[c],v=h(m),S=c===r?p.isActive:null;!1===S&&(P=e);let b=m===d[c]&&m!==a[c]&&v;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...x},!p.isActive&&null===S||!m&&!p.prevProp||o(m)||"boolean"==typeof m)continue;let A=(w=p.prevProp,"string"==typeof(T=m)?T!==w:!!Array.isArray(T)&&!u(T,w)),M=A||c===r&&p.isActive&&!b&&v||e>P&&v,V=!1,E=Array.isArray(m)?m:[m],k=E.reduce(s(c),{});!1===S&&(k={});let{prevResolvedValues:D={}}=p,C={...D,...k},R=e=>{M=!0,y.has(e)&&(V=!0,y.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=k[t],i=D[t];if(x.hasOwnProperty(t))continue;let n=!1;((0,l.p)(e)&&(0,l.p)(i)?u(e,i):e===i)?void 0!==e&&y.has(t)?R(t):p.protectedKeys[t]=!0:null!=e?R(t):y.add(t)}p.prevProp=m,p.prevResolvedValues=k,p.isActive&&(x={...x,...k}),n&&t.blockInitialAnimation&&(M=!1);let j=!(b&&A)||V;M&&j&&g.push(...E.map(t=>({animation:t,options:{type:c}})))}if(y.size){let e={};if("boolean"!=typeof a.initial){let i=(0,m.K)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}y.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),g.push({animation:e})}let S=!!g.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(S=!1),n=!1,S?e(g):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;
1let o=r(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),n=!0}}}(t))}}let w=0;class T extends x{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 n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=w++}}var S=i(44438),b=i(18559);function A(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function M(t){return{point:{x:t.pageX,y:t.pageY}}}let V=t=>e=>(0,S.Mc)(e)&&t(e,M(e));function E(t,e,i,n){return A(t,e,V(i),n)}function k(t){let{top:e,left:i,right:n,bottom:s}=t;return{x:{min:i,max:n},y:{min:e,max:s}}}var D=i(21109);function C(t){return t.max-t.min}function R(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,D.k)(e.min,e.max,t.origin),t.scale=C(i)/C(e),t.translate=(0,D.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function j(t,e,i,n){R(t.x,e.x,i.x,n?n.originX:void 0),R(t.y,e.y,i.y,n?n.originY:void 0)}function B(t,e,i){t.min=i.min+e.min,t.max=t.min+C(e)}function L(t,e,i){t.min=e.min-i.min,t.max=t.min+C(e)}function F(t,e,i){L(t.x,e.x,i.x),L(t.y,e.y,i.y)}let O=()=>({translate:0,scale:1,origin:0,originPoint:0}),U=()=>({x:O(),y:O()}),I=()=>({min:0,max:0}),W=()=>({x:I(),y:I()});function N(t){return[t("x"),t("y")]}function G(t){return void 0===t||1===t}function q(t){let{scale:e,scaleX:i,scaleY:n}=t;return!G(e)||!G(i)||!G(n)}function K(t){return q(t)||X(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function X(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function Y(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function z(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=Y(t.min,e,i,n,s),t.max=Y(t.max,e,i,n,s)}function H(t,e){let{x:i,y:n}=e;z(t.x,i.translate,i.scale,i.originPoint),z(t.y,n.translate,n.scale,n.originPoint)}function Q(t,e){t.min=t.min+e,t.max=t.max+e}function $(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,r=(0,D.k)(t.min,t.max,s);z(t,e,i,r,n)}function _(t,e){$(t.x,e.x,e.scaleX,e.scale,e.originX),$(t.y,e.y,e.scaleY,e.scale,e.originY)}function Z(t,e){return k(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let J=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};function tt(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var te=i(45471),ti=i(76333);let tn=(t,e)=>Math.abs(t-e);var ts=i(97007);class tr{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.WG)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!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=tl(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(tn(t.x,e.x)**2+tn(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=S.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=to(e,this.transformPagePoint),S.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=tl("pointercancel"===t.type?this.lastMoveEventInfo:to(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!(0,S.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=to(M(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=S.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,tl(r,this.history)),this.removeListeners=(0,ts.F)(E(this.contextWindow,"pointermove",this.handlePointerMove),E(this.contextWindow,"pointerup",this.handlePointerUp),E(this.contextWindow,"pointercancel",this.handlePointerUp))}}function to(t,e){return e?{point:e(t.point)}:t}function ta(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tl(t,e){let{point:i}=t;return{point:i,delta:ta(i,tu(e)),offset:ta(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=tu(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,r.fD)(.1)));)i--;if(!n)return{x:0,y:0};let o=(0,r.Xu)(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function tu(t){return t[t.length-1]}var th=i(77782);function td(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 tc(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}
1function tp(t,e,i){return{min:tm(t,e),max:tm(t,i)}}function tm(t,e){return"number"==typeof t?t:t[e]||0}let tf=new WeakMap;class tv{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new tr(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(M(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,S.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),N(t=>{let e=this.getAxisMotionValue(t).get()||0;if(te.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=C(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&S.Gt.postRender(()=>s(t,e)),(0,ti.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>N(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:n,contextWindow:J(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&S.Gt.postRender(()=>s(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.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tg(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,e,i){let{min:n,max:s}=e;return void 0!==n&&t<n?t=i?(0,D.k)(n,t,i.min):Math.max(t,n):void 0!==s&&t>s&&(t=i?(0,D.k)(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&tt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:s,right:r}=e;return{x:td(t.x,n,r),y:td(t.y,i,s)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:tp(t,"left","right"),y:tp(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&N(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}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!tt(e))return!1;let n=e.current;(0,r.V1)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
1let o=function(t,e,i){let n=Z(t,i),{scroll:s}=e;return s&&(Q(n.x,s.offset.x),Q(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a={x:tc((t=s.layout.layoutBox).x,o.x),y:tc(t.y,o.y)};if(i){let t=i(function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=k(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(N(o=>{if(!tg(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ti.g)(this.visualElement,t),i.start((0,b.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){N(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){N(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".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){N(e=>{let{drag:i}=this.getProps();if(!tg(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,D.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!tt(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};N(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=C(t),s=C(e);return s>n?i=(0,r.qB)(e.min,e.max-n,t.min):n>s&&(i=(0,r.qB)(t.min,t.max-s,e.min)),(0,th.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),N(e=>{if(!tg(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,D.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tf.set(this.visualElement,this);let t=E(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();tt(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.Gt.read(e);let s=A(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(N(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=W(),this.visualElement=t}}function tg(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class ty extends x{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.lQ}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=r.lQ,this.removeListeners=r.lQ,this.controls=new tv(t)}}let tx=t=>(e,i)=>{t&&S.Gt.postRender(()=>t(e,i))};class tP extends x{onPointerDown(t){this.session=new tr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:J(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tx(t),onStart:tx(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=E(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=r.lQ}}var tw=i(95155),tT=i(12115);let tS=(0,tT.createContext)(null),tb=(0,tT.createContext)({}),tA=(0,tT.createContext)({}),tM={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tV(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tE={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!te.px.test(t))return t;else t=parseFloat(t);let i=tV(t,e.target.x),n=tV(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var tk=i(93013),tD=i(93676);let tC={};class tR extends tT.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;
1for(let t in tB)tC[t]=tB[t],(0,tD.j)(t)&&(tC[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tM.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||S.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),S.k2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tj(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,tT.useContext)(tS);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,tT.useId)();(0,tT.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,tT.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,tT.useContext)(tb);return(0,tw.jsx)(tR,{...t,layoutGroup:n,switchLayoutGroup:(0,tT.useContext)(tA),isPresent:e,safeToRemove:i})}let tB={borderRadius:{...tE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tE,borderTopRightRadius:tE,borderBottomLeftRadius:tE,borderBottomRightRadius:tE,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,s=tk.f.parse(t);if(s.length>5)return t;let r=tk.f.createTransformer(t),o=+("number"!=typeof s[0]),a=n.x.scale*i.x,l=n.y.scale*i.y;s[0+o]/=a,s[1+o]/=l;let u=(0,D.k)(a,l,.5);return"number"==typeof s[2+o]&&(s[2+o]/=u),"number"==typeof s[3+o]&&(s[3+o]/=u),r(s)}}};var tL=i(14570),tF=i(46926);let tO=(t,e)=>t.depth-e.depth;class tU{add(t){(0,r.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,r.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tO),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}var tI=i(34379);function tW(t){let e=(0,tL.S)(t)?t.get():t;return(0,tI.B)(e)?e.toValue():e}var tN=i(59282);let tG=["TopLeft","TopRight","BottomLeft","BottomRight"],tq=tG.length,tK=t=>"string"==typeof t?parseFloat(t):t,tX=t=>"number"==typeof t||te.px.test(t);function tY(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tz=tQ(0,.5,tN.yT),tH=tQ(.5,.95,r.lQ);function tQ(t,e,i){return n=>n<t?0:n>e?1:i((0,r.qB)(t,e,n))}function t$(t,e){t.min=e.min,t.max=e.max}function t_(t,e){t$(t.x,e.x),t$(t.y,e.y)}function tZ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function tJ(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function t0(t,e,i,n,s){let[r,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(te.KN.test(e)&&(e=parseFloat(e),e=(0,D.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,D.k)(r.min,r.max,n);t===r&&(a-=e),t.min=tJ(t.min,e,i,a,s),t.max=tJ(t.max,e,i,a,s)}(t,e[r],e[o],e[a],e.scale,n,s)}let t1=["x","scaleX","originX"],t2=["y","scaleY","originY"];function t3(t,e,i,n){t0(t.x,e,t1,i?i.x:void 0,n?n.x:void 0),t0(t.y,e,t2,i?i.y:void 0,n?n.y:void 0)}function t9(t){return 0===t.translate&&1===t.scale}function t5(t){return t9(t.x)&&t9(t.y)}function t4(t,e){return t.min===e.min&&t.max===e.max}function t7(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t8(t,e){return t7(t.x,e.x)&&t7(t.y,e.y)}function t6(t){return C(t.x)/C(t.y)}function et(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ee{add(t){(0,r.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,r.Ai)(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)}
1}relegate(t){let e,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:n}=t.options;!1===n&&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)}constructor(){this.members=[]}}let ei={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},en=["","X","Y","Z"],es={visibility:"hidden"},er=0;function eo(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ea(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:s,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new r.vY),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let s=this.eventHandlers.get(t);s&&s.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||n)&&(this.isLayoutDirty=!0),e){let i,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=S.kB.now(),n=s=>{let{timestamp:r}=s,o=r-i;o>=250&&((0,S.WG)(n),t(o-e))};return S.Gt.read(n,!0),()=>(0,S.WG)(n)}(n,250),tM.hasAnimatedSinceResize&&(tM.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:s}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||eb,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=r.getProps(),u=!this.targetLayout||!t8(this.targetLayout,s),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...(0,S.rU)(o,"layout"),onPlay:a,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||ev(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,S.WG)(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(ex),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tF.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}
1(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ep);return}this.isUpdating||this.nodes.forEach(em),this.isUpdating=!1,this.nodes.forEach(ef),this.nodes.forEach(el),this.nodes.forEach(eu),this.clearAllSnapshots();let t=S.kB.now();S.uv.delta=(0,th.q)(0,1e3/60,t-S.uv.timestamp),S.uv.timestamp=t,S.uv.isProcessing=!0,S.PP.update.process(S.uv),S.PP.preRender.process(S.uv),S.PP.render.process(S.uv),S.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,S.k2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ec),this.sharedNodes.forEach(eP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||C(this.snapshot.measuredBox.x)||C(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=W(),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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t5(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||K(this.latestValues)||s)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),eV((t=n).x),eV(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return W();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ek))){let{scroll:t}=this.root;t&&(Q(i.x,t.offset.x),Q(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=W();if(t_(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&t_(i,t),Q(i.x,s.offset.x),Q(i.y,s.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=W();t_(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&_(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),K(n.latestValues)&&_(i,n.latestValues)}return K(this.latestValues)&&_(i,this.latestValues),i}removeTransform(t){let e=W();t_(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!K(i.latestValues))continue;q(i.latestValues)&&i.updateSnapshot();let n=W();t_(n,i.measurePageBox()),t3(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return K(this.latestValues)&&t3(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!==S.uv.t
1imestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==r;if(!(s||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=S.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=W(),this.relativeTargetOrigin=W(),F(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),t_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=W(),this.targetWithTransforms=W()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,B(e.x,i.x,n.x),B(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):t_(this.target,this.layout.layoutBox),H(this.target,this.targetDelta)):t_(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=W(),this.relativeTargetOrigin=W(),F(this.relativeTargetOrigin,this.target,t.target),t_(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}S.Qu.value&&ei.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||q(this.parent.latestValues)||X(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return 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,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===S.uv.t
1imestamp&&(n=!1),n)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;t_(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&_(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,H(t,s)),r&&K(n.latestValues)&&_(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=W());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tZ(this.prevProjectionDelta.x,this.projectionDelta.x),tZ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),j(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&et(this.projectionDelta.x,this.prevProjectionDelta.x)&&et(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),S.Qu.value&&ei.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=U(),this.projectionDelta=U(),this.projectionDeltaWithTransform=U()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=U();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=W(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(eS));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(ew(o.x,t.x,n),ew(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(F(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,eT(p.x,m.x,f.x,v),eT(p.y,m.y,f.y,v),e&&(u=this.relativeTarget,c=e,t4(u.x,c.x)&&t4(u.y,c.y)))this.isProjectionDirty=!1;e||(e=W()),t_(e,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,D.k)(0,void 0!==i.opacity?i.opacity:1,tz(n)),t.opacityExit=(0,D.k)(void 0!==e.opacity?e.opacity:1,0,tH(n))):r&&(t.opacity=(0,D.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s<tq;s++){let r="border".concat(tG[s],"Radius"),o=tY(e,r),a=tY(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tX(o)===tX(a)?(t[r]=Math.max((0,D.k)(tK(o),tK(a),n),0),(te.KN.test(a)||te.KN.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,D.k)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,S.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.Gt.update(()=>{tM.hasAnimatedSinceResize=!0,S.qU.layout++,this.currentAnimation=function(t,e,
1i){let n=(0,tL.S)(0)?0:(0,S.OQ)(t);return n.start((0,b.f)("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{S.qU.layout--},onComplete:()=>{S.qU.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||W();let e=C(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=C(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}t_(e,i),_(e,s),j(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ee),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(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.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 n={};i.z&&eo("z",t,n,this.animationValues);for(let e=0;e<en.length;e++)eo("rotate".concat(en[e]),t,n,this.animationValues),eo("skew".concat(en[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return es;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=tW(null==t?void 0:t.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;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=tW(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!K(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||r||o)&&(n="translate3d(".concat(s,"px, ").concat(r,"px, ").concat(o,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),s&&(n+="rotateX(".concat(s,"deg) ")),r&&(n+="rotateY(".concat(r,"deg) ")),o&&(n+="skewX(".concat(o,"deg) ")),a&&(n+="skewY(".concat(a,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:o}=this.projectionDelta;if(e.transformOrigin="".concat(100*r.origin,"% ").concat(100*o.origin,"% 0"),n.animationValues){var a,l;e.opacity=n===this?null!==(l=null!==(a=s.opacity)&&void 0!==a?a:this.latestValues.opacity)&&void 0!==l?l:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit}else e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(let t in tC){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:o}=tC[t],a="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=a}
1else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?tW(null==t?void 0:t.pointerEvents)||"":"none"),e}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(ep),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=er++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,S.Qu.value&&(ei.nodes=ei.calculatedTargetDeltas=ei.calculatedProjections=0),this.nodes.forEach(eh),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEach(ed),S.Qu.addProjectionMetrics&&S.Qu.addProjectionMetrics(ei)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tU)}}}function el(t){t.updateLayout()}function eu(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:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?N(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=C(n);n.min=e[t].min,n.max=n.min+s}):eE(s,i.layoutBox,e)&&N(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=C(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=U();j(o,e,i.layoutBox);let a=U();r?j(a,t.applyTransform(n,!0),i.measuredBox):j(a,e,i.layoutBox);let l=!t5(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=W();F(o,i.layoutBox,s.layoutBox);let a=W();F(a,e,r.layoutBox),t8(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eh(t){S.Qu.value&&ei.nodes++,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 ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ec(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function em(t){t.isLayoutDirty=!1}function ef(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ev(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eg(t){t.resolveTargetDelta()}function ey(t){t.calcProjection()}function ex(t){t.resetSkewAndRotation()}function eP(t){t.removeLeadSnapshot()}function ew(t,e,i){t.translate=(0,D.k)(e.translate,0,i),t.scale=(0,D.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eT(t,e,i,n){t.min=(0,D.k)(e.min,i.min,n),t.max=(0,D.k)(e.max,i.max,n)}function eS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eb={duration:.45,ease:[.4,0,.1,1]},eA=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eM=eA("applewebkit/")&&!eA("chrome/")?Math.round:r.lQ;function eV(t){t.min=eM(t.min),t.max=eM(t.max)}function eE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t6(e)-t6(i)))}function ek(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eD=ea({attachResizeListener:(t,e)=>A(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eC={current:void 0},eR=ea({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eC.current){let t=new eD({});t.mount(window),t.setOptions({layoutScroll:!0}),eC.current=t}return eC.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ej(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&S.Gt.postRender(()=>s(e,M(e)))}class eB extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.PT)(t,(t,e)=>(ej(this.node,e,"Start"),t=>ej(this.node,t,"End"))))}unmount(){}}class eL extends x{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,ts.F)(A(this.node.current,"focus",()=>this.onFocus()),A(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}function eF(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&S.Gt.postRender(()=>s(e,M(e)))}class eO extends x{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.c$)(t,(t,e)=>(eF(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return eF(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eU=new WeakMap,eI=new WeakMap,eW=t=>{let e=eU.get(t.target);e&&e(t)}
1,eN=t=>{t.forEach(eW)},eG={some:0,all:1};class eq extends x{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eG[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;eI.has(n)||eI.set(n,{});let s=eI.get(n),r=JSON.stringify(i);return s[r]||(s[r]=new IntersectionObserver(eN,{root:e,...i})),s[r]}(e);return eU.set(t,i),n.observe(t),()=>{eU.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let eK=(0,tT.createContext)({strict:!1});var eX=i(51508);let eY=(0,tT.createContext)({});function ez(t){return o(t.animate)||c.some(e=>h(t[e]))}function eH(t){return!!(ez(t)||t.variants)}function eQ(t){return Array.isArray(t)?t.join(" "):t}var e$=i(68972);let e_={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"]},eZ={};for(let t in e_)eZ[t]={isEnabled:e=>e_[t].some(t=>!!e[t])};let eJ=Symbol.for("motionComponentSymbol");var e0=i(31788),e1=i(97494),e2=i(87387);function e3(t,e){let{layout:i,layoutId:n}=e;return e2.f.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!tC[t]||"opacity"===t)}let e9=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var e5=i(90802);let e4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e7=e2.U.length;function e8(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(e2.f.has(t)){o=!0;continue}if((0,tD.j)(t)){s[t]=i;continue}{let e=e9(i,e5.W[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<e7;r++){let o=e2.U[r],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=e9(a,e5.W[o]);if(!l){s=!1;let e=e4[o]||o;n+="".concat(e,"(").concat(t,") ")}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}let e6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function it(t,e,i){for(let n in e)(0,tL.S)(e[n])||e3(n,i)||(t[n]=e[n])}let ie=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 ii(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ie.has(t)}let is=t=>!ii(t);try{!function(t){t&&(is=e=>e.startsWith("on")?!ii(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let ir=["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 io(t){if("string"!=typeof t||t.includes("-"));else if(ir.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let ia={offset:"stroke-dashoffset",array:"stroke-dasharray"},il={offset:"strokeDashoffset",array:"strokeDasharray"};function iu(t,e,i){return"string"==typeof t?t:te.px.transform(e+i*t)}function ih(t,e,i,n){let{attrX:s,attrY:r,attrScale:o,originX:a,originY:l,pathLength:u,pathSpacing:h=1,pathOffset:d=0,...c}=e;
1if(e8(t,c,n),i){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!==a||void 0!==l||m.transform)&&(m.transformOrigin=function(t,e,i){let n=iu(e,t.x,t.width),s=iu(i,t.y,t.height);return"".concat(n," ").concat(s)}(f,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==s&&(p.x=s),void 0!==r&&(p.y=r),void 0!==o&&(p.scale=o),void 0!==u&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let r=s?ia:il;t[r.offset]=te.px.transform(-n);let o=te.px.transform(e),a=te.px.transform(i);t[r.array]="".concat(o," ").concat(a)}(p,u,h,d,!1)}let id=()=>({...e6(),attrs:{}}),ic=t=>"string"==typeof t&&"svg"===t.toLowerCase();var ip=i(2735),im=i(82885);let iv=t=>(e,i)=>{let n=(0,tT.useContext)(eY),s=(0,tT.useContext)(tS),r=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:r,onUpdate:a}=t,l={latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=tW(r[t]);let{initial:a,animate:l}=t,u=ez(t),h=eH(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!o(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,ip.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:r()};return a&&(l.onMount=t=>a({props:e,current:t,...l}),l.onUpdate=t=>a(t)),l})(t,e,n,s);return i?r():(0,im.M)(r)};function ig(t,e,i){let{style:n}=t,s={};for(let o in n){var r;((0,tL.S)(n[o])||e.style&&(0,tL.S)(e.style[o])||e3(o,t)||(null==i?void 0:null===(r=i.getValue(o))||void 0===r?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o])}return s}let iy={useVisualState:iv({scrapeMotionValuesFromProps:ig,createRenderState:e6})};function ix(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}var iP=i(78450);function iw(t,e,i,n){let{style:s,vars:r}=e;for(let e in Object.assign(t.style,s,n&&n.getProjectionStyles(i)),r)t.style.setProperty(e,r[e])}let iT=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 iS(t,e,i,n){for(let i in iw(t,e,void 0,n),e.attrs)t.setAttribute(iT.has(i)?i:(0,iP.I)(i),e.attrs[i])}function ib(t,e,i){let n=ig(t,e,i);for(let i in t)((0,tL.S)(t[i])||(0,tL.S)(e[i]))&&(n[-1!==e2.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let iA=["x","y","width","height","cx","cy","r"],iM={useVisualState:iv({scrapeMotionValuesFromProps:ib,createRenderState:id,onUpdate:t=>{let{props:e,prevProps:i,current:n,renderState:s,latestValues:r}=t;if(!n)return;let o=!!e.drag;if(!o){for(let t in r)if(e2.f.has(t)){o=!0;break}}if(!o)return;let a=!i;if(i)for(let t=0;t<iA.length;t++){let n=iA[t];e[n]!==i[n]&&(a=!0)}a&&S.Gt.read(()=>{ix(n,s),S.Gt.render(()=>{ih(s,r,ic(n.tagName),e.transformTemplate),iS(n,s)})})}})};var iV=i(3870),iE=i(56440);let ik={current:null},iD={current:!1};var iC=i(19780),iR=i(82897),ij=i(39067),iB=i(61987);let iL=[...ij.T,iR.y,tk.f],iF=t=>iL.find((0,iB.w)(t)),iO=new WeakMap;var iU=i(18203);let iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class iW{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){if(this.current=t,iO.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),!iD.current&&(iD.current=!0,e$.B))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ik.current=t.matches;t.addListener(e),e()}else ik.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ik.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,S.WG)(this.notifyUpdate),(0,S.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=e2.f.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&S.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eZ){let e=eZ[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):W()}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<iI.length;e++){let i=iI[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,tL.S)(s))t.addValue(n,s);else if((0,tL.S)(r))t.addValue(n,(0,S.OQ)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,S.OQ)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,S.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=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!=n&&("string"==typeof n&&((0,iV.i)(n)||(0,iE.$)(n))?n=p
1arseFloat(n):!iF(n)&&tk.f.test(e)&&(n=(0,iC.J)(t,e)),this.setBaseTarget(t,(0,tL.S)(n)?n.get():n)),(0,tL.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let s=(0,ip.a)(this.props,i,null===(n=this.presenceContext)||void 0===n?void 0:n.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,tL.S)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new r.vY),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iU.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=S.kB.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,S.Gt.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,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=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=ez(e),this.isVariantNode=eH(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&(0,tL.S)(e)&&e.set(a[t],!1)}}}var iN=i(33796);class iG extends iW{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,tL.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=iN.K}}var iq=i(4576);class iK extends iG{readValueFromInstance(t,e){if(e2.f.has(e))return(0,iq.I)(t,e);{let i=window.getComputedStyle(t),n=((0,tD.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return Z(t,i)}build(t,e,i){e8(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return ig(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=iw}}var iX=i(2217);class iY extends iG{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(e2.f.has(e)){let t=(0,iX.D)(e);return t&&t.default||0}return e=iT.has(e)?e:(0,iP.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ib(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&S.Gt.postRender(this.updateDimensions)}build(t,e,i){ih(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){iS(t,e,i,n)}mount(t){this.isSVGTag=ic(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=W,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&ix(this.current,this.renderState)}}}let iz=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t(...i)},{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:P},exit:{Feature:T},inView:{Feature:eq},tap:{Feature:eO},focus:{Feature:eL},hover:{Feature:eB},pan:{Feature:tP},drag:{Feature:ty,ProjectionNode:eR,MeasureLayout:tj},layout:{ProjectionNode:eR,MeasureLayout:tj}},s=(t,e)=>io(t)?new iY(e):new iK(e,{allowProjection:t!==tT.Fragment}),function(t){let{forwardMotionProps:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u,d={...(0,tT.useContext)(eX.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tT.useContext)(tb).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if(ez(t)){let{initial:e,animate:i}=t;return{initial:!1===e||h(e)?e:void 0,animate:h(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tT.useContext)(eY));return(0,tT.useMemo)(()=>({initial:e,animate:i}),[eQ(e),eQ(i)])}(t),m=o(t,c);
1if(!c&&e$.B){n=0,l=0,(0,tT.useContext)(eK).strict;let t=function(t){let{drag:e,layout:i}=eZ;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(d);u=t.MeasureLayout,p.visualElement=function(t,e,i,n,s){var r,o,a,l;let{visualElement:u}=(0,tT.useContext)(eY),h=(0,tT.useContext)(eK),d=(0,tT.useContext)(tS),c=(0,tT.useContext)(eX.Q).reducedMotion,p=(0,tT.useRef)(null);n=n||h.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:u,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:c}));let m=p.current,f=(0,tT.useContext)(tA);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&tt(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(p.current,i,s,f);let v=(0,tT.useRef)(!1);(0,tT.useInsertionEffect)(()=>{m&&v.current&&m.update(i,d)});let g=i[e0.n],y=(0,tT.useRef)(!!g&&!(null===(r=(o=window).MotionHandoffIsComplete)||void 0===r?void 0:r.call(o,g))&&(null===(a=(l=window).MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(l,g)));return(0,e1.E)(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),S.k2.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,tT.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,g)}),y.current=!1))}),m}(a,m,d,s,t.ProjectionNode)}return(0,tw.jsxs)(eY.Provider,{value:p,children:[u&&p.visualElement?(0,tw.jsx)(u,{visualElement:p.visualElement,...d}):null,r(a,t,(i=p.visualElement,(0,tT.useCallback)(t=>{t&&m.onMount&&m.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):tt(e)&&(e.current=t))},[i])),m,c,p.visualElement)]})}n&&function(t){for(let e in t)eZ[e]={...eZ[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,tT.forwardRef)(l);return u[eJ]=a,u}({...io(t)?iM:iy,preloadedFeatures:n,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,n,s,r)=>{let{latestValues:o}=s,a=(io(e)?function(t,e,i,n){let s=(0,tT.useMemo)(()=>{let i=id();return ih(i,e,ic(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};it(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return it(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,tT.useMemo)(()=>{let t=e6();return e8(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,o,r,e),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(is(s)||!0===i&&ii(s)||!e&&!ii(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),u=e!==tT.Fragment?{...l,...a,ref:n}:{},{children:h}=i,d=(0,tT.useMemo)(()=>(0,tL.S)(h)?h.get():h,[h]);return(0,tT.createElement)(e,{...u,children:d})}}(e),createVisualElement:s,Component:t})}))},61987:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},66479:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},66766:(t,e,i)=>{i.d(e,{default:()=>s.a});var n=i(71469),s=i.n(n)},67730:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(24935);let s={test:(0,i(97219).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:s?parseInt(s,16)/255:1}},transform:n.B.transform}},68972:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},71469:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(88229),s=i(38883),r=i(33063),o=n._(i(51193));function a(t){let{props:e}=(0,s.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=r.Image},76333:(t,e,i)=>{i.d(e,{g:()=>s});var n=i(14570);function s(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e)}},77782:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},78450:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},79280:(t,e,i)=>{i.d(e,{E4:()=>a,Hr:()=>d,W9:()=>h});var n=i(23082),s=i(45471),r=i(87387),o=i(4576);let a=t=>t===n.ai||t===s.px,l=new Set(["x","y","z"]),u=r.U.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return(0,o.r)(i,"x")},y:(t,e)=>{let{transform:i}=e;return(0,o.r)(i,"y")}};d.translateX=d.x,d.translateY=d.y},82885:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(12115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},82897:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(67730),s=i(12083),r=i(24935);let o={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t)}},85982:(t,e,i)=>{i.d(e,{_:()=>p});var n=i(20419),s=i(44438),r=i(31070),o=i(18802),a=i(76333),l=i(46926),u=i(18559);function h(t,e){let{delay:i=0,transitionOverride:n,type:h}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:d=t.getDefaultTransition(),transitionEnd:c,...p}=e;n&&(d=n);let m=[],f=h&&t.animationState&&t.animationState.getState()[h];for(let e in p){var v;let n=t.getValue(e,null!==(v=t.latestValues[e])&&void 0!==v?v:null),o=p[e];if(void 0===o||f&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,s=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,s}(f,e))continue;let h={delay:i,...(0,s.rU)(d||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,l.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,s.Gt);null!==t&&(h.startTime=t,c=!0)}}(0,a.g)(t,e),n.start((0,u.f)(e,n,o,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:h,t,c));let g=n.animation;g&&m.push(g)}return c&&Promise.all(m).then(()=>{s.Gt.update(()=>{c&&(0,o.U)(t,c)})}),m}function d(t,e){var i;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,n.K)(t,e,"exit"===s.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(o=s.transitionOverride);let a=r?()=>Promise.all(h(t,r,s)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:n=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0,o=[],a=(t.variantChildren.size-1)*n,l=1===s?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*n};
1return Array.from(t.variantChildren).sort(c).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(d(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+i,r,a,s)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([a(),l(s.delay)]);{let[t,e]="beforeChildren"===u?[a,l]:[l,a];return t().then(()=>e())}}function c(t,e){return t.sortNodePosition(e)}function p(t,e){let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>d(t,e,s)));else if("string"==typeof e)i=d(t,e,s);else{let r="function"==typeof e?(0,n.K)(t,e,s.custom):e;i=Promise.all(h(t,r,s))}return i.then(()=>{t.notify("AnimationComplete",e)})}},87387:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>s});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n)},90802:(t,e,i)=>{i.d(e,{W:()=>l});var n=i(23082),s=i(45471);let r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px},o={rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={...n.ai,transform:Math.round},l={...r,...o,zIndex:a,size:s.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:a}},91867:(t,e,i)=>{i.d(e,{default:()=>u});var n=i(29300),s=i.n(n),r=i(12115),o=i(97390),a=i(95155);let l=r.forwardRef((t,e)=>{let{bsPrefix:i,variant:n,animation:r="border",size:l,as:u="div",className:h,...d}=t;i=(0,o.oU)(i,"spinner");let c="".concat(i,"-").concat(r);return(0,a.jsx)(u,{ref:e,...d,className:s()(h,c,l&&"".concat(c,"-").concat(l),n&&"text-".concat(n))})});l.displayName="Spinner";let u=l},93013:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var n=i(82897);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(66479),o=i(22282);let a="number",l="color",u=/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 h(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(s.color.push(o),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(o),r.push("var"),i.push(t)):(s.number.push(o),r.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:s,types:r}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),s=e.length;return t=>{let r="";for(let u=0;u<s;u++)if(r+=e[u],void 0!==t[u]){let e=i[u];e===a?r+=(0,o.a)(t[u]):e===l?r+=n.y.transform(t[u]):r+=t[u]}return r}}let p=t=>"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(r.S))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(s))||void 0===i?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},93676:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),o=t=>!!r(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},97007:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(n)}},97219:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>o});var n=i(66479);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,o,a,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},97494:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(12115);let s=i(68972).B?n.useLayoutEffect:n.useEffect},97846:(t,e,i)=>{i.d(e,{G:()=>a});var n=i(4331),s=i(77782),r=i(47437),o=i(97007);function a(t,e){let{clamp:i=!0,ease:a,mixer:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=t.length;if((0,n.V1)(u===e.length,"Both input and output ranges must be the same length"),1===u)return()=>e[0];if(2===u&&e[0]===e[1])return()=>e[1];let h=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let d=function(t,e,i){let s=[],a=i||r.j,l=t.length-1;for(let i=0;i<l;i++){let r=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.lQ:e;r=(0,o.F)(t,r)}s.push(r)}return s}(e,a,l),c=d.length,p=i=>{if(h&&i<t[0])return e[0];let s=0;if(c>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=(0,n.qB)(t[s],t[s+1],i);return d[s](r)};return i?e=>p((0,s.q)(t[0],t[u-1],e)):p}}}]);

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