UNPKG

nhfs

Version:

NHFS — A sleek HTTP file server for the web built with Next.js and HeroUI. (Alpha)

1 lines 64.7 kB
(globalThis.TURBOPACK=globalThis.TURBOPACK||[]).push(["object"==typeof document?document.currentScript:void 0,{295902:[e=>{"use strict";let t;e.s({animations:()=>t5},295902);var i=e.i(187438),n=e.i(420006);function r(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}var s=e.i(135715),a=e.i(624214);function o(e,t,i){let n=e.getProps();return(0,a.resolveVariantFromProps)(n,t,void 0!==i?i:n.custom,e)}var l=e.i(496487);e.s({animateVisualElement:()=>tX},832169),e.s({animateTarget:()=>tz},128791);var u=e.i(303868);e.s({animateMotionValue:()=>tD},898011),e.s({millisecondsToSeconds:()=>d,secondsToMilliseconds:()=>h},412285);let h=e=>1e3*e,d=e=>e/1e3,c={type:"spring",stiffness:500,damping:25,restSpeed:10},p={type:"keyframes",duration:.8},m={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function f(e,t){return e?e[t]||e.default||e:void 0}e.s({getValueTransition:()=>f},324167);var v=e.i(304310);e.s({instantAnimationState:()=>g},202359);let g={current:!1};e.s({getFinalKeyframe:()=>b},596364);let y=e=>null!==e;function b(e,t,i){let{repeat:n,repeatType:r="loop"}=t,s=e.filter(y),a=n&&"loop"!==r&&n%2==1?0:s.length-1;return a&&void 0!==i?i:s[a]}var V=e.i(570119);e.s({AcceleratedAnimation:()=>tF},799276),e.s({anticipate:()=>F},349017),e.s({backIn:()=>M,backInOut:()=>C,backOut:()=>x},936003),e.s({cubicBezier:()=>P},57103),e.i(576254);var S=e.i(796254);let A=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function P(e,t,i,n){return e===t&&i===n?S.noop:r=>0===r||1===r?r:A(function(e,t,i,n,r){let s,a,o=0;do(s=A(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,e,i),t,n)}e.s({mirrorEasing:()=>w},487616);let w=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;e.s({reverseEasing:()=>T},587672);let T=e=>t=>1-e(1-t),x=P(.33,1.53,.69,.99),M=T(x),C=w(M),F=e=>(e*=2)<1?.5*M(e):.5*(2-Math.pow(2,-10*(e-1)));e.s({circIn:()=>E,circInOut:()=>D,circOut:()=>k},992382);let E=e=>1-Math.sin(Math.acos(e)),k=T(E),D=w(E);e.s({DOMKeyframesResolver:()=>ek},832926),e.s({isZeroValueString:()=>I},631159);let I=e=>/^0[^.\s]+$/u.test(e);var O=e.i(61342);e.s({isNumericalString:()=>R},810085);let R=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var B=e.i(237152);let N=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var K=e.i(951655),L=e.i(623940);let j=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),G=e=>e===K.number||e===L.px,U=(e,t)=>parseFloat(e.split(", ")[t]),q=(e,t)=>(i,n)=>{let{transform:r}=n;if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return U(s[1],t);{let t=r.match(/^matrix\((.+)\)$/u);return t?U(t[1],e):0}},H=new Set(["x","y","z"]),W=u.transformPropOrder.filter(e=>!H.has(e)),z={width:(e,t)=>{let{x:i}=e,{paddingLeft:n="0",paddingRight:r="0"}=t;return i.max-i.min-parseFloat(n)-parseFloat(r)},height:(e,t)=>{let{y:i}=e,{paddingTop:n="0",paddingBottom:r="0"}=t;return i.max-i.min-parseFloat(n)-parseFloat(r)},top:(e,t)=>{let{top:i}=t;return parseFloat(i)},left:(e,t)=>{let{left:i}=t;return parseFloat(i)},bottom:(e,t)=>{let{y:i}=e,{top:n}=t;return parseFloat(n)+(i.max-i.min)},right:(e,t)=>{let{x:i}=e,{left:n}=t;return parseFloat(n)+(i.max-i.min)},x:q(4,13),y:q(5,14)};z.translateX=z.x,z.translateY=z.y,e.s({dimensionValueTypes:()=>_,findDimensionValueType:()=>X},93107),e.s({testValueType:()=>Y},954);let Y=e=>t=>t.test(e),_=[K.number,L.px,L.percent,L.degrees,L.vw,L.vh,{test:e=>"auto"===e,parse:e=>e}],X=e=>_.find(Y(e));e.s({KeyframeResolver:()=>ei,flushKeyframeResolvers:()=>et},950886);let $=new Set,Z=!1,J=!1;function Q(){if(J){let e=Array.from($).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=function(e){let t=[];return W.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t}(e);t.length&&(i.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(t=>{var i;let[n,r]=t;null==(i=e.getValue(n))||i.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}J=!1,Z=!1,$.forEach(e=>e.complete()),$.clear()}function ee(){$.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(J=!0)})}function et(){ee(),Q()}class ei{scheduleResolve(){this.isScheduled=!0,this.isAsync?($.add(this),Z||(Z=!0,V.frame.read(ee),V.frame.resolveKeyframes(Q))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){let r=null==n?void 0:n.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),$.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$.delete(this))}resume(){this.isComplete||this.scheduleResolve()}constructor(e,t,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}}e.s({analyseComplexValue:()=>ey,complex:()=>eA},855854),e.s({color:()=>ep},353201);var en=e.i(499228);let er=e=>Math.round(1e5*e)/1e5,es=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ea=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eo=(e,t)=>i=>!!("string"==typeof i&&ea.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),el=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(es);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eu={...K.number,transform:e=>Math.round((0,en.clamp)(0,255,e))},eh={test:eo("rgb","red"),parse:el("red","green","blue"),transform:e=>{let{red:t,green:i,blue:n,alpha:r=1}=e;return"rgba("+eu.transform(t)+", "+eu.transform(i)+", "+eu.transform(n)+", "+er(K.alpha.transform(r))+")"}},ed={test:eo("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:eh.transform},ec={test:eo("hsl","hue"),parse:el("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:i,lightness:n,alpha:r=1}=e;return"hsla("+Math.round(t)+", "+L.percent.transform(er(i))+", "+L.percent.transform(er(n))+", "+er(K.alpha.transform(r))+")"}},ep={test:e=>eh.test(e)||ed.test(e)||ec.test(e),parse:e=>eh.test(e)?eh.parse(e):ec.test(e)?ec.parse(e):ed.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eh.transform(e):ec.transform(e)},em=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ef="number",ev="color",eg=/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 ey(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=t.replace(eg,e=>(ep.test(e)?(n.color.push(s),r.push(ev),i.push(ep.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(ef),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function eb(e){return ey(e).values}function eV(e){let{split:t,types:i}=ey(e),n=t.length;return e=>{let r="";for(let s=0;s<n;s++)if(r+=t[s],void 0!==e[s]){let t=i[s];t===ef?r+=er(e[s]):t===ev?r+=ep.transform(e[s]):r+=e[s]}return r}}let eS=e=>"number"==typeof e?0:e,eA={test:function(e){var t,i;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(es))?void 0:t.length)||0)+((null==(i=e.match(em))?void 0:i.length)||0)>0},parse:eb,createTransformer:eV,getAnimatableNone:function(e){let t=eb(e);return eV(e)(t.map(eS))}};e.s({getAnimatableNone:()=>eF},442616);let eP=new Set(["brightness","contrast","saturate","opacity"]);function ew(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(es)||[];if(!n)return e;let r=i.replace(n,""),s=+!!eP.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let eT=/\b([a-z-]*)\(.*?\)/gu,ex={...eA,getAnimatableNone:e=>{let t=e.match(eT);return t?t.map(ew).join(" "):e}};e.s({getDefaultValueType:()=>eC},929113);let eM={...e.i(122172).numberValueTypes,color:ep,backgroundColor:ep,outlineColor:ep,fill:ep,stroke:ep,borderColor:ep,borderTopColor:ep,borderRightColor:ep,borderBottomColor:ep,borderLeftColor:ep,filter:ex,WebkitFilter:ex},eC=e=>eM[e];function eF(e,t){let i=eC(e);return i!==ex&&(i=eA),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eE=new Set(["auto","none","0"]);class ek extends ei{readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&(n=n.trim(),(0,B.isCSSVariableToken)(n))){let r=function e(t,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,O.invariant)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[r,s]=function(e){let t=N.exec(e);if(!t)return[,];let[,i,n,r]=t;return["--".concat(null!=i?i:n),r]}(t);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let e=a.trim();return R(e)?parseFloat(e):e}return(0,B.isCSSVariableToken)(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!j.has(i)||2!==e.length)return;let[n,r]=e,s=X(n),a=X(r);if(s!==a)if(G(s)&&G(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||I(n))&&i.push(t)}i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!eE.has(t)&&ey(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=eF(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:i,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let r=t.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,a=n[s];n[s]=z[i](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEach(e=>{let[i,n]=e;t.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}}function eD(e){return"function"==typeof e}function eI(){t=void 0}e.s({isGenerator:()=>eD},162438),e.s({time:()=>eO},888590);let eO={now:()=>(void 0===t&&eO.set(V.frameData.isProcessing||v.MotionGlobalConfig.useManualTiming?V.frameData.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(eI)}},eR=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eA.test(e)||"0"===e)&&!e.startsWith("url("));class eB{calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||et(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=eO.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=eR(r,t),o=eR(s,t);return(0,O.warning)(a===o,"You are trying to animate ".concat(t,' from "').concat(r,'" to "').concat(s,'". ').concat(r," is not an animatable value - to enable this animation set ").concat(r," to a value animatable to ").concat(s," via the `style` property.")),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||eD(i))&&n)}(e,i,n,r))if(g.current||!s){null==o||o(b(e,this.options,t)),null==a||a(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=eO.now(),this.options={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}}e.s({MainThreadAnimation:()=>tg,animateValue:()=>ty},908273),e.i(922271),e.s({spring:()=>eX},509681),e.s({progress:()=>eN},740620);let eN=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n},eK=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=e(eN(0,r-1,t))+", ";return"linear(".concat(n.substring(0,n.length-2),")")};function eL(e,t){return t?1e3/t*e:0}function ej(e,t,i){let n=Math.max(t-5,0);return eL(i-e(n),t-n)}e.s({velocityPerSecond:()=>eL},118119),e.s({calcAngularFreq:()=>eq,findSpring:()=>eU},208902);let eG={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eU(e){let t,i,{duration:n=eG.duration,bounce:r=eG.bounce,velocity:s=eG.velocity,mass:a=eG.mass}=e;(0,O.warning)(n<=h(eG.maxDuration),"Spring duration must be 10 seconds or less");let o=1-r;o=(0,en.clamp)(eG.minDamping,eG.maxDamping,o),n=(0,en.clamp)(eG.minDuration,eG.maxDuration,d(n)),o<1?(t=e=>{let t=e*o,i=t*n;return .001-(t-s)/eq(e,o)*Math.exp(-i)},i=e=>{let i=e*o*n,r=Math.pow(o,2)*Math.pow(e,2)*n,a=Math.exp(-i),l=eq(Math.pow(e,2),o);return(i*s+s-r)*a*(-t(e)+.001>0?-1:1)/l}):(t=e=>-.001+Math.exp(-e*n)*((e-s)*n+1),i=e=>n*n*(s-e)*Math.exp(-e*n));let l=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(t,i,5/n);if(n=h(n),isNaN(l))return{stiffness:eG.stiffness,damping:eG.damping,duration:n};{let e=Math.pow(l,2)*a;return{stiffness:e,damping:2*o*Math.sqrt(a*e),duration:n}}}function eq(e,t){return e*Math.sqrt(1-t*t)}e.s({calcGeneratorDuration:()=>eW,maxGeneratorDuration:()=>eH},593599);let eH=2e4;function eW(e){let t=0,i=e.next(t);for(;!i.done&&t<eH;)t+=50,i=e.next(t);return t>=eH?1/0:t}let ez=["duration","bounce"],eY=["stiffness","damping","mass"];function e_(e,t){return t.some(t=>void 0!==e[t])}function eX(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eG.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eG.bounce,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:i}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:p,duration:m,velocity:f,isResolvedFromDuration:v}=function(e){let t={velocity:eG.velocity,stiffness:eG.stiffness,damping:eG.damping,mass:eG.mass,isResolvedFromDuration:!1,...e};if(!e_(e,eY)&&e_(e,ez))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*(0,en.clamp)(.05,1,1-e.bounce)*Math.sqrt(n);t={...t,mass:eG.mass,stiffness:n,damping:r}}else{let i=eU(e);(t={...t,...i,mass:eG.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-d(n.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(u*p)),b=o-a,V=d(Math.sqrt(u/p)),S=5>Math.abs(b);if(r||(r=S?eG.restSpeed.granular:eG.restSpeed.default),s||(s=S?eG.restDelta.granular:eG.restDelta.default),y<1){let t=eq(V,y);e=e=>o-Math.exp(-y*V*e)*((g+y*V*b)/t*Math.sin(t*e)+b*Math.cos(t*e))}else if(1===y)e=e=>o-Math.exp(-V*e)*(b+(g+V*b)*e);else{let t=V*Math.sqrt(y*y-1);e=e=>{let i=Math.exp(-y*V*e),n=Math.min(t*e,300);return o-i*((g+y*V*b)*Math.sinh(n)+t*b*Math.cosh(n))/t}}let A={calculatedDuration:v&&m||null,next:t=>{let i=e(t);if(v)l.done=t>=m;else{let n=0;y<1&&(n=0===t?h(g):ej(e,t,i));let a=Math.abs(o-i)<=s;l.done=Math.abs(n)<=r&&a}return l.value=l.done?o:i,l},toString:()=>{let e=Math.min(eW(A),eH),t=eK(t=>A.next(e*t).value,e,30);return e+"ms "+t}};return A}function e$(e){let t,i,{keyframes:n,velocity:r=0,power:s=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=e,m=n[0],f={done:!1,value:m},v=s*r,g=m+v,y=void 0===u?g:u(g);y!==g&&(v=y-m);let b=e=>-v*Math.exp(-e/a),V=e=>y+b(e),S=e=>{let t=b(e),i=V(e);f.done=Math.abs(t)<=c,f.value=f.done?y:i},A=e=>{let n;if(n=f.value,void 0!==h&&n<h||void 0!==d&&n>d){var r;t=e,i=eX({keyframes:[f.value,(r=f.value,void 0===h?d:void 0===d||Math.abs(h-r)<Math.abs(d-r)?h:d)],velocity:ej(V,e,f.value),damping:o,stiffness:l,restDelta:c,restSpeed:p})}};return A(0),{calculatedDuration:null,next:e=>{let n=!1;return(i||void 0!==t||(n=!0,S(e),A(e)),void 0!==t&&e>=t)?i.next(e-t):(n||S(e),f)}}}e.s({inertia:()=>e$},825576),e.s({keyframes:()=>tp},496065),e.s({easeIn:()=>eZ,easeInOut:()=>eQ,easeOut:()=>eJ},571143);let eZ=P(.42,0,1,1),eJ=P(0,0,.58,1),eQ=P(.42,0,.58,1);e.s({isEasingArray:()=>e0},891358);let e0=e=>Array.isArray(e)&&"number"!=typeof e[0];e.s({easingDefinitionToFunction:()=>e5},195463);let e1=e=>Array.isArray(e)&&"number"==typeof e[0],e2={linear:S.noop,easeIn:eZ,easeInOut:eQ,easeOut:eJ,circIn:E,circInOut:D,circOut:k,backIn:M,backInOut:C,backOut:x,anticipate:F},e5=e=>{if(e1(e)){(0,O.invariant)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,i,n,r]=e;return P(t,i,n,r)}return"string"==typeof e?((0,O.invariant)(void 0!==e2[e],"Invalid easing type '".concat(e,"'")),e2[e]):e};e.s({interpolate:()=>th},975279),e.s({pipe:()=>e9},938955);let e3=(e,t)=>i=>t(e(i)),e9=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(e3)};e.s({mix:()=>tu},513632),e.s({mixNumber:()=>e8},519783);let e8=(e,t,i)=>e+(t-e)*i;function e6(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function e4(e,t){return i=>i>0?t:e}let e7=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},te=[ed,eh,ec];function tt(e){let t=te.find(t=>t.test(e));if((0,O.warning)(!!t,"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!t)return!1;let i=t.parse(e);return t===ec&&(i=function(e){let{hue:t,saturation:i,lightness:n,alpha:r}=e;t/=360,n/=100;let s=0,a=0,o=0;if(i/=100){let e=n<.5?n*(1+i):n+i-n*i,r=2*n-e;s=e6(r,e,t+1/3),a=e6(r,e,t),o=e6(r,e,t-1/3)}else s=a=o=n;return{red:Math.round(255*s),green:Math.round(255*a),blue:Math.round(255*o),alpha:r}}(i)),i}let ti=(e,t)=>{let i=tt(e),n=tt(t);if(!i||!n)return e4(e,t);let r={...i};return e=>(r.red=e7(i.red,n.red,e),r.green=e7(i.green,n.green,e),r.blue=e7(i.blue,n.blue,e),r.alpha=e8(i.alpha,n.alpha,e),eh.transform(r))},tn=new Set(["none","hidden"]);function tr(e,t){return i=>e8(e,t,i)}function ts(e){return"number"==typeof e?tr:"string"==typeof e?(0,B.isCSSVariableToken)(e)?e4:ep.test(e)?ti:tl:Array.isArray(e)?ta:"object"==typeof e?ep.test(e)?ti:to:e4}function ta(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>ts(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function to(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=ts(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let tl=(e,t)=>{let i=eA.createTransformer(t),n=ey(e),r=ey(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?tn.has(e)&&!r.values.length||tn.has(t)&&!n.values.length?function(e,t){return tn.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}(e,t):e9(ta(function(e,t){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][r[a]],l=null!=(i=e.values[o])?i:0;n[s]=l,r[a]++}return n}(n,r),r.values),i):((0,O.warning)(!0,"Complex values '".concat(e,"' and '").concat(t,"' 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.")),e4(e,t))};function tu(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?e8(e,t,i):ts(e)(e,t)}function th(e,t){let{clamp:i=!0,ease:n,mixer:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=e.length;if((0,O.invariant)(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,i){let n=[],r=i||tu,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=e9(Array.isArray(t)?t[i]||S.noop:t,s)),n.push(s)}return n}(t,n,r),o=a.length,l=t=>{let i=0;if(o>1)for(;i<e.length-2&&!(t<e[i+1]);i++);let n=eN(e[i],e[i+1],t);return a[i](n)};return i?t=>l((0,en.clamp)(e[0],e[s-1],t)):l}function td(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=eN(0,t,n);e.push(e8(i,1,r))}}function tc(e){let t=[0];return td(t,e.length-1),t}function tp(e){var t;let{duration:i=300,keyframes:n,times:r,ease:s="easeInOut"}=e,a=e0(s)?s.map(e5):e5(s),o={done:!1,value:n[0]},l=th((t=r&&r.length===n.length?r:tc(n),t.map(e=>e*i)),n,{ease:Array.isArray(a)?a:n.map(()=>a||eQ).splice(0,n.length-1)});return{calculatedDuration:i,next:e=>(o.value=l(e),o.done=e>=i,o)}}e.s({defaultOffset:()=>tc},499512),e.s({fillOffset:()=>td},576783);let tm=e=>{let t=t=>{let{timestamp:i}=t;return e(i)};return{start:()=>V.frame.update(t,!0),stop:()=>(0,V.cancelFrame)(t),now:()=>V.frameData.isProcessing?V.frameData.timestamp:eO.now()}},tf={decay:e$,inertia:e$,tween:tp,keyframes:tp,spring:eX},tv=e=>e/100;class tg extends eB{flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=eD(n)?n:tf[n]||tp;l!==tp&&"number"!=typeof e[0]&&(t=e9(tv,tu(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(i=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=eW(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:t,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(r+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{resolved:i}=this;if(!i){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,V=r;if(c){let e=Math.min(this.currentTime,u)/h,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(V=s)),y=(0,en.clamp)(0,1,i)*h}let S=g?{done:!1,value:o[0]}:V.next(y);a&&(S.value=a(S.value));let{done:A}=S;g||null===l||(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&A);return P&&void 0!==n&&(S.value=b(o,this.options,n)),f&&f(S.value),P&&this.finish(),S}get duration(){let{resolved:e}=this;return e?d(e.calculatedDuration):0}get time(){return d(this.currentTime)}set time(e){e=h(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=d(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tm,onPlay:t,startTime:i}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}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(e){return this.startTime=0,this.tick(e,!0)}constructor(e){super(e),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:e}=this.options;e&&e()};let{name:t,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||ei,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(r,a,t,i,n),this.resolver.scheduleResolve()}}function ty(e){return new tg(e)}e.s({acceleratedValues:()=>tb},787102);let tb=new Set(["opacity","clipPath","filter","transform"]);function tV(e){let t;return()=>(void 0===t&&(t=e()),t)}e.s({startWaapiAnimation:()=>tT},65832),e.s({supportsLinearEasing:()=>tA},97639),e.s({memo:()=>tV},661429);let tS={linearEasing:void 0},tA=function(e,t){let i=tV(e);return()=>{var e;return null!=(e=tS[t])?e:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tP=e=>{let[t,i,n,r]=e;return"cubic-bezier(".concat(t,", ").concat(i,", ").concat(n,", ").concat(r,")")},tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tP([0,.65,.55,1]),circOut:tP([.55,0,1,.45]),backIn:tP([.31,.01,.66,-.59]),backOut:tP([.33,1.53,.69,.99])};function tT(e,t,i){let{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[t]:i};l&&(u.offset=l);let h=function e(t,i){if(t)return"function"==typeof t&&tA()?eK(t,i):e1(t)?tP(t):Array.isArray(t)?t.map(t=>e(t,i)||tw.easeOut):tw[t]}(o,r);return Array.isArray(h)&&(u.easing=h),e.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}function tx(e,t){e.timeline=t,e.onfinish=null}e.s({attachTimeline:()=>tx},295005),e.s({supportsWaapi:()=>tM},139522);let tM=tV(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tC={anticipate:F,backInOut:C,circInOut:D};class tF extends eB{initPlayback(e,t){var i,n;let{duration:r=300,times:s,ease:a,type:o,motionValue:l,name:u,startTime:h}=this.options;if(!(null==(i=l.owner)?void 0:i.current))return!1;if("string"==typeof a&&tA()&&a in tC&&(a=tC[a]),eD((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&tA()||!t||"string"==typeof t&&(t in tw||tA())||e1(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(e,t){let i=new tg({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(e,u);1===(e=h.keyframes).length&&(e[1]=e[0]),r=h.duration,s=h.times,a=h.ease,o="keyframes"}let d=tT(l.owner.current,u,e,{...this.options,duration:r,times:s,ease:a});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(tx(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(b(e,this.options,t)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:a,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return d(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return d(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.currentTime=h(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return S.noop;let{animation:i}=t;tx(i,e)}else this.pendingTimeline=e;return S.noop}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:i,duration:n,type:r,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,d=new tg({...u,keyframes:i,duration:n,type:r,ease:s,times:a,isGenerator:!0}),c=h(this.time);e.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=e;return tM()&&i&&tb.has(i)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}constructor(e){super(e);let{name:t,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new ek(r,(e,t)=>this.onKeyframesResolved(e,t),t,i,n),this.resolver.scheduleResolve()}}e.s({GroupPlaybackControls:()=>tk},746224),e.s({supportsScrollTimeline:()=>tE},830170);let tE=tV(()=>void 0!==window.ScrollTimeline);class tk{then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e,t){let i=this.animations.map(i=>tE()&&i.attachTimeline?i.attachTimeline(e):t(i));return()=>{i.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}}let tD=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return a=>{let o=f(n,e)||{},l=o.delay||n.delay||0,{elapsed:d=0}=n;d-=h(l);let y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function(e){let{when:t,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:h,...d}=e;return!!Object.keys(d).length}(o)&&(y={...y,...((e,t)=>{let{keyframes:i}=t;return i.length>2?p:u.transformProps.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:c:m})(e,y)}),y.duration&&(y.duration=h(y.duration)),y.repeatDelay&&(y.repeatDelay=h(y.repeatDelay)),void 0!==y.from&&(y.keyframes[0]=y.from);let S=!1;if(!1!==y.type&&(0!==y.duration||y.repeatDelay)||(y.duration=0,0===y.delay&&(S=!0)),(g.current||v.MotionGlobalConfig.skipAnimations)&&(S=!0,y.duration=0,y.delay=0),S&&!s&&void 0!==t.get()){let e=b(y.keyframes,o);if(void 0!==e)return V.frame.update(()=>{y.onUpdate(e),y.onComplete()}),new tk([])}return!s&&tF.supports(y)?new tF(y):new tg(y)}};e.s({setTarget:()=>tG},980517);var tI=e.i(497727);function tO(e,t){-1===e.indexOf(t)&&e.push(t)}function tR(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}function tB(e,t,i){let[...n]=e,r=t<0?n.length+t:t;if(r>=0&&r<n.length){let e=i<0?n.length+i:i,[r]=n.splice(t,1);n.splice(e,0,r)}return n}e.s({MotionValue:()=>tL,collectMotionValues:()=>tK,motionValue:()=>tj},33121),e.s({SubscriptionManager:()=>tN},80863),e.s({addUniqueItem:()=>tO,moveItem:()=>tB,removeItem:()=>tR},667252);class tN{add(e){return tO(this.subscriptions,e),()=>tR(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let tK={current:void 0};class tL{setCurrent(e){this.current=e,this.updatedAt=eO.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tN);let i=this.events[e].add(t);return"change"===e?()=>{i(),V.frame.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return tK.current&&tK.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=eO.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return eL(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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()}constructor(e,t={}){var i=this;this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=eO.now();i.updatedAt!==n&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(e),i.current!==i.prev&&i.events.change&&i.events.change.notify(i.current),t&&i.events.renderRequest&&i.events.renderRequest.notify(i.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}}function tj(e,t){return new tL(e,t)}function tG(e,t){let{transitionEnd:i={},transition:n={},...r}=o(e,t)||{};for(let t in r={...r,...i}){let i=(0,tI.resolveFinalValueInKeyframes)(r[t]);e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tj(i))}}e.s({getOptimisedAppearId:()=>tq},425705);var tU=e.i(322682);function tq(e){return e.props[tU.optimizedAppearDataAttribute]}e.s({addValueToWillChange:()=>tW},307409);var tH=e.i(746581);function tW(e,t){let i=e.getValue("willChange");if((0,tH.isMotionValue)(i)&&i.add)return i.add(t)}function tz(e,t){var i;let{delay:n=0,transitionOverride:r,type:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(a=r);let h=[],d=s&&e.animationState&&e.animationState.getState()[s];for(let t in l){let r=e.getValue(t,null!=(i=e.latestValues[t])?i:null),s=l[t];if(void 0===s||d&&function(e,t){let{protectedKeys:i,needsAnimating:n}=e,r=i.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,r}(d,t))continue;let o={delay:n,...f(a||{},t)},c=!1;if(window.MotionHandoffAnimation){let i=tq(e);if(i){let e=window.MotionHandoffAnimation(i,t,V.frame);null!==e&&(o.startTime=e,c=!0)}}tW(e,t),r.start(tD(t,r,s,e.shouldReduceMotion&&u.transformProps.has(t)?{type:!1}:o,e,c));let p=r.animation;p&&h.push(p)}return o&&Promise.all(h).then(()=>{V.frame.update(()=>{o&&tG(e,o)})}),h}function tY(e,t){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(e,t,"exit"===n.type?null==(i=e.presenceContext)?void 0:i.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let a=r?()=>Promise.all(tz(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0,a=[],o=(e.variantChildren.size-1)*n,l=1===r?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e*n}:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-e*n};return Array.from(e.variantChildren).sort(t_).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(tY(e,t,{...s,delay:i+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,r+i,a,o,n)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([a(),l(n.delay)]);{let[e,t]="beforeChildren"===u?[a,l]:[l,a];return e().then(()=>t())}}function t_(e,t){return e.sortNodePosition(t)}function tX(e,t){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>tY(e,t,n)));else if("string"==typeof t)i=tY(e,t,n);else{let r="function"==typeof t?o(e,t,n.custom):t;i=Promise.all(tz(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}let t$=l.variantProps.length,tZ=[...l.variantPriorityOrder].reverse(),tJ=l.variantPriorityOrder.length;function tQ(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t0(){return{animate:tQ(!0),whileInView:tQ(),whileHover:tQ(),whileTap:tQ(),whileDrag:tQ(),whileFocus:tQ(),exit:tQ()}}e.s({Feature:()=>t1},732953);class t1{update(){}constructor(e){this.isMounted=!1,this.node=e}}let t2=0,t5={animation:{Feature:class extends t1{updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,i.isAnimationControls)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(t=>{let{animation:i,options:n}=t;return tX(e,i,n)})),a=t0(),u=!0,h=t=>(i,n)=>{var r;let s=o(e,n,"exit"===t?null==(r=e.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:e,transitionEnd:t,...n}=s;i={...i,...n,...t}}return i};function d(o){let{props:d}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<t$;e++){let n=l.variantProps[e],r=t.props[n];((0,s.isVariantLabel)(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},p=[],m=new Set,f={},v=1/0;for(let t=0;t<tJ;t++){var g,y;let l=tZ[t],b=a[l],V=void 0!==d[l]?d[l]:c[l],S=(0,s.isVariantLabel)(V),A=l===o?b.isActive:null;!1===A&&(v=t);let P=V===c[l]&&V!==d[l]&&S;if(P&&u&&e.manuallyAnimateOnMount&&(P=!1),b.protectedKeys={...f},!b.isActive&&null===A||!V&&!b.prevProp||(0,i.isAnimationControls)(V)||"boolean"==typeof V)continue;let w=(g=b.prevProp,"string"==typeof(y=V)?y!==g:!!Array.isArray(y)&&!r(y,g)),T=w||l===o&&b.isActive&&!P&&S||t>v&&S,x=!1,M=Array.isArray(V)?V:[V],C=M.reduce(h(l),{});!1===A&&(C={});let{prevResolvedValues:F={}}=b,E={...F,...C},k=t=>{T=!0,m.has(t)&&(x=!0,m.delete(t)),b.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in E){let t=C[e],i=F[e];if(!f.hasOwnProperty(e))((0,n.isKeyframesTarget)(t)&&(0,n.isKeyframesTarget)(i)?r(t,i):t===i)?void 0!==t&&m.has(e)?k(e):b.protectedKeys[e]=!0:null!=t?k(e):m.add(e)}b.prevProp=V,b.prevResolvedValues=C,b.isActive&&(f={...f,...C}),u&&e.blockInitialAnimation&&(T=!1);let D=!(P&&w)||x;T&&D&&p.push(...M.map(e=>({animation:e,options:{type:l}})))}if(m.size){let t={};m.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=null!=n?n:null}),p.push({animation:t})}let b=!!p.length;return u&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),u=!1,b?t(p):Promise.resolve()}return{animateChanges:d,setActive:function(t,i){var n;if(a[t].isActive===i)return Promise.resolve();null==(n=e.variantChildren)||n.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)}),a[t].isActive=i;let r=d(t);for(let e in a)a[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>a,reset:()=>{a=t0(),u=!0}}}(e))}}},exit:{Feature:class extends t1{update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}constructor(){super(...arguments),this.id=t2++}}}}},[412285,324167,202359,596364,57103,487616,587672,936003,349017,992382,631159,810085,954,93107,950886,353201,855854,929113,442616,832926,162438,888590,740620,118119,208902,593599,509681,825576,571143,891358,195463,938955,519783,513632,975279,576783,499512,496065,908273,787102,661429,97639,65832,295005,139522,799276,830170,746224,898011,667252,80863,33121,980517,425705,307409,128791,832169,732953]],682361:[e=>{"use strict";e.s({},682361),e.i(576254),(0,e.i(918404).memo)(()=>void 0!==window.ScrollTimeline),e.i(526626),e.i(796254);e.i(231280),e.s({hover:()=>s},9320),e.s({isDragActive:()=>i,isDragging:()=>t},463036);let t={x:!1,y:!1};function i(){return t.x||t.y}function n(e,t,i){var n;if(e instanceof Element)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let s=null!=(n=null==i?void 0:i[e])?n:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function r(e){return t=>{"touch"===t.pointerType||i()||e(t)}}function s(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[s,a,o]=function(e,t){let i=n(e),r=new AbortController;return[i,{passive:!0,...t,signal:r.signal},()=>r.abort()]}(e,i),l=r(e=>{let{target:i}=e,n=t(e);if("function"!=typeof n||!i)return;let s=r(e=>{n(e),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,a)});return s.forEach(e=>{e.addEventListener("pointerenter",l,a)}),o}function a(e){if("x"===e||"y"===e)if(t[e])return null;else return t[e]=!0,()=>{t[e]=!1};return t.x||t.y?null:(t.x=t.y=!0,()=>{t.x=t.y=!1})}e.s({resolveElements:()=>n},593460),new WeakSet,e.s({setDragLock:()=>a},123205)},[463036,593460,9320,123205]],399136:[e=>{"use strict";e.s({addPointerInfo:()=>n,extractEventInfo:()=>i},399136),e.s({isPrimaryPointer:()=>t},45752);let t=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function i(e){return{point:{x:e.pageX,y:e.pageY}}}let n=e=>n=>t(n)&&e(n,i(n))},[45752]],546280:e=>{"use strict";e.s({HoverGesture:()=>a});var t=e.i(732953);e.i(682361);var i=e.i(9320),n=e.i(399136),r=e.i(570119);function s(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",i);let a=s[i?"onHoverStart":"onHoverEnd"];a&&r.frame.postRender(()=>a(t,(0,n.extractEventInfo)(t)))}class a extends t.Feature{mount(){let{current:e,props:t}=this.node;e&&(this.unmount=(0,i.hover)(e,e=>(s(this.node,e,!0),e=>s(this.node,e,!1)),{passive:!t.onHoverStart&&!t.onHoverEnd}))}unmount(){}}},821856:e=>{"use strict";function t(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}e.s({addDomEvent:()=>t})},283098:e=>{"use strict";e.s({FocusGesture:()=>r});var t=e.i(821856),i=e.i(732953),n=e.i(938955);class r extends i.Feature{onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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,n.pipe)((0,t.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,t.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}},621015:e=>{"use strict";e.s({addPointerEvent:()=>n});var t=e.i(821856),i=e.i(399136);function n(e,n,r,s){return(0,t.addDomEvent)(e,n,(0,i.addPointerInfo)(r),s)}},277:e=>{"use strict";e.s({gestureAnimations:()=>S},277);var t=e.i(546280),i=e.i(283098),n=e.i(399136),r=e.i(821856),s=e.i(621015),a=e.i(732953),o=e.i(938955);e.i(682361);var l=e.i(463036);let u=(e,t)=>!!t&&(e===t||u(e,t.parentElement));e.i(576254);var h=e.i(796254),d=e.i(570119);function c(e,t){if(!t)return;let i=new PointerEvent("pointer"+e);t(i,(0,n.extractEventInfo)(i))}class p extends a.Feature{startPress(e,t){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&d.frame.postRender(()=>i(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,l.isDragActive)()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&d.frame.postRender(()=>i(e,t))}mount(){let e=this.node.getProps(),t=(0,s.addPointerEvent)(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=(0,r.addDomEvent)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,o.pipe)(t,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=h.noop,this.removeEndListeners=h.noop,this.removeAccessibleListeners=h.noop,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=(e,t)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||u(this.node.current,e.target)?i:n;s&&d.frame.update(()=>s(e,t))},r=(0,s.addPointerEvent)(window,"pointerup",n,{passive:!(i.onTap||i.onPointerUp)}),a=(0,s.addPointerEvent)(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,o.pipe)(r,a),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let t=e=>{"Enter"===e.key&&this.checkPressEnd()&&c("up",(e,t)=>{let{onTap:i}=this.node.getProps();i&&d.frame.postRender(()=>i(e,t))})};this.removeEndListeners(),this.removeEndListeners=(0,r.addDomEvent)(this.node.current,"keyup",t),c("down",(e,t)