"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97522],{15947:function(t,e,i){i.d(e,{oO:function(){return s}});var n=i(67294),r=i(240);function s(t=!0){let e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},25364:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(67294).createContext)({})},16014:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(67294).createContext)(null)},97522:function(t,e,i){i.d(e,{E:function(){return iC}});var n,r=i(40502),s=i(37977),o=i(67294);let a=["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 l(t){if("string"!=typeof t||t.includes("-"));else if(a.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var u=i(85893),h=i(25364);let c=(0,o.createContext)({strict:!1});var d=i(16014);let p=(0,o.createContext)({});var f=i(19964),m=i(78781);function v(t){return Array.isArray(t)?t.join(" "):t}var g=i(32558),y=i(88724),x=i(22196);let w=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function P(t,e,i){for(let n in e)(0,g.i)(e[n])||(0,y.jF)(n,i)||(t[n]=e[n])}var T=i(55450),S=i(31978);let b=()=>({...w(),attrs:{}}),A=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function E(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||A.has(t)}let M=t=>!E(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(M=t=>t.startsWith("on")?!E(t):n(t))}catch{}var V=i(66441);function D(t){return(0,g.i)(t)?t.get():t}var C=i(55360),k=i(17935),R=i(240),L=i(96681);let j=t=>(e,i)=>{let n=(0,o.useContext)(p),r=(0,o.useContext)(R.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=D(s[t]);let{initial:o,animate:a}=t,l=(0,f.G)(t),u=(0,f.M)(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;if(c&&"boolean"!=typeof c&&!(0,C.H)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;iW[e].some(e=>!!t[e])};(0,I.v7)(t),$=!0}(),(0,I.uN)()}let X=Symbol.for("motionComponentSymbol");var N=i(90546);let z=(0,o.createContext)({});function Y(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var K=i(58868);function H(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=U();for(let i in t)e[i]={...e[i],...t[i]};(0,I.v7)(e)}(n);let s=i?"svg"===i:l(t),a=s?F:B;function y(i,n){let y;let A={...(0,o.useContext)(d._),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(h.p).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:V}=A,D=function(t){let{initial:e,animate:i}=function(t,e){if((0,f.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,m.$)(e)?e:void 0,animate:(0,m.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(p));return(0,o.useMemo)(()=>({initial:e,animate:i}),[v(e),v(i)])}(i),C=a(i,V);if(!V&&O.j){(0,o.useContext)(c).strict;let e=function(t){let{drag:e,layout:i}=U();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(A);y=e.MeasureLayout,D.visualElement=function(t,e,i,n,r,s){let{visualElement:a}=(0,o.useContext)(p),l=(0,o.useContext)(c),u=(0,o.useContext)(R.O),h=(0,o.useContext)(d._),f=h.reducedMotion,m=h.skipAnimations,v=(0,o.useRef)(null),g=(0,o.useRef)(!1);n=n||l.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:f,skipAnimations:m,isSVG:s}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,x=(0,o.useContext)(z);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&Y(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(v.current,i,r,x);let w=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{y&&w.current&&y.update(i,u)});let P=i[N.M],T=(0,o.useRef)(!!P&&!window.MotionHandoffIsComplete?.(P)&&window.MotionHasOptimisedAnimation?.(P));return(0,K.L)(()=>{g.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),(0,o.useEffect)(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(P)}),T.current=!1),y.enteringChildren=void 0)}),y}(t,C,A,r,e.ProjectionNode,s)}return(0,u.jsxs)(p.Provider,{value:D,children:[y&&D.visualElement?(0,u.jsx)(y,{visualElement:D.visualElement,...A}):null,function(t,e,i,{latestValues:n},r,s=!1,a){let u=(a??l(t)?function(t,e,i,n){let r=(0,o.useMemo)(()=>{let i=b();return(0,T.i)(i,e,(0,S.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};P(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return P(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=w();return(0,x.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,n,r,t),h=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(M(r)||!0===i&&E(r)||!e&&!E(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,s),c=t!==o.Fragment?{...h,...u,ref:i}:{},{children:d}=e,p=(0,o.useMemo)(()=>(0,g.i)(d)?d.get():d,[d]);return(0,o.createElement)(t,{...c,children:p})}(t,i,function(t,e,i){let n=(0,o.useRef)(i);(0,o.useInsertionEffect)(()=>{n.current=i});let r=(0,o.useRef)(null);return(0,o.useCallback)(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=n.current;if("function"==typeof s){if(i){let t=s(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):s(i)}else s&&(s.current=i)},[e])}(C,D.visualElement,n),C,V,e,s)]})}y.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let A=(0,o.forwardRef)(y);return A[X]=t,A}class _{constructor(t){this.isMounted=!1,this.node=t}update(){}}var q=i(95777),Z=i(59410),G=i(88563);let J=G.V.length;var Q=i(74186),tt=i(82883);function te(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(0,q.d)(t,e,i))),i=ts(),n=!0,r=e=>(i,n)=>{let r=(0,tt.x)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tc&&g,T=!1,S=Array.isArray(v)?v:[v],b=S.reduce(r(p),{});!1===y&&(b={});let{prevResolvedValues:A={}}=f,E={...A,...b},M=e=>{P=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=b[t],i=A[t];if(!h.hasOwnProperty(t))((0,Q.C)(e)&&(0,Q.C)(i)?te(e,i):e===i)?void 0!==e&&u.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):u.add(t)}f.prevProp=v,f.prevResolvedValues=b,f.isActive&&(h={...h,...b}),n&&t.blockInitialAnimation&&(P=!1);let V=x&&w,D=!V||T;P&&D&&l.push(...S.map(e=>{let i={type:p};if("string"==typeof e&&n&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=(0,tt.x)(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=(0,Z._)(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=(0,tt.x)(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ts()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,C.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ta=0;class tl extends _{constructor(){super(...arguments),this.id=ta++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var tu=i(27726),th=i(18042);let tc={x:!1,y:!1};function td(t){return[t("x"),t("y")]}var tp=i(37259),tf=i(82659);function tm(t){return t.max-t.min}function tv(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tf.t)(e.min,e.max,t.origin),t.scale=tm(i)/tm(e),t.translate=(0,tf.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function tg(t,e,i,n){tv(t.x,e.x,i.x,n?n.originX:void 0),tv(t.y,e.y,i.y,n?n.originY:void 0)}function ty(t,e,i){t.min=i.min+e.min,t.max=t.min+tm(e)}function tx(t,e,i){t.min=e.min-i.min,t.max=t.min+tm(e)}function tw(t,e,i){tx(t.x,e.x,i.x),tx(t.y,e.y,i.y)}var tP=i(82866),tT=i(47772),tS=i(65034),tb=i(6364),tA=i(39970);let tE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tM=new Set(["INPUT","SELECT","TEXTAREA"]);function tV(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}var tD=i(94915),tC=i(25386);let tk=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tR(t){return{point:{x:t.pageX,y:t.pageY}}}let tL=t=>e=>tk(e)&&t(e,tR(e));function tj(t,e,i,n){return tV(t,e,tL(i),n)}let tB=({current:t})=>t?t.ownerDocument.defaultView:null;var tF=i(377),tO=i(14400);let tI=(t,e)=>Math.abs(t-e),tW=new Set(["auto","scroll"]);class t${constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=tN(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(tI(t.x,e.x)**2+tI(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tP.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tU(e,this.transformPagePoint),tP.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=tN("pointercancel"===t.type?this.lastMoveEventInfo:tU(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!tk(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=tU(tR(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tP.frameData;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,tN(a,this.history)),this.removeListeners=(0,tF.z)(tj(this.contextWindow,"pointermove",this.handlePointerMove),tj(this.contextWindow,"pointerup",this.handlePointerUp),tj(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(tW.has(t.overflowX)||tW.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tP.Wi.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,tP.Pn)(this.updatePoint)}}function tU(t,e){return e?{point:e(t.point)}:t}function tX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tN({point:t},e){return{point:t,delta:tX(t,tz(e)),offset:tX(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=tz(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,tO.w)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*(0,tO.w)(.1)&&(n=t[1]);let s=(0,tO.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function tz(t){return t[t.length-1]}var tY=i(58946),tK=i(488);function tH(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 t_(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{e&&this.snapToCursor(tR(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?tc[i]?null:(tc[i]=!0,()=>{tc[i]=!1}):tc.x||tc.y?null:(tc.x=tc.y=!0,()=>{tc.x=tc.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),td(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tp.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=tm(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tP.Wi.update(()=>r(t,e),!1,!0),(0,tT.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tP.Wi.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:tB(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tP.Wi.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!t0(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,tf.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&Y(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:tH(t.x,i,r),y:tH(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tq(t,"left","right"),y:tq(t,"top","bottom")}}(e),n!==this.constraints&&!Y(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&td(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!Y(e))return!1;let n=e.current;(0,tC.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,tS.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:t_((t=r.layout.layoutBox).x,s.x),y:t_(t.y,s.y)};if(i){let t=i((0,tb.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tb.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(td(o=>{if(!t0(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tT.K)(this.visualElement,t),i.start((0,tA.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){td(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){td(e=>{let{drag:i}=this.getProps();if(!t0(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-(0,tf.t)(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!Y(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};td(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=tm(t),r=tm(e);return r>n?i=(0,tY.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tY.Y)(t.min,t.max-r,e.min)),(0,tK.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),td(e=>{if(!t0(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tf.t)(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;tG.set(this.visualElement,this);let e=this.visualElement.current,i=tj(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(tM.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();Y(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=(0,tD.S)(t,tQ(i)),r=(0,tD.S)(e,tQ(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tP.Wi.read(n);let o=tV(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(td(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tQ(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function t0(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class t1 extends _{constructor(t){super(t),this.removeGroupControls=tu.Z,this.removeListeners=tu.Z,this.controls=new tJ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tu.Z}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let t5=t=>(e,i)=>{t&&tP.Wi.update(()=>t(e,i),!1,!0)};class t2 extends _{constructor(){super(...arguments),this.removePointerDownListener=tu.Z}onPointerDown(t){this.session=new t$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tB(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:t5(t),onStart:t5(e),onMove:t5(i),onEnd:(t,e)=>{delete this.session,n&&tP.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=tj(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 t4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var t8=i(86008),t6=i(15947);let t9=!1;class t3 extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),t9&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),t4.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),t9=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tP.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t8.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;t9=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function t7(t){let[e,i]=(0,t6.oO)(),n=(0,o.useContext)(h.p);return(0,u.jsx)(t3,{...t,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(z),isPresent:e,safeToRemove:i})}var et=i(88449),ee=i(67458),ei=i(51681),en=i(53860),er=i(67245),es=i(66640),eo=i(9205),ea=i(57275),el=i(40678),eu=i(6675),eh=i(68486),ec=i(53158);let ed=["TopLeft","TopRight","BottomLeft","BottomRight"],ep=ed.length,ef=t=>"string"==typeof t?parseFloat(t):t,em=t=>"number"==typeof t||tp.px.test(t);function ev(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let eg=ex(0,.5,ec.Bn),ey=ex(.5,.95,tu.Z);function ex(t,e,i){return n=>ne?1:i((0,tY.Y)(t,e,n))}function ew(t,e){t.min=e.min,t.max=e.max}function eP(t,e){ew(t.x,e.x),ew(t.y,e.y)}function eT(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var eS=i(81884);function eb(t,e,i,n,r){return t-=e,t=(0,eS.q2)(t,1/i,n),void 0!==r&&(t=(0,eS.q2)(t,1/r,n)),t}function eA(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tp.aQ.test(e)&&(e=parseFloat(e),e=(0,tf.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,tf.t)(s.min,s.max,n);t===s&&(a-=e),t.min=eb(t.min,e,i,a,r),t.max=eb(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let eE=["x","scaleX","originX"],eM=["y","scaleY","originY"];function eV(t,e,i,n){eA(t.x,e,eE,i?i.x:void 0,n?n.x:void 0),eA(t.y,e,eM,i?i.y:void 0,n?n.y:void 0)}function eD(t){return 0===t.translate&&1===t.scale}function eC(t){return eD(t.x)&&eD(t.y)}function ek(t,e){return t.min===e.min&&t.max===e.max}function eR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eL(t,e){return eR(t.x,e.x)&&eR(t.y,e.y)}function ej(t){return tm(t.x)/tm(t.y)}function eB(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var eF=i(35774);class eO{constructor(){this.members=[]}add(t){(0,eF.y4)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1===n.isConnected&&!1!==i.isPresent&&!i.snapshot&&(0,eF.cl)(this.members,i)}t.scheduleRender()}remove(t){if((0,eF.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],n=i.instance;if(!1!==i.isPresent&&(!n||!1!==n.isConnected)){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let n=i.options.layoutDependency,r=t.options.layoutDependency;if(!(void 0!==n&&void 0!==r&&n===r)){let n=i.instance;!(n&&!1===n.isConnected&&!i.snapshot)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let eI=(t,e)=>t.depth-e.depth;class eW{constructor(){this.children=[],this.isDirty=!1}add(t){(0,eF.y4)(this.children,t),this.isDirty=!0}remove(t){(0,eF.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eI),this.isDirty=!1,this.children.forEach(t)}}var e$=i(30452);let eU={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eX=["","X","Y","Z"],eN=0;function ez(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eY({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=eN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ea.f.value&&(eU.nodes=eU.calculatedTargetDeltas=eU.calculatedProjections=0),this.nodes.forEach(e_),this.nodes.forEach(e1),this.nodes.forEach(e5),this.nodes.forEach(eq),ea.f.addProjectionMetrics&&ea.f.addProjectionMetrics(eU)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;tP.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=er.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,tP.Pn)(n),t(r-250))};return tP.Wi.setup(n,!0),()=>(0,tP.Pn)(n)}(r,0),t4.hasAnimatedSinceResize&&(t4.hasAnimatedSinceResize=!1,this.nodes.forEach(e0)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||e3,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!eL(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,en.e)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||e0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,tP.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(e2),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,ei.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tP.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tm(this.snapshot.measuredBox.x)||tm(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(e8(o.x,t.x,n),e8(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;tw(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,e6(p.x,f.x,a.x,n),e6(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,ek(u.x,d.x)&&ek(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,th.dO)()),eP(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,tf.t)(0,i.opacity??1,eg(n)),t.opacityExit=(0,tf.t)(e.opacity??1,0,ey(n))):s&&(t.opacity=(0,tf.t)(e.opacity??1,i.opacity??1,n));for(let r=0;r{t4.hasAnimatedSinceResize=!0,eo.P.layout++,this.motionValue||(this.motionValue=(0,eh.BX)(0)),this.currentAnimation=(0,ee.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eo.P.layout--},onComplete:()=>{eo.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ii(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,th.dO)();let e=tm(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=tm(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}eP(e,i),(0,eS.D2)(e,r),tg(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new eO),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ez("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(eG),this.root.sharedNodes.clear()}}}function eK(t){t.updateLayout()}function eH(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?td(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=tm(n);n.min=i[t].min,n.max=n.min+r}):ii(r,e.layoutBox,i)&&td(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=tm(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,th.wc)();tg(o,i,e.layoutBox);let a=(0,th.wc)();s?tg(a,t.applyTransform(n,!0),e.measuredBox):tg(a,i,e.layoutBox);let l=!eC(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,th.dO)();tw(o,e.layoutBox,r.layoutBox);let a=(0,th.dO)();tw(a,i,s.layoutBox),eL(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function e_(t){ea.f.value&&eU.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eq(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eZ(t){t.clearSnapshot()}function eG(t){t.clearMeasurements()}function eJ(t){t.isLayoutDirty=!1}function eQ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function e0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e1(t){t.resolveTargetDelta()}function e5(t){t.calcProjection()}function e2(t){t.resetSkewAndRotation()}function e4(t){t.removeLeadSnapshot()}function e8(t,e,i){t.translate=(0,tf.t)(e.translate,0,i),t.scale=(0,tf.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function e6(t,e,i,n){t.min=(0,tf.t)(e.min,i.min,n),t.max=(0,tf.t)(e.max,i.max,n)}function e9(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let e3={duration:.45,ease:[.4,0,.1,1]},e7=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),it=e7("applewebkit/")&&!e7("chrome/")?Math.round:tu.Z;function ie(t){t.min=it(t.min),t.max=it(t.max)}function ii(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ej(e)-ej(i)))}function ir(t){return t!==t.root&&t.scroll?.wasRoot}let is=eY({attachResizeListener:(t,e)=>tV(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),io={current:void 0},ia=eY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!io.current){let t=new is({});t.mount(window),t.setOptions({layoutScroll:!0}),io.current=t}return io.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var il=i(11816);function iu(t,e){let i=(0,il.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function ih(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tP.Wi.postRender(()=>r(e,tR(e)))}class ic extends _{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=iu(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||tc.x||tc.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(ih(this.node,e,"Start"),t=>ih(this.node,t,"End"))))}unmount(){}}class id extends _{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tF.z)(tV(this.node.current,"focus",()=>this.onFocus()),tV(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ip=i(93243);let im=(t,e)=>!!e&&(t===e||im(t,e.parentElement)),iv=new WeakSet;function ig(t){return e=>{"Enter"===e.key&&t(e)}}function iy(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ix=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=ig(()=>{if(iv.has(i))return;iy(i,"down");let t=ig(()=>{iy(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>iy(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function iw(t){return tk(t)&&!(tc.x||tc.y)}let iP=new WeakSet;function iT(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tP.Wi.postRender(()=>r(e,tR(e)))}class iS extends _{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,r,s]=iu(t,i),o=t=>{let n=t.currentTarget;if(!iw(t)||iP.has(t))return;iv.add(n),i.stopPropagation&&iP.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),iv.has(n)&&iv.delete(n),iw(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||im(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,ip.R)(t)&&(t.addEventListener("focus",t=>ix(t,r)),tE.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(iT(this.node,e,"Start"),(t,{success:e})=>iT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let ib=new WeakMap,iA=new WeakMap,iE=t=>{let e=ib.get(t.target);e&&e(t)},iM=t=>{t.forEach(iE)},iV={some:0,all:1};class iD extends _{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:iV[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;iA.has(i)||iA.set(i,{});let n=iA.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(iM,{root:t,...e})),n[r]}(e);return ib.set(t,i),n.observe(t),()=>{ib.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let iC=function(t,e){if("undefined"==typeof Proxy)return H;let i=new Map,n=(i,n)=>H(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,H(s,void 0,t,e)),i.get(s))})}({animation:{Feature:to},exit:{Feature:tl},inView:{Feature:iD},tap:{Feature:iS},focus:{Feature:id},hover:{Feature:ic},pan:{Feature:t2},drag:{Feature:t1,ProjectionNode:ia,MeasureLayout:t7},layout:{ProjectionNode:ia,MeasureLayout:t7}},(t,e)=>e.isSVG??l(t)?new r.e(e):new s.W(e,{allowProjection:t!==o.Fragment}))},11741:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},96681:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(67294);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(67294);let r=i(11741).j?n.useLayoutEffect:n.useEffect},44321:function(t,e,i){i.d(e,{_:function(){return w}});var n=i(25386),r=i(14400),s=i(27726);let o=t=>t.startsWith("--");var a=i(84548),l=i(96098),u=i(39064),h=i(9205),c=i(57275),d=i(88747),p=i(70942);let f={},m=function(t,e){let i=(0,p.X)(t);return()=>f[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var v=i(90363);let g=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:g([0,.65,.55,1]),circOut:g([.55,0,1,.45]),backIn:g([.31,.01,.66,-.59]),backOut:g([.33,1.53,.69,.99])};var x=i(97274);class w extends u.T{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:r,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:u,onComplete:p}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,(0,n.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let f=function({type:t,...e}){return(0,x.x)(t)&&m()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let p={[e]:i};l&&(p.offset=l);let f=function t(e,i){if(e)return"function"==typeof e?m()?(0,v.w)(e,i):"ease-out":(0,d.q)(e)?g(e):Array.isArray(e)?e.map(e=>t(e,i)||y.easeOut):y[e]}(a,r);Array.isArray(f)&&(p.easing=f),c.f.value&&h.P.waapi++;let x={delay:n,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(x.pseudoElement=u);let w=t.animate(p,x);return c.f.value&&w.finished.finally(()=>{h.P.waapi--}),w}(e,i,r,f,s),!1===f.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,l.$)(r,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(t):o(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,r.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,r.X)(t)}get time(){return(0,r.X)(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,r.w)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,a.t)())?(this.animation.timeline=t,s.Z):e(this)}}},67458:function(t,e,i){i.d(e,{D:function(){return o}});var n=i(39970),r=i(68486),s=i(32558);function o(t,e,i){let o=(0,s.i)(t)?t:(0,r.BX)(t);return o.start((0,n.v)("",o,e,i)),o.animation}},58661:function(t,e,i){i.d(e,{S:function(){return m}});var n=i(488),r=i(14400),s=i(90363),o=i(60903),a=i(13476),l=i(85946);let u={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var h=i(25386);function c(t,e){return t*Math.sqrt(1-e*e)}let d=["duration","bounce"],p=["stiffness","damping","mass"];function f(t,e){return e.some(e=>void 0!==t[e])}function m(t=u.visualDuration,e=u.bounce){let i;let a="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:v}=a,g=a.keyframes[0],y=a.keyframes[a.keyframes.length-1],x={done:!1,value:g},{stiffness:w,damping:P,mass:T,duration:S,velocity:b,isResolvedFromDuration:A}=function(t){let e={velocity:u.velocity,stiffness:u.stiffness,damping:u.damping,mass:u.mass,isResolvedFromDuration:!1,...t};if(!f(t,p)&&f(t,d)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*(0,n.u)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:u.mass,stiffness:r,damping:s}}else{let i=function({duration:t=u.duration,bounce:e=u.bounce,velocity:i=u.velocity,mass:s=u.mass}){let o,a;(0,h.K)(t<=(0,r.w)(u.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-e;l=(0,n.u)(u.minDamping,u.maxDamping,l),t=(0,n.u)(u.minDuration,u.maxDuration,(0,r.X)(t)),l<1?(o=e=>{let n=e*l,r=n*t;return .001-(n-i)/c(e,l)*Math.exp(-r)},a=e=>{let n=e*l*t,r=Math.pow(l,2)*Math.pow(e,2)*t,s=c(Math.pow(e,2),l);return(n*i+i-r)*Math.exp(-n)*(-o(e)+.001>0?-1:1)/s}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(o,a,5/t);if(t=(0,r.w)(t),isNaN(d))return{stiffness:u.stiffness,damping:u.damping,duration:t};{let e=Math.pow(d,2)*s;return{stiffness:e,damping:2*l*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:u.mass}).isResolvedFromDuration=!0}}return e}({...a,velocity:-(0,r.X)(a.velocity||0)}),E=b||0,M=P/(2*Math.sqrt(w*T)),V=y-g,D=(0,r.X)(Math.sqrt(w/T)),C=5>Math.abs(V);if(m||(m=C?u.restSpeed.granular:u.restSpeed.default),v||(v=C?u.restDelta.granular:u.restDelta.default),M<1){let t=c(D,M);i=e=>y-Math.exp(-M*D*e)*((E+M*D*V)/t*Math.sin(t*e)+V*Math.cos(t*e))}else if(1===M)i=t=>y-Math.exp(-D*t)*(V+(E+D*V)*t);else{let t=D*Math.sqrt(M*M-1);i=e=>{let i=Math.exp(-M*D*e),n=Math.min(t*e,300);return y-i*((E+M*D*V)*Math.sinh(n)+t*V*Math.cosh(n))/t}}let k={calculatedDuration:A&&S||null,next:t=>{let e=i(t);if(A)x.done=t>=S;else{let n=0===t?E:0;M<1&&(n=0===t?(0,r.w)(E):(0,l.P)(i,t,e));let s=Math.abs(n)<=m,o=Math.abs(y-e)<=v;x.done=s&&o}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,o.i)(k),o.E),e=(0,s.w)(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}m.applyToOptions=t=>{let e=(0,a.S)(t,100,m);return t.ease=e.ease,t.duration=(0,r.w)(e.duration),t.type="keyframes",t}},60903:function(t,e,i){i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e=n?1/0:e}},13476:function(t,e,i){i.d(e,{S:function(){return s}});var n=i(14400),r=i(60903);function s(t,e=100,i){let s=i({...t,keyframes:[0,e]}),o=Math.min((0,r.i)(s),r.E);return{type:"keyframes",ease:t=>s.next(o*t).value/e,duration:(0,n.X)(o)}}},97274:function(t,e,i){i.d(e,{x:function(){return n}});function n(t){return"function"==typeof t&&"applyToOptions"in t}},85946:function(t,e,i){i.d(e,{P:function(){return r}});var n=i(37142);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},39970:function(t,e,i){i.d(e,{v:function(){return th}});var n=i(14400),r=i(42218),s=i(27726),o=i(67245),a=i(377),l=i(488),u=i(9205),h=i(88712),c=i(82866);let d=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>c.Wi.update(e,t),stop:()=>(0,c.Pn)(e),now:()=>c.frameData.isProcessing?c.frameData.timestamp:o.X.now()}};var p=i(58661),f=i(85946);function m({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let m=t[0],v={done:!1,value:m},g=t=>void 0!==a&&tl,y=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-x*Math.exp(-t/n),S=t=>P+T(t),b=t=>{let e=T(t),i=S(t);v.done=Math.abs(e)<=u,v.value=v.done?P:i},A=t=>{g(v.value)&&(c=t,d=(0,p.S)({keyframes:[v.value,y(v.value)],velocity:(0,f.P)(S,t,v.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),A(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),v)}}}let v=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function g(t,e,i,n){if(t===e&&i===n)return s.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=v(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:v(r(t),e,n)}let y=g(.42,0,1,1),x=g(0,0,.58,1),w=g(.42,0,.58,1);var P=i(53526),T=i(25386),S=i(89357),b=i(68298);let A=g(.33,1.53,.69,.99),E=(0,b.M)(A),M=(0,S.o)(E),V=t=>(t*=2)<1?.5*E(t):.5*(2-Math.pow(2,-10*(t-1)));var D=i(53158),C=i(88747);let k={linear:s.Z,easeIn:y,easeInOut:w,easeOut:x,circIn:D.Z7,circInOut:D.X7,circOut:D.Bn,backIn:E,backInOut:M,backOut:A,anticipate:V},R=t=>"string"==typeof t,L=t=>{if((0,C.q)(t)){(0,T.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return g(e,i,n,r)}return R(t)?((0,T.k)(void 0!==k[t],`Invalid easing type '${t}'`,"invalid-easing-type"),k[t]):t};var j=i(98098),B=i(49308);function F({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,P.N)(n)?n.map(L):L(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,B.Y)(e)).map(e=>e*t),a=(0,j.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||w).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}var O=i(60903),I=i(96098);let W={decay:m,inertia:m,tween:F,keyframes:F,spring:p.S};function $(t){"string"==typeof t.type&&(t.type=W[t.type])}var U=i(39064);let X=t=>t/100;class N extends U.T{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==o.X.now()&&this.tick(o.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.P.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;$(t);let{type:e=F,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,l=e||F;l!==F&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,a.z)(X,(0,h.C)(o[0],o[1])),o=[0,100]);let u=l({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-s})),null===u.calculatedDuration&&(u.calculatedDuration=(0,O.i)(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let w=this.currentTime,P=i;if(c){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===d?(i=1-i,p&&(i-=p/o)):"mirror"===d&&(P=s)),w=(0,l.u)(0,1,i)*o}let T=x?{done:!1,value:h[0]}:P.next(w);r&&(T.value=r(T.value));let{done:S}=T;x||null===a||(S=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&f!==m&&(T.value=(0,I.$)(h,this.options,g,this.speed)),v&&v(T.value),b&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return(0,n.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,n.X)(t)}get time(){return(0,n.X)(this.currentTime)}set time(t){t=(0,n.w)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(o.X.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,n.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=d,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(o.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,u.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var z=i(58417),Y=i(44321);let K={anticipate:V,backInOut:M,circInOut:D.X7};class H extends Y._{constructor(t){"string"==typeof t.ease&&t.ease in K&&(t.ease=K[t.ease]),$(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new N({...s,autoplay:!1}),u=Math.max(10,o.X.now()-this.startTime),h=(0,l.u)(0,10,u-10);e.setWithVelocity(a.sample(Math.max(0,u-h)).value,a.sample(u).value,h),a.stop()}}var _=i(97274),q=i(58094);let Z=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(q.P.test(t)||"0"===t)&&!t.startsWith("url("));function G(t){t.duration=0,t.type="keyframes"}var J=i(70942);let Q=new Set(["opacity","clipPath","filter","transform"]),tt=(0,J.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class te extends U.T{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=o.X.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:l,motionValue:u,element:h,...c},p=h?.KeyframeResolver||z.e;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),l,u,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:a,type:l,velocity:u,delay:h,isHandoff:c,onUpdate:d}=i;this.resolvedAt=o.X.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=Z(r,e),a=Z(s,e);return(0,T.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},f=!c&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return tt()&&i&&Q.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(p),m=p.motionValue?.owner?.current,v=f?new H({...p,element:m}):new N(p);v.finished.then(()=>{this.notifyFinished()}).catch(s.Z),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,z.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var ti=i(53860),tn=i(59354);let tr={type:"spring",stiffness:500,damping:25,restSpeed:10},ts=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},ta={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(t,{keyframes:e})=>e.length>2?to:tn.G.has(t)?t.startsWith("scale")?ts(e[1]):tr:ta,tu=t=>null!==t,th=(t,e,i,s={},o,a)=>l=>{let u=(0,ti.e)(s,t)||{},h=u.delay||s.delay||0,{elapsed:d=0}=s;d-=(0,n.w)(h);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:a?void 0:o};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&Object.assign(p,tl(t,p)),p.duration&&(p.duration=(0,n.w)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,n.w)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let f=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(G(p),0!==p.delay||(f=!0)),(r.c.instantAnimations||r.c.skipAnimations||o?.shouldSkipAnimations)&&(f=!0,G(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,f&&!a&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(tu),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(p.keyframes,u);if(void 0!==t){c.Wi.update(()=>{p.onUpdate(t),p.onComplete()});return}}return u.isSync?new N(p):new te(p)}},60176:function(t,e,i){i.d(e,{w:function(){return c}});var n=i(53860),r=i(93212),s=i(51363),o=i(35539),a=i(47772),l=i(51681),u=i(39970),h=i(82866);function c(t,e,{delay:i=0,transitionOverride:c,type:d}={}){let{transition:p,transitionEnd:f,...m}=e,v=t.getDefaultTransition();p=p?(0,r.r)(p,v):v;let g=p?.reduceMotion;c&&(p=c);let y=[],x=d&&t.animationState&&t.animationState.getState()[d];for(let e in m){let r=t.getValue(e,t.latestValues[e]??null),o=m[e];if(void 0===o||x&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(x,e))continue;let c={delay:i,...(0,n.e)(p||{},e)},d=r.get();if(void 0!==d&&!r.isAnimating&&!Array.isArray(o)&&o===d&&!c.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let i=(0,l.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,h.Wi);null!==t&&(c.startTime=t,f=!0)}}(0,a.K)(t,e);let v=g??t.shouldReduceMotion;r.start((0,u.v)(e,r,o,v&&s.z.has(e)?{type:!1}:c,t,f));let w=r.animation;w&&y.push(w)}if(f){let e=()=>h.Wi.update(()=>{f&&(0,o.C)(t,f)});y.length?Promise.all(y).then(e):e()}return y}},95777:function(t,e,i){i.d(e,{d:function(){return a}});var n=i(82883),r=i(60176),s=i(59410);function o(t,e,i={}){let a=(0,n.x)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(l=i.transitionOverride);let u=a?()=>Promise.all((0,r.w)(t,a,i)):()=>Promise.resolve(),h=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:u}=l;return function(t,e,i=0,n=0,r=0,a=1,l){let u=[];for(let h of t.variantChildren)h.notify("AnimationStart",e),u.push(o(h,e,{...l,delay:i+("function"==typeof n?0:n)+(0,s._)(t.variantChildren,h,n,r,a)}).then(()=>h.notify("AnimationComplete",e)));return Promise.all(u)}(t,e,n,r,a,u,i)}:()=>Promise.resolve(),{when:c}=l;if(!c)return Promise.all([u(),h(i.delay)]);{let[t,e]="beforeChildren"===c?[u,h]:[h,u];return t().then(()=>e())}}function a(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>o(t,e,i)));else if("string"==typeof e)s=o(t,e,i);else{let o="function"==typeof e?(0,n.x)(t,e,i.custom):e;s=Promise.all((0,r.w)(t,o,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}},58417:function(t,e,i){i.d(e,{e:function(){return d},m:function(){return c}});var n=i(41293),r=i(82866);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete(l)),s.clear()}function h(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l=!0,h(),u(),l=!1}class d{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(h),r.Wi.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;enull!==t;function r(t,{repeat:e,repeatType:i="loop"},r,s=1){let o=t.filter(n),a=s<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}},49308:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(84059);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},84059:function(t,e,i){i.d(e,{c:function(){return s}});var n=i(58946),r=i(82659);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.Y)(0,e,s);t.push((0,r.t)(i,1,o))}}},41293:function(t,e,i){i.d(e,{Ei:function(){return h},lw:function(){return c},mP:function(){return a}});var n=i(66363),r=i(59354),s=i(57958),o=i(37259);let a=t=>t===s.Rx||t===o.px,l=new Set(["x","y","z"]),u=r._.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.WK)(e,"x"),y:(t,{transform:e})=>(0,n.WK)(e,"y")};c.translateX=c.x,c.translateY=c.y},90546:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(84458).D)("framerAppearId")},51681:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(90546);function r(t){return t.props[n.M]}},39064:function(t,e,i){i.d(e,{T:function(){return n}});class n{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},59410:function(t,e,i){i.d(e,{_:function(){return n}});function n(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}},53860:function(t,e,i){i.d(e,{e:function(){return r}});var n=i(93212);function r(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,n.r)(i,t):i}},21219:function(t,e,i){i.d(e,{V3:function(){return l},f9:function(){return r},tm:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function l(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}},93212:function(t,e,i){i.d(e,{r:function(){return n}});function n(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}},90363:function(t,e,i){i.d(e,{w:function(){return n}});let n=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;ei=!0,u=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}r=!0,[i,n]=[n,i],i.forEach(h),e&&s.f.value&&s.f.value.frameloop[e].push(u),u=0,i.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:p,update:f,preRender:m,render:v,postRender:g}=u,y=()=>{let r=n.c.useManualTiming?a.timestamp:performance.now();i=!1,n.c.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),p.process(a),f.process(a),m.process(a),v.process(a),g.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(y))},x=()=>{i=!0,o=!0,a.isProcessing||t(y)};return{schedule:r.reduce((t,e)=>{let n=u[e];return t[e]=(t,e=!1,r=!1)=>(i||x(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},6364:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},81884:function(t,e,i){i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var n=i(82659),r=i(30452);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},18042:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},66640:function(t,e,i){i.d(e,{P:function(){return l}});var n=i(37259);function r(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let s={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!n.px.test(t))return t;t=parseFloat(t)}let i=r(t,e.target.x),s=r(t,e.target.y);return`${i}% ${s}%`}};var o=i(58094),a=i(82659);let l={borderRadius:{...s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s,borderTopRightRadius:s,borderBottomLeftRadius:s,borderBottomRightRadius:s,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=o.P.parse(t);if(n.length>5)return t;let r=o.P.createTransformer(t),s="number"!=typeof n[0]?1:0,l=i.x.scale*e.x,u=i.y.scale*e.y;n[0+s]/=l,n[1+s]/=u;let h=(0,a.t)(l,u,.5);return"number"==typeof n[2+s]&&(n[2+s]/=h),"number"==typeof n[3+s]&&(n[3+s]/=h),r(n)}}}},30452:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},65034:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(6364),r=i(81884);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},31718:function(t,e,i){i.d(e,{l9:function(){return L},uN:function(){return R},v7:function(){return k}});var n=i(14400),r=i(32489),s=i(89543),o=i(88449),a=i(58417),l=i(44321);let u=new Set(["opacity","clipPath","filter","transform"]);var h=i(86008),c=i(67245),d=i(18042),p=i(68486),f=i(58094),m=i(60522),v=i(7167),g=i(52732),y=i(67439);let x=[...g.$,v.$,f.P],w=t=>x.find((0,y.l)(t));var P=i(32558),T=i(65182),S=i(19964),b=i(59354),A=i(96779),E=i(17935),M=i(20964),V=i(82866);let D=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],C={};function k(t){C=t}function R(){return C}class L{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=a.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=c.X.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(M.O.current||(0,A.Ad)(),this.shouldReduceMotion=M.n.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,V.Pn)(this.notifyUpdate),(0,V.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&u.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:r,times:s,ease:o,duration:a}=e.accelerate,u=new l._({element:this.current,name:t,keyframes:r,times:s,ease:o,duration:(0,n.w)(a)}),h=i(u);this.valueSubscriptions.set(t,()=>{h(),u.cancel()});return}let r=b.G.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&V.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in C){let e=C[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,d.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,p.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,r.P)(i)||(0,s.W)(i))?i=parseFloat(i):!w(i)&&f.P.test(e)&&(i=(0,m.T)(t,e)),this.setBaseTarget(t,(0,P.i)(i)?i.get():i)),(0,P.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,E.o)(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,P.i)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new o.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){h.g.render(this.render)}}},255:function(t,e,i){i.d(e,{J:function(){return y}});var n=i(32558),r=i(51363),s=i(52732),o=i(25386),a=i(32489),l=i(21219);let u=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var h=i(58417),c=i(89543),d=i(58094),p=i(60522);let f=new Set(["auto","none","0"]);var m=i(41293);class v extends h.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var g=i(31718);class y extends g.l9{constructor(){super(...arguments),this.KeyframeResolver=v}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,n.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},66363:function(t,e,i){i.d(e,{E$:function(){return h},RT:function(){return d},WK:function(){return c}});let n=t=>180*t/Math.PI,r=t=>o(n(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:r,rotateZ:r,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(n(Math.atan2(t[6],t[5]))),rotateY:t=>o(n(Math.atan2(-t[2],t[0]))),rotateZ:r,rotate:r,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return t.includes("scale")?1:0}function c(t,e){let i,n;if(!t||"none"===t)return h(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=u,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return h(e);let o=i[e],a=n[1].split(",").map(p);return"function"==typeof o?o(a):a[o]}let d=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return c(i,e)};function p(t){return parseFloat(t.trim())}},84458:function(t,e,i){i.d(e,{D:function(){return n}});function n(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}},37977:function(t,e,i){i.d(e,{W:function(){return c}});var n=i(21219),r=i(59354),s=i(66363),o=i(65034),a=i(255),l=i(22196),u=i(34476),h=i(66441);class c extends a.J{constructor(){super(...arguments),this.type="html",this.renderInstance=u.N}readValueFromInstance(t,e){if(r.G.has(e))return this.projection?.isProjecting?(0,s.E$)(e):(0,s.RT)(t,e);{let i=window.getComputedStyle(t),r=((0,n.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,o.J)(t,e)}build(t,e,i){(0,l.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.U)(t,e,i)}}},22196:function(t,e,i){i.d(e,{r:function(){return u}});let n=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var r=i(20354),s=i(59354),o=i(21219);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=s._.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:c}=t,d=!1,p=!1;for(let t in e){let i=e[t];if(s.G.has(t)){d=!0;continue}if((0,o.f9)(t)){h[t]=i;continue}{let e=n(i,r.j[t]);t.startsWith("origin")?(p=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let o="",u=!0;for(let h=0;h"string"==typeof t&&"svg"===t.toLowerCase()},31839:function(t,e,i){i.d(e,{U:function(){return o}});var n=i(32558),r=i(59354),s=i(66441);function o(t,e,i){let o=(0,s.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==r._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},55360:function(t,e,i){i.d(e,{H:function(){return n}});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},19964:function(t,e,i){i.d(e,{G:function(){return o},M:function(){return a}});var n=i(55360),r=i(78781),s=i(88563);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},88724:function(t,e,i){i.d(e,{jF:function(){return s}});var n=i(59354),r=i(66640);function s(t,{layout:e,layoutId:i}){return n.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!r.P[t]||"opacity"===t)}},74186:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},78781:function(t,e,i){i.d(e,{$:function(){return n}});function n(t){return"string"==typeof t||Array.isArray(t)}},51363:function(t,e,i){i.d(e,{z:function(){return n}});let n=new Set(["width","height","top","left","right","bottom",...i(59354)._])},59354:function(t,e,i){i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},96779:function(t,e,i){i.d(e,{Ad:function(){return s}});var n=i(20964);let r="undefined"!=typeof window;function s(){if(n.O.current=!0,r){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>n.n.current=t.matches;t.addEventListener("change",e),e()}else n.n.current=!1}}},20964:function(t,e,i){i.d(e,{O:function(){return r},n:function(){return n}});let n={current:null},r={current:!1}},82883:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(17935);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},17935:function(t,e,i){function n(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},35539:function(t,e,i){i.d(e,{C:function(){return o}});var n=i(68486),r=i(82883),s=i(74186);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,r.x)(t,e)||{};for(let e in a={...a,...i}){var l;let i=(l=a[e],(0,s.C)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.BX)(i))}}},88563:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},94915:function(t,e,i){let n,r;i.d(e,{S:function(){return f}});var s=i(40678),o=i(11816);let a=new WeakMap,l=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:(0,s.v)(n)&&"getBBox"in n?n.getBBox()[e]:n[i],u=l("inline","width","offsetWidth"),h=l("block","height","offsetHeight");function c({target:t,borderBoxSize:e}){a.get(t)?.forEach(i=>{i(t,{get width(){return u(t,e)},get height(){return h(t,e)}})})}function d(t){t.forEach(c)}let p=new Set;function f(t,e){return"function"==typeof t?(p.add(t),r||(r=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};p.forEach(e=>e(t))},window.addEventListener("resize",r)),()=>{p.delete(t),p.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(d));let i=(0,o.I)(t);return i.forEach(t=>{let i=a.get(t);i||(i=new Set,a.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=a.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}},9205:function(t,e,i){i.d(e,{P:function(){return n}});let n={layout:0,mainThread:0,waapi:0}},57275:function(t,e,i){i.d(e,{f:function(){return n}});let n={value:null,addProjectionMetrics:null}},98098:function(t,e,i){i.d(e,{s:function(){return h}});var n=i(42218),r=i(27726),s=i(377),o=i(25386),a=i(58946),l=i(488),u=i(88712);function h(t,e,{clamp:i=!0,ease:h,mixer:c}={}){let d=t.length;if((0,o.k)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let o=[],a=i||n.c.mix||u.C,l=t.length-1;for(let i=0;i{if(p&&i1)for(;nv((0,l.u)(t[0],t[d-1],e)):v}},93243:function(t,e,i){i.d(e,{R:function(){return r}});var n=i(36464);function r(t){return(0,n.K)(t)&&"offsetHeight"in t}},40678:function(t,e,i){i.d(e,{v:function(){return r}});var n=i(36464);function r(t){return(0,n.K)(t)&&"ownerSVGElement"in t}},6675:function(t,e,i){i.d(e,{r:function(){return r}});var n=i(40678);function r(t){return(0,n.v)(t)&&"svg"===t.tagName}},88712:function(t,e,i){i.d(e,{C:function(){return A}});var n=i(377),r=i(25386),s=i(21219),o=i(7167),a=i(58094),l=i(44777),u=i(66203);function h(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var c=i(96803);function d(t,e){return i=>i>0?e:t}var p=i(82659);let f=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},m=[l.$,c.m,u.J],v=t=>m.find(e=>e.test(t));function g(t){let e=v(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=h(a,n,t+1/3),s=h(a,n,t),o=h(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let y=(t,e)=>{let i=g(t),n=g(e);if(!i||!n)return d(t,e);let r={...i};return t=>(r.red=f(i.red,n.red,t),r.green=f(i.green,n.green,t),r.blue=f(i.blue,n.blue,t),r.alpha=(0,p.t)(i.alpha,n.alpha,t),c.m.transform(r))},x=new Set(["none","hidden"]);function w(t,e){return i=>(0,p.t)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,s.tm)(t)?d:o.$.test(t)?y:b:Array.isArray(t)?T:"object"==typeof t?o.$.test(t)?y:S:d}function T(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let b=(t,e)=>{let i=a.P.createTransformer(e),s=(0,a.V)(t),o=(0,a.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?x.has(t)&&!o.values.length||x.has(e)&&!s.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,n.z)(T(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;rt+(e-t)*i},11816:function(t,e,i){i.d(e,{I:function(){return n}});function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},84548:function(t,e,i){i.d(e,{t:function(){return n}});let n=(0,i(70942).X)(()=>void 0!==window.ScrollTimeline)},68486:function(t,e,i){i.d(e,{BX:function(){return h},S1:function(){return l}});var n=i(88449),r=i(37142),s=i(67245),o=i(82866);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},44777:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(96803);let r={test:(0,i(79946).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},66203:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(57958),r=i(37259),s=i(6219),o=i(79946);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},7167:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(44777),r=i(66203),s=i(96803);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=o.parse(t);return e.alpha=0,o.transform(e)}}},96803:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(488),r=i(57958),s=i(6219),o=i(79946);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},79946:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var n=i(7159);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},54416:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(58094),r=i(7159);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},58094:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return f}});var n=i(7167);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(7159),o=i(6219);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:n.$.test(t)?n.$.getAnimatableNone(t):t,f={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.K)?.length||0)+(t.match(r)?.length||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(p))}}},52732:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(57958),r=i(37259),s=i(67439);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},47265:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(7167),r=i(54416);let s={...i(20354).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},20354:function(t,e,i){i.d(e,{j:function(){return a}});var n=i(57958);let r={...n.Rx,transform:Math.round};var s=i(37259);let o={rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.Fq,originX:s.$C,originY:s.$C,originZ:s.px},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,inset:s.px,insetBlock:s.px,insetBlockStart:s.px,insetBlockEnd:s.px,insetInline:s.px,insetInlineStart:s.px,insetInlineEnd:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,paddingBlock:s.px,paddingBlockStart:s.px,paddingBlockEnd:s.px,paddingInline:s.px,paddingInlineStart:s.px,paddingInlineEnd:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,marginBlock:s.px,marginBlockStart:s.px,marginBlockEnd:s.px,marginInline:s.px,marginInlineStart:s.px,marginInlineEnd:s.px,fontSize:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...o,zIndex:r,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:r}},57958:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(488);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},37259:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},67439:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},60522:function(t,e,i){i.d(e,{T:function(){return o}});var n=i(58094),r=i(54416),s=i(47265);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},7159:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6219:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},32558:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)},47772:function(t,e,i){i.d(e,{K:function(){return s}});var n=i(42218),r=i(32558);function s(t,e){let i=t.getValue("willChange");if((0,r.i)(i)&&i.add)return i.add(e);if(!i&&n.c.WillChange){let i=new n.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},35774:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},488:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},89357:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},68298:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},88747:function(t,e,i){i.d(e,{q:function(){return n}});let n=t=>Array.isArray(t)&&"number"==typeof t[0]},53526:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},25386:function(t,e,i){i.d(e,{K:function(){return n},k:function(){return r}}),i(34155);let n=()=>{},r=()=>{}},42218:function(t,e,i){i.d(e,{c:function(){return n}});let n={}},32489:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},36464:function(t,e,i){i.d(e,{K:function(){return n}});function n(t){return"object"==typeof t&&null!==t}},89543:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},70942:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},27726:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},377:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},58946:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},88449:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(35774);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r1e3*t,r=t=>t/1e3},37142:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}}}]);