PageSourceSearch

https://de.serlo.org/_next/static/chunks/2217.dbcb803ceed8d1b9.js

js serlo.org collected 2026-09-24 17:44:55 UTC 129,131 bytes, 10 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2217],{2217:function(t,e,i){let n,r,s,o,a;i.r(e),i.d(e,{AcceleratedAnimation:function(){return eW},AnimatePresence:function(){return r4},AnimateSharedLayout:function(){return o8},DeprecatedLayoutGroupContext:function(){return se},DragControls:function(){return oD},FlatTree:function(){return nB},LayoutGroup:function(){return so},LayoutGroupContext:function(){return ne.p},LazyMotion:function(){return st.X},MotionConfig:function(){return r7},MotionConfigContext:function(){return rJ._},MotionContext:function(){return oQ.v},MotionGlobalConfig:function(){return E.c},MotionValue:function(){return eZ},PresenceContext:function(){return i8.O},Reorder:function(){return l},SwitchLayoutGroupContext:function(){return ni.g},VisualElement:function(){return rI},addPointerEvent:function(){return ic},addPointerInfo:function(){return iu},addScaleCorrector:function(){return no.B},animate:function(){return oc},animateMini:function(){return oT},animateValue:function(){return eM},animateVisualElement:function(){return e9},animationControls:function(){return s3},animations:function(){return io},anticipate:function(){return W},backIn:function(){return O},backInOut:function(){return I},backOut:function(){return B},buildTransform:function(){return oG.P},calcLength:function(){return iE},cancelFrame:function(){return R.Pn},cancelSync:function(){return ai},circIn:function(){return U},circInOut:function(){return $},circOut:function(){return N},clamp:function(){return tp.u},color:function(){return tb},complex:function(){return tL},createBox:function(){return iW},createRendererMotionComponent:function(){return oj.B},createScopedAnimate:function(){return oh},cubicBezier:function(){return L},delay:function(){return nI},disableInstantTransitions:function(){return o$},distance:function(){return id},distance2D:function(){return ip},domAnimation:function(){return sl},domMax:function(){return su},domMin:function(){return sa},easeIn:function(){return t5},easeInOut:function(){return t9},easeOut:function(){return t3},filterProps:function(){return r8.L},findSpring:function(){return t_},frame:function(){return R.Wi},frameData:function(){return R.frameData},frameSteps:function(){return R.yL},inView:function(){return oC},inertia:function(){return t2},interpolate:function(){return ey},invariant:function(){return H},isBrowser:function(){return rV.j},isDragActive:function(){return ib},isMotionComponent:function(){return oO},isMotionValue:function(){return e0.i},isValidMotionProp:function(){return oM.Z},keyframes:function(){return ew},m:function(){return rq},makeUseVisualState:function(){return oJ.t},mirrorEasing:function(){return F},mix:function(){return eg},motion:function(){return r_},motionValue:function(){return e_},optimizedAppearDataAttribute:function(){return eQ.M},pipe:function(){return ee},progress:function(){return ei},px:function(){return _.px},resolveMotionValue:function(){return nO.b},reverseEasing:function(){return j},scroll:function(){return sH},scrollInfo:function(){return sU},spring:function(){return t1},stagger:function(){return o7},startOptimizedAppearAnimation:function(){return oq},steps:function(){return an},sync:function(){return ae},transform:function(){return sm},unwrapMotionComponent:function(){return oI},useAnimate:function(){return od},useAnimateMini:function(){return oS},useAnimation:function(){return oA},useAnimationControls:function(){return ob},useAnimationFrame:function(){return sq},useCycle:function(){return oE},useDeprecatedAnimatedState:function(){return o5},useDeprecatedInvertedScale:function(){return o6},useDomEvent:function(){return oF},useDragControls:function(){return oL},useElementScroll:function(){return sZ},useForceUpdate:function(){return si},useInView:function(){return oR},useInstantLayoutTransition:function(){return oW},useInstantTransition:function(){return oN},useIsPresent:function(){return nt},useIsomorphicLayoutEffect:function(){return r6.L},useMotionTemplate:function(){return sd},useMotionValue:function(){return sh},useMotionValueEvent:function(){return sP},usePresence:function(){return i7},useReducedMotion:function(){return s1},useReducedMotionConfig:function(){return s2},useResetProjection:function(){return oz},useScroll:function(){return sX},useSpring:function(){return sx},useTime:function(){return sQ},useTransform:function(){return sv},useUnmountEffect:function(){return s9},useVelocity:function(){return sw},useViewportScroll:function(){return s_},useWillChange:function(){return s0},visualElementStore:function(){return rF},warning:function(){return G},wrap:function(){return ot}});var l={};function u(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}i.r(l),i.d(l,{Group:function(){return as},Item:function(){return au}});var h=i(45357),c=i(72512);function d(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var p=i(6798),f=i(25356);function m(t,e,i){let n=t.getProps();return(0,f.o)(n,e,void 0!==i?i:n.custom,t)}var v=i(28040),g=i(8716);let y=t=>1e3*t,x=t=>t/1e3,P={type:"spring",stiffness:500,damping:25,restSpeed:10},w=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),T={type:"keyframes",duration:.8},S={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(t,{keyframes:e})=>e.length>2?T:g.G.has(t)?t.startsWith("scale")?w(e[1]):P:S;function A(t,e){return t?t[e]||t.default||t:void 0}var E=i(56625);let M={current:!1},V=t=>null!==t;function C(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(V),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}var R=i(39916),D=i(54313);
1let k=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function L(t,e,i,n){if(t===e&&i===n)return D.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=k(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:k(r(t),e,n)}let F=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,j=t=>e=>1-t(1-e),B=L(.33,1.53,.69,.99),O=j(B),I=F(O),W=t=>(t*=2)<1?.5*O(t):.5*(2-Math.pow(2,-10*(t-1))),U=t=>1-Math.sin(Math.acos(t)),N=j(U),$=F(U),z=t=>/^0[^.\s]+$/u.test(t),G=D.Z,H=D.Z,Y=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var K=i(82648);let X=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var Z=i(71401),_=i(85728);let q=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Q=t=>t===Z.Rx||t===_.px,J=(t,e)=>parseFloat(t.split(", ")[e]),tt=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return J(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?J(e[1],t):0}},te=new Set(["x","y","z"]),ti=g._.filter(t=>!te.has(t)),tn={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tt(4,13),y:tt(5,14)};tn.translateX=tn.x,tn.translateY=tn.y;let tr=t=>e=>e.test(t),ts=[Z.Rx,_.px,_.aQ,_.RW,_.vw,_.vh,{test:t=>"auto"===t,parse:t=>t}],to=t=>ts.find(tr(t)),ta=new Set,tl=!1,tu=!1;function th(){if(tu){let t=Array.from(ta).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ti.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tu=!1,tl=!1,ta.forEach(t=>t.complete()),ta.clear()}function tc(){ta.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tu=!0)})}class td{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ta.add(this),tl||(tl=!0,R.Wi.read(tc),R.Wi.resolveKeyframes(th))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ta.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ta.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}var tp=i(15992);let tf=t=>Math.round(1e5*t)/1e5,tm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tg=(t,e)=>i=>!!("string"==typeof i&&tv.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),ty=(t,e,
1i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tm);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tx=t=>(0,tp.u)(0,255,t),tP={...Z.Rx,transform:t=>Math.round(tx(t))},tw={test:tg("rgb","red"),parse:ty("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tP.transform(t)+", "+tP.transform(e)+", "+tP.transform(i)+", "+tf(Z.Fq.transform(n))+")"},tT={test:tg("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tw.transform},tS={test:tg("hsl","hue"),parse:ty("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+_.aQ.transform(tf(e))+", "+_.aQ.transform(tf(i))+", "+tf(Z.Fq.transform(n))+")"},tb={test:t=>tw.test(t)||tT.test(t)||tS.test(t),parse:t=>tw.test(t)?tw.parse(t):tS.test(t)?tS.parse(t):tT.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tw.transform(t):tS.transform(t)},tA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tE="number",tM="color",tV=/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 tC(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tV,t=>(tb.test(t)?(n.color.push(s),r.push(tM),i.push(tb.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tE),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tR(t){return tC(t).values}function tD(t){let{split:e,types:i}=tC(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tE?r+=tf(t[s]):e===tM?r+=tb.transform(t[s]):r+=t[s]}return r}}let tk=t=>"number"==typeof t?0:t,tL={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tm))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tA))||void 0===i?void 0:i.length)||0)>0},parse:tR,createTransformer:tD,getAnimatableNone:function(t){let e=tR(t);return tD(t)(e.map(tk))}},tF=new Set(["brightness","contrast","saturate","opacity"]);function tj(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tm)||[];if(!n)return t;let r=i.replace(n,""),s=tF.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tB=/\b([a-z-]*)\(.*?\)/gu,tO={...tL,getAnimatableNone:t=>{let e=t.match(tB);return e?e.map(tj).join(" "):t}},tI={...i(39291).j,color:tb,backgroundColor:tb,outlineColor:tb,fill:tb,stroke:tb,borderColor:tb,borderTopColor:tb,borderRightColor:tb,borderBottomColor:tb,borderLeftColor:tb,filter:tO,WebkitFilter:tO},tW=t=>tI[t];function tU(t,e){let i=tW(t);return i!==tO&&(i=tL),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tN=new Set(["auto","none","0"]);class t$ extends td{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,K.t)(n))){let r=function t(e,i,n=1){H(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=X.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return Y(t)?parseFloat(t):t}return(0,K.t)(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!q.has(i)||2!==t.length)return;let[n,r]=t,s=to(n),o=to(r);if(s!==o){if(Q(s)&&Q(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||z(n))&&i.push(e)}
1i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tN.has(e)&&tC(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tU(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tn[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=tn[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function tz(t){return"function"==typeof t}function tG(){n=void 0}let tH={now:()=>(void 0===n&&tH.set(R.frameData.isProcessing||E.c.useManualTiming?R.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(tG)}},tY=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tL.test(t)||"0"===t)&&!t.startsWith("url("));class tK{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tH.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tc(),th()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=tH.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=tY(r,e),a=tY(s,e);return G(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(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||tz(i))&&n)}(t,i,n,r)){if(M.current||!s){null==a||a(C(t,this.options,e)),null==o||o(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function tX(t,e){return e?1e3/e*t:0}function tZ(t,e,i){let n=Math.max(e-5,0);return tX(i-t(n),e-n)}function t_({duration:t=800,bounce:e=.25,velocity:i=0,mass:n=1}){let r,s;G(t<=y(10),"Spring duration must be 10 seconds or less");let o=1-e;o=(0,tp.u)(.05,1,o),t=(0,tp.u)(.01,10,x(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/tq(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=tq(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=y(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}function tq(t,e){return t*Math.sqrt(1-e*e)}let tQ=["duration","bounce"],tJ=["stiffness","damping","mass"];function t0(t,e){return e.some(e=>void 0!==t[e])}function t1({keyframes:t,restDelta:e,restSpeed:i,...n}){let r;let s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!t0(t,tJ)&&t0(t,tQ)){let i=t_(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-x(n.velocity||0)}),f=d||0,m=u/(2*Math.sqrt(l*h)),v=o-s,g=x(Math.sqrt(l/h)),P=5>Math.abs(v);if(i||(i=P?.01:2),e||(e=P?.005:.5),m<1){let t=tq(g,m);r=e=>o-Math.exp(-m*g*e)*((f+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)r=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{let t=g*Math.sqrt(m*m-1);r=e=>{let i=Math.exp(-m*g*e),n=Math.min(t*e,300);return o-i*((f+m*g*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}return{calculatedDuration:p&&c||null,next:t=>{let n=r(t);if(p)a.done=t>=c;else{let s=0;m<1&&(s=0===t?y(f):tZ(r,t,n));let l=Math.abs(s)<=i,u=Math.abs(o-n)<=e;a.done=l&&u}return a.value=a.done?o:n,a}}}function t2({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let P=t=>-g*Math.exp(-t/n),w=t=>x+P(t),T=t=>{let e=P(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},S=t=>{m(f.value)&&(c=t,d=t1({keyframes:[f.value,v(f.value)],velocity:tZ(w,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}
1))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),S(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),f)}}}let t5=L(.42,0,1,1),t3=L(0,0,.58,1),t9=L(.42,0,.58,1),t6=t=>Array.isArray(t)&&"number"!=typeof t[0],t4=t=>Array.isArray(t)&&"number"==typeof t[0],t8={linear:D.Z,easeIn:t5,easeInOut:t9,easeOut:t3,circIn:U,circInOut:$,circOut:N,backIn:O,backInOut:I,backOut:B,anticipate:W},t7=t=>{if(t4(t)){H(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return L(e,i,n,r)}return"string"==typeof t?(H(void 0!==t8[t],`Invalid easing type '${t}'`),t8[t]):t},et=(t,e)=>i=>e(t(i)),ee=(...t)=>t.reduce(et),ei=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},en=(t,e,i)=>t+(e-t)*i;function er(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}function es(t,e){return i=>i>0?e:t}let eo=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ea=[tT,tw,tS],el=t=>ea.find(e=>e.test(t));function eu(t){let e=el(t);if(G(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tS&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=er(a,n,t+1/3),s=er(a,n,t),o=er(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let eh=(t,e)=>{let i=eu(t),n=eu(e);if(!i||!n)return es(t,e);let r={...i};return t=>(r.red=eo(i.red,n.red,t),r.green=eo(i.green,n.green,t),r.blue=eo(i.blue,n.blue,t),r.alpha=en(i.alpha,n.alpha,t),tw.transform(r))},ec=new Set(["none","hidden"]);function ed(t,e){return i=>en(t,e,i)}function ep(t){return"number"==typeof t?ed:"string"==typeof t?(0,K.t)(t)?es:tb.test(t)?eh:ev:Array.isArray(t)?ef:"object"==typeof t?tb.test(t)?eh:em:es}function ef(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ep(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function em(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ep(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ev=(t,e)=>{let i=tL.createTransformer(e),n=tC(t),r=tC(e);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?ec.has(t)&&!r.values.length||ec.has(e)&&!n.values.length?ec.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:ee(ef(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):(G(!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.`),es(t,e))};function eg(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?en(t,e,i):ep(t)(t,e)}function ey(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(H(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||eg,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ee(Array.isArray(e)?e[i]||D.Z:e,s)),n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=ei(t[i],t[i+1],e);return o[i](n)};return i?e=>l((0,tp.u)(t[0],t[s-1],e)):l}function ex(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=ei(0,e,n);t.push(en(i,1,r))}}function eP(t){let e=[0];return ex(e,t.length-1),e}function ew({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=t6(n)?n.map(t7):t7(n),s={done:!1,value:e[0]},o=ey((i&&i.length===e.length?i:eP(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||t9).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}function eT(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 eS=t=>{let e=({timestamp:e})=>t(e);return{start:()=>R.Wi.update(e,!0),stop:()=>(0,R.Pn)(e),now:()=>R.frameData.isProcessing?R.frameData.timestamp:tH.now()}},eb={decay:t2,inertia:t2,tween:ew,keyframes:ew,spring:t1},eA=t=>t/100;class eE extends tK{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||td;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=tz(n)?n:eb[n]||ew;l!==ew&&"number"!=typeof t[0]&&(e=ee(eA,eg(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=eT(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=(0,tp.u)(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:w}=P;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&void 0!==n&&(P.value=C(a,this.options,n)),m&&m(P.value),T&&this.finish(),P}get duration(){let{resolved:t}=this;return t?x(t.calculatedDuration):0}get time(){return x(this.currentTime)}set time(t){t=y(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=x(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eS,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();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 t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function eM(t){return new eE(t)}let eV=new Set(["opacity","clipPath","filter","transform"]),eC=(t,e)=>{let i="",n=Math.max(Math.round(e/10),2);for(let e=0;e<n;e++)i+=t(ei(0,n-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};function eR(t){let e;return()=>(void 0===e&&(e=t()),e)}let eD={linearEasing:void 0},ek=function(t,e){let i=eR(t);return()=>{var t;return null!==(t=eD[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eL=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eF={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eL([0,.65,.55,1]),circOut:eL([.55,0,1,.45]),backIn:eL([.31,.01,.66,-.59]),backOut:eL([.33,1.53,.69,.99])};function ej(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&ek()?eC(e,i):t4(e)?eL(e):Array.isArray(e)?e.map(e=>t(e,i)||eF.easeOut):eF[e]}(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}function eB(t,e){t.timeline=e,t.onfinish=null}let eO=eR(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eI={anticipate:W,backInOut:I,circInOut:$};class eW extends tK{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new t$(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&ek()&&o in eI&&(o=eI[o]),tz((n=this.options).type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&ek()||!e||"string"==typeof e&&(e in eF||ek())||t4(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new eE({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[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"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let c=ej(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(eB(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set(C(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return x(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return x(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=y(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return D.Z;let{animation:i}=e;eB(i,t)}else this.pendingTimeline=t;return D.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eE({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=y(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return eO()&&i&&eV.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
1date&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let eU=eR(()=>void 0!==window.ScrollTimeline);class eN{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>eU()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let e$=(t,e,i,n={},r,s)=>o=>{let a=A(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=y(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...b(t,h)}),h.duration&&(h.duration=y(h.duration)),h.repeatDelay&&(h.repeatDelay=y(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(c=!0)),(M.current||E.c.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=C(h.keyframes,a);if(void 0!==t)return R.Wi.update(()=>{h.onUpdate(t),h.onComplete()}),new eN([])}return!s&&eW.supports(h)?new eW(h):new eE(h)};var ez=i(56632);function eG(t,e){-1===t.indexOf(e)&&t.push(e)}function eH(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class eY{constructor(){this.subscriptions=[]}add(t){return eG(this.subscriptions,t),()=>eH(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let eK=t=>!isNaN(parseFloat(t)),eX={current:void 0};class eZ{constructor(t,e={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=tH.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tH.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=eK(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new eY);let i=this.events[t].add(e);return"change"===t?()=>{i(),R.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return eX.current&&eX.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=tH.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tX(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e_(t,e){return new eZ(t,e)}function eq(t,e){let{transitionEnd:i={},transition:n={},...r}=m(t,e)||{};for(let e in r={...r,...i}){let i=(0,ez.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,e_(i))}}var eQ=i(43208);function eJ(t){return t.props[eQ.M]}var e0=i(63690);function e1(t,e){let i=t.getValue("willChange");if((0,e0.i)(i)&&i.add)return i.add(e)}function e2(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],h=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),r=l[e];if(void 0===r||h&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(h,e))continue;let a={delay:i,...A(o||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=eJ(t);if(i){let t=window.MotionHandoffAnimation(i,e,R.Wi);null!==t&&(a.startTime=t,c=!0)}}e1(t,e),n.start(e$(e,n,r,t.shouldReduceMotion&&g.G.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{R.Wi.update(()=>{a&&eq(t,a)})}),u}function e5(t,e,i={}){var n;let r=m(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(e2(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
1return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(e3).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(e5(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function e3(t,e){return t.sortNodePosition(e)}function e9(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e5(t,e,i)));else if("string"==typeof e)n=e5(t,e,i);else{let r="function"==typeof e?m(t,e,i.custom):e;n=Promise.all(e2(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}let e6=v.V.length,e4=[...v.e].reverse(),e8=v.e.length;function e7(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function it(){return{animate:e7(!0),whileInView:e7(),whileHover:e7(),whileTap:e7(),whileDrag:e7(),whileFocus:e7(),exit:e7()}}class ie{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ii extends ie{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>e9(t,e,i))),i=it(),n=!0,r=e=>(i,n)=>{var r;let s=m(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<e6;t++){let n=v.V[t],r=e.props[n];((0,p.$)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,f={},m=1/0;for(let e=0;e<e8;e++){var g;let v=e4[e],y=i[v],x=void 0!==o[v]?o[v]:a[v],P=(0,p.$)(x),w=v===s?y.isActive:null;!1===w&&(m=e);let T=x===a[v]&&x!==o[v]&&P;if(T&&n&&t.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...f},!y.isActive&&null===w||!x&&!y.prevProp||(0,h.H)(x)||"boolean"==typeof x)continue;let S=(g=y.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!d(x,g)),b=S||v===s&&y.isActive&&!T&&P||e>m&&P,A=!1,E=Array.isArray(x)?x:[x],M=E.reduce(r(v),{});!1===w&&(M={});let{prevResolvedValues:V={}}=y,C={...V,...M},R=e=>{b=!0,u.has(e)&&(A=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=M[t],i=V[t];if(!f.hasOwnProperty(t))((0,c.C)(e)&&(0,c.C)(i)?d(e,i):e===i)?void 0!==e&&u.has(t)?R(t):y.protectedKeys[t]=!0:null!=e?R(t):u.add(t)}y.prevProp=x,y.prevResolvedValues=M,y.isActive&&(f={...f,...M}),n&&t.blockInitialAnimation&&(b=!1);let D=!(T&&S)||A;b&&D&&l.push(...E.map(t=>({animation:t,options:{type:v}})))}if(u.size){let e={};u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),l.push({animation:e})}let y=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(y=!1),n=!1,y?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=it(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,h.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let ir=0;class is extends ie{constructor(){super(...arguments),this.id=ir++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let io={animation:{Feature:ii},exit:{Feature:is}},ia=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function il(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let iu=t=>e=>ia(e)&&t(e,il(e));function ih(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function ic(t,e,i,n){return ih(t,e,iu(i),n)}let id=(t,e)=>Math.abs(t-e);function ip(t,e){return Math.sqrt(id(t.x,e.x)**2+id(t.y,e.y)**2)}class im{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iy(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=ip(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=R.frameData;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iv(e,this.transformPagePoint),R.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iy("pointercancel"===t.type?this.lastMoveEventInfo:iv(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!ia(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=iv(il(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=R.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iy(s,this.history)),this.removeListeners=ee(ic(this.contextWindow,"pointermove",this.handlePointerMove),ic(this.contextWindow,"pointerup",this.handlePointerUp),ic(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.Pn)(this.updatePoint)}}function iv(t,e){return e?{point:e(t.point)}:t}function ig(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iy({point:t},e){return{point:t,delta:ig(t,ix(e)),offset:ig(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=ix(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>y(.1)));)i--;if(!n)return{x:0,y:0};let s=x(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function ix(t){return t[t.length-1]}function iP(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let iw=iP("dragHorizontal"),iT=iP("dragVertical");function iS(t){let e=!1;if("y"===t)e=iT();else if("x"===t)e=iw();else{let t=iw(),i=iT();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function ib(){let t=iS(!0);return!t||(t(),!1)}var iA=i(48027);function iE(t){return t.max-t.min}function iM(t,e,i,n=.5){t.origin=n,t.originPoint=en(e.min,e.max,t.origin),t.scale=iE(i)/iE(e),t.translate=en(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 iV(t,e,i,n){iM(t.x,e.x,i.x,n?n.originX:void 0),iM(t.y,e.y,i.y,n?n.originY:void 0)}function iC(t,e,i){t.min=i.min+e.min,t.max=t.min+iE(e)}function iR(t,e,i){t.min=e.min-i.min,t.max=t.min+iE(e)}function iD(t,e,i){iR(t.x,e.x,i.x),iR(t.y,e.y,i.y)}function ik(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iL(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iF(t,e,i){return{min:ij(t,e),max:ij(t,i)}}function ij(t,e){return"number"==typeof t?t:t[e]||0}let iB=()=>({translate:0,scale:1,origin:0,originPoint:0}),iO=()=>({x:iB(),y:iB()}),iI=()=>({min:0,max:0}),iW=()=>({x:iI(),y:iI()});function iU(t){return[t("x"),t("y")]}function iN({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function i$(t){return void 0===t||1===t}function iz({scale:t,scaleX:e,scaleY:i}){return!i$(t)||!i$(e)||!i$(i)}function iG(t){return iz(t)||iH(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iH(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iY(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iK(t,e=0,i=1,n,r){t.min=iY(t.min,e,i,n,r),t.max=iY(t.max,e,i,n,r)}function iX(t,{x:e,y:i}){iK(t.x,e.translate,e.scale,e.originPoint),iK(t.y,i.translate,i.scale,i.originPoint)}function iZ(t,e){t.min=t.min+e,t.max=t.max+e}function i_(t,e,i,n,r=.5){let s=en(t.min,t.max,r);iK(t,e,i,s,n)}function iq(t,e){i_(t.x,e.x,e.scaleX,e.scale,e.originX),i_(t.y,e.y,e.scaleY,e.scale,e.originY)}function iQ(t,e){return iN(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iJ=({current:t})=>t?t.ownerDocument.defaultView:null,i0=new WeakMap;class i1{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iW(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new im(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(il(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iS(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iU(t=>{let e=this.getAxisMotionValue(t).get()||0;if(_.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=iE(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&R.Wi.postRender(()=>r(t,e)),e1(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iU(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iJ(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&R.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i2(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?en(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?en(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&(0,iA.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ik(t.x,i,r),y:ik(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iF(t,"left","right"),y:iF(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iU(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,iA.I)(e))return!1;let n=e.current;H(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=iQ(t,i),{scroll:r}=e;return r&&(iZ(n.x,r.offset.x),iZ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:iL((t=r.layout.layoutBox).x,s.x),y:iL(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iN(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iU(o=>{if(!i2(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e1(this.visualElement,t),i.start(e$(t,i,0,e,this.visualElement,!1))}stopAnimation(){iU(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iU(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iU(e=>{let{drag:i}=this.getProps();if(!i2(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-en(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,iA.I)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iU(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iE(t),r=iE(e);return r>n?i=ei(e.min,e.max-n,t.min):n>r&&(i=ei(t.min,t.max-r,e.min)),(0,tp.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iU(e=>{if(!i2(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(en(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;i0.set(this.visualElement,this);let t=ic(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,iA.I)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.Wi.read(e);let r=ih(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iU(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function i2(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i5 extends ie{constructor(t){super(t),this.removeGroupControls=D.Z,this.removeListeners=D.Z,this.controls=new i1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let i3=t=>(e,i)=>{t&&R.Wi.postRender(()=>t(e,i))};class i9 extends ie{constructor(){super(...arguments),this.removePointerDownListener=D.Z}onPointerDown(t){this.session=new im(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iJ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i3(t),onStart:i3(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&R.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ic(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i6=i(52322),i4=i(2784),i8=i(68340);function i7(){let t=(0,i4.useContext)(i8.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,i4.useId)();(0,i4.useEffect)(()=>n(r),[]);let s=(0,i4.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,s]:[!0]}function nt(){var t;return null===(t=(0,i4.useContext)(i8.O))||t.isPresent}var ne=i(87792),ni=i(37940);let nn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ns={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!_.px.test(t))return t;t=parseFloat(t)}let i=nr(t,e.target.x),n=nr(t,e.target.y);return`${i}% ${n}%`}};var no=i(77839),na=i(67169);class nl extends i4.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,no.B)(nh),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),nn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||R.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),na.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nu(t){let[e,i]=i7(),n=(0,i4.useContext)(ne.p);return(0,i6.jsx)(nl,{...t,layoutGroup:n,switchLayoutGroup:(0,i4.useContext)(ni.g),isPresent:e,safeToRemove:i})}let nh={borderRadius:{...ns,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomLeftRadius:ns,borderBottomRightRadius:ns,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tL.parse(t);if(n.length>5)return t;let r=tL.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=en(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nc=["TopLeft","TopRight","BottomLeft","BottomRight"],nd=nc.length,np=t=>"string"==typeof t?parseFloat(t):t,nf=t=>"number"==typeof t||_.px.test(t);function nm(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nv=ny(0,.5,N),ng=ny(.5,.95,D.Z);function ny(t,e,i){return n=>n<t?0:n>e?1:i(ei(t,e,n))}function nx(t,e){t.min=e.min,t.max=e.max}function nP(t,e){nx(t.x,e.x),nx(t.y,e.y)}function nw(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nT(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nS(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(_.aQ.test(e)&&(e=parseFloat(e),e=en(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=en(s.min,s.max,n);t===s&&(a-=e),t.min=nT(t.min,e,i,a,r),t.max=nT(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nb=["x","scaleX","originX"],nA=["y","scaleY","originY"];
1function nE(t,e,i,n){nS(t.x,e,nb,i?i.x:void 0,n?n.x:void 0),nS(t.y,e,nA,i?i.y:void 0,n?n.y:void 0)}function nM(t){return 0===t.translate&&1===t.scale}function nV(t){return nM(t.x)&&nM(t.y)}function nC(t,e){return t.min===e.min&&t.max===e.max}function nR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nD(t,e){return nR(t.x,e.x)&&nR(t.y,e.y)}function nk(t){return iE(t.x)/iE(t.y)}function nL(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nF{constructor(){this.members=[]}add(t){eG(this.members,t),t.scheduleRender()}remove(t){if(eH(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nj=(t,e)=>t.depth-e.depth;class nB{constructor(){this.children=[],this.isDirty=!1}add(t){eG(this.children,t),this.isDirty=!0}remove(t){eH(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nj),this.isDirty=!1,this.children.forEach(t)}}var nO=i(34776);function nI(t,e){let i=tH.now(),n=({timestamp:r})=>{let s=r-i;s>=e&&((0,R.Pn)(n),t(s-e))};return R.Wi.read(n,!0),()=>(0,R.Pn)(n)}function nW(t){return t instanceof SVGElement&&"svg"!==t.tagName}function nU(t,e,i){let n=(0,e0.i)(t)?t:e_(t);return n.start(e$("",n,e,i)),n.animation}let nN={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},n$="undefined"!=typeof window&&void 0!==window.MotionDebug,nz=["","X","Y","Z"],nG={visibility:"hidden"},nH=0;function nY(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n$&&(nN.totalNodes=nN.resolvedTargetDeltas=nN.recalculatedProjection=0),this.nodes.forEach(n_),this.nodes.forEach(n5),this.nodes.forEach(n3),this.nodes.forEach(nq),n$&&window.MotionDebug.record(nN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nB)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new eY),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=nW(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=nI(n,250),nn.hasAnimatedSinceResize&&(nn.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(n2))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rt,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nD(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...A(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n9),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 n=eJ(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Wi,!(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,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nJ);return}this.isUpdating||this.nodes.forEach(n0),this.isUpdating=!1,this.nodes.forEach(n1),this.nodes.forEach(nX),this.nodes.forEach(nZ),this.clearAllSnapshots();let t=tH.now();R.frameData.delta=(0,tp.u)(0,1e3/60,t-R.frameData.timestamp),R.frameData.timestamp=t,R.frameData.isProcessing=!0,R.yL.update.process(R.frameData),R.yL.preRender.process(R.frameData),R.yL.render.process(R.frameData),R.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,na.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nQ),this.sharedNodes.forEach(n6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iW(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nV(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||iG(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rn((e=n).x),rn(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iW();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(rs))){let{scroll:t}=this.root;t&&(iZ(i.x,t.offset.x),iZ(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iW();if(nP(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nP(i,t),iZ(i.x,r.offset.x),iZ(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iW();nP(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iq(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iG(n.latestValues)&&iq(i,n.latestValues)}return iG(this.latestValues)&&iq(i,this.latestValues),i}removeTransform(t){let e=iW();nP(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iG(i.latestValues))continue;iz(i.latestValues)&&i.updateSnapshot();let n=iW();nP(n,i.measurePageBox()),nE(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iG(this.latestValues)&&nE(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!==R.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=R.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iW(),this.relativeTargetOrigin=iW(),iD(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iW(),this.targetWithTransforms=iW()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,iC(i.x,n.x,r.x),iC(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nP(this.target,this.layout.layoutBox),iX(this.target,this.targetDelta)):nP(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iW(),this.relativeTargetOrigin=iW(),iD(this.relativeTargetOrigin,this.target,t.target),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n$&&nN.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iz(this.parent.latestValues)||iH(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nP(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iq(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iX(t,s)),n&&iG(r.latestValues)&&iq(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iW());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nw(this.prevProjectionDelta.x,this.projectionDelta.x),nw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iV(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nL(this.projectionDelta.x,this.prevProjectionDelta.x)&&nL(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),n$&&nN.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iO(),this.projectionDelta=iO(),this.projectionDeltaWithTransform=iO()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues}
1,o=iO();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iW(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n7));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n4(o.x,t.x,n),n4(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;iD(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,n8(p.x,f.x,a.x,n),n8(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,nC(u.x,d.x)&&nC(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iW()),nP(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=en(0,void 0!==i.opacity?i.opacity:1,nv(n)),t.opacityExit=en(void 0!==e.opacity?e.opacity:1,0,ng(n))):s&&(t.opacity=en(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nd;r++){let s=`border${nc[r]}Radius`,o=nm(e,s),a=nm(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nf(o)===nf(a)?(t[s]=Math.max(en(np(o),np(a),n),0),(_.aQ.test(a)||_.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=en(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,R.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.Wi.update(()=>{nn.hasAnimatedSinceResize=!0,this.currentAnimation=nU(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rr(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iW();let e=iE(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iE(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nP(e,i),iq(e,r),iV(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nF),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nY("z",t,n,this.animationValues);for(let e=0;e<nz.length;e++)nY(`rotate${nz[e]}`,t,n,this.animationValues),nY(`skew${nz[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nG;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=(0,nO.b)(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,nO.b)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iG(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,no.P){if(void 0===o[t])continue;let{correct:e,applyTo:i}=no.P[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?(0,nO.b)(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(nJ),this.root.sharedNodes.clear()}}}function nX(t){t.updateLayout()}function nZ(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?iU(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iE(n);n.min=e[t].min,n.max=n.min+r}):rr(r,i.layoutBox,e)&&iU(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iE(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iO();iV(o,e,i.layoutBox);let a=iO();s?iV(a,t.applyTransform(n,!0),i.measuredBox):iV(a,e,i.layoutBox);let l=!nV(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iW();iD(o,i.layoutBox,r.layoutBox);let a=iW();iD(a,e,s.layoutBox),nD(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n_(t){n$&&nN.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nq(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nQ(t){t.clearSnapshot()}function nJ(t){t.clearMeasurements()}function n0(t){t.isLayoutDirty=!1}function n1(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n2(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n5(t){t.resolveTargetDelta()}function n3(t){t.calcProjection()}function n9(t){t.resetSkewAndRotation()}function n6(t){t.removeLeadSnapshot()}function n4(t,e,i){t.translate=en(e.translate,0,i),t.scale=en(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n8(t,e,i,n){t.min=en(e.min,i.min,n),t.max=en(e.max,i.max,n)}function n7(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rt={duration:.45,ease:[.4,0,.1,1]},re=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ri=re("applewebkit/")&&!re("chrome/")?Math.round:D.Z;function rn(t){t.min=ri(t.min),t.max=ri(t.max)}function rr(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nk(e)-nk(i)))}function rs(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let ro=nK({attachResizeListener:(t,e)=>ih(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ra={current:void 0},rl=nK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ra.current){let t=new ro({});t.mount(window),t.setOptions({layoutScroll:!0}),ra.current=t}return ra.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),ru={pan:{Feature:i9},drag:{Feature:i5,ProjectionNode:rl,MeasureLayout:nu}};function rh(t,e){let i=e?"onHoverStart":"onHoverEnd";return ic(t.current,e?"pointerenter":"pointerleave",(n,r)=>{if("touch"===n.pointerType||ib())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&R.Wi.postRender(()=>o(n,r))},{passive:!t.getProps()[i]})}
1class rc extends ie{mount(){this.unmount=ee(rh(this.node,!0),rh(this.node,!1))}unmount(){}}class rd extends ie{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ee(ih(this.node.current,"focus",()=>this.onFocus()),ih(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rp=(t,e)=>!!e&&(t===e||rp(t,e.parentElement));function rf(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,il(i))}class rm extends ie{constructor(){super(...arguments),this.removeStartListeners=D.Z,this.removeEndListeners=D.Z,this.removeAccessibleListeners=D.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=ic(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||rp(this.node.current,t.target)?i:n;s&&R.Wi.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=ic(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=ee(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=ih(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ih(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&rf("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&R.Wi.postRender(()=>i(t,e))})}),rf("down",(t,e)=>{this.startPress(t,e)}))}),e=ih(this.node.current,"blur",()=>{this.isPressing&&rf("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=ee(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&R.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ib()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&R.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=ic(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=ih(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ee(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}
1let rv=new WeakMap,rg=new WeakMap,ry=t=>{let e=rv.get(t.target);e&&e(t)},rx=t=>{t.forEach(ry)},rP={some:0,all:1};class rw extends ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rP[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rg.has(i)||rg.set(i,{});let n=rg.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rx,{root:t,...e})),n[r]}(e);return rv.set(t,i),n.observe(t),()=>{rv.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rT={inView:{Feature:rw},tap:{Feature:rm},focus:{Feature:rd},hover:{Feature:rc}},rS={layout:{ProjectionNode:rl,MeasureLayout:nu}};var rb=i(40052),rA=i(27542),rE=i(44824),rM=i(40198),rV=i(21877);let rC={current:null},rR={current:!1};function rD(){if(rR.current=!0,rV.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rC.current=t.matches;t.addListener(e),e()}else rC.current=!1}}var rk=i(26606),rL=i(28883);let rF=new WeakMap,rj=[...ts,tb,tL],rB=t=>rj.find(tr(t)),rO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rI{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=td,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tH.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,R.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,rk.G)(e),this.isVariantNode=(0,rk.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&(0,e0.i)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rR.current||rD(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rC.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rF.delete(this.current),this.projection&&this.projection.unmount(),(0,R.Pn)(this.notifyUpdate),(0,R.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=g.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&R.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rL.featureDefinitions){let e=rL.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iW()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rO.length;e++){let i=rO[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,e0.i)(r))t.addValue(n,r);else if((0,e0.i)(s))t.addValue(n,e_(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,e_(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=e_(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(Y(n)||z(n))?n=parseFloat(n):!rB(n)&&tL.test(e)&&(n=tU(t,e)),this.setBaseTarget(t,(0,e0.i)(n)?n.get():n)),(0,e0.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,f.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,e0.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new eY),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rW extends rI{constructor(){super(...arguments),this.KeyframeResolver=t$}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class rU extends rW{constructor(){super(...arguments),this.type="html",this.renderInstance=rM.N}readValueFromInstance(t,e){if(g.G.has(e)){let t=tW(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,K.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iQ(t,e)}build(t,e,i){(0,rA.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,rE.U)(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,e0.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}
1var rN=i(19521),r$=i(24237),rz=i(99885),rG=i(89497),rH=i(46065),rY=i(9574);class rK extends rW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iW}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(g.G.has(e)){let t=tW(e);return t&&t.default||0}return e=rG.s.has(e)?e:(0,rz.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,rN.U)(t,e,i)}build(t,e,i){(0,r$.i)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,rH.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,rY.a)(t.tagName),super.mount(t)}}var rX=i(31327);let rZ=(t,e)=>(0,rX.q)(t)?new rK(e):new rU(e,{allowProjection:t!==i4.Fragment}),r_=u((0,rb.x)({...io,...rT,...ru,...rS},rZ)),rq=u(i(68e3).R);var rQ=i(66009),rJ=i(20886);class r0 extends i4.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function r1({children:t,isPresent:e}){let i=(0,i4.useId)(),n=(0,i4.useRef)(null),r=(0,i4.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i4.useContext)(rJ._);return(0,i4.useInsertionEffect)(()=>{let{width:t,height:o,top:a,left:l}=r.current;if(e||!n.current||!t||!o)return;n.current.dataset.motionPopId=i;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
2          [data-motion-pop-id="${i}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${o}px !important;
6            top: ${a}px !important;
7            left: ${l}px !important;
8          }
9        `),()=>{document.head.removeChild(u)}},[e]),(0,i6.jsx)(r0,{isPresent:e,childRef:n,sizeRef:r,children:i4.cloneElement(t,{ref:n})})}let r2=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:r,presenceAffectsLayout:s,mode:o})=>{let a=(0,rQ.h)(r5),l=(0,i4.useId)(),u=(0,i4.useCallback)(t=>{for(let e of(a.set(t,!0),a.values()))if(!e)return;n&&n()},[a,n]),h=(0,i4.useMemo)(()=>({id:l,initial:e,isPresent:i,custom:r,onExitComplete:u,register:t=>(a.set(t,!1),()=>a.delete(t))}),s?[Math.random(),u]:[i,u]);return(0,i4.useMemo)(()=>{a.forEach((t,e)=>a.set(e,!1))},[i]),i4.useEffect(()=>{i||a.size||!n||n()},[i]),"popLayout"===o&&(t=(0,i6.jsx)(r1,{isPresent:i,children:t})),(0,i6.jsx)(i8.O.Provider,{value:h,children:t})};function r5(){return new Map}let r3=t=>t.key||"";function r9(t){let e=[];return i4.Children.forEach(t,t=>{(0,i4.isValidElement)(t)&&e.push(t)}),e}var r6=i(17028);let r4=({children:t,exitBeforeEnter:e,custom:i,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{H(!e,"Replace exitBeforeEnter with mode='wait'");let a=(0,i4.useMemo)(()=>r9(t),[t]),l=a.map(r3),u=(0,i4.useRef)(!0),h=(0,i4.useRef)(a),c=(0,rQ.h)(()=>new Map),[d,p]=(0,i4.useState)(a),[f,m]=(0,i4.useState)(a);(0,r6.L)(()=>{u.current=!1,h.current=a;for(let t=0;t<f.length;t++){let e=r3(f[t]);l.includes(e)?c.delete(e):!0!==c.get(e)&&c.set(e,!1)}},[f,l.length,l.join("-")]);let v=[];if(a!==d){let t=[...a];for(let e=0;e<f.length;e++){let i=f[e],n=r3(i);l.includes(n)||(t.splice(e,0,i),v.push(i))}"wait"===o&&v.length&&(t=v),m(r9(t)),p(a);return}let{forceRender:g}=(0,i4.useContext)(ne.p);return(0,i6.jsx)(i6.Fragment,{children:f.map(t=>{let e=r3(t),d=a===f||l.includes(e);return(0,i6.jsx)(r2,{isPresent:d,initial:(!u.current||!!n)&&void 0,custom:d?void 0:i,presenceAffectsLayout:s,mode:o,onExitComplete:d?void 0:()=>{if(!c.has(e))return;c.set(e,!0);let t=!0;
9c.forEach(e=>{e||(t=!1)}),t&&(null==g||g(),m(h.current),r&&r())},children:t},e)})})};var r8=i(42842);function r7({children:t,isValidProp:e,...i}){e&&(0,r8.K)(e),(i={...(0,i4.useContext)(rJ._),...i}).isStatic=(0,rQ.h)(()=>i.isStatic);let n=(0,i4.useMemo)(()=>i,[JSON.stringify(i.transition),i.transformPagePoint,i.reducedMotion]);return(0,i6.jsx)(rJ._.Provider,{value:n,children:t})}var st=i(24176);let se=(0,i4.createContext)(null);function si(){let t=function(){let t=(0,i4.useRef)(!1);return(0,r6.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}(),[e,i]=(0,i4.useState)(0),n=(0,i4.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,i4.useCallback)(()=>R.Wi.postRender(n),[n]),e]}let sn=t=>!t.isLayoutDirty&&t.willUpdate(!1),sr=t=>!0===t,ss=t=>sr(!0===t)||"id"===t,so=({children:t,id:e,inherit:i=!0})=>{let n=(0,i4.useContext)(ne.p),r=(0,i4.useContext)(se),[s,o]=si(),a=(0,i4.useRef)(null),l=n.id||r;null===a.current&&(ss(i)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:sr(i)&&n.group||function(){let t=new Set,e=new WeakMap,i=()=>t.forEach(sn);return{add:n=>{t.add(n),e.set(n,n.addEventListener("willUpdate",i))},remove:n=>{t.delete(n);let r=e.get(n);r&&(r(),e.delete(n)),i()},dirty:i}}()});let u=(0,i4.useMemo)(()=>({...a.current,forceRender:s}),[o]);return(0,i6.jsx)(ne.p.Provider,{value:u,children:t})},sa={renderer:rZ,...io},sl={renderer:rZ,...io,...rT},su={...sl,...ru,...rS};function sh(t){let e=(0,rQ.h)(()=>e_(t)),{isStatic:i}=(0,i4.useContext)(rJ._);if(i){let[,i]=(0,i4.useState)(t);(0,i4.useEffect)(()=>e.on("change",i),[])}return e}function sc(t,e){let i=sh(e()),n=()=>i.set(e());return n(),(0,r6.L)(()=>{let e=()=>R.Wi.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,R.Pn)(n)}}),i}function sd(t,...e){let i=t.length;return sc(e.filter(e0.i),function(){let n="";for(let r=0;r<i;r++){n+=t[r];let i=e[r];i&&(n+=(0,e0.i)(i)?i.get():i)}return n})}let sp=t=>t&&"object"==typeof t&&t.mix,sf=t=>sp(t)?t.mix:void 0;function sm(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],s=t[2+i],o=t[3+i],a=ey(r,s,{mixer:sf(s[0]),...o});return e?a(n):a}function sv(t,e,i,n){if("function"==typeof t)return function(t){eX.current=[],t();let e=sc(eX.current,t);return eX.current=void 0,e}(t);let r="function"==typeof e?e:sm(e,i,n);return Array.isArray(t)?sg(t,r):sg([t],([t])=>r(t))}function sg(t,e){let i=(0,rQ.h)(()=>[]);return sc(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function sy(t){return"number"==typeof t?t:parseFloat(t)}function sx(t,e={}){let{isStatic:i}=(0,i4.useContext)(rJ._),n=(0,i4.useRef)(null),r=sh((0,e0.i)(t)?sy(t.get()):t),s=(0,i4.useRef)(r.get()),o=(0,i4.useRef)(()=>{}),a=()=>{let t=n.current;t&&0===t.time&&t.sample(R.frameData.delta),l(),n.current=eM({keyframes:[r.get(),s.current],velocity:r.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o.current})},l=()=>{n.current&&n.current.stop()};return(0,i4.useInsertionEffect)(()=>r.attach((t,e)=>i?e(t):(s.current=t,o.current=e,R.Wi.update(a),r.get()),l),[JSON.stringify(e)]),(0,r6.L)(()=>{if((0,e0.i)(t))return t.on("change",t=>r.set(sy(t)))},[r]),r}function sP(t,e,i){(0,i4.useInsertionEffect)(()=>t.on(e,i),[t,e,i])}function sw(t){let e=sh(t.getVelocity()),i=()=>{let n=t.getVelocity();e.set(n),n&&R.Wi.update(i)};return sP(t,"change",()=>{R.Wi.update(i,!1,!0)}),e}function sT(t,e,i){var n;if("string"==typeof t){let r=document;e&&(H(!!e.current,"Scope provided, but no element detected."),r=e.current),i?(null!==(n=i[t])&&void 0!==n||(i[t]=r.querySelectorAll(t)),t=i[t]):t=r.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}let sS=new WeakMap;function sb({target:t,contentRect:e,borderBoxSize:i}){var n;null===(n=sS.get(t))||void 0===n||n.forEach(n=>{n({target:t,contentSize:e,get size(){return function(t,e){if(e){let{inlineSize:t,blockSize:i}=e[0];return{width:t,height:i}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,i)}})})}function sA(t){t.forEach(sb)}let sE=new Set,sM=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),sV=()=>({time:0,x:sM(),y:sM()}),sC={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function sR(t,e,i,n){let r=i[e],{length:s,position:o}=sC[e],a=r.current,l=i.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=ei(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:tX(r.current-a,u)}let sD=[[0,0],[1,1]],sk={start:0,center:.5,end:1};
9function sL(t,e,i=0){let n=0;if(t in sk&&(t=sk[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let sF=[0,0],sj={x:0,y:0},sB=new WeakMap,sO=new WeakMap,sI=new WeakMap,sW=t=>t===document.documentElement?window:t;function sU(t,{container:e=document.documentElement,...i}={}){let n=sI.get(e);n||(n=new Set,sI.set(e,n));let o=function(t,e,i,n={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,n.target,i),update:e=>{sR(t,"x",i,e),sR(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=sD}=i,{target:r=t,axis:s="y"}=i,o="y"===s?"height":"width",a=r!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(n instanceof HTMLElement)i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,t):sj,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let h=!e[s].interpolate,c=n.length;for(let t=0;t<c;t++){let i=function(t,e,i,n){let r=Array.isArray(t)?t:sF,s=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,sk[t]?t:"0"]),sL(r[0],i,n)-sL(r[1],e)}(n[t],u[o],l[o],a[s]);h||i===e[s].interpolatorOffsets[t]||(h=!0),e[s].offset[t]=i}h&&(e[s].interpolate=ey(e[s].offset,eP(n)),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=e[s].interpolate(e[s].current)}(t,i,n)},notify:()=>e(i)}}(e,t,sV(),i);if(n.add(o),!sB.has(e)){let t=()=>{for(let t of n)t.measure()},i=()=>{for(let t of n)t.update(R.frameData.timestamp)},o=()=>{for(let t of n)t.notify()},a=()=>{R.Wi.read(t,!1,!0),R.Wi.read(i,!1,!0),R.Wi.update(o,!1,!0)};sB.set(e,a);let l=sW(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&sO.set(e,"function"==typeof e?(sE.add(e),s||(s=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};sE.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{sE.delete(e),!sE.size&&s&&(s=void 0)}):function(t,e){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(sA));let i=sT(t);return i.forEach(t=>{let i=sS.get(t);i||(i=new Set,sS.set(t,i)),i.add(e),null==r||r.observe(t)}),()=>{i.forEach(t=>{let i=sS.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==r||r.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=sB.get(e);return R.Wi.read(a,!1,!0),()=>{var t;(0,R.Pn)(a);let i=sI.get(e);if(!i||(i.delete(o),i.size))return;let n=sB.get(e);sB.delete(e),n&&(sW(e).removeEventListener("scroll",n),null===(t=sO.get(e))||void 0===t||t(),window.removeEventListener("resize",n))}}function sN(t,e){let i;let n=()=>{let{currentTime:n}=e,r=(null===n?0:n.value)/100;i!==r&&t(r),i=r};return R.Wi.update(n,!0),()=>(0,R.Pn)(n)}let s$=new Map;function sz({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),s$.has(e)||s$.set(e,{});let n=s$.get(e);return n[i]||(n[i]=eU()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let n={value:0},r=sU(t=>{n.value=100*t[i].progress},{container:e,axis:i});return{currentTime:n,cancel:r}}({source:e,axis:i})),n[i]}function sG(t){return t&&(t.target||t.offset)}function sH(t,{axis:e="y",...i}={}){let n={axis:e,...i};return"function"==typeof t?2===t.length||sG(n)?sU(e=>{t(e[n.axis].progress,e)},n):sN(t,sz(n)):function(t,e){if(t.flatten(),sG(e))return t.pause(),sU(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=sz(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),sN(e=>{t.time=t.duration*e},i))):D.Z}}
9(t,n)}function sY(t,e){G(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let sK=()=>({scrollX:e_(0),scrollY:e_(0),scrollXProgress:e_(0),scrollYProgress:e_(0)});function sX({container:t,target:e,layoutEffect:i=!0,...n}={}){let r=(0,rQ.h)(sK);return(i?r6.L:i4.useEffect)(()=>(sY("target",e),sY("container",t),sH((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...n,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(n.offset)]),r}function sZ(t){return sX({container:t})}function s_(){return sX()}function sq(t){let e=(0,i4.useRef)(0),{isStatic:i}=(0,i4.useContext)(rJ._);(0,i4.useEffect)(()=>{if(i)return;let n=({timestamp:i,delta:n})=>{e.current||(e.current=i),t(i-e.current,n)};return R.Wi.update(n,!0),()=>(0,R.Pn)(n)},[t])}function sQ(){let t=sh(0);return sq(e=>t.set(e)),t}class sJ extends eZ{constructor(){super(...arguments),this.values=[]}add(t){let e=g.G.has(t)?"transform":eV.has(t)?(0,rz.D)(t):void 0;e&&(eG(this.values,e),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}function s0(){return(0,rQ.h)(()=>new sJ("auto"))}function s1(){rR.current||rD();let[t]=(0,i4.useState)(rC.current);return t}function s2(){let t=s1(),{reducedMotion:e}=(0,i4.useContext)(rJ._);return"never"!==e&&("always"===e||t)}function s5(t,e){[...e].reverse().forEach(i=>{let n=t.getVariant(i);n&&eq(t,n),t.variantChildren&&t.variantChildren.forEach(t=>{s5(t,e)})})}function s3(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){H(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let r=[];return e.forEach(t=>{r.push(e9(t,i,{transitionOverride:n}))}),Promise.all(r)},set:i=>(H(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{Array.isArray(i)?s5(t,i):"string"==typeof i?s5(t,[i]):eq(t,i)})),stop(){e.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}function s9(t){return(0,i4.useEffect)(()=>()=>t(),[])}function s6(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(eT(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:x(r)}}function s4(t){return"object"==typeof t&&!Array.isArray(t)}function s8(t,e,i,n){return"string"==typeof t&&s4(e)?sT(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function s7(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!==(r=n.get(e))&&void 0!==r?r:t}let ot=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};function oe(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function oi(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function on(t,e){return e[t]||(e[t]=[]),e[t]}let or=t=>"number"==typeof t,os=t=>t.every(or);class oo extends rI{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return iW()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function oa(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=nW(t)?new rK(e):new rU(e);i.mount(t),rF.set(t,i)}function ol(t){let e=new oo({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),rF.set(t,e)}function ou(t,e,i,n){let r=[];if((0,e0.i)(t)||"number"==typeof t||"string"==typeof t&&!s4(e))r.push(nU(t,s4(e)&&e.default||e,i&&i.default||i));else{let s=s8(t,e,n),o=s.length;H(!!o,"No valid elements provided.");for(let t=0;t<o;t++){let n=s[t],a=n instanceof Element?oa:ol;rF.has(n)||a(n);let l=rF.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...e2(l,{...e,transition:u},{}))}}return r}function oh(t){return function(e,i,n){let r=[],s=new eN(Array.isArray(e)&&Array.isArray(e[0])?function(t,e,
9i){let n=[];return(function(t,{defaultTransition:e={},...i}={},n,r){let s=e.duration||.3,o=new Map,a=new Map,l={},u=new Map,h=0,c=0,d=0;for(let i=0;i<t.length;i++){let o=t[i];if("string"==typeof o){u.set(o,c);continue}if(!Array.isArray(o)){u.set(o.name,s7(c,o.at,h,u));continue}let[p,f,m={}]=o;void 0!==m.at&&(c=s7(c,m.at,h,u));let v=0,g=(t,i,n,o=0,a=0)=>{let l=Array.isArray(t)?t:[t],{delay:u=0,times:h=eP(l),type:p="keyframes",...f}=i,{ease:m=e.ease||"easeOut",duration:g}=i,x="function"==typeof u?u(o,a):u,P=l.length,w=tz(p)?p:null==r?void 0:r[p];if(P<=2&&w){let t=100;2===P&&os(l)&&(t=Math.abs(l[1]-l[0]));let e={...f};void 0!==g&&(e.duration=y(g));let i=s6(e,t,w);m=i.ease,g=i.duration}null!=g||(g=s);let T=c+x,S=T+g;1===h.length&&0===h[0]&&(h[1]=1);let b=h.length-l.length;b>0&&ex(h,b),1===l.length&&l.unshift(null),function(t,e,i,n,r,s){!function(t,e,i){for(let n=0;n<t.length;n++){let r=t[n];r.at>e&&r.at<i&&(eH(t,r),n--)}}(t,r,s);for(let a=0;a<e.length;a++){var o;t.push({value:e[a],at:en(r,s,n[a]),easing:(o=a,t6(i)?i[ot(0,i.length,o)]:i)})}}(n,l,m,h,T,S),v=Math.max(x+g,v),d=Math.max(S,d)};if((0,e0.i)(p))g(f,m,on("default",oi(p,a)));else{let t=s8(p,f,n,l),e=t.length;for(let i=0;i<e;i++){let n=oi(t[i],a);for(let t in f)g(f[t],m&&m[t]?{...m,...m[t]}:{...m},on(t,n),i,e)}}h=c,c+=v}return a.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(oe);let a=[],l=[],u=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];a.push(i),l.push(ei(0,d,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),a.unshift(a[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),a.push(null)),o.has(n)||o.set(n,{keyframes:{},transition:{}});let h=o.get(n);h.keyframes[r]=a,h.transition[r]={...e,duration:d,ease:u,times:l,...i}}}),o})(t,e,i,{spring:t1}).forEach(({keyframes:t,transition:e},i)=>{n.push(...ou(i,t,e))}),n}(e,i,t):ou(e,i,n,t));return t&&t.animations.push(s),s}}let oc=oh();function od(){let t=(0,rQ.h)(()=>({current:null,animations:[]})),e=(0,rQ.h)(()=>oh(t));return s9(()=>{t.animations.forEach(t=>t.stop())}),[t,e]}var op=i(89655);function of(t,e,i){t.style.setProperty(`--${e}`,i)}function om(t,e,i){t.style[e]=i}let ov=eR(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(t){return!1}return!0}),og=new WeakMap,oy="easeOut";function ox(t){let e=og.get(t)||new Map;return og.set(t,e),og.get(t)}class oP{constructor(t,e,i,n){let r=e.startsWith("--");this.setValue=r?of:om,this.options=n,this.updateFinishedPromise(),H("string"!=typeof n.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "framer-motion"?');let s=ox(t).get(e);if(s&&s.stop(),Array.isArray(i)||(i=[i]),!function(t,e,i){for(let n=0;n<e.length;n++)null===e[n]&&(e[n]=0===n?i():e[n-1]),"number"==typeof e[n]&&op.Y[t]&&(e[n]=op.Y[t].transform(e[n]));!ov()&&e.length<2&&e.unshift(i())}(e,i,()=>e.startsWith("--")?t.style.getPropertyValue(e):window.getComputedStyle(t)[e]),tz(n.type)){let t=s6(n,100,n.type);n.ease=ek()?t.ease:oy,n.duration=y(t.duration),n.type="keyframes"}else n.ease=n.ease||oy;this.removeAnimation=()=>{var i;return null===(i=og.get(t))||void 0===i?void 0:i.delete(e)};let o=()=>{this.setValue(t,e,C(i,this.options)),this.cancel(),this.resolveFinishedPromise()};eO()?(this.animation=ej(t,e,i,n),!1===n.autoplay&&this.animation.pause(),this.animation.onfinish=o,this.pendingTimeline&&eB(this.animation,this.pendingTimeline),ox(t).set(e,this)):o()}get duration(){return x(this.options.duration||300)}get time(){var t;return this.animation?x((null===(t=this.animation)||void 0===t?void 0:t.currentTime)||0):0}set time(t){this.animation&&(this.animation.currentTime=y(t))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(t){this.animation&&(this.animation.playbackRate=t)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}flatten(){var t;this.animation&&(null===(t=this.animation.effect)||void 0===t||t.updateTiming({easing:"linear"}))}play(){"finished"===this.state&&this.updateFinishedPromise(),this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}
9stop(){this.animation&&"idle"!==this.state&&"finished"!==this.state&&(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}complete(){this.animation&&this.animation.finish()}cancel(){this.removeAnimation();try{this.animation&&this.animation.cancel()}catch(t){}}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}attachTimeline(t){return this.animation?eB(this.animation,t):this.pendingTimeline=t,D.Z}}let ow=t=>function(e,i,n){return new eN(function(t,e,i,n){let r=sT(t,n),s=r.length;H(!!s,"No valid element provided.");let o=[];for(let t=0;t<s;t++){let n=r[t],a={...i};for(let i in"function"==typeof a.delay&&(a.delay=a.delay(t,s)),e){let t=e[i],r={...A(a,i)};r.duration=r.duration?y(r.duration):r.duration,r.delay=y(r.delay||0),o.push(new oP(n,i,t,r))}}return o}(e,i,n,t))},oT=ow();function oS(){let t=(0,rQ.h)(()=>({current:null,animations:[]})),e=(0,rQ.h)(()=>ow(t));return s9(()=>{t.animations.forEach(t=>t.stop())}),[t,e]}function ob(){let t=(0,rQ.h)(s3);return(0,r6.L)(t.mount,[]),t}let oA=ob;function oE(...t){let e=(0,i4.useRef)(0),[i,n]=(0,i4.useState)(t[e.current]);return[i,(0,i4.useCallback)(i=>{e.current="number"!=typeof i?ot(0,t.length,e.current+1):i,n(t[e.current])},[t.length,...t])]}var oM=i(4958);let oV={some:0,all:1};function oC(t,e,{root:i,margin:n,amount:r="some"}={}){let s=sT(t),o=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{let i=o.get(t.target);if(!!i!==t.isIntersecting){if(t.isIntersecting){let i=e(t);"function"==typeof i?o.set(t.target,i):a.unobserve(t.target)}else i&&(i(t),o.delete(t.target))}})},{root:i,rootMargin:n,threshold:"number"==typeof r?r:oV[r]});return s.forEach(t=>a.observe(t)),()=>a.disconnect()}function oR(t,{root:e,margin:i,amount:n,once:r=!1}={}){let[s,o]=(0,i4.useState)(!1);return(0,i4.useEffect)(()=>{if(!t.current||r&&s)return;let a={root:e&&e.current||void 0,margin:i,amount:n};return oC(t.current,()=>(o(!0),r?void 0:()=>o(!1)),a)},[e,t,i,r,n]),s}class oD{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach(i=>{i.start(t.nativeEvent||t,e)})}}let ok=()=>new oD;function oL(){return(0,rQ.h)(ok)}function oF(t,e,i,n){(0,i4.useEffect)(()=>{let r=t.current;if(i&&r)return ih(r,e,i,n)},[t,e,i,n])}var oj=i(8031),oB=i(26203);function oO(t){return null!==t&&"object"==typeof t&&oB.a in t}function oI(t){if(oO(t))return t[oB.a]}function oW(){return oU}function oU(t){ra.current&&(ra.current.isUpdating=!1,ra.current.blockUpdate(),t&&t())}function oN(){let[t,e]=si(),i=(0,i4.useRef)();return(0,i4.useEffect)(()=>{R.Wi.postRender(()=>R.Wi.postRender(()=>{e===i.current&&(M.current=!1)}))},[e]),n=>{oU(()=>{M.current=!0,t(),n(),i.current=e+1})}}function o$(){M.current=!1}function oz(){return(0,i4.useCallback)(()=>{let t=ra.current;t&&t.resetTree()},[])}var oG=i(67603);let oH=(t,e)=>{let i=g.G.has(e)?"transform":e;return`${t}: ${i}`},oY=new Map,oK=new Map;function oX(t,e,i){var n;let r=oH(t,e),s=oY.get(r);if(!s)return null;let{animation:o,startTime:a}=s;function l(){var n;null===(n=window.MotionCancelOptimisedAnimation)||void 0===n||n.call(window,t,e,i)}return(o.onfinish=l,null===a||(null===(n=window.MotionHandoffIsComplete)||void 0===n?void 0:n.call(window,t)))?(l(),null):a}let oZ=new Set;function o_(){oZ.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),oZ.clear()}function oq(t,e,i,n,r){if(window.MotionIsMounted)return;let s=t.dataset[eQ.t];if(!s)return;window.MotionHandoffAnimation=oX;let l=oH(s,e);a||(a=ej(t,e,[i[0],i[0]],{duration:1e4,ease:"linear"}),oY.set(l,{animation:a,startTime:null}),window.MotionHandoffAnimation=oX,window.MotionHasOptimisedAnimation=(t,e)=>{if(!t)return!1;if(!e)return oK.has(t);let i=oH(t,e);return!!oY.get(i)},window.MotionHandoffMarkAsComplete=t=>{oK.has(t)&&oK.set(t,!0)},window.MotionHandoffIsComplete=t=>!0===oK.get(t),window.MotionCancelOptimisedAnimation=(t,e,i,n)=>{let r=oH(t,e),s=oY.get(r);s&&(i&&void 0===n?i.postRender(()=>{i.postRender(()=>{s.animation.cancel()})}):s.animation.cancel(),i&&n?(oZ.add(s),i.render(o_)):(oY.delete(r),oY.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(t,e,i)=>{var n,r;let s=eJ(t);if(!s)return;let o=null===(n=window.MotionHasOptimisedAnimation)||void 0===n?void 0:n.call(window,s,e),a=null===(r=t.props.values)||void 0===r?void 0:r[e];if(!o||!a)return;let l=i.on("change",t=>{var i;a.get()!==t&&(null===(i=window.MotionCancelOptimisedAnimation)||void 0===i||i.call(window,s,e),l())});return l});let u=()=>{a.cancel();let s=ej(t,e,i,n);void 0===o&&(o=performance.now()),s.startTime=o,oY.set(l,{animation:s,startTime:o}),r&&r(s)};oK.set(s,!1),a.ready?a.ready.then(u).catch(D.Z):u()}var oQ=i(43769),oJ=i(63916);let o0=()=>({});class o1 extends rI{constructor(){super(...arguments),this.measureInstanceViewportBox=iW}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return o0()}getBaseTargetFromProps(){}readValueFromInstance(t,e,i){return i.initialState[e]||0}sortInstanceNodePosition(){return 0}}let o2=(0,oJ.t)({scrapeMotionValuesFromProps:o0,createRenderState:o0});function o5(t){let[e,i]=(0,i4.useState)(t),n=o2({},!1),r=(0,rQ.h)(()=>new o1({props:{onUpdate:t=>{i({...t})}},visualState:n,presenceContext:null},{initialState:t}));return(0,i4.useLayoutEffect)(()=>(r.mount({}),()=>r.unmount()),[r]),[e,(0,rQ.h)(()=>t=>e9(r,t))]}let o3=t=>t>.001?1/t:1e5,o9=!1;function o6(t){let e=sh(1),i=sh(1),{visualElement:n}=(0,i4.useContext)(oQ.v);return H(!!(t||n),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),G(o9,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),o9=!0,t?(e=t.scaleX||e,i=t.scaleY||i):n&&(e=n.getValue("scaleX",1),i=n.getValue("scaleY",1)),{scaleX:sv(e,o3),scaleY:sv(i,o3)}}let o4=0,o8=({children:t})=>(i4.useEffect(()=>{H(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),(0,i6.jsx)(so,{id:(0,rQ.h)(()=>`asl-${o4++}`),children:t}));function o7(t=.1,{startDelay:e=0,from:i=0,ease:n}={}){return(r,s)=>{let o=t*Math.abs(("number"==typeof i?i:function(t,e){if("first"===t)return 0;{let i=e-1;return"last"===t?i:i/2}}(i,s))-r);if(n){let e=s*t;o=t7(n)(o/e)*e}return e+o}}var at=i(4714);
9let ae=R.Wi,ai=at.B.reduce((t,e)=>(t[e]=t=>(0,R.Pn)(t),t),{});function an(t,e="end"){return i=>{let n=(i="end"===e?Math.min(i,.999):Math.max(i,.001))*t;return(0,tp.u)(0,1,("end"===e?Math.floor(n):Math.ceil(n))/t)}}let ar=(0,i4.createContext)(null),as=(0,i4.forwardRef)(function({children:t,as:e="ul",axis:i="y",onReorder:n,values:r,...s},o){let a=(0,rQ.h)(()=>r_[e]),l=[],u=(0,i4.useRef)(!1);return H(!!r,"Reorder.Group must be provided a values prop"),(0,i4.useEffect)(()=>{u.current=!1}),(0,i6.jsx)(a,{...s,ref:o,ignoreStrict:!0,children:(0,i6.jsx)(ar.Provider,{value:{axis:i,registerItem:(t,e)=>{let n=l.findIndex(e=>t===e.value);-1!==n?l[n].layout=e[i]:l.push({value:t,layout:e[i]}),l.sort(aa)},updateOrder:(t,e,i)=>{if(u.current)return;let s=function(t,e,i,n){if(!n)return t;let r=t.findIndex(t=>t.value===e);if(-1===r)return t;let s=n>0?1:-1,o=t[r+s];if(!o)return t;let a=t[r],l=o.layout,u=en(l.min,l.max,.5);return 1===s&&a.layout.max+i>u||-1===s&&a.layout.min+i<u?function([...t],e,i){let n=e<0?t.length+e:e;if(n>=0&&n<t.length){let n=i<0?t.length+i:i,[r]=t.splice(e,1);t.splice(n,0,r)}return t}(t,r,r+s):t}(l,t,e,i);l!==s&&(u.current=!0,n(s.map(ao).filter(t=>-1!==r.indexOf(t))))}},children:t})})});function ao(t){return t.value}function aa(t,e){return t.layout.min-e.layout.min}function al(t,e=0){return(0,e0.i)(t)?t:sh(e)}let au=(0,i4.forwardRef)(function({children:t,style:e={},value:i,as:n="li",onDrag:r,layout:s=!0,...o},a){let l=(0,rQ.h)(()=>r_[n]),u=(0,i4.useContext)(ar),h={x:al(e.x),y:al(e.y)},c=sv([h.x,h.y],([t,e])=>t||e?1:"unset");H(!!u,"Reorder.Item must be a child of Reorder.Group");let{axis:d,registerItem:p,updateOrder:f}=u;return(0,i6.jsx)(l,{drag:d,...o,dragSnapToOrigin:!0,style:{...e,x:h.x,y:h.y,zIndex:c},layout:s,onDrag:(t,e)=>{let{velocity:n}=e;n[d]&&f(i,h[d].get(),n[d]),r&&r(t,e)},onLayoutMeasure:t=>p(i,t),ref:a,ignoreStrict:!0,children:t})})}}]);
10//# sourceMappingURL=2217.dbcb803ceed8d1b9.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.