"use strict";(self.webpackChunkgardaoto=self.webpackChunkgardaoto||[]).push([[6356],{59177:(t,e,n)=>{n.d(e,{i:()=>$});var i=n(31880),s=n(30676),o=n(96643),r=n(80024),a=n(39712);var l=n(8531);function u(t,e){return(0,l.h)(t)?t[((t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t})(0,t.length,e)]:t}var c=n(59035),h=n(13227),d=n(38232);function p(t){return"object"==typeof t&&!Array.isArray(t)}function m(t,e,n,s){return"string"==typeof t&&p(e)?(0,i.KJ)(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function f(t,e,n){return t*(e+1)}function v(t,e,n,i){var s;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(s=i.get(e))&&void 0!==s?s:t}var g=n(23062),y=n(44625);function x(t,e,n,i,s,o){!function(t,e,n){for(let i=0;ie&&s.at"number"==typeof t,E=t=>t.every(V);var M=n(82067),D=n(83558),C=n(67311),k=n(39167),R=n(70851),B=n(78826),j=n(69548);class L extends j.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,B.ge)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,e){let{output:n}=e;Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function F(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,C.x)(t)?new k.l(e):new R.M(e);n.mount(t),M.C.set(t,n)}function O(t){const e=new L({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),M.C.set(t,e)}var U=n(39356);function W(t,e,n,i){const s=[];if(function(t,e){return(0,d.S)(t)||"number"==typeof t||"string"==typeof t&&!p(e)}(t,e))s.push((0,U.z)(t,p(e)&&e.default||e,n&&n.default||n));else{const o=m(t,e,i),a=o.length;(0,r.V)(Boolean(a),"No valid elements provided.");for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;const p=e.duration||.3,g=new Map,y=new Map,V={},M=new Map;let D=0,C=0,k=0;for(let n=0;n3&&void 0!==arguments[3]?arguments[3]:0,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const m=b(t),{delay:v=0,times:g=(0,c.Z)(m),type:y="keyframes",repeat:P,repeatType:S,repeatDelay:T=0,...A}=n;let{ease:V=e.ease||"easeOut",duration:M}=n;const D="function"==typeof v?v(a,d):v,R=m.length,j=(0,i.WH)(y)?y:null==l?void 0:l[y];if(R<=2&&j){let t=100;if(2===R&&E(m)){const e=m[1]-m[0];t=Math.abs(e)}const e={...A};void 0!==M&&(e.duration=(0,o.f)(M));const n=(0,i.XG)(e,t,j);V=n.ease,M=n.duration}null!=M||(M=p);const L=C+D;1===g.length&&0===g[0]&&(g[1]=1);const F=g.length-m.length;if(F>0&&(0,h.f)(g,F),1===m.length&&m.unshift(null),P){(0,r.V)(P<20,"Repeat count too high, must be less than 20"),M=f(M,P);const t=[...m],e=[...g];V=Array.isArray(V)?[...V]:[V];const n=[...V];for(let i=0;i{for(const s in t){const o=t[s];o.sort(P);const r=[],l=[],u=[];for(let t=0;t{let{keyframes:n,transition:i}=t;l.push(...W(e,n,i))})),l}const $=function(t,e,n){let s=[];var o;o=t,s=Array.isArray(o)&&o.some(Array.isArray)?I(t,e,G):W(t,e,n,G);const r=new i.P6(s);return G&&G.animations.push(r),r};var G},39356:(t,e,n)=>{n.d(e,{z:()=>r});var i=n(17473),s=n(38232),o=n(50608);function r(t,e,n){const r=(0,s.S)(t)?t:(0,i.OQ)(t);return r.start((0,o.f)("",r,e,n)),r.animation}},30676:(t,e,n)=>{n.d(e,{o:()=>v});var i=n(31880),s=n(96643),o=n(13904),r=n(15882);const a={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var l=n(80024);const u=.001;function c(t){let e,n,{duration:i=a.duration,bounce:r=a.bounce,velocity:c=a.velocity,mass:p=a.mass}=t;(0,l.$)(i<=(0,s.f)(a.maxDuration),"Spring duration must be 10 seconds or less");let m=1-r;m=(0,o.q)(a.minDamping,a.maxDamping,m),i=(0,o.q)(a.minDuration,a.maxDuration,(0,s.X)(i)),m<1?(e=t=>{const e=t*m,n=e*i,s=e-c,o=d(t,m),r=Math.exp(-n);return u-s/o*r},n=t=>{const n=t*m*i,s=n*c+c,o=Math.pow(m,2)*Math.pow(t,2)*i,r=Math.exp(-n),a=d(Math.pow(t,2),m);return(-e(t)+u>0?-1:1)*((s-o)*r)/a}):(e=t=>Math.exp(-t*i)*((t-c)*i+1)-u,n=t=>Math.exp(-t*i)*(i*i*(c-t)));const f=function(t,e,n){let i=n;for(let n=1;nvoid 0!==t[e]))}function v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.visualDuration,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.bounce;const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:l,restDelta:u}=n;const h=n.keyframes[0],v=n.keyframes[n.keyframes.length-1],g={done:!1,value:h},{stiffness:y,damping:x,mass:w,duration:P,velocity:S,isResolvedFromDuration:T}=function(t){let e={velocity:a.velocity,stiffness:a.stiffness,damping:a.damping,mass:a.mass,isResolvedFromDuration:!1,...t};if(!f(t,m)&&f(t,p))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,r=2*(0,o.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:a.mass,stiffness:s,damping:r}}else{const n=c(t);e={...e,...n,mass:a.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-(0,s.X)(n.velocity||0)}),b=S||0,A=x/(2*Math.sqrt(y*w)),V=v-h,E=(0,s.X)(Math.sqrt(y/w)),M=Math.abs(V)<5;let D;if(l||(l=M?a.restSpeed.granular:a.restSpeed.default),u||(u=M?a.restDelta.granular:a.restDelta.default),A<1){const t=d(E,A);D=e=>{const n=Math.exp(-A*E*e);return v-n*((b+A*E*V)/t*Math.sin(t*e)+V*Math.cos(t*e))}}else if(1===A)D=t=>v-Math.exp(-E*t)*(V+(b+E*V)*t);else{const t=E*Math.sqrt(A*A-1);D=e=>{const n=Math.exp(-A*E*e),i=Math.min(t*e,300);return v-n*((b+A*E*V)*Math.sinh(i)+t*V*Math.cosh(i))/t}}const C={calculatedDuration:T&&P||null,next:t=>{const e=D(t);if(T)g.done=t>=P;else{let n=0;A<1&&(n=0===t?(0,s.f)(b):(0,r.Y)(D,t,e));const i=Math.abs(n)<=l,o=Math.abs(v-e)<=u;g.done=i&&o}return g.value=g.done?v:e,g},toString:()=>{const t=Math.min((0,i.tu)(C),i.YE),e=(0,i.KZ)((e=>C.next(t*e).value),t,30);return t+"ms "+e}};return C}},15882:(t,e,n)=>{n.d(e,{Y:()=>o});var i=n(24073);const s=5;function o(t,e,n){const o=Math.max(e-s,0);return(0,i.f)(n-t(o),e-o)}},50608:(t,e,n)=>{n.d(e,{f:()=>et});var i=n(31880),s=n(96643),o=n(97800),r=n(73628);const a=!1;var l=n(49389);const u=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function c(t,e,n,i){if(t===e&&n===i)return l.l;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=u(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:u(s(t),e,i)}var h=n(40817),d=n(21474);const p=c(.33,1.53,.69,.99),m=(0,d.G)(p),f=(0,h.V)(m),v=t=>(t*=2)<1?.5*m(t):.5*(2-Math.pow(2,-10*(t-1)));var g=n(38132),y=n(95722),x=n(27030),w=n(67827),P=n(80024),S=n(16528);const T=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!S.f.test(t)&&"0"!==t||t.startsWith("url(")));const b=t=>null!==t;function A(t,e,n){let{repeat:i,repeatType:s="loop"}=e;const o=t.filter(b),r=i&&"loop"!==s&&i%2==1?0:o.length-1;return r&&void 0!==n?n:o[r]}class V{constructor(t){let{autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}=t;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=x.k.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,w.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=x.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:o,delay:r,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!function(t,e,n,s){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],a=T(o,e),l=T(r,e);return(0,P.$)(a===l,`You are trying to animate ${e} from "${o}" to "${r}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${r} via the \`style\` property.`),!(!a||!l)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t}))}}var E=n(13904),M=n(30848),D=n(84475),C=n(30676),k=n(15882);function R(t){let{keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:h}=t;const d=e[0],p={done:!1,value:d},m=t=>void 0===l?u:void 0===u||Math.abs(l-t)-f*Math.exp(-t/s),x=t=>g+y(t),w=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=c,p.value=p.done?g:n};let P,S;const T=t=>{var e;(e=p.value,void 0!==l&&eu)&&(P=t,S=(0,C.o)({keyframes:[p.value,m(p.value)],velocity:(0,k.Y)(x,t,p.value),damping:o,stiffness:r,restDelta:c,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return S||void 0!==P||(e=!0,w(t),T(t)),void 0!==P&&t>=P?S.next(t-P):(!e&&w(t),p)}}}const B=c(.42,0,1,1),j=c(0,0,.58,1),L=c(.42,0,.58,1);var F=n(8531);const O={linear:l.l,easeIn:B,easeInOut:L,easeOut:j,circIn:g.po,circInOut:g.tn,circOut:g.yT,backIn:m,backInOut:f,backOut:p,anticipate:v},U=t=>{if((0,i.DW)(t)){(0,P.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return c(e,n,i,s)}return"string"==typeof t?((0,P.V)(void 0!==O[t],`Invalid easing type '${t}'`),O[t]):t};var W=n(92028),I=n(59035);function $(t){let{duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}=t;const o=(0,F.h)(s)?s.map(U):U(s),r={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(i&&i.length===n.length?i:(0,I.Z)(n),e),l=(0,W.G)(a,n,{ease:Array.isArray(o)?o:(u=n,c=o,u.map((()=>c||L)).splice(0,u.length-1))});var u,c;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}const G=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>o.Gt.update(e,!0),stop:()=>(0,o.WG)(e),now:()=>o.uv.isProcessing?o.uv.timestamp:x.k.now()}},N={decay:R,inertia:R,tween:$,keyframes:$,spring:C.o},K=t=>t/100;class H extends V{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();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||w.h;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=this.options,a=(0,i.WH)(e)?e:N[e]||$;let l,u;a!==$&&"number"!=typeof t[0]&&(l=(0,D.F)(K,(0,M.j)(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});"mirror"===o&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===c.calculatedDuration&&(c.calculatedDuration=(0,i.tu)(c));const{calculatedDuration:h}=c,d=h+s;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;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];const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return s.next(0);const{delay:h,repeat:d,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;const v=this.currentTime-h*(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(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/c)):"mirror"===p&&(x=o)),y=(0,E.q)(0,1,n)*c}const w=g?{done:!1,value:a[0]}:x.next(y);r&&(w.value=r(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return S&&void 0!==i&&(w.value=A(a,this.options,i)),f&&f(w.value),S&&this.finish(),w}get duration(){const{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(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){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=G,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const z=new Set(["opacity","clipPath","filter","transform"]);const X=(0,n(90067).p)((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const q={anticipate:v,backInOut:f,circInOut:g.tn};class Y extends V{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new y.K(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;var c;if("string"==typeof o&&(0,i.nL)()&&o in q&&(o=q[o]),c=this.options,(0,i.WH)(c.type)||"spring"===c.type||!(0,i.yL)(c.ease)){const{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new H({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,s=c.times,o=c.ease,r="keyframes"}const h=function(t,e,n){let{delay:s=0,duration:o=300,repeat:r=0,repeatType:a="loop",ease:l="easeInOut",times:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={[e]:n};u&&(c.offset=u);const h=(0,i.TU)(l,o);return Array.isArray(h)&&(c.easing=h),t.animate(c,{delay:s,duration:o,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:o});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,i.vG)(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:n}=this.options;a.set(A(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return(0,s.X)(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=(0,s.f)(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return l.l;const{animation:n}=e;(0,i.vG)(n,t)}else this.pendingTimeline=t;return l.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:o,ease:r,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:l,element:u,...c}=this.options,h=new H({...c,keyframes:n,duration:i,type:o,ease:r,times:a,isGenerator:!0}),d=(0,s.f)(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return X()&&n&&z.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}var Q=n(71947);const Z={type:"spring",stiffness:500,damping:25,restSpeed:10},_={type:"keyframes",duration:.8},J={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tt=(t,e)=>{let{keyframes:n}=e;return n.length>2?_:Q.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Z:J};const et=function(t,e,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;return h=>{const d=(0,i.rU)(l,t)||{},p=d.delay||l.delay||0;let{elapsed:m=0}=l;m-=(0,s.f)(p);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-m,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{h(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:c?void 0:u};(function(t){let{when:e,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:l,from:u,elapsed:c,...h}=t;return!!Object.keys(h).length})(d)||(f={...f,...tt(t,f)}),f.duration&&(f.duration=(0,s.f)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,s.f)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let v=!1;if((!1===f.type||0===f.duration&&!f.repeatDelay)&&(f.duration=0,0===f.delay&&(v=!0)),(a||r.W.skipAnimations)&&(v=!0,f.duration=0,f.delay=0),v&&!c&&void 0!==e.get()){const t=A(f.keyframes,d);if(void 0!==t)return o.Gt.update((()=>{f.onUpdate(t),f.onComplete()})),new i.P6([])}return!c&&Y.supports(f)?new Y(f):new H(f)}}},83558:(t,e,n)=>{n.d(e,{$:()=>m});var i=n(31880),s=n(91316),o=n(96693),r=n(17473),a=n(63777);function l(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,r.OQ)(n))}var u=n(65337),c=n(85322),h=n(50608),d=n(97800);function p(t,e){let{protectedKeys:n,needsAnimating:i}=t;const s=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,s}function m(t,e){let{delay:n=0,transitionOverride:r,type:m}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var f;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;r&&(v=r);const x=[],w=m&&t.animationState&&t.animationState.getState()[m];for(const e in y){const o=t.getValue(e,null!==(f=t.latestValues[e])&&void 0!==f?f:null),r=y[e];if(void 0===r||w&&p(w,e))continue;const a={delay:n,...(0,i.rU)(v||{},e)};let l=!1;if(window.MotionHandoffAnimation){const n=(0,c.P)(t);if(n){const t=window.MotionHandoffAnimation(n,e,d.Gt);null!==t&&(a.startTime=t,l=!0)}}(0,u.g)(t,e),o.start((0,h.f)(e,o,r,t.shouldReduceMotion&&s.$.has(e)?{type:!1}:a,t,l));const m=o.animation;m&&x.push(m)}return g&&Promise.all(x).then((()=>{d.Gt.update((()=>{g&&function(t,e){const n=(0,a.K)(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const e in r)l(t,e,(0,o.K)(r[e]))}(t,g)}))})),x}},49512:(t,e,n)=>{n.d(e,{n:()=>i});const i="data-"+(0,n(79246).I)("framerAppearId")},85322:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(49512);function s(t){return t.props[i.n]}},70498:(t,e,n)=>{function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{N:()=>i})},56640:(t,e,n)=>{n.d(e,{p:()=>i});const i=t=>Array.isArray(t)},42278:(t,e,n)=>{n.d(e,{Q:()=>i});const i=(0,n(9950).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},38132:(t,e,n)=>{n.d(e,{po:()=>o,tn:()=>a,yT:()=>r});var i=n(40817),s=n(21474);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.G)(o),a=(0,i.V)(o)},40817:(t,e,n)=>{n.d(e,{V:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},21474:(t,e,n)=>{n.d(e,{G:()=>i});const i=t=>e=>1-t(1-e)},8531:(t,e,n)=>{n.d(e,{h:()=>i});const i=t=>Array.isArray(t)&&"number"!=typeof t[0]},6494:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(73628);const s=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,e){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=s.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:function(t){const s=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(t),s.has(t)||s.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(l),t)),{}),{read:c,resolveKeyframes:h,update:d,preRender:p,render:m,postRender:f}=u,v=()=>{const s=i.W.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(s-a.timestamp,o),1),a.timestamp=s,a.isProcessing=!0,c.process(a),h.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&e&&(r=!1,t(v))},g=s.reduce(((e,i)=>{const s=u[i];return e[i]=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,a.isProcessing||t(v)),s.schedule(e,i,o)},e}),{});return{schedule:g,cancel:t=>{for(let e=0;e{n.d(e,{Gt:()=>o,PP:()=>l,WG:()=>r,uv:()=>a});var i=n(49389),s=n(6494);const{schedule:o,cancel:r,state:a,steps:l}=(0,s.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},27030:(t,e,n)=>{n.d(e,{k:()=>a});var i=n(73628),s=n(97800);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},35132:(t,e,n)=>{n.d(e,{B:()=>s});const i={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"]},s={};for(const t in i)s[t]={isEnabled:e=>i[t].some((t=>!!e[t]))}},10061:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(27365),s=n(71947);function o(t,e){let{layout:n,layoutId:o}=e;return s.f.has(t)||t.startsWith("origin")||(n||void 0!==o)&&(!!i.H[t]||"opacity"===t)}},78176:(t,e,n)=>{function i(t){let{top:e,left:n,right:i,bottom:s}=t;return{x:{min:n,max:i},y:{min:e,max:s}}}function s(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{FY:()=>i,bS:()=>o,pA:()=>s})},41241:(t,e,n)=>{n.d(e,{OU:()=>h,Ql:()=>d,Ww:()=>m,hq:()=>o,o4:()=>l});var i=n(44625),s=n(70126);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,i,s){return void 0!==s&&(t=o(t,s,i)),o(t,n,i)+e}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=r(t.min,e,n,i,s),t.max=r(t.max,e,n,i,s)}function l(t,e){let{x:n,y:i}=e;a(t.x,n.translate,n.scale,n.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}const u=.999999999999,c=1.0000000000001;function h(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let r,a;e.x=e.y=1;for(let u=0;uu&&(e.x=1),e.yu&&(e.y=1)}function d(t,e){t.min=t.min+e,t.max=t.max+e}function p(t,e,n,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;a(t,e,n,(0,i.k)(t.min,t.max,o),s)}function m(t,e){p(t.x,e.x,e.scaleX,e.scale,e.originX),p(t.y,e.y,e.scaleY,e.scale,e.originY)}},78826:(t,e,n)=>{n.d(e,{ge:()=>s,xU:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},27365:(t,e,n)=>{n.d(e,{$:()=>s,H:()=>i});const i={};function s(t){Object.assign(i,t)}},70126:(t,e,n)=>{function i(t){return void 0===t||1===t}function s(t){let{scale:e,scaleX:n,scaleY:s}=t;return!i(e)||!i(n)||!i(s)}function o(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{HD:()=>o,vF:()=>r,vk:()=>s})},44005:(t,e,n)=>{n.d(e,{L:()=>r,m:()=>o});var i=n(78176),s=n(41241);function o(t,e){return(0,i.FY)((0,i.bS)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=o(t,n),{scroll:r}=e;return r&&((0,s.Ql)(i.x,r.offset.x),(0,s.Ql)(i.y,r.offset.y)),i}},69548:(t,e,n)=>{n.d(e,{B:()=>E});var i=n(27030),s=n(35132),o=n(78826),r=n(50884),a=n(45520),l=n(67584);const u={current:null},c={current:!1};var h=n(18334),d=n(17473),p=n(16528),m=n(38232),f=n(80184),v=n(1483),g=n(58963),y=n(56689);const x=[...g.T,v.y,p.f];var w=n(71947),P=n(82067),S=n(67349),T=n(67827);var b=n(25285),A=n(97800);const V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,n){return{}}constructor(t){let{parent:e,props:n,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:r,visualState:a}=t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=T.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=()=>{const t=i.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t))),c.current||function(){if(c.current=!0,l.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>u.current=t.matches;t.addListener(e),e()}else u.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||u.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){P.C.delete(this.current),this.projection&&this.projection.unmount(),(0,A.WG)(this.notifyUpdate),(0,A.WG)(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=w.f.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&A.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),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 s.B){const e=s.B[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const 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):(0,o.ge)()}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;ee.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,d.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&((0,r.i)(i)||(0,a.$)(i))?i=parseFloat(i):(s=i,!x.find((0,y.w)(s))&&p.f.test(e)&&(i=(0,f.J)(t,e))),this.setBaseTarget(t,(0,m.S)(i)?i.get():i)),(0,m.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=(0,b.a)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,m.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new h.v),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i{function i(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy((function(){return t(...arguments)}),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}n.d(e,{P:()=>ti});var s=n(70498),o=n(56640);function r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:{};var i;const s=(0,l.K)(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all((0,c.$)(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const r=[],a=(t.variantChildren.size-1)*i,l=1===s?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i};return Array.from(t.variantChildren).sort(d).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(h(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[t,e]="beforeChildren"===u?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function d(t,e){return t.sortNodePosition(e)}const p=u._.length;function m(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&m(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;nPromise.all(e.map((e=>{let{animation:n,options:i}=e;return function(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>h(t,e,i)));n=Promise.all(s)}else if("string"==typeof e)n=h(t,e,i);else{const s="function"==typeof e?(0,l.K)(t,e,i.custom):e;n=Promise.all((0,c.$)(t,s,i))}return n.then((()=>{t.notify("AnimationComplete",e)}))}(t,n,i)})))}function y(t){let e=g(t),n=P(),i=!0;const u=e=>(n,i)=>{var s;const o=(0,l.K)(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function c(l){const{props:c}=t,h=m(t.parent)||{},d=[],p=new Set;let g={},y=1/0;for(let e=0;ey&&P,V=!1;const E=Array.isArray(w)?w:[w];let M=E.reduce(u(m),{});!1===S&&(M={});const{prevResolvedValues:D={}}=v,C={...D,...M},k=e=>{A=!0,p.has(e)&&(V=!0,p.delete(e)),v.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=M[t],n=D[t];if(g.hasOwnProperty(t))continue;let i=!1;i=(0,o.p)(e)&&(0,o.p)(n)?!r(e,n):e!==n,i?null!=e?k(t):p.add(t):void 0!==e&&p.has(t)?k(t):v.protectedKeys[t]=!0}v.prevProp=w,v.prevResolvedValues=M,v.isActive&&(g={...g,...M}),i&&t.blockInitialAnimation&&(A=!1);A&&(!(T&&b)||V)&&d.push(...E.map((t=>({animation:t,options:{type:m}}))))}if(p.size){const e={};p.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),d.push({animation:e})}let w=Boolean(d.length);return!i||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(w=!1),i=!1,w?e(d):Promise.resolve()}return{animateChanges:c,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const o=c(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=P(),i=!0}}}function x(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function w(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function P(){return{animate:w(!0),whileInView:w(),whileHover:w(),whileTap:w(),whileDrag:w(),whileFocus:w(),exit:w()}}class S{constructor(t){this.isMounted=!1,this.node=t}update(){}}let T=0;const b={animation:{Feature:class extends S{constructor(t){super(t),t.animationState||(t.animationState=y(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();(0,s.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{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)}}},exit:{Feature:class extends S{constructor(){super(...arguments),this.id=T++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};var A=n(49389),V=n(80024),E=n(31880),M=n(96643);function D(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function C(t){return{point:{x:t.pageX,y:t.pageY}}}function k(t,e,n,i){return D(t,e,(t=>e=>(0,E.Mc)(e)&&t(e,C(e)))(n),i)}const R=(t,e)=>Math.abs(t-e);var B=n(84475),j=n(97800);class L{constructor(t,e){let{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=U(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=R(t.x,e.x),i=R(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=j.uv;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=F(e,this.transformPagePoint),j.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=U("pointercancel"===t.type?this.lastMoveEventInfo:F(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,E.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=F(C(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=j.uv;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,U(o,this.history)),this.removeListeners=(0,B.F)(k(this.contextWindow,"pointermove",this.handlePointerMove),k(this.contextWindow,"pointerup",this.handlePointerUp),k(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,j.WG)(this.updatePoint)}}function F(t,e){return e?{point:e(t.point)}:t}function O(t,e){return{x:t.x-e.x,y:t.y-e.y}}function U(t,e){let{point:n}=t;return{point:n,delta:O(n,I(e)),offset:O(n,W(e)),velocity:$(e,.1)}}function W(t){return t[0]}function I(t){return t[t.length-1]}function $(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=I(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,M.f)(e)));)n--;if(!i)return{x:0,y:0};const o=(0,M.X)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function G(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var N=n(39712),K=n(44625);function H(t){return t.max-t.min}function z(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=(0,K.k)(e.min,e.max,t.origin),t.scale=H(n)/H(e),t.translate=(0,K.k)(n.min,n.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 X(t,e,n,i){z(t.x,e.x,n.x,i?i.originX:void 0),z(t.y,e.y,n.y,i?i.originY:void 0)}function q(t,e,n){t.min=n.min+e.min,t.max=t.min+H(e)}function Y(t,e,n){t.min=e.min-n.min,t.max=t.min+H(e)}function Q(t,e,n){Y(t.x,e.x,n.x),Y(t.y,e.y,n.y)}var Z=n(13904);function _(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function J(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var ct=n(65337);const ht=new WeakMap;class dt{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=(0,it.ge)(),this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new L(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(C(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,E.Wp)(n),!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),st((t=>{let e=this.getAxisMotionValue(t).get()||0;if(at.KN.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=H(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&j.Gt.postRender((()=>s(t,e))),(0,ct.g)(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>st((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:i,contextWindow:ut(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&j.Gt.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!pt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:s}=e;return void 0!==i&&ts&&(t=n?(0,K.k)(s,t,n.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=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&&G(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,e){let{top:n,left:i,bottom:s,right:o}=e;return{x:_(t.x,i,o),y:_(t.y,n,s)}}(i.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tt;return!1===t?t=0:!0===t&&(t=tt),{x:et(t,"left","right"),y:et(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&st((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!G(t))return!1;const n=t.current;(0,V.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=(0,ot.L)(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:J(t.x,e.x),y:J(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e((0,rt.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,rt.FY)(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=st((r=>{if(!pt(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,ct.g)(this.visualElement,t),n.start((0,lt.f)(t,n,0,e,this.visualElement,!1))}stopAnimation(){st((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){st((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){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){st((e=>{const{drag:n}=this.getProps();if(!pt(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,K.k)(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!G(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};st((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=H(t),s=H(e);return s>i?n=(0,N.q)(e.min,e.max-i,t.min):i>s&&(n=(0,N.q)(t.min,t.max-s,e.min)),(0,Z.q)(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),st((e=>{if(!pt(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set((0,K.k)(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;ht.set(this.visualElement,this);const t=k(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();G(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),j.Gt.read(e);const s=D(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(st((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=tt,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function pt(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const mt=t=>(e,n)=>{t&&j.Gt.postRender((()=>t(e,n)))};var ft=n(44414),vt=n(9950);const gt=(0,vt.createContext)(null);const yt=(0,vt.createContext)({}),xt=(0,vt.createContext)({}),wt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Pt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const St={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!at.px.test(t))return t;t=parseFloat(t)}return`${Pt(t,e.target.x)}% ${Pt(t,e.target.y)}%`}};var Tt=n(16528);const bt={correct:(t,e)=>{let{treeScale:n,projectionDelta:i}=e;const s=t,o=Tt.f.parse(t);if(o.length>5)return s;const r=Tt.f.createTransformer(t),a="number"!=typeof o[0]?1:0,l=i.x.scale*n.x,u=i.y.scale*n.y;o[0+a]/=l,o[1+a]/=u;const c=(0,K.k)(l,u,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),r(o)}};var At=n(27365),Vt=n(6494);const{schedule:Et,cancel:Mt}=(0,Vt.I)(queueMicrotask,!1);class Dt extends vt.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;(0,At.$)(kt),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),wt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||j.Gt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Et.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ct(t){const[e,n]=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=(0,vt.useContext)(gt);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,o=(0,vt.useId)();(0,vt.useEffect)((()=>{t&&s(o)}),[t]);const r=(0,vt.useCallback)((()=>t&&i&&i(o)),[o,i,t]);return!n&&i?[!1,r]:[!0]}(),i=(0,vt.useContext)(yt);return(0,ft.jsx)(Dt,{...t,layoutGroup:i,switchLayoutGroup:(0,vt.useContext)(xt),isPresent:e,safeToRemove:n})}const kt={borderRadius:{...St,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:St,borderTopRightRadius:St,borderBottomLeftRadius:St,borderBottomRightRadius:St,boxShadow:bt};var Rt=n(39356),Bt=n(85322),jt=n(27030),Lt=n(67311),Ft=n(23062);const Ot=(t,e)=>t.depth-e.depth;class Ut{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Ft.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,Ft.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ot),this.isDirty=!1,this.children.forEach(t)}}function Wt(t,e){const n=jt.k.now(),i=s=>{let{timestamp:o}=s;const r=o-n;r>=e&&((0,j.WG)(i),t(r-e))};return j.Gt.read(i,!0),()=>(0,j.WG)(i)}var It=n(18334),$t=n(96693),Gt=n(38232);function Nt(t){const e=(0,Gt.S)(t)?t.get():t;return(0,$t.B)(e)?e.toValue():e}var Kt=n(38132);const Ht=["TopLeft","TopRight","BottomLeft","BottomRight"],zt=Ht.length,Xt=t=>"string"==typeof t?parseFloat(t):t,qt=t=>"number"==typeof t||at.px.test(t);function Yt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Qt=_t(0,.5,Kt.yT),Zt=_t(.5,.95,A.l);function _t(t,e,n){return i=>ie?1:n((0,N.q)(t,e,i))}function Jt(t,e){t.min=e.min,t.max=e.max}function te(t,e){Jt(t.x,e.x),Jt(t.y,e.y)}function ee(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var ne=n(41241);function ie(t,e,n,i,s){return t-=e,t=(0,ne.hq)(t,1/n,i),void 0!==s&&(t=(0,ne.hq)(t,1/s,i)),t}function se(t,e,n,i,s){let[o,r,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;at.KN.test(e)&&(e=parseFloat(e),e=(0,K.k)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,K.k)(o.min,o.max,i);t===o&&(a-=e),t.min=ie(t.min,e,n,a,s),t.max=ie(t.max,e,n,a,s)}(t,e[o],e[r],e[a],e.scale,i,s)}const oe=["x","scaleX","originX"],re=["y","scaleY","originY"];function ae(t,e,n,i){se(t.x,e,oe,n?n.x:void 0,i?i.x:void 0),se(t.y,e,re,n?n.y:void 0,i?i.y:void 0)}function le(t){return 0===t.translate&&1===t.scale}function ue(t){return le(t.x)&&le(t.y)}function ce(t,e){return t.min===e.min&&t.max===e.max}function he(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function de(t,e){return he(t.x,e.x)&&he(t.y,e.y)}function pe(t){return H(t.x)/H(t.y)}function me(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class fe{constructor(){this.members=[]}add(t){(0,Ft.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,Ft.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ve=n(70126);const ge={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ye="undefined"!=typeof window&&void 0!==window.MotionDebug,xe=["","X","Y","Z"],we={visibility:"hidden"};let Pe=0;function Se(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Te(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=(0,Bt.P)(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j.Gt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Te(i)}function be(t){let{attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==n?void 0:n();this.id=Pe++,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,ye&&(ge.totalNodes=ge.resolvedTargetDeltas=ge.recalculatedProjection=0),this.nodes.forEach(Ee),this.nodes.forEach(je),this.nodes.forEach(Le),this.nodes.forEach(Me),ye&&window.MotionDebug.record(ge)},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;t1?n-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=(0,Lt.x)(t),this.instance=t;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||i)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Wt(i,250),wt.hasAnimatedSinceResize&&(wt.hasAnimatedSinceResize=!1,this.nodes.forEach(Be))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:i,layout:s}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||$e,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!de(this.targetLayout,s)||i,c=!n&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...(0,E.rU)(r,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||Be(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,j.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(Fe),this.animationId++)}getTransformTemplate(){const{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())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Te(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ue(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||(0,ve.HD)(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Ke((i=n).x),Ke(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return(0,it.ge)();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ze))){const{scroll:t}=this.root;t&&((0,ne.Ql)(n.x,t.offset.x),(0,ne.Ql)(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=(0,it.ge)();if(te(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1];const n=(0,it.ge)();te(n,t);for(let t=0;t0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=j.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,it.ge)(),this.relativeTargetOrigin=(0,it.ge)(),Q(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target=(0,it.ge)(),this.targetWithTransforms=(0,it.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,q(r.x,a.x,l.x),q(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):te(this.target,this.layout.layoutBox),(0,ne.o4)(this.target,this.targetDelta)):te(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,it.ge)(),this.relativeTargetOrigin=(0,it.ge)(),Q(this.relativeTargetOrigin,this.target,t.target),te(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ye&&ge.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,ve.vk)(this.parent.latestValues)&&!(0,ve.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===j.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;te(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;(0,ne.OU)(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,it.ge)());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(ee(this.prevProjectionDelta.x,this.projectionDelta.x),ee(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),X(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&me(this.projectionDelta.x,this.prevProjectionDelta.x)&&me(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ye&&ge.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,it.xU)(),this.projectionDelta=(0,it.xU)(),this.projectionDeltaWithTransform=(0,it.xU)()}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=(0,it.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=(0,it.ge)(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Ie));let h;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;Ue(o.x,t.x,n),Ue(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Q(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,We(p.x,m.x,f.x,v),We(p.y,m.y,f.y,v),h&&(l=this.relativeTarget,d=h,ce(l.x,d.x)&&ce(l.y,d.y))&&(this.isProjectionDirty=!1),h||(h=(0,it.ge)()),te(h,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=(0,K.k)(0,void 0!==n.opacity?n.opacity:1,Qt(i)),t.opacityExit=(0,K.k)(void 0!==e.opacity?e.opacity:1,0,Zt(i))):o&&(t.opacity=(0,K.k)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s{wt.hasAnimatedSinceResize=!0,this.currentAnimation=(0,Rt.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&He(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,it.ge)();const e=H(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=H(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}te(e,n),(0,ne.Ww)(e,s),X(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new fe);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Se("z",t,i,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Ce),this.root.sharedNodes.clear()}}}function Ae(t){t.updateLayout()}function Ve(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?st((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=H(i);i.min=e[t].min,i.max=i.min+s})):He(s,n.layoutBox,e)&&st((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=H(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r=(0,it.xU)();X(r,e,n.layoutBox);const a=(0,it.xU)();o?X(a,t.applyTransform(i,!0),n.measuredBox):X(a,e,n.layoutBox);const l=!ue(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=(0,it.ge)();Q(r,n.layoutBox,s.layoutBox);const a=(0,it.ge)();Q(a,e,o.layoutBox),de(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Ee(t){ye&&ge.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Me(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function De(t){t.clearSnapshot()}function Ce(t){t.clearMeasurements()}function ke(t){t.isLayoutDirty=!1}function Re(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Be(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function je(t){t.resolveTargetDelta()}function Le(t){t.calcProjection()}function Fe(t){t.resetSkewAndRotation()}function Oe(t){t.removeLeadSnapshot()}function Ue(t,e,n){t.translate=(0,K.k)(e.translate,0,n),t.scale=(0,K.k)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function We(t,e,n,i){t.min=(0,K.k)(e.min,n.min,i),t.max=(0,K.k)(e.max,n.max,i)}function Ie(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const $e={duration:.45,ease:[.4,0,.1,1]},Ge=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ne=Ge("applewebkit/")&&!Ge("chrome/")?Math.round:A.l;function Ke(t){t.min=Ne(t.min),t.max=Ne(t.max)}function He(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=pe(e),s=pe(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function ze(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Xe=be({attachResizeListener:(t,e)=>D(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qe={current:void 0},Ye=be({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qe.current){const t=new Xe({});t.mount(window),t.setOptions({layoutScroll:!0}),qe.current=t}return qe.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Qe={pan:{Feature:class extends S{constructor(){super(...arguments),this.removePointerDownListener=A.l}onPointerDown(t){this.session=new L(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ut(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:mt(t),onStart:mt(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&j.Gt.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=k(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends S{constructor(t){super(t),this.removeGroupControls=A.l,this.removeListeners=A.l,this.controls=new dt(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ye,MeasureLayout:Ct}};function Ze(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&j.Gt.postRender((()=>s(e,C(e))))}function _e(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&j.Gt.postRender((()=>s(e,C(e))))}const Je=new WeakMap,tn=new WeakMap,en=t=>{const e=Je.get(t.target);e&&e(t)},nn=t=>{t.forEach(en)};function sn(t,e,n){const i=function(t){let{root:e,...n}=t;const i=e||document;tn.has(i)||tn.set(i,{});const s=tn.get(i),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(nn,{root:e,...n})),s[o]}(e);return Je.set(t,n),i.observe(t),()=>{Je.delete(t),i.unobserve(t)}}const on={some:0,all:1};const rn={inView:{Feature:class extends S{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:on[i]};return sn(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends S{mount(){const{current:t}=this.node;t&&(this.unmount=(0,E.c$)(t,(t=>(_e(this.node,t,"Start"),(t,e)=>{let{success:n}=e;return _e(this.node,t,n?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends S{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,B.F)(D(this.node.current,"focus",(()=>this.onFocus())),D(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends S{mount(){const{current:t}=this.node;t&&(this.unmount=(0,E.PT)(t,(t=>(Ze(this.node,t,"Start"),t=>Ze(this.node,t,"End")))))}unmount(){}}}},an={layout:{ProjectionNode:Ye,MeasureLayout:Ct}},ln=(0,vt.createContext)({strict:!1});var un=n(42278);const cn=(0,vt.createContext)({});var hn=n(67349);function dn(t){const{initial:e,animate:n}=function(t,e){if((0,hn.e)(t)){const{initial:e,animate:n}=t;return{initial:!1===e||(0,a.w)(e)?e:void 0,animate:(0,a.w)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,vt.useContext)(cn));return(0,vt.useMemo)((()=>({initial:e,animate:n})),[pn(e),pn(n)])}function pn(t){return Array.isArray(t)?t.join(" "):t}var mn=n(67584),fn=n(35132);const vn=Symbol.for("motionComponentSymbol");function gn(t,e,n){return(0,vt.useCallback)((i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):G(n)&&(n.current=i))}),[e])}var yn=n(47544),xn=n(49512);function wn(t,e,n,i,s){var o,r;const{visualElement:a}=(0,vt.useContext)(cn),l=(0,vt.useContext)(ln),u=(0,vt.useContext)(gt),c=(0,vt.useContext)(un.Q).reducedMotion,h=(0,vt.useRef)(null);i=i||l.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const d=h.current,p=(0,vt.useContext)(xt);!d||d.projection||!s||"html"!==d.type&&"svg"!==d.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Pn(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&G(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(h.current,n,s,p);const m=(0,vt.useRef)(!1);(0,vt.useInsertionEffect)((()=>{d&&m.current&&d.update(n,u)}));const f=n[xn.n],v=(0,vt.useRef)(Boolean(f)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,f))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,f)));return(0,yn.E)((()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Et.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())})),(0,vt.useEffect)((()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)})),v.current=!1))})),d}function Pn(t){if(t)return!1!==t.options.allowProjection?t.projection:Pn(t.parent)}function Sn(t){let{preloadedFeatures:e,createVisualElement:n,useRender:i,useVisualState:s,Component:o}=t;var r,a;function l(t,e){let r;const a={...(0,vt.useContext)(un.Q),...t,layoutId:Tn(t)},{isStatic:l}=a,u=dn(t),c=s(t,l);if(!l&&mn.B){!function(){(0,vt.useContext)(ln).strict;0}();const t=function(t){const{drag:e,layout:n}=fn.B;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(a);r=t.MeasureLayout,u.visualElement=wn(o,c,a,n,t.ProjectionNode)}return(0,ft.jsxs)(cn.Provider,{value:u,children:[r&&u.visualElement?(0,ft.jsx)(r,{visualElement:u.visualElement,...a}):null,i(o,t,gn(c,u.visualElement,e),c,l,u.visualElement)]})}e&&function(t){for(const e in t)fn.B[e]={...fn.B[e],...t[e]}}(e),l.displayName=`motion.${"string"==typeof o?o:`create(${null!==(a=null!==(r=o.displayName)&&void 0!==r?r:o.name)&&void 0!==a?a:""})`}`;const u=(0,vt.forwardRef)(l);return u[vn]=o,u}function Tn(t){let{layoutId:e}=t;const n=(0,vt.useContext)(yt).id;return n&&void 0!==e?n+"-"+e:e}const bn=["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 An(t){return"string"==typeof t&&!t.includes("-")&&!!(bn.indexOf(t)>-1||/[A-Z]/u.test(t))}var Vn=n(25285),En=n(79305);const Mn=t=>(e,n)=>{const i=(0,vt.useContext)(cn),s=(0,vt.useContext)(gt),o=()=>function(t,e,n,i){let{scrapeMotionValuesFromProps:s,createRenderState:o,onUpdate:r}=t;const a={latestValues:Dn(e,n,i,s),renderState:o()};return r&&(a.onMount=t=>r({props:e,current:t,...a}),a.onUpdate=t=>r(t)),a}(t,e,i,s);return n?o():(0,En.M)(o)};function Dn(t,e,n,i){const o={},r=i(t,{});for(const t in r)o[t]=Nt(r[t]);let{initial:a,animate:l}=t;const u=(0,hn.e)(t),c=(0,hn.O)(t);e&&c&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let h=!!n&&!1===n.initial;h=h||!1===a;const d=h?l:a;if(d&&"boolean"!=typeof d&&!(0,s.N)(d)){const e=Array.isArray(d)?d:[d];for(let n=0;n({style:{},transform:{},transformOrigin:{},vars:{}}),Bn=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});var jn=n(14633),Ln=n(40407),Fn=n(30233);const On=["x","y","width","height","cx","cy","r"],Un={useVisualState:Mn({scrapeMotionValuesFromProps:Fn.x,createRenderState:Bn,onUpdate:t=>{let{props:e,prevProps:n,current:i,renderState:s,latestValues:o}=t;if(!i)return;let r=!!e.drag;if(!r)for(const t in o)if(Cn.f.has(t)){r=!0;break}if(!r)return;let a=!n;if(n)for(let t=0;t{!function(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}}}(i,s),j.Gt.render((()=>{(0,kn.B)(s,o,(0,jn.n)(i.tagName),e.transformTemplate),(0,Ln.d)(i,s)}))}))}})};const Wn={useVisualState:Mn({scrapeMotionValuesFromProps:n(86750).x,createRenderState:Rn})};var In=n(10061),$n=n(17014);function Gn(t,e,n){for(const i in e)(0,Gt.S)(e[i])||(0,In.z)(i,n)||(t[i]=e[i])}function Nn(t,e){const n={};return Gn(n,t.style||{},t),Object.assign(n,function(t,e){let{transformTemplate:n}=t;return(0,vt.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return(0,$n.O)(t,e,n),Object.assign({},t.vars,t.style)}),[e])}(t,e)),n}function Kn(t,e){const n={},i=Nn(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Hn=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 zn(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Hn.has(t)}let Xn=t=>!zn(t);try{(qn=require("@emotion/is-prop-valid").default)&&(Xn=t=>t.startsWith("on")?!zn(t):qn(t))}catch(t){}var qn;function Yn(t,e,n,i){const s=(0,vt.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return(0,kn.B)(n,e,(0,jn.n)(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};Gn(e,t.style,t),s.style={...e,...s.style}}return s}function Qn(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,i,s,o)=>{let{latestValues:r}=s;const a=(An(e)?Yn:Kn)(n,r,o,e),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Xn(s)||!0===n&&zn(s)||!e&&!zn(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),u=e!==vt.Fragment?{...l,...a,ref:i}:{},{children:c}=n,h=(0,vt.useMemo)((()=>(0,Gt.S)(c)?c.get():c),[c]);return(0,vt.createElement)(e,{...u,children:h})}}function Zn(t,e){return function(n){let{forwardMotionProps:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return Sn({...An(n)?Un:Wn,preloadedFeatures:t,useRender:Qn(i),createVisualElement:e,Component:n})}}var _n=n(70851),Jn=n(39167);const ti=i(Zn({...b,...rn,...Qe,...an},((t,e)=>An(t)?new Jn.l(e):new _n.M(e,{allowProjection:t!==vt.Fragment}))))},95722:(t,e,n)=>{n.d(e,{K:()=>v});var i=n(45520);var s=n(91316),o=n(16528),r=n(80184);const a=new Set(["auto","none","0"]);var l=n(67827),u=n(80024),c=n(50884),h=n(71560);const d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function p(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,u.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=d.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return(0,c.i)(t)?parseFloat(t):t}return(0,h.p)(s)?p(s,e,n+1):s}var m=n(85532),f=n(58963);class v extends l.h{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n{let[n,i]=t;e.getValue(n).set(i)})),this.resolveNoneKeyframes()}}},32759:(t,e,n)=>{n.d(e,{b:()=>r});var i=n(69548),s=n(95722),o=n(38232);class r extends i.B{constructor(){super(...arguments),this.KeyframeResolver=s.K}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:n,style:i}=e;delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,o.S)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}},79246:(t,e,n)=>{n.d(e,{I:()=>i});const i=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},71560:(t,e,n)=>{n.d(e,{j:()=>s,p:()=>r});const i=t=>e=>"string"==typeof e&&e.startsWith(t),s=i("--"),o=i("var(--"),r=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},67311:(t,e,n)=>{function i(t){return t instanceof SVGElement&&"svg"!==t.tagName}n.d(e,{x:()=>i})},85532:(t,e,n)=>{n.d(e,{E4:()=>r,Hr:()=>d,W9:()=>h});var i=n(46064),s=n(17813),o=n(71947);const r=t=>t===i.ai||t===s.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(n,i)=>{let{transform:s}=i;if("none"===s||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return a(o[1],e);{const e=s.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),c=o.U.filter((t=>!u.has(t)));function h(t){const e=[];return c.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}const d={width:(t,e)=>{let{x:n}=t,{paddingLeft:i="0",paddingRight:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:(t,e)=>{let{y:n}=t,{paddingTop:i="0",paddingBottom:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:i}=e;return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:i}=e;return parseFloat(i)+(n.max-n.min)},x:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},80184:(t,e,n)=>{n.d(e,{J:()=>r});var i=n(16528),s=n(38924),o=n(20739);function r(t,e){let n=(0,o.D)(t);return n!==s.p&&(n=i.f),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},20739:(t,e,n)=>{n.d(e,{D:()=>r});var i=n(1483),s=n(38924);const o={...n(56035).W,color:i.y,backgroundColor:i.y,outlineColor:i.y,fill:i.y,stroke:i.y,borderColor:i.y,borderTopColor:i.y,borderRightColor:i.y,borderBottomColor:i.y,borderLeftColor:i.y,filter:s.p,WebkitFilter:s.p},r=t=>o[t]},58963:(t,e,n)=>{n.d(e,{T:()=>r,n:()=>a});var i=n(46064),s=n(17813),o=n(56689);const r=[i.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find((0,o.w)(t))},56035:(t,e,n)=>{n.d(e,{W:()=>l});var i=n(46064),s=n(17813);const o={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},r={rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:i.hs,scaleX:i.hs,scaleY:i.hs,scaleZ:i.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:i.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={...i.ai,transform:Math.round},l={...o,...r,zIndex:a,size:s.px,fillOpacity:i.X4,strokeOpacity:i.X4,numOctaves:a}},56689:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>e=>e.test(t)},70851:(t,e,n)=>{n.d(e,{M:()=>h});var i=n(44005),s=n(32759),o=n(71560),r=n(20739),a=n(17014),l=n(71947),u=n(99788),c=n(86750);class h extends s.b{constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}readValueFromInstance(t,e){if(l.f.has(e)){const t=(0,r.D)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=((0,o.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return(0,i.m)(t,n)}build(t,e,n){(0,a.O)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,c.x)(t,e,n)}}},17014:(t,e,n)=>{n.d(e,{O:()=>u});var i=n(71560);const s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var o=n(56035),r=n(71947);const a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=r.U.length;function u(t,e,n){const{style:u,vars:c,transformOrigin:h}=t;let d=!1,p=!1;for(const t in e){const n=e[t];if(r.f.has(t))d=!0;else if((0,i.j)(t))c[t]=n;else{const e=s(n,o.W[t]);t.startsWith("origin")?(p=!0,h[t]=e):u[t]=e}}if(e.transform||(d||n?u.transform=function(t,e,n){let i="",u=!0;for(let c=0;c{n.d(e,{$:()=>s});var i=n(71947);const s=new Set(["width","height","top","left","right","bottom",...i.U])},71947:(t,e,n)=>{n.d(e,{U:()=>i,f:()=>s});const i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(i)},99788:(t,e,n)=>{function i(t,e,n,i){let{style:s,vars:o}=e;Object.assign(t.style,s,i&&i.getProjectionStyles(n));for(const e in o)t.style.setProperty(e,o[e])}n.d(e,{e:()=>i})},86750:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(10061),s=n(38232);function o(t,e,n){var o;const{style:r}=t,a={};for(const l in r)((0,s.S)(r[l])||e.style&&(0,s.S)(e.style[l])||(0,i.z)(l,t)||void 0!==(null===(o=null==n?void 0:n.getValue(l))||void 0===o?void 0:o.liveStyle))&&(a[l]=r[l]);return a}},82067:(t,e,n)=>{n.d(e,{C:()=>i});const i=new WeakMap},39167:(t,e,n)=>{n.d(e,{l:()=>p});var i=n(78826),s=n(32759),o=n(79246),r=n(20739),a=n(71947),l=n(27840),u=n(74519),c=n(14633),h=n(40407),d=n(30233);class p extends s.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=i.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.f.has(e)){const t=(0,r.D)(e);return t&&t.default||0}return e=u.e.has(e)?e:(0,o.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,d.x)(t,e,n)}build(t,e,n){(0,l.B)(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){(0,h.d)(t,e,n,i)}mount(t){this.isSVGTag=(0,c.n)(t.tagName),super.mount(t)}}},27840:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(17014),s=n(17813);const o={offset:"stroke-dashoffset",array:"stroke-dasharray"},r={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,n){return"string"==typeof t?t:s.px.transform(e+n*t)}function l(t,e,n,l){let{attrX:u,attrY:c,attrScale:h,originX:d,originY:p,pathLength:m,pathSpacing:f=1,pathOffset:v=0,...g}=e;if((0,i.O)(t,g,l),n)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:y,style:x,dimensions:w}=t;y.transform&&(w&&(x.transform=y.transform),delete y.transform),w&&(void 0!==d||void 0!==p||x.transform)&&(x.transformOrigin=function(t,e,n){return`${a(e,t.x,t.width)} ${a(n,t.y,t.height)}`}(w,void 0!==d?d:.5,void 0!==p?p:.5)),void 0!==u&&(y.x=u),void 0!==c&&(y.y=c),void 0!==h&&(y.scale=h),void 0!==m&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const l=a?o:r;t[l.offset]=s.px.transform(-i);const u=s.px.transform(e),c=s.px.transform(n);t[l.array]=`${u} ${c}`}(y,m,f,v,!1)}},74519:(t,e,n)=>{n.d(e,{e:()=>i});const i=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},14633:(t,e,n)=>{n.d(e,{n:()=>i});const i=t=>"string"==typeof t&&"svg"===t.toLowerCase()},40407:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(79246),s=n(99788),o=n(74519);function r(t,e,n,r){(0,s.e)(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(o.e.has(n)?n:(0,i.I)(n),e.attrs[n])}},30233:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(38232),s=n(71947),o=n(86750);function r(t,e,n){const r=(0,o.x)(t,e,n);for(const n in t)if((0,i.S)(t[n])||(0,i.S)(e[n])){r[-1!==s.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return r}},67827:(t,e,n)=>{n.d(e,{h:()=>h,q:()=>c});var i=n(85532),s=n(97800);const o=new Set;let r=!1,a=!1;function l(){if(a){const t=Array.from(o).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=(0,i.W9)(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((e=>{let[n,i]=e;var s;null===(s=t.getValue(n))||void 0===s||s.set(i)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}a=!1,r=!1,o.forEach((t=>t.complete())),o.clear()}function u(){o.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)}))}function c(){u(),l()}class h{constructor(t,e,n,i,s){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),r||(r=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s{n.d(e,{O:()=>a,e:()=>r});var i=n(70498),s=n(52247),o=n(53380);function r(t){return(0,i.N)(t.animate)||o._.some((e=>(0,s.w)(t[e])))}function a(t){return Boolean(r(t)||t.variants)}},52247:(t,e,n)=>{function i(t){return"string"==typeof t||Array.isArray(t)}n.d(e,{w:()=>i})},63777:(t,e,n)=>{n.d(e,{K:()=>s});var i=n(25285);function s(t,e,n){const s=t.getProps();return(0,i.a)(s,e,void 0!==n?n:s.custom,t)}},25285:(t,e,n)=>{function i(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function s(t,e,n,s){if("function"==typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}return e}n.d(e,{a:()=>s})},53380:(t,e,n)=>{n.d(e,{U:()=>i,_:()=>s});const i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...i]},73628:(t,e,n)=>{n.d(e,{W:()=>i});const i={skipAnimations:!1,useManualTiming:!1}},23062:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:()=>s,Kq:()=>i})},13904:(t,e,n)=>{n.d(e,{q:()=>i});const i=(t,e,n)=>n>e?e:n{n.d(e,{G:()=>u});var i=n(49389),s=n(80024),o=n(39712),r=n(13904),a=n(30848),l=n(84475);function u(t,e){let{clamp:n=!0,ease:u,mixer:c}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const h=t.length;if((0,s.V)(h===e.length,"Both input and output ranges must be the same length"),1===h)return()=>e[0];if(2===h&&e[0]===e[1])return()=>e[1];const d=t[0]===t[1];t[0]>t[h-1]&&(t=[...t].reverse(),e=[...e].reverse());const p=function(t,e,n){const s=[],o=n||a.j,r=t.length-1;for(let n=0;n{if(d&&n1)for(;if((0,r.q)(t[0],t[h-1],e)):f}},67584:(t,e,n)=>{n.d(e,{B:()=>i});const i="undefined"!=typeof window},50884:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},45520:(t,e,n)=>{n.d(e,{$:()=>i});const i=t=>/^0[^.\s]+$/u.test(t)},30848:(t,e,n)=>{n.d(e,{j:()=>b});var i=n(44625),s=n(80024);function o(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var r=n(22868),a=n(16471),l=n(98027);function u(t,e){return n=>n>0?e:t}const c=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},h=[r.u,a.B,l.V];function d(t){const e=(n=t,h.find((t=>t.test(n))));var n;if((0,s.$)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===l.V&&(i=function(t){let{hue:e,saturation:n,lightness:i,alpha:s}=t;e/=360,n/=100,i/=100;let r=0,a=0,l=0;if(n){const t=i<.5?i*(1+n):i+n-i*n,s=2*i-t;r=o(s,t,e+1/3),a=o(s,t,e),l=o(s,t,e-1/3)}else r=a=l=i;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*l),alpha:s}}(i)),i}const p=(t,e)=>{const n=d(t),s=d(e);if(!n||!s)return u(t,e);const o={...n};return t=>(o.red=c(n.red,s.red,t),o.green=c(n.green,s.green,t),o.blue=c(n.blue,s.blue,t),o.alpha=(0,i.k)(n.alpha,s.alpha,t),a.B.transform(o))};var m=n(84475),f=n(1483),v=n(16528),g=n(71560);const y=new Set(["none","hidden"]);function x(t,e){return n=>(0,i.k)(t,e,n)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:f.y.test(t)?p:T:Array.isArray(t)?P:"object"==typeof t?f.y.test(t)?p:S:u}function P(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>w(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in i)n[e]=i[e](t);return n}}const T=(t,e)=>{const n=v.f.createTransformer(e),i=(0,v.V)(t),o=(0,v.V)(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?y.has(t)&&!o.values.length||y.has(e)&&!i.values.length?function(t,e){return y.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):(0,m.F)(P(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o{n.d(e,{k:()=>i});const i=(t,e,n)=>t+(e-t)*n},59035:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(13227);function s(t){const e=[0];return(0,i.f)(e,t.length-1),e}},13227:(t,e,n)=>{n.d(e,{f:()=>o});var i=n(39712),s=n(44625);function o(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=(0,i.q)(0,e,o);t.push((0,s.k)(n,1,r))}}},84475:(t,e,n)=>{n.d(e,{F:()=>s});const i=(t,e)=>n=>e(t(n)),s=function(){for(var t=arguments.length,e=new Array(t),n=0;n{n.d(e,{B:()=>s,K:()=>o});var i=n(56640);const s=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,i.p)(t)?t[t.length-1]||0:t},18334:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(23062);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.Kq)(this.subscriptions,t),()=>(0,i.Ai)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s{n.d(e,{M:()=>s});var i=n(9950);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},47544:(t,e,n)=>{n.d(e,{E:()=>s});var i=n(9950);const s=n(67584).B?i.useLayoutEffect:i.useEffect},24073:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{f:()=>i})},17473:(t,e,n)=>{n.d(e,{OQ:()=>u,bt:()=>a});var i=n(27030),s=n(18334),o=n(24073),r=n(97800);const a={current:void 0};class l{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const s=i.k.now();e.updatedAt!==s&&e.setPrevFrameValue(),e.prev=e.current,e.setCurrent(t),e.current!==e.prev&&e.events.change&&e.events.change.notify(e.current),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){var e;this.current=t,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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.v);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},22868:(t,e,n)=>{n.d(e,{u:()=>s});var i=n(16471);const s={test:(0,n(71115).$)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.B.transform}},98027:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(46064),s=n(17813),o=n(14926),r=n(71115);const a={test:(0,r.$)("hsl","hue"),parse:(0,r.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+s.KN.transform((0,o.a)(n))+", "+s.KN.transform((0,o.a)(r))+", "+(0,o.a)(i.X4.transform(a))+")"}}},1483:(t,e,n)=>{n.d(e,{y:()=>r});var i=n(22868),s=n(98027),o=n(16471);const r={test:t=>o.B.test(t)||i.u.test(t)||s.V.test(t),parse:t=>o.B.test(t)?o.B.parse(t):s.V.test(t)?s.V.parse(t):i.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?o.B.transform(t):s.V.transform(t)}},16471:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(13904),s=n(46064),o=n(14926),r=n(71115);const a={...s.ai,transform:t=>Math.round((t=>(0,i.q)(0,255,t))(t))},l={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:t=>{let{red:e,green:n,blue:i,alpha:r=1}=t;return"rgba("+a.transform(e)+", "+a.transform(n)+", "+a.transform(i)+", "+(0,o.a)(s.X4.transform(r))+")"}}},71115:(t,e,n)=>{n.d(e,{$:()=>o,q:()=>r});var i=n(29985);const s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>n=>Boolean("string"==typeof n&&s.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),r=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[o,r,a,l]=s.match(i.S);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},38924:(t,e,n)=>{n.d(e,{p:()=>l});var i=n(16528),s=n(29985);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(s.S)||[];if(!i)return t;const r=n.replace(i,"");let a=o.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/\b([a-z-]*)\(.*?\)/gu,l={...i.f,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},16528:(t,e,n)=>{n.d(e,{V:()=>p,f:()=>g});var i=n(1483);const s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(29985),r=n(14926);const a="number",l="color",u="var",c="var(",h="${}",d=/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 p(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},o=[];let r=0;const p=e.replace(d,(t=>(i.y.test(t)?(s.color.push(r),o.push(l),n.push(i.y.parse(t))):t.startsWith(c)?(s.var.push(r),o.push(u),n.push(t)):(s.number.push(r),o.push(a),n.push(parseFloat(t))),++r,h))).split(h);return{values:n,split:p,indexes:s,types:o}}function m(t){return p(t).values}function f(t){const{split:e,types:n}=p(t),s=e.length;return t=>{let o="";for(let u=0;u"number"==typeof t?0:t;const g={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(o.S))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s))||void 0===n?void 0:n.length)||0)>0},parse:m,createTransformer:f,getAnimatableNone:function(t){const e=m(t);return f(t)(e.map(v))}}},46064:(t,e,n)=>{n.d(e,{X4:()=>o,ai:()=>s,hs:()=>r});var i=n(13904);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.q)(0,1,t)},r={...s,default:1}},17813:(t,e,n)=>{n.d(e,{KN:()=>o,gQ:()=>u,px:()=>r,uj:()=>s,vh:()=>a,vw:()=>l});const i=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=i("deg"),o=i("%"),r=i("px"),a=i("vh"),l=i("vw"),u={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},29985:(t,e,n)=>{n.d(e,{S:()=>i});const i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},14926:(t,e,n)=>{n.d(e,{a:()=>i});const i=t=>Math.round(1e5*t)/1e5},71567:(t,e,n)=>{n.d(e,{d:()=>a});var i=n(9950),s=n(17473),o=n(42278),r=n(79305);function a(t){const e=(0,r.M)((()=>(0,s.OQ)(t))),{isStatic:n}=(0,i.useContext)(o.Q);if(n){const[,n]=(0,i.useState)(t);(0,i.useEffect)((()=>e.on("change",n)),[])}return e}},73182:(t,e,n)=>{n.d(e,{L:()=>q});var i=n(17473),s=n(79305),o=n(9950),r=n(80024),a=n(31880),l=n(49389),u=n(97800);function c(t,e){let n;const i=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return u.Gt.update(i,!0),()=>(0,u.WG)(i)}const h=new WeakMap;let d;function p(t){let{target:e,contentRect:n,borderBoxSize:i}=t;var s;null===(s=h.get(e))||void 0===s||s.forEach((t=>{t({target:e,contentSize:n,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(e,i)}})}))}function m(t){t.forEach(p)}function f(t,e){d||"undefined"!=typeof ResizeObserver&&(d=new ResizeObserver(m));const n=(0,a.KJ)(t);return n.forEach((t=>{let n=h.get(t);n||(n=new Set,h.set(t,n)),n.add(e),null==d||d.observe(t)})),()=>{n.forEach((t=>{const n=h.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==d||d.unobserve(t)}))}}const v=new Set;let g;function y(t){return v.add(t),g||(g=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};v.forEach((t=>t(e)))},window.addEventListener("resize",g)),()=>{v.delete(t),!v.size&&g&&(g=void 0)}}var x=n(39712),w=n(24073);const P=50,S=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),T={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function b(t,e,n,i){const s=n[e],{length:o,position:r}=T[e],a=s.current,l=n.time;s.current=t[`scroll${r}`],s.scrollLength=t[`scroll${o}`]-t[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=(0,x.q)(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>P?0:(0,w.f)(s.current-a,u)}var A=n(13904),V=n(92028),E=n(59035);const M={start:0,center:.5,end:1};function D(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0;if(t in M&&(t=M[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}const C=[0,0];function k(t,e,n,i){let s=Array.isArray(t)?t:C,o=0,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,M[t]?t:"0"]),o=D(s[0],n,i),r=D(s[1],e),o-r}const R={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},B={x:0,y:0};function j(t,e,n){const{offset:i=R.All}=n,{target:s=t,axis:o="y"}=n,r="y"===o?"height":"width",a=s!==t?function(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){const t=i.getBoundingClientRect();i=i.parentElement;const e=i.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(i instanceof SVGGraphicsElement))break;{const{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let s=null,o=i.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=i.parentNode;i=s}}return n}(s,t):B,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate;const h=i.length;for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:{};return{measure:()=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),update:e=>{!function(t,e,n){b(t,"x",e,n),b(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&j(t,n,i)},notify:()=>e(n)}}const F=new WeakMap,O=new WeakMap,U=new WeakMap,W=t=>t===document.documentElement?window:t;function I(t){let{container:e=document.documentElement,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=U.get(e);i||(i=new Set,U.set(e,i));const s=S(),o=L(e,t,s,n);if(i.add(o),!F.has(e)){const t=()=>{for(const t of i)t.measure()},n=()=>{for(const t of i)t.update(u.uv.timestamp)},s=()=>{for(const t of i)t.notify()},o=()=>{u.Gt.read(t,!1,!0),u.Gt.read(n,!1,!0),u.Gt.update(s,!1,!0)};F.set(e,o);const l=W(e);window.addEventListener("resize",o,{passive:!0}),e!==document.documentElement&&O.set(e,(a=o,"function"==typeof(r=e)?y(r):f(r,a))),l.addEventListener("scroll",o,{passive:!0})}var r,a;const l=F.get(e);return u.Gt.read(l,!1,!0),()=>{var t;(0,u.WG)(l);const n=U.get(e);if(!n)return;if(n.delete(o),n.size)return;const i=F.get(e);F.delete(e),i&&(W(e).removeEventListener("scroll",i),null===(t=O.get(e))||void 0===t||t(),window.removeEventListener("resize",i))}}const $=new Map;function G(){let{source:t,container:e=document.documentElement,axis:n="y"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t&&(e=t),$.has(e)||$.set(e,{});const i=$.get(e);return i[n]||(i[n]=(0,a.Jb)()?new ScrollTimeline({source:e,axis:n}):function(t){let{source:e,container:n,axis:i="y"}=t;e&&(n=e);const s={value:0},o=I((t=>{s.value=100*t[i].progress}),{container:n,axis:i});return{currentTime:s,cancel:o}}({source:e,axis:n})),i[n]}function N(t){return t&&(t.target||t.offset)}function K(t){let{axis:e="y",...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={axis:e,...n};return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)||N(e)?I((n=>{t(n[e.axis].progress,n)}),e):c(t,G(e))}(t,i):function(t,e){if(t.flatten(),N(e))return t.pause(),I((n=>{t.time=t.duration*n[e.axis].progress}),e);{const n=G(e);return t.attachTimeline?t.attachTimeline(n,(t=>(t.pause(),c((e=>{t.time=t.duration*e}),n)))):l.l}}(t,i)}var H=n(47544);function z(t,e){(0,r.$)(Boolean(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const X=()=>({scrollX:(0,i.OQ)(0),scrollY:(0,i.OQ)(0),scrollXProgress:(0,i.OQ)(0),scrollYProgress:(0,i.OQ)(0)});function q(){let{container:t,target:e,layoutEffect:n=!0,...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,s.M)(X);return(n?H.E:o.useEffect)((()=>(z("target",e),z("container",t),K(((t,e)=>{let{x:n,y:i}=e;r.scrollX.set(n.current),r.scrollXProgress.set(n.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)}),{...i,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0}))),[t,e,JSON.stringify(i.offset)]),r}},67473:(t,e,n)=>{n.d(e,{G:()=>h});var i=n(92028);const s=t=>(t=>t&&"object"==typeof t&&t.mix)(t)?t.mix:void 0;var o=n(71567),r=n(47544),a=n(97800);function l(t,e){const n=(0,o.d)(e()),i=()=>n.set(e());return i(),(0,r.E)((()=>{const e=()=>a.Gt.preRender(i,!1,!0),n=t.map((t=>t.on("change",e)));return()=>{n.forEach((t=>t())),(0,a.WG)(i)}})),n}var u=n(79305),c=n(17473);function h(t,e,n,o){if("function"==typeof t)return function(t){c.bt.current=[],t();const e=l(c.bt.current,t);return c.bt.current=void 0,e}(t);const r="function"==typeof e?e:function(){const t=!Array.isArray(arguments.length<=0?void 0:arguments[0]),e=t?0:-1,n=0+e<0||arguments.length<=0+e?void 0:arguments[0+e],o=1+e<0||arguments.length<=1+e?void 0:arguments[1+e],r=2+e<0||arguments.length<=2+e?void 0:arguments[2+e],a=3+e<0||arguments.length<=3+e?void 0:arguments[3+e],l=(0,i.G)(o,r,{mixer:s(r[0]),...a});return t?l(n):l}(e,n,o);return Array.isArray(t)?d(t,r):d([t],(t=>{let[e]=t;return r(e)}))}function d(t,e){const n=(0,u.M)((()=>[]));return l(t,(()=>{n.length=0;const i=t.length;for(let e=0;e{n.d(e,{g:()=>s});var i=n(38232);function s(t,e){const n=t.getValue("willChange");if(s=n,Boolean((0,i.S)(s)&&s.add))return n.add(e);var s}},38232:(t,e,n)=>{n.d(e,{S:()=>i});const i=t=>Boolean(t&&t.getVelocity)}}]);