1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[588],{2205:(t,e,i)=>{i.d(e,{B:()=>r});let r="u">typeof document},3866:(t,e,i)=>{i.d(e,{t:()=>r});let r=(0,i(14232).createContext)(null)},5048:(t,e,i)=>{i.d(e,{L:()=>r});let r=(0,i(14232).createContext)({})},23042:(t,e,i)=>{i.d(e,{N:()=>g});var r=i(14232),n=i(50181);function s(){let t=(0,r.useRef)(!1);return(0,n.E)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var o=i(42178),a=i(3866),l=i(91200);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:t,isPresent:e}){let i=(0,r.useId)(),n=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:t,height:r,top:o,left:a}=s.current;if(e||!n.current||!t||!r)return;n.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${r}px !important; 6 top: ${o}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[e]),r.createElement(u,{isPresent:e,childRef:n,sizeRef:s},r.cloneElement(t,{ref:n}))}let c=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:o,mode:u})=>{let c=(0,l.M)(d),p=(0,r.useId)(),m=(0,r.useMemo)(()=>({id:p,initial:e,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(c.set(t,!0),c.values()))if(!e)return;n&&n()},register:t=>(c.set(t,!1),()=>c.delete(t))}),o?void 0:[i]);return(0,r.useMemo)(()=>{c.forEach((t,e)=>c.set(e,!1))},[i]),r.useEffect(()=>{i||c.size||!n||n()},[i]),"popLayout"===u&&(t=r.createElement(h,{isPresent:i},t)),r.createElement(a.t.Provider,{value:m},t)};function d(){return new Map}var p=i(5048),m=i(62919);let f=t=>t.key||"",g=({children:t,custom:e,initial:i=!0,onExitComplete:a,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:h="sync"})=>{var d;let g;(0,m.V)(!l,"Replace exitBeforeEnter with mode='wait'");let v=(0,r.useContext)(p.L).forceRender||function(){let t=s(),[e,i]=(0,r.useState)(0),n=(0,r.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,r.useCallback)(()=>o.Gt.postRender(n),[n]),e]}()[0],y=s(),x=(g=[],r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&g.push(t)}),g),P=x,b=(0,r.useRef)(new Map).current,w=(0,r.useRef)(P),T=(0,r.useRef)(new Map).current,A=(0,r.useRef)(!0);if((0,n.E)(()=>{A.current=!1,x.forEach(t=>{let e=f(t);T.set(e,t)}),w.current=P}),d=()=>{A.current=!0,T.clear(),b.clear()},(0,r.useEffect)(()=>()=>d(),[]),A.current)return r.createElement(r.Fragment,null,P.map(t=>r.createElement(c,{key:f(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u,mode:h},t)));P=[...P];let V=w.current.map(f),S=x.map(f),E=V.length;for(let t=0;t<E;t++){let e=V[t];-1!==S.indexOf(e)||b.has(e)||b.set(e,void 0)}return"wait"===h&&b.size&&(P=[]),b.forEach((t,i)=>{if(-1!==S.indexOf(i))return;let n=T.get(i);if(!n)return;let s=V.indexOf(i),o=t;o||(o=r.createElement(c,{key:f(n),isPresent:!1,onExitComplete:()=>{b.delete(i);let t=Array.from(T.keys()).filter(t=>!S.includes(t));if(t.forEach(t=>T.delete(t)),w.current=x.filter(e=>{let r=f(e);return r===i||t.includes(r)}),!b.size){if(!1===y.current)return;v(),a&&a()}},custom:e,presenceAffectsLayout:u,mode:h},n),b.set(i,o)),P.splice(s,0,o)}),P=P.map(t=>{let e=t.key;return b.has(e)?t:r.createElement(c,{key:f(t),isPresent:!0,presenceAffectsLayout:u,mode:h},t)}),r.createElement(r.Fragment,null,b.size?P:P.map(t=>(0,r.cloneElement)(t)))}},42178:(t,e,i)=>{let r,n,s,o,a,l;i.d(e,{WG:()=>m,Gt:()=>p,uv:()=>f,Ci:()=>g});var u,h=i(80046);class c{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let d=["prepare","read","update","preRender","render","postRender"],{schedule:p,cancel:m,state:f,steps:g}=(u="u">typeof requestAnimationFrame?requestAnimationFrame:h.l,r=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},o=d.reduce((t,e)=>{var i;let n,s,o,a,l,u,h;return t[e]=(i=()=>r=!0,n=new c,s=new c,o=0,a=!1,l=!1,u=new WeakSet,h={schedule:(t,e=!1,i=!1)=>{let r=i&&a,l=r?n:s;return e&&u.add(t),l.add(t)&&r&&a&&(o=n.order.length),t},cancel:t=>{s.remove(t),u.delete(t)},process:t=>{if(a){l=!0;return}if(a=!0,[n,s]=[s,n],s.clear(),o=n.order.length)for(let e=0;e<o;e++){let r=n.order[e];r(t),u.has(r)&&(h.schedule(r),i())}a=!1,l&&(l=!1,h.process(t))}}),t},{}),a=t=>o[t].process(s),l=()=>{let t=performance.now();r=!1,s.delta=n?1e3/60:Math.max(Math.min(t-s.timestamp,40),1),s.timestamp=t,s.isProcessing=!0,d.forEach(a),s.isProcessing=!1,r&&(n=!1,u(l))},{schedule:d.reduce((t,e)=>{let i=o[e];return t[e]=(t,e=!1,o=!1)=>(!r&&(r=!0,n=!0,s.isProcessing||u(l)),i.schedule(t,e,o)),t},{}),cancel:t=>
9d.forEach(e=>o[e].cancel(t)),state:s,steps:o})},50181:(t,e,i)=>{i.d(e,{E:()=>n});var r=i(14232);let n=i(2205).B?r.useLayoutEffect:r.useEffect},62919:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>s});var r=i(80046);let n=r.l,s=r.l},67421:(t,e,i)=>{let r,n;i.d(e,{P:()=>nM});var s,o,a=i(14232);let l=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),u=(0,a.createContext)({});var h=i(3866),c=i(50181);let d=(0,a.createContext)({strict:!1}),p=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),m="data-"+p("framerAppearId");function f(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function g(t){return"string"==typeof t||Array.isArray(t)}function v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x=["initial",...y];function P(t){return v(t.animate)||x.some(e=>g(t[e]))}function b(t){return!!(P(t)||t.variants)}function w(t){return Array.isArray(t)?t.join(" "):t}let T={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"]},A={};for(let t in T)A[t]={isEnabled:e=>T[t].some(t=>!!e[t])};var V=i(2205),S=i(5048);let E=(0,a.createContext)({}),C=Symbol.for("motionComponentSymbol"),M=["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 k(t){if("string"!=typeof t||t.includes("-"));else if(M.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let D={},R=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(R);function j(t,{layout:e,layoutId:i}){return L.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!D[t]||"opacity"===t)}let F=t=>!!(t&&t.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=R.length,I=t=>e=>"string"==typeof e&&e.startsWith(t),U=I("--"),$=I("var(--"),G=(t,e)=>e&&"number"==typeof t?e.transform(t):t,W=(t,e,i)=>Math.min(Math.max(i,t),e),N={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},z={...N,transform:t=>W(0,1,t)},H={...N,default:1},Y=t=>Math.round(1e5*t)/1e5,X=/(-)?([\d]*\.?[\d])+/g,q=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function _(t){return"string"==typeof t}let K=t=>({test:e=>_(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),J=K("deg"),Q=K("%"),tt=K("px"),te=K("vh"),ti=K("vw"),tr={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(100*t)},tn={...N,transform:Math.round},ts={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,radius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,size:tt,top:tt,right:tt,bottom:tt,left:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:H,scaleX:H,scaleY:H,scaleZ:H,skew:J,skewX:J,skewY:J,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:z,originX:tr,originY:tr,originZ:tt,zIndex:tn,fillOpacity:z,strokeOpacity:z,numOctaves:tn};function to(t,e,i,r){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(U(t)){s[t]=i;continue}let r=ts[t],c=G(i,r);if(L.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):n[t]=c}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0}
9,r,n){let s="";for(let e=0;e<O;e++){let i=R[e];if(void 0!==t[i]){let e=B[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):i&&r&&(s="none"),s}(t.transform,i,h,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let ta=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tl(t,e,i){for(let r in e)F(e[r])||j(r,i)||(t[r]=e[r])}let tu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function th(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tu.has(t)}let tc=t=>!th(t);try{(s=require("@emotion/is-prop-valid").default)&&(tc=t=>t.startsWith("on")?!th(t):s(t))}catch(t){}function td(t,e,i){return"string"==typeof t?t:tt.transform(e+i*t)}let tp={offset:"stroke-dashoffset",array:"stroke-dasharray"},tm={offset:"strokeDashoffset",array:"strokeDasharray"};function tf(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){let p,m;if(to(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g,dimensions:v}=t;f.transform&&(v&&(g.transform=f.transform),delete f.transform),v&&(void 0!==n||void 0!==s||g.transform)&&(p=td(void 0!==n?n:.5,v.x,v.width),m=td(void 0!==s?s:.5,v.y,v.height),g.transformOrigin=`${p} ${m}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==r&&(f.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?tp:tm;t[s.offset]=tt.transform(-r);let o=tt.transform(e),a=tt.transform(i);t[s.array]=`${o} ${a}`}(f,o,a,l,!1)}let tg=()=>({...ta(),attrs:{}}),tv=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ty(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let tx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tP(t,e,i,r){for(let i in ty(t,e,void 0,r),e.attrs)t.setAttribute(tx.has(i)?i:p(i),e.attrs[i])}function tb(t,e){let{style:i}=t,r={};for(let n in i)(F(i[n])||e.style&&F(e.style[n])||j(n,t))&&(r[n]=i[n]);return r}function tw(t,e){let i=tb(t,e);for(let r in t)(F(t[r])||F(e[r]))&&(i[-1!==R.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}function tT(t,e,i,r={},n={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),e}var tA=i(91200);let tV=t=>Array.isArray(t),tS=t=>tV(t)?t[t.length-1]||0:t;function tE(t){let e=F(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let tC=t=>(e,i)=>{let r=(0,a.useContext)(u),n=(0,a.useContext)(h.t),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},r,n,s){let o={latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=tE(s[t]);let{initial:o,animate:a}=t,l=P(t),u=b(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!v(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=tT(t,e);if(!i)return;let{transitionEnd:r,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in r)n[t]=r[t]}),n}(r,n,s,t),renderState:e()};return i&&(o.mount=t=>i(r,t,o)),o})(t,e,r,n);return i?s():(0,tA.M)(s)};var tM=i(42178);let tk={useVisualState:tC({scrapeMotionValuesFromProps:tw,createRenderState:tg,onMount:(t,e,{renderState:i,latestValues:r})=>{tM.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),tM.Gt.render(()=>{tf(i,r,{enableHardwareAcceleration:!1},tv(e.tagName),t.transformTemplate),tP(e,i)})}})},tD={useVisualState:tC({scrapeMotionValuesFromProps:tb,createRenderState:ta})};function tR(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let tL=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tj(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function tF(t,e,i,r){return tR(t,e,t=>tL(t)&&i(t,tj(t)),r)}let tB=(t,e)=>i=>e(t(i)),tO=(...t)=>t.reduce(tB);function tI(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tU=tI("dragHorizontal"),t$=tI("dragVertical");function tG(t){let e=!1;if("y"===t)e=t$();else if("x"===t)e=tU();else{let t=tU(),i=t$();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function tW(){let t=tG(!0);return!t||(t(),!1)}class tN{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tz(t,e){let i="onHover"+(e?"Start":"End");return tF(t.current,"pointer"+(e?"enter":"leave"),(r,n)=>{if("touch"===r.pointerType||tW())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&tM.Gt.update(()=>s[i](r,n))},{passive:!t.getProps()[i]})}class tH extends tN{mount(){this.unmount=tO(tz(this.node,!0),tz(this.node,!1))}unmount(){}}class tY extends tN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tO(tR(this.node.current,"focus",()=>this.onFocus()),tR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tX=(t,e)=>!!e&&(t===e||tX(t,e.parentElement));var tq=i(80046);function tZ(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tj(i))}class t_ extends tN{constructor(){super(...arguments),this.removeStartListeners=tq.l,this.removeEndListeners=tq.l,this.removeAccessibleListeners=tq.l,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=tF(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps();tM.Gt.update(()=>{n||tX(this.node.current,t.target)?i&&i(t,e):r&&r(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),n=tF(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=tO(r,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&tZ("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&tM.Gt.update(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=tR(this.node.current,"keyup",e),tZ("down",(t,e)=>{this.startPress(t,e)})},e=tR(this.node.current,"keydown",t),i=()=>{this.isPressing&&tZ("cancel",(t,e)=>this.cancelPress(t,e))},r=tR(this.node.current,"blur",i);this.removeAccessibleListeners=tO(e,r)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&tM.Gt.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tW()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&tM.Gt.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tF(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tR(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tO(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tK=new WeakMap,tJ=new WeakMap,tQ=t=>{let e=tK.get(t.target);e&&e(t)}
9,t0=t=>{t.forEach(tQ)},t1={some:0,all:1};class t2 extends tN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:t1[s]},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:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;tJ.has(i)||tJ.set(i,{});let r=tJ.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(t0,{root:t,...e})),r[n]}(a),tK.set(t,l),e.observe(t),()=>{tK.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(){}}function t5(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function t3(t,e,i){let r,n,s=t.getProps();return tT(s,e,void 0!==i?i:s.custom,(r={},t.values.forEach((t,e)=>r[e]=t.get()),r),(n={},t.values.forEach((t,e)=>n[e]=t.getVelocity()),n))}var t4=i(62919);let t9=t=>1e3*t,t6=t=>Array.isArray(t)&&"number"==typeof t[0],t8=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t8([0,.65,.55,1]),circOut:t8([.55,0,1,.45]),backIn:t8([.31,.01,.66,-.59]),backOut:t8([.33,1.53,.69,.99])},et=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ee(t,e,i,r){return t===e&&i===r?tq.l:n=>0===n||1===n?n:et(function(t,e,i,r,n){let s,o,a=0;do(s=et(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(n,0,1,t,i),e,r)}let ei=ee(.42,0,1,1),er=ee(0,0,.58,1),en=ee(.42,0,.58,1),es=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eo=t=>e=>1-t(1-e),ea=t=>1-Math.sin(Math.acos(t)),el=eo(ea),eu=es(ea),eh=ee(.33,1.53,.69,.99),ec=eo(eh),ed=es(ec),ep={linear:tq.l,easeIn:ei,easeInOut:en,easeOut:er,circIn:ea,circInOut:eu,circOut:el,backIn:ec,backInOut:ed,backOut:eh,anticipate:t=>(t*=2)<1?.5*ec(t):.5*(2-Math.pow(2,-10*(t-1)))},em=t=>{if(Array.isArray(t)){(0,t4.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return ee(e,i,r,n)}return"string"==typeof t?((0,t4.V)(void 0!==ep[t],`Invalid easing type '${t}'`),ep[t]):t},ef=(t,e)=>i=>!!(_(i)&&Z.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eg=(t,e,i)=>r=>{if(!_(r))return r;let[n,s,o,a]=r.match(X);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ev={...N,transform:t=>Math.round(W(0,255,t))},ey={test:ef("rgb","red"),parse:eg("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+ev.transform(t)+", "+ev.transform(e)+", "+ev.transform(i)+", "+Y(z.transform(r))+")"},ex={test:ef("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:ey.transform},eP={test:ef("hsl","hue"),parse:eg("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+Q.transform(Y(e))+", "+Q.transform(Y(i))+", "+Y(z.transform(r))+")"},eb={test:t=>ey.test(t)||ex.test(t)||eP.test(t),parse:t=>ey.test(t)?ey.parse(t):eP.test(t)?eP.parse(t):ex.parse(t),transform:t=>_(t)?t:t.hasOwnProperty("red")?ey.transform(t):eP.transform(t)},ew=(t,e,i)=>-i*t+i*e+t;function eT(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let eA=(t,e,i)=>{let r=t*t;return Math.sqrt(Math.max(0,i*(e*e-r)+r))},eV=[ex,ey,eP];function eS(t){let e=eV.find(e=>e.test(t));(0,t4.V)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eP&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=eT(a,r,t+1/3),s=eT(a,r,t),o=eT(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let eE=(t,e)=>{let i=eS(t),r=eS(e),n={...i};return t=>(n.red=eA(i.red,r.red,t),n.green=eA(i.green,r.green,t),n.blue=eA(i.blue,r.blue,t),n.alpha=ew(i.alpha,r.alpha,t),ey.transform(n))}
9,eC={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tq.l},eM={regex:q,countKey:"Colors",token:"${c}",parse:eb.parse},ek={regex:X,countKey:"Numbers",token:"${n}",parse:N.parse};function eD(t,{regex:e,countKey:i,token:r,parse:n}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(n)))}function eR(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&eD(i,eC),eD(i,eM),eD(i,ek),i}function eL(t){return eR(t).values}function ej(t){let{values:e,numColors:i,numVars:r,tokenised:n}=eR(t),s=e.length;return t=>{let e=n;for(let n=0;n<s;n++)e=n<r?e.replace(eC.token,t[n]):n<r+i?e.replace(eM.token,eb.transform(t[n])):e.replace(ek.token,Y(t[n]));return e}}let eF=t=>"number"==typeof t?0:t,eB={test:function(t){var e,i;return isNaN(t)&&_(t)&&((null==(e=t.match(X))?void 0:e.length)||0)+((null==(i=t.match(q))?void 0:i.length)||0)>0},parse:eL,createTransformer:ej,getAnimatableNone:function(t){let e=eL(t);return ej(t)(e.map(eF))}},eO=(t,e)=>i=>`${i>0?e:t}`;function eI(t,e){return"number"==typeof t?i=>ew(t,e,i):eb.test(t)?eE(t,e):t.startsWith("var(")?eO(t,e):eG(t,e)}let eU=(t,e)=>{let i=[...t],r=i.length,n=t.map((t,i)=>eI(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}},e$=(t,e)=>{let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=eI(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}},eG=(t,e)=>{let i=eB.createTransformer(e),r=eR(t),n=eR(e);return r.numVars===n.numVars&&r.numColors===n.numColors&&r.numNumbers>=n.numNumbers?tO(eU(r.values,n.values),i):((0,t4.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eO(t,e))},eW=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},eN=(t,e)=>i=>ew(t,e,i);function ez(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if((0,t4.V)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let r=[],n=i||function(t){if("number"==typeof t);else if("string"==typeof t)return eb.test(t)?eE:eG;else if(Array.isArray(t))return eU;else if("object"==typeof t)return e$;return eN}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=tO(Array.isArray(e)?e[i]||tq.l:e,s)),r.push(s)}return r}(e,r,n),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let r=eW(t[i],t[i+1],e);return o[i](r)};return i?e=>l(W(t[0],t[s-1],e)):l}function eH({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(em):em(r),a={done:!1,value:e[0]},l=ez((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=eW(0,e,r);t.push(ew(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||en).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}function eY(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function eX(t,e){return t*Math.sqrt(1-e*e)}let eq=["duration","bounce"],eZ=["stiffness","damping","mass"];function e_(t,e){return e.some(e=>void 0!==t[e])}function eK({keyframes:t,restDelta:e,restSpeed:i,...r}){let n,s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e_(t,eZ)&&e_(t,eq)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;(0,t4.$)(t<=t9(10),"Spring duration must be 10 seconds or less");let o=1-e;o=W(.05,1,o),t=W(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/eX(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=eX(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
9let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=t9(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),m=d||0,f=u/(2*Math.sqrt(l*h)),g=o-s,v=Math.sqrt(l/h)/1e3,y=5>Math.abs(g);if(i||(i=y?.01:2),e||(e=y?.005:.5),f<1){let t=eX(v,f);n=e=>o-Math.exp(-f*v*e)*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===f)n=t=>o-Math.exp(-v*t)*(g+(m+v*g)*t);else{let t=v*Math.sqrt(f*f-1);n=e=>{let i=Math.exp(-f*v*e),r=Math.min(t*e,300);return o-i*((m+f*v*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{let r=n(t);if(p)a.done=t>=c;else{let s=m;0!==t&&(s=f<1?eY(n,t,r):0);let l=Math.abs(o-r)<=e;a.done=Math.abs(s)<=i&&l}return a.value=a.done?o:r,a}}}function eJ({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/r),x=t=>v+y(t),P=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eK({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eY(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),b(t)),void 0!==c&&t>c)?d.next(t-c):(e||P(t),m)}}}let eQ=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tM.Gt.update(e,!0),stop:()=>(0,tM.WG)(e),now:()=>tM.uv.isProcessing?tM.uv.timestamp:performance.now()}};function e0(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let e1={decay:eJ,inertia:eJ,tween:eH,keyframes:eH,spring:eK};function e2({autoplay:t=!0,delay:e=0,driver:i=eQ,keyframes:r,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,m,f,g,v,y=1,x=!1,P=()=>{m=new Promise(t=>{p=t})};P();let b=e1[n]||eH;b!==eH&&"number"!=typeof r[0]&&(g=ez([0,100],r,{clamp:!1}),r=[0,100]);let w=b({...d,keyframes:r});"mirror"===a&&(v=b({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let T="idle",A=null,V=null,S=null;null===w.calculatedDuration&&s&&(w.calculatedDuration=e0(w));let{calculatedDuration:E}=w,C=1/0,M=1/0;null!==E&&(M=(C=E+o)*(s+1)-o);let k=0,D=t=>{if(null===V)return;y>0&&(V=Math.min(V,t)),y<0&&(V=Math.min(t-M/y,V));let i=(k=null!==A?A:Math.round(t-V)*y)-e*(y>=0?1:-1),n=y>=0?i<0:i>M;k=Math.max(i,0),"finished"===T&&null===A&&(k=M);let l=k,u=w;if(s){let t=Math.min(k,M)/C,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(i=1-i,o&&(i-=o/C)):"mirror"===a&&(u=v)),l=W(0,1,i)*C}let h=n?{done:!1,value:r[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;n||null===E||(d=y>=0?k>=M:k<=0);let p=null===A&&("finished"===T||"running"===T&&d);return c&&c(h.value),p&&j(),h},R=()=>{f&&f.stop(),f=void 0},L=()=>{T="idle",R(),p(),P(),V=S=null},j=()=>{T="finished",h&&h(),R(),p()},F=()=>{if(x)return;f||(f=i(D));let t=f.now();l&&l(),null!==A?V=t-A:V&&"finished"!==T||(V=t),"finished"===T&&P(),S=V,A=null,T="running",f.start()};t&&F();let B={then:(t,e)=>m.then(t,e),get time(){return k/1e3},set time(newTime){k=newTime=t9(newTime),null===A&&f&&0!==y?V=f.now()-newTime/y:A=newTime},get duration(){return(null===w.calculatedDuration?e0(w):w.calculatedDuration)/1e3},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,B.time=k/1e3},get state(){return T},play:F,pause:()=>{T="paused",A=k},stop:()=>{x=!0,"idle"!==T&&(T="idle",u&&u(),L())},cancel:()=>{null!==S&&D(S),L()},complete:()=>{T="finished"},sample:t=>(V=0,D(t))};return B}let e5=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),e3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),e4={type:"spring",stiffness:500,damping:25,restSpeed:10},e9={type:"keyframes",duration:.8},e6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e8=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eB.test(e)||"0"===e)&&!e.startsWith("url(")),e7=new Set(["brightness","contrast","saturate","opacity"]);function it(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(X)||[];
9if(!r)return t;let n=i.replace(r,""),s=+!!e7.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let ie=/([a-z-]*)\(.*?\)/g,ii={...eB,getAnimatableNone:t=>{let e=t.match(ie);return e?e.map(it).join(" "):t}},ir={...ts,color:eb,backgroundColor:eb,outlineColor:eb,fill:eb,stroke:eb,borderColor:eb,borderTopColor:eb,borderRightColor:eb,borderBottomColor:eb,borderLeftColor:eb,filter:ii,WebkitFilter:ii},is=t=>ir[t];function io(t,e){let i=is(t);return i!==ii&&(i=eB),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let ia=t=>/^0[^.\s]+$/.test(t);function il(t,e){return t[e]||t.default||t}let iu=(t,e,i,r={})=>n=>{let s=il(r,t)||{},o=s.delay||r.delay||0,{elapsed:a=0}=r;a-=t9(o);let l=function(t,e,i,r){let n,s,o=e8(e,i);n=Array.isArray(i)?[...i]:[null,i];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<n.length;t++){var u;null===n[t]&&(n[t]=0===t?a:n[t-1]),("number"==typeof(u=n[t])?0===u:null!==u?"none"===u||"0"===u||ia(u):void 0)&&l.push(t),"string"==typeof n[t]&&"none"!==n[t]&&"0"!==n[t]&&(s=n[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)n[l[t]]=io(e,s);return n}(e,t,i,s),u=l[0],h=l[l.length-1],c=e8(t,u),d=e8(t,h);(0,t4.$)(c===d,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let p={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(p={...p,...((t,{keyframes:e})=>e.length>2?e9:L.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e4:e6)(t,p)}),p.duration&&(p.duration=t9(p.duration)),p.repeatDelay&&(p.repeatDelay=t9(p.repeatDelay)),!c||!d||!1===s.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:r}){let n=()=>(i&&i(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tq.l,pause:tq.l,stop:tq.l,then:t=>(t(),Promise.resolve()),cancel:tq.l,complete:tq.l});return e?e2({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}(p);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:r,...n}){let s,o;if(!(e5()&&e3.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:c=300,ease:d,times:p}=n;if("spring"===n.type||"backgroundColor"===e||!function t(e){return!!(!e||"string"==typeof e&&t7[e]||t6(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let t=e2({...n,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),i.push(e.value),r+=10;p=void 0,h=i,c=r-10,d="linear"}let m=function(t,e,i,{delay:r=0,duration:n,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return t6(e)?t8(e):Array.isArray(e)?e.map(t):t7[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...n,duration:c,ease:d,times:p}),f=()=>{l=!1,m.cancel()},g=()=>{l=!0,tM.Gt.update(f),s(),u()};return m.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let r=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[r]}(h,n)),r&&r(),g())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(m.timeline=t,m.onfinish=null,tq.l),get time(){return(m.currentTime||0)/1e3},set time(newTime){m.currentTime=t9(newTime)},get speed(){return m.playbackRate},set speed(newSpeed){m.playbackRate=newSpeed},get duration(){return c/1e3},play:()=>{a||(m.play(),(0,tM.WG)(f))},pause:()=>m.pause(),stop:()=>{if(a=!0,"idle"===m.playState)return;let{currentTime:e}=m;if(e){let i=e2({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}g()},complete:()=>{l||m.finish()},cancel:g}}(e,t,p);if(i)return i}return e2(p)};function ih(t){return!!(F(t)&&t.add)}let ic=t=>/^\-?\d*\.?\d+$/.test(t);function id(t,e){-1===t.indexOf(e)&&t.push(e)}function ip(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class im{constructor(){this.subscriptions=[]}add(t){return id(this.subscriptions,t),()=>ip(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ig{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:i,timestamp:r}=tM.uv;this.lastUpdated!==r&&(this.timeDelta=i,this.lastUpdated=r,tM.Gt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>tM.Gt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(t=>!isNaN(parseFloat(t)))(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new im);let i=this.events[t].add(e);return"change"===t?()=>{i(),tM.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iv(t,e){return new ig(t,e)}let iy=t=>e=>e.test(t),ix=[N,tt,Q,J,ti,te,{test:t=>"auto"===t,parse:t=>t}],iP=t=>ix.find(iy(t)),ib=[...ix,eb,eB],iw=t=>ib.find(iy(t));function iT(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e),n=a[e];if(!r||void 0===n||h&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(h,e))continue;let o={delay:i,elapsed:0,...il(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[m];if(i){let t=window.HandoffAppearAnimations(i,e,r,tM.Gt);null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(r,n);if("spring"===o.type&&(r.getVelocity()||o.velocity)&&(c=!1),r.animation&&(c=!1),c)continue;r.start(iu(e,r,n,t.shouldReduceMotion&&L.has(e)?{type:!1}:o));let d=r.animation;ih(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=t3(t,e),{transitionEnd:r={},transition:n={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...r}){let i=tS(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,iv(i))}}(t,o)}),u}function iA(t,e,i={}){let r=t3(t,e,i.custom),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(iT(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;
9return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(iV).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(iA(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function iV(t,e){return t.sortNodePosition(e)}let iS=[...y].reverse(),iE=y.length;function iC(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class iM extends tN{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>iA(t,e,i)));else if("string"==typeof e)r=iA(t,e,i);else{let n="function"==typeof e?t3(t,e,i.custom):e;r=Promise.all(iT(t,n,i))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:iC(!0),whileInView:iC(),whileHover:iC(),whileTap:iC(),whileDrag:iC(),whileFocus:iC(),exit:iC()},r=!0,n=(e,i)=>{let r=t3(t,i);if(r){let{transition:t,transitionEnd:i,...n}=r;e={...e,...n,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iE;e++){var p,m;let f=iS[e],y=i[f],x=void 0!==a[f]?a[f]:l[f],P=g(x),b=f===o?y.isActive:null;!1===b&&(d=e);let w=x===l[f]&&x!==a[f]&&P;if(w&&r&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===b||!x&&!y.prevProp||v(x)||"boolean"==typeof x)continue;let T=(p=y.prevProp,("string"==typeof(m=x)?m!==p:!!Array.isArray(m)&&!t5(m,p))||f===o&&y.isActive&&!w&&P||e>d&&P),A=!1,V=Array.isArray(x)?x:[x],S=V.reduce(n,{});!1===b&&(S={});let{prevResolvedValues:E={}}=y,C={...E,...S},M=t=>{T=!0,h.has(t)&&(A=!0,h.delete(t)),y.needsAnimating[t]=!0};for(let t in C){let e=S[t],i=E[t];if(!c.hasOwnProperty(t))(tV(e)&&tV(i)?t5(e,i):e===i)?void 0!==e&&h.has(t)?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):h.add(t)}y.prevProp=x,y.prevResolvedValues=S,y.isActive&&(c={...c,...S}),r&&t.blockInitialAnimation&&(T=!1),T&&(!w||A)&&u.push(...V.map(t=>({animation:t,options:{type:f,...s}})))}if(h.size){let e={};h.forEach(i=>{let r=t.getBaseTarget(i);void 0!==r&&(e[i]=r)}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,r,n){var o;if(i[e].isActive===r)return Promise.resolve();null==(o=t.variantChildren)||o.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let a=s(n,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),v(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let ik=0;class iD extends tN{constructor(){super(...arguments),this.id=ik++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let iR=(t,e)=>Math.abs(t-e);class iL{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iB(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(iR(t.x,e.x)**2+iR(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=tM.uv;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ij(e,this.transformPagePoint),tM.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iB("pointercancel"===t.type?this.lastMoveEventInfo:ij(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tL(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=ij(tj(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=tM.uv;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,iB(s,this.history)),this.removeListeners=tO(tF(this.contextWindow,"pointermove",this.handlePointerMove),tF(this.contextWindow,"pointerup",this.handlePointerUp),tF(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tM.WG)(this.updatePoint)}}function ij(t,e){return e?{point:e(t.point)}:t}function iF(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iB({point:t},e){return{point:t,delta:iF(t,iO(e)),offset:iF(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=iO(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>
9t9(.1)));)i--;if(!r)return{x:0,y:0};let s=(n.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iO(t){return t[t.length-1]}function iI(t){return t.max-t.min}function iU(t,e=0,i=.01){return Math.abs(t-e)<=i}function i$(t,e,i,r=.5){t.origin=r,t.originPoint=ew(e.min,e.max,t.origin),t.scale=iI(i)/iI(e),(iU(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=ew(i.min,i.max,t.origin)-t.originPoint,(iU(t.translate)||isNaN(t.translate))&&(t.translate=0)}function iG(t,e,i,r){i$(t.x,e.x,i.x,r?r.originX:void 0),i$(t.y,e.y,i.y,r?r.originY:void 0)}function iW(t,e,i){t.min=i.min+e.min,t.max=t.min+iI(e)}function iN(t,e,i){t.min=e.min-i.min,t.max=t.min+iI(e)}function iz(t,e,i){iN(t.x,e.x,i.x),iN(t.y,e.y,i.y)}function iH(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 iY(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iX(t,e,i){return{min:iq(t,e),max:iq(t,i)}}function iq(t,e){return"number"==typeof t?t:t[e]||0}let iZ=()=>({translate:0,scale:1,origin:0,originPoint:0}),i_=()=>({x:iZ(),y:iZ()}),iK=()=>({min:0,max:0}),iJ=()=>({x:iK(),y:iK()});function iQ(t){return[t("x"),t("y")]}function i0({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function i1(t){return void 0===t||1===t}function i2({scale:t,scaleX:e,scaleY:i}){return!i1(t)||!i1(e)||!i1(i)}function i5(t){return i2(t)||i3(t)||t.z||t.rotate||t.rotateX||t.rotateY}function i3(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function i4(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function i9(t,e=0,i=1,r,n){t.min=i4(t.min,e,i,r,n),t.max=i4(t.max,e,i,r,n)}function i6(t,{x:e,y:i}){i9(t.x,e.translate,e.scale,e.originPoint),i9(t.y,i.translate,i.scale,i.originPoint)}function i8(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function i7(t,e){t.min=t.min+e,t.max=t.max+e}function rt(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,o=ew(t.min,t.max,s);i9(t,e[i],e[r],o,e.scale)}let re=["x","scaleX","originX"],ri=["y","scaleY","originY"];function rr(t,e){rt(t.x,e,re),rt(t.y,e,ri)}function rn(t,e){return i0(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rs=({current:t})=>t?t.ownerDocument.defaultView:null,ro=new WeakMap;class ra{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iJ(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tj(t,"page").point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tG(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iQ(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Q.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iI(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tM.Gt.update(()=>n(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iQ(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new iL(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:rs(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&tM.Gt.update(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!rl(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?ew(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?ew(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&f(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:iH(t.x,i,n),y:iH(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iX(t,"left","right"),y:iX(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iQ(t=>{var e,i;let n;this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!f(e))return!1;let r=e.current;(0,t4.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let s=function(t,e,i){let r=rn(t,i),{scroll:n}=e;return n&&(i7(r.x,n.offset.x),i7(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:iY(t.x,s.x),y:iY(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=i0(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iQ(o=>{if(!rl(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iu(t,i,0,e))}stopAnimation(){iQ(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iQ(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iQ(e=>{let{drag:i}=this.getProps();if(!rl(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-ew(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!f(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iQ(t=>{let e=this.getAxisMotionValue(t);if(e){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=iI(i),(a=iI(n))>o?s=eW(n.min,n.max-o,i.min):o>a&&(s=eW(i.min,i.max-a,n.min)),W(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iQ(e=>{if(!rl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(ew(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;ro.set(this.visualElement,this);let t=tF(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();f(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let n=tR(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iQ(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function rl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class ru extends tN{constructor(t){super(t),this.removeGroupControls=tq.l,this.removeListeners=tq.l,this.controls=new ra(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tq.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let rh=t=>(e,i)=>{t&&tM.Gt.update(()=>t(e,i))};class rc extends tN{constructor(){super(...arguments),this.removePointerDownListener=tq.l}onPointerDown(t){this.session=new iL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rs(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rh(t),onStart:rh(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&tM.Gt.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rp(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rm={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tt.test(t))return t;else t=parseFloat(t);let i=rp(t,e.target.x),r=rp(t,e.target.y);return`${i}% ${r}%`}};class rf extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(D,rv),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),rd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||tM.Gt.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rg(t){let[e,i]=function(){let t=(0,a.useContext)(h.t);
9if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:r}=t,n=(0,a.useId)();return(0,a.useEffect)(()=>r(n),[]),!e&&i?[!1,()=>i&&i(n)]:[!0]}(),r=(0,a.useContext)(S.L);return a.createElement(rf,{...t,layoutGroup:r,switchLayoutGroup:(0,a.useContext)(E),isPresent:e,safeToRemove:i})}let rv={borderRadius:{...rm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rm,borderTopRightRadius:rm,borderBottomLeftRadius:rm,borderBottomRightRadius:rm,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=eB.parse(t);if(r.length>5)return t;let n=eB.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=ew(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},ry=["TopLeft","TopRight","BottomLeft","BottomRight"],rx=ry.length,rP=t=>"string"==typeof t?parseFloat(t):t,rb=t=>"number"==typeof t||tt.test(t);function rw(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rT=rV(0,.5,el),rA=rV(.5,.95,tq.l);function rV(t,e,i){return r=>r<t?0:r>e?1:i(eW(t,e,r))}function rS(t,e){t.min=e.min,t.max=e.max}function rE(t,e){rS(t.x,e.x),rS(t.y,e.y)}function rC(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function rM(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=ew(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ew(s.min,s.max,r);t===s&&(a-=e),t.min=rC(t.min,e,i,a,n),t.max=rC(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let rk=["x","scaleX","originX"],rD=["y","scaleY","originY"];function rR(t,e,i,r){rM(t.x,e,rk,i?i.x:void 0,r?r.x:void 0),rM(t.y,e,rD,i?i.y:void 0,r?r.y:void 0)}function rL(t){return 0===t.translate&&1===t.scale}function rj(t){return rL(t.x)&&rL(t.y)}function rF(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rB(t){return iI(t.x)/iI(t.y)}class rO{constructor(){this.members=[]}add(t){id(this.members,t),t.scheduleRender()}remove(t){if(ip(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];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rI(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(r=`translate3d(${n}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:n}=i;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),n&&(r+=`rotateY(${n}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(r+=`scale(${o}, ${a})`),r||"none"}let rU=(t,e)=>t.depth-e.depth;class r${constructor(){this.children=[],this.isDirty=!1}add(t){id(this.children,t),this.isDirty=!0}remove(t){ip(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rU),this.isDirty=!1,this.children.forEach(t)}}let rG=["","X","Y","Z"],rW={visibility:"hidden"},rN=0,rz={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rz.totalNodes=rz.resolvedTargetDeltas=rz.recalculatedProjection=0,this.nodes.forEac
9h(rq),this.nodes.forEach(r1),this.nodes.forEach(r2),this.nodes.forEach(rZ),window.MotionDebug&&window.MotionDebug.record(rz)},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 r$)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new im),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=performance.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&((0,tM.WG)(e),r(n-250))},tM.Gt.read(e,!0),i=()=>(0,tM.WG)(e),rd.hasAnimatedSinceResize&&(rd.hasAnimatedSinceResize=!1,this.nodes.forEach(r0))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||r8,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rF(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...il(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||r0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tM.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r5),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(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rK);return}this.isUpdating||this.nodes.forEach(rJ),this.isUpdating=!1,this.nodes.forEach(rQ),this.nodes.forEach(rY),this.nodes.forEach(rX),this.clearAllSnapshots();let t=performance.now();tM.uv.delta=W(0,1e3/60,t-tM.uv.timestamp),tM.uv.timestamp=t,tM.uv.isProcessing=!0,tM.Ci.update.process(tM.uv),tM.Ci.preRender.process(tM.uv),tM.Ci.render.process(tM.uv),tM.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}
9clearAllSnapshots(){this.nodes.forEach(r_),this.sharedNodes.forEach(r3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iJ(),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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!rj(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||i5(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),ne((e=r).x),ne(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iJ();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(i7(e.x,i.offset.x),i7(e.y,i.offset.y)),e}removeElementScroll(t){let e=iJ();rE(e,t);for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;if(r!==this.root&&n&&s.layoutScroll){if(n.isRoot){rE(e,t);let{scroll:i}=this.root;i&&(i7(e.x,-i.offset.x),i7(e.y,-i.offset.y))}i7(e.x,n.offset.x),i7(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=iJ();rE(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rr(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i5(r.latestValues)&&rr(i,r.latestValues)}return i5(this.latestValues)&&rr(i,this.latestValues),i}removeTransform(t){let e=iJ();rE(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!i5(i.latestValues))continue;i2(i.latestValues)&&i.updateSnapshot();let r=iJ();rE(r,i.measurePageBox()),rR(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return i5(this.latestValues)&&rR(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!==tM.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tM.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iJ(),this.relativeTargetOrigin=iJ(),iz(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iJ(),this.targetWithTransforms=iJ()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,iW(i.x,r.x,n.x),iW(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rE(this.target,this.layout.layoutBox),i6(this.target,this.targetDelta)):rE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iJ(),this.relativeTargetOrigin=iJ(),iz(this.relativeTargetOrigin,this.target,t.target),rE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rz.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i2(this.parent.latestValues)||i3(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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tM.uv.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;rE(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
9!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rr(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,i6(t,s)),r&&i5(n.latestValues)&&rr(t,n.latestValues))}e.x=i8(e.x),e.y=i8(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=i_(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=i_(),this.projectionDeltaWithTransform=i_());let u=this.projectionTransform;iG(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rI(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rz.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=i_();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iJ(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(r6));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r4(o.x,t.x,r),r4(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;iz(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,r9(p.x,m.x,f.x,g),r9(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),i||(i=iJ()),rE(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=ew(0,void 0!==i.opacity?i.opacity:1,rT(r)),t.opacityExit=ew(void 0!==e.opacity?e.opacity:1,0,rA(r))):s&&(t.opacity=ew(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<rx;n++){let s=`border${ry[n]}Radius`,o=rw(e,s),a=rw(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rb(o)===rb(a)?(t[s]=Math.max(ew(rP(o),rP(a),r),0),(Q.test(a)||Q.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=ew(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tM.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.Gt.update(()=>{var e;let i;rd.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=F(0)?0:iv(0)).start(iu("",i,1e3,e)),i.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:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&ni(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||iJ();let e=iI(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iI(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rE(e,i),rr(e,n),iG(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rO),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<rG.length;e++){let n="rotate"+rG[e];i[n]&&(r[n]=i[n],t.setStaticValue(n,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rW;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tE(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tE(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!i5(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=rI(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,D){if(void 0===o[t])continue;let{correct:e,applyTo:i}=D[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}
9return this.options.layoutId&&(r.pointerEvents=s===this?tE(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rK),this.root.sharedNodes.clear()}}}function rY(t){t.updateLayout()}function rX(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?iQ(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=iI(r);r.min=e[t].min,r.max=r.min+n}):ni(n,i.layoutBox,e)&&iQ(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=iI(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=i_();iG(o,e,i.layoutBox);let a=i_();s?iG(a,t.applyTransform(r,!0),i.measuredBox):iG(a,e,i.layoutBox);let l=!rj(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=iJ();iz(o,i.layoutBox,n.layoutBox);let a=iJ();iz(a,e,s.layoutBox),rF(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rq(t){rz.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rZ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r_(t){t.clearSnapshot()}function rK(t){t.clearMeasurements()}function rJ(t){t.isLayoutDirty=!1}function rQ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r1(t){t.resolveTargetDelta()}function r2(t){t.calcProjection()}function r5(t){t.resetRotation()}function r3(t){t.removeLeadSnapshot()}function r4(t,e,i){t.translate=ew(e.translate,0,i),t.scale=ew(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r9(t,e,i,r){t.min=ew(e.min,i.min,r),t.max=ew(e.max,i.max,r)}function r6(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r8={duration:.45,ease:[.4,0,.1,1]},r7=t=>"u">typeof navigator&&navigator.userAgent.toLowerCase().includes(t),nt=r7("applewebkit/")&&!r7("chrome/")?Math.round:tq.l;function ne(t){t.min=nt(t.min),t.max=nt(t.max)}function ni(t,e,i){return"position"===t||"preserve-aspect"===t&&!iU(rB(e),rB(i),.2)}let nr=rH({attachResizeListener:(t,e)=>tR(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nn={current:void 0},ns=rH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nn.current){let t=new nr({});t.mount(window),t.setOptions({layoutScroll:!0}),nn.current=t}return nn.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),no=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function na(t,e,i=1){(0,t4.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=no.exec(t);if(!e)return[,];let[,i,r]=e;return[i,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return ic(t)?parseFloat(t):t}return $(n)?na(n,e,i+1):n}let nl=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nu=t=>nl.has(t),nh=t=>t===N||t===tt,nc=(t,e)=>parseFloat(t.split(", ")[e]),nd=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/);if(n)return nc(n[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?nc(e[1],t):0}},np=new Set(["x","y","z"]),nm=R.filter(t=>!np.has(t)),nf={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:nd(4,13),y:nd(5,14)};nf.translateX=nf.x,nf.translateY=nf.y;let ng={current:null},nv={current:!1}
9,ny=new WeakMap,nx=Object.keys(A),nP=nx.length,nb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nw=x.length;class nT{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,visualState:n},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tM.Gt.render(this.render,!1,!0);const{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.isControllingVariants=P(e),this.isVariantNode=b(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==o[t]&&F(e)&&(e.set(o[t],!1),ih(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,ny.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)),nv.current||function(){if(nv.current=!0,V.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ng.current=t.matches;t.addListener(e),e()}else ng.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ng.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in ny.delete(this.current),this.projection&&this.projection.unmount(),(0,tM.WG)(this.notifyUpdate),(0,tM.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=L.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.Gt.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,r,n){let s,o;for(let t=0;t<nP;t++){let i=nx[t],{isEnabled:r,Feature:n,ProjectionNode:a,MeasureLayout:l}=A[i];a&&(s=a),r(e)&&(!this.features[i]&&n&&(this.features[i]=new n(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:r,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!r||o&&f(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iJ()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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<nb.length;e++){let i=nb[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}
9this.prevMotionValues=function(t,e,i){let{willChange:r}=e;for(let n in e){let s=e[n],o=i[n];if(F(s))t.addValue(n,s),ih(r)&&r.add(n);else if(F(o))t.addValue(n,iv(s,{owner:t})),ih(r)&&r.remove(n);else if(o!==s)if(t.hasValue(n)){let e=t.getValue(n);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,iv(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),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}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<nw;t++){let i=x[t],r=this.props[i];(g(r)||!1===r)&&(e[i]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(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=iv(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!=(e=this.getBaseTargetFromProps(this.props,t))?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,r="string"==typeof i||"object"==typeof i?null==(e=tT(this.props,i))?void 0:e[t]:void 0;if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||F(n)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new im),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nA extends nT{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},n){let s=function(t,e,i){let r={};for(let n in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(n,e);if(void 0!==t)r[n]=t;else{let t=i.getValue(n);t&&(r[n]=t.get())}}return r}(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),s&&(s=r(s))),n){var o,a,l,u,h;let t;!function(t,e,i){var r,n;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(n=null!=(r=i[o])?r:t.readValue(o))?n:e[o]),null!=u&&("string"==typeof u&&(ic(u)||ia(u))?u=parseFloat(u):!iw(u)&&eB.test(l)&&(u=io(o,l)),t.addValue(o,iv(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,i,s);let r=(o=i,a=s,o=(t=function(t,{...e},i){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:i};for(let n in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!$(e))return;let i=na(e,r);i&&t.set(i)}),e){let t=e[n];if(!$(t))continue;let s=na(t,r);s&&(e[n]=s,i||(i={}),void 0===i[n]&&(i[n]=t))}return{target:e,transitionEnd:i}}(this,o,l=e)).target,l=t.transitionEnd,u=o,h=l,Object.keys(u).some(nu)?((t,e,i={},r={})=>{e={...e},r={...r};let n=Object.keys(e).filter(nu),s=[],o=!1,a=[];if(n.forEach(n=>{let l,u=t.getValue(n);if(!t.hasValue(n))return;let h=i[n],c=iP(h),d=e[n];if(tV(d)){let t=d.length,e=+(null===d[0]);c=iP(h=d[e]);for(let i=e;i<t&&null!==d[i];i++)l?(0,t4.V)(iP(d[i])===l,"All keyframes must be of the same type"):(l=iP(d[i]),(0,t4.V)(l===c||nh(c)&&nh(l),"Keyframes must be of the same dimension as the current value"))}else l=iP(d);if(c!==l)if(nh(c)&&nh(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[n]=parseFloat(d):Array.isArray(d)&&l===tt&&(e[n]=d.map(parseFloat))}else if((null==c?void 0:c.transform)&&(null==l?void 0:l.transform)&&(0===h||0===d))0===h?u.
9set(l.transform(h)):e[n]=c.transform(d);else{if(!o){let e;e=[],nm.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e.length&&t.render(),s=e,o=!0}a.push(n),r[n]=void 0!==r[n]?r[n]:e[n],u.jump(d)}}),!a.length)return{target:e,transitionEnd:r};{let i=a.indexOf("height")>=0?window.pageYOffset:null,n=((t,e,i)=>{let r=e.measureViewportBox(),n=getComputedStyle(e.current),{display:s}=n,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=nf[t](r,n)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let r=e.getValue(i);r&&r.jump(o[i]),t[i]=nf[i](a,n)}),t})(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),V.B&&null!==i&&window.scrollTo({top:i}),{target:n,transitionEnd:r}}})(this,u,a,h):{target:u,transitionEnd:h});e=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:e,...i}}}class nV extends nA{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(L.has(e)){let t=is(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(U(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rn(t,e)}build(t,e,i,r){to(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tb(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;F(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){ty(t,e,i,r)}}class nS extends nA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(L.has(e)){let t=is(e);return t&&t.default||0}return e=tx.has(e)?e:p(e),t.getAttribute(e)}measureInstanceViewportBox(){return iJ()}scrapeMotionValuesFromProps(t,e){return tw(t,e)}build(t,e,i,r){tf(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){tP(t,e,i,r)}mount(t){this.isSVGTag=tv(t.tagName),super.mount(t)}}let nE=(t,e)=>k(t)?new nS(e,{enableHardwareAcceleration:!1}):new nV(e,{enableHardwareAcceleration:!0}),nC={animation:{Feature:iM},exit:{Feature:iD},inView:{Feature:t2},tap:{Feature:t_},focus:{Feature:tY},hover:{Feature:tH},pan:{Feature:rc},drag:{Feature:ru,ProjectionNode:ns,MeasureLayout:rg},layout:{ProjectionNode:ns,MeasureLayout:rg}},nM=function(t){function e(i,r={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){t&&function(t){for(let e in t)A[e]={...A[e],...t[e]}}(t);let s=(0,a.forwardRef)(function(s,o){var p;let v,y={...(0,a.useContext)(l),...s,layoutId:function({layoutId:t}){let e=(0,a.useContext)(S.L).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:x}=y,b=function(t){let{initial:e,animate:i}=function(t,e){if(P(t)){let{initial:e,animate:i}=t;return{initial:!1===e||g(e)?e:void 0,animate:g(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(u));return(0,a.useMemo)(()=>({initial:e,animate:i}),[w(e),w(i)])}(s),T=r(s,x);if(!x&&V.B){b.visualElement=function(t,e,i,r){let{visualElement:n}=(0,a.useContext)(u),s=(0,a.useContext)(d),o=(0,a.useContext)(h.t),p=(0,a.useContext)(l).reducedMotion,f=(0,a.useRef)();r=r||s.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:n,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:p}));let g=f.current;(0,a.useInsertionEffect)(()=>{g&&g.update(i,o)});let v=(0,a.useRef)(!!(i[m]&&!window.HandoffComplete));return(0,c.E)(()=>{g&&(g.render(),v.current&&g.animationState&&g.animationState.animateChanges())}),(0,a.useEffect)(()=>{g&&(g.updateFeatures(),!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),g}(n,T,y,e);let i=(0,a.useContext)(E),r=(0,a.useContext)(d).strict;b.visualElement&&(v=b.visualElement.loadFeatures(y,r,t,i))}return a.createElement(u.Provider,{value:b},v&&b.visualElement?a.createElement(v,{visualElement:b.visualElement,...y}):null,i(n,s,(p=b.visualElement,(0,a.useCallback)(t=>{t&&T.mount&&T.mount(t),p&&(t?p.mount(t):p.unmount()),o&&("function"==typeof o?o(t):f(o)&&
9(o.current=t))},[p])),T,x,b.visualElement))});return s[C]=n,s}(t(i,r))}if("u"<typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,r)=>(i.has(r)||i.set(r,e(r)),i.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,r){return{...k(t)?tk:tD,preloadedFeatures:i,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let o=(k(e)?function(t,e,i,r){let n=(0,a.useMemo)(()=>{let i=tg();return tf(i,e,{enableHardwareAcceleration:!1},tv(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tl(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,i){let r,n,s={},o=(r=t.style||{},tl(n={},r,t),Object.assign(n,function({transformTemplate:t},e,i){return(0,a.useMemo)(()=>{let r=ta();return to(r,e,{enableHardwareAcceleration:!i},t),Object.assign({},r.vars,r.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(n):n);return t.drag&&!1!==t.dragListener&&(s.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)&&(s.tabIndex=0),s.style=o,s})(i,n,s,e),l={...function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(tc(n)||!0===i&&th(n)||!e&&!th(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),...o,ref:r},{children:u}=i,h=(0,a.useMemo)(()=>F(u)?u.get():u,[u]);return(0,a.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t}})(t,e,nC,nE))},80046:(t,e,i)=>{i.d(e,{l:()=>r});let r=t=>t},91200:(t,e,i)=>{i.d(e,{M:()=>n});var r=i(14232);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}}}]);
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.