!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a04ae3-95e5-7fd0-8d39-8e4cf68d21cd")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,199479,t=>{"use strict";var e=t.i(222666),i=t.i(270401),n=t.i(158698),s=t.i(820572),r=t.i(870611),a=t.i(912466),o=t.i(461491),l=i,u=t.i(978376);class h extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,o.isHTMLElement)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:i,anchorX:n,root:s}){let r=(0,l.useId)(),a=(0,l.useRef)(null),o=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,l.useContext)(u.MotionConfigContext);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:l,left:u,right:h}=o.current;if(i||!a.current||!t||!e)return;let c="left"===n?`left: ${u}`:`right: ${h}`;a.current.dataset.motionPopId=r;let m=document.createElement("style");d&&(m.nonce=d);let p=s??document.head;return p.appendChild(m),m.sheet&&m.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${t}px !important; height: ${e}px !important; ${c}px !important; top: ${l}px !important; } `),()=>{p.contains(m)&&p.removeChild(m)}},[i]),(0,e.jsx)(h,{isPresent:i,childRef:a,sizeRef:o,children:l.cloneElement(t,{ref:a})})}let d=({children:t,initial:n,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:h,anchorX:d,root:p})=>{let f=(0,s.useConstant)(m),g=(0,i.useId)(),v=!0,y=(0,i.useMemo)(()=>(v=!1,{id:g,initial:n,isPresent:r,custom:l,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;o&&o()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[r,f,o]);return u&&v&&(y={...y}),(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[r]),i.useEffect(()=>{r||f.size||!o||o()},[r]),"popLayout"===h&&(t=(0,e.jsx)(c,{isPresent:r,anchorX:d,root:p,children:t})),(0,e.jsx)(a.PresenceContext.Provider,{value:y,children:t})};function m(){return new Map}var p=t.i(72217);let f=t=>t.key||"";function g(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}t.s(["AnimatePresence",0,({children:t,custom:a,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:m="left",root:v})=>{let[y,x]=(0,p.usePresence)(c),T=(0,i.useMemo)(()=>g(t),[t]),b=c&&!y?[]:T.map(f),P=(0,i.useRef)(!0),w=(0,i.useRef)(T),S=(0,s.useConstant)(()=>new Map),[M,A]=(0,i.useState)(T),[C,V]=(0,i.useState)(T);(0,r.useIsomorphicLayoutEffect)(()=>{P.current=!1,w.current=T;for(let t=0;t{let i=f(t),n=(!c||!!y)&&(T===C||b.includes(i));return(0,e.jsx)(d,{isPresent:n,initial:(!P.current||!!o)&&void 0,custom:a,presenceAffectsLayout:u,mode:h,root:v,onExitComplete:n?void 0:()=>{if(!S.has(i))return;S.set(i,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(D?.(),V(w.current),c&&x?.(),l&&l())},anchorX:m,children:t},i)})})}],199479)},72217,t=>{"use strict";var e=t.i(270401),i=t.i(912466);t.s(["usePresence",0,function(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:s,onExitComplete:r,register:a}=n,o=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(o)},[t]);let l=(0,e.useCallback)(()=>t&&r&&r(o),[o,r,t]);return!s&&r?[!1,l]:[!0]}])},158698,t=>{"use strict";let e=(0,t.i(270401).createContext)({});t.s(["LayoutGroupContext",0,e])},36468,t=>{"use strict";let e=(0,t.i(270401).createContext)({strict:!1});t.s(["LazyContext",0,e])},978376,t=>{"use strict";let e=(0,t.i(270401).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},815749,100446,673010,333525,290039,t=>{"use strict";var e,i=t.i(270401);let n=(0,i.createContext)({});t.s(["MotionContext",0,n],815749);var s=t.i(89727),r=t.i(740835);function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:o}=function(t,e){if((0,s.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(n));return(0,i.useMemo)(()=>({initial:e,animate:o}),[a(e),a(o)])}],100446);var o=t.i(600019),l=t.i(994704),u=t.i(445687);let h=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(t,e,i){for(let n in e)(0,o.isMotionValue)(e[n])||(0,l.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",0,h],673010);var d=t.i(298068);let m=()=>({...h(),attrs:{}});t.s(["createSvgRenderState",0,m],333525);var p=t.i(621429);let f=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","ignoreStrict","viewport"]);function g(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||f.has(t)}let v=t=>!g(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(v=t=>t.startsWith("on")?!g(t):e(t))}catch{}var y=t.i(843314);t.s(["useRender",0,function(t,e,n,{latestValues:s},r,a=!1){let l=((0,y.isSVGComponent)(t)?function(t,e,n,s){let r=(0,i.useMemo)(()=>{let i=m();return(0,d.buildSVGAttrs)(i,e,(0,p.isSVGTag)(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};c(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n,s,r={},a=(n=t.style||{},c(s={},n,t),Object.assign(s,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=h();return(0,u.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r})(e,s,r,t),f=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(v(s)||!0===i&&g(s)||!e&&!g(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,a),x=t!==i.Fragment?{...f,...l,ref:n}:{},{children:T}=e,b=(0,i.useMemo)(()=>(0,o.isMotionValue)(T)?T.get():T,[T]);return(0,i.createElement)(t,{...x,children:b})}],290039)},912466,t=>{"use strict";let e=(0,t.i(270401).createContext)(null);t.s(["PresenceContext",0,e])},631871,901444,776806,714257,12592,789780,824322,t=>{"use strict";var e=t.i(654932),i=t.i(385523),n=t.i(683254),s=t.i(17837),r=t.i(901186);function a(t){return(0,r.isObject)(t)&&"ownerSVGElement"in t}t.s(["isSVGElement",0,a],901444);var o=t.i(724568),l=t.i(859296),u=t.i(123911),h=t.i(267513),c=t.i(382863),d=t.i(46897),m=t.i(168681),p=t.i(499222),f=t.i(896348),g=t.i(707875),v=t.i(600019),y=t.i(417283),x=t.i(262236),T=t.i(898435);let b=(t,e)=>t.depth-e.depth;class P{constructor(){this.children=[],this.isDirty=!1}add(t){(0,T.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,T.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b),this.isDirty=!1,this.children.forEach(t)}}t.i(709300);var w=t.i(4247),S=t.i(411798),M=t.i(334672),A=t.i(210911);let C=["TopLeft","TopRight","BottomLeft","BottomRight"],V=C.length,E=t=>"string"==typeof t?parseFloat(t):t,D=t=>"number"==typeof t||S.px.test(t);function R(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let k=L(0,.5,A.circOut),B=L(.5,.95,g.noop);function L(t,e,i){return n=>ne?1:i((0,M.progress)(t,e,n))}function j(t,e){t.min=e.min,t.max=e.max}function F(t,e){j(t.x,e.x),j(t.y,e.y)}function O(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var I=t.i(991258),N=t.i(386436);function U(t,e,i,n,s){return t-=e,t=(0,I.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,I.scalePoint)(t,1/s,n)),t}function $(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(S.percent.test(e)&&(e=parseFloat(e),e=(0,m.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,m.mixNumber)(r.min,r.max,n);t===r&&(o-=e),t.min=U(t.min,e,i,o,s),t.max=U(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let W=["x","scaleX","originX"],G=["y","scaleY","originY"];function H(t,e,i,n){$(t.x,e,W,i?i.x:void 0,n?n.x:void 0),$(t.y,e,G,i?i.y:void 0,n?n.y:void 0)}var z=t.i(566729);function Y(t){return 0===t.translate&&1===t.scale}function X(t){return Y(t.x)&&Y(t.y)}function K(t,e){return t.min===e.min&&t.max===e.max}function q(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function _(t,e){return q(t.x,e.x)&&q(t.y,e.y)}function Z(t){return(0,N.calcLength)(t.x)/(0,N.calcLength)(t.y)}function J(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Q{constructor(){this.members=[]}add(t){(0,T.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,T.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var tt=t.i(966475),te=t.i(367624),ti=t.i(993520),tn=t.i(65818);let ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tr=["","X","Y","Z"],ta=0;function to(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=ta++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,s.statsBuffer.value&&(ts.nodes=ts.calculatedTargetDeltas=ts.calculatedProjections=0),this.nodes.forEach(tc),this.nodes.forEach(ty),this.nodes.forEach(tx),this.nodes.forEach(td),s.statsBuffer.addProjectionMetrics&&s.statsBuffer.addProjectionMetrics(ts)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;o.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=u.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,o.cancelFrame)(r),s())},o.frame.setup(r,!0),i=()=>(0,o.cancelFrame)(r),tn.globalProjectionState.hasAnimatedSinceResize&&(tn.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(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 r=this.options.transition||s.getDefaultTransition()||tM,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),u=!this.targetLayout||!_(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,l.getValueTransition)(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tv(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,o.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tT),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,x.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",o.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,N.calcLength)(this.snapshot.measuredBox.x)||(0,N.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(tP(a.x,t.x,n),tP(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,g,v;(0,N.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,g=o,v=n,tw(p.x,f.x,g.x,v),tw(p.y,f.y,g.y,v),i&&(u=this.relativeTarget,d=i,K(u.x,d.x)&&K(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,z.createBox)()),F(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,m.mixNumber)(0,i.opacity??1,k(n)),t.opacityExit=(0,m.mixNumber)(e.opacity??1,0,B(n))):r&&(t.opacity=(0,m.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s{var e,i,n;let s;tn.globalProjectionState.hasAnimatedSinceResize=!0,c.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,d.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{c.activeAnimations.layout--},onComplete:()=>{c.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=(0,v.isMotionValue)(e)?e:(0,d.motionValue)(e)).start((0,y.animateMotionValue)("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,z.createBox)();let e=(0,N.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,N.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}F(e,i),(0,I.transformBox)(e,s),(0,N.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Q),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&&to("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(tp),this.root.sharedNodes.clear()}}}function tu(t){t.updateLayout()}function th(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?(0,te.eachAxis)(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=(0,N.calcLength)(n);n.min=i[t].min,n.max=n.min+s}):tE(s,e.layoutBox,i)&&(0,te.eachAxis)(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=(0,N.calcLength)(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,z.createDelta)();(0,N.calcBoxDelta)(a,i,e.layoutBox);let o=(0,z.createDelta)();r?(0,N.calcBoxDelta)(o,t.applyTransform(n,!0),e.measuredBox):(0,N.calcBoxDelta)(o,i,e.layoutBox);let l=!X(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,z.createBox)();(0,N.calcRelativePosition)(a,e.layoutBox,s.layoutBox);let o=(0,z.createBox)();(0,N.calcRelativePosition)(o,i,r.layoutBox),_(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tc(t){s.statsBuffer.value&&ts.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 td(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tm(t){t.clearSnapshot()}function tp(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!1}function tg(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ty(t){t.resolveTargetDelta()}function tx(t){t.calcProjection()}function tT(t){t.resetSkewAndRotation()}function tb(t){t.removeLeadSnapshot()}function tP(t,e,i){t.translate=(0,m.mixNumber)(e.translate,0,i),t.scale=(0,m.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tw(t,e,i,n){t.min=(0,m.mixNumber)(e.min,i.min,n),t.max=(0,m.mixNumber)(e.max,i.max,n)}function tS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tM={duration:.45,ease:[.4,0,.1,1]},tA=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tC=tA("applewebkit/")&&!tA("chrome/")?Math.round:g.noop;function tV(t){t.min=tC(t.min),t.max=tC(t.max)}function tE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,N.isNear)(Z(e),Z(i),.2)}function tD(t){return t!==t.root&&t.scroll?.wasRoot}var tR=t.i(981020);let tk=tl({attachResizeListener:(t,e)=>(0,tR.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tB={current:void 0},tL=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tB.current){let t=new tk({});t.mount(window),t.setOptions({layoutScroll:!0}),tB.current=t}return tB.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,tL],776806);let tj={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tL,MeasureLayout:n.MeasureLayout}};t.s(["drag",0,tj],631871);var tF=t.i(146444);function tO(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 s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}function tI(t,e){let i=tO(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["resolveElements",0,tO],714257),t.s(["setupGesture",0,tI],12592);var tN=t.i(300868),tU=t.i(849295);function t$(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&o.frame.postRender(()=>s(e,(0,tN.extractEventInfo)(e)))}class tW extends tU.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=tI(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,tF.isDragActive)())return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(t$(this.node,e,"Start"),t=>t$(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,tW],789780);var tG=t.i(391694),tH=tU;class tz extends tH.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tG.pipe)((0,tR.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tR.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,tz],824322)},683254,65818,t=>{"use strict";var e=t.i(222666),i=t.i(724568),n=t.i(267513),s=t.i(270401),r=t.i(72217),a=t.i(158698),o=t.i(693434);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",0,l],65818);var u=t.i(411798);function h(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let c={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!u.px.test(t))return t;else t=parseFloat(t);let i=h(t,e.target.x),n=h(t,e.target.y);return`${i}% ${n}%`}};var d=t.i(919571),m=t.i(168681),p=t.i(966475);let f=!1;class g extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,p.addScaleCorrector)(v),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),f&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:s,isPresent:r}=this.props,{projection:a}=n;return a&&(a.isPresent=r,f=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==r?a.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?a.promote():a.relegate()||i.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;f=!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}}let v={borderRadius:{...c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomLeftRadius:c,borderBottomRightRadius:c,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=d.complex.parse(t);if(n.length>5)return t;let s=d.complex.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=(0,m.mixNumber)(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};t.s(["MeasureLayout",0,function(t){let[i,n]=(0,r.usePresence)(),l=(0,s.useContext)(a.LayoutGroupContext);return(0,e.jsx)(g,{...t,layoutGroup:l,switchLayoutGroup:(0,s.useContext)(o.SwitchLayoutGroupContext),isPresent:i,safeToRemove:n})}],683254)},759341,859296,262236,391694,709300,382863,210911,334672,411781,800315,449480,595747,417283,849295,37127,146444,981020,601858,300868,386436,367624,654932,385523,t=>{"use strict";var e=t.i(222666),i=t.i(270401),n=t.i(158698),s=t.i(36468),r=t.i(978376),a=t.i(815749),o=t.i(100446),l=t.i(290039),u=t.i(843314),h=t.i(724639),c=t.i(715742),d=t.i(688624),m=t.i(70283),p=t.i(197413),f=t.i(23135),g=t.i(507321),v=t.i(973778),y=t.i(912466),x=t.i(693434),T=t.i(401936),b=t.i(870611);function P(t,{forwardMotionProps:w=!1}={},S,M){S&&(0,p.loadFeatures)(S);let A=(0,u.isSVGComponent)(t)?c.useSVGVisualState:h.useHTMLVisualState;function C(u,h){let c,p={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function({layoutId:t}){let e=(0,i.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(u)},{isStatic:f}=p,P=(0,o.useCreateMotionContext)(u),S=A(u,f);if(!f&&d.isBrowser){(0,i.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=m.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(p);c=e.MeasureLayout,P.visualElement=function(t,e,n,o,l){let{visualElement:u}=(0,i.useContext)(a.MotionContext),h=(0,i.useContext)(s.LazyContext),c=(0,i.useContext)(y.PresenceContext),d=(0,i.useContext)(r.MotionConfigContext).reducedMotion,m=(0,i.useRef)(null);o=o||h.renderer,!m.current&&o&&(m.current=o(t,{visualState:e,parent:u,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let p=m.current,f=(0,i.useContext)(x.SwitchLayoutGroupContext);p&&!p.projection&&l&&("html"===p.type||"svg"===p.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,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:s,layout:r,alwaysMeasureLayout:!!a||o&&(0,T.isRefObject)(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(m.current,n,l,f);let g=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{p&&g.current&&p.update(n,c)});let P=n[v.optimizedAppearDataAttribute],w=(0,i.useRef)(!!P&&!window.MotionHandoffIsComplete?.(P)&&window.MotionHasOptimisedAnimation?.(P));return(0,b.useIsomorphicLayoutEffect)(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),(0,i.useEffect)(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(P)}),w.current=!1),p.enteringChildren=void 0)}),p}(t,S,p,M,e.ProjectionNode)}return(0,e.jsxs)(a.MotionContext.Provider,{value:P,children:[c&&P.visualElement?(0,e.jsx)(c,{visualElement:P.visualElement,...p}):null,(0,l.useRender)(t,u,(0,g.useMotionRef)(S,P.visualElement,h),S,f,w)]})}C.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let V=(0,i.forwardRef)(C);return V[f.motionComponentSymbol]=t,V}t.s(["createMotionProxy",0,function(t,e){if("u"P(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,P(r,void 0,t,e)),i.get(r))})}],759341);var w=t.i(478231),S=t.i(152428);function M(t,e,i){let n=t.getProps();return(0,S.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function A(t,e){let i=t?.[e]??t?.default??t;return i!==t?function(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}(i,t):i}t.s(["getValueTransition",0,A],859296);var C=t.i(724568),V=t.i(976520),E=t.i(46897);let D=t=>Array.isArray(t);var R=t.i(398438),k=t.i(600019);function B(t,e){let i=t.getValue("willChange");if((0,k.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&R.MotionGlobalConfig.WillChange){let i=new R.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function L(t){return t.props[v.optimizedAppearDataAttribute]}function j(t){t.duration=0,t.type="keyframes"}t.s(["getOptimisedAppearId",0,L],262236);let F=(...t)=>t.reduce((t,e)=>i=>e(t(i)));t.s(["pipe",0,F],391694);var O=t.i(896348);let I=t=>1e3*t,N=t=>t/1e3;t.s(["millisecondsToSeconds",0,N,"secondsToMilliseconds",0,I],709300);var U=t.i(123911);let $={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",0,$],382863);var W=t.i(422908),G=t.i(227996),H=t.i(422512),z=t.i(919571),Y=t.i(993021),X=t.i(829060);function K(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 q=t.i(821483);function _(t,e){return i=>i>0?e:t}var Z=t.i(168681);let J=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},Q=[Y.hex,q.rgba,X.hsla];function tt(t){let e=Q.find(e=>e.test(t));if((0,W.warning)(!!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===X.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=K(o,n,t+1/3),r=K(o,n,t),a=K(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let te=(t,e)=>{let i=tt(t),n=tt(e);if(!i||!n)return _(t,e);let s={...i};return t=>(s.red=J(i.red,n.red,t),s.green=J(i.green,n.green,t),s.blue=J(i.blue,n.blue,t),s.alpha=(0,Z.mixNumber)(i.alpha,n.alpha,t),q.rgba.transform(s))},ti=new Set(["none","hidden"]);function tn(t,e){return i=>(0,Z.mixNumber)(t,e,i)}function ts(t){return"number"==typeof t?tn:"string"==typeof t?(0,G.isCSSVariableToken)(t)?_:H.color.test(t)?te:to:Array.isArray(t)?tr:"object"==typeof t?H.color.test(t)?te:ta:_}function tr(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>ts(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let to=(t,e)=>{let i=z.complex.createTransformer(e),n=(0,z.analyseComplexValue)(t),s=(0,z.analyseComplexValue)(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return(0,W.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_(t,e);if(ti.has(t)&&!s.values.length||ti.has(e)&&!n.values.length)return ti.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return F(tr(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>C.frame.update(e,t),stop:()=>(0,C.cancelFrame)(e),now:()=>C.frameData.isProcessing?C.frameData.timestamp:U.time.now()}},th=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}let td=.01,tm=2,tp=.005,tf=.5;function tg(t,e){return t*Math.sqrt(1-e*e)}let tv=["duration","bounce"],ty=["stiffness","damping","mass"];function tx(t,e){return e.some(e=>void 0!==t[e])}function tT(t=.3,e=.3){let i,n,s,r,a,o,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:h}=l,c=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],m={done:!1,value:c},{stiffness:p,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tx(t,ty)&&tx(t,tv))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,O.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;(0,W.warning)(t<=I(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,O.clamp)(.05,1,a),t=(0,O.clamp)(.01,10,N(t)),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/tg(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=tg(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=I(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-N(l.velocity||0)}),T=y||0,b=f/(2*Math.sqrt(p*g)),P=d-c,w=N(Math.sqrt(p/g)),S=5>Math.abs(P);if(u||(u=S?td:tm),h||(h=S?tp:tf),b<1)s=tg(w,b),r=(T+b*w*P)/s,i=t=>d-Math.exp(-b*w*t)*(r*Math.sin(s*t)+P*Math.cos(s*t)),a=b*w*r+P*s,o=b*w*P-r*s,n=t=>Math.exp(-b*w*t)*(a*Math.sin(s*t)+o*Math.cos(s*t));else if(1===b){i=t=>d-Math.exp(-w*t)*(P+(T+w*P)*t);let t=T+w*P;n=e=>Math.exp(-w*e)*(w*t*e-T)}else{let t=w*Math.sqrt(b*b-1);i=e=>{let i=Math.exp(-b*w*e),n=Math.min(t*e,300);return d-i*((T+b*w*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(T+b*w*P)/t,s=b*w*e-P*t,r=b*w*P-e*t;n=e=>{let i=Math.exp(-b*w*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let M={calculatedDuration:x&&v||null,velocity:t=>I(n(t)),next:t=>{if(!x&&b<1){let e=Math.exp(-b*w*t),i=Math.sin(s*t),n=Math.cos(s*t),l=d-e*(r*i+P*n);return m.done=Math.abs(I(e*(a*i+o*n)))<=u&&Math.abs(d-l)<=h,m.value=m.done?d:l,m}let e=i(t);return x?m.done=t>=v:m.done=Math.abs(I(n(t)))<=u&&Math.abs(d-e)<=h,m.value=m.done?d:e,m},toString:()=>{let t=Math.min(tc(M),2e4),e=th(e=>M.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return M}tT.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(tc(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:N(s)}}(t,100,tT);return t.ease=e.ease,t.duration=I(e.duration),t.type="keyframes",t};var tb=t.i(496477);function tP(t,e,i){let n=Math.max(e-5,0);return(0,tb.velocityPerSecond)(i-t(n),e-n)}function tw({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,m=t[0],p={done:!1,value:m},f=i*e,g=m+f,v=void 0===a?g:a(g);v!==g&&(f=v-m);let y=t=>-f*Math.exp(-t/n),x=t=>v+y(t),T=t=>{let e=y(t),i=x(t);p.done=Math.abs(e)<=u,p.value=p.done?v:i},b=t=>{let e;if(e=p.value,void 0!==o&&el){var i;c=t,d=tT({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i){let e=!1;return(d||void 0!==c||(e=!0,T(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),p)}}}var tS=t.i(707875);let tM=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tA(t,e,i,n){return t===e&&i===n?tS.noop:s=>0===s||1===s?s:tM(function(t,e,i,n,s){let r,a,o=0;do(r=tM(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let tC=tA(.42,0,1,1),tV=tA(0,0,.58,1),tE=tA(.42,0,.58,1),tD=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tR=t=>e=>1-t(1-e),tk=tA(.33,1.53,.69,.99),tB=tR(tk),tL=tD(tB),tj=t=>t>=1?1:(t*=2)<1?.5*tB(t):.5*(2-Math.pow(2,-10*(t-1))),tF=t=>1-Math.sin(Math.acos(t)),tO=tR(tF),tI=tD(tF);t.s(["circIn",0,tF,"circInOut",0,tI,"circOut",0,tO],210911);let tN=t=>Array.isArray(t)&&"number"==typeof t[0],tU={linear:tS.noop,easeIn:tC,easeInOut:tE,easeOut:tV,circIn:tF,circInOut:tI,circOut:tO,backIn:tB,backInOut:tL,backOut:tk,anticipate:tj},t$=t=>{if(tN(t)){(0,W.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return tA(e,i,n,s)}return"string"==typeof t?((0,W.invariant)(void 0!==tU[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tU[t]):t},tW=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function tG(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if((0,W.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||R.MotionGlobalConfig.mix||tl,r=t.length-1;for(let i=0;i{if(a&&i1)for(;nu((0,O.clamp)(t[0],t[r-1],e)):u}function tH(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=tW(0,e,n);t.push((0,Z.mixNumber)(i,1,s))}}(e,t.length-1),e}function tz({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(t$):t$(n),a={done:!1,value:e[0]},o=tG((s=i&&i.length===e.length?i:tH(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||tE).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",0,tW],334672),t.s(["interpolate",0,tG],411781),t.s(["defaultOffset",0,tH],800315);let tY=t=>null!==t;function tX(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tY),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let tK={decay:tw,inertia:tw,tween:tz,keyframes:tz,spring:tT};function tq(t){"string"==typeof t.type&&(t.type=tK[t.type])}class t_{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)}}let tZ=t=>t/100;class tJ extends t_{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==U.time.now()&&this.tick(U.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},$.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tq(t);let{type:e=tz,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||tz;o!==tz&&"number"!=typeof a[0]&&(this.mixKeyframes=F(tZ,tl(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tc(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}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 i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,T=n;if(c){let t=Math.min(this.currentTime,s)/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,m&&(i-=m/o)):"mirror"===d&&(T=a)),x=(0,O.clamp)(0,1,i)*o}y?(this.delayState.value=h[0],i=this.delayState):i=T.next(x),r&&!y&&(i.value=r(i.value));let{done:b}=i;y||null===l||(b=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&p!==tw&&(i.value=tX(h,this.options,g,this.speed)),f&&f(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return N(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+N(t)}get time(){return N(this.currentTime)}set time(t){t=I(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return tP(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(U.time.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tu,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(U.time.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,$.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)}}t.s(["JSAnimation",0,tJ],449480);var tQ=t.i(809685);function t0(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function t1(t){let e;return()=>(void 0===e&&(e=t()),e)}let t2={};function t4(t,e){let i=t1(t);return()=>t2[e]??i()}let t6=t4(()=>void 0!==window.ScrollTimeline,"scrollTimeline");t.s(["supportsScrollTimeline",0,t6],595747);var t9=t.i(17837);let t3=t4(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t8=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t8([0,.65,.55,1]),circOut:t8([.55,0,1,.45]),backIn:t8([.31,.01,.66,-.59]),backOut:t8([.33,1.53,.69,.99])};function t5(t){return"function"==typeof t&&"applyToOptions"in t}class et extends t_{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,W.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t5(t)&&t3()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t3()?th(e,i):"ease-out":tN(e)?t8(e):Array.isArray(e)?e.map(e=>t(e,i)||t7.easeOut):t7[e]}(o,s);Array.isArray(c)&&(h.easing=c),t9.statsBuffer.value&&$.waapi++;let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let m=t.animate(h,d);return t9.statsBuffer.value&&m.finished.finally(()=>{$.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tX(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),t0(e,i,t),this.animation.cancel()}o?.(),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(){return N(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+N(t)}get time(){return N(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=I(t),e&&this.animation.pause()}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,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t6())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tS.noop):n(this)}}let ee={anticipate:tj,backInOut:tL,circInOut:tI};class ei extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ee&&(t.ease=ee[t.ease])}(t),tq(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new tJ({...r,autoplay:!1}),o=Math.max(10,U.time.now()-this.startTime),l=(0,O.clamp)(0,10,o-10),u=a.sample(o).value,{name:h}=this.options;s&&h&&t0(s,h,u),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,u,l),a.stop()}}let en=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(z.complex.test(t)||"0"===t)&&!t.startsWith("url(")),es=new Set(["opacity","clipPath","filter","transform"]),er=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ea=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),eo=t1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class el extends t_{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=U.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tQ.KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=U.time.now();let c=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=en(s,e),o=en(r,e);return(0,W.warning)(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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},m=c&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return eo()&&i&&(es.has(i)||ea.has(i)&&function(t){for(let e=0;e{this.notifyFinished()}).catch(tS.noop),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}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,tQ.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let eu=t=>null!==t;var eh=t.i(695514);let ec={type:"spring",stiffness:500,damping:25,restSpeed:10},ed={type:"keyframes",duration:.8},em={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ep=(t,e,i,n={},s,r)=>a=>{let o=A(n,t)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=I(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?ed:eh.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ec:em)(t,h)),h.duration&&(h.duration=I(h.duration)),h.repeatDelay&&(h.repeatDelay=I(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(j(h),0===h.delay&&(c=!0)),(R.MotionGlobalConfig.instantAnimations||R.MotionGlobalConfig.skipAnimations)&&(c=!0,j(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let n=t.filter(eu),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(h.keyframes,o);if(void 0!==t)return void C.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return o.isSync?new tJ(h):new el(h)};function ef(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e;n&&(r=n);let l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let a={delay:i,...A(r||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=L(t);if(i){let t=window.MotionHandoffAnimation(i,e,C.frame);null!==t&&(a.startTime=t,c=!0)}}B(t,e),n.start(ep(e,n,s,t.shouldReduceMotion&&V.positionalKeys.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{C.frame.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=M(t,e)||{};for(let e in s={...s,...i}){var r;let i=D(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,E.motionValue)(i))}}(t,a)})}),l}function eg(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function ev(t,e,i={}){let n=M(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(ef(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(ev(l,e,{...a,delay:i+("function"==typeof n?0:n)+eg(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}function ey(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})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ev(t,e,i)));else if("string"==typeof e)n=ev(t,e,i);else{let s="function"==typeof e?M(t,e,i.custom):e;n=Promise.all(ef(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=eM(),n=!0,s=e=>(i,n)=>{let s=M(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,o=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&&v,P=!1,S=Array.isArray(g)?g:[g],A=S.reduce(s(p),{});!1===y&&(A={});let{prevResolvedValues:C={}}=f,V={...C,...A},E=e=>{b=!0,u.has(e)&&(P=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=A[t],i=C[t];if(!h.hasOwnProperty(t))(D(e)&&D(i)?ey(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=A,f.isActive&&(h={...h,...A}),n&&t.blockInitialAnimation&&(b=!1);let R=x&&T,k=!R||P;b&&k&&l.push(...S.map(e=>{let i={type:p};if("string"==typeof e&&n&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=M(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=eg(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=M(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eM(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,w.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends eA{constructor(){super(...arguments),this.id=eC++}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(){}}}}],37127);let eV={x:!1,y:!1};t.s(["isDragActive",0,function(){return eV.x||eV.y},"isDragging",0,eV],146444);var eE=t.i(411798);function eD(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",0,eD],981020);let eR=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ek(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,eR],601858);let eB=t=>e=>eR(e)&&t(e,ek(e));function eL(t,e,i,n){return eD(t,e,eB(i),n)}t.s(["addPointerInfo",0,eB,"extractEventInfo",0,ek],300868);var ej=t.i(237811);function eF(t){return t.max-t.min}function eO(t,e,i,n=.5){t.origin=n,t.originPoint=(0,Z.mixNumber)(e.min,e.max,t.origin),t.scale=eF(i)/eF(e),t.translate=(0,Z.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eI(t,e,i){t.min=i.min+e.min,t.max=t.min+eF(e)}function eN(t,e,i){t.min=e.min-i.min,t.max=t.min+eF(e)}t.s(["calcBoxDelta",0,function(t,e,i,n){eO(t.x,e.x,i.x,n?n.originX:void 0),eO(t.y,e.y,i.y,n?n.originY:void 0)},"calcLength",0,eF,"calcRelativeBox",0,function(t,e,i){eI(t.x,e.x,i.x),eI(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){eN(t.x,e.x,i.x),eN(t.y,e.y,i.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],386436);var eU=t.i(566729);function e$(t){return[t("x"),t("y")]}t.s(["eachAxis",0,e$],367624);var eW=t.i(476148);let eG=({current:t})=>t?t.ownerDocument.defaultView:null,eH=(t,e)=>Math.abs(t-e);class ez{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eK(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(eH(t.x,e.x)**2+eH(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=C.frameData;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eY(e,this.transformPagePoint),C.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eK("pointercancel"===t.type?this.lastMoveEventInfo:eY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!eR(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=eY(ek(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=C.frameData;this.history=[{...o,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,eK(a,this.history)),this.removeListeners=F(eL(this.contextWindow,"pointermove",this.handlePointerMove),eL(this.contextWindow,"pointerup",this.handlePointerUp),eL(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,C.cancelFrame)(this.updatePoint)}}function eY(t,e){return e?{point:e(t.point)}:t}function eX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eK({point:t},e){return{point:t,delta:eX(t,eq(e)),offset:eX(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=eq(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>I(.1)));)e--;if(!i)return{x:0,y:0};let s=N(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function eq(t){return t[t.length-1]}function e_(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 eZ(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ek(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eV[t])return null;else return eV[t]=!0,()=>{eV[t]=!1};return eV.x||eV.y?null:(eV.x=eV.y=!0,()=>{eV.x=eV.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),e$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eE.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=eF(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&C.frame.postRender(()=>s(t,e)),B(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>e$(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ez(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:eG(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&C.frame.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!e2(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,Z.mixNumber)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,T.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:e_(t.x,i,s),y:e_(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:eJ(t,"left","right"),y:eJ(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&e$(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,T.isRefObject)(e))return!1;let n=e.current;(0,W.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,eW.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:eZ(t.x,r.x),y:eZ(t.y,r.y)});if(i){let t=i((0,ej.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,ej.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(e$(a=>{if(!e2(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return B(this.visualElement,t),i.start(ep(t,i,0,e,this.visualElement,!1))}stopAnimation(){e$(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){e$(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){e$(e=>{let{drag:i}=this.getProps();if(!e2(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,Z.mixNumber)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,T.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};e$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=eF(i),(o=eF(s))>a?r=tW(s.min,s.max-a,i.min):a>o&&(r=tW(i.min,i.max-o,s.min)),(0,O.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),e$(e=>{if(!e2(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,Z.mixNumber)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;e0.set(this.visualElement,this);let t=eL(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,T.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.frame.read(e);let s=eD(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(e$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function e2(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}t.s(["DragGesture",0,class extends eA{constructor(t){super(t),this.removeGroupControls=tS.noop,this.removeListeners=tS.noop,this.controls=new e1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tS.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}],654932);let e4=t=>(e,i)=>{t&&C.frame.postRender(()=>t(e,i))};t.s(["PanGesture",0,class extends eA{constructor(){super(...arguments),this.removePointerDownListener=tS.noop}onPointerDown(t){this.session=new ez(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eG(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:e4(t),onStart:e4(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&C.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=eL(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],385523)},266698,t=>{"use strict";var e=t.i(334829),i=t.i(759341),n=t.i(37127),s=t.i(631871),r=t.i(789780),a=t.i(824322),o=t.i(461491),l=t.i(146444);let u=(t,e)=>!!e&&(t===e||u(t,e.parentElement));var h=t.i(601858),c=t.i(12592);let d=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),m=new WeakSet;function p(t){return e=>{"Enter"===e.key&&t(e)}}function f(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function g(t){return(0,h.isPrimaryPointer)(t)&&!(0,l.isDragActive)()}let v=new WeakSet;var y=t.i(724568),x=t.i(300868),T=t.i(849295);function b(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&y.frame.postRender(()=>s(e,(0,x.extractEventInfo)(e)))}class P extends T.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=(0,c.setupGesture)(t,i),a=t=>{let n=t.currentTarget;if(!g(t)||v.has(t))return;m.add(n),i.stopPropagation&&v.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),m.has(n)&&m.delete(n),g(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||u(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),(0,o.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=p(()=>{if(m.has(i))return;f(i,"down");let t=p(()=>{f(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>f(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),d.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(b(this.node,e,"Start"),(t,{success:e})=>b(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var w=T;let S=new WeakMap,M=new WeakMap,A=t=>{let e=S.get(t.target);e&&e(t)},C=t=>{t.forEach(A)},V={some:0,all:1};class E extends w.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:V[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;M.has(i)||M.set(i,{});let n=M.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(C,{root:t,...e})),n[s]}(o),S.set(t,l),e.observe(t),()=>{S.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let D={inView:{Feature:E},tap:{Feature:P},focus:{Feature:a.FocusGesture},hover:{Feature:r.HoverGesture}};var R=t.i(776806),k=t.i(683254);let B={layout:{ProjectionNode:R.HTMLProjectionNode,MeasureLayout:k.MeasureLayout}},L={...n.animations,...D,...s.drag,...B},j=(0,i.createMotionProxy)(L,e.createDomVisualElement);t.s(["motion",0,j],266698)},334829,695514,227996,237811,168681,993520,991258,476148,976520,896348,411798,422908,707875,398438,17837,724568,809685,821483,993021,829060,422512,919571,600019,123911,898435,499222,496477,46897,267513,70283,566729,478231,740835,724480,89727,152428,445687,966475,994704,877863,774626,298068,621429,57263,843314,t=>{"use strict";let e;var i=t.i(270401);let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...n,"pathRotation"]);t.s(["transformPropOrder",0,n,"transformProps",0,s],695514);let r=t=>180*t/Math.PI,a=t=>l(r(Math.atan2(t[1],t[0]))),o={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:a,rotateZ:a,skewX:t=>r(Math.atan(t[1])),skewY:t=>r(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},l=t=>((t%=360)<0&&(t+=360),t),u=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:h,scale:t=>(u(t)+h(t))/2,rotateX:t=>l(r(Math.atan2(t[6],t[5]))),rotateY:t=>l(r(Math.atan2(-t[2],t[0]))),rotateZ:a,rotate:a,skewX:t=>r(Math.atan(t[4])),skewY:t=>r(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function d(t){return+!!t.includes("scale")}function m(t,e){let i,n;if(!t||"none"===t)return d(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=c,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=o,n=e}if(!n)return d(e);let r=i[e],a=n[1].split(",").map(p);return"function"==typeof r?r(a):a[r]}function p(t){return parseFloat(t.trim())}let f=t=>e=>"string"==typeof e&&e.startsWith(t),g=f("--"),v=f("var(--"),y=t=>!!v(t)&&x.test(t.split("/*")[0].trim()),x=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}function b({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function P(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}t.s(["containsCSSVariable",0,T,"isCSSVariableName",0,g,"isCSSVariableToken",0,y],227996),t.s(["convertBoundingBoxToBox",0,b,"convertBoxToBoundingBox",0,function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}},"transformBoxPoints",0,P],237811);let w=(t,e,i)=>t+(e-t)*i;function S(t){return void 0===t||1===t}function M({scale:t,scaleX:e,scaleY:i}){return!S(t)||!S(e)||!S(i)}function A(t){return M(t)||C(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function C(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function V(t,e,i){return i+e*(t-i)}function E(t,e,i,n,s){return void 0!==s&&(t=V(t,s,n)),V(t,i,n)+e}function D(t,e=0,i=1,n,s){t.min=E(t.min,e,i,n,s),t.max=E(t.max,e,i,n,s)}function R(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function k(t,e){t.min=t.min+e,t.max=t.max+e}function B(t,e,i,n,s=.5){let r=w(t.min,t.max,s);D(t,e,i,r,n)}function L(t,e){B(t.x,e.x,e.scaleX,e.scale,e.originX),B(t.y,e.y,e.scaleY,e.scale,e.originY)}function j(t,e){return b(P(t.getBoundingClientRect(),e))}t.s(["mixNumber",0,w],168681),t.s(["has2DTranslate",0,C,"hasScale",0,M,"hasTransform",0,A],993520),t.s(["applyBoxDelta",0,R,"applyTreeDeltas",0,function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,V,"transformBox",0,L,"translateAxis",0,k],991258),t.s(["measurePageBox",0,function(t,e,i){let n=j(t,i),{scroll:s}=e;return s&&(k(n.x,s.offset.x),k(n.y,s.offset.y)),n},"measureViewportBox",0,j],476148);let F=new Set(["width","height","top","left","right","bottom",...n]);t.s(["positionalKeys",0,F],976520);let O=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},N={...I,transform:t=>O(0,1,t)},U={...I,default:1},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),W=$("deg"),G=$("%"),H=$("px"),z=$("vh"),Y=$("vw"),X={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(100*t)};t.s(["degrees",0,W,"percent",0,G,"progressPercentage",0,X,"px",0,H,"vh",0,z,"vw",0,Y],411798);let K=t=>e=>e.test(t),q=[I,H,G,W,Y,z,{test:t=>"auto"===t,parse:t=>t}],_=t=>q.find(K(t));var Z=t.i(820803);let J=()=>{};Z.default,t.s(["invariant",0,J,"warning",0,()=>{}],422908);let Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tt=t=>t===I||t===H,te=new Set(["x","y","z"]),ti=n.filter(t=>!te.has(t)),tn={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-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})=>m(e,"x"),y:(t,{transform:e})=>m(e,"y")};tn.translateX=tn.x,tn.translateY=tn.y;let ts=t=>t;t.s(["noop",0,ts],707875);let tr={};t.s(["MotionGlobalConfig",0,tr],398438);let ta=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],to={value:null,addProjectionMetrics:null};function tl(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=ta.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let a=i;i=n,n=a,i.forEach(u),e&&to.value&&to.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:m,postRender:p}=a,f=()=>{let r=tr.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:ta.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;etypeof requestAnimationFrame?requestAnimationFrame:ts,!0);t.s(["cancelFrame",0,th,"frame",0,tu,"frameData",0,tc,"frameSteps",0,td],724568);let tm=new Set,tp=!1,tf=!1,tg=!1;function tv(){if(tf){let t=Array.from(tm).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],ti.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tf=!1,tp=!1,tm.forEach(t=>t.complete(tg)),tm.clear()}function ty(){tm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tf=!0)})}class tx{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tm.add(this),tp||(tp=!0,tu.read(ty),tu.resolveKeyframes(tv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;eMath.round(1e5*t)/1e5,tb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tw=(t,e)=>i=>!!("string"==typeof i&&tP.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tS=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(tb);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tM={...I,transform:t=>Math.round(O(0,255,t))},tA={test:tw("rgb","red"),parse:tS("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tT(N.transform(n))+")"};t.s(["rgba",0,tA],821483);let tC={test:tw("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tA.transform};t.s(["hex",0,tC],993021);let tV={test:tw("hsl","hue"),parse:tS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+G.transform(tT(e))+", "+G.transform(tT(i))+", "+tT(N.transform(n))+")"};t.s(["hsla",0,tV],829060);let tE={test:t=>tA.test(t)||tC.test(t)||tV.test(t),parse:t=>tA.test(t)?tA.parse(t):tV.test(t)?tV.parse(t):tC.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tA.transform(t):tV.transform(t),getAnimatableNone:t=>{let e=tE.parse(t);return e.alpha=0,tE.transform(e)}};t.s(["color",0,tE],422512);let tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tR="number",tk="color",tB=/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 tL(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tB,t=>(tE.test(t)?(n.color.push(r),s.push(tk),i.push(tE.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tR),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function tj({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r0},parse:function(t){return tL(t).values},createTransformer:function(t){return tj(tL(t))},getAnimatableNone:function(t){let e=tL(t);return tj(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:tE.test(t)?tE.getAnimatableNone(t):t)(t,e.split[i])))}};t.s(["analyseComplexValue",0,tL,"complex",0,tF],919571);let tO=new Set(["brightness","contrast","saturate","opacity"]);function tI(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tb)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tO.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let tN=/\b([a-z-]*)\(.*?\)/gu,tU={...tF,getAnimatableNone:t=>{let e=t.match(tN);return e?e.map(tI).join(" "):t}},t$={...tF,getAnimatableNone:t=>{let e=tF.parse(t);return tF.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tW={...I,transform:Math.round},tG={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,rotate:W,pathRotation:W,rotateX:W,rotateY:W,rotateZ:W,scale:U,scaleX:U,scaleY:U,scaleZ:U,skew:W,skewX:W,skewY:W,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:N,originX:X,originY:X,originZ:H,zIndex:tW,fillOpacity:N,strokeOpacity:N,numOctaves:tW},tH={...tG,color:tE,backgroundColor:tE,outlineColor:tE,fill:tE,stroke:tE,borderColor:tE,borderTopColor:tE,borderRightColor:tE,borderBottomColor:tE,borderLeftColor:tE,filter:tU,WebkitFilter:tU,mask:t$,WebkitMask:t$},tz=t=>tH[t],tY=new Set([tU,t$]);function tX(t,e){let i=tz(t);return tY.has(i)||(i=tF),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tK=new Set(["auto","none","0"]);class tq extends tx{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t_=t=>!!(t&&t.getVelocity);function tZ(){e=void 0}t.s(["isMotionValue",0,t_],600019);let tJ={now:()=>(void 0===e&&tJ.set(tc.isProcessing||tr.useManualTiming?tc.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tZ)}};function tQ(t,e){-1===t.indexOf(e)&&t.push(e)}function t0(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["time",0,tJ],123911),t.s(["addUniqueItem",0,tQ,"removeItem",0,t0],898435);class t1{constructor(){this.subscriptions=[]}add(t){return tQ(this.subscriptions,t),()=>t0(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 s=0;se?1e3/e*t:0;t.s(["velocityPerSecond",0,t2],496477);let t4={current:void 0};class t6{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tJ.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=tJ.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 t1);let i=this.events[t].add(e);return"change"===t?()=>{i(),tu.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 t4.current&&t4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=tJ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t2(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 t9(t,e){return new t6(t,e)}t.s(["collectMotionValues",0,t4,"motionValue",0,t9],46897);let t3=[...q,tE,tF],{schedule:t8}=tl(queueMicrotask,!1);t.s(["microtask",0,t8],267513);let t7={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},t5={};for(let t in t7)t5[t]={isEnabled:e=>t7[t].some(t=>!!e[t])};t.s(["featureDefinitions",0,t5],70283);let et=()=>({translate:0,scale:1,origin:0,originPoint:0}),ee=()=>({min:0,max:0}),ei=()=>({x:ee(),y:ee()});t.s(["createBox",0,ei,"createDelta",0,()=>({x:et(),y:et()})],566729);var en=t.i(546600),es=t.i(650396);let er=new WeakMap;function ea(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eo(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",0,ea],478231),t.s(["isVariantLabel",0,eo],740835);let el=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...el];function eh(t){return ea(t.animate)||eu.some(e=>eo(t[e]))}function ec(t){return!!(eh(t)||t.variants)}function ed(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function em(t,e,i,n){if("function"==typeof e){let[s,r]=ed(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ed(n);e=e(void 0!==i?i:t.custom,s,r)}return e}t.s(["variantPriorityOrder",0,el,"variantProps",0,eu],724480),t.s(["isControllingVariants",0,eh,"isVariantNode",0,ec],89727),t.s(["resolveVariantFromProps",0,em],152428);let ep=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ef{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tJ.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),es.hasReducedMotionListener.current||(0,en.initPrefersReducedMotion)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||es.prefersReducedMotion.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),th(this.notifyUpdate),th(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;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tu.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),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 t5){let e=t5[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):ei()}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=t9(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!t3.find(K(n))&&tF.test(e)&&(i=tX(t,e))}this.setBaseTarget(t,t_(i)?i.get():i)}return t_(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=em(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||t_(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 t1),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t8.render(this.render)}}class eg extends ef{constructor(){super(...arguments),this.KeyframeResolver=tq}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;t_(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let ev=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ey={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ex=n.length;function eT(t,e,i){let{style:r,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(g(t)){a[t]=i;continue}{let e=ev(i,tG[t]);t.startsWith("origin")?(u=!0,o[t]=e):r[t]=e}}if(!e.transform&&(l||i?r.transform=function(t,e,i){let s="",r=!0;for(let a=0;a{let{transform:i="none"}=getComputedStyle(t);return m(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(g(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return j(t,e)}build(t,e,i){eT(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eS(t,e,i)}}let eA=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",0,eA],774626);let eC={offset:"stroke-dashoffset",array:"stroke-dasharray"},eV={offset:"strokeDashoffset",array:"strokeDasharray"};function eE(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(eT(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eC:eV;t[r.offset]=H.transform(-n);let a=H.transform(e),o=H.transform(i);t[r.array]=`${a} ${o}`}(c,s,r,a,!1)}t.s(["buildSVGAttrs",0,eE],298068);let eD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ek(t,e,i){let s=eS(t,e,i);for(let i in t)(t_(t[i])||t_(e[i]))&&(s[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}t.s(["isSVGTag",0,eR],621429),t.s(["scrapeMotionValuesFromProps",0,ek],57263);class eB extends eg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ei}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=tz(e);return t&&t.default||0}return e=eD.has(e)?e:eA(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ek(t,e,i)}build(t,e,i){eE(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eb(t,e,void 0,n),e.attrs)t.setAttribute(eD.has(i)?i:eA(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}let eL=["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 ej(t){if("string"!=typeof t||t.includes("-"));else if(eL.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,ej],843314),t.s(["createDomVisualElement",0,(t,e)=>ej(t)?new eB(e):new eM(e,{allowProjection:t!==i.Fragment})],334829)},724639,4247,715742,197413,23135,401936,507321,973778,693434,t=>{"use strict";var e=t.i(270401),i=t.i(478231),n=t.i(815749),s=t.i(912466),r=t.i(89727),a=t.i(152428),o=t.i(820572),l=t.i(600019);function u(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",0,u],4247);let h=t=>(l,h)=>{let c=(0,e.useContext)(n.MotionContext),d=(0,e.useContext)(s.PresenceContext),m=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,o){return{latestValues:function(t,e,n,s){let o={},l=s(t,{});for(let t in l)o[t]=u(l[t]);let{initial:h,animate:c}=t,d=(0,r.isControllingVariants)(t),m=(0,r.isVariantNode)(t);e&&m&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let p=!!n&&!1===n.initial,f=(p=p||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,i.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i{e&&t.onMount&&t.onMount(e),i&&(e?i.mount(e):i.unmount()),n&&("function"==typeof n?n(e):v(n)&&(n.current=e))},[i])}],507321);let y="data-"+(0,t.i(774626).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",0,y],973778);let x=(0,e.createContext)({});t.s(["SwitchLayoutGroupContext",0,x],693434)},546600,688624,650396,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",0,e],688624);let i={current:null},n={current:!1};t.s(["hasReducedMotionListener",0,n,"prefersReducedMotion",0,i],650396),t.s(["initPrefersReducedMotion",0,function(){if(n.current=!0,e)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i.current=t.matches;t.addEventListener("change",e),e()}else i.current=!1}],546600)},820572,t=>{"use strict";var e=t.i(270401);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},870611,t=>{"use strict";var e=t.i(270401);let i=t.i(688624).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i])},461491,t=>{"use strict";var e=t.i(901186);t.s(["isHTMLElement",0,function(t){return(0,e.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}])},901186,t=>{"use strict";t.s(["isObject",0,t=>"object"==typeof t&&null!==t])}]); //# sourceMappingURL=41auivao_a-c3.js.map //# chunkId=01a04ae3-95e5-7fd0-8d39-8e4cf68d21cd