"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8202],{1209:(t,e,i)=>{i.d(e,{n:()=>s});let s=t=>"string"==typeof t&&"svg"===t.toLowerCase()},1478:(t,e,i)=>{i.d(e,{Y:()=>n});var s=i(91753);function n(t,e,i){let n=Math.max(e-5,0);return(0,s.f)(i-t(n),e-n)}},1755:(t,e,i)=>{i.d(e,{f:()=>L});var s=i(22677),n=i(48568);let r={type:"spring",stiffness:500,damping:25,restSpeed:10},o={type:"keyframes",duration:.8},a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};var l=i(39652),u=i(89494),h=i(7130),d=i(67342),c=i(50892),p=i(80237),m=i(77688),f=i(66868),v=i(4440),g=i(77121),y=i(38995),x=i(66019),w=i(34360);let P=new Set(["opacity","clipPath","filter","transform"]);var T=i(5273),S=i(19137),b=i(20411);let A={linearEasing:void 0},V=function(t,e){let i=(0,b.p)(t);return()=>{var t;return null!=(t=A[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),E=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,M={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:E([0,.65,.55,1]),circOut:E([.55,0,1,.45]),backIn:E([.31,.01,.66,-.59]),backOut:E([.33,1.53,.69,.99])};function k(t,e){t.timeline=e,t.onfinish=null}let D=(0,b.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),C={anticipate:p.b,backInOut:m.ZZ,circInOut:f.tn};class R extends x.i{constructor(t){super(t);let{name:e,motionValue:i,element:s,keyframes:n}=this.options;this.resolver=new v.K(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:n=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null==(i=l.owner)?void 0:i.current))return!1;if("string"==typeof o&&V()&&o in C&&(o=C[o]),s=this.options,(0,y.W)(s.type)||"spring"===s.type||!function t(e){return!!("function"==typeof e&&V()||!e||"string"==typeof e&&(e in M||V())||(0,T.D)(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:e,onUpdate:i,motionValue:s,element:l,...u}=this.options,h=function(t,e){let i=new w.o({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],r=0;for(;!s.done&&r<2e4;)n.push((s=i.sample(r)).value),r+=10;return{times:void 0,keyframes:n,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,o=h.ease,a="keyframes"}let c=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&V()?(0,S.K)(e,i):(0,T.D)(e)?E(e):Array.isArray(e)?e.map(e=>t(e,i)||M.easeOut):M[e]}(a,n);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:n,times:r,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(k(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,d.X)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,s.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,s.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return g.l;let{animation:i}=e;k(i,t)}else this.pendingTimeline=t;return g.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new w.o({...h,keyframes:i,duration:n,type:r,ease:o,times:a,isGenerator:!0}),c=(0,s.f)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;return D()&&i&&P.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}}var j=i(32863);let L=(t,e,i,p={},m,f)=>v=>{let g=(0,l.r)(p,t)||{},y=g.delay||p.delay||0,{elapsed:x=0}=p;x-=(0,s.f)(y);let P={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...g,delay:-x,onUpdate:t=>{e.set(t),g.onUpdate&&g.onUpdate(t)},onComplete:()=>{v(),g.onComplete&&g.onComplete()},name:t,motionValue:e,element:f?void 0:m};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(g)&&(P={...P,...((t,{keyframes:e})=>e.length>2?o:n.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:r:a)(t,P)}),P.duration&&(P.duration=(0,s.f)(P.duration)),P.repeatDelay&&(P.repeatDelay=(0,s.f)(P.repeatDelay)),void 0!==P.from&&(P.keyframes[0]=P.from);let T=!1;if(!1!==P.type&&(0!==P.duration||P.repeatDelay)||(P.duration=0,0===P.delay&&(T=!0)),(h.d.current||u.W.skipAnimations)&&(T=!0,P.duration=0,P.delay=0),T&&!f&&void 0!==e.get()){let t=(0,d.X)(P.keyframes,g);if(void 0!==t)return c.Gt.update(()=>{P.onUpdate(t),P.onComplete()}),new j.P([])}return!f&&R.supports(P)?new R(P):new w.o(P)}},4095:(t,e,i)=>{i.d(e,{M:()=>n});var s=i(77169);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4440:(t,e,i)=>{i.d(e,{K:()=>m});var s=i(91062),n=i(4604),r=i(35116),o=i(47722);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(88894),u=i(16761),h=i(64857),d=i(80588),c=i(73542);let p=new Set(["auto","none","0"]);class m extends h.h{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},4604:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>r});var s=i(77121);let n=s.l,r=s.l},5273:(t,e,i)=>{i.d(e,{D:()=>s});let s=t=>Array.isArray(t)&&"number"==typeof t[0]},6566:(t,e,i)=>{i.d(e,{o:()=>m});var s=i(19137),n=i(22677),r=i(1478),o=i(4604),a=i(29904);let l={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function u(t,e){return t*Math.sqrt(1-e*e)}var h=i(20839);let d=["duration","bounce"],c=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(t=l.visualDuration,e=l.bounce){let i,f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:v,restDelta:g}=f,y=f.keyframes[0],x=f.keyframes[f.keyframes.length-1],w={done:!1,value:y},{stiffness:P,damping:T,mass:S,duration:b,velocity:A,isResolvedFromDuration:V}=function(t){let e={velocity:l.velocity,stiffness:l.stiffness,damping:l.damping,mass:l.mass,isResolvedFromDuration:!1,...t};if(!p(t,c)&&p(t,d))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,a.q)(.05,1,1-t.bounce)*Math.sqrt(s);e={...e,mass:l.mass,stiffness:s,damping:n}}else{let i=function({duration:t=l.duration,bounce:e=l.bounce,velocity:i=l.velocity,mass:s=l.mass}){let r,h;(0,o.$)(t<=(0,n.f)(l.maxDuration),"Spring duration must be 10 seconds or less");let d=1-e;d=(0,a.q)(l.minDamping,l.maxDamping,d),t=(0,a.q)(l.minDuration,l.maxDuration,(0,n.X)(t)),d<1?(r=e=>{let s=e*d,n=s*t;return .001-(s-i)/u(e,d)*Math.exp(-n)},h=e=>{let s=e*d*t,n=Math.pow(d,2)*Math.pow(e,2)*t,o=Math.exp(-s),a=u(Math.pow(e,2),d);return(s*i+i-n)*o*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,h,5/t);if(t=(0,n.f)(t),isNaN(c))return{stiffness:l.stiffness,damping:l.damping,duration:t};{let e=Math.pow(c,2)*s;return{stiffness:e,damping:2*d*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:l.mass}).isResolvedFromDuration=!0}return e}({...f,velocity:-(0,n.X)(f.velocity||0)}),E=A||0,M=T/(2*Math.sqrt(P*S)),k=x-y,D=(0,n.X)(Math.sqrt(P/S)),C=5>Math.abs(k);if(v||(v=C?l.restSpeed.granular:l.restSpeed.default),g||(g=C?l.restDelta.granular:l.restDelta.default),M<1){let t=u(D,M);i=e=>x-Math.exp(-M*D*e)*((E+M*D*k)/t*Math.sin(t*e)+k*Math.cos(t*e))}else if(1===M)i=t=>x-Math.exp(-D*t)*(k+(E+D*k)*t);else{let t=D*Math.sqrt(M*M-1);i=e=>{let i=Math.exp(-M*D*e),s=Math.min(t*e,300);return x-i*((E+M*D*k)*Math.sinh(s)+t*k*Math.cosh(s))/t}}let R={calculatedDuration:V&&b||null,next:t=>{let e=i(t);if(V)w.done=t>=b;else{let s=0;M<1&&(s=0===t?(0,n.f)(E):(0,r.Y)(i,t,e));let o=Math.abs(x-e)<=g;w.done=Math.abs(s)<=v&&o}return w.value=w.done?x:e,w},toString:()=>{let t=Math.min((0,h.t)(R),h.Y),e=(0,s.K)(e=>R.next(t*e).value,t,30);return t+"ms "+e}};return R}},7130:(t,e,i)=>{i.d(e,{d:()=>s});let s={current:!1}},7715:(t,e,i)=>{i.d(e,{D:()=>o});var s=i(43407),n=i(40242);let r={...i(62129).W,color:s.y,backgroundColor:s.y,outlineColor:s.y,fill:s.y,stroke:s.y,borderColor:s.y,borderTopColor:s.y,borderRightColor:s.y,borderBottomColor:s.y,borderLeftColor:s.y,filter:n.p,WebkitFilter:n.p},o=t=>r[t]},7992:(t,e,i)=>{function s(t){return void 0===t||1===t}function n({scale:t,scaleX:e,scaleY:i}){return!s(t)||!s(e)||!s(i)}function r(t){return n(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>r,vF:()=>o,vk:()=>n})},9524:(t,e,i)=>{i.d(e,{v:()=>n});var s=i(68290);class n{constructor(){this.subscriptions=[]}add(t){return(0,s.Kq)(this.subscriptions,t),()=>(0,s.Ai)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>r,o4:()=>l});var s=i(28727),n=i(7992);function r(t,e,i){return i+e*(t-i)}function o(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function a(t,e=0,i=1,s,n){t.min=o(t.min,e,i,s,n),t.max=o(t.max,e,i,s,n)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,s=!1){let r,o,a=i.length;if(a){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,n,r=.5){let o=(0,s.k)(t.min,t.max,r);a(t,e,i,o,n)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},12277:(t,e,i)=>{i.d(e,{P:()=>id});var s,n,r=i(44778),o=i(19944);function a(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;sPromise.all(e.map(({animation:e,options:i})=>(0,d._)(t,e,i))),i=v(),s=!0,n=e=>(i,s)=>{var n;let r=(0,u.K)(t,s,"exit"===e?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function f(u){let{props:d}=t,f=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tx&&T,E=!1,M=Array.isArray(m)?m:[m],k=M.reduce(n(h),{});!1===S&&(k={});let{prevResolvedValues:D={}}=c,C={...D,...k},R=e=>{V=!0,g.has(e)&&(E=!0,g.delete(e)),c.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=k[t],i=D[t];if(!y.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?R(t):c.protectedKeys[t]=!0:null!=e?R(t):g.add(t)}c.prevProp=m,c.prevResolvedValues=k,c.isActive&&(y={...y,...k}),s&&t.blockInitialAnimation&&(V=!1);let j=!(b&&A)||E;V&&j&&v.push(...M.map(t=>({animation:t,options:{type:h}})))}if(g.size){let e={};g.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?s:null}),v.push({animation:e})}let T=!!v.length;return s&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?e(v):Promise.resolve()}return{animateChanges:f,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let r=f(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=v(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let x=0;class w extends g{constructor(){super(...arguments),this.id=x++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var P=i(77121),T=i(4604),S=i(26738);function b(t){return{point:{x:t.pageX,y:t.pageY}}}var A=i(22677);function V(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function E(t,e,i,s){return V(t,e,t=>(0,S.Mc)(t)&&i(t,b(t)),s)}var M=i(77497);let k=(t,e)=>Math.abs(t-e);var D=i(50892);class C{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=L(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(k(t.x,e.x)**2+k(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=D.uv;this.history.push({...s,timestamp:n});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=R(e,this.transformPagePoint),D.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=L("pointercancel"===t.type?this.lastMoveEventInfo:R(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!(0,S.Mc)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let r=R(b(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=D.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,L(r,this.history)),this.removeListeners=(0,M.F)(E(this.contextWindow,"pointermove",this.handlePointerMove),E(this.contextWindow,"pointerup",this.handlePointerUp),E(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,D.WG)(this.updatePoint)}}function R(t,e){return e?{point:e(t.point)}:t}function j(t,e){return{x:t.x-e.x,y:t.y-e.y}}function L({point:t},e){return{point:t,delta:j(t,F(e)),offset:j(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=F(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,A.f)(.1)));)i--;if(!s)return{x:0,y:0};let r=(0,A.X)(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function F(t){return t[t.length-1]}function B(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var O=i(93748),U=i(28727);function I(t){return t.max-t.min}function $(t,e,i,s=.5){t.origin=s,t.originPoint=(0,U.k)(e.min,e.max,t.origin),t.scale=I(i)/I(e),t.translate=(0,U.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function W(t,e,i,s){$(t.x,e.x,i.x,s?s.originX:void 0),$(t.y,e.y,i.y,s?s.originY:void 0)}function N(t,e,i){t.min=i.min+e.min,t.max=t.min+I(e)}function G(t,e,i){t.min=e.min-i.min,t.max=t.min+I(e)}function K(t,e,i){G(t.x,e.x,i.x),G(t.y,e.y,i.y)}var q=i(29904);function X(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function H(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.mint?t.ownerDocument.defaultView:null;var ts=i(46420);let tn=new WeakMap;class tr{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,_.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(b(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,S.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=I(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&D.Gt.postRender(()=>n(t,e)),(0,ts.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>this.stop(t,e),a=()=>Q(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new C(t,{onSessionStart:s,onStart:n,onMove:r,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ti(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&D.Gt.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!to(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&ti&&(t=s?(0,U.k)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&B(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:X(t.x,i,n),y:X(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:z(t,"left","right"),y:z(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!B(e))return!1;let s=e.current;(0,T.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=(0,Z.L)(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:H(t.x,r.x),y:H(t.y,r.y)});if(i){let t=i((0,J.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,J.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(Q(o=>{if(!to(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ts.g)(this.visualElement,t),i.start((0,te.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){Q(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Q(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Q(e=>{let{drag:i}=this.getProps();if(!to(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-(0,U.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!B(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};Q(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=I(t),n=I(e);return n>s?i=(0,O.q)(e.min,e.max-s,t.min):s>n&&(i=(0,O.q)(t.min,t.max-n,e.min)),(0,q.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Q(e=>{if(!to(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,U.k)(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;tn.set(this.visualElement,this);let t=E(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();B(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.Gt.read(e);let n=V(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Q(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function to(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class ta extends g{constructor(t){super(t),this.removeGroupControls=P.l,this.removeListeners=P.l,this.controls=new tr(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tl=t=>(e,i)=>{t&&D.Gt.postRender(()=>t(e,i))};class tu extends g{constructor(){super(...arguments),this.removePointerDownListener=P.l}onPointerDown(t){this.session=new C(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ti(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tl(t),onStart:tl(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&D.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=E(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var th=i(5717),td=i(77169),tc=i(88983),tp=i(17595);let tm=(0,td.createContext)({}),tf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tv(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tg={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tt.px.test(t))return t;else t=parseFloat(t);let i=tv(t,e.target.x),s=tv(t,e.target.y);return`${i}% ${s}%`}};var ty=i(80588),tx=i(38627);let{schedule:tw,cancel:tP}=(0,i(82870).I)(queueMicrotask,!1);class tT extends td.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,tx.$)(tb),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,r=i.projection;return r&&(r.isPresent=n,s||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||D.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tS(t){let[e,i]=function(){let t=(0,td.useContext)(tc.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,td.useId)();(0,td.useEffect)(()=>s(n),[]);let r=(0,td.useCallback)(()=>i&&i(n),[n,i]);return!e&&i?[!1,r]:[!0]}(),s=(0,td.useContext)(tp.L);return(0,th.jsx)(tT,{...t,layoutGroup:s,switchLayoutGroup:(0,td.useContext)(tm),isPresent:e,safeToRemove:i})}let tb={borderRadius:{...tg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tg,borderTopRightRadius:tg,borderBottomLeftRadius:tg,borderBottomRightRadius:tg,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=ty.f.parse(t);if(s.length>5)return t;let n=ty.f.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=(0,U.k)(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};var tA=i(9524),tV=i(66868);let tE=["TopLeft","TopRight","BottomLeft","BottomRight"],tM=tE.length,tk=t=>"string"==typeof t?parseFloat(t):t,tD=t=>"number"==typeof t||tt.px.test(t);function tC(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tR=tL(0,.5,tV.yT),tj=tL(.5,.95,P.l);function tL(t,e,i){return s=>se?1:i((0,O.q)(t,e,s))}function tF(t,e){t.min=e.min,t.max=e.max}function tB(t,e){tF(t.x,e.x),tF(t.y,e.y)}function tO(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tU=i(11821);function tI(t,e,i,s,n){return t-=e,t=(0,tU.hq)(t,1/i,s),void 0!==n&&(t=(0,tU.hq)(t,1/n,s)),t}function t$(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(tt.KN.test(e)&&(e=parseFloat(e),e=(0,U.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,U.k)(r.min,r.max,s);t===r&&(a-=e),t.min=tI(t.min,e,i,a,n),t.max=tI(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let tW=["x","scaleX","originX"],tN=["y","scaleY","originY"];function tG(t,e,i,s){t$(t.x,e,tW,i?i.x:void 0,s?s.x:void 0),t$(t.y,e,tN,i?i.y:void 0,s?s.y:void 0)}var tK=i(39652);function tq(t){return 0===t.translate&&1===t.scale}function tX(t){return tq(t.x)&&tq(t.y)}function tH(t,e){return t.min===e.min&&t.max===e.max}function tz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tY(t,e){return tz(t.x,e.x)&&tz(t.y,e.y)}function t_(t){return I(t.x)/I(t.y)}function tQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tZ=i(68290);class tJ{constructor(){this.members=[]}add(t){(0,tZ.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tZ.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var t0=i(7992);let t1=(t,e)=>t.depth-e.depth;class t2{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tZ.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tZ.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t1),this.isDirty=!1,this.children.forEach(t)}}var t7=i(87149),t8=i(52668);function t4(t){let e=(0,t8.S)(t)?t.get():t;return(0,t7.B)(e)?e.toValue():e}var t5=i(34266),t6=i(33855),t9=i(47966),t3=i(52128);let et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ee="undefined"!=typeof window&&void 0!==window.MotionDebug,ei=["","X","Y","Z"],es={visibility:"hidden"},en=0;function er(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eo({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=en++,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,ee&&(et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0),this.nodes.forEach(eu),this.nodes.forEach(ev),this.nodes.forEach(eg),this.nodes.forEach(eh),ee&&window.MotionDebug.record(et)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t5.k.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,D.WG)(s),t(n-250))};return D.Gt.read(s,!0),()=>(0,D.WG)(s)}(s,250),tf.hasAnimatedSinceResize&&(tf.hasAnimatedSinceResize=!1,this.nodes.forEach(ef))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||eS,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!tY(this.targetLayout,s)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,tK.r)(n,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ef(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,D.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(ey),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,t3.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",D.Gt,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let s=e/1e3;if(ew(o.x,t.x,s),ew(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;K(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=s,eP(p.x,m.x,f.x,v),eP(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,tH(u.x,c.x)&&tH(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.ge)()),tB(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,U.k)(0,void 0!==i.opacity?i.opacity:1,tR(s)),t.opacityExit=(0,U.k)(void 0!==e.opacity?e.opacity:1,0,tj(s))):r&&(t.opacity=(0,U.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n{tf.hasAnimatedSinceResize=!0,this.currentAnimation=(0,t9.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eE(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,_.ge)();let e=I(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=I(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tB(e,i),(0,tU.Ww)(e,n),W(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tJ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&er("z",t,s,this.animationValues);for(let e=0;e{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ec),this.root.sharedNodes.clear()}}}function ea(t){t.updateLayout()}function el(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,r=i.source!==t.layout.source;"size"===n?Q(t=>{let s=r?i.measuredBox[t]:i.layoutBox[t],n=I(s);s.min=e[t].min,s.max=s.min+n}):eE(n,i.layoutBox,e)&&Q(s=>{let n=r?i.measuredBox[s]:i.layoutBox[s],o=I(e[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,_.xU)();W(o,e,i.layoutBox);let a=(0,_.xU)();r?W(a,t.applyTransform(s,!0),i.measuredBox):W(a,e,i.layoutBox);let l=!tX(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=(0,_.ge)();K(o,i.layoutBox,n.layoutBox);let a=(0,_.ge)();K(a,e,r.layoutBox),tY(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eu(t){ee&&et.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ed(t){t.clearSnapshot()}function ec(t){t.clearMeasurements()}function ep(t){t.isLayoutDirty=!1}function em(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ef(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ev(t){t.resolveTargetDelta()}function eg(t){t.calcProjection()}function ey(t){t.resetSkewAndRotation()}function ex(t){t.removeLeadSnapshot()}function ew(t,e,i){t.translate=(0,U.k)(e.translate,0,i),t.scale=(0,U.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eP(t,e,i,s){t.min=(0,U.k)(e.min,i.min,s),t.max=(0,U.k)(e.max,i.max,s)}function eT(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eS={duration:.45,ease:[.4,0,.1,1]},eb=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eA=eb("applewebkit/")&&!eb("chrome/")?Math.round:P.l;function eV(t){t.min=eA(t.min),t.max=eA(t.max)}function eE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t_(e)-t_(i)))}function eM(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let ek=eo({attachResizeListener:(t,e)=>V(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eD={current:void 0},eC=eo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eD.current){let t=new ek({});t.mount(window),t.setOptions({layoutScroll:!0}),eD.current=t}return eD.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eR(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&D.Gt.postRender(()=>n(e,b(e)))}class ej extends g{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.PT)(t,t=>(eR(this.node,t,"Start"),t=>eR(this.node,t,"End"))))}unmount(){}}class eL extends g{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,M.F)(V(this.node.current,"focus",()=>this.onFocus()),V(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eF(t,e,i){let{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&D.Gt.postRender(()=>n(e,b(e)))}class eB extends g{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.c$)(t,t=>(eF(this.node,t,"Start"),(t,{success:e})=>eF(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eO=new WeakMap,eU=new WeakMap,eI=t=>{let e=eO.get(t.target);e&&e(t)},e$=t=>{t.forEach(eI)},eW={some:0,all:1};class eN extends g{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:eW[s]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;eU.has(i)||eU.set(i,{});let s=eU.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(e$,{root:t,...e})),s[n]}(r);return eO.set(a,o),l.observe(a),()=>{eO.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var eG=i(71686);let eK=(0,td.createContext)({});var eq=i(18624);let eX=(0,td.createContext)({strict:!1});var eH=i(75078),ez=i(64159);function eY(t){return Array.isArray(t)?t.join(" "):t}var e_=i(63356),eQ=i(13338);let eZ=Symbol.for("motionComponentSymbol"),eJ=["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 e0(t){if("string"!=typeof t||t.includes("-"));else if(eJ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e1=i(83079),e2=i(56029),e7=i(59693),e8=i(4095);let e4=t=>(e,i)=>{let s=(0,td.useContext)(eK),n=(0,td.useContext)(tc.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},s,n,o){let a={latestValues:function(t,e,i,s){let n={},o=s(t,{});for(let t in o)n[t]=t4(o[t]);let{initial:a,animate:l}=t,u=(0,ez.e)(t),h=(0,ez.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,r.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;ii(s,t,a)),a})(t,e,s,n);return i?o():(0,e8.M)(o)},e5=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e6=()=>({...e5(),attrs:{}});var e9=i(73522),e3=i(1209);let it={useVisualState:e4({scrapeMotionValuesFromProps:e2.x,createRenderState:e6,onMount:(t,e,{renderState:i,latestValues:s})=>{D.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),D.Gt.render(()=>{(0,e9.B)(i,s,(0,e3.n)(e.tagName),t.transformTemplate),(0,e1.d)(e,i)})}})},ie={useVisualState:e4({scrapeMotionValuesFromProps:i(59228).x,createRenderState:e5})};var ii=i(45649),is=i(84179);function ir(t,e,i){for(let s in e)(0,t8.S)(e[s])||(0,ii.z)(s,i)||(t[s]=e[s])}let io=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 ia(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||io.has(t)}let il=t=>!ia(t);try{!function(t){t&&(il=e=>e.startsWith("on")?!ia(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var iu=i(60771),ih=i(88651);let id=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((s={animation:{Feature:y},exit:{Feature:w},inView:{Feature:eN},tap:{Feature:eB},focus:{Feature:eL},hover:{Feature:ej},pan:{Feature:tu},drag:{Feature:ta,ProjectionNode:eC,MeasureLayout:tS},layout:{ProjectionNode:eC,MeasureLayout:tS}},n=(t,e)=>e0(t)?new ih.l(e):new iu.M(e,{allowProjection:t!==td.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:s,useVisualState:n,Component:r}=t;e&&function(t){for(let e in t)e_.B[e]={...e_.B[e],...t[e]}}(e);let o=(0,td.forwardRef)(function(t,e){var o,a,u;let h,d={...(0,td.useContext)(eG.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,td.useContext)(tp.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if((0,ez.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,l.w)(e)?e:void 0,animate:(0,l.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,td.useContext)(eK));return(0,td.useMemo)(()=>({initial:e,animate:i}),[eY(e),eY(i)])}(t),m=n(t,c);if(!c&&eQ.B){a=0,u=0,(0,td.useContext)(eX).strict;let t=function(t){let{drag:e,layout:i}=e_.B;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(d);h=t.MeasureLayout,p.visualElement=function(t,e,i,s,n){var r,o;let{visualElement:a}=(0,td.useContext)(eK),l=(0,td.useContext)(eX),u=(0,td.useContext)(tc.t),h=(0,td.useContext)(eG.Q).reducedMotion,d=(0,td.useRef)(null);s=s||l.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,td.useContext)(tm);c&&!c.projection&&n&&("html"===c.type||"svg"===c.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&B(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(d.current,i,n,p);let m=(0,td.useRef)(!1);(0,td.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[eH.n],v=(0,td.useRef)(!!f&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,eq.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tw.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,td.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),c}(r,m,d,i,t.ProjectionNode)}return(0,th.jsxs)(eK.Provider,{value:p,children:[h&&p.visualElement?(0,th.jsx)(h,{visualElement:p.visualElement,...d}):null,s(r,t,(o=p.visualElement,(0,td.useCallback)(t=>{t&&m.mount&&m.mount(t),o&&(t?o.mount(t):o.unmount()),e&&("function"==typeof e?e(t):B(e)&&(e.current=t))},[o])),m,c,p.visualElement)]})});return o[eZ]=r,o}({...e0(t)?it:ie,preloadedFeatures:s,useRender:function(t=!1){return(e,i,s,{latestValues:n},r)=>{let o=(e0(e)?function(t,e,i,s){let n=(0,td.useMemo)(()=>{let i=e6();return(0,e9.B)(i,e,(0,e3.n)(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ir(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return ir(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,td.useMemo)(()=>{let i=e5();return(0,is.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,n,r,e),a=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(il(n)||!0===i&&ia(n)||!e&&!ia(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(i,"string"==typeof e,t),l=e!==td.Fragment?{...a,...o,ref:s}:{},{children:u}=i,h=(0,td.useMemo)(()=>(0,t8.S)(u)?u.get():u,[u]);return(0,td.createElement)(e,{...l,children:h})}}(e),createVisualElement:n,Component:t})}))},12578:(t,e,i)=>{function s({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function n({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function r(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}i.d(e,{FY:()=>s,bS:()=>r,pA:()=>n})},13338:(t,e,i)=>{i.d(e,{B:()=>s});let s="undefined"!=typeof window},13677:(t,e,i)=>{i.d(e,{V:()=>a});var s=i(39896),n=i(33489),r=i(14480),o=i(24587);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+n.KN.transform((0,r.a)(e))+", "+n.KN.transform((0,r.a)(i))+", "+(0,r.a)(s.X4.transform(o))+")"}},14449:(t,e,i)=>{i.d(e,{K:()=>c});var s=i(77121),n=i(4604),r=i(27847),o=i(53451),a=i(66868),l=i(77688),u=i(80237),h=i(5273);let d={linear:s.l,easeIn:o.a6,easeInOut:o.am,easeOut:o.vT,circIn:a.po,circInOut:a.tn,circOut:a.yT,backIn:l.dg,backInOut:l.ZZ,backOut:l.Sz,anticipate:u.b},c=t=>{if((0,h.D)(t)){(0,n.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,o]=t;return(0,r.A)(e,i,s,o)}return"string"==typeof t?((0,n.V)(void 0!==d[t],`Invalid easing type '${t}'`),d[t]):t}},14480:(t,e,i)=>{i.d(e,{a:()=>s});let s=t=>Math.round(1e5*t)/1e5},16305:(t,e,i)=>{i.d(e,{B:()=>E});var s=i(13338);let n={current:null},r={current:!1};var o=i(9524),a=i(99661),l=i(52668),u=i(48568),h=i(64159),d=i(59693),c=i(63356),p=i(85117),m=i(64857),f=i(35116),v=i(91062),g=i(43407),y=i(80588),x=i(16761),w=i(30433);let P=[...x.T,g.y,y.f];var T=i(73542),S=i(69867),b=i(34266),A=i(50892);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=b.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),r.current||function(){if(r.current=!0,s.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.current=t.matches;t.addListener(e),e()}else n.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in 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),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=u.f.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&A.Gt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in c.B){let e=c.B[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,S.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){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,a.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){if("string"==typeof s&&((0,f.i)(s)||(0,v.$)(s)))s=parseFloat(s);else{let i;i=s,!P.find((0,w.w)(i))&&y.f.test(e)&&(s=(0,T.J)(t,e))}this.setBaseTarget(t,(0,l.S)(s)?s.get():s)}return(0,l.S)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let n=(0,d.a)(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);n&&(i=n[t])}if(s&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,l.S)(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new o.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},16761:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var s=i(39896),n=i(33489),r=i(30433);let o=[s.ai,n.px,n.KN,n.uj,n.vw,n.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,r.w)(t))},17595:(t,e,i)=>{i.d(e,{L:()=>s});let s=(0,i(77169).createContext)({})},18624:(t,e,i)=>{i.d(e,{E:()=>n});var s=i(77169);let n=i(13338).B?s.useLayoutEffect:s.useEffect},18840:(t,e,i)=>{i.d(e,{$:()=>h});var s=i(48568),n=i(1755),r=i(30192),o=i(39652),a=i(52128),l=i(46420),u=i(50892);function h(t,e,{delay:i=0,transitionOverride:d,type:c}={}){var p;let{transition:m=t.getDefaultTransition(),transitionEnd:f,...v}=e;d&&(m=d);let g=[],y=c&&t.animationState&&t.animationState.getState()[c];for(let e in v){let r=t.getValue(e,null!=(p=t.latestValues[e])?p:null),h=v[e];if(void 0===h||y&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(y,e))continue;let d={delay:i,...(0,o.r)(m||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,a.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,u.Gt);null!==t&&(d.startTime=t,c=!0)}}(0,l.g)(t,e),r.start((0,n.f)(e,r,h,t.shouldReduceMotion&&s.f.has(e)?{type:!1}:d,t,c));let f=r.animation;f&&g.push(f)}return f&&Promise.all(g).then(()=>{u.Gt.update(()=>{f&&(0,r.U)(t,f)})}),g}},19137:(t,e,i)=>{i.d(e,{K:()=>n});var s=i(93748);let n=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e{i.d(e,{p:()=>s});let s=t=>Array.isArray(t)},20411:(t,e,i)=>{i.d(e,{p:()=>s});function s(t){let e;return()=>(void 0===e&&(e=t()),e)}},20839:(t,e,i)=>{i.d(e,{Y:()=>s,t:()=>n});let s=2e4;function n(t){let e=0,i=t.next(e);for(;!i.done&&e=s?1/0:e}},21177:(t,e,i)=>{i.d(e,{V:()=>s});let s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},22677:(t,e,i)=>{i.d(e,{X:()=>n,f:()=>s});let s=t=>1e3*t,n=t=>t/1e3},24587:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>o});var s=i(31941);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&n.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,o,a,l]=n.match(s.S);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},26621:(t,e,i)=>{i.d(e,{h:()=>s});let s=t=>Array.isArray(t)&&"number"!=typeof t[0]},26738:(t,e,i)=>{i.d(e,{PT:()=>a,Mc:()=>u,c$:()=>f,KJ:()=>n,Wp:()=>v});let s={x:!1,y:!1};function n(t,e,i){var s;if(t instanceof Element)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=null!=(s=null==i?void 0:i[t])?s:n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function r(t,e){let i=n(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function o(t){return e=>{"touch"===e.pointerType||s.x||s.y||t(e)}}function a(t,e,i={}){let[s,n,l]=r(t,i),u=o(t=>{let{target:i}=t,s=e(t);if("function"!=typeof s||!i)return;let r=o(t=>{s(t),i.removeEventListener("pointerleave",r)});i.addEventListener("pointerleave",r,n)});return s.forEach(t=>{t.addEventListener("pointerenter",u,n)}),l}let l=(t,e)=>!!e&&(t===e||l(t,e.parentElement)),u=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,h=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),d=new WeakSet;function c(t){return e=>{"Enter"===e.key&&t(e)}}function p(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function m(t){return u(t)&&!(s.x||s.y)}function f(t,e,i={}){let[s,n,o]=r(t,i),a=t=>{let s=t.currentTarget;if(!m(t)||d.has(s))return;d.add(s);let r=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",u),m(t)&&d.has(s)&&(d.delete(s),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||l(s,t.target))},u=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",u,n)};return s.forEach(t=>{h.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=c(()=>{if(d.has(i))return;p(i,"down");let t=c(()=>{p(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>p(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n),n)}),o}function v(t){if("x"===t||"y"===t)if(s[t])return null;else return s[t]=!0,()=>{s[t]=!1};return s.x||s.y?null:(s.x=s.y=!0,()=>{s.x=s.y=!1})}i(77121)},27847:(t,e,i)=>{i.d(e,{A:()=>r});var s=i(77121);let n=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function r(t,e,i,r){return t===e&&i===r?s.l:s=>0===s||1===s?s:n(function(t,e,i,s,r){let o,a,l=0;do(o=n(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a}(s,0,1,t,i),e,r)}},28727:(t,e,i)=>{i.d(e,{k:()=>s});let s=(t,e,i)=>t+(e-t)*i},29904:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>i>e?e:i{i.d(e,{U:()=>o});var s=i(87149),n=i(99661),r=i(85393);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,r.K)(t,e)||{};for(let e in a={...a,...i}){let i=(0,s.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},30433:(t,e,i)=>{i.d(e,{w:()=>s});let s=t=>e=>e.test(t)},31941:(t,e,i)=>{i.d(e,{S:()=>s});let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},32863:(t,e,i)=>{i.d(e,{P:()=>n});let s=(0,i(20411).p)(()=>void 0!==window.ScrollTimeline);class n{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;is()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}},33489:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>u,px:()=>o,uj:()=>n,vh:()=>a,vw:()=>l});let s=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=s("deg"),r=s("%"),o=s("px"),a=s("vh"),l=s("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},33855:(t,e,i)=>{i.d(e,{x:()=>s});function s(t){return t instanceof SVGElement&&"svg"!==t.tagName}},34266:(t,e,i)=>{let s;i.d(e,{k:()=>a});var n=i(89494),r=i(50892);function o(){s=void 0}let a={now:()=>(void 0===s&&a.set(r.uv.isProcessing||n.W.useManualTiming?r.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(o)}}},34360:(t,e,i)=>{i.d(e,{o:()=>H,L:()=>z});var s=i(64857),n=i(6566),r=i(1478);function o({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:h,restDelta:d=.5,restSpeed:c}){let p,m,f=t[0],v={done:!1,value:f},g=i*e,y=f+g,x=void 0===l?y:l(y);x!==y&&(g=x-f);let w=t=>-g*Math.exp(-t/s),P=t=>x+w(t),T=t=>{let e=w(t),i=P(t);v.done=Math.abs(e)<=d,v.value=v.done?x:i},S=t=>{let e;if(e=v.value,void 0!==u&&eh){var i;p=t,m=(0,n.o)({keyframes:[v.value,(i=v.value,void 0===u?h:void 0===h||Math.abs(u-i){let e=!1;return(m||void 0!==p||(e=!0,T(t),S(t)),void 0!==p&&t>=p)?m.next(t-p):(e||T(t),v)}}}var a=i(53451),l=i(26621),u=i(14449),h=i(29904),d=i(77497),c=i(93748),p=i(77121),m=i(4604),f=i(28727);function v(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var g=i(76132),y=i(94425),x=i(13677);function w(t,e){return i=>i>0?e:t}let P=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},T=[g.u,y.B,x.V];function S(t){let e=T.find(e=>e.test(t));if((0,m.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===x.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=v(a,s,t+1/3),r=v(a,s,t),o=v(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let b=(t,e)=>{let i=S(t),s=S(e);if(!i||!s)return w(t,e);let n={...i};return t=>(n.red=P(i.red,s.red,t),n.green=P(i.green,s.green,t),n.blue=P(i.blue,s.blue,t),n.alpha=(0,f.k)(i.alpha,s.alpha,t),y.B.transform(n))};var A=i(43407),V=i(80588),E=i(47722);let M=new Set(["none","hidden"]);function k(t,e){return i=>(0,f.k)(t,e,i)}function D(t){return"number"==typeof t?k:"string"==typeof t?(0,E.p)(t)?w:A.y.test(t)?b:j:Array.isArray(t)?C:"object"==typeof t?A.y.test(t)?b:R:w}function C(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>D(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in s)i[e]=s[e](t);return i}}let j=(t,e)=>{let i=V.f.createTransformer(e),s=(0,V.V)(t),n=(0,V.V)(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?M.has(t)&&!n.values.length||M.has(e)&&!s.values.length?function(t,e){return M.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,d.F)(C(function(t,e){var i;let s=[],n={color:0,var:0,number:0};for(let r=0;re[0];if(2===r&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],n=i||L,r=t.length-1;for(let i=0;i{let i=0;if(a>1)for(;il((0,h.q)(t[0],t[r-1],e)):l}((n=i&&i.length===e.length?i:(0,F.Z)(e),n.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||a.am).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=f(e),o.done=e>=t,o)}}var O=i(66019),U=i(20839),I=i(22677),$=i(34266),W=i(50892);let N=t=>{let e=({timestamp:e})=>t(e);return{start:()=>W.Gt.update(e,!0),stop:()=>(0,W.WG)(e),now:()=>W.uv.isProcessing?W.uv.timestamp:$.k.now()}};var G=i(67342),K=i(38995);let q={decay:o,inertia:o,tween:B,keyframes:B,spring:n.o},X=t=>t/100;class H extends O.i{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,o=(null==n?void 0:n.KeyframeResolver)||s.h,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new o(r,a,e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=(0,K.W)(s)?s:q[s]||B;l!==B&&"number"!=typeof t[0]&&(e=(0,d.F)(X,L(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,U.t)(u));let{calculatedDuration:h}=u,c=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:n,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=i;if(null===this.startTime)return n.next(0);let{delay:c,repeat:p,repeatType:m,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,w=n;if(p){let t=Math.min(this.currentTime,u)/d,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===m?(i=1-i,f&&(i-=f/d)):"mirror"===m&&(w=r)),x=(0,h.q)(0,1,i)*d}let P=y?{done:!1,value:a[0]}:w.next(x);o&&(P.value=o(P.value));let{done:T}=P;y||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&void 0!==s&&(P.value=(0,G.X)(a,this.options,s)),v&&v(P.value),S&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,I.X)(t.calculatedDuration):0}get time(){return(0,I.X)(this.currentTime)}set time(t){t=(0,I.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){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,I.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=N,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function z(t){return new H(t)}},35116:(t,e,i)=>{i.d(e,{i:()=>s});let s=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},38126:(t,e,i)=>{i.d(e,{f:()=>r});var s=i(28727),n=i(93748);function r(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let o=(0,n.q)(0,e,r);t.push((0,s.k)(i,1,o))}}},38627:(t,e,i)=>{i.d(e,{$:()=>n,H:()=>s});let s={};function n(t){Object.assign(s,t)}},38995:(t,e,i)=>{i.d(e,{W:()=>s});function s(t){return"function"==typeof t}},39652:(t,e,i)=>{i.d(e,{r:()=>s});function s(t,e){return t?t[e]||t.default||t:void 0}},39896:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>n,hs:()=>o});var s=i(29904);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...n,transform:t=>(0,s.q)(0,1,t)},o={...n,default:1}},40242:(t,e,i)=>{i.d(e,{p:()=>l});var s=i(80588),n=i(31941);let r=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(n.S)||[];if(!s)return t;let o=i.replace(s,""),a=+!!r.has(e);return s!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...s.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},43407:(t,e,i)=>{i.d(e,{y:()=>o});var s=i(76132),n=i(13677),r=i(94425);let o={test:t=>r.B.test(t)||s.u.test(t)||n.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):n.V.test(t)?n.V.parse(t):s.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):n.V.transform(t)}},44778:(t,e,i)=>{i.d(e,{N:()=>s});function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},45649:(t,e,i)=>{i.d(e,{z:()=>r});var s=i(38627),n=i(48568);function r(t,{layout:e,layoutId:i}){return n.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!s.H[t]||"opacity"===t)}},46420:(t,e,i)=>{i.d(e,{g:()=>n});var s=i(52668);function n(t,e){let i=t.getValue("willChange");if((0,s.S)(i)&&i.add)return i.add(e)}},47722:(t,e,i)=>{i.d(e,{j:()=>n,p:()=>o});let s=t=>e=>"string"==typeof e&&e.startsWith(t),n=s("--"),r=s("var(--"),o=t=>!!r(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},47966:(t,e,i)=>{i.d(e,{z:()=>o});var s=i(1755),n=i(99661),r=i(52668);function o(t,e,i){let o=(0,r.S)(t)?t:(0,n.OQ)(t);return o.start((0,s.f)("",o,e,i)),o.animation}},48568:(t,e,i)=>{i.d(e,{U:()=>s,f:()=>n});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(s)},50892:(t,e,i)=>{i.d(e,{Gt:()=>n,PP:()=>a,WG:()=>r,uv:()=>o});var s=i(77121);let{schedule:n,cancel:r,state:o,steps:a}=(0,i(82870).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},52128:(t,e,i)=>{i.d(e,{P:()=>n});var s=i(75078);function n(t){return t.props[s.n]}},52668:(t,e,i)=>{i.d(e,{S:()=>s});let s=t=>!!(t&&t.getVelocity)},53451:(t,e,i)=>{i.d(e,{a6:()=>n,am:()=>o,vT:()=>r});var s=i(27847);let n=(0,s.A)(.42,0,1,1),r=(0,s.A)(0,0,.58,1),o=(0,s.A)(.42,0,.58,1)},55117:(t,e,i)=>{i.d(e,{_:()=>a});var s=i(85393),n=i(18840);function r(t,e,i={}){var a;let l=(0,s.K)(t,e,"exit"===i.type?null==(a=t.presenceContext)?void 0:a.custom:void 0),{transition:u=t.getDefaultTransition()||{}}=l||{};i.transitionOverride&&(u=i.transitionOverride);let h=l?()=>Promise.all((0,n.$)(t,l,i)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:l}=u;return function(t,e,i=0,s=0,n=1,a){let l=[],u=(t.variantChildren.size-1)*s,h=1===n?(t=0)=>t*s:(t=0)=>u-t*s;return Array.from(t.variantChildren).sort(o).forEach((t,s)=>{t.notify("AnimationStart",e),l.push(r(t,e,{...a,delay:i+h(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,n+s,a,l,i)}:()=>Promise.resolve(),{when:c}=u;if(!c)return Promise.all([h(),d(i.delay)]);{let[t,e]="beforeChildren"===c?[h,d]:[d,h];return t().then(()=>e())}}function o(t,e){return t.sortNodePosition(e)}function a(t,e,i={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e))o=Promise.all(e.map(e=>r(t,e,i)));else if("string"==typeof e)o=r(t,e,i);else{let r="function"==typeof e?(0,s.K)(t,e,i.custom):e;o=Promise.all((0,n.$)(t,r,i))}return o.then(()=>{t.notify("AnimationComplete",e)})}},56029:(t,e,i)=>{i.d(e,{x:()=>o});var s=i(52668),n=i(59228),r=i(48568);function o(t,e,i){let o=(0,n.x)(t,e,i);for(let i in t)((0,s.S)(t[i])||(0,s.S)(e[i]))&&(o[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},59228:(t,e,i)=>{i.d(e,{x:()=>r});var s=i(45649),n=i(52668);function r(t,e,i){var r;let{style:o}=t,a={};for(let l in o)((0,n.S)(o[l])||e.style&&(0,n.S)(e.style[l])||(0,s.z)(l,t)||(null==(r=null==i?void 0:i.getValue(l))?void 0:r.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},59693:(t,e,i)=>{function s(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function n(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}i.d(e,{a:()=>n})},60752:(t,e,i)=>{i.d(e,{G:()=>s});let s=t=>e=>1-t(1-e)},60771:(t,e,i)=>{i.d(e,{M:()=>d});var s=i(84179),n=i(47722),r=i(48568),o=i(59228),a=i(78698),l=i(7715),u=i(73587),h=i(71027);class d extends h.b{constructor(){super(...arguments),this.type="html",this.renderInstance=a.e}readValueFromInstance(t,e){if(r.f.has(e)){let t=(0,l.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,n.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.m)(t,e)}build(t,e,i){(0,s.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.x)(t,e,i)}}},62129:(t,e,i)=>{i.d(e,{W:()=>l});var s=i(39896),n=i(33489);let r={borderWidth:n.px,borderTopWidth:n.px,borderRightWidth:n.px,borderBottomWidth:n.px,borderLeftWidth:n.px,borderRadius:n.px,radius:n.px,borderTopLeftRadius:n.px,borderTopRightRadius:n.px,borderBottomRightRadius:n.px,borderBottomLeftRadius:n.px,width:n.px,maxWidth:n.px,height:n.px,maxHeight:n.px,top:n.px,right:n.px,bottom:n.px,left:n.px,padding:n.px,paddingTop:n.px,paddingRight:n.px,paddingBottom:n.px,paddingLeft:n.px,margin:n.px,marginTop:n.px,marginRight:n.px,marginBottom:n.px,marginLeft:n.px,backgroundPositionX:n.px,backgroundPositionY:n.px},o={rotate:n.uj,rotateX:n.uj,rotateY:n.uj,rotateZ:n.uj,scale:s.hs,scaleX:s.hs,scaleY:s.hs,scaleZ:s.hs,skew:n.uj,skewX:n.uj,skewY:n.uj,distance:n.px,translateX:n.px,translateY:n.px,translateZ:n.px,x:n.px,y:n.px,z:n.px,perspective:n.px,transformPerspective:n.px,opacity:s.X4,originX:n.gQ,originY:n.gQ,originZ:n.px},a={...s.ai,transform:Math.round},l={...r,...o,zIndex:a,size:n.px,fillOpacity:s.X4,strokeOpacity:s.X4,numOctaves:a}},62860:(t,e,i)=>{i.d(e,{N:()=>g});var s=i(5717),n=i(77169),r=i(88983),o=i(4095),a=i(71686);class l extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:e,isPresent:i}=t,r=(0,n.useId)(),o=(0,n.useRef)(null),u=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:h}=(0,n.useContext)(a.Q);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:s,left:n}=u.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=r;let a=document.createElement("style");return h&&(a.nonce=h),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[i]),(0,s.jsx)(l,{isPresent:i,childRef:o,sizeRef:u,children:n.cloneElement(e,{ref:o})})}let h=t=>{let{children:e,initial:i,isPresent:a,onExitComplete:l,custom:h,presenceAffectsLayout:c,mode:p}=t,m=(0,o.M)(d),f=(0,n.useId)(),v=(0,n.useCallback)(t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),g=(0,n.useMemo)(()=>({id:f,initial:i,isPresent:a,custom:h,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),v]:[a,v]);return(0,n.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[a]),n.useEffect(()=>{a||m.size||!l||l()},[a]),"popLayout"===p&&(e=(0,s.jsx)(u,{isPresent:a,children:e})),(0,s.jsx)(r.t.Provider,{value:g,children:e})};function d(){return new Map}var c=i(17595),p=i(4604);let m=t=>t.key||"";function f(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}var v=i(18624);let g=t=>{let{children:e,exitBeforeEnter:i,custom:r,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=t;(0,p.V)(!i,"Replace exitBeforeEnter with mode='wait'");let g=(0,n.useMemo)(()=>f(e),[e]),y=g.map(m),x=(0,n.useRef)(!0),w=(0,n.useRef)(g),P=(0,o.M)(()=>new Map),[T,S]=(0,n.useState)(g),[b,A]=(0,n.useState)(g);(0,v.E)(()=>{x.current=!1,w.current=g;for(let t=0;t{let e=m(t),i=g===b||y.includes(e);return(0,s.jsx)(h,{isPresent:i,initial:(!x.current||!!a)&&void 0,custom:i?void 0:r,presenceAffectsLayout:u,mode:d,onExitComplete:i?void 0:()=>{if(!P.has(e))return;P.set(e,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(null==E||E(),A(w.current),l&&l())},children:t},e)})})}},63356:(t,e,i)=>{i.d(e,{B:()=>n});let s={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"]},n={};for(let t in s)n[t]={isEnabled:e=>s[t].some(t=>!!e[t])}},64159:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>o});var s=i(44778),n=i(65083),r=i(71266);function o(t){return(0,s.N)(t.animate)||r._.some(e=>(0,n.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},64857:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var s=i(88894),n=i(50892);let r=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,s.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,r.forEach(t=>t.complete()),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{constructor(t,e,i,s,n,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(r.add(this),o||(o=!0,n.Gt.read(u),n.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n{i.d(e,{e:()=>s});let s=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"])},65083:(t,e,i)=>{i.d(e,{w:()=>s});function s(t){return"string"==typeof t||Array.isArray(t)}},66019:(t,e,i)=>{i.d(e,{i:()=>d});var s=i(34266),n=i(64857),r=i(7130),o=i(4604),a=i(38995),l=i(80588);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.f.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(67342);class d{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=s.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,n.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=s.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:l,delay:d,onComplete:c,onUpdate:p,isGenerator:m}=this.options;if(!m&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],l=u(n,e),h=u(r,e);return(0,o.$)(l===h,`You are trying to animate ${e} from "${n}" to "${r}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${r} via the \`style\` property.`),!!l&&!!h&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}},66868:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>a,yT:()=>o});var s=i(21177),n=i(60752);let r=t=>1-Math.sin(Math.acos(t)),o=(0,n.G)(r),a=(0,s.V)(r)},67342:(t,e,i)=>{i.d(e,{X:()=>n});let s=t=>null!==t;function n(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(s),o=e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}},68290:(t,e,i)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>n,Kq:()=>s})},69867:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>n});let s=()=>({translate:0,scale:1,origin:0,originPoint:0}),n=()=>({x:s(),y:s()}),r=()=>({min:0,max:0}),o=()=>({x:r(),y:r()})},71027:(t,e,i)=>{i.d(e,{b:()=>o});var s=i(16305),n=i(4440),r=i(52668);class o extends s.B{constructor(){super(...arguments),this.KeyframeResolver=n.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,r.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},71266:(t,e,i)=>{i.d(e,{U:()=>s,_:()=>n});let s=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],n=["initial",...s]},71686:(t,e,i)=>{i.d(e,{Q:()=>s});let s=(0,i(77169).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},73522:(t,e,i)=>{i.d(e,{B:()=>l});var s=i(84179),n=i(33489);function r(t,e,i){return"string"==typeof t?t:n.px.transform(e+i*t)}let o={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:d,pathSpacing:c=1,pathOffset:p=0,...m},f,v){if((0,s.O)(t,m,v),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==h||y.transform)&&(y.transformOrigin=function(t,e,i){let s=r(e,t.x,t.width),n=r(i,t.y,t.height);return`${s} ${n}`}(x,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==d&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let l=r?o:a;t[l.offset]=n.px.transform(-s);let u=n.px.transform(e),h=n.px.transform(i);t[l.array]=`${u} ${h}`}(g,d,c,p,!1)}},73542:(t,e,i)=>{i.d(e,{J:()=>o});var s=i(80588),n=i(40242),r=i(7715);function o(t,e){let i=(0,r.D)(t);return i!==n.p&&(i=s.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},73587:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>r});var s=i(12578),n=i(11821);function r(t,e){return(0,s.FY)((0,s.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let s=r(t,i),{scroll:o}=e;return o&&((0,n.Ql)(s.x,o.offset.x),(0,n.Ql)(s.y,o.offset.y)),s}},74440:(t,e,i)=>{i.d(e,{I:()=>s});let s=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},75078:(t,e,i)=>{i.d(e,{n:()=>s});let s="data-"+(0,i(74440).I)("framerAppearId")},76132:(t,e,i)=>{i.d(e,{u:()=>n});var s=i(94425);let n={test:(0,i(24587).$)("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:s.B.transform}},77121:(t,e,i)=>{i.d(e,{l:()=>s});let s=t=>t},77497:(t,e,i)=>{i.d(e,{F:()=>n});let s=(t,e)=>i=>e(t(i)),n=(...t)=>t.reduce(s)},77688:(t,e,i)=>{i.d(e,{Sz:()=>o,ZZ:()=>l,dg:()=>a});var s=i(27847),n=i(21177),r=i(60752);let o=(0,s.A)(.33,1.53,.69,.99),a=(0,r.G)(o),l=(0,n.V)(a)},78698:(t,e,i)=>{i.d(e,{e:()=>s});function s(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}},79899:(t,e,i)=>{i.d(e,{Z:()=>n});var s=i(38126);function n(t){let e=[0];return(0,s.f)(e,t.length-1),e}},80237:(t,e,i)=>{i.d(e,{b:()=>n});var s=i(77688);let n=t=>(t*=2)<1?.5*(0,s.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},80588:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var s=i(43407);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(31941),o=i(14480);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],o=0,h=e.replace(u,t=>(s.y.test(t)?(n.color.push(o),r.push(l),i.push(s.y.parse(t))):t.startsWith("var(")?(n.var.push(o),r.push("var"),i.push(t)):(n.number.push(o),r.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:n,types:r}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),n=e.length;return t=>{let r="";for(let u=0;u"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(r.S))?void 0:e.length)||0)+((null==(i=t.match(n))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},82870:(t,e,i)=>{i.d(e,{I:()=>r});var s=i(89494);let n=["read","resolveKeyframes","update","preRender","render","postRender"];function r(t,e){let i=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=n.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,n=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,n=!1,o=!1)=>{let a=o&&s?e:i;return n&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,s){n=!0;return}s=!0,[e,i]=[i,e],e.forEach(a),e.clear(),s=!1,n&&(n=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let n=s.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=r?1e3/60:Math.max(Math.min(n-o.timestamp,40),1),o.timestamp=n,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(r=!1,t(f))};return{schedule:n.reduce((e,s)=>{let n=l[s];return e[s]=(e,s=!1,a=!1)=>(!i&&(i=!0,r=!0,o.isProcessing||t(f)),n.schedule(e,s,a)),e},{}),cancel:t=>{for(let e=0;e{i.d(e,{d:()=>o});var s=i(74440),n=i(78698),r=i(65007);function o(t,e,i,o){for(let i in(0,n.e)(t,e,void 0,o),e.attrs)t.setAttribute(r.e.has(i)?i:(0,s.I)(i),e.attrs[i])}},84179:(t,e,i)=>{i.d(e,{O:()=>u});var s=i(48568);let n=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var r=i(62129);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=s.U.length;var l=i(47722);function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(s.f.has(t)){c=!0;continue}if((0,l.j)(t)){h[t]=i;continue}{let e=n(i,r.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let l="",u=!0;for(let h=0;h{i.d(e,{C:()=>s});let s=new WeakMap},85393:(t,e,i)=>{i.d(e,{K:()=>n});var s=i(59693);function n(t,e,i){let n=t.getProps();return(0,s.a)(n,e,void 0!==i?i:n.custom,t)}},87149:(t,e,i)=>{i.d(e,{B:()=>n,K:()=>r});var s=i(19944);let n=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),r=t=>(0,s.p)(t)?t[t.length-1]||0:t},88651:(t,e,i)=>{i.d(e,{l:()=>p});var s=i(56029),n=i(71027),r=i(73522),o=i(74440),a=i(65007),l=i(48568),u=i(83079),h=i(7715),d=i(69867),c=i(1209);class p extends n.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=d.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,h.D)(e);return t&&t.default||0}return e=a.e.has(e)?e:(0,o.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,s.x)(t,e,i)}build(t,e,i){(0,r.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){(0,u.d)(t,e,i,s)}mount(t){this.isSVGTag=(0,c.n)(t.tagName),super.mount(t)}}},88894:(t,e,i)=>{i.d(e,{$y:()=>o,E4:()=>a,Hr:()=>p,W9:()=>c});var s=i(48568),n=i(39896),r=i(33489);let o=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===n.ai||t===r.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let n=s.match(/^matrix3d\((.+)\)$/u);if(n)return l(n[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),d=s.U.filter(t=>!h.has(t));function c(t){let e=[];return d.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},88983:(t,e,i)=>{i.d(e,{t:()=>s});let s=(0,i(77169).createContext)(null)},89494:(t,e,i)=>{i.d(e,{W:()=>s});let s={skipAnimations:!1,useManualTiming:!1}},91062:(t,e,i)=>{i.d(e,{$:()=>s});let s=t=>/^0[^.\s]+$/u.test(t)},91753:(t,e,i)=>{i.d(e,{f:()=>s});function s(t,e){return e?1e3/e*t:0}},93748:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s}},94425:(t,e,i)=>{i.d(e,{B:()=>l});var s=i(29904),n=i(39896),r=i(14480),o=i(24587);let a={...n.ai,transform:t=>Math.round((0,s.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,r.a)(n.X4.transform(s))+")"}},99661:(t,e,i)=>{i.d(e,{OQ:()=>u});var s=i(9524),n=i(91753),r=i(34266),o=i(50892);let a={current:void 0};class l{constructor(t,e={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.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)}}}]);