|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[100],{5293:function(t,e,i){i.d(e,{g7:function(){return o}});var r=i(2265);function n(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}var s=i(7437),o=r.forwardRef((t,e)=>{let{children:i,...n}=t,o=r.Children.toArray(i),l=o.find(u);if(l){let t=l.props.children,i=o.map(e=>e!==l?e:r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null);return(0,s.jsx)(a,{...n,ref:e,children:r.isValidElement(t)?r.cloneElement(t,void 0,i):null})}return(0,s.jsx)(a,{...n,ref:e,children:i})});o.displayName="Slot";var a=r.forwardRef((t,e)=>{let{children:i,...s}=t;if(r.isValidElement(i)){let t,o;let a=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?i.ref:(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?i.props.ref:i.props.ref||i.ref;return r.cloneElement(i,{...function(t,e){let i={...e};for(let r in e){let n=t[r],s=e[r];/^on[A-Z]/.test(r)?n&&s?i[r]=(...t)=>{s(...t),n(...t)}:n&&(i[r]=n):"style"===r?i[r]={...n,...s}:"className"===r&&(i[r]=[n,s].filter(Boolean).join(" "))}return{...t,...i}}(s,i.props),ref:e?function(...t){return e=>{let i=!1,r=t.map(t=>{let r=n(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():n(t[e],null)}}}}(e,a):a})}return r.Children.count(i)>1?r.Children.only(null):null});a.displayName="SlotClone";var l=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});function u(t){return r.isValidElement(t)&&t.type===l}},535:function(t,e,i){i.d(e,{j:function(){return o}});var r=i(1994);let n=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,s=r.W,o=(t,e)=>i=>{var r;if((null==e?void 0:e.variants)==null)return s(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:o,defaultVariants:a}=e,l=Object.keys(o).map(t=>{let e=null==i?void 0:i[t],r=null==a?void 0:a[t];if(null===e)return null;let s=n(e)||n(r);return o[t][s]}),u=i&&Object.entries(i).reduce((t,e)=>{let[i,r]=e;return void 0===r||(t[i]=r),t},{});return s(t,l,null==e?void 0:null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce((t,e)=>{let{class:i,className:r,...n}=e;return Object.entries(n).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...u}[e]):({...a,...u})[e]===i})?[...t,i,r]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},1994:function(t,e,i){i.d(e,{W:function(){return r}});function r(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=function t(e){var i,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r)}return n}(t))&&(r&&(r+=" "),r+=e);return r}},519:function(t,e,i){i.d(e,{Z:function(){return l}});var r=i(2265);let n=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((t,e)=>{let{color:i="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,r.createElement)("svg",{ref:e,...o,width:n,height:n,stroke:i,strokeWidth:l?24*Number(a)/Number(n):a,className:s("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,r.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),l=((t,e)=>{let i=(0,r.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,r.createElement)(a,{ref:o,iconNode:e,className:s("lucide-".concat(n(t)),l),...u})});return i.displayName="".concat(t),i})("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},6846:function(t,e,i){i.d(e,{v:function(){return c}});var r=i(4521),n=i(767),s=i(7919),o=i(8626),a=i(4208),l=i(1174);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.P.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(281);class c{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=r.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,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.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=r.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:l,delay:c,onComplete:d,onUpdate:p,isGenerator:f}=this.options;if(!f&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],l=u(n,e),h=u(s,e);return(0,o.K)(l===h,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!l&&!!h&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,a.x)(i))&&r)}(t,i,n,l)){if(s.c.current||!c){null==p||p((0,h.$)(t,this.options,e)),null==d||d(),this.resolveFinishedPromise();return}this.options.duration=0}let m=this.initPlayback(t,e);!1!==m&&(this._resolved={keyframes:t,finalKeyframe:e,...m},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}},4782:function(t,e,i){i.d(e,{s:function(){return X},y:function(){return G}});var r=i(4205);function n(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var s=i(4208),o=i(767),a=i(1389),l=i(5566),u=i(777),h=i(2410),c=i(8253);function d(t,e,i){let r=Math.max(e-5,0);return(0,c.R)(i-t(r),e-r)}let p={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var f=i(8626);function m(t,e){return t*Math.sqrt(1-e*e)}let v=["duration","bounce"],g=["stiffness","damping","mass"];function y(t,e){return e.some(e=>void 0!==t[e])}function x(t=p.visualDuration,e=p.bounce){let i;let s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:l}=s,u=s.keyframes[0],c=s.keyframes[s.keyframes.length-1],x={done:!1,value:u},{stiffness:b,damping:w,mass:P,duration:T,velocity:S,isResolvedFromDuration:A}=function(t){let e={velocity:p.velocity,stiffness:p.stiffness,damping:p.damping,mass:p.mass,isResolvedFromDuration:!1,...t};if(!y(t,g)&&y(t,v)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*(0,a.u)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:p.mass,stiffness:r,damping:n}}else{let i=function({duration:t=p.duration,bounce:e=p.bounce,velocity:i=p.velocity,mass:n=p.mass}){let s,o;(0,f.K)(t<=(0,r.w)(p.maxDuration),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,a.u)(p.minDamping,p.maxDamping,l),t=(0,a.u)(p.minDuration,p.maxDuration,(0,r.X)(t)),l<1?(s=e=>{let r=e*l,n=r*t;return .001-(r-i)/m(e,l)*Math.exp(-n)},o=e=>{let r=e*l*t,n=Math.pow(l,2)*Math.pow(e,2)*t,o=m(Math.pow(e,2),l);return(r*i+i-n)*Math.exp(-r)*(-s(e)+.001>0?-1:1)/o}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let u=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(s,o,5/t);if(t=(0,r.w)(t),isNaN(u))return{stiffness:p.stiffness,damping:p.damping,duration:t};{let e=Math.pow(u,2)*n;return{stiffness:e,damping:2*l*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:p.mass}).isResolvedFromDuration=!0}}return e}({...s,velocity:-(0,r.X)(s.velocity||0)}),k=S||0,E=w/(2*Math.sqrt(b*P)),V=c-u,C=(0,r.X)(Math.sqrt(b/P)),M=5>Math.abs(V);if(o||(o=M?p.restSpeed.granular:p.restSpeed.default),l||(l=M?p.restDelta.granular:p.restDelta.default),E<1){let t=m(C,E);i=e=>c-Math.exp(-E*C*e)*((k+E*C*V)/t*Math.sin(t*e)+V*Math.cos(t*e))}else if(1===E)i=t=>c-Math.exp(-C*t)*(V+(k+C*V)*t);else{let t=C*Math.sqrt(E*E-1);i=e=>{let i=Math.exp(-E*C*e),r=Math.min(t*e,300);return c-i*((k+E*C*V)*Math.sinh(r)+t*V*Math.cosh(r))/t}}let D={calculatedDuration:A&&T||null,next:t=>{let e=i(t);if(A)x.done=t>=T;else{let n=0;E<1&&(n=0===t?(0,r.w)(k):d(i,t,e));let s=Math.abs(n)<=o,a=Math.abs(c-e)<=l;x.done=s&&a}return x.value=x.done?c:e,x},toString:()=>{let t=Math.min(n(D),2e4),e=(0,h.w)(e=>D.next(t*e).value,t,30);return t+"ms "+e}};return D}function b({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,p;let f=t[0],m={done:!1,value:f},v=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,b=f+y,w=void 0===o?b:o(b);w!==b&&(y=w-f);let P=t=>-y*Math.exp(-t/r),T=t=>w+P(t),S=t=>{let e=P(t),i=T(t);m.done=Math.abs(e)<=u,m.value=m.done?w:i},A=t=>{v(m.value)&&(c=t,p=x({keyframes:[m.value,g(m.value)],velocity:d(T,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==c||(e=!0,S(t),A(t)),void 0!==c&&t>=c)?p.next(t-c):(e||S(t),m)}}}var w=i(5027);let P=(0,w._)(.42,0,1,1),T=(0,w._)(0,0,.58,1),S=(0,w._)(.42,0,.58,1),A=t=>Array.isArray(t)&&"number"!=typeof t[0];var k=i(7268),E=i(6997),V=i(3974),C=i(1356),M=i(8426);let D={linear:k.Z,easeIn:P,easeInOut:S,easeOut:T,circIn:M.Z7,circInOut:M.X7,circOut:M.Bn,backIn:C.G2,backInOut:C.XL,backOut:C.CG,anticipate:V.L},R=t=>{if((0,E.q)(t)){(0,f.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return(0,w._)(e,i,r,n)}return"string"==typeof t?((0,f.k)(void 0!==D[t],`Invalid easing type '${t}'`),D[t]):t};var j=i(3135),L=i(2028),F=i(8082);function O({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){let n=A(r)?r.map(R):R(r),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=(0,L.Y)(0,e,r);t.push((0,F.t)(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),a=(0,j.s)(o,e,{ease:Array.isArray(n)?n:e.map(()=>n||S).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var B=i(6846),W=i(4521),$=i(1198);let N=t=>{let e=({timestamp:e})=>t(e);return{start:()=>$.Wi.update(e,!0),stop:()=>(0,$.Pn)(e),now:()=>$.frameData.isProcessing?$.frameData.timestamp:W.X.now()}};var I=i(281);let z={decay:b,inertia:b,tween:O,keyframes:O,spring:x},U=t=>t/100;class X extends B.v{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||o.e;this.resolver=new s(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:h,velocity:c=0}=this.options,d=(0,s.x)(r)?r:z[r]||O;d!==O&&"number"!=typeof t[0]&&(e=(0,u.z)(U,(0,l.C)(t[0],t[1])),t=[0,100]);let p=d({...this.options,keyframes:t});"mirror"===h&&(i=d({...this.options,keyframes:[...t].reverse(),velocity:-c})),null===p.calculatedDuration&&(p.calculatedDuration=n(p));let{calculatedDuration:f}=p,m=f+a;return{generator:p,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:f,resolvedDuration:m,totalDuration:m*(o+1)-a}}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:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:c}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:p,repeatType:f,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,b=n;if(p){let t=Math.min(this.currentTime,h)/c,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===f?(i=1-i,m&&(i-=m/c)):"mirror"===f&&(b=s)),x=(0,a.u)(0,1,i)*c}let w=y?{done:!1,value:l[0]}:b.next(x);o&&(w.value=o(w.value));let{done:P}=w;y||null===u||(P=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==r&&(w.value=(0,I.$)(l,this.options,r)),v&&v(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.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 r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function G(t){return new X(t)}},281:function(t,e,i){i.d(e,{$:function(){return n}});let r=t=>null!==t;function n(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(r),o=e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}},456:function(t,e,i){i.d(e,{_:function(){return r}});let r=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},3974:function(t,e,i){i.d(e,{L:function(){return n}});var r=i(1356);let n=t=>(t*=2)<1?.5*(0,r.G2)(t):.5*(2-Math.pow(2,-10*(t-1)))},1356:function(t,e,i){i.d(e,{CG:function(){return o},G2:function(){return a},XL:function(){return l}});var r=i(5027),n=i(4532),s=i(7535);let o=(0,r._)(.33,1.53,.69,.99),a=(0,s.M)(o),l=(0,n.o)(a)},8426:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var r=i(4532),n=i(7535);let s=t=>1-Math.sin(Math.acos(t)),o=(0,n.M)(s),a=(0,r.o)(s)},5027:function(t,e,i){i.d(e,{_:function(){return s}});var r=i(7268);let n=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){if(t===e&&i===s)return r.Z;let o=e=>(function(t,e,i,r,s){let o,a;let l=0;do(o=n(a=e+(i-e)/2,r,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:n(o(t),e,s)}},4532:function(t,e,i){i.d(e,{o:function(){return r}});let r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},7535:function(t,e,i){i.d(e,{M:function(){return r}});let r=t=>e=>1-t(1-e)},9590:function(t,e,i){i.d(e,{Z:function(){return s}});var r=i(3798);let n=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!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,r=!1,n=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,n=!1,o=!1)=>{let a=o&&r?e:i;return n&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,r){n=!0;return}r=!0,[e,i]=[i,e],e.forEach(a),e.clear(),r=!1,n&&(n=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:c,preRender:d,render:p,postRender:f}=l,m=()=>{let n=r.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(n-o.timestamp,40),1),o.timestamp=n,o.isProcessing=!0,u.process(o),h.process(o),c.process(o),d.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))},v=()=>{i=!0,s=!0,o.isProcessing||t(m)};return{schedule:n.reduce((t,e)=>{let r=l[e];return t[e]=(t,e=!1,n=!1)=>(i||v(),r.schedule(t,e,n)),t},{}),cancel:t=>{for(let e=0;e<n.length;e++)l[n[e]].cancel(t)},state:o,steps:l}}},1198:function(t,e,i){i.d(e,{Pn:function(){return s},Wi:function(){return n},frameData:function(){return o},yL:function(){return a}});var r=i(7268);let{schedule:n,cancel:s,state:o,steps:a}=(0,i(9590).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},4521:function(t,e,i){let r;i.d(e,{X:function(){return a}});var n=i(3798),s=i(1198);function o(){r=void 0}let a={now:()=>(void 0===r&&a.set(s.frameData.isProcessing||n.c.useManualTiming?s.frameData.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(o)}}},8657:function(t,e,i){function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{E:function(){return rZ}});let n=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function o(t){return"string"==typeof t||Array.isArray(t)}function a(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,r){if("function"==typeof e){let[n,s]=a(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=a(r);e=e(void 0!==i?i:t.custom,n,s)}return e}function u(t,e,i){let r=t.getProps();return l(r,e,void 0!==i?i:r.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...h];function d(t,e){return t?t[e]||t.default||t:void 0}var p,f,m,v=i(2589);let g=new Set(["width","height","top","left","right","bottom",...v._]),y=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),x=t=>n(t)?t[t.length-1]||0:t;var b=i(3120),w=i(5469);function P(t,e){let i=t.getValue("willChange");if((0,w.i)(i)&&i.add)return i.add(e)}let T=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),S="data-"+T("framerAppearId");function A(t){let e;return()=>(void 0===e&&(e=t()),e)}let k=A(()=>void 0!==window.ScrollTimeline);class E{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>k()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class V extends E{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}var C=i(4205),M=i(1198),D=i(3798),R=i(7919),j=i(7268),L=i(4208);function F(t,e){t.timeline=e,t.onfinish=null}var O=i(6997);let B={linearEasing:void 0},W=function(t,e){let i=A(t);return()=>{var t;return null!==(t=B[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var $=i(2410);let N=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,I={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:N([0,.65,.55,1]),circOut:N([.55,0,1,.45]),backIn:N([.31,.01,.66,-.59]),backOut:N([.33,1.53,.69,.99])};var z=i(3974),U=i(1356),X=i(8426);let G=t=>/^0[^.\s]+$/u.test(t);var Y=i(1174),q=i(4445);let K=new Set(["brightness","contrast","saturate","opacity"]);function _(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(q.K)||[];if(!r)return t;let n=i.replace(r,""),s=K.has(e)?1:0;return r!==i&&(s*=100),e+"("+s+n+")"}let Z=/\b([a-z-]*)\(.*?\)/gu,H={...Y.P,getAnimatableNone:t=>{let e=t.match(Z);return e?e.map(_).join(" "):t}};var J=i(1288),Q=i(7964),tt=i(9304);let te={borderWidth:tt.px,borderTopWidth:tt.px,borderRightWidth:tt.px,borderBottomWidth:tt.px,borderLeftWidth:tt.px,borderRadius:tt.px,radius:tt.px,borderTopLeftRadius:tt.px,borderTopRightRadius:tt.px,borderBottomRightRadius:tt.px,borderBottomLeftRadius:tt.px,width:tt.px,maxWidth:tt.px,height:tt.px,maxHeight:tt.px,top:tt.px,right:tt.px,bottom:tt.px,left:tt.px,padding:tt.px,paddingTop:tt.px,paddingRight:tt.px,paddingBottom:tt.px,paddingLeft:tt.px,margin:tt.px,marginTop:tt.px,marginRight:tt.px,marginBottom:tt.px,marginLeft:tt.px,backgroundPositionX:tt.px,backgroundPositionY:tt.px},ti={rotate:tt.RW,rotateX:tt.RW,rotateY:tt.RW,rotateZ:tt.RW,scale:Q.bA,scaleX:Q.bA,scaleY:Q.bA,scaleZ:Q.bA,skew:tt.RW,skewX:tt.RW,skewY:tt.RW,distance:tt.px,translateX:tt.px,translateY:tt.px,translateZ:tt.px,x:tt.px,y:tt.px,z:tt.px,perspective:tt.px,transformPerspective:tt.px,opacity:Q.Fq,originX:tt.$C,originY:tt.$C,originZ:tt.px},tr={...Q.Rx,transform:Math.round},tn={...te,...ti,zIndex:tr,size:tt.px,fillOpacity:Q.Fq,strokeOpacity:Q.Fq,numOctaves:tr},ts={...tn,color:J.$,backgroundColor:J.$,outlineColor:J.$,fill:J.$,stroke:J.$,borderColor:J.$,borderTopColor:J.$,borderRightColor:J.$,borderBottomColor:J.$,borderLeftColor:J.$,filter:H,WebkitFilter:H},to=t=>ts[t];function ta(t,e){let i=to(t);return i!==H&&(i=Y.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tl=new Set(["auto","none","0"]);var tu=i(767),th=i(8626);let tc=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var td=i(3938);let tp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var tf=i(7976);let tm=t=>e=>e.test(t),tv=[Q.Rx,tt.px,tt.aQ,tt.RW,tt.vw,tt.vh,{test:t=>"auto"===t,parse:t=>t}],tg=t=>tv.find(tm(t));class ty extends tu.e{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&(r=r.trim(),(0,td.t)(r))){let n=function t(e,i,r=1){(0,th.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=tp.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return tc(t)?parseFloat(t):t}return(0,td.t)(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!g.has(i)||2!==t.length)return;let[r,n]=t,s=tg(r),o=tg(n);if(s!==o){if((0,tf.mP)(s)&&(0,tf.mP)(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||G(r))&&i.push(e)}i.length&&function(t,e,i){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!tl.has(e)&&(0,Y.V)(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=ta(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tf.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=tf.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}var tx=i(6846),tb=i(4782);let tw=new Set(["opacity","clipPath","filter","transform"]);var tP=i(281);let tT=A(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tS={anticipate:z.L,backInOut:U.XL,circInOut:X.X7};class tA extends tx.v{constructor(t){super(t);let{name:e,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new ty(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i,r;let{duration:n=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&W()&&o in tS&&(o=tS[o]),r=this.options,(0,L.x)(r.type)||"spring"===r.type||!function t(e){return!!("function"==typeof e&&W()||!e||"string"==typeof e&&(e in I||W())||(0,O.q)(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:i,motionValue:r,element:l,...u}=this.options,h=function(t,e){let i=new tb.s({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,s=h.times,o=h.ease,a="keyframes"}let c=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=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&&W()?(0,$.w)(e,i):(0,O.q)(e)?N(e):Array.isArray(e)?e.map(e=>t(e,i)||I.easeOut):I[e]}(a,n);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:n,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(F(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,tP.$)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,C.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,C.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,C.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}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 j.Z;let{animation:i}=e;F(i,t)}else this.pendingTimeline=t;return j.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new tb.s({...u,keyframes:i,duration:r,type:n,ease:s,times:o,isGenerator:!0}),c=(0,C.w)(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),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:r,repeatType:n,damping:s,type:o}=t;return tT()&&i&&tw.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}}let tk={type:"spring",stiffness:500,damping:25,restSpeed:10},tE=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),tV={type:"keyframes",duration:.8},tC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tM=(t,{keyframes:e})=>e.length>2?tV:v.G.has(t)?t.startsWith("scale")?tE(e[1]):tk:tC,tD=(t,e,i,r={},n,s)=>o=>{let a=d(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=(0,C.w)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...tM(t,h)}),h.duration&&(h.duration=(0,C.w)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,C.w)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(R.c.current||D.c.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=(0,tP.$)(h.keyframes,a);if(void 0!==t)return M.Wi.update(()=>{h.onUpdate(t),h.onComplete()}),new V([])}return!s&&tA.supports(h)?new tA(h):new tb.s(h)};function tR(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);let h=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let r=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),n=l[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(c,e))continue;let a={delay:i,...d(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[S];if(i){let t=window.MotionHandoffAnimation(i,e,M.Wi);null!==t&&(a.startTime=t,u=!0)}}P(t,e),r.start(tD(e,r,n,t.shouldReduceMotion&&g.has(e)?{type:!1}:a,t,u));let p=r.animation;p&&h.push(p)}return a&&Promise.all(h).then(()=>{M.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=u(t,e)||{};for(let e in n={...n,...i}){let i=x(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,b.BX)(i))}}(t,a)})}),h}function tj(t,e,i={}){var r;let n=u(t,e,"exit"===i.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(tR(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(tL).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(tj(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function tL(t,e){return t.sortNodePosition(e)}let tF=c.length,tO=[...h].reverse(),tB=h.length;function tW(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t$(){return{animate:tW(!0),whileInView:tW(),whileHover:tW(),whileTap:tW(),whileDrag:tW(),whileFocus:tW(),exit:tW()}}class tN{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tI extends tN{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>tj(t,e,i)));else if("string"==typeof e)r=tj(t,e,i);else{let n="function"==typeof e?u(t,e,i.custom):e;r=Promise.all(tR(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=t$(),a=!0,l=e=>(i,r)=>{var n;let s=u(t,r,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function h(u){let{props:h}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<tF;t++){let r=c[t],n=e.props[r];(o(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},p=[],f=new Set,m={},v=1/0;for(let e=0;e<tB;e++){var g;let c=tO[e],y=i[c],x=void 0!==h[c]?h[c]:d[c],b=o(x),w=c===u?y.isActive:null;!1===w&&(v=e);let P=x===d[c]&&x!==h[c]&&b;if(P&&a&&t.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...m},!y.isActive&&null===w||!x&&!y.prevProp||r(x)||"boolean"==typeof x)continue;let T=(g=y.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!s(x,g)),S=T||c===u&&y.isActive&&!P&&b||e>v&&b,A=!1,k=Array.isArray(x)?x:[x],E=k.reduce(l(c),{});!1===w&&(E={});let{prevResolvedValues:V={}}=y,C={...V,...E},M=e=>{S=!0,f.has(e)&&(A=!0,f.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=E[t],i=V[t];if(!m.hasOwnProperty(t))(n(e)&&n(i)?s(e,i):e===i)?void 0!==e&&f.has(t)?M(t):y.protectedKeys[t]=!0:null!=e?M(t):f.add(t)}y.prevProp=x,y.prevResolvedValues=E,y.isActive&&(m={...m,...E}),a&&t.blockInitialAnimation&&(S=!1);let D=!(P&&T)||A;S&&D&&p.push(...k.map(t=>({animation:t,options:{type:c}})))}if(f.size){let e={};f.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),p.push({animation:e})}let y=!!p.length;return a&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(y=!1),a=!1,y?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,r)}),i[e].isActive=r;let s=h(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=t$(),a=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let tz=0;class tU extends tN{constructor(){super(...arguments),this.id=tz++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let tX={x:!1,y:!1},tG=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tY(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function tq(t){return{point:{x:t.pageX,y:t.pageY}}}let tK=t=>e=>tG(e)&&t(e,tq(e));function t_(t,e,i,r){return tY(t,e,tK(i),r)}let tZ=(t,e)=>Math.abs(t-e);var tH=i(777);class tJ{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=t1(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(tZ(t.x,e.x)**2+tZ(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=M.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tQ(e,this.transformPagePoint),M.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=t1("pointercancel"===t.type?this.lastMoveEventInfo:tQ(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tG(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=tQ(tq(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=M.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,t1(s,this.history)),this.removeListeners=(0,tH.z)(t_(this.contextWindow,"pointermove",this.handlePointerMove),t_(this.contextWindow,"pointerup",this.handlePointerUp),t_(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.Pn)(this.updatePoint)}}function tQ(t,e){return e?{point:e(t.point)}:t}function t0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function t1({point:t},e){return{point:t,delta:t0(t,t2(e)),offset:t0(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=t2(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>(0,C.w)(.1)));)i--;if(!r)return{x:0,y:0};let s=(0,C.X)(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function t2(t){return t[t.length-1]}function t5(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var t3=i(2028),t4=i(8082);function t9(t){return t.max-t.min}function t6(t,e,i,r=.5){t.origin=r,t.originPoint=(0,t4.t)(e.min,e.max,t.origin),t.scale=t9(i)/t9(e),t.translate=(0,t4.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function t8(t,e,i,r){t6(t.x,e.x,i.x,r?r.originX:void 0),t6(t.y,e.y,i.y,r?r.originY:void 0)}function t7(t,e,i){t.min=i.min+e.min,t.max=t.min+t9(e)}function et(t,e,i){t.min=e.min-i.min,t.max=t.min+t9(e)}function ee(t,e,i){et(t.x,e.x,i.x),et(t.y,e.y,i.y)}var ei=i(1389);function er(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 en(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function es(t,e,i){return{min:eo(t,e),max:eo(t,i)}}function eo(t,e){return"number"==typeof t?t:t[e]||0}let ea=()=>({translate:0,scale:1,origin:0,originPoint:0}),el=()=>({x:ea(),y:ea()}),eu=()=>({min:0,max:0}),eh=()=>({x:eu(),y:eu()});function ec(t){return[t("x"),t("y")]}function ed({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function ep(t){return void 0===t||1===t}function ef({scale:t,scaleX:e,scaleY:i}){return!ep(t)||!ep(e)||!ep(i)}function em(t){return ef(t)||ev(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ev(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eg(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function ey(t,e=0,i=1,r,n){t.min=eg(t.min,e,i,r,n),t.max=eg(t.max,e,i,r,n)}function ex(t,{x:e,y:i}){ey(t.x,e.translate,e.scale,e.originPoint),ey(t.y,i.translate,i.scale,i.originPoint)}function eb(t,e){t.min=t.min+e,t.max=t.max+e}function ew(t,e,i,r,n=.5){let s=(0,t4.t)(t.min,t.max,n);ey(t,e,i,s,r)}function eP(t,e){ew(t.x,e.x,e.scaleX,e.scale,e.originX),ew(t.y,e.y,e.scaleY,e.scale,e.originY)}function eT(t,e){return ed(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let eS=({current:t})=>t?t.ownerDocument.defaultView:null,eA=new WeakMap;class ek{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=eh(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new tJ(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tq(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?tX[i]?null:(tX[i]=!0,()=>{tX[i]=!1}):tX.x||tX.y?null:(tX.x=tX.y=!0,()=>{tX.x=tX.y=!1}),!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),ec(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tt.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];if(r){let t=t9(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&M.Wi.postRender(()=>n(t,e)),P(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&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(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ec(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:eS(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&M.Wi.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:r}=this.getProps();if(!i||!eE(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?(0,t4.t)(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?(0,t4.t)(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&t5(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:er(t.x,i,n),y:er(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:es(t,"left","right"),y:es(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ec(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}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!t5(e))return!1;let r=e.current;(0,th.k)(null!==r,"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 s=function(t,e,i){let r=eT(t,i),{scroll:n}=e;return n&&(eb(r.x,n.offset.x),eb(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o={x:en((t=n.layout.layoutBox).x,s.x),y:en(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ed(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ec(o=>{if(!eE(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?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 P(this.visualElement,t),i.start(tD(t,i,0,e,this.visualElement,!1))}stopAnimation(){ec(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ec(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ec(e=>{let{drag:i}=this.getProps();if(!eE(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-(0,t4.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!t5(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ec(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=t9(t),n=t9(e);return n>r?i=(0,t3.Y)(e.min,e.max-r,t.min):r>n&&(i=(0,t3.Y)(t.min,t.max-n,e.min)),(0,ei.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ec(e=>{if(!eE(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set((0,t4.t)(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;eA.set(this.visualElement,this);let t=t_(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();t5(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.Wi.read(e);let n=tY(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ec(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(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function eE(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eV extends tN{constructor(t){super(t),this.removeGroupControls=j.Z,this.removeListeners=j.Z,this.controls=new ek(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let eC=t=>(e,i)=>{t&&M.Wi.postRender(()=>t(e,i))};class eM extends tN{constructor(){super(...arguments),this.removePointerDownListener=j.Z}onPointerDown(t){this.session=new tJ(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eS(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:eC(t),onStart:eC(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&M.Wi.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=t_(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 eD=i(7437),eR=i(2265);let ej=(0,eR.createContext)(null),eL=(0,eR.createContext)({}),eF=(0,eR.createContext)({}),eO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eB(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eW={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tt.px.test(t))return t;t=parseFloat(t)}let i=eB(t,e.target.x),r=eB(t,e.target.y);return`${i}% ${r}%`}},e$={},{schedule:eN,cancel:eI}=(0,i(9590).Z)(queueMicrotask,!1);class ez extends eR.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(e$,eX),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),eO.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||M.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),eN.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eU(t){let[e,i]=function(t=!0){let e=(0,eR.useContext)(ej);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,eR.useId)();(0,eR.useEffect)(()=>{t&&n(s)},[t]);let o=(0,eR.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,eR.useContext)(eL);return(0,eD.jsx)(ez,{...t,layoutGroup:r,switchLayoutGroup:(0,eR.useContext)(eF),isPresent:e,safeToRemove:i})}let eX={borderRadius:{...eW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=Y.P.parse(t);if(r.length>5)return t;let n=Y.P.createTransformer(t),s="number"!=typeof r[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=(0,t4.t)(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}};var eG=i(4521),eY=i(1824);let eq=(t,e)=>t.depth-e.depth;class eK{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eY.y4)(this.children,t),this.isDirty=!0}remove(t){(0,eY.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eq),this.isDirty=!1,this.children.forEach(t)}}var e_=i(786);function eZ(t){let e=(0,w.i)(t)?t.get():t;return y(e)?e.toValue():e}let eH=["TopLeft","TopRight","BottomLeft","BottomRight"],eJ=eH.length,eQ=t=>"string"==typeof t?parseFloat(t):t,e0=t=>"number"==typeof t||tt.px.test(t);function e1(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let e2=e3(0,.5,X.Bn),e5=e3(.5,.95,j.Z);function e3(t,e,i){return r=>r<t?0:r>e?1:i((0,t3.Y)(t,e,r))}function e4(t,e){t.min=e.min,t.max=e.max}function e9(t,e){e4(t.x,e.x),e4(t.y,e.y)}function e6(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function e8(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function e7(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tt.aQ.test(e)&&(e=parseFloat(e),e=(0,t4.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,t4.t)(s.min,s.max,r);t===s&&(a-=e),t.min=e8(t.min,e,i,a,n),t.max=e8(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let it=["x","scaleX","originX"],ie=["y","scaleY","originY"];function ii(t,e,i,r){e7(t.x,e,it,i?i.x:void 0,r?r.x:void 0),e7(t.y,e,ie,i?i.y:void 0,r?r.y:void 0)}function ir(t){return 0===t.translate&&1===t.scale}function is(t){return ir(t.x)&&ir(t.y)}function io(t,e){return t.min===e.min&&t.max===e.max}function ia(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function il(t,e){return ia(t.x,e.x)&&ia(t.y,e.y)}function iu(t){return t9(t.x)/t9(t.y)}function ih(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ic{constructor(){this.members=[]}add(t){(0,eY.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,eY.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let id={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ip="undefined"!=typeof window&&void 0!==window.MotionDebug,im=["","X","Y","Z"],iv={visibility:"hidden"},ig=0;function iy(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ix({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ig++,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,ip&&(id.totalNodes=id.resolvedTargetDeltas=id.recalculatedProjection=0),this.nodes.forEach(iP),this.nodes.forEach(iC),this.nodes.forEach(iM),this.nodes.forEach(iT),ip&&window.MotionDebug.record(id)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eK)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e_.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=eG.X.now(),r=({timestamp:e})=>{let n=e-i;n>=250&&((0,M.Pn)(r),t(n-250))};return M.Wi.read(r,!0),()=>(0,M.Pn)(r)}(r,0),eO.hasAnimatedSinceResize&&(eO.hasAnimatedSinceResize=!1,this.nodes.forEach(iV))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||iO,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!il(this.targetLayout,r)||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={...d(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||iV(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,M.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iD),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 r=i.props[S];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",M.Wi,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iA);return}this.isUpdating||this.nodes.forEach(ik),this.isUpdating=!1,this.nodes.forEach(iE),this.nodes.forEach(ib),this.nodes.forEach(iw),this.clearAllSnapshots();let t=eG.X.now();M.frameData.delta=(0,ei.u)(0,1e3/60,t-M.frameData.timestamp),M.frameData.timestamp=t,M.frameData.isProcessing=!0,M.yL.update.process(M.frameData),M.yL.preRender.process(M.frameData),M.yL.render.process(M.frameData),M.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iS),this.sharedNodes.forEach(iR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=eh(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!is(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||em(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),i$((e=r).x),i$(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return eh();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(iI))){let{scroll:t}=this.root;t&&(eb(i.x,t.offset.x),eb(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=eh();if(e9(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&e9(i,t),eb(i.x,n.offset.x),eb(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=eh();e9(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eP(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),em(r.latestValues)&&eP(i,r.latestValues)}return em(this.latestValues)&&eP(i,this.latestValues),i}removeTransform(t){let e=eh();e9(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!em(i.latestValues))continue;ef(i.latestValues)&&i.updateSnapshot();let r=eh();e9(r,i.measurePageBox()),ii(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return em(this.latestValues)&&ii(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=M.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eh(),this.relativeTargetOrigin=eh(),ee(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),e9(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=eh(),this.targetWithTransforms=eh()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,t7(i.x,r.x,n.x),t7(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):e9(this.target,this.layout.layoutBox),ex(this.target,this.targetDelta)):e9(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eh(),this.relativeTargetOrigin=eh(),ee(this.relativeTargetOrigin,this.target,t.target),e9(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ip&&id.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||ef(this.parent.latestValues)||ev(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===M.frameData.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;e9(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&eP(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ex(t,s)),r&&em(n.latestValues)&&eP(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eh());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(e6(this.prevProjectionDelta.x,this.projectionDelta.x),e6(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),t8(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&ih(this.projectionDelta.x,this.prevProjectionDelta.x)&&ih(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ip&&id.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=el(),this.projectionDelta=el(),this.projectionDeltaWithTransform=el()}setAnimationOrigin(t,e=!1){let i;let r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=el();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=eh(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(iF));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(ij(o.x,t.x,r),ij(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;ee(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,iL(p.x,f.x,a.x,r),iL(p.y,f.y,a.y,r),i&&(u=this.relativeTarget,d=i,io(u.x,d.x)&&io(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=eh()),e9(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=(0,t4.t)(0,void 0!==i.opacity?i.opacity:1,e2(r)),t.opacityExit=(0,t4.t)(void 0!==e.opacity?e.opacity:1,0,e5(r))):s&&(t.opacity=(0,t4.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<eJ;n++){let s=`border${eH[n]}Radius`,o=e1(e,s),a=e1(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||e0(o)===e0(a)?(t[s]=Math.max((0,t4.t)(eQ(o),eQ(a),r),0),(tt.aQ.test(a)||tt.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,t4.t)(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Wi.update(()=>{eO.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let r=(0,w.i)(0)?0:(0,b.BX)(0);return r.start(tD("",r,1e3,i)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&iN(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||eh();let e=t9(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=t9(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}e9(e,i),eP(e,n),t8(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ic),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.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 r={};i.z&&iy("z",t,r,this.animationValues);for(let e=0;e<im.length;e++)iy(`rotate${im[e]}`,t,r,this.animationValues),iy(`skew${im[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iv;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=eZ(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=eZ(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!em(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,e$){if(void 0===o[t])continue;let{correct:e,applyTo:i}=e$[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?eZ(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(iA),this.root.sharedNodes.clear()}}}function ib(t){t.updateLayout()}function iw(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?ec(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=t9(r);r.min=e[t].min,r.max=r.min+n}):iN(n,i.layoutBox,e)&&ec(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=t9(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=el();t8(o,e,i.layoutBox);let a=el();s?t8(a,t.applyTransform(r,!0),i.measuredBox):t8(a,e,i.layoutBox);let l=!is(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=eh();ee(o,i.layoutBox,n.layoutBox);let a=eh();ee(a,e,s.layoutBox),il(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}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 iP(t){ip&&id.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 iT(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iS(t){t.clearSnapshot()}function iA(t){t.clearMeasurements()}function ik(t){t.isLayoutDirty=!1}function iE(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iV(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iC(t){t.resolveTargetDelta()}function iM(t){t.calcProjection()}function iD(t){t.resetSkewAndRotation()}function iR(t){t.removeLeadSnapshot()}function ij(t,e,i){t.translate=(0,t4.t)(e.translate,0,i),t.scale=(0,t4.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function iL(t,e,i,r){t.min=(0,t4.t)(e.min,i.min,r),t.max=(0,t4.t)(e.max,i.max,r)}function iF(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iO={duration:.45,ease:[.4,0,.1,1]},iB=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iW=iB("applewebkit/")&&!iB("chrome/")?Math.round:j.Z;function i$(t){t.min=iW(t.min),t.max=iW(t.max)}function iN(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(iu(e)-iu(i)))}function iI(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let iz=ix({attachResizeListener:(t,e)=>tY(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iU={current:void 0},iX=ix({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iU.current){let t=new iz({});t.mount(window),t.setOptions({layoutScroll:!0}),iU.current=t}return iU.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function iG(t,e){let i=function(t,e,i){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function iY(t){return e=>{"touch"===e.pointerType||tX.x||tX.y||t(e)}}function iq(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&M.Wi.postRender(()=>n(e,tq(e)))}class iK extends tN{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=iG(t,i),o=iY(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let s=iY(t=>{r(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,n)});return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,t=>(iq(this.node,t,"Start"),t=>iq(this.node,t,"End"))))}unmount(){}}class i_ extends tN{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,tH.z)(tY(this.node.current,"focus",()=>this.onFocus()),tY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let iZ=(t,e)=>!!e&&(t===e||iZ(t,e.parentElement)),iH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iJ=new WeakSet;function iQ(t){return e=>{"Enter"===e.key&&t(e)}}function i0(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let i1=(t,e)=>{let i=t.currentTarget;if(!i)return;let r=iQ(()=>{if(iJ.has(i))return;i0(i,"down");let t=iQ(()=>{i0(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>i0(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)};function i2(t){return tG(t)&&!(tX.x||tX.y)}function i5(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&M.Wi.postRender(()=>n(e,tq(e)))}class i3 extends tN{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=iG(t,i),o=t=>{let r=t.currentTarget;if(!i2(t)||iJ.has(r))return;iJ.add(r);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),i2(t)&&iJ.has(r)&&(iJ.delete(r),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||iZ(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{iH.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t.addEventListener("focus",t=>i1(t,n),n)}),s}(t,t=>(i5(this.node,t,"Start"),(t,{success:e})=>i5(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let i4=new WeakMap,i9=new WeakMap,i6=t=>{let e=i4.get(t.target);e&&e(t)},i8=t=>{t.forEach(i6)},i7={some:0,all:1};class rt extends tN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:i7[r]};return function(t,e,i){let r=function({root:t,...e}){let i=t||document;i9.has(i)||i9.set(i,{});let r=i9.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(i8,{root:t,...e})),r[n]}(e);return i4.set(t,i),r.observe(t),()=>{i4.delete(t),r.unobserve(t)}}(this.node.current,s,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:r}=this.node.getProps(),s=e?i:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let re=(0,eR.createContext)({strict:!1});var ri=i(456);let rr=(0,eR.createContext)({});function rn(t){return r(t.animate)||c.some(e=>o(t[e]))}function rs(t){return!!(rn(t)||t.variants)}function ro(t){return Array.isArray(t)?t.join(" "):t}var ra=i(2412);let rl={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"]},ru={};for(let t in rl)ru[t]={isEnabled:e=>rl[t].some(t=>!!e[t])};let rh=Symbol.for("motionComponentSymbol");var rc=i(8675);let rd=["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 rp(t){if("string"!=typeof t||t.includes("-"));else if(rd.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var rf=i(9409);let rm=t=>(e,i)=>{let n=(0,eR.useContext)(rr),s=(0,eR.useContext)(ej),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,o){let a={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=eZ(o[t]);let{initial:a,animate:u}=t,h=rn(t),c=rs(t);e&&c&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===u&&(u=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===a)?u:a;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=l(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,o,t),renderState:e()};return i&&(a.onMount=t=>i({props:n,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,n,s);return i?o():(0,rf.h)(o)},rv=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ry=v._.length;function rx(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(v.G.has(t)){o=!0;continue}if((0,td.f)(t)){n[t]=i;continue}{let e=rv(i,tn[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<ry;s++){let o=v._[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=rv(a,tn[o]);if(!l){n=!1;let e=rg[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let rb={offset:"stroke-dashoffset",array:"stroke-dasharray"},rw={offset:"strokeDashoffset",array:"strokeDasharray"};function rP(t,e,i){return"string"==typeof t?t:tt.px.transform(e+i*t)}function rT(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(rx(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==n||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let r=rP(e,t.x,t.width),n=rP(i,t.y,t.height);return`${r} ${n}`}(f,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==r&&(d.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?rb:rw;t[s.offset]=tt.px.transform(-r);let o=tt.px.transform(e),a=tt.px.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let rS=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rA=()=>({...rS(),attrs:{}}),rk=t=>"string"==typeof t&&"svg"===t.toLowerCase();function rE(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let rV=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rC(t,e,i,r){for(let i in rE(t,e,void 0,r),e.attrs)t.setAttribute(rV.has(i)?i:T(i),e.attrs[i])}function rM(t,{layout:e,layoutId:i}){return v.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e$[t]||"opacity"===t)}function rD(t,e,i){var r;let{style:n}=t,s={};for(let o in n)((0,w.i)(n[o])||e.style&&(0,w.i)(e.style[o])||rM(o,t)||(null===(r=null==i?void 0:i.getValue(o))||void 0===r?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function rR(t,e,i){let r=rD(t,e,i);for(let i in t)((0,w.i)(t[i])||(0,w.i)(e[i]))&&(r[-1!==v._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let rj=["x","y","width","height","cx","cy","r"],rL={useVisualState:rm({scrapeMotionValuesFromProps:rR,createRenderState:rA,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in n)if(v.G.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<rj.length;i++){let r=rj[i];t[r]!==e[r]&&(o=!0)}o&&M.Wi.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,r),M.Wi.render(()=>{rT(r,n,rk(i.tagName),t.transformTemplate),rC(i,r)})})}})},rF={useVisualState:rm({scrapeMotionValuesFromProps:rD,createRenderState:rS})};function rO(t,e,i){for(let r in e)(0,w.i)(e[r])||rM(r,i)||(t[r]=e[r])}let rB=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 rW(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rB.has(t)}let r$=t=>!rW(t);try{(p=require("@emotion/is-prop-valid").default)&&(r$=t=>t.startsWith("on")?!rW(t):p(t))}catch(t){}let rN={current:null},rI={current:!1},rz=[...tv,J.$,Y.P],rU=t=>rz.find(tm(t)),rX=new WeakMap,rG=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rY{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tu.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=eG.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,M.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=rn(e),this.isVariantNode=rs(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&(0,w.i)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rI.current||function(){if(rI.current=!0,ra.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rN.current=t.matches;t.addListener(e),e()}else rN.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rN.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rX.delete(this.current),this.projection&&this.projection.unmount(),(0,M.Pn)(this.notifyUpdate),(0,M.Pn)(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 r=v.G.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&M.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s(),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 ru){let e=ru[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(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):eh()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rG.length;e++){let i=rG[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if((0,w.i)(n))t.addValue(r,n);else if((0,w.i)(s))t.addValue(r,(0,b.BX)(n,{owner:t}));else if(s!==n){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,(0,b.BX)(void 0!==e?e:n,{owner:t}))}}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,b.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(tc(r)||G(r))?r=parseFloat(r):!rU(r)&&Y.P.test(e)&&(r=ta(t,e)),this.setBaseTarget(t,(0,w.i)(r)?r.get():r)),(0,w.i)(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=l(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,w.i)(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 e_.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rq extends rY{constructor(){super(...arguments),this.KeyframeResolver=ty}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,w.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class rK extends rq{constructor(){super(...arguments),this.type="html",this.renderInstance=rE}readValueFromInstance(t,e){if(v.G.has(e)){let t=to(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=((0,td.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eT(t,e)}build(t,e,i){rx(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return rD(t,e,i)}}class r_ extends rq{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eh}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(v.G.has(e)){let t=to(e);return t&&t.default||0}return e=rV.has(e)?e:T(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rR(t,e,i)}build(t,e,i){rT(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){rC(t,e,i,r)}mount(t){this.isSVGTag=rk(t.tagName),super.mount(t)}}let rZ=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((f={animation:{Feature:tI},exit:{Feature:tU},inView:{Feature:rt},tap:{Feature:i3},focus:{Feature:i_},hover:{Feature:iK},pan:{Feature:eM},drag:{Feature:eV,ProjectionNode:iX,MeasureLayout:eU},layout:{ProjectionNode:iX,MeasureLayout:eU}},m=(t,e)=>rp(t)?new r_(e):new rK(e,{allowProjection:t!==eR.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:r,createVisualElement:n,useRender:s,useVisualState:a,Component:l}=t;function u(t,e){var i;let r;let u={...(0,eR.useContext)(ri._),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,eR.useContext)(eL).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(rn(t)){let{initial:e,animate:i}=t;return{initial:!1===e||o(e)?e:void 0,animate:o(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,eR.useContext)(rr));return(0,eR.useMemo)(()=>({initial:e,animate:i}),[ro(e),ro(i)])}(t),d=a(t,h);if(!h&&ra.j){(0,eR.useContext)(re).strict;let t=function(t){let{drag:e,layout:i}=ru;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);r=t.MeasureLayout,c.visualElement=function(t,e,i,r,n){var s,o;let{visualElement:a}=(0,eR.useContext)(rr),l=(0,eR.useContext)(re),u=(0,eR.useContext)(ej),h=(0,eR.useContext)(ri._).reducedMotion,c=(0,eR.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,eR.useContext)(eF);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,r){let{layoutId:n,layout:s,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:s,alwaysMeasureLayout:!!o||a&&t5(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(c.current,i,n,p);let f=(0,eR.useRef)(!1);(0,eR.useInsertionEffect)(()=>{d&&f.current&&d.update(i,u)});let m=i[S],v=(0,eR.useRef)(!!m&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,m))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,rc.L)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),eN.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,eR.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),d}(l,d,u,n,t.ProjectionNode)}return(0,eD.jsxs)(rr.Provider,{value:c,children:[r&&c.visualElement?(0,eD.jsx)(r,{visualElement:c.visualElement,...u}):null,s(l,t,(i=c.visualElement,(0,eR.useCallback)(t=>{t&&d.onMount&&d.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):t5(e)&&(e.current=t))},[i])),d,h,c.visualElement)]})}r&&function(t){for(let e in t)ru[e]={...ru[e],...t[e]}}(r),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!==(i=null!==(e=l.displayName)&&void 0!==e?e:l.name)&&void 0!==i?i:"",")"));let h=(0,eR.forwardRef)(u);return h[rh]=l,h}({...rp(t)?rL:rF,preloadedFeatures:f,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let o=(rp(e)?function(t,e,i,r){let n=(0,eR.useMemo)(()=>{let i=rA();return rT(i,e,rk(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rO(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},r=function(t,e){let i=t.style||{},r={};return rO(r,i,t),Object.assign(r,function({transformTemplate:t},e){return(0,eR.useMemo)(()=>{let i=rS();return rx(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,i})(i,n,s,e),a=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(r$(n)||!0===i&&rW(n)||!e&&!rW(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==eR.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,eR.useMemo)(()=>(0,w.i)(u)?u.get():u,[u]);return(0,eR.createElement)(e,{...l,children:h})}}(e),createVisualElement:m,Component:t})}))},3938:function(t,e,i){i.d(e,{f:function(){return n},t:function(){return o}});let r=t=>e=>"string"==typeof e&&e.startsWith(t),n=r("--"),s=r("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},7976:function(t,e,i){i.d(e,{Ei:function(){return c},lw:function(){return d},mP:function(){return o}});var r=i(7964),n=i(9304),s=i(2589);let o=t=>t===r.Rx||t===n.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return a(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s._.filter(t=>!u.has(t));function c(t){let e=[];return h.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),e}let d={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:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},2589:function(t,e,i){i.d(e,{G:function(){return n},_:function(){return r}});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(r)},767:function(t,e,i){i.d(e,{e:function(){return c},m:function(){return h}});var r=i(7976),n=i(1198);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,r.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class c{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,n.Wi.read(u),n.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n]){if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},3798:function(t,e,i){i.d(e,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},1824:function(t,e,i){function r(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,{cl:function(){return n},y4:function(){return r}})},1389:function(t,e,i){i.d(e,{u:function(){return r}});let r=(t,e,i)=>i>e?e:i<t?t:i},3135:function(t,e,i){i.d(e,{s:function(){return u}});var r=i(8626),n=i(7268),s=i(2028),o=i(1389),a=i(5566),l=i(777);function u(t,e,{clamp:i=!0,ease:u,mixer:h}={}){let c=t.length;if((0,r.k)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let d=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,i){let r=[],s=i||a.C,o=t.length-1;for(let i=0;i<o;i++){let o=s(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.Z:e;o=(0,l.z)(t,o)}r.push(o)}return r}(e,u,h),f=p.length,m=i=>{if(d&&i<t[0])return e[0];let r=0;if(f>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=(0,s.Y)(t[r],t[r+1],i);return p[r](n)};return i?e=>m((0,o.u)(t[0],t[c-1],e)):m}},2412:function(t,e,i){i.d(e,{j:function(){return r}});let r="undefined"!=typeof window},5566:function(t,e,i){i.d(e,{C:function(){return A}});var r=i(8082),n=i(8626);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(9796),a=i(6335),l=i(4094);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},c=[o.$,a.m,l.J],d=t=>c.find(e=>e.test(t));function p(t){let e=d(t);if((0,n.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,o=0,a=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,l=2*i-r;n=s(l,r,t+1/3),o=s(l,r,t),a=s(l,r,t-1/3)}else n=o=a=i;return{red:Math.round(255*n),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let f=(t,e)=>{let i=p(t),n=p(e);if(!i||!n)return u(t,e);let s={...i};return t=>(s.red=h(i.red,n.red,t),s.green=h(i.green,n.green,t),s.blue=h(i.blue,n.blue,t),s.alpha=(0,r.t)(i.alpha,n.alpha,t),a.m.transform(s))};var m=i(777),v=i(1288),g=i(1174),y=i(3938);let x=new Set(["none","hidden"]);function b(t,e){return i=>(0,r.t)(t,e,i)}function w(t){return"number"==typeof t?b:"string"==typeof t?(0,y.t)(t)?u:v.$.test(t)?f:S:Array.isArray(t)?P:"object"==typeof t?v.$.test(t)?f:T:u}function P(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function T(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=w(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let S=(t,e)=>{let i=g.P.createTransformer(e),r=(0,g.V)(t),s=(0,g.V)(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?x.has(t)&&!s.values.length||x.has(e)&&!r.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,m.z)(P(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;r[s]=l,n[o]++}return r}(r,s),s.values),i):((0,n.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,r.t)(t,e,i):w(t)(t,e)}},8082:function(t,e,i){i.d(e,{t:function(){return r}});let r=(t,e,i)=>t+(e-t)*i},777:function(t,e,i){i.d(e,{z:function(){return n}});let r=(t,e)=>i=>e(t(i)),n=(...t)=>t.reduce(r)},786:function(t,e,i){i.d(e,{L:function(){return n}});var r=i(1824);class n{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},9409:function(t,e,i){i.d(e,{h:function(){return n}});var r=i(2265);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},7919:function(t,e,i){i.d(e,{c:function(){return r}});let r={current:!1}},8675:function(t,e,i){i.d(e,{L:function(){return n}});var r=i(2265);let n=i(2412).j?r.useLayoutEffect:r.useEffect},8253:function(t,e,i){i.d(e,{R:function(){return r}});function r(t,e){return e?1e3/e*t:0}},3120:function(t,e,i){i.d(e,{BX:function(){return h},S1:function(){return l}});var r=i(4521),n=i(786),s=i(8253),o=i(1198);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.18.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.X.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(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 n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},9796:function(t,e,i){i.d(e,{$:function(){return n}});var r=i(6335);let n={test:(0,i(701).i)("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:r.m.transform}},4094:function(t,e,i){i.d(e,{J:function(){return a}});var r=i(7964),n=i(9304),s=i(6442),o=i(701);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+n.aQ.transform((0,s.N)(e))+", "+n.aQ.transform((0,s.N)(i))+", "+(0,s.N)(r.Fq.transform(o))+")"}},1288:function(t,e,i){i.d(e,{$:function(){return o}});var r=i(9796),n=i(4094),s=i(6335);let o={test:t=>s.m.test(t)||r.$.test(t)||n.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):n.J.test(t)?n.J.parse(t):r.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):n.J.transform(t)}},6335:function(t,e,i){i.d(e,{m:function(){return u}});var r=i(1389),n=i(7964),s=i(6442),o=i(701);let a=t=>(0,r.u)(0,255,t),l={...n.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(n.Fq.transform(r))+")"}},701:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var r=i(4445);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(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[s,o,a,l]=n.match(r.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},1174:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return f}});var r=i(1288);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(4445),o=i(6442);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:[]},s=[],o=0,h=e.replace(u,t=>(r.$.test(t)?(n.color.push(o),s.push(l),i.push(r.$.parse(t))):t.startsWith("var(")?(n.var.push(o),s.push("var"),i.push(t)):(n.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:n,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),n=e.length;return t=>{let s="";for(let u=0;u<n;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=r.$.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(n))||void 0===i?void 0:i.length)||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},7964:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return n},bA:function(){return o}});var r=i(1389);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...n,transform:t=>(0,r.u)(0,1,t)},o={...n,default:1}},9304:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return n},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let r=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=r("deg"),s=r("%"),o=r("px"),a=r("vh"),l=r("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},4445:function(t,e,i){i.d(e,{K:function(){return r}});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6442:function(t,e,i){i.d(e,{N:function(){return r}});let r=t=>Math.round(1e5*t)/1e5},8854:function(t,e,i){i.d(e,{c:function(){return a}});var r=i(2265),n=i(3120),s=i(456),o=i(9409);function a(t){let e=(0,o.h)(()=>(0,n.BX)(t)),{isStatic:i}=(0,r.useContext)(s._);if(i){let[,i]=(0,r.useState)(t);(0,r.useEffect)(()=>e.on("change",i),[])}return e}},6730:function(t,e,i){i.d(e,{q:function(){return c}});var r=i(2265),n=i(4782),s=i(456),o=i(8675),a=i(8854),l=i(5469),u=i(1198);function h(t){return"number"==typeof t?t:parseFloat(t)}function c(t,e={}){let{isStatic:i}=(0,r.useContext)(s._),c=(0,r.useRef)(null),d=(0,a.c)((0,l.i)(t)?h(t.get()):t),p=(0,r.useRef)(d.get()),f=(0,r.useRef)(()=>{}),m=()=>{let t=c.current;t&&0===t.time&&t.sample(u.frameData.delta),v(),c.current=(0,n.y)({keyframes:[d.get(),p.current],velocity:d.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:f.current})},v=()=>{c.current&&c.current.stop()};return(0,r.useInsertionEffect)(()=>d.attach((t,e)=>i?e(t):(p.current=t,f.current=e,u.Wi.update(m),d.get()),v),[JSON.stringify(e)]),(0,o.L)(()=>{if((0,l.i)(t))return t.on("change",t=>d.set(h(t)))},[d]),d}},8630:function(t,e,i){i.d(e,{H:function(){return d}});var r=i(3135);let n=t=>t&&"object"==typeof t&&t.mix,s=t=>n(t)?t.mix:void 0;var o=i(8854),a=i(8675),l=i(1198);function u(t,e){let i=(0,o.c)(e()),r=()=>i.set(e());return r(),(0,a.L)(()=>{let e=()=>l.Wi.preRender(r,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,l.Pn)(r)}}),i}var h=i(9409),c=i(3120);function d(t,e,i,n){if("function"==typeof t)return function(t){c.S1.current=[],t();let e=u(c.S1.current,t);return c.S1.current=void 0,e}(t);let o="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],o=t[1+i],a=t[2+i],l=t[3+i],u=(0,r.s)(o,a,{mixer:s(a[0]),...l});return e?u(n):u}(e,i,n);return Array.isArray(t)?p(t,o):p([t],([t])=>o(t))}function p(t,e){let i=(0,h.h)(()=>[]);return u(t,()=>{i.length=0;let r=t.length;for(let e=0;e<r;e++)i[e]=t[e].get();return e(i)})}},5469:function(t,e,i){i.d(e,{i:function(){return r}});let r=t=>!!(t&&t.getVelocity)},4208:function(t,e,i){i.d(e,{x:function(){return r}});function r(t){return"function"==typeof t}},2410:function(t,e,i){i.d(e,{w:function(){return n}});var r=i(2028);let n=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t((0,r.Y)(0,s-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`}},6997:function(t,e,i){i.d(e,{q:function(){return r}});let r=t=>Array.isArray(t)&&"number"==typeof t[0]},8626:function(t,e,i){i.d(e,{K:function(){return n},k:function(){return s}});var r=i(7268);let n=r.Z,s=r.Z},7268:function(t,e,i){i.d(e,{Z:function(){return r}});let r=t=>t},2028:function(t,e,i){i.d(e,{Y:function(){return r}});let r=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r}},4205:function(t,e,i){i.d(e,{X:function(){return n},w:function(){return r}});let r=t=>1e3*t,n=t=>t/1e3},6231:function(t,e,i){i.d(e,{w_:function(){return h}});var r=i(2265),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=r.createContext&&r.createContext(n),o=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,r)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach(function(e){var r,n;r=e,n=i[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t){return e=>r.createElement(c,a({attr:u({},t.attr)},e),function t(e){return e&&e.map((e,i)=>r.createElement(e.tag,u({key:i},e.attr),t(e.child)))}(t.child))}function c(t){var e=e=>{var i,{attr:n,size:s,title:l}=t,h=function(t,e){if(null==t)return{};var i,r,n=function(t,e){if(null==t)return{};var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;i[r]=t[r]}return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,o),c=s||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,n,h,{className:i,style:u(u({color:t.color||e.color},e.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==s?r.createElement(s.Consumer,null,t=>e(t)):e(n)}},3335:function(t,e,i){i.d(e,{m6:function(){return _}});let r=t=>{let e=a(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{let i=t.split("-");return""===i[0]&&1!==i.length&&i.shift(),n(i,e)||o(t)},getConflictingClassGroupIds:(t,e)=>{let n=i[t]||[];return e&&r[t]?[...n,...r[t]]:n}}},n=(t,e)=>{if(0===t.length)return e.classGroupId;let i=t[0],r=e.nextPart.get(i),s=r?n(t.slice(1),r):void 0;if(s)return s;if(0===e.validators.length)return;let o=t.join("-");return e.validators.find(({validator:t})=>t(o))?.classGroupId},s=/^\[(.+)\]$/,o=t=>{if(s.test(t)){let e=s.exec(t)[1],i=e?.substring(0,e.indexOf(":"));if(i)return"arbitrary.."+i}},a=t=>{let{theme:e,prefix:i}=t,r={nextPart:new Map,validators:[]};return c(Object.entries(t.classGroups),i).forEach(([t,i])=>{l(i,r,t,e)}),r},l=(t,e,i,r)=>{t.forEach(t=>{if("string"==typeof t){(""===t?e:u(e,t)).classGroupId=i;return}if("function"==typeof t){if(h(t)){l(t(r),e,i,r);return}e.validators.push({validator:t,classGroupId:i});return}Object.entries(t).forEach(([t,n])=>{l(n,u(e,t),i,r)})})},u=(t,e)=>{let i=t;return e.split("-").forEach(t=>{i.nextPart.has(t)||i.nextPart.set(t,{nextPart:new Map,validators:[]}),i=i.nextPart.get(t)}),i},h=t=>t.isThemeGetter,c=(t,e)=>e?t.map(([t,i])=>[t,i.map(t=>"string"==typeof t?e+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,i])=>[e+t,i])):t)]):t,d=t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=new Map,r=new Map,n=(n,s)=>{i.set(n,s),++e>t&&(e=0,r=i,i=new Map)};return{get(t){let e=i.get(t);return void 0!==e?e:void 0!==(e=r.get(t))?(n(t,e),e):void 0},set(t,e){i.has(t)?i.set(t,e):n(t,e)}}},p=t=>{let{separator:e,experimentalParseClassName:i}=t,r=1===e.length,n=e[0],s=e.length,o=t=>{let i;let o=[],a=0,l=0;for(let u=0;u<t.length;u++){let h=t[u];if(0===a){if(h===n&&(r||t.slice(u,u+s)===e)){o.push(t.slice(l,u)),l=u+s;continue}if("/"===h){i=u;continue}}"["===h?a++:"]"===h&&a--}let u=0===o.length?t:t.substring(l),h=u.startsWith("!"),c=h?u.substring(1):u;return{modifiers:o,hasImportantModifier:h,baseClassName:c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return i?t=>i({className:t,parseClassName:o}):o},f=t=>{if(t.length<=1)return t;let e=[],i=[];return t.forEach(t=>{"["===t[0]?(e.push(...i.sort(),t),i=[]):i.push(t)}),e.push(...i.sort()),e},m=t=>({cache:d(t.cacheSize),parseClassName:p(t),...r(t)}),v=/\s+/,g=(t,e)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n}=e,s=[],o=t.trim().split(v),a="";for(let t=o.length-1;t>=0;t-=1){let e=o[t],{modifiers:l,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:c}=i(e),d=!!c,p=r(d?h.substring(0,c):h);if(!p){if(!d||!(p=r(h))){a=e+(a.length>0?" "+a:a);continue}d=!1}let m=f(l).join(":"),v=u?m+"!":m,g=v+p;if(s.includes(g))continue;s.push(g);let y=n(p,d);for(let t=0;t<y.length;++t){let e=y[t];s.push(v+e)}a=e+(a.length>0?" "+a:a)}return a};function y(){let t,e,i=0,r="";for(;i<arguments.length;)(t=arguments[i++])&&(e=x(t))&&(r&&(r+=" "),r+=e);return r}let x=t=>{let e;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(e=x(t[r]))&&(i&&(i+=" "),i+=e);return i},b=t=>{let e=e=>e[t]||[];return e.isThemeGetter=!0,e},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,P=/^\d+\/\d+$/,T=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=t=>D(t)||T.has(t)||P.test(t),M=t=>X(t,"length",G),D=t=>!!t&&!Number.isNaN(Number(t)),R=t=>X(t,"number",D),j=t=>!!t&&Number.isInteger(Number(t)),L=t=>t.endsWith("%")&&D(t.slice(0,-1)),F=t=>w.test(t),O=t=>S.test(t),B=new Set(["length","size","percentage"]),W=t=>X(t,B,Y),$=t=>X(t,"position",Y),N=new Set(["image","url"]),I=t=>X(t,N,K),z=t=>X(t,"",q),U=()=>!0,X=(t,e,i)=>{let r=w.exec(t);return!!r&&(r[1]?"string"==typeof e?r[1]===e:e.has(r[1]):i(r[2]))},G=t=>A.test(t)&&!k.test(t),Y=()=>!1,q=t=>E.test(t),K=t=>V.test(t),_=function(t,...e){let i,r,n;let s=function(a){return r=(i=m(e.reduce((t,e)=>e(t),t()))).cache.get,n=i.cache.set,s=o,o(a)};function o(t){let e=r(t);if(e)return e;let s=g(t,i);return n(t,s),s}return function(){return s(y.apply(null,arguments))}}(()=>{let t=b("colors"),e=b("spacing"),i=b("blur"),r=b("brightness"),n=b("borderColor"),s=b("borderRadius"),o=b("borderSpacing"),a=b("borderWidth"),l=b("contrast"),u=b("grayscale"),h=b("hueRotate"),c=b("invert"),d=b("gap"),p=b("gradientColorStops"),f=b("gradientColorStopPositions"),m=b("inset"),v=b("margin"),g=b("opacity"),y=b("padding"),x=b("saturate"),w=b("scale"),P=b("sepia"),T=b("skew"),S=b("space"),A=b("translate"),k=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",F,e],B=()=>[F,e],N=()=>["",C,M],X=()=>["auto",D,F],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",F],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[D,F];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[C,M],blur:["none","",O,F],brightness:H(),borderColor:[t],borderRadius:["none","","full",O,F],borderSpacing:B(),borderWidth:N(),contrast:H(),grayscale:_(),hueRotate:H(),invert:_(),gap:B(),gradientColorStops:[t],gradientColorStopPositions:[L,M],inset:V(),margin:V(),opacity:H(),padding:B(),saturate:H(),scale:H(),sepia:_(),skew:H(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),F]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,F]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",j,F]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",j,F]},F]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[j,F]},F]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,e]}],"min-w":[{"min-w":[F,e,"min","max","fit"]}],"max-w":[{"max-w":[F,e,"none","full","min","max","fit","prose",{screen:[O]},O]}],h:[{h:[F,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,e,"auto","min","max","fit"]}],"font-size":[{text:["base",O,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",R]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",D,R]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,M]}],"underline-offset":[{"underline-offset":["auto",C,F]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},I]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:Y()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[C,F]}],"outline-w":[{outline:[C,M]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[C,M]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",O,z]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",O,F]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[j,F]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[C,M,R]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); |