1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36471],{815:(t,e,i)=>{i.d(e,{M:()=>d});var r=i(70711),s=i(86911),n=i(14174),o=i(22055),a=i(56240),l=i(52493),u=i(28678),h=i(7128);class d extends s.b{constructor(){super(...arguments),this.type="html",this.renderInstance=u.e}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=((0,n.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,r.m)(t,e)}build(t,e,i){(0,a.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.x)(t,e,i)}}},1345:(t,e,i)=>{i.d(e,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},2421:(t,e,i)=>{i.d(e,{n:()=>r});let r=t=>"string"==typeof t&&"svg"===t.toLowerCase()},2829:(t,e,i)=>{i.d(e,{KN:()=>n,gQ:()=>u,px:()=>o,uj:()=>s,vh:()=>a,vw:()=>l});let r=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=r("deg"),n=r("%"),o=r("px"),a=r("vh"),l=r("vw"),u={...n,parse:t=>n.parse(t)/100,transform:t=>n.transform(100*t)}},4524:(t,e,i)=>{i.d(e,{E:()=>s});var r=i(12115);let s=i(24846).B?r.useLayoutEffect:r.useEffect},5469:(t,e,i)=>{i.d(e,{K:()=>s});var r=i(62537);function s(t,e,i){let s=t.getProps();return(0,r.a)(s,e,void 0!==i?i:s.custom,t)}},5556:(t,e,i)=>{i.d(e,{$:()=>s,V:()=>n});var r=i(72025);let s=r.l,n=r.l},7128:(t,e,i)=>{i.d(e,{x:()=>n});var r=i(27405),s=i(63160);function n(t,e,i){var n;let{style:o}=t,a={};for(let l in o)((0,s.S)(o[l])||e.style&&(0,s.S)(e.style[l])||(0,r.z)(l,t)||(null==(n=null==i?void 0:i.getValue(l))?void 0:n.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},7956:(t,e,i)=>{i.d(e,{P:()=>iv});var r,s,n,o=i(14582),a=i(90516);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}var u=i(78207),h=i(5469),d=i(76134),c=i(85775);function p(t,e,i={}){var r;let s=(0,h.K)(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all((0,c.$)(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,s=1,n){let o=[],a=(t.variantChildren.size-1)*r,l=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(m).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(p(t,e,{...n,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function m(t,e){return t.sortNodePosition(e)}let f=d._.length,v=[...d.U].reverse(),g=d.U.length;function y(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x(){return{animate:y(!0),whileInView:y(),whileHover:y(),whileTap:y(),whileDrag:y(),whileFocus:y(),exit:y()}}class w{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P extends w{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>p(t,e,i)));else if("string"==typeof e)r=p(t,e,i);else{let s="function"==typeof e?(0,h.K)(t,e,i.custom):e;r=Promise.all((0,c.$)(t,s,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=x(),r=!0,s=e=>(i,r)=>{var s;let n=(0,h.K)(t,r,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function n(n){let{props:h}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<f;t++){let r=d._[t],s=e.props[r];((0,u.w)(s)||!1===s)&&(i[r]=s)}return i}(t.parent)||{},p=[],m=new Set,y={},x=1/0;for(let e=0;e<g;e++){var w,P;let d=v[e],f=i[d],g=void 0!==h[d]?h[d]:c[d],T=(0,u.w)(g),S=d===n?f.isActive:null;!1===S&&(x=e);let b=g===c[d]&&g!==h[d]&&T;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...y},!f.isActive&&null===S||!g&&!f.prevProp||(0,o.N)(g)||"boolean"==typeof g)continue;let A=(w=f.prevProp,"string"==typeof(P=g)?P!==w:!!Array.isArray(P)&&!l(P,w)),V=A||d===n&&f.isActive&&!b&&T||e>x&&T,M=!1,k=Array.isArray(g)?g:[g],E=k.reduce(s(d),{});!1===S&&(E={});let{prevResolvedValues:C={}}=f,D={...C,...E},R=e=>{V=!0,m.has(e)&&(M=!0,m.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in D){let e=E[t],i=C[t];if(!y.hasOwnProperty(t))((0,a.p)(e)&&(0,a.p)(i)?l(e,i):e===i)?void 0!==e&&m.has(t)?R(t):f.protectedKeys[t]=!0:null!=e?R(t):m.add(t)}f.prevProp=g,f.prevResolvedValues=E,f.isActive&&(y={...y,...E}),r&&t.blockInitialAnimation&&(V=!1);let j=!(b&&A)||M;V&&j&&p.push(...k.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>{let r=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=r?r:null}),p.push({animation:e})}let T=!!p.length;return r&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(T=!1),r=!1,T?e(p):Promise.resolve()}return{animateChanges:n,setActive:function(e,r){var s;if(i[e].isActive===r)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let o=n(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=x(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let T=0;class S extends w{constructor(){super(...arguments),this.id=T++}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 r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var b=i(72025),A=i(5556),V=i(79368),M=i(38621);function k(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function E(t){return{point:{x:t.pageX,y:t.pageY}}}function C(t,e,i,r){return k(t,e,t=>(0,V.Mc)(t)&&i(t,E(t)),r)}let D=(t,e)=>Math.abs(t-e);var R=i(37237),j=i(95080);class F{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=O(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(D(t.x,e.x)**2+D(t.y,e.y)**2)>=3);if(!r&&!s)return;let{point:n}=i,{timestamp:o}=j.uv;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=L(e,this.transformPagePoint),j.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=O("pointercancel"===t.type?this.lastMoveEventInfo:L(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),r&&r(t,n)},!(0,V.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const n=L(E(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=j.uv;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,O(n,this.history)),this.removeListeners=(0,R.F)(C(this.contextWindow,"pointermove",this.handlePointerMove),C(this.contextWindow,"pointerup",this.handlePointerUp),C(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,j.WG)(this.updatePoint)}}function L(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function O({point:t},e){return{point:t,delta:B(t,U(e)),offset:B(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=U(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>(0,M.f)(.1)));)e--;if(!i)return{x:0,y:0};let s=(0,M.X)(r.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let n={x:(r.x-i.x)/s,y:(r.y-i.y)/s}
1;return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function U(t){return t[t.length-1]}function I(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var $=i(18844),W=i(12507);function N(t){return t.max-t.min}function G(t,e,i,r=.5){t.origin=r,t.originPoint=(0,W.k)(e.min,e.max,t.origin),t.scale=N(i)/N(e),t.translate=(0,W.k)(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 K(t,e,i,r){G(t.x,e.x,i.x,r?r.originX:void 0),G(t.y,e.y,i.y,r?r.originY:void 0)}function q(t,e,i){t.min=i.min+e.min,t.max=t.min+N(e)}function H(t,e,i){t.min=e.min-i.min,t.max=t.min+N(e)}function X(t,e,i){H(t.x,e.x,i.x),H(t.y,e.y,i.y)}var z=i(68172);function Y(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function _(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function Q(t,e,i){return{min:Z(t,e),max:Z(t,i)}}function Z(t,e){return"number"==typeof t?t:t[e]||0}var J=i(24236);function tt(t){return[t("x"),t("y")]}var te=i(70711),ti=i(15582),tr=i(2829),ts=i(46035);let tn=({current:t})=>t?t.ownerDocument.defaultView:null;var to=i(99031);let ta=new WeakMap;class tl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,J.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(E(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,V.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tt(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=N(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&j.Gt.postRender(()=>s(t,e)),(0,to.g)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:s,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>tt(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new F(t,{onSessionStart:r,onStart:s,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:tn(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&j.Gt.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!tu(t,r,this.currentDirection))return;let s=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?(0,W.k)(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?(0,W.k)(i,t,r.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),s.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&I(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:s}){return{x:Y(t.x,i,s),y:Y(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:Q(t,"left","right"),y:Q(t,"top","bottom")}}(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tt(t=>{var e,i;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],s={},void 0!==i.min&&(s.min=i.min-e.min),void 0!==i.max&&(s.max=i.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!I(e))return!1;let r=e.current;(0,A.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let n=(0,te.L)(r,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:_(t.x,n.x),y:_(t.y,n.y)});if(i){let t=i((0,ti.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,ti.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tt(o=>{if(!tu(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,to.g)(this.visualElement,t),i.start((0,ts.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tt(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tt(e=>{let{drag:i}=this.getProps();if(!tu(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:n}=r.layout.layoutBox[e];s.set(t[e]-(0,W.k)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!I(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tt(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let n,o,a,l=e.get();r[t]=(i={min:l,max:l},s=this.constraints[t],n=.5,o=N(i),(a=N(s))>o?n=(0,$.q)(s.min,s.max-o,i.min):o>a&&(n=(0,$.q)(i.min,i.max-a,s.min)),(0,z.q)(0,1,n))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tt(e=>{if(!tu(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:n}=this.constraints[e];i.set((0,W.k)(s,n,r[e]))})}addListeners(){if(!this.visualElement.current)return;ta.set(this.visualElement,this);let t=C(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();I(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.Gt.read(e);let s=k(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tt(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),r(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:n,dragMomentum:o}}}function tu(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class th extends w{constructor(t){super(t),this.removeGroupControls=b.l,this.removeListeners=b.l,this.controls=new tl(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let td=t=>(e,i)=>{t&&j.Gt.postRender(()=>t(e,i))};class tc extends w{constructor(){super(...arguments),this.removePointerDownListener=b.l}onPointerDown(t){this.session=new F(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tn(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:td(t),onStart:td(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&j.Gt.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=C(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tp=i(95155),tm=i(12115);let tf=(0,tm.createContext)(null),tv=(0,tm.createContext)({}),tg=(0,tm.createContext)({}),ty={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tw={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tr.px.test(t))return t;else t=parseFloat(t);let i=tx(t,e.target.x),r=tx(t,e.target.y);return`${i}% ${r}%`}};var tP=i(51688),tT=i(63959);let{schedule:tS,cancel:tb}=(0,i(11443).I)(queueMicrotask,!1);class tA extends tm.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;(0,tT.$)(tM),s&&(e.group&&e.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ty.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:s}=this.props,n=i.projection;return n&&(n.isPresent=s,r||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?n.promote():n.relegate()||j.Gt.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tS.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tV(t){let[e,i]=function(t=!0){let e=(0,tm.useContext)(tf);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:s}=e,n=(0,tm.useId)();(0,tm.useEffect)(()=>{t&&s(n)},[t]);let o=(0,tm.useCallback)(()=>t&&r&&r(n),[n,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,tm.useContext)(tv);return(0,tp.jsx)(tA,{...t,layoutGroup:r,switchLayoutGroup:(0,tm.useContext)(tg),isPresent:e,safeToRemove:i})}let tM={borderRadius:{...tw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tw,borderTopRightRadius:tw,borderBottomLeftRadius:tw,borderBottomRightRadius:tw,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tP.f.parse(t);if(r.length>5)return t;let s=tP.f.createTransformer(t),n=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+n]/=o,r[1+n]/=a;let l=(0,W.k)(o,a,.5);return"number"==typeof r[2+n]&&(r[2+n]/=l),"number"==typeof r[3+n]&&(r[3+n]/=l),s(r)}}};var tk=i(94258),tE=i(72252),tC=i(72614),tD=i(99147),tR=i(75566);let tj=(t,e)=>t.depth-e.depth;class tF{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tR.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tR.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tj),this.isDirty=!1,this.children.forEac
1h(t)}}var tL=i(78608),tB=i(42569),tO=i(63160);function tU(t){let e=(0,tO.S)(t)?t.get():t;return(0,tB.B)(e)?e.toValue():e}var tI=i(39600);let t$=["TopLeft","TopRight","BottomLeft","BottomRight"],tW=t$.length,tN=t=>"string"==typeof t?parseFloat(t):t,tG=t=>"number"==typeof t||tr.px.test(t);function tK(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tq=tX(0,.5,tI.yT),tH=tX(.5,.95,b.l);function tX(t,e,i){return r=>r<t?0:r>e?1:i((0,$.q)(t,e,r))}function tz(t,e){t.min=e.min,t.max=e.max}function tY(t,e){tz(t.x,e.x),tz(t.y,e.y)}function t_(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=i(79953);function tZ(t,e,i,r,s){return t-=e,t=(0,tQ.hq)(t,1/i,r),void 0!==s&&(t=(0,tQ.hq)(t,1/s,r)),t}function tJ(t,e,[i,r,s],n,o){!function(t,e=0,i=1,r=.5,s,n=t,o=t){if(tr.KN.test(e)&&(e=parseFloat(e),e=(0,W.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,W.k)(n.min,n.max,r);t===n&&(a-=e),t.min=tZ(t.min,e,i,a,s),t.max=tZ(t.max,e,i,a,s)}(t,e[i],e[r],e[s],e.scale,n,o)}let t0=["x","scaleX","originX"],t1=["y","scaleY","originY"];function t2(t,e,i,r){tJ(t.x,e,t0,i?i.x:void 0,r?r.x:void 0),tJ(t.y,e,t1,i?i.y:void 0,r?r.y:void 0)}function t5(t){return 0===t.translate&&1===t.scale}function t4(t){return t5(t.x)&&t5(t.y)}function t3(t,e){return t.min===e.min&&t.max===e.max}function t6(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t9(t,e){return t6(t.x,e.x)&&t6(t.y,e.y)}function t8(t){return N(t.x)/N(t.y)}function t7(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class et{constructor(){this.members=[]}add(t){(0,tR.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tR.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ee=i(71292);let ei={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},er="u">typeof window&&void 0!==window.MotionDebug,es=["","X","Y","Z"],en={visibility:"hidden"},eo=0;function ea(t,e,i,r){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function el({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=eo++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,er&&(ei.totalNodes=ei.resolvedTargetDeltas=ei.recalculatedProjection=0),this.nodes.forEach(ed),this.nodes.forEach(ey),this.nodes.forEach(ex),this.nodes.forEach(ec),er&&window.MotionDebug.record(ei)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tF)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tL.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,tD.x)(e),this.instance=e;let{layoutId:r,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=tC.k.now(),e=({timestamp:i})=>{let s=i-t;s>=250&&((0,j.WG)(e),r())},j.Gt.read(e,!0),i=()=>
1(0,j.WG)(e),ty.hasAnimatedSinceResize&&(ty.hasAnimatedSinceResize=!1,this.nodes.forEach(eg))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||eA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!t9(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,V.rU)(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,j.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ew),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 r=(0,tE.P)(i);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",j.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(em);return}this.isUpdating||this.nodes.forEach(ef),this.isUpdating=!1,this.nodes.forEach(ev),this.nodes.forEach(eu),this.nodes.forEach(eh),this.clearAllSnapshots();let t=tC.k.now();j.uv.delta=(0,z.q)(0,1e3/60,t-j.uv.timestamp),j.uv.timestamp=t,j.uv.isProcessing=!0,j.PP.update.process(j.uv),j.PP.preRender.process(j.uv),j.PP.render.process(j.uv),j.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ep),this.sharedNodes.forEach(eP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,J.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t4(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,n=r!==this.prevTransformTemplateValue;t&&(e||(0,ee.HD)(this.latestValues)||n)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),ek((e=r).x),ek(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,J.ge)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(eC))){let{scroll:t}=this.root;t&&((0,tQ.Ql)(i.x,t.offset.x),(0,tQ.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,J.ge)();if(tY(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:s,options:n}=r;r!==this.root&&s&&n.layoutScroll&&(s.wasRoot&&tY(i,t),(0,tQ.Ql)(i.x,s.offset.x),(0,tQ.Ql)(i.y,s.offset.y))}return i}applyTransform(t,e=!1){let i=(0,J.ge)();tY(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(0,tQ.Ww)(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),(0,ee.HD)(r.latestValues)&&(0,tQ.Ww)(i,r.latestValues)}return(0,ee.HD)(this.latestValues)&&(0,tQ.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,J.ge)();tY(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ee.HD)(i.latestValues))continue;(0,ee.vk)(i.latestValues)&&i.updateSnapshot();let r=(0,J.ge)();tY(r,i.measurePageBox()),t2(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return(0,ee.HD)(this.latestValues)&&t2(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==j.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,s;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=j.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,J.ge)(),this.relativeTargetOrigin=(0,J.ge)(),X(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tY(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,J.ge)(),this.targetWithTransforms=(0,J.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,s=this.relativeParent.target,q(i.x,r.x,s.x),q(i.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tY(this.target,this.layout.layoutBox),(0,tQ.o4)(this.target,this.targetDelta)):tY(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,J.ge)(),this.relativeTargetOrigin=(0,J.ge)(),X(this.relativeTargetOrigin,this.target,t.target),tY(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}er&&ei.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,ee.vk)(this.parent.latestValues)||(0,ee.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===j.uv.timestamp&&(r=!1),r)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;tY(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,tQ.OU)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,J.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(t_(this.prevProjectionDelta.x,this.projectionDelta.x),t_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),K(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&t7(this.projectionDelta.x,this.prevProjectionDelta.x)&&t7(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),er&&ei.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,J.xU)(),this.projectionDelta=(0,J.xU)(),this.projectionDeltaWithTransform=(0,J.xU)()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,s=r?r.latestValues:{},n={...this.latestValues},o=(0,J.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,J.ge)(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(eb));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(eT(o.x,t.x,r),eT(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;X(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=r,eS(p.x,m.x,f.x,v),eS(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,t3(u.x,c.x)&&t3(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,J.ge)()),tY(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,r,s,n){s?(t.opacity=(0,W.k)(0,void 0!==i.opacity?i.opacity:1,tq(r)),t.opacityExit=(0,W.k)(void 0!==e.opacity?e.opacity:1,0,tH(r))):n&&(t.opacity=(0,W.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let s=0;s<tW;s++){let n=`border${t$[s]}Radius`,o=tK(e,n),a=tK(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tG(o)===tG(a)?(t[n]=Math.max((0,W.k)(tN(o),tN(a),r),0),(tr.KN.test(a)||tr.KN.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,W.k)(e.rotate||0,i.rotate||0,r))}(n,s,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,j.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.Gt.update(()=>{ty.hasAnimatedSinceResize=!0,this.currentAnimation=(0,tk.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:s}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&eE(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||(0,J.ge)();let e=N(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=N(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}tY(e,i),(0,tQ.Ww)(e,s),K(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new et),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}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 r={};i.z&&ea("z",t,r,this.animationValues);for(let e=0;e<es.length;e++)ea(`rotate${es[e]}`,t,r,this.animationValues),ea(`skew${es[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return en;let r={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tU(null==t?void 0:t.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tU(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,ee.HD)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",s=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||n||o)&&(r=`translate3d(${s}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:n,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),s&&(r+=`rotateX(${s}deg) `),n&&(r+=`rotateY(${n}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),s&&(r.transform=s(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?r.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tT.H){if(void 0===o[t])continue;let{correct:e,applyTo:i}=tT.H[t],s="none"===r.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=s}else r[t]=s}return this.options.layoutId&&(r.pointerEvents=n===this?tU(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(em),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function eh(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:s}=t.options,n=i.source!==t.layout.source;"size"===s?tt(t=>{let r=n?i.measuredBox[t]:i.layoutBox[t],s=N(r);r.min=e[t].min,r.max=r.min+s}):eE(s,i.layoutBox,e)&&tt(r=>{let s=n?i.measuredBox[r]:i.layoutBox[r],o=N(e[r]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=(0,J.xU)();K(o,e,i.layoutBox);let a=(0,J.xU)();n?K(a,t.applyTransform(r,!0),i.measuredBox):K(a,e,i.layoutBox);let l=!t4(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:n}=r;if(s&&n){let o=(0,J.ge)();X(o,i.layoutBox,s.layoutBox);let a=(0,J.ge)();X(a,e,n.layoutBox),t9(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ed(t){er&&ei.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ec(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ep(t){t.clearSnapshot()}function em(t){t.clearMeasurements()}function ef(t){t.isLayoutDirty=!1}function ev(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ey(t){t.resolveTargetDelta()}function ex(t){t.calcProjection()}function ew(t){t.resetSkewAndRotation()}function eP(t){t.removeLeadSnapshot()}function eT(t,e,i){t.translate=(0,W.k)(e.translate,0,i),t.scale=(0,W.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eS(t,e,i,r){t.min=(0,W.k)(e.min,i.min,r),t.max=(0,W.k)(e.max,i.max,r)}function eb(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eA={duration:.45,ease:[.4,0,.1,1]},eV=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eM=eV("applewebkit/")&&!eV("chrome/")?Math.round:b.l;function ek(t){t.min=eM(t.min),t.max=eM(t.max)}function eE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t8(e)-t8(i)))}function eC(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eD=el({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eR={current:void 0},ej=el({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eR.current){let t=new eD({});t.mount(window),t.setOptions({layoutScroll:!0}),eR.current=t}return eR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eF(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=r["onHover"+i];s&&j.Gt.postRender(()=>s(e,E(e)))}class eL extends w{mount(){let{current:t}=this.node;t&&(this.unmount=(0,V.PT)(t,t=>(eF(this.node,t,"Start"),t=>eF(this.node,t,"End"))))}unmount(){}}class eB extends w{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,R.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eO(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=r["onTap"+("End"===i?"":i)];s&&j.Gt.postRender(()=>s(e,E(e)))}class eU extends w{mount(){let{current:t}=this.node;t&&(this.unmount=(0,V.c$)(t,t=>(eO(this.node,t,"Start"),(t,{success:e})=>eO(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eI=new WeakMap,e$=new WeakMap,eW=t=>{let e=eI.get(t.target);e&&e(t)}
1,eN=t=>{t.forEach(eW)},eG={some:0,all:1};class eK extends w{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:s,amount:n="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:s,threshold:"number"==typeof n?n:eG[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=e?i:r;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;e$.has(i)||e$.set(i,{});let r=e$.get(i),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(eN,{root:t,...e})),r[s]}(a),eI.set(t,l),e.observe(t),()=>{eI.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let eq=(0,tm.createContext)({strict:!1});var eH=i(24866);let eX=(0,tm.createContext)({});var ez=i(27475);function eY(t){return Array.isArray(t)?t.join(" "):t}var e_=i(24846),eQ=i(80304);let eZ=Symbol.for("motionComponentSymbol");var eJ=i(4524),e0=i(88618);let e1=["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 e2(t){if("string"!=typeof t||t.includes("-"));else if(e1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e5=i(62537),e4=i(28819);let e3=t=>(e,i)=>{let r=(0,tm.useContext)(eX),s=(0,tm.useContext)(tf),n=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},r,s,n){let a={latestValues:function(t,e,i,r){let s={},n=r(t,{});for(let t in n)s[t]=tU(n[t]);let{initial:a,animate:l}=t,u=(0,ez.e)(t),h=(0,ez.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,o.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let r=(0,e5.a)(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(r,s,n,t),renderState:e()};return i&&(a.onMount=t=>i({props:r,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,r,s);return i?n():(0,e4.M)(n)};var e6=i(52493),e9=i(93869);let e8=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e7=()=>({...e8(),attrs:{}});var it=i(2421),ie=i(58099),ii=i(60825);let ir=["x","y","width","height","cx","cy","r"],is={useVisualState:e3({scrapeMotionValuesFromProps:ii.x,createRenderState:e7,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:s})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in s)if(e6.f.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<ir.length;i++){let r=ir[i];t[r]!==e[r]&&(o=!0)}o&&j.Gt.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}j.Gt.render(()=>{(0,e9.B)(r,s,(0,it.n)(i.tagName),t.transformTemplate),(0,ie.d)(i,r)})})}})},io={useVisualState:e3({scrapeMotionValuesFromProps:i(7128).x,createRenderState:e8})};var ia=i(27405),il=i(56240);function iu(t,e,i){for(let r in e)(0,tO.S)(e[r])||(0,ia.z)(r,i)||(t[r]=e[r])}let ih=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 id(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ih.has(t)}let ic=t=>!id(t);try{(r=require("@emotion/is-prop-valid").default)&&(ic=t=>t.startsWith("on")?!id(t):r(t))}catch(t){}var ip=i(815),im=i(26679);let iv=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((s={animation:{Feature:P},exit:{Feature:S},inView:{Feature:eK},tap:{Feature:eU},focus:{Feature:eB},hover:{Feature:eL},pan:{Feature:tc},drag:{Feature:th,ProjectionNode:ej,MeasureLayout:tV},layout:{ProjectionNode:ej,MeasureLayout:tV}},n=(t,e)=>e2(t)?new im.l(e):new ip.M(e,{allowProjection:t!==tm.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:s}){var n,o;function a(t,n){var o;let a,l={...(0,tm.useContext)(eH.Q),...t,layoutId:function({layoutId:t}){let e=(0,tm.useContext)(tv).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,ez.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,u.w)(e)?e:void 0,animate:(0,u.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tm.useContext)(eX));return(0,tm.useMemo)(()=>({initial:e,animate:i}),[eY(e),eY(i)])}
1(t),c=r(t,h);if(!h&&e_.B){(0,tm.useContext)(eq).strict;let t=function(t){let{drag:e,layout:i}=eQ.B;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=t.MeasureLayout,d.visualElement=function(t,e,i,r,s){var n,o;let{visualElement:a}=(0,tm.useContext)(eX),l=(0,tm.useContext)(eq),u=(0,tm.useContext)(tf),h=(0,tm.useContext)(eH.Q).reducedMotion,d=(0,tm.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,tm.useContext)(tg);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,r){let{layoutId:s,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:n,alwaysMeasureLayout:!!o||a&&I(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,tm.useRef)(!1);(0,tm.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[e0.n],v=(0,tm.useRef)(!!f&&!(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,eJ.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tS.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,tm.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),c}(s,c,l,e,t.ProjectionNode)}return(0,tp.jsxs)(eX.Provider,{value:d,children:[a&&d.visualElement?(0,tp.jsx)(a,{visualElement:d.visualElement,...l}):null,i(s,t,(o=d.visualElement,(0,tm.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):I(n)&&(n.current=t))},[o])),c,h,d.visualElement)]})}t&&function(t){for(let e in t)eQ.B[e]={...eQ.B[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof s?s:`create(${null!=(o=null!=(n=s.displayName)?n:s.name)?o:""})`}`;let l=(0,tm.forwardRef)(a);return l[eZ]=s,l}({...e2(t)?is:io,preloadedFeatures:s,useRender:function(t=!1){return(e,i,r,{latestValues:s},n)=>{let o=(e2(e)?function(t,e,i,r){let s=(0,tm.useMemo)(()=>{let i=e7();return(0,e9.B)(i,e,(0,it.n)(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iu(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,r,s={},n=(i=t.style||{},iu(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,tm.useMemo)(()=>{let i=e8();return(0,il.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=n,s})(i,s,n,e),a=function(t,e,i){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(ic(s)||!0===i&&id(s)||!e&&!id(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(i,"string"==typeof e,t),l=e!==tm.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,tm.useMemo)(()=>(0,tO.S)(u)?u.get():u,[u]);return(0,tm.createElement)(e,{...l,children:h})}}(e),createVisualElement:n,Component:t})}))},11443:(t,e,i)=>{i.d(e,{I:()=>n});var r=i(27962);let s=["read","resolveKeyframes","update","preRender","render","postRender"];function n(t,e){let i=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=s.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,r=!1,s=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&r?e:i;return s&&n.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[e,i]=[i,e],e.forEach(a),e.clear(),r=!1,s&&(s=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let s=r.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=n?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:s.reduce((e,r)=>{let s=l[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,o.isProcessing||t(f)),s.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<s.length;
1e++)l[s[e]].cancel(t)},state:o,steps:l}}},12507:(t,e,i)=>{i.d(e,{k:()=>r});let r=(t,e,i)=>t+(e-t)*i},13113:(t,e,i)=>{i.d(e,{j:()=>b});var r=i(12507),s=i(5556);function n(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 o=i(90856),a=i(45701),l=i(48873);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let r=t*t,s=i*(e*e-r)+r;return s<0?0:Math.sqrt(s)},d=[o.u,a.B,l.V];function c(t){let e=d.find(e=>e.test(t));if((0,s.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let s=0,o=0,a=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,l=2*i-r;s=n(l,r,t+1/3),o=n(l,r,t),a=n(l,r,t-1/3)}else s=o=a=i;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(i)),i}let p=(t,e)=>{let i=c(t),s=c(e);if(!i||!s)return u(t,e);let n={...i};return t=>(n.red=h(i.red,s.red,t),n.green=h(i.green,s.green,t),n.blue=h(i.blue,s.blue,t),n.alpha=(0,r.k)(i.alpha,s.alpha,t),a.B.transform(n))};var m=i(37237),f=i(54675),v=i(51688),g=i(14174);let y=new Set(["none","hidden"]);function x(t,e){return i=>(0,r.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:f.y.test(t)?p:S:Array.isArray(t)?P:"object"==typeof t?f.y.test(t)?p:T:u}function P(t,e){let i=[...t],r=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=s[e](t);return i}}function T(t,e){let i={...t,...e},r={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(r[s]=w(t[s])(t[s],e[s]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let S=(t,e)=>{let i=v.f.createTransformer(e),r=(0,v.V)(t),n=(0,v.V)(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return(0,s.$)(!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.`),u(t,e);if(y.has(t)&&!n.values.length||y.has(e)&&!r.values.length)return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return(0,m.F)(P(function(t,e){var i;let r=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][s[o]],l=null!=(i=t.values[a])?i:0;r[n]=l,s[o]++}return r}(r,n),n.values),i)};function b(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,r.k)(t,e,i):w(t)(t,e)}},13742:(t,e,i)=>{i.d(e,{p:()=>l});var r=i(51688),s=i(1345);let n=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(s.S)||[];if(!r)return t;let o=i.replace(r,""),a=+!!n.has(e);return r!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...r.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},14174:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>o});let r=t=>e=>"string"==typeof e&&e.startsWith(t),s=r("--"),n=r("var(--"),o=t=>!!n(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},14582:(t,e,i)=>{i.d(e,{N:()=>r});function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},15582:(t,e,i)=>{function r({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}i.d(e,{FY:()=>r,bS:()=>n,pA:()=>s})},16066:(t,e,i)=>{i.d(e,{J:()=>o});var r=i(51688),s=i(13742),n=i(22055);function o(t,e){let i=(0,n.D)(t);return i!==s.p&&(i=r.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},18844:(t,e,i)=>{i.d(e,{q:()=>r});let r=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r}},21325:(t,e,i)=>{i.d(e,{f:()=>n});var r=i(18844),s=i(12507);function n(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let o=(0,r.q)(0,e,n);t.push((0,s.k)(i,1,o))}}},22055:(t,e,i)=>{i.d(e,{D:()=>o});var r=i(54675),s=i(13742);let n={...i(98551).W,color:r.y,backgroundColor:r.y,outlineColor:r.y,fill:r.y,stroke:r.y,borderColor:r.y,borderTopColor:r.y,borderRightColor:r.y,borderBottomColor:r.y,borderLeftColor:r.y,filter:s.p,WebkitFilter:s.p},o=t=>n[t]},22059:(t,e,i)=>{i.d(e,{e:()=>r});let r=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"])},22356:(t,e,i)=>{i.d(e,{X4:()=>n,ai:()=>s,hs:()=>o});var r=i(68172);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},n={...s,transform:t=>(0,r.q)(0,1,t)},o={...s,default:1}}
1,23641:(t,e,i)=>{i.d(e,{OQ:()=>u,bt:()=>a});var r=i(72614),s=i(78608),n=i(92213),o=i(95080);let a={current:void 0};class l{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.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 s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},24236:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>s});let r=()=>({translate:0,scale:1,origin:0,originPoint:0}),s=()=>({x:r(),y:r()}),n=()=>({min:0,max:0}),o=()=>({x:n(),y:n()})},24846:(t,e,i)=>{i.d(e,{B:()=>r});let r="u">typeof window},24866:(t,e,i)=>{i.d(e,{Q:()=>r});let r=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},25708:(t,e,i)=>{i.d(e,{a:()=>r});let r=t=>Math.round(1e5*t)/1e5},26679:(t,e,i)=>{i.d(e,{l:()=>p});var r=i(24236),s=i(86911),n=i(57044),o=i(22055),a=i(52493),l=i(93869),u=i(22059),h=i(2421),d=i(58099),c=i(60825);class p extends s.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.f.has(e)){let t=(0,o.D)(e);return t&&t.default||0}return e=u.e.has(e)?e:(0,n.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,c.x)(t,e,i)}build(t,e,i){(0,l.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){(0,d.d)(t,e,i,r)}mount(t){this.isSVGTag=(0,h.n)(t.tagName),super.mount(t)}}},27405:(t,e,i)=>{i.d(e,{z:()=>n});var r=i(63959),s=i(52493);function n(t,{layout:e,layoutId:i}){return s.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!r.H[t]||"opacity"===t)}},27475:(t,e,i)=>{i.d(e,{O:()=>a,e:()=>o});var r=i(14582),s=i(78207),n=i(76134);function o(t){return(0,r.N)(t.animate)||n._.some(e=>(0,s.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},27962:(t,e,i)=>{i.d(e,{W:()=>r});let r={skipAnimations:!1,useManualTiming:!1}},28245:(t,e,i)=>{i.d(e,{d:()=>a});var r=i(12115),s=i(23641),n=i(24866),o=i(28819);function a(t){let e=(0,o.M)(()=>(0,s.OQ)(t)),{isStatic:i}=(0,r.useContext)(n.Q);if(i){let[,i]=(0,r.useState)(t);(0,r.useEffect)(()=>
1e.on("change",i),[])}return e}},28678:(t,e,i)=>{i.d(e,{e:()=>r});function r(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}},28819:(t,e,i)=>{i.d(e,{M:()=>s});var r=i(12115);function s(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},29065:(t,e,i)=>{i.d(e,{K:()=>f});var r=i(68298),s=i(44108),n=i(51688),o=i(16066);let a=new Set(["auto","none","0"]);var l=i(33453),u=i(5556),h=i(40344),d=i(14174);let c=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var p=i(34458),m=i(42908);class f extends l.h{constructor(t,e,i,r,s){super(t,e,i,r,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&(r=r.trim(),(0,d.p)(r))){let s=function t(e,i,r=1){(0,u.V)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,n]=function(t){let e=c.exec(t);if(!e)return[,];let[,i,r,s]=e;return[`--${null!=i?i:r}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return(0,h.i)(t)?parseFloat(t):t}return(0,d.p)(n)?t(n,i,r+1):n}(r,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!s.$.has(i)||2!==t.length)return;let[r,n]=t,o=(0,m.n)(r),a=(0,m.n)(n);if(o!==a)if((0,p.E4)(o)&&(0,p.E4)(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||(0,r.$)(s))&&i.push(e)}i.length&&function(t,e,i){let r,s=0;for(;s<t.length&&!r;){let e=t[s];"string"==typeof e&&!a.has(e)&&(0,n.V)(e).values.length&&(r=t[s]),s++}if(r&&i)for(let s of e)t[s]=(0,o.J)(i,r)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let n=r.length-1,o=r[n];r[n]=p.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},33453:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var r=i(34458),s=i(95080);let n=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(n).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,r.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,n.forEach(t=>t.complete()),n.clear()}function u(){n.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{constructor(t,e,i,r,s,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=s,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(n.add(this),o||(o=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){let s=null==r?void 0:r.get(),n=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let r=i.readValue(e,n);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=n),r&&void 0===s&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),n.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,n.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},33727:(t,e,i)=>{i.d(e,{i:()=>L});var r=i(79368),s=i(50387),n=i(38621),o=i(5556),a=i(18844),l=i(55913);function u(t,e){var i;let r;return(0,l.h)(t)?t[i=t.length,((e-0)%(r=i-0)+r)%r+0]:t}var h=i(61751),d=i(21325),c=i(63160);function p(t){return"object"==typeof t&&!Array.isArray(t)}function m(t,e,i,s){return"string"==typeof t&&p(e)?(0,r.KJ)(t,i,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function f(t,e,i,r){var s;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!=(s=r.get(e))?s:t}var v=i(75566),g=i(12507);function y(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function x(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function w(t,e){return e[t]||(e[t]=[]),e[t]}let P=t=>"number"==typeof t,T=t=>t.every(P);var S=i(90049),b=i(85775),A=i(99147),V=i(26679),M=i(815),k=i(24236),E=i(39473);class C extends E.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,k.ge)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function D(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,A.x)(t)?new V.l(e):new M.M(e);i.mount(t),S.C.set(t,i)}function R(t){let e=new C({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),S.C.set(t,e)}var j=i(94258);function F(t,e,i,r){let s=[];if((0,c.S)(t)||"number"==typeof t||"string"==typeof t&&!p(e))s.push((0,j.z)(t,p(e)&&e.default||e,i&&i.default||i));else{let n=m(t,e,r),a=n.length;(0,o.V)(!!a,"No valid elements provided.");for(let t=0;t<a;t++){let r=n[t],o=r instanceof Element?D:R;S.C.has(r)||o(r);let l=S.C.get(r),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,a)),s.push(...(0,b.$)(l,{...e,transition:u},{}))}}return s}let L=function(t,e,i){let l=[];if(Array.isArray(t)&&t.some(Array.isArray)){let i;i=[],(function(t,{defaultTransition:e={},...i}={},s,l){let p=e.duration||.3,P=new Map,S=new Map,b={},A=new Map,V=0,M=0,k=0;for(let i=0;i<t.length;i++){let a=t[i];if("string"==typeof a){A.set(a,M);continue}if(!Array.isArray(a)){A.set(a.name,f(M,a.at,V,A));continue}let[y,P,D={}]=a;void 0!==D.at&&(M=f(M,D.at,V,A));let R=0,j=(t,i,s,a=0,c=0)=>{var m;let f=Array.isArray(m=t)?m:[m],{delay:y=0,times:x=(0,h.Z)(f),type:w="keyframes",repeat:P,repeatType:S,repeatDelay:b=0,...A}=i,{ease:V=e.ease||"easeOut",duration:E}=i,C="function"==typeof y?y(a,c):y,D=f.length,j=(0,r.WH)(w)?w:null==l?void 0:l[w];if(D<=2&&j){let t=100;2===D&&T(f)&&(t=Math.abs(f[1]-f[0]));let e={...A};void 0!==E&&(e.duration=(0,n.f)(E));let i=(0,r.XG)(e,t,j);V=i.ease,E=i.duration}null!=E||(E=p);let F=M+C;1===x.length&&0===x[0]&&(x[1]=1);let L=x.length-f.length;if(L>0&&(0,d.f)(x,L),1===f.length&&f.unshift(null),P){(0,o.V)(P<20,"Repeat count too high, must be less than 20"),E*=P+1;let t=[...f],e=[...x],i=[...V=Array.isArray(V)?[...V]:[V]];for(let r=0;r<P;r++){f.push(...t);for(let s=0;s<t.length;s++)x.push(e[s]+(r+1)),V.push(0===s?"linear":u(i,s-1))}for(let t=0;t<x.length;t++)x[t]=x[t]/(P+1)}let B=F+E;
1!function(t,e,i,r,s,n){for(let e=0;e<t.length;e++){let i=t[e];i.at>s&&i.at<n&&((0,v.Ai)(t,i),e--)}for(let o=0;o<e.length;o++)t.push({value:e[o],at:(0,g.k)(s,n,r[o]),easing:u(i,o)})}(s,f,V,x,F,B),R=Math.max(C+E,R),k=Math.max(B,k)};if((0,c.S)(y))j(P,D,w("default",x(y,S)));else{let t=m(y,P,s,b),e=t.length;for(let i=0;i<e;i++){let r=x(t[i],S);for(let t in P){var E,C;j(P[t],(E=D,C=t,E&&E[C]?{...E,...E[C]}:{...E}),w(t,r),i,e)}}}V=M,M+=R}return S.forEach((t,r)=>{for(let s in t){let n=t[s];n.sort(y);let o=[],l=[],u=[];for(let t=0;t<n.length;t++){let{at:e,value:i,easing:r}=n[t];o.push(i),l.push((0,a.q)(0,k,e)),u.push(r||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),P.has(r)||P.set(r,{keyframes:{},transition:{}});let h=P.get(r);h.keyframes[s]=o,h.transition[s]={...e,duration:k,ease:u,times:l,...i}}}),P})(t,e,void 0,{spring:s.o}).forEach(({keyframes:t,transition:e},r)=>{i.push(...F(r,t,e))}),l=i}else l=F(t,e,i,void 0);return new r.P6(l)}},34458:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>c,W9:()=>d});var r=i(22356),s=i(2829),n=i(52493);let o=t=>t===r.ai||t===s.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return a(s[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=n.U.filter(t=>!u.has(t));function d(t){let e=[];return h.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:l(4,13),y:l(5,14)};c.translateX=c.x,c.translateY=c.y},37237:(t,e,i)=>{i.d(e,{F:()=>s});let r=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(r)},38621:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>r});let r=t=>1e3*t,s=t=>t/1e3},39189:(t,e,i)=>{i.d(e,{U:()=>n});var r=i(24846),s=i(48698);function n(){if(s.r.current=!0,r.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addListener(e),e()}else s.O.current=!1}},39473:(t,e,i)=>{i.d(e,{B:()=>V});var r=i(72614),s=i(80304),n=i(24236),o=i(40344),a=i(68298),l=i(39189),u=i(48698),h=i(78608),d=i(23641),c=i(51688),p=i(63160),m=i(16066),f=i(54675),v=i(42908),g=i(75117);let y=[...v.T,f.y,c.f];var x=i(52493),w=i(90049),P=i(27475),T=i(33453),S=i(62537),b=i(95080);let A=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=T.h,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=r.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,b.Gt.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=(0,P.e)(e),this.isVariantNode=(0,P.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&(0,p.S)(e)&&e.set(l[t],!1)}}mount(t){this.current=t,w.C.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),u.r.current||(0,l.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||u.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in w.C.delete(this.current),this.projection&&this.projection.unmount(),(0,b.WG)(this.notifyUpdate),(0,b.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=x.f.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&b.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n(),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 s.B){let e=s.B[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,n.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<A.length;e++){let i=A[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let s=e[r],n=i[r];if((0,p.S)(s))t.addValue(r,s);else if((0,p.S)(n))t.addValue(r,(0,d.OQ)(s,{owner:t}));else if(n!==s)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,(0,d.OQ)(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,d.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){if("string"==typeof r&&((0,o.i)(r)||(0,a.$)(r)))r=parseFloat(r);else{let i;i=r,!y.find((0,g.w)(i))&&c.f.test(e)&&(r=(0,m.J)(t,e))}this.setBaseTarget(t,(0,p.S)(r)?r.get():r)}return(0,p.S)(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let s=(0,S.a)(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(r&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,p.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new h.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},39600:(t,e,i)=>{i.d(e,{po:()=>n,tn:()=>a,yT:()=>o});var r=i(57957),s=i(80500);let n=t=>1-Math.sin(Math.acos(t)),o=(0,s.G)(n),a=(0,r.V)(n)},40344:(t,e,i)=>{i.d(e,{i:()=>r});let r=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},42569:(t,e,i)=>{i.d(e,{B:()=>s,K:()=>n});var r=i(90516);let s=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),n=t=>(0,r.p)(t)?t[t.length-1]||0:t},42908:(t,e,i)=>{i.d(e,{T:()=>
1o,n:()=>a});var r=i(22356),s=i(2829),n=i(75117);let o=[r.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,n.w)(t))},44108:(t,e,i)=>{i.d(e,{$:()=>r});let r=new Set(["width","height","top","left","right","bottom",...i(52493).U])},45701:(t,e,i)=>{i.d(e,{B:()=>l});var r=i(68172),s=i(22356),n=i(25708),o=i(77744);let a={...s.ai,transform:t=>Math.round((0,r.q)(0,255,t))},l={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(i)+", "+(0,n.a)(s.X4.transform(r))+")"}},46035:(t,e,i)=>{i.d(e,{f:()=>J});var r=i(79368),s=i(38621),n=i(95080),o=i(27962),a=i(72025);let l=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function u(t,e,i,r){return t===e&&i===r?a.l:s=>0===s||1===s?s:l(function(t,e,i,r,s){let n,o,a=0;do(n=l(o=e+(i-e)/2,r,s)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12);return o}(s,0,1,t,i),e,r)}var h=i(57957),d=i(80500);let c=u(.33,1.53,.69,.99),p=(0,d.G)(c),m=(0,h.V)(p),f=t=>(t*=2)<1?.5*p(t):.5*(2-Math.pow(2,-10*(t-1)));var v=i(39600),g=i(29065),y=i(72614),x=i(33453),w=i(5556),P=i(51688);let T=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(P.f.test(t)||"0"===t)&&!t.startsWith("url(")),S=t=>null!==t;function b(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(S),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return n&&void 0!==r?r:s[n]}class A{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=y.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,x.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=y.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=T(n,e),l=T(o,e);return(0,w.$)(a===l,`You are trying to animate ${e} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,r.WH)(i))&&s)}(t,i,s,n))if(o)this.options.duration=0;else{l&&l(b(t,this.options,e)),a&&a(),this.resolveFinishedPromise();return}let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}var V=i(68172),M=i(13113),k=i(37237),E=i(50387),C=i(73346);function D({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/r),x=t=>g+y(t),w=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},P=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=(0,E.o)({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:(0,C.Y)(x,t,m.value),damping:s,stiffness:n,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}let R=u(.42,0,1,1),j=u(0,0,.58,1),F=u(.42,0,.58,1);var L=i(55913);let B={linear:a.l,easeIn:R,easeInOut:F,easeOut:j,circIn:v.po,circInOut:v.tn,circOut:v.yT,backIn:p,backInOut:m,backOut:c,anticipate:f},O=t=>{if((0,r.DW)(t)){(0,w.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,s]=t;
1return u(e,i,r,s)}return"string"==typeof t?((0,w.V)(void 0!==B[t],`Invalid easing type '${t}'`),B[t]):t};var U=i(80180),I=i(61751);function $({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var s;let n=(0,L.h)(r)?r.map(O):O(r),o={done:!1,value:e[0]},a=(s=i&&i.length===e.length?i:(0,I.Z)(e),s.map(e=>e*t)),l=(0,U.G)(a,e,{ease:Array.isArray(n)?n:e.map(()=>n||F).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let W=t=>{let e=({timestamp:e})=>t(e);return{start:()=>n.Gt.update(e,!0),stop:()=>(0,n.WG)(e),now:()=>n.uv.isProcessing?n.uv.timestamp:y.k.now()}},N={decay:D,inertia:D,tween:$,keyframes:$,spring:E.o},G=t=>t/100;class K extends A{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:r,keyframes:s}=this.options,n=(null==r?void 0:r.KeyframeResolver)||x.h,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(s,o,e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:s="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=(0,r.WH)(s)?s:N[s]||$;u!==$&&"number"!=typeof t[0]&&(e=(0,k.F)(G,(0,M.j)(t[0],t[1])),t=[0,100]);let h=u({...this.options,keyframes:t});"mirror"===a&&(i=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,r.tu)(h));let{calculatedDuration:d}=h,c=d+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(n+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:s,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=n)),y=(0,V.q)(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==r&&(w.value=b(a,this.options,r)),f&&f(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=W,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let q=new Set(["opacity","clipPath","filter","transform"]),H=(0,i(96291).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),X={anticipate:f,backInOut:m,circInOut:v.tn};class z extends A{constructor(t){super(t);const{name:e,motionValue:i,element:r,keyframes:s}=this.options;this.resolver=new g.K(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:n,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,r.nL)()&&o in X&&(o=X[o]),i=this.options,(0,r.WH)(i.type)||"spring"===i.type||!(0,r.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:r,element:l,...u}=this.options,h=function(t,e){let i=new K({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},s=[],n=0;for(;!r.done&&n<2e4;)s.push((r=i.sample(n)).value),n+=10;return{times:void 0,keyframes:s,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,n=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:s=0,duration:n=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){let h={[e]:i};u&&(h.offset=u);let d=(0,r.TU)(l,n);return Array.isArray(d)&&(h.easing=d),t.animate(h,{delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:s,times:n,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,r.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set(b(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:n,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,s.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,s.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return a.l;let{animation:i}=e;(0,r.vG)(i,t)}else this.pendingTimeline=t;return a.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new K({...h,keyframes:i,duration:r,type:n,ease:o,times:a,isGenerator:!0}),c=(0,s.f)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:s,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return H()&&i&&q.has(i)&&!a&&!l&&!r&&"mirror"!==s&&0!==n&&"inertia"!==o}}var Y=i(52493);let _={type:"spring",stiffness:500,damping:25,restSpeed:10},Q={type:"keyframes",duration:.8},Z={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J=(t,e,i,a={},l,u)=>h=>{let d=(0,r.rU)(a,t)||{},c=d.delay||a.delay||0,{elapsed:p=0}=a;p-=(0,s.f)(c);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{h(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:u?void 0:l};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(d)&&(m={...m,...((t,{keyframes:e})=>e.length>2?Q:Y.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:_:Z)(t,m)}),m.duration&&(m.duration=(0,s.f)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,s.f)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let f=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0===m.delay&&(f=!0)),o.W.skipAnimations&&(f=!0,m.duration=0,m.delay=0),f&&!u&&void 0!==e.get()){let t=b(m.keyframes,d);if(void 0!==t)return n.Gt.update(()=>{m.onUpdate(t),m.onComplete()}),new r.P6([])}return!u&&z.supports(m)?new z(m):new K(m)}},48698:(t,e,i)=>{i.d(e,{O:()=>r,r:()=>s});let r={current:null},s={current:!1}},48873:(t,e,i)=>{i.d(e,{V:()=>a});var r=i(22356),s=i(2829),n=i(25708),o=i(77744);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,n.a)(e))+", "+s.KN.transform((0,n.a)(i))+", "+(0,n.a)(r.X4.transform(o))+")"}},50387:(t,e,i)=>{i.d(e,{o:()=>v});var r=i(79368),s=i(38621),n=i(68172),o=i(73346);let a=.01,l=2,u=.005,h=.5;var d=i(5556);function c(t,e){return t*Math.sqrt(1-e*e)}let p=["duration","bounce"],m=["stiffness","damping","mass"];function f(t,e){return e.some(e=>void 0!==t[e])}function v(t=.3,e=.3){let i,g="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:y,restDelta:x}=g,w=g.keyframes[0],P=g.keyframes[g.keyframes.length-1],T={done:!1,value:w},{stiffness:S,damping:b,mass:A,duration:V,velocity:M,isResolvedFromDuration:k}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!f(t,m)&&f(t,p))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*(0,n.q)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let o,a;(0,d.$)(t<=(0,s.f)(10),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,n.q)(.05,1,l),t=(0,n.q)(.01,10,(0,s.X)(t)),l<1?(o=e=>{let r=e*l,s=r*t;return .001-(r-i)/c(e,l)*Math.exp(-s)},a=e=>{let r=e*l*t,s=Math.pow(l,2)*Math.pow(e,2)*t,n=Math.exp(-r),a=c(Math.pow(e,2),l);return(r*i+i-s)*n*(-o(e)+.001>0?-1:1)/a}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let u=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(o,a,5/t);if(t=(0,s.f)(t),isNaN(u))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...g,velocity:-(0,s.X)(g.velocity||0)}),E=M||0,C=b/(2*Math.sqrt(S*A)),D=P-w,R=(0,s.X)(Math.sqrt(S/A)),j=5>Math.abs(D);if(y||(y=j?a:l),x||(x=j?u:h),C<1){let t=c(R,C);i=e=>P-Math.exp(-C*R*e)*((E+C*R*D)/t*Math.sin(t*e)+D*Math.cos(t*e))}else if(1===C)i=t=>P-Math.exp(-R*t)*(D+(E+R*D)*t);else{let t=R*Math.sqrt(C*C-1);i=e=>{let i=Math.exp(-C*R*e),r=Math.min(t*e,300);return P-i*((E+C*R*D)*Math.sinh(r)+t*D*Math.cosh(r))/t}}let F={calculatedDuration:k&&V||null,next:t=>{let e=i(t);if(k)T.done=t>=V;else{let r=0;C<1&&(r=0===t?(0,s.f)(E):(0,o.Y)(i,t,e));let n=Math.abs(P-e)<=x;T.done=Math.abs(r)<=y&&n}return T.value=T.done?P:e,T},toString:()=>{let t=Math.min((0,r.tu)(F),r.YE),e=(0,r.KZ)(e=>F.next(t*e).value,t,30);return t+"ms "+e}};return F}},51688:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var r=i(54675);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var n=i(1345),o=i(25708);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]}
1,n=[],o=0,h=e.replace(u,t=>(r.y.test(t)?(s.color.push(o),n.push(l),i.push(r.y.parse(t))):t.startsWith("var(")?(s.var.push(o),n.push("var"),i.push(t)):(s.number.push(o),n.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:s,types:n}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),s=e.length;return t=>{let n="";for(let u=0;u<s;u++)if(n+=e[u],void 0!==t[u]){let e=i[u];e===a?n+=(0,o.a)(t[u]):e===l?n+=r.y.transform(t[u]):n+=t[u]}return n}}let p=t=>"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(n.S))?void 0:e.length)||0)+((null==(i=t.match(s))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},52493:(t,e,i)=>{i.d(e,{U:()=>r,f:()=>s});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(r)},54675:(t,e,i)=>{i.d(e,{y:()=>o});var r=i(90856),s=i(48873),n=i(45701);let o={test:t=>n.B.test(t)||r.u.test(t)||s.V.test(t),parse:t=>n.B.test(t)?n.B.parse(t):s.V.test(t)?s.V.parse(t):r.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?n.B.transform(t):s.V.transform(t)}},55913:(t,e,i)=>{i.d(e,{h:()=>r});let r=t=>Array.isArray(t)&&"number"!=typeof t[0]},56240:(t,e,i)=>{i.d(e,{O:()=>u});var r=i(14174);let s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;
1var n=i(98551),o=i(52493);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o.U.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(o.f.has(t)){c=!0;continue}if((0,r.j)(t)){h[t]=i;continue}{let e=s(i,n.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let r="",u=!0;for(let h=0;h<l;h++){let l=o.U[h],d=t[l];if(void 0===d)continue;let c=!0;if(!(c="number"==typeof d?d===+!!l.startsWith("scale"):0===parseFloat(d))||i){let t=s(d,n.W[l]);if(!c){u=!1;let e=a[l]||l;r+=`${e}(${t}) `}i&&(e[l]=t)}}return r=r.trim(),i?r=i(e,u?"":r):u&&(r="none"),r}(e,t.transform,i):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=d;u.transformOrigin=`${t} ${e} ${i}`}}},57044:(t,e,i)=>{i.d(e,{I:()=>r});let r=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},57957:(t,e,i)=>{i.d(e,{V:()=>r});let r=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},58099:(t,e,i)=>{i.d(e,{d:()=>o});var r=i(57044),s=i(28678),n=i(22059);function o(t,e,i,o){for(let i in(0,s.e)(t,e,void 0,o),e.attrs)t.setAttribute(n.e.has(i)?i:(0,r.I)(i),e.attrs[i])}},60825:(t,e,i)=>{i.d(e,{x:()=>o});var r=i(63160),s=i(52493),n=i(7128);function o(t,e,i){let o=(0,n.x)(t,e,i);for(let i in t)((0,r.S)(t[i])||(0,r.S)(e[i]))&&(o[-1!==s.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},61751:(t,e,i)=>{i.d(e,{Z:()=>s});var r=i(21325);function s(t){let e=[0];return(0,r.f)(e,t.length-1),e}},62537:(t,e,i)=>{function r(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,s){if("function"==typeof e){let[n,o]=r(s);e=e(void 0!==i?i:t.custom,n,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,o]=r(s);e=e(void 0!==i?i:t.custom,n,o)}return e}i.d(e,{a:()=>s})},63160:(t,e,i)=>{i.d(e,{S:()=>r});let r=t=>!!(t&&t.getVelocity)},63959:(t,e,i)=>{i.d(e,{$:()=>s,H:()=>r});let r={};function s(t){Object.assign(r,t)}},68172:(t,e,i)=>{i.d(e,{q:()=>r});let r=(t,e,i)=>i>e?e:i<t?t:i},68298:(t,e,i)=>{i.d(e,{$:()=>r});let r=t=>/^0[^.\s]+$/u.test(t)},70711:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>n});var r=i(15582),s=i(79953);function n(t,e){return(0,r.FY)((0,r.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let r=n(t,i),{scroll:o}=e;return o&&((0,s.Ql)(r.x,o.offset.x),(0,s.Ql)(r.y,o.offset.y)),r}},71292:(t,e,i)=>{function r(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:i}){return!r(t)||!r(e)||!r(i)}function n(t){return s(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>n,vF:()=>o,vk:()=>s})},72025:(t,e,i)=>{i.d(e,{l:()=>r});let r=t=>t},72252:(t,e,i)=>{i.d(e,{P:()=>s});var r=i(88618);function s(t){return t.props[r.n]}},72614:(t,e,i)=>{let r;i.d(e,{k:()=>a});var s=i(27962),n=i(95080);function o(){r=void 0}let a={now:()=>(void 0===r&&a.set(n.uv.isProcessing||s.W.useManualTiming?n.uv.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(o)}}},73321:(t,e,i)=>{var r=i(74645);i.o(r,"usePathname")&&i.d(e,{usePathname:function(){return r.usePathname}}),i.o(r,"useRouter")&&i.d(e,{useRouter:function(){return r.useRouter}}),i.o(r,"useSearchParams")&&i.d(e,{useSearchParams:function(){return r.useSearchParams}})},73346:(t,e,i)=>{i.d(e,{Y:()=>s});var r=i(92213);function s(t,e,i){let s=Math.max(e-5,0);return(0,r.f)(i-t(s),e-s)}},75117:(t,e,i)=>{i.d(e,{w:()=>r});let r=t=>e=>e.test(t)},75566:(t,e,i)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>r})},76134:(t,e,i)=>{i.d(e,{U:()=>r,_:()=>s});let r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...r]},77744:(t,e,i)=>{i.d(e,{$:()=>n,q:()=>o});var r=i(1345);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,n=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,o,a,l]=s.match(r.S);return{[t]:parseFloat(n),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},78207:(t,e,i)=>{i.d(e,{w:()=>r});function r(t){return"string"==typeof t||Array.isArray(t)}},78608:(t,e,i)=>{i.d(e,{v:()=>s});var r=i(75566);class s{constructor(){this.subscriptions=[]}add(t){return(0,r.Kq)(this.subscriptions,t),()=>(0,r.Ai)(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},79368:(t,e,i)=>{let r;i.d(e,{P6:()=>l,vG:()=>f,tu:()=>d,XG:()=>p,KZ:()=>w,rU:()=>u,PT:()=>k,DW:()=>v,WH:()=>m,Mc:()=>C,yL:()=>P,TU:()=>function t(e,i){if(e)return"function"==typeof e&&y()?w(e,i):v(e)?T(e):Array.isArray(e)?e.map(e=>t(e,i)||S.easeOut):S[e]},YE:()=>h,c$:()=>B,KJ:()=>A,Wp:()=>O,nL:()=>y});var s,n=i(96291);let o=(0,n.p)(()=>void 0!==window.ScrollTimeline);class a{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>o()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class l extends a{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function u(t,e){return t?t[e]||t.default||t:void 0}let h=2e4;function d(t){let e=0,i=t.next(e);for(;!i.done&&e<h;)e+=50,i=t.next(e);return e>=h?1/0:e}var c=i(38621);function p(t,e=100,i){let r=i({...t,keyframes:[0,e]}),s=Math.min(d(r),h);return{type:"keyframes",ease:t=>r.next(s*t).value/e,duration:(0,c.X)(s)}}function m(t){return"function"==typeof t}function f(t,e){t.timeline=e,t.onfinish=null}let v=t=>Array.isArray(t)&&"number"==typeof t[0],g,y=(s=()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},r=(0,n.p)(s),()=>{var t;return null!=(t=g)?t:r()});var x=i(18844);let w=(t,e,i=10)=>{let r="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)r+=t((0,x.q)(0,s-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`};function P(t){return!!("function"==typeof t&&y()||!t||"string"==typeof t&&(t in S||y())||v(t)||Array.isArray(t)&&t.every(P))}let T=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,S={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:T([0,.65,.55,1]),circOut:T([.55,0,1,.45]),backIn:T([.31,.01,.66,-.59]),backOut:T([.33,1.53,.69,.99])},b={x:!1,y:!1};function A(t,e,i){var r;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=null!=(r=null==i?void 0:i[t])?r:s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}function V(t,e){let i=A(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function M(t){return e=>{"touch"===e.pointerType||b.x||b.y||t(e)}}function k(t,e,i={}){let[r,s,n]=V(t,i),o=M(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let n=M(t=>{r(t),i.removeEventListener("pointerleave",n)});i.addEventListener("pointerleave",n,s)});return r.forEach(t=>{t.addEventListener("pointerenter",o,s)}),n}let E=(t,e)=>!!e&&(t===e||E(t,e.parentElement)),C=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,D=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),R=new WeakSet;function j(t){return e=>{"Enter"===e.key&&t(e)}}function F(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function L(t){return C(t)&&!(b.x||b.y)}function B(t,e,i={}){let[r,s,n]=V(t,i),o=t=>{let r=t.currentTarget;if(!L(t)||R.has(r))return;R.add(r);let n=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),L(t)&&R.has(r)&&(R.delete(r),"function"==typeof n&&n(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||E(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return r.forEach(t=>{D.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=j(()=>{if(R.has(i))return;F(i,"down");let t=j(()=>{F(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>F(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,s),s)}),n}function O(t){if("x"===t||"y"===t)if(b[t])return null;else return b[t]=!0,()=>{b[t]=!1};return b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1})}i(72025)},79953:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>n,o4:()=>l});var r=i(12507),s=i(71292);function n(t,e,i){return i+e*(t-i)}function o(t,e,i,r,s){return void 0!==s&&(t=r+s*(t-r)),r+i*(t-r)+e}function a(t,e=0,i=1,r,s){t.min=o(t.min,e,i,r,s),t.max=o(t.max,e,i,r,s)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,r=!1){let n,o,a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(n=i[u]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&c(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),r&&(0,s.HD)(n.latestValues)&&c(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,s,n=.5){let o=(0,r.k)(t.min,t.max,n);a(t,e,i,o,s)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},80180:(t,e,i)=>{i.d(e,{G:()=>u});var r=i(72025),s=i(5556),n=i(18844),o=i(68172),a=i(13113),l=i(37237);function u(t,e,{clamp:i=!0,ease:h,mixer:d}={}){let c=t.length;if((0,s.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let m=function(t,e,i){let s=[],n=i||a.j,o=t.length-1;for(let i=0;i<o;i++){let o=n(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||r.l:e;o=(0,l.F)(t,o)}s.push(o)}return s}(e,h,d),f=m.length,v=i=>{if(p&&i<t[0])return e[0];let r=0;if(f>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let s=(0,n.q)(t[r],t[r+1],i);return m[r](s)};return i?e=>v((0,o.q)(t[0],t[c-1],e)):v}},80304:(t,e,i)=>{i.d(e,{B:()=>s});let r={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"]},s={};for(let t in r)s[t]={isEnabled:e=>r[t].some(t=>!!e[t])}},80500:(t,e,i)=>{i.d(e,{G:()=>r});let r=t=>e=>1-t(1-e)},85775:(t,e,i)=>{i.d(e,{$:()=>c});var r=i(79368),s=i(44108),n=i(42569),o=i(23641),a=i(5469),l=i(99031),u=i(72252),h=i(46035),d=i(95080);function c(t,e,{delay:i=0,transitionOverride:p,type:m}={}){var f;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;p&&(v=p);let x=[],w=m&&t.animationState&&t.animationState.getState()[m];for(let e in y){let n=t.getValue(e,null!=(f=t.latestValues[e])?f:null),o=y[e];if(void 0===o||w&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(w,e))continue;let a={delay:i,...(0,r.rU)(v||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,u.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,d.Gt);null!==t&&(a.startTime=t,c=!0)}}(0,l.g)(t,e),n.start((0,h.f)(e,n,o,t.shouldReduceMotion&&s.$.has(e)?{type:!1}:a,t,c));let p=n.animation;p&&x.push(p)}return g&&Promise.all(x).then(()=>{d.Gt.update(()=>{g&&function(t,e){let{transitionEnd:i={},transition:r={},...s}=(0,a.K)(t,e)||{};for(let e in s={...s,...i}){let i=(0,n.K)(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.OQ)(i))}}(t,g)})}),x}},86911:(t,e,i)=>{i.d(e,{b:()=>o});var r=i(39473),s=i(29065),n=i(63160);class o extends r.B{constructor(){super(...arguments),this.KeyframeResolver=s.K}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;(0,n.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},88618:(t,e,i)=>{i.d(e,{n:()=>r});let r="data-"+(0,i(57044).I)("framerAppearId")},90049:(t,e,i)=>{i.d(e,{C:()=>r});let r=new WeakMap},90425:(t,e,i)=>{i.d(e,{A:()=>l});var r=i(12115);let s=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:i=2,absoluteStrokeWidth:n,className:a="",children:l,iconNode:u,...h},d)=>(0,r.createElement)("svg",{ref:d,...o,width:e,height:e,stroke:t,strokeWidth:n?24*Number(i)/Number(e):i,className:s("lucide",a),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,e])=>(0,r.createElement)(t,e)),...Array.isArray(l)?l:[l]])),l=(t,e)=>{let i=(0,r.forwardRef)(({className:i,...o},l)=>(0,r.createElement)(a,{ref:l,iconNode:e,className:s(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,i),...o}));return i.displayName=n(t),i}},90516:(t,e,i)=>{i.d(e,{p:()=>r});let r=t=>Array.isArray(t)},90856:(t,e,i)=>{i.d(e,{u:()=>s});var r=i(45701);let s={test:(0,i(77744).$)("#"),parse:function(t){let e="",i="",r="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alph
1a:s?parseInt(s,16)/255:1}},transform:r.B.transform}},92213:(t,e,i)=>{i.d(e,{f:()=>r});function r(t,e){return e?1e3/e*t:0}},92564:(t,e,i)=>{i.d(e,{A:()=>r});let r=(0,i(90425).A)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])},93869:(t,e,i)=>{i.d(e,{B:()=>l});var r=i(56240),s=i(2829);let n={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,i){return"string"==typeof t?t:s.px.transform(e+i*t)}function l(t,{attrX:e,attrY:i,attrScale:u,originX:h,originY:d,pathLength:c,pathSpacing:p=1,pathOffset:m=0,...f},v,g){let y,x;if((0,r.O)(t,f,g),v){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:w,style:P,dimensions:T}=t;w.transform&&(T&&(P.transform=w.transform),delete w.transform),T&&(void 0!==h||void 0!==d||P.transform)&&(y=a(void 0!==h?h:.5,T.x,T.width),x=a(void 0!==d?d:.5,T.y,T.height),P.transformOrigin=`${y} ${x}`),void 0!==e&&(w.x=e),void 0!==i&&(w.y=i),void 0!==u&&(w.scale=u),void 0!==c&&function(t,e,i=1,r=0,a=!0){t.pathLength=1;let l=a?n:o;t[l.offset]=s.px.transform(-r);let u=s.px.transform(e),h=s.px.transform(i);t[l.array]=`${u} ${h}`}(w,c,p,m,!1)}},94258:(t,e,i)=>{i.d(e,{z:()=>o});var r=i(23641),s=i(63160),n=i(46035);function o(t,e,i){let o=(0,s.S)(t)?t:(0,r.OQ)(t);return o.start((0,n.f)("",o,e,i)),o.animation}},95080:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>a,WG:()=>n,uv:()=>o});var r=i(72025);let{schedule:s,cancel:n,state:o,steps:a}=(0,i(11443).I)("u">typeof requestAnimationFrame?requestAnimationFrame:r.l,!0)},96291:(t,e,i)=>{i.d(e,{p:()=>r});function r(t){let e;return()=>(void 0===e&&(e=t()),e)}},96909:(t,e,i)=>{i.d(e,{A:()=>r});let r=(0,i(90425).A)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]])},98551:(t,e,i)=>{i.d(e,{W:()=>l});var r=i(22356),s=i(2829);let n={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px},o={rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:r.hs,scaleX:r.hs,scaleY:r.hs,scaleZ:r.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:r.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={...r.ai,transform:Math.round},l={...n,...o,zIndex:a,size:s.px,fillOpacity:r.X4,strokeOpacity:r.X4,numOctaves:a}},99031:(t,e,i)=>{i.d(e,{g:()=>s});var r=i(63160);function s(t,e){let i=t.getValue("willChange");if((0,r.S)(i)&&i.add)return i.add(e)}},99147:(t,e,i)=>{i.d(e,{x:()=>r});function r(t){return t instanceof SVGElement&&"svg"!==t.tagName}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.