UNPKG

@techdocs/cli

Version:

Utility CLI for managing TechDocs sites in Backstage.

1 lines • 98.6 kB
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["2659"],{69352(t,e,i){i.d(e,{m:()=>w});var s=i(20031),r=i(55094),n=i(49066),a=i(77089),o=i(79548);let l={};function h(t,e){let i=(0,o.p)(t);return()=>l[e]??i()}let u=h(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var d=i(31235),p=i(34007),c=i(777),m=i(55889),f=i(88012);let y=h(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var v=i(37472);let g=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:g([0,.65,.55,1]),circOut:g([.55,0,1,.45]),backIn:g([.31,.01,.66,-.59]),backOut:g([.33,1.53,.69,.99])};var T=i(84129);class w extends p.q{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:n,allowFlatten:o=!1,finalKeyframe:l,onComplete:h}=t;this.isPseudoElement=!!n,this.allowFlatten=o,this.options=t,(0,s.V)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const u=function({type:t,...e}){return(0,T.W)(t)&&y()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?y()?(0,v.K)(e,i):"ease-out":(0,f.D)(e)?g(e):Array.isArray(e)?e.map(e=>t(e,i)||x.easeOut):x[e]}(o,r);Array.isArray(d)&&(u.easing=d),m.Q.value&&c.q.waapi++;let p={delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"};h&&(p.pseudoElement=h);let T=t.animate(u,p);return m.Q.value&&T.finished.finally(()=>{c.q.waapi--}),T}(e,i,r,u,n),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=(0,d.X)(r,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(t),(0,a.e)(e,i,t),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,r.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,r.X)(t)}get time(){return(0,r.X)(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,r.f)(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&u())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),n.l):s(this)}}},84129(t,e,i){i.d(e,{W:()=>s});function s(t){return"function"==typeof t&&"applyToOptions"in t}},5771(t,e,i){i.d(e,{f:()=>tV});var s=i(55094),r=i(22650),n=i(49066),a=i(26812),o=i(78222),l=i(80999),h=i(777),u=i(20031),d=i(92639),p=i(21553),c=i(95152),m=i(68406),f=i(50341);function y(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 v=i(9345);function g(t,e){return i=>i>0?e:t}var x=i(41083);let T=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},w=[m.u,v.B,f.V];function b(t){let e=w.find(e=>e.test(t));if((0,u.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===f.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;r=y(o,s,t+1/3),n=y(o,s,t),a=y(o,s,t-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let S=(t,e)=>{let i=b(t),s=b(e);if(!i||!s)return g(t,e);let r={...i};return t=>(r.red=T(i.red,s.red,t),r.green=T(i.green,s.green,t),r.blue=T(i.blue,s.blue,t),r.alpha=(0,x.k)(i.alpha,s.alpha,t),v.B.transform(r))},k=new Set(["none","hidden"]);function A(t,e){return i=>(0,x.k)(t,e,i)}function P(t){return"number"==typeof t?A:"string"==typeof t?(0,d.pG)(t)?g:p.y.test(t)?S:D:Array.isArray(t)?V:"object"==typeof t?p.y.test(t)?S:M:g}function V(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function M(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=P(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let D=(t,e)=>{let i=c.f.createTransformer(e),s=(0,c.V)(t),r=(0,c.V)(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return(0,u.$)(!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.`,"complex-values-different"),g(t,e);if(k.has(t)&&!r.values.length||k.has(e)&&!s.values.length)return k.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return(0,o.F)(V(function(t,e){let i=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let n=e.types[r],a=t.indexes[n][s[n]],o=t.values[a]??0;i[r]=o,s[n]++}return i}(s,r),r.values),i)};function C(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,x.k)(t,e,i):P(t)(t,e)}var R=i(77490);let E=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>R.Gt.update(e,t),stop:()=>(0,R.WG)(e),now:()=>R.uv.isProcessing?R.uv.timestamp:a.k.now()}};var B=i(37472);function j(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}let F=.01,L=2,O=.005,I=.5;function U(t,e){return t*Math.sqrt(1-e*e)}let W=["duration","bounce"],N=["stiffness","damping","mass"];function $(t,e){return e.some(e=>void 0!==t[e])}function X(t=.3,e=.3){let i,r,n,a,o,h,d="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:p,restDelta:c}=d,m=d.keyframes[0],f=d.keyframes[d.keyframes.length-1],y={done:!1,value:m},{stiffness:v,damping:g,mass:x,duration:T,velocity:w,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!$(t,N)&&$(t,W))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*(0,l.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,a;(0,u.$)(t<=(0,s.f)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,l.q)(.05,1,o),t=(0,l.q)(.01,10,(0,s.X)(t)),o<1?(n=e=>{let s=e*o,r=s*t;return .001-(s-i)/U(e,o)*Math.exp(-r)},a=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=U(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let h=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,a,5/t);if(t=(0,s.f)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(h,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...d,velocity:-(0,s.X)(d.velocity||0)}),S=w||0,k=g/(2*Math.sqrt(v*x)),A=f-m,P=(0,s.X)(Math.sqrt(v/x)),V=5>Math.abs(A);if(p||(p=V?F:L),c||(c=V?O:I),k<1)n=U(P,k),a=(S+k*P*A)/n,i=t=>f-Math.exp(-k*P*t)*(a*Math.sin(n*t)+A*Math.cos(n*t)),o=k*P*a+A*n,h=k*P*A-a*n,r=t=>Math.exp(-k*P*t)*(o*Math.sin(n*t)+h*Math.cos(n*t));else if(1===k){i=t=>f-Math.exp(-P*t)*(A+(S+P*A)*t);let t=S+P*A;r=e=>Math.exp(-P*e)*(P*t*e-S)}else{let t=P*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*P*e),s=Math.min(t*e,300);return f-i*((S+k*P*A)*Math.sinh(s)+t*A*Math.cosh(s))/t};let e=(S+k*P*A)/t,s=k*P*e-A*t,n=k*P*A-e*t;r=e=>{let i=Math.exp(-k*P*e),r=Math.min(t*e,300);return i*(s*Math.sinh(r)+n*Math.cosh(r))}}let M={calculatedDuration:b&&T||null,velocity:t=>(0,s.f)(r(t)),next:t=>{if(!b&&k<1){let e=Math.exp(-k*P*t),i=Math.sin(n*t),r=Math.cos(n*t),l=f-e*(a*i+A*r);return y.done=Math.abs((0,s.f)(e*(o*i+h*r)))<=p&&Math.abs(f-l)<=c,y.value=y.done?f:l,y}let e=i(t);return b?y.done=t>=T:y.done=Math.abs((0,s.f)(r(t)))<=p&&Math.abs(f-e)<=c,y.value=y.done?f:e,y},toString:()=>{let t=Math.min(j(M),2e4),e=(0,B.K)(e=>M.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return M}X.applyToOptions=t=>{let e=function(t,e=100,i){let r=i({...t,keyframes:[0,e]}),n=Math.min(j(r),2e4);return{type:"keyframes",ease:t=>r.next(n*t).value/e,duration:(0,s.X)(n)}}(t,100,X);return t.ease=e.ease,t.duration=(0,s.f)(e.duration),t.type="keyframes",t};var K=i(83618);function q(t,e,i){let s=Math.max(e-5,0);return(0,K.f)(i-t(s),e-s)}function z({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,p,c=t[0],m={done:!1,value:c},f=i*e,y=c+f,v=void 0===a?y:a(y);v!==y&&(f=v-c);let g=t=>-f*Math.exp(-t/s),x=t=>v+g(t),T=t=>{let e=g(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?v:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,p=X({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:q(x,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==d||(e=!0,T(t),w(t)),void 0!==d&&t>=d)?p.next(t-d):(e||T(t),m)}}}var G=i(93214),Q=i(6640),H=i(82260),Y=i(56147);function _({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var a;let h,d=(0,Q.h)(s)?s.map(H.K):(0,H.K)(s),p={done:!1,value:e[0]},c=function(t,e,{clamp:i=!0,ease:s,mixer:a}={}){let h=t.length;if((0,u.V)(h===e.length,"Both input and output ranges must be the same length","range-length"),1===h)return()=>e[0];if(2===h&&e[0]===e[1])return()=>e[1];let d=t[0]===t[1];t[0]>t[h-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,i){let s=[],a=i||r.W.mix||C,l=t.length-1;for(let i=0;i<l;i++){let r=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||n.l:e;r=(0,o.F)(t,r)}s.push(r)}return s}(e,s,a),c=p.length,m=i=>{if(d&&i<t[0])return e[0];let s=0;if(c>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=(0,Y.q)(t[s],t[s+1],i);return p[s](r)};return i?e=>m((0,l.q)(t[0],t[h-1],e)):m}((a=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=(0,Y.q)(0,e,s);t.push((0,x.k)(i,1,r))}}(h=[0],e.length-1),h),a.map(e=>e*t)),e,{ease:Array.isArray(d)?d:e.map(()=>d||G.am).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(p.value=c(e),p.done=e>=t,p)}}var Z=i(31235);let J={decay:z,inertia:z,tween:_,keyframes:_,spring:X};function tt(t){"string"==typeof t.type&&(t.type=J[t.type])}var te=i(34007);let ti=t=>t/100;class ts extends te.q{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},h.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tt(t);let{type:e=_,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=t,{keyframes:a}=t,l=e||_;l!==_&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,o.F)(ti,C(a[0],a[1])),a=[0,100]);let h=l({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-n})),null===h.calculatedDuration&&(h.calculatedDuration=j(h));let{calculatedDuration:u}=h;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=h}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:r,mixKeyframes:n,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:h}=this;if(null===this.startTime)return s.next(0);let{delay:u=0,keyframes:d,repeat:p,repeatType:c,repeatDelay:m,type:f,onUpdate:y,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let T=this.currentTime,w=s;if(p){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===c?(i=1-i,m&&(i-=m/o)):"mirror"===c&&(w=a)),T=(0,l.q)(0,1,i)*o}x?(this.delayState.value=d[0],i=this.delayState):i=w.next(T),n&&!x&&(i.value=n(i.value));let{done:b}=i;x||null===h||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==z&&(i.value=(0,Z.X)(d,this.options,v,this.speed)),y&&y(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return(0,s.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,s.X)(t)}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return q(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(a.k.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=E,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,h.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tr=i(86177),tn=i(77089),ta=i(69352),to=i(10384),tl=i(45226),th=i(42169);let tu={anticipate:to.b,backInOut:tl.ZZ,circInOut:th.tn};class td extends ta.m{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tu&&(t.ease=tu[t.ease])}(t),tt(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:r,...n}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ts({...n,autoplay:!1}),h=Math.max(10,a.k.now()-this.startTime),u=(0,l.q)(0,10,h-10),d=o.sample(h).value,{name:p}=this.options;r&&p&&(0,tn.e)(r,p,d),e.setWithVelocity(o.sample(Math.max(0,h-u)).value,d,u),o.stop()}}var tp=i(84129);let tc=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(c.f.test(t)||"0"===t)&&!t.startsWith("url("));function tm(t){t.duration=0,t.type="keyframes"}var tf=i(79548),ty=i(81931);let tv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tg=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tx=(0,tf.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tT extends te.q{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:o,name:l,motionValue:h,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a.k.now();const p={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,name:l,motionValue:h,element:u,...d},c=u?.KeyframeResolver||tr.h;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,p,!i),l,h,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let o;this.keyframeResolver=void 0;let{name:l,type:h,velocity:d,delay:p,isHandoff:c,onUpdate:m}=i;this.resolvedAt=a.k.now();let f=!0;!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],a=tc(r,e),o=tc(n,e);return(0,u.$)(a===o,`You are trying to animate ${e} from "${r}" to "${n}". "${a?n:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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,tp.W)(i))&&s)}(t,l,h,d)&&(f=!1,(r.W.instantAnimations||!p)&&m?.((0,Z.X)(t,i,e)),t[0]=t[t.length-1],tm(i),i.repeat=0);let y={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},v=f&&!c&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return tx()&&i&&(ty.M.has(i)||tg.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&tv.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}(y),g=y.motionValue?.owner?.current;if(v)try{o=new td({...y,element:g})}catch{o=new ts(y)}else o=new ts(y);o.finished.then(()=>{this.notifyFinished()}).catch(n.l),this.pendingTimeline&&(this.stopTimeline=o.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=o}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,tr.q)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var tw=i(84040),tb=i(84379);let tS={type:"spring",stiffness:500,damping:25,restSpeed:10},tk={type:"keyframes",duration:.8},tA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),tV=(t,e,i,n={},a,o)=>l=>{let h=(0,tw.r)(n,t)||{},u=h.delay||n.delay||0,{elapsed:d=0}=n;d-=(0,s.f)(u);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...h,delay:-d,onUpdate:t=>{e.set(t),h.onUpdate&&h.onUpdate(t)},onComplete:()=>{l(),h.onComplete&&h.onComplete()},name:t,motionValue:e,element:o?void 0:a};!function(t){for(let e in t)if(!tP.has(e))return!0;return!1}(h)&&Object.assign(p,((t,{keyframes:e})=>e.length>2?tk:tb.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tS:tA)(t,p)),p.duration&&(p.duration=(0,s.f)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,s.f)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let c=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(tm(p),0===p.delay&&(c=!0)),(r.W.instantAnimations||r.W.skipAnimations||a?.shouldSkipAnimations)&&(c=!0,tm(p),p.delay=0),p.allowFlatten=!h.type&&!h.ease,c&&!o&&void 0!==e.get()){let t=(0,Z.X)(p.keyframes,h);if(void 0!==t)return void R.Gt.update(()=>{p.onUpdate(t),p.onComplete()})}return h.isSync?new ts(p):new tT(p)}},86177(t,e,i){i.d(e,{q:()=>d,h:()=>p});var s=i(29465),r=i(77490);let n=new Set,a=!1,o=!1,l=!1;function h(){if(o){let t=Array.from(n).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,s.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}o=!1,a=!1,n.forEach(t=>t.complete(l)),n.clear()}function u(){n.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function d(){l=!0,u(),h(),l=!1}class p{constructor(t,e,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(n.add(this),a||(a=!0,r.Gt.read(u),r.Gt.resolveKeyframes(h))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let r=s?.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),n.delete(this)}cancel(){"scheduled"===this.state&&(n.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},31235(t,e,i){i.d(e,{X:()=>r});let s=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},n,a=1){let o=t.filter(s),l=a<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return l&&void 0!==n?n:o[l]}},29465(t,e,i){i.d(e,{E4:()=>o,Hr:()=>d,W9:()=>u});var s=i(77953),r=i(84379),n=i(17462),a=i(1207);let o=t=>t===n.ai||t===a.px,l=new Set(["x","y","z"]),h=r.U.filter(t=>!l.has(t));function u(t){let e=[];return h.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-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:(t,{transform:e})=>(0,s.ry)(e,"x"),y:(t,{transform:e})=>(0,s.ry)(e,"y")};d.translateX=d.x,d.translateY=d.y},97698(t,e,i){i.d(e,{n:()=>s});let s="data-"+(0,i(40212).I)("framerAppearId")},25420(t,e,i){i.d(e,{P:()=>r});var s=i(97698);function r(t){return t.props[s.n]}},34007(t,e,i){i.d(e,{q:()=>s});class s{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},84040(t,e,i){i.d(e,{r:()=>r});var s=i(4924);function r(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,s.K)(i,t):i}},92639(t,e,i){i.d(e,{j4:()=>r,pG:()=>a,rm:()=>l});let s=t=>e=>"string"==typeof e&&e.startsWith(t),r=s("--"),n=s("var(--"),a=t=>!!n(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}},4924(t,e,i){i.d(e,{K:()=>s});function s(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}},81931(t,e,i){i.d(e,{M:()=>s});let s=new Set(["opacity","clipPath","filter","transform"])},37472(t,e,i){i.d(e,{K:()=>s});let s=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`}},73212(t,e,i){i.d(e,{k:()=>s});function s(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}},65588(t,e,i){i.d(e,{I:()=>a});var s=i(22650);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var n=i(55889);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,r=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){o.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,n=!1)=>{let a=n&&r?i:s;return e&&o.add(t),a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{if(l=t,r){a=!0;return}r=!0;let o=i;i=s,s=o,i.forEach(u),e&&n.Q.value&&n.Q.value.frameloop[e].push(h),h=0,i.clear(),r=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:p,preUpdate:c,update:m,preRender:f,render:y,postRender:v}=h,g=()=>{let r=s.W.useManualTiming,n=r?o.timestamp:performance.now();i=!1,r||(o.delta=a?1e3/60:Math.max(Math.min(n-o.timestamp,40),1)),o.timestamp=n,o.isProcessing=!0,u.process(o),d.process(o),p.process(o),c.process(o),m.process(o),f.process(o),y.process(o),v.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(g))};return{schedule:r.reduce((e,s)=>{let r=h[s];return e[s]=(e,s=!1,n=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(g)),r.schedule(e,s,n)),e},{}),cancel:t=>{for(let e=0;e<r.length;e++)h[r[e]].cancel(t)},state:o,steps:h}}},77490(t,e,i){i.d(e,{Gt:()=>r,PP:()=>o,WG:()=>n,uv:()=>a});var s=i(49066);let{schedule:r,cancel:n,state:a,steps:o}=(0,i(65588).I)("u">typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},45034(t,e,i){i.d(e,{k:()=>s});let{schedule:s}=(0,i(65588).I)(queueMicrotask,!1)},26812(t,e,i){let s;i.d(e,{k:()=>o});var r=i(22650),n=i(77490);function a(){s=void 0}let o={now:()=>(void 0===s&&o.set(n.uv.isProcessing||r.W.useManualTiming?n.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(a)}}},83008(t,e,i){i.d(e,{D:()=>r,I:()=>s});let s={x:!1,y:!1};function r(){return s.x||s.y}},54002(t,e,i){i.d(e,{W:()=>r});var s=i(83008);function r(t){if("x"===t||"y"===t)if(s.I[t])return null;else return s.I[t]=!0,()=>{s.I[t]=!1};return s.I.x||s.I.y?null:(s.I.x=s.I.y=!0,()=>{s.I.x=s.I.y=!1})}},37744(t,e,i){i.d(e,{P:()=>n});var s=i(83008),r=i(48759);function n(t,e,i={}){let[a,o,l]=(0,r.V)(t,i);return a.forEach(t=>{let i,r=!1,n=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",h)},l=t=>{r=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),n&&(n=!1,a(t))},h=t=>{if("touch"!==t.pointerType){if(r){n=!0;return}a(t)}};t.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||(0,s.D)())return;n=!1;let a=e(t,r);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",h,o))},o),t.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",l,o)},o)}),l}},84322(t,e,i){i.d(e,{c:()=>m});var s=i(44910),r=i(83008);let n=(t,e)=>!!e&&(t===e||n(t,e.parentElement));var a=i(25377),o=i(48759),l=i(26741);let h=new WeakSet;function u(t){return e=>{"Enter"===e.key&&t(e)}}function d(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function p(t){return(0,a.M)(t)&&!(0,r.D)()}let c=new WeakSet;function m(t,e,i={}){let[r,a,f]=(0,o.V)(t,i),y=t=>{let s=t.currentTarget;if(!p(t)||c.has(t))return;h.add(s),i.stopPropagation&&c.add(t);let r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",u),h.has(s)&&h.delete(s),p(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{o(t,s===window||s===document||i.useGlobalTarget||n(s,t.target))},u=t=>{o(t,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",u,a)};return r.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",y,a),(0,s.s)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=u(()=>{if(h.has(i))return;d(i,"down");let t=u(()=>{d(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>d(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,a)),(0,l.c)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),f}},26741(t,e,i){i.d(e,{a:()=>a,c:()=>r});let s=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r(t){return s.has(t.tagName)||!0===t.isContentEditable}let n=new Set(["INPUT","SELECT","TEXTAREA"]);function a(t){return n.has(t.tagName)||!0===t.isContentEditable}},25377(t,e,i){i.d(e,{M:()=>s});let s=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},48759(t,e,i){i.d(e,{V:()=>r});var s=i(51599);function r(t,e){let i=(0,s.K)(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}},95766(t,e,i){function s({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}i.d(e,{FY:()=>s,bS:()=>n,pA:()=>r})},35651(t,e,i){i.d(e,{OU:()=>h,Ql:()=>u,Ww:()=>c,hq:()=>n,o4:()=>l});var s=i(41083),r=i(38424);function n(t,e,i){return i+e*(t-i)}function a(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function o(t,e=0,i=1,s,r){t.min=a(t.min,e,i,s,r),t.max=a(t.max,e,i,s,r)}function l(t,{x:e,y:i}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,i.translate,i.scale,i.originPoint)}function h(t,e,i,s=!1){let n,a,o=i.length;if(o){e.x=e.y=1;for(let h=0;h<o;h++){a=(n=i[h]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(u(t.x,-n.scroll.offset.x),u(t.y,-n.scroll.offset.y)),a&&(e.x*=a.x.scale,e.y*=a.y.scale,l(t,a)),s&&(0,r.HD)(n.latestValues)&&c(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function u(t,e){t.min+=e,t.max+=e}function d(t,e,i,r,n=.5){let a=(0,s.k)(t.min,t.max,n);o(t,e,i,a,r)}function p(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function c(t,e,i){let s=i??t;d(t.x,p(e.x,s.x),e.scaleX,e.scale,e.originX),d(t.y,p(e.y,s.y),e.scaleY,e.scale,e.originY)}},69542(t,e,i){i.d(e,{CQ:()=>r,HQ:()=>n,N:()=>h,jA:()=>d,vb:()=>o});var s=i(41083);function r(t){return t.max-t.min}function n(t,e,i){return Math.abs(t-e)<=i}function a(t,e,i,n=.5){t.origin=n,t.originPoint=(0,s.k)(e.min,e.max,t.origin),t.scale=r(i)/r(e),t.translate=(0,s.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function o(t,e,i,s){a(t.x,e.x,i.x,s?s.originX:void 0),a(t.y,e.y,i.y,s?s.originY:void 0)}function l(t,e,i,n=0){t.min=(n?(0,s.k)(i.min,i.max,n):i.min)+e.min,t.max=t.min+r(e)}function h(t,e,i,s){l(t.x,e.x,i.x,s?.x),l(t.y,e.y,i.y,s?.y)}function u(t,e,i,n=0){let a=n?(0,s.k)(i.min,i.max,n):i.min;t.min=e.min-a,t.max=t.min+r(e)}function d(t,e,i,s){u(t.x,e.x,i.x,s?.x),u(t.y,e.y,i.y,s?.y)}},52440(t,e,i){i.d(e,{ge:()=>a,xU:()=>r});let s=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:s(),y:s()}),n=()=>({min:0,max:0}),a=()=>({x:n(),y:n()})},74306(t,e,i){i.d(e,{P:()=>tj});var s=i(76899),r=i(80999),n=i(49066),a=i(5771),o=i(63131),l=i(15530),h=i(25420),u=i(84040),d=i(45034),p=i(26812),c=i(55562),m=i(777),f=i(55889),y=i(77490),v=i(99055),g=i(41083),x=i(40380),T=i(1207),w=i(42169),b=i(56147);let S=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],k=S.length,A=t=>"string"==typeof t?parseFloat(t):t,P=t=>"number"==typeof t||T.px.test(t);function V(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let M=C(0,.5,w.yT),D=C(.5,.95,n.l);function C(t,e,i){return s=>s<t?0:s>e?1:i((0,b.q)(t,e,s))}function R(t,e){t.min=e.min,t.max=e.max}function E(t,e){R(t.x,e.x),R(t.y,e.y)}function B(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var j=i(35651),F=i(69542);function L(t,e,i,s,r){return t-=e,t=(0,j.hq)(t,1/i,s),void 0!==r&&(t=(0,j.hq)(t,1/r,s)),t}function O(t,e,[i,s,r],n,a){!function(t,e=0,i=1,s=.5,r,n=t,a=t){if(T.KN.test(e)&&(e=parseFloat(e),e=(0,g.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,g.k)(n.min,n.max,s);t===n&&(o-=e),t.min=L(t.min,e,i,o,r),t.max=L(t.max,e,i,o,r)}(t,e[i],e[s],e[r],e.scale,n,a)}let I=["x","scaleX","originX"],U=["y","scaleY","originY"];function W(t,e,i,s){O(t.x,e,I,i?i.x:void 0,s?s.x:void 0),O(t.y,e,U,i?i.y:void 0,s?s.y:void 0)}var N=i(52440);function $(t){return 0===t.translate&&1===t.scale}function X(t){return $(t.x)&&$(t.y)}function K(t,e){return t.min===e.min&&t.max===e.max}function q(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function z(t,e){return q(t.x,e.x)&&q(t.y,e.y)}function G(t){return(0,F.CQ)(t.x)/(0,F.CQ)(t.y)}function Q(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var H=i(22373);class Y{constructor(){this.members=[]}add(t){(0,H.Kq)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,H.Ai)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,H.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:r}=t.options;(void 0===s||s!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}var _=i(36160);let Z=(t,e)=>t.depth-e.depth;class J{constructor(){this.children=[],this.isDirty=!1}add(t){(0,H.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,H.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Z),this.isDirty=!1,this.children.forEach(t)}}var tt=i(38424),te=i(28169);let ti={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ts=["","X","Y","Z"],tr=0;function tn(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ta({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:w}){return class{constructor(t={},i=e?.()){this.id=tr++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,f.Q.value&&(ti.nodes=ti.calculatedTargetDeltas=ti.calculatedProjections=0),this.nodes.forEach(th),this.nodes.forEach(tg),this.nodes.forEach(tx),this.nodes.forEach(tu),f.Q.addProjectionMetrics&&f.Q.addProjectionMetrics(ti)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 J)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.v),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){if(this.instance)return;this.isSVG=(0,v.x)(e)&&(!(0,v.x)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,r=()=>this.root.updateBlockedByResize=!1;y.Gt.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,n;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=p.k.now(),n=({timestamp:t})=>{let i=t-e;i>=250&&((0,y.WG)(n),r(i-250))},y.Gt.setup(n,!0),i=()=>(0,y.WG)(n),te.w.hasAnimatedSinceResize&&(te.w.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||tA,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!z(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,u.r)(n,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,y.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tT),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,h.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",y.Gt,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(tc),this.nodes.forEach(tp);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tm);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tf),this.nodes.forEach(ty),this.nodes.forEach(to),this.nodes.forEach(tl)):this.nodes.forEach(tm),this.clearAllSnapshots();let t=p.k.now();y.uv.delta=(0,r.q)(0,1e3/60,t-y.uv.timestamp),y.uv.timestamp=t,y.uv.isProcessing=!0,y.PP.update.process(y.uv),y.PP.preRender.process(y.uv),y.PP.render.process(y.uv),y.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(td),this.sharedNodes.forEach(tw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,y.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){y.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,F.CQ)(this.snapshot.measuredBox.x)||(0,F.CQ)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,N.ge)()),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&&this.instance){let e=n(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(!w)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!X(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tt.HD)(this.latestValues)||r)&&(w(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tM((e=s).x),tM(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,N.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tC))){let{scroll:t}=this.root;t&&((0,j.Ql)(e.x,t.offset.x),(0,j.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,N.ge)();if(E(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&E(e,t),(0,j.Ql)(e.x,r.offset.x),(0,j.Ql)(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,N.ge)();E(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,j.Ql)(s.x,-i.scroll.offset.x),(0,j.Ql)(s.y,-i.scroll.offset.y)),(0,tt.HD)(i.latestValues)&&(0,j.Ww)(s,i.latestValues,i.layout?.layoutBox)}return(0,tt.HD)(this.latestValues)&&(0,j.Ww)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,N.ge)();E(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,tt.HD)(s.latestValues)&&(s.instance&&((0,tt.vk)(s.latestValues)&&s.updateSnapshot(),E(i=(0,N.ge)(),s.measurePageBox())),W(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,tt.HD)(this.latestValues)&&W(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!==y.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=y.uv.timestamp;let n=this.getClosestProjectingParent();n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,N.ge)(),this.targetWithTransforms=(0,N.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,F.N)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):E(this.target,this.layout.layoutBox),(0,j.o4)(this.target,this.targetDelta)):E(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0),f.Q.value&&ti.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,tt.vk)(this.parent.latestValues)||(0,tt.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,N.ge)(),this.relativeTargetOrigin=(0,N.ge)(),(0,F.jA)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),E(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===y.uv.timestamp&&(i=!1),i)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;E(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,a=this.treeScale.y;(0,j.OU)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target