PageSourceSearch

https://mozartai.app/_next/static/chunks/588ff4811833baff.js

js mozartai.app collected 2026-10-02 15:14:43 UTC 107,850 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54505,57788,78926,64440,21012,60900,97307,68e3,60140,85983,32525,6840,87576,86579,17218,93787,44947,81261,99951,24463,30789,84049,67926,27677,77777,35636,53689,44966,t=>{"use strict";let e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(e);t.s(["transformPropOrder",()=>e,"transformProps",()=>i],57788);var n=t.i(79444),s=t.i(69577),r=t.i(30677);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.floatRegex)||[];if(!n)return t;let s=i.replace(n,""),a=+!!o.has(e);return n!==i&&(a*=100),e+"("+a+s+")"}let l=/\b([a-z-]*)\(.*?\)/gu,h={...s.complex,getAnimatableNone:t=>{let e=t.match(l);return e?e.map(a).join(" "):t}},u={...s.complex,getAnimatableNone:t=>{let e=s.complex.parse(t);return s.complex.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var c=t.i(76307);let d={...c.number,transform:Math.round};var m=t.i(65091);let p={rotate:m.degrees,rotateX:m.degrees,rotateY:m.degrees,rotateZ:m.degrees,scale:c.scale,scaleX:c.scale,scaleY:c.scale,scaleZ:c.scale,skew:m.degrees,skewX:m.degrees,skewY:m.degrees,distance:m.px,translateX:m.px,translateY:m.px,translateZ:m.px,x:m.px,y:m.px,z:m.px,perspective:m.px,transformPerspective:m.px,opacity:c.alpha,originX:m.progressPercentage,originY:m.progressPercentage,originZ:m.px},f={borderWidth:m.px,borderTopWidth:m.px,borderRightWidth:m.px,borderBottomWidth:m.px,borderLeftWidth:m.px,borderRadius:m.px,borderTopLeftRadius:m.px,borderTopRightRadius:m.px,borderBottomRightRadius:m.px,borderBottomLeftRadius:m.px,width:m.px,maxWidth:m.px,height:m.px,maxHeight:m.px,top:m.px,right:m.px,bottom:m.px,left:m.px,inset:m.px,insetBlock:m.px,insetBlockStart:m.px,insetBlockEnd:m.px,insetInline:m.px,insetInlineStart:m.px,insetInlineEnd:m.px,padding:m.px,paddingTop:m.px,paddingRight:m.px,paddingBottom:m.px,paddingLeft:m.px,paddingBlock:m.px,paddingBlockStart:m.px,paddingBlockEnd:m.px,paddingInline:m.px,paddingInlineStart:m.px,paddingInlineEnd:m.px,margin:m.px,marginTop:m.px,marginRight:m.px,marginBottom:m.px,marginLeft:m.px,marginBlock:m.px,marginBlockStart:m.px,marginBlockEnd:m.px,marginInline:m.px,marginInlineStart:m.px,marginInlineEnd:m.px,fontSize:m.px,backgroundPositionX:m.px,backgroundPositionY:m.px,...p,zIndex:d,fillOpacity:c.alpha,strokeOpacity:c.alpha,numOctaves:d},g={...f,color:n.color,backgroundColor:n.color,outlineColor:n.color,fill:n.color,stroke:n.color,borderColor:n.color,borderTopColor:n.color,borderRightColor:n.color,borderBottomColor:n.color,borderLeftColor:n.color,filter:h,WebkitFilter:h,mask:u,WebkitMask:u},v=t=>g[t],y=()=>({translate:0,scale:1,origin:0,originPoint:0}),x=()=>({x:y(),y:y()}),P=()=>({min:0,max:0}),w=()=>({x:P(),y:P()});t.s(["createBox",()=>w,"createDelta",()=>x],78926);var S=t.i(83411);let T=new Set(["width","height","top","left","right","bottom",...e]);t.s(["positionalKeys",()=>T],64440);let b=t=>e=>e.test(t),V=[c.number,m.px,m.percent,m.degrees,m.vw,m.vh,{test:t=>"auto"===t,parse:t=>t}],E=t=>V.find(b(t));var A=t.i(65566),C=t.i(19928);let M=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,D=t=>180*t/Math.PI,R=t=>B(D(Math.atan2(t[1],t[0]))),L={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:R,rotateZ:R,skewX:t=>D(Math.atan(t[1])),skewY:t=>D(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},B=t=>((t%=360)<0&&(t+=360),t),k=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),j=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),F={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:k,scaleY:j,scale:t=>(k(t)+j(t))/2,rotateX:t=>B(D(Math.atan2(t[6],t[5]))),rotateY:t=>B(D(Math.atan2(-t[2],t[0]))),rotateZ:R,rotate:R,skewX:t=>D(Math.atan(t[4])),skewY:t=>D(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function O(t){return+!!t.includes("scale")}function I(t,e){let i,n;if(!t||"none"===t)return O(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=F,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=L,n=e}if(!n)return O(e);let r=i[e],o=n[1].split(",").map(N);return"function"==typeof r?r(o):o[r]}function N(t){return parseFloat(t.trim())}let U=t=>t===c.number||t===m.px,W=new Set(["x","y","z"]),G=e.filter(t=>!W.has(t)),$={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:(t,{transform:e})=>I(e,"x"),y:(t,{transform:e})=>I(e,"y")};$.translateX=$.x,$.translateY=$.y;var H=t.i(87022);let z=new Set,Y=!1,X=!1,K=!1;function Z(){if(X){let t=Array.from(z).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],G.forEach(i=>
1{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}X=!1,Y=!1,z.forEach(t=>t.complete(K)),z.clear()}function _(){z.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(X=!0)})}function q(){K=!0,_(),Z(),K=!1}class J{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(z.add(this),Y||(Y=!0,H.frame.read(_),H.frame.resolveKeyframes(Z))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),z.delete(this)}cancel(){"scheduled"===this.state&&(z.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>J,"flushKeyframeResolvers",()=>q],21012);let Q=new Set([h,u]);function tt(t,e){let i=v(t);return Q.has(i)||(i=s.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let te=new Set(["auto","none","0"]);class ti extends J{constructor(t,e,i,n,s){super(t,e,i,n,s,!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,C.isCSSVariableToken)(n))){let s=function t(e,i,n=1){(0,A.invariant)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=M.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return(0,C.isCSSVariableToken)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!T.has(i)||2!==t.length)return;let[n,s]=t,r=E(n),o=E(s);if((0,C.containsCSSVariable)(n)!==(0,C.containsCSSVariable)(s)&&$[i]){this.needsMeasurement=!0;return}if(r!==o)if(U(r)&&U(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else $[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!te.has(e)&&(0,s.analyseComplexValue)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let s of e)t[s]=tt(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=$[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(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=$[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.i(47167);var tn=t.i(63074),ts=t.i(70596),tr=t.i(60830);function to(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["memo",()=>to],60900);let ta={};function tl(t,e){let i=to(t);return()=>ta[e]??i()}let th=tl(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var tu=t.i(14229),tc=t.i(79294),td=t.i(4169),tm=t.i(80248),tp=t.i(60855);let tf=tl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tg=t.i(56512);let tv=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,ty={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tv([0,.65,.55,1]),circOut:tv([.55,0,1,.45]),backIn:tv([.31,.01,.66,-.59]),backOut:tv([.33,1.53,.69,.99])};function tx(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>tx],97307);class tP extends tc.WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,A.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return tx(t)&&tf()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?tf()?(0,tg.generateLinearEasing)(e,i):"ease-out":(0,tp.isBezierDefinition)(e)?tv(e):Array.isArray(e)?e.map(e=>t(e,i)||ty.easeOut):ty[e]}(a,s);Array.isArray(c)&&(u.easing=c),tm.statsBuffer.value&&td.activeAnimations.waapi++;let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(d.pseudoElement=h);let m=t.animate(u,d);return tm.statsBuffer.value&&m.finished.finally(()=>{td.activeAnimations.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,tu.getFinalKeyframe)(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,tn.millisecondsToSeconds)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,tn.millisecondsToSeconds)(t)}get time(){return(0,tn.millisecondsToSeconds)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,tn.secondsToMilliseconds)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&th())?(this.animation.timeline=t,tr.noop):e(this)}}t.s(["NativeAnimation",()=>tP],68e3);let tw=new Set(["opacity","clipPath","filter","transform"]),{schedule:tS}=(0,t.i(51571).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",()=>tS],60140);var tT=t.i(96173),tb=t.i(86427);let tV=[...V,n.color,s.complex],tE=new WeakMap;function tA(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tC(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>tA],85983),t.s(["isVariantLabel",()=>tC],32525);let tM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tD=["initial",...tM];function tR(t){return tA(t.animate)||tD.some(e=>tC(t[e]))}function tL(t){return!!(tR(t)||t.variants)}t.s(["variantPriorityOrder",()=>tM,"variantProps",()=>tD],6840),t.s(["isControllingVariants",()=>tR,"isVariantNode",()=>tL],87576);let tB={current:null},tk={current:!1},tj="u">typeof window;function tF(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tO(t,e,i,n){if("function"==typeof e){let[s,r]=tF(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=tF(n);e=e(void 0!==i?i:t.custom,s,r)}return e}t.s(["resolveVariantFromProps",()=>tO],86579);let tI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tN={};function tU(t){tN=t}function tW(){return tN}class tG{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=J,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=tT.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,H.frame.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=tR(e),this.isVariantNode=tL(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&(0,S.isMotionValue)(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,tE.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tk.current||function(){if(tk.current=!0,tj)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tB.current=t.matches;t.addEventListener("change",e),e()}else tB.current=!1}(),this.shouldReduceMotion=tB.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,H.cancelFrame)(this.notifyUpdate),(0,H.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&tw.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new tP({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:(0,tn.secondsToMilliseconds)(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=i.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&H.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n&&n(),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 tN){let e=tN[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):w()}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<tI.length;e++){let i=tI[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 s=e[n],r=i[n];if((0,S.isMotionValue)(s))t.addValue(n,s);else if((0,S.isMotionValue)(r))t.addValue(n,(0,tb.motionValue)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tb.motionValue)(void 0!==e?e:s,{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=(0,tb.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!tV.find(b(n))&&s.complex.test(e)&&(i=tt(t,e))}this.setBaseTarget(t,(0,S.isMotionValue)(i)?i.get():i)}return(0,S.isMotionValue)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tO(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,S.isMotionValue)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new ts.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tS.render(this.render)}}t.s(["VisualElement",()=>tG,"getFeatureDefinitions",()=>tW,"setFeatureDefinitions",()=>tU],17218);class t$ extends tG{constructor(){super(...arguments),this.KeyframeResolver=ti}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,S.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function tH(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",()=>tH],93787);let tz=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tX=e.length;function tK(t,n,s){let{style:r,vars:o,transformOrigin:a}=t,l=!1,h=!1;for(let t in n){let e=n[t];if(i.has(t)){l=!0;continue}if((0,C.isCSSVariableName)(t)){o[t]=e;continue}{let i=tz(e,f[t]);t.startsWith("origin")?(h=!0,a[t]=i):r[t]=i}}if(!n.transform&&(l||s?r.transform=function(t,i,n){let s="",r=!0;for(let o=0;o<tX;o++){let a=e[o],l=t[a];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!a.startsWith("scale");else{let t=parseFloat(l);h=a.startsWith("scale")?1===t:0===t}if(!h||n){let t=tz(l,f[a]);if(!h){r=!1;let e=tY[a]||a;s+=`${e}(${t}) `}n&&(i[a]=t)}}return s=s.trim(),n?s=n(i,r?"":s):r&&(s="none"),s}(n,t.transform,s):r.transform&&(r.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>tK],44947);let tZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},t_={offset:"strokeDashoffset",array:"strokeDasharray"},tq=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tJ(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a}
1,l,h,u){if(tK(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),tq))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?tZ:t_;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(c,s,r,o,!1)}t.s(["buildSVGAttrs",()=>tJ],81261);let tQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),t0=t=>"string"==typeof t&&"svg"===t.toLowerCase();function t1(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}function t7(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",()=>t0],99951);let t6={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!m.px.test(t))return t;else t=parseFloat(t);let i=t7(t,e.target.x),n=t7(t,e.target.y);return`${i}% ${n}%`}};
1var t5=t.i(706);let t9={borderRadius:{...t6,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:t6,borderTopRightRadius:t6,borderBottomLeftRadius:t6,borderBottomRightRadius:t6,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=s.complex.parse(t);if(n.length>5)return t;let r=s.complex.createTransformer(t),o=+("number"!=typeof n[0]),a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+o]/=a,n[1+o]/=l;let h=(0,t5.mixNumber)(a,l,.5);return"number"==typeof n[2+o]&&(n[2+o]/=h),"number"==typeof n[3+o]&&(n[3+o]/=h),r(n)}}};function t8(t,{layout:e,layoutId:n}){return i.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!t9[t]||"opacity"===t)}function t3(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)((0,S.isMotionValue)(n[e])||s&&(0,S.isMotionValue)(s[e])||t8(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function t4(t,i,n){let s=t3(t,i,n);for(let n in t)((0,S.isMotionValue)(t[n])||(0,S.isMotionValue)(i[n]))&&(s[-1!==e.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return s}t.s(["scaleCorrectors",()=>t9],24463),t.s(["isForcedMotionValue",()=>t8],30789),t.s(["scrapeMotionValuesFromProps",()=>t3],84049),t.s(["scrapeMotionValuesFromProps",()=>t4],67926);class t2 extends t${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=w}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.has(e)){let t=v(e);return t&&t.default||0}return e=tQ.has(e)?e:tH(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return t4(t,e,i)}build(t,e,i){tJ(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in t1(t,e,void 0,n),e.attrs)t.setAttribute(tQ.has(i)?i:tH(i),e.attrs[i])}mount(t){this.isSVGTag=t0(t.tagName),super.mount(t)}}function et({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ee({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ei(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}}function en(t){return void 0===t||1===t}function es({scale:t,scaleX:e,scaleY:i}){return!en(t)||!en(e)||!en(i)}function er(t){return es(t)||eo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eo(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["convertBoundingBoxToBox",()=>et,"convertBoxToBoundingBox",()=>ee,"transformBoxPoints",()=>ei],27677);function ea(t,e,i){return i+e*(t-i)}function el(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eh(t,e=0,i=1,n,s){t.min=el(t.min,e,i,n,s),t.max=el(t.max,e,i,n,s)}function eu(t,{x:e,y:i}){eh(t.x,e.translate,e.scale,e.originPoint),eh(t.y,i.translate,i.scale,i.originPoint)}function ec(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ep(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eu(t,r)),n&&er(s.latestValues)&&ep(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function ed(t,e){t.min=t.min+e,t.max=t.max+e}function em(t,e,i,n,s=.5){let r=(0,t5.mixNumber)(t.min,t.max,s);eh(t,e,i,r,n)}function ep(t,e){em(t.x,e.x,e.scaleX,e.scale,e.originX),em(t.y,e.y,e.scaleY,e.scale,e.originY)}function ef(t,e){return et(ei(t.getBoundingClientRect(),e))}function eg(t,e,i){let n=ef(t,i),{scroll:s}=e;return s&&(ed(n.x,s.offset.x),ed(n.y,s.offset.y)),n}t.s(["has2DTranslate",()=>eo,"hasScale",()=>es,"hasTransform",()=>er],77777),t.s(["applyBoxDelta",()=>eu,"applyTreeDeltas",()=>ec,"scalePoint",()=>ea,"transformBox",()=>ep,"translateAxis",()=>ed],35636),t.s(["measurePageBox",()=>eg,"measureViewportBox",()=>ef],53689);class ev extends t${constructor(){super(...arguments),this.type="html",this.renderInstance=t1}readValueFromInstance(t,e){if(i.has(e))return this.projection?.isProjecting?O(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return I(i,e)})(t,e);{let i=window.getComputedStyle(t),n=((0,C.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ef(t,e)}build(t,e,i){tK(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return t3(t,e,i)}}var ey=t.i(71645);let ex=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eP(t){if("string"!=typeof t||t.includes("-"));else if(ex.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>eP],44966);let ew=(t,e)=>e.isSVG??eP(t)?new t2(e):new ev(e,{allowProjection:t!==ey.Fragment});t.s(["createDomVisualElement",()=>ew],54505)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",()=>e])},48070,88291,82474,86549,11587,8576,30665,33871,t=>{"use strict";var e,i=t.i(71645);let n=(0,i.createContext)({strict:!1});t.s(["LazyContext",()=>n],48070);let s=(0,i.createContext)({});t.s(["MotionContext",()=>s],88291);var r=t.i(87576),o=t.i(32525);function a(t){let{initial:e,animate:n}=function(t,e){if((0,r.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,o.isVariantLabel)(e)?e:void 0,animate:(0,o.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(s));return(0,i.useMemo)(()=>({initial:e,animate:n}),[l(e),l(n)])}function l(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>a],82474);var h=t.i(83411),u=t.i(30789),c=t.i(44947);let d=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function m(t,e,i){for(let n in e)(0,h.isMotionValue)(e[n])||(0,u.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",()=>d],86549);var p=t.i(81261),f=t.i(99951);let g=()=>({...d(),attrs:{}});t.s(["createSvgRenderState",()=>g],11587);let v=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function y(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||v.has(t)}let x=t=>!y(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(x=t=>t.startsWith("on")?!y(t):e(t))}catch{}var P=t.i(44966);function w(t,e,n,{latestValues:s},r,o=!1,a){let l=(a??(0,P.isSVGComponent)(t)?function(t,e,n,s){let r=(0,i.useMemo)(()=>{let i=g();return(0,p.buildSVGAttrs)(i,e,(0,f.isSVGTag)(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};m(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n,s,r={},o=(n=t.style||{},m(s={},n,t),Object.assign(s,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=d();return(0,c.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r})(e,s,r,t),u=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(x(s)||!0===i&&y(s)||!e&&!y(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),v=t!==i.Fragment?{...u,...l,ref:n}:{},{children:S}=e,T=(0,i.useMemo)(()=>(0,h.isMotionValue)(S)?S.get():S,[S]);return(0,i.createElement)(t,{...v,children:T})}t.s(["useRender",()=>w],8576);var S=t.i(84049);function T(t){return(0,h.isMotionValue)(t)?t.get():t}t.s(["scrapeHTMLMotionValuesFromProps",()=>S.scrapeMotionValuesFromProps],30665),t.s(["resolveMotionValue",()=>T],33871)},21476,t=>{"use strict";let e=(0,t.i(71645).createContext)(null);t.s(["PresenceContext",()=>e])},7051,4035,25522,42098,87333,80538,16896,39011,23070,55559,19880,82774,39676,37541,52101,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),n=t.i(31178),s=t.i(48070),r=t.i(37806),o=t.i(88291),a=t.i(82474),l=t.i(8576),h=t.i(44966),u=t.i(30665),c=t.i(33871),d=t.i(87576),m=t.i(85983),p=t.i(86579),f=t.i(21476),g=t.i(47414);let v=t=>
1(e,n)=>{let s=(0,i.useContext)(o.MotionContext),r=(0,i.useContext)(f.PresenceContext),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=(0,c.resolveMotionValue)(r[t]);let{initial:o,animate:a}=t,l=(0,d.isControllingVariants)(t),h=(0,d.isVariantNode)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,f=(u=u||!1===o)?a:o;if(f&&"boolean"!=typeof f&&!(0,m.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let n=(0,p.resolveVariantFromProps)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,s,r);return n?a():(0,g.useConstant)(a)};var y=t.i(86549);let x=v({scrapeMotionValuesFromProps:u.scrapeHTMLMotionValuesFromProps,createRenderState:y.createHtmlRenderState});var P=t.i(67926),P=P,w=t.i(11587);let S=v({scrapeMotionValuesFromProps:P.scrapeMotionValuesFromProps,createRenderState:w.createSvgRenderState});var T=t.i(92936),b=t.i(17218);let V={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E=!1;function A(){return!function(){if(E)return;let t={};for(let e in V)t[e]={isEnabled:t=>V[e].some(e=>!!t[e])};(0,b.setFeatureDefinitions)(t),E=!0}(),(0,b.getFeatureDefinitions)()}let C=Symbol.for("motionComponentSymbol"),M="data-"+(0,t.i(93787).camelToDash)("framerAppearId"),D=(0,i.createContext)({});function R(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["SwitchLayoutGroupContext",()=>D],4035),t.s(["isRefObject",()=>R],25522);var L=t.i(74008);function B(t,{forwardMotionProps:u=!1,type:c}={},d,m){d&&function(t){let e=A();for(let i in t)e[i]={...e[i],...t[i]};(0,b.setFeatureDefinitions)(e)}(d);let p=c?"svg"===c:(0,h.isSVGComponent)(t),g=p?S:x;function v(h,c){var d;let v,y,x,P={...(0,i.useContext)(r.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,i.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:w}=P,S=(0,a.useCreateMotionContext)(h),b=g(h,w);if(!w&&T.isBrowser){(0,i.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=A();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(P);v=e.MeasureLayout,S.visualElement=function(t,e,n,a,l,h){let{visualElement:u}=(0,i.useContext)(o.MotionContext),c=(0,i.useContext)(s.LazyContext),d=(0,i.useContext)(f.PresenceContext),m=(0,i.useContext)(r.MotionConfigContext),p=m.reducedMotion,g=m.skipAnimations,v=(0,i.useRef)(null),y=(0,i.useRef)(!1);a=a||c.renderer,!v.current&&a&&(v.current=a(t,{visualState:e,parent:u,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p,skipAnimations:g,isSVG:h}),y.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let x=v.current,P=(0,i.useContext)(D);x&&!x.projection&&l&&("html"===x.type||"svg"===x.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&R(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(v.current,n,l,P);let w=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{x&&w.current&&x.update(n,d)});let S=n[M],T=(0,i.useRef)(!!S&&!window.MotionHandoffIsComplete?.(S)&&window.MotionHasOptimisedAnimation?.(S));return(0,L.useIsomorphicLayoutEffect)(()=>{y.current=!0,x&&(w.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),T.current&&x.animationState&&x.animationState.animateChanges())}),(0,i.useEffect)(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(S)}),T.current=!1),x.enteringChildren=void 0)}),x}(t,b,P,m,e.ProjectionNode,p)}return(0,e.jsxs)(o.MotionContext.Provider,{value:S,children:[v&&S.visualElement?(0,e.jsx)(v,{visualElement:S.visualElement,...P}):null,(0,l.useRender)(t,h,(d=S.visualElement,y=(0,i.useRef)(c),(0,i.useInsertionEffect)(()=>{y.current=c}),x=(0,i.useRef)(null),(0,i.useCallback)(t=>{t&&b.onMount?.(t),d&&(t?d.mount(t):d.unmount());let e=y.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(x.current=i)}else x.current?(x.current(),x.current=null):e(t);else e&&(e.current=t)},[d])),b,w,u,p)]})}v.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let y=(0,i.forwardRef)(v);return y[C]=t,y}function k(t,e){if("u"<typeof Proxy)return B;let i=new Map,n=(i,n)=>B(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,B(r,void 0,t,e)),i.get(r))})}t.s(["createMotionProxy",()=>k],7051);
1class j{constructor(t){this.isMounted=!1,this.node=t}update(){}}function F(t,e,i){let n=t.getProps();return(0,p.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function O(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function I(t,e){let i=t?.[e]??t?.default??t;return i!==t?O(i,t):i}t.s(["Feature",()=>j],42098),t.s(["getValueTransition",()=>I],87333);var N=t.i(64440),U=t.i(86427);let W=t=>Array.isArray(t);var G=t.i(46791),$=t.i(83411);function H(t,e){let i=t.getValue("willChange");if((0,$.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&G.MotionGlobalConfig.WillChange){let i=new G.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function z(t){return t.props[M]}t.s(["addValueToWillChange",()=>H],80538),t.s(["getOptimisedAppearId",()=>z],16896);var Y=t.i(63074),X=t.i(60830),K=t.i(96173),Z=t.i(83352),_=t.i(14229),q=t.i(21012),J=t.i(76959),Q=t.i(68e3),tt=t.i(44573),te=t.i(78047),ti=t.i(41980),tn=t.i(91559);let ts={anticipate:te.anticipate,backInOut:ti.backInOut,circInOut:tn.circInOut};class tr extends Q.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ts&&(t.ease=ts[t.ease])}(t),(0,tt.replaceTransitionType)(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new Z.JSAnimation({...r,autoplay:!1}),a=Math.max(10,K.time.now()-this.startTime),l=(0,J.clamp)(0,10,a-10);e.setWithVelocity(o.sample(Math.max(0,a-l)).value,o.sample(a).value,l),o.stop()}}var to=t.i(65566),ta=t.i(97307),tl=t.i(69577);let th=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tl.complex.test(t)||"0"===t)&&!t.startsWith("url("));function tu(t){t.duration=0,t.type="keyframes"}var tc=t.i(79294),td=t.i(60900);let tm=new Set(["opacity","clipPath","filter","transform"]),tp=(0,td.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tf extends tc.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||q.KeyframeResolver;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;this.resolvedAt=K.time.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=th(s,e),a=th(r,e);return(0,to.warning)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!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||(0,ta.isGenerator)(i))&&n)}(t,s,r,o)&&((G.MotionGlobalConfig.instantAnimations||!a)&&h?.((0,_.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],tu(i),i.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tp()&&i&&tm.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(u),d=u.motionValue?.owner?.current,m=c?new tr({...u,element:d}):new Z.JSAnimation(u);m.finished.then(()=>{this.notifyFinished()}).catch(X.noop),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,q.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var tg=t.i(57788);let tv={type:"spring",stiffness:500,damping:25,restSpeed:10},ty={type:"keyframes",duration:.8},tx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tP=t=>null!==t;var tw=t.i(87022);
1let tS=(t,e,i,n={},s,r)=>o=>{let a=I(n,t)||{},l=a.delay||n.delay||0,{elapsed:h=0}=n;h-=(0,Y.secondsToMilliseconds)(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?ty:tg.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tv:tx)(t,u)),u.duration&&(u.duration=(0,Y.secondsToMilliseconds)(u.duration)),u.repeatDelay&&(u.repeatDelay=(0,Y.secondsToMilliseconds)(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(tu(u),0===u.delay&&(c=!0)),(G.MotionGlobalConfig.instantAnimations||G.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations)&&(c=!0,tu(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(tP),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(u.keyframes,a);if(void 0!==t)return void tw.frame.update(()=>{u.onUpdate(t),u.onComplete()})}return a.isSync?new Z.JSAnimation(u):new tf(u)};function tT(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?O(r,l):l;let h=r?.reduceMotion;n&&(r=n);let u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...I(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(s)&&s===l&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=z(t);if(i){let t=window.MotionHandoffAnimation(i,e,tw.frame);null!==t&&(o.startTime=t,d=!0)}}H(t,e);let m=h??t.shouldReduceMotion;n.start(tS(e,n,s,m&&N.positionalKeys.has(e)?{type:!1}:o,t,d));let p=n.animation;p&&u.push(p)}if(o){let e=()=>tw.frame.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=F(t,e)||{};for(let e in s={...s,...i}){var r;let i=W(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,U.motionValue)(i))}}(t,o)});u.length?Promise.all(u).then(e):e()}return u}function tb(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function tV(t,e,i={}){let n=F(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(tT(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(tV(l,e,{...o,delay:i+("function"==typeof n?0:n)+tb(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}t.s(["animateMotionValue",()=>tS],39011);var tE=t.i(32525),tA=t.i(6840);let tC=tA.variantProps.length;function tM(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}let tD=[...tA.variantPriorityOrder].reverse(),tR=tA.variantPriorityOrder.length;function tL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tB(){return{animate:tL(!0),whileInView:tL(),whileHover:tL(),whileTap:tL(),whileDrag:tL(),whileFocus:tL(),exit:tL()}}let tk=0,tj={animation:{Feature:class extends j{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>tV(t,e,i)));else if("string"==typeof e)n=tV(t,e,i);else{let s="function"==typeof e?F(t,e,i.custom):e;n=Promise.all(tT(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=tB(),n=!0,s=e=>(i,n)=>{let s=F(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){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<tC;t++){let n=tA.variantProps[t],s=e.props[n];((0,tE.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],h=new Set,u={},c=1/0;for(let e=0;e<tR;e++){var d,p;let f=tD[e],g=i[f],v=void 0!==o[f]?o[f]:a[f],y=(0,tE.isVariantLabel)(v),x=f===r?g.isActive:null;!1===x&&(c=e);let P=v===a[f]&&v!==o[f]&&y;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...u},!g.isActive&&null===x||!v&&!g.prevProp||(0,m.isAnimationControls)(v)||"boolean"==typeof v)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(u={...u,...g.prevResolvedValues});continue}let w=(d=g.prevProp,"string"==typeof(p=v)?p!==d:!!Array.isArray(p)&&!tM(p,d)),S=w||f===r&&g.isActive&&!P&&y||e>c&&y,T=!1,b=Array.isArray(v)?v:[v],V=b.reduce(s(f),{});!1===x&&(V={});let{prevResolvedValues:E={}}=g,A={...E,...V},C=e=>{S=!0,h.has(e)&&(T=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=V[t],i=E[t];if(!u.hasOwnProperty(t))(W(e)&&W(i)?tM(e,i):e===i)?void 0!==e&&h.has(t)?C(t):g.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}g.prevProp=v,g.prevResolvedValues=V,g.isActive&&(u={...u,...V}),n&&t.blockInitialAnimation&&(S=!1);let M=P&&w,D=!M||T;S&&D&&l.push(...b.map(e=>{let i={type:f};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=F(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=tb(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=F(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let f=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,f?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=tB()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,m.isAnimationControls)(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(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends j{constructor(){super(...arguments),this.id=tk++}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(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function tF(t){return[t("x"),t("y")]}t.s(["animations",()=>tj],23070),t.s(["eachAxis",()=>tF],55559);let tO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tI(t){return tO.has(t.tagName)||!0===t.isContentEditable}let tN=new Set(["INPUT","SELECT","TEXTAREA"]);function tU(t){return tN.has(t.tagName)||!0===t.isContentEditable}function tW(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}t.s(["isElementKeyboardAccessible",()=>tI,"isElementTextInput",()=>tU],19880),t.s(["addDomEvent",()=>tW],82774);let tG={x:!1,y:!1};function t$(){return tG.x||tG.y}function tH(t){if("x"===t||"y"===t)if(tG[t])return null;else return tG[t]=!0,()=>{tG[t]=!1};return tG.x||tG.y?null:(tG.x=tG.y=!0,()=>{tG.x=tG.y=!1})}t.s(["isDragActive",()=>t$,"isDragging",()=>tG],39676),t.s(["setDragLock",()=>tH],37541);var tz=t.i(706);function tY(t){return t.max-t.min}function tX(t,e,i){return Math.abs(t-e)<=i}function tK(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tz.mixNumber)(e.min,e.max,t.origin),t.scale=tY(i)/tY(e),t.translate=(0,tz.mixNumber)(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 tZ(t,e,i,n){tK(t.x,e.x,i.x,n?n.originX:void 0),tK(t.y,e.y,i.y,n?n.originY:void 0)}function t_(t,e,i){t.min=i.min+e.min,t.max=t.min+tY(e)}function tq(t,e,i){t_(t.x,e.x,i.x),t_(t.y,e.y,i.y)}function tJ(t,e,i){t.min=e.min-i.min,t.max=t.min+tY(e)}function tQ(t,e,i){tJ(t.x,e.x,i.x),tJ(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>tZ,"calcLength",()=>tY,"calcRelativeBox",()=>tq,"calcRelativePosition",()=>tQ,"isNear",()=>tX],52101)},42824,t=>{"use strict";function e(t){return"object"==typeof t&&null!==t}t.s(["isObject",()=>e])},33986,89026,41327,65536,85651,7230,t=>{"use strict";let e,i;var n=t.i(42098),s=t.i(60830),r=t.i(78926),o=t.i(87022),a=t.i(55559),l=t.i(53689),h=t.i(27677),u=t.i(80538),c=t.i(39011),d=t.i(706),m=t.i(19880),p=t.i(82774),f=t.i(37541),g=t.i(65091),v=t.i(52101),y=t.i(42824);function x(t){return(0,y.isObject)(t)&&"ownerSVGElement"in t}t.s(["isSVGElement",()=>x],89026);var P=t.i(49652);let w=new WeakMap,S=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:x(n)&&"getBBox"in n?n.getBBox()[e]:n[i],T=S("inline","width","offsetWidth"),b=S("block","height","offsetHeight");function V({target:t,borderBoxSize:e}){w.get(t)?.forEach(i=>{i(t,{get width(){return T(t,e)},get height(){return b(t,e)}})})}function E(t){t.forEach(V)}let A=new Set;function C(t,n){let s;return"function"==typeof t?(A.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};A.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{A.delete(t),A.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(E)),(s=(0,P.resolveElements)(t)).forEach(t=>{let i=w.get(t);i||(i=new Set,w.set(t,i)),i.add(n),e?.observe(t)}),()=>{s.forEach(t=>{let i=w.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}var M=t.i(65566);let D=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function R(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>D],41327);let L=t=>e=>D(e)&&t(e,R(e));function B(t,e,i,n){return(0,p.addDomEvent)(t,e,L(i),n)}t.s(["addPointerInfo",()=>L,"extractEventInfo",()=>R],65536);let k=({current:t})=>t?t.ownerDocument.defaultView:null;var j=t.i(25522),F=t.i(38638),O=t.i(63074);let I=(t,e)=>Math.abs(t-e),N=new Set(["auto","scroll"]);class U{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=$(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(I(t.x,e.x)**2+I(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=o.frameData;this.history.push({...r,timestamp:a});let{onStart:l,onMove:h}=this.handlers;n||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=W(e,this.transformPagePoint),o.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=$("pointercancel"===t.type?this.lastMoveEventInfo:W(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!D(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const l=W(R(t),this.transformPagePoint),{point:h}=l,{timestamp:u}=o.frameData;this.history=[{...h,timestamp:u}];const{onSessionStart:c}=e;c&&c(t,$(l,this.history)),this.removeListeners=(0,F.pipe)(B(this.contextWindow,"pointermove",this.handlePointerMove),B(this.contextWindow,"pointerup",this.handlePointerUp),B(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(N.has(t.overflowX)||N.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),o.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,o.cancelFrame)(this.updatePoint)}}function W(t,e){return e?{point:e(t.point)}:t}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $({point:t},e){return{point:t,delta:G(t,H(e)),offset:G(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=H(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,O.secondsToMilliseconds)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>
12*(0,O.secondsToMilliseconds)(.1)&&(n=t[1]);let r=(0,O.millisecondsToSeconds)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function H(t){return t[t.length-1]}var z=t.i(83920),Y=t.i(76959);function X(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function K(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 Z(t,e,i){return{min:_(t,e),max:_(t,i)}}function _(t,e){return"number"==typeof t?t:t[e]||0}let q=new WeakMap;class J{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,r.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(R(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,f.setDragLock)(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(g.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=(0,v.calcLength)(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&o.frame.update(()=>s(t,e),!1,!0),(0,u.addValueToWillChange)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&o.frame.update(()=>r(t,e),!1,!0)},h=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new U(t,{onSessionStart:s,onStart:r,onMove:l,onSessionEnd:h,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:k(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&o.frame.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tt(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,d.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,d.mixNumber)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,j.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:X(t.x,i,s),y:X(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:Z(t,"left","right"),y:Z(t,"top","bottom")}}(e),n!==this.constraints&&!(0,j.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,a.eachAxis)(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,j.isRefObject)(e))return!1;let n=e.current;(0,M.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,l.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:K(t.x,r.x),y:K(t.y,r.y)});if(i){let t=i((0,h.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,h.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{};return Promise.all((0,a.eachAxis)(o=>{if(!tt(o,e,this.currentDirection))return;let a=l&&l[o]||{};r&&(a={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...a};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,u.addValueToWillChange)(this.visualElement,t),i.start((0,c.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,a.eachAxis)(t=>this.getAxisMotionValue(t).stop())}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){(0,a.eachAxis)(e=>{let{drag:i}=this.getProps();if(!tt(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-(0,d.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,j.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=(0,v.calcLength)(i),(a=(0,v.calcLength)(s))>o?r=(0,z.progress)(s.min,s.max-o,i.min):o>a&&(r=(0,z.progress)(i.min,i.max-a,s.min)),(0,Y.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,a.eachAxis)(e=>{if(!tt(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,d.mixNumber)(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;q.set(this.visualElement,this);let e=this.visualElement.current,i=B(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,r=s!==e&&(0,m.isElementTextInput)(s);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();(0,j.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=C(i,Q(s=()=>this.scalePositionWithinConstraints())),o=C(n,Q(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),o.frame.read(n);let l=(0,p.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),h=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&((0,a.eachAxis)(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{l(),i(),r(),h&&h(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function Q(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function tt(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class te extends n.Feature{constructor(t){super(t),this.removeGroupControls=s.noop,this.removeListeners=s.noop,this.controls=new J(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||s.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}t.s(["DragGesture",()=>te],33986);var ti=n;let tn=t=>(e,i)=>{t&&o.frame.update(()=>t(e,i),!1,!0)};class ts extends ti.Feature{constructor(){super(...arguments),this.removePointerDownListener=s.noop}onPointerDown(t){this.session=new U(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:k(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tn(t),onStart:tn(e),onMove:tn(i),onEnd:(t,e)=>{delete this.session,n&&o.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=B(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>ts],85651);let tr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",()=>tr],7230)},64978,t=>{"use strict";var e=t.i(71645),i=t.i(21476);function n(t=!0){let s=(0,e.useContext)(i.PresenceContext);if(null===s)return[!0,null];let{isPresent:r,onExitComplete:o,register:a}=s,l=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,e.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!r&&o?[!1,h]:[!0]}t.s(["usePresence",()=>n])},46816,77397,17871,73089,57512,99642,t=>{"use strict";var e=t.i(33986),i=t.i(85651),n=t.i(43476),s=t.i(7230),r=t.i(87022),o=t.i(60140),a=t.i(71645),l=t.i(64978),h=t.i(31178),u=t.i(4035);let c=!1;class d extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),c&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),s.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),c=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||r.frame.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),o.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;c=!0,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 m(t){let[e,i]=(0,l.usePresence)(),s=(0,a.useContext)(h.LayoutGroupContext);return(0,n.jsx)(d,{...t,layoutGroup:s,switchLayoutGroup:(0,a.useContext)(u.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}t.s(["MeasureLayout",()=>m],77397);var p=t.i(70596),f=t.i(76959),g=t.i(60830),v=t.i(39011),y=t.i(86427),x=t.i(83411),P=t.i(16896),w=t.i(87333),S=t.i(96173),T=t.i(24463),b=t.i(4169),V=t.i(80248);t.i(63074);var E=t.i(89026),A=t.i(706),C=t.i(33871),M=t.i(65091),D=t.i(83920),R=t.i(91559);let L=["TopLeft","TopRight","BottomLeft","BottomRight"],B=L.length,k=t=>"string"==typeof t?parseFloat(t):t,j=t=>"number"==typeof t||M.px.test(t);function F(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let O=N(0,.5,R.circOut),I=N(.5,.95,g.noop);function N(t,e,i){return n=>n<t?0:n>e?1:i((0,D.progress)(t,e,n))}function U(t,e){t.min=e.min,t.max=e.max}function W(t,e){U(t.x,e.x),U(t.y,e.y)}function G(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var $=t.i(35636),H=t.i(52101);function z(t,e,i,n,s){return t-=e,t=(0,$.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,$.scalePoint)(t,1/s,n)),t}function Y(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(M.percent.test(e)&&(e=parseFloat(e),e=(0,A.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,A.mixNumber)(r.min,r.max,n);t===r&&(a-=e),t.min=z(t.min,e,i,a,s),t.max=z(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let X=["x","scaleX","originX"],K=["y","scaleY","originY"];function Z(t,e,i,n){Y(t.x,e,X,i?i.x:void 0,n?n.x:void 0),Y(t.y,e,K,i?i.y:void 0,n?n.y:void 0)}var _=t.i(78926);function q(t){return 0===t.translate&&1===t.scale}function J(t){return q(t.x)&&q(t.y)}function Q(t,e){return t.min===e.min&&t.max===e.max}function tt(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function te(t,e){return tt(t.x,e.x)&&tt(t.y,e.y)}function ti(t){return(0,H.calcLength)(t.x)/(0,H.calcLength)(t.y)}function tn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ts=t.i(33887);class tr{constructor(){this.members=[]}add(t){(0,ts.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1===n.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,ts.removeItem)(this.members,i)}t.scheduleRender()}remove(t){if((0,ts.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],n=i.instance;if(!1!==i.isPresent&&(!n||!1!==n.isConnected)){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();let n=i.options.layoutDependency,s=t.options.layoutDependency;if(void 0===n||void 0===s||n!==s){let n=i.instance;!(n&&!1===n.isConnected&&!i.snapshot)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var to=t.i(55559);let ta=(t,e)=>t.depth-e.depth;class tl{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ts.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,ts.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ta),this.isDirty=!1,this.children.forEac
1h(t)}}var th=t.i(77777);let tu={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tc=["","X","Y","Z"],td=0;function tm(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tp({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(t={},i=e?.()){this.id=td++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,V.statsBuffer.value&&(tu.nodes=tu.calculatedTargetDeltas=tu.calculatedProjections=0),this.nodes.forEach(tv),this.nodes.forEach(tb),this.nodes.forEach(tV),this.nodes.forEach(ty),V.statsBuffer.addProjectionMetrics&&V.statsBuffer.addProjectionMetrics(tu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tl)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new p.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,E.isSVGElement)(e)&&(!(0,E.isSVGElement)(e)||"svg"!==e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,o=()=>this.root.updateBlockedByResize=!1;r.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,a;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=S.time.now(),a=({timestamp:t})=>{let i=t-e;i>=250&&((0,r.cancelFrame)(a),o(i-250))},r.frame.setup(a,!0),i=()=>(0,r.cancelFrame)(a),s.globalProjectionState.hasAnimatedSinceResize&&(s.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tT))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||tR,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!te(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,w.getValueTransition)(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tT(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,this.eventHandlers.clear(),(0,r.cancelFrame)(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.forEac
1h(tE),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=(0,P.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",r.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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(tP);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tw);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tS),this.nodes.forEach(tf),this.nodes.forEach(tg)):this.nodes.forEach(tw),this.clearAllSnapshots();let t=S.time.now();r.frameData.delta=(0,f.clamp)(0,1e3/60,t-r.frameData.timestamp),r.frameData.timestamp=t,r.frameData.isProcessing=!0,r.frameSteps.update.process(r.frameData),r.frameSteps.preRender.process(r.frameData),r.frameSteps.render.process(r.frameData),r.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,o.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tx),this.sharedNodes.forEach(tA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,r.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){r.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,H.calcLength)(this.snapshot.measuredBox.x)||(0,H.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,_.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!a)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!J(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,th.hasTransform)(this.latestValues)||s)&&(a(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)),tk((e=n).x),tk(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,_.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tF))){let{scroll:t}=this.root;t&&((0,$.translateAxis)(e.x,t.offset.x),(0,$.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,_.createBox)();if(W(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&W(e,t),(0,$.translateAxis)(e.x,s.offset.x),(0,$.translateAxis)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,_.createBox)();W(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&&(0,$.transformBox)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,th.hasTransform)(n.latestValues)&&(0,$.transformBox)(i,n.latestValues)}return(0,th.hasTransform)(this.latestValues)&&(0,$.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,_.createBox)();W(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,th.hasTransform)(i.latestValues))continue;(0,th.hasScale)(i.latestValues)&&i.updateSnapshot();let n=(0,_.createBox)();W(n,i.measurePageBox()),Z(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,th.hasTransform)(this.latestValues)&&Z(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){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=r.frameData.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,_.createBox)(),this.targetWithTransforms=(0,_.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,H.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):W(this.target,this.layout.layoutBox),(0,$.applyBoxDelta)(this.target,this.targetDelta)):W(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),V.statsBuffer.value&&tu.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,th.hasScale)(this.parent.latestValues)||(0,th.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,_.createBox)(),this.relativeTargetOrigin=(0,_.createBox)(),(0,H.calcRelativePosition)(this.relativeTargetOrigin,e,i),W(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===r.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;W(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,$.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,_.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(G(this.prevProjectionDelta.x,this.projectionDelta.x),G(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,H.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tn(this.projectionDelta.x,this.prevProjectionDelta.x)&&tn(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),V.statsBuffer.value&&tu.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,_.createDelta)(),this.projectionDelta=(0,_.createDelta)(),this.projectionDeltaWithTransform=(0,_.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=(0,_.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,_.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(tD));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(tC(o.x,t.x,n),tC(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,g;(0,H.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,g=n,tM(m.x,p.x,f.x,g),tM(m.y,p.y,f.y,g),i&&(h=this.relativeTarget,d=i,Q(h.x,d.x)&&Q(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,_.createBox)()),W(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,A.mixNumber)(0,i.opacity??1,O(n)),t.opacityExit=(0,A.mixNumber)(e.opacity??1,0,I(n))):r&&(t.opacity=(0,A.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<B;s++){let r=`border${L[s]}Radius`,o=F(e,r),a=F(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||j(o)===j(a)?(t[r]=Math.max((0,A.mixNumber)(k(o),k(a),n),0),(M.percent.test(a)||M.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,A.mixNumber)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,r.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.frame.update(()=>{var e,i,n;let r;s.globalProjectionState.hasAnimatedSinceResize=!0,b.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,y.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{b.activeAnimations.layout--},onComplete:()=>{b.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=(0,x.isMotionValue)(e)?e:(0,y.motionValue)(e)).start((0,v.animateMotionValue)("",r,i,n)),r.animation),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:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tj(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,_.createBox)();
1let e=(0,H.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,H.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}W(e,i),(0,$.transformBox)(e,s),(0,H.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tr),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(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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&&tm("z",t,n,this.animationValues);for(let e=0;e<tc.length;e++)tm(`rotate${tc[e]}`,t,n,this.animationValues),tm(`skew${tc[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()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,th.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}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,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,T.scaleCorrectors){if
1(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=T.scaleCorrectors[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?(0,C.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tP),this.root.sharedNodes.clear()}}}function tf(t){t.updateLayout()}function tg(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?(0,to.eachAxis)(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=(0,H.calcLength)(n);n.min=i[t].min,n.max=n.min+s}):tj(s,e.layoutBox,i)&&(0,to.eachAxis)(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=(0,H.calcLength)(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,_.createDelta)();(0,H.calcBoxDelta)(o,i,e.layoutBox);let a=(0,_.createDelta)();r?(0,H.calcBoxDelta)(a,t.applyTransform(n,!0),e.measuredBox):(0,H.calcBoxDelta)(a,i,e.layoutBox);let l=!J(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=(0,_.createBox)();(0,H.calcRelativePosition)(o,e.layoutBox,s.layoutBox);let a=(0,_.createBox)();(0,H.calcRelativePosition)(a,i,r.layoutBox),te(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tv(t){V.statsBuffer.value&&tu.nodes++,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 ty(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tx(t){t.clearSnapshot()}function tP(t){t.clearMeasurements()}function tw(t){t.isLayoutDirty=!1}function tS(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tT(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tb(t){t.resolveTargetDelta()}function tV(t){t.calcProjection()}function tE(t){t.resetSkewAndRotation()}function tA(t){t.removeLeadSnapshot()}function tC(t,e,i){t.translate=(0,A.mixNumber)(e.translate,0,i),t.scale=(0,A.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tM(t,e,i,n){t.min=(0,A.mixNumber)(e.min,i.min,n),t.max=(0,A.mixNumber)(e.max,i.max,n)}function tD(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tR={duration:.45,ease:[.4,0,.1,1]},tL=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tB=tL("applewebkit/")&&!tL("chrome/")?Math.round:g.noop;function tk(t){t.min=tB(t.min),t.max=tB(t.max)}function tj(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,H.isNear)(ti(e),ti(i),.2)}function tF(t){return t!==t.root&&t.scroll?.wasRoot}var tO=t.i(82774);let tI=tp({attachResizeListener:(t,e)=>(0,tO.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tN={current:void 0},tU=tp({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tN.current){let t=new tI({});t.mount(window),t.setOptions({layoutScroll:!0}),tN.current=t}return tN.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>tU],17871);let tW={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tU,MeasureLayout:m}};t.s(["drag",()=>tW],46816);var tG=t.i(42098),t$=t.i(39676),tH=t.i(49652);function tz(t,e){let i=(0,tH.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["setupGesture",()=>tz],73089);var tY=t.i(65536);function tX(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&r.frame.postRender(()=>s(e,(0,tY.extractEventInfo)(e)))}class tK extends tG.Feature{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,s,r]=tz(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,t$.isDragActive)())return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(tX(this.node,e,"Start"),t=>tX(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",()=>tK],57512);var tZ=tG,t_=t.i(38638);class tq extends tZ.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,t_.pipe)((0,tO.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tO.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",()=>tq],99642)},72846,t=>{"use strict";var e=t.i(42824);function i(t){return(0,e.isObject)(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i])},46932,t=>{"use strict";var e=t.i(54505),i=t.i(7051),n=t.i(23070),s=t.i(46816),r=t.i(57512),o=t.i(99642),a=t.i(42098),l=t.i(72846),h=t.i(39676);let u=(t,e)=>!!e&&(t===e||u(t,e.parentElement));var c=t.i(41327),d=t.i(73089),m=t.i(19880);let p=new WeakSet;function f(t){return e=>{"Enter"===e.key&&t(e)}}function g(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function v(t){return(0,c.isPrimaryPointer)(t)&&!(0,h.isDragActive)()}let y=new WeakSet;var x=t.i(87022),P=t.i(65536);function w(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&x.frame.postRender(()=>s(e,(0,P.extractEventInfo)(e)))}class S extends a.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=(0,d.setupGesture)(t,i),o=t=>{let n=t.currentTarget;if(!v(t)||y.has(t))return;p.add(n),i.stopPropagation&&y.add(t);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),p.has(n)&&p.delete(n),v(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||u(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,l.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=f(()=>{if(p.has(i))return;g(i,"down");let t=f(()=>{g(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>g(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),(0,m.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(w(this.node,e,"Start"),(t,{success:e})=>w(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var T=a;let b=new WeakMap,V=new WeakMap,E=t=>{let e=b.get(t.target);e&&e(t)},A=t=>{t.forEach(E)},C={some:0,all:1};class M extends T.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:C[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!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)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;V.has(i)||V.set(i,{});let n=V.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(A,{root:t,...e})),n[s]}(a),b.set(t,l),e.observe(t),()=>{b.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<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 D={inView:{Feature:M},tap:{Feature:S},focus:{Feature:o.FocusGesture},hover:{Feature:r.HoverGesture}};var R=t.i(17871),L=t.i(77397);let B={layout:{ProjectionNode:R.HTMLProjectionNode,MeasureLayout:L.MeasureLayout}},k={...n.animations,...D,...s.drag,...B},j=(0,i.createMotionProxy)(k,e.createDomVisualElement);t.s(["motion",()=>j],46932)}]);

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.