1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,821476,231178,674008,t=>{"use strict";var e=t.i(271645);let i=(0,e.createContext)(null);t.s(["PresenceContext",0,i],821476);let s=(0,e.createContext)({});t.s(["LayoutGroupContext",0,s],231178);let r=t.i(292936).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,r],674008)},846932,t=>{"use strict";t.i(247167);var e,i,s,r=t.i(44974),n=t.i(377894);function o(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}var a=t.i(342531),l=t.i(870452),h=t.i(789607),u=t.i(306327);function c(t,e,i={}){var s;let r=(0,l.resolveVariant)(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all((0,u.animateTarget)(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(d).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(c(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,o,a,i)}:()=>Promise.resolve(),{when:h}=n;if(!h)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===h?[o,a]:[a,o];return t().then(()=>e())}}function d(t,e){return t.sortNodePosition(e)}let m=h.variantProps.length,p=[...h.variantPriorityOrder].reverse(),f=h.variantPriorityOrder.length;function v(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}class y{constructor(t){this.isMounted=!1,this.node=t}update(){}}let x=0;var P=t.i(742510),T=t.i(783164);let A=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function S(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}var D=t.i(285);function w(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function E(t,e,i,s){return w(t,e,t=>A(t)&&i(t,S(t)),s)}var b=t.i(500459);let C=(t,e)=>Math.abs(t-e);var L=t.i(28327);class R{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!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=j(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(C(t.x,e.x)**2+C(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:o}=L.frameData;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=V(e,this.transformPagePoint),L.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=j("pointercancel"===t.type?this.lastMoveEventInfo:V(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!A(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const n=V(S(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=L.frameData;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,j(n,this.history)),this.removeListeners=(0,b.pipe)(E(this.contextWindow,"pointermove",this.handlePointerMove),E(this.contextWindow,"pointerup",this.handlePointerUp),E(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,L.cancelFrame)(this.updatePoint)}}function V(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 j({point:t},e){return{point:t,delta:B(t,M(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,s=M(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,D.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let r=(0,D.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===r)return{x:0,y:0};let n={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function M(t){return t[t.length-1]}function k(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let F=k("dragHorizontal"),U=k("dragVertical");function O(t){let e=!1;if("y"===t)e=U();else if("x"===t)e=F();else{let t=F(),i=U();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function I(){let t=O(!0);return!t||(t(),!1)}function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var W=t.i(738700),G=t.i(870014);function H(t){return t.max-t.min}function $(t,e,i,s=.5){t.origin=s,t.originPoint=(0,G.mixNumber)(e.min,e.max,t.origin),t.scale=H(i)/H(e),t.translate=(0,G.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function z(t,e,i,s){$(t.x,e.x,i.x,s?s.originX:void 0),$(t.y,e.y,i.y,s?s.originY:void 0)}function Y(t,e,i){t.min=i.min+e.min,t.max=t.min+H(e)}function _(t,e,i){t.min=e.min-i.min,t.max=t.min+H(e)}function X(t,e,i){_(t.x,e.x,i.x),_(t.y,e.y,i.y)}var K=t.i(974780);function q(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 Z(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function J(t,e,i){return{min:Q(t,e),max:Q(t,i)}}function Q(t,e){return"number"==typeof t?t:t[e]||0}var tt=t.i(181699);function te(t){return[t("x"),t("y")]}var ti=t.i(245504),ts=t.i(149587),tr=t.i(942308),tn=t.i(982363);let to=({current:t})=>t?t.ownerDocument.defaultView:null;var ta=t.i(593521);let tl=new WeakMap;class th{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tt.createBox)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(S(t,"page").point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=O(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),te(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=H(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&L.frame.postRender(()=>r(t,e)),(0,ta.addValueToWillChange)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>te(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 R(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:to(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&L.frame.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tu(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,G.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,G.mixNumber)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:q(t.x,i,r),y:q(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:J(t,"left","right"),y:J(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&te(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!N(e))return!1;let s=e.current;(0,T.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=(0,ti.measurePageBox)(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:Z(t.x,n.x),y:Z(t.y,n.y)});if(i){let t=i((0,ts.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,ts.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(te(o=>{if(!tu(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ta.addValueToWillChange)(this.visualElement,t),i.start((0,tn.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){te(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){te(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){te(e=>{let{drag:i}=this.getProps();if(!tu(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-(0,G.mixNumber)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!N(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};te(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,o,a,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,o=H(i),(a=H(r))>o?n=(0,W.progress)(r.min,r.max-o,i.min):o>a&&(n=(0,W.progress)(i.min,i.max-a,r.min)),(0,K.clamp)(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),te(e=>{if(!tu(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set((0,G.mixNumber)(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;tl.set(this.visualElement,this);let t=E(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();N(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),L.frame.read(e);let r=w(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(te(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function tu(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let tc=t=>(e,i)=>{t&&L.frame.postRender(()=>t(e,i))};var td=t.i(843476),tm=t.i(271645),tp=t.i(821476),tf=t.i(231178);let tv=(0,tm.createContext)({}),tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={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=ty(t,e.target.x),s=ty(t,e.target.y);return`${i}% ${s}%`}};var tP=t.i(102254),tT=t.i(852383);let{schedule:tA,cancel:tS}=(0,t.i(4840).createRenderBatcher)(queueMicrotask,!1);class tD extends tm.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;(0,tT.addScaleCorrector)(tE),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||L.frame.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tA.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tw(t){let[e,i]=function(){let t=(0,tm.useContext)(tp.PresenceContext);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,tm.useId)();(0,tm.useEffect)(()=>s(r),[]);let n=(0,tm.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,n]:[!0]}(),s=(0,tm.useContext)(tf.LayoutGroupContext);return(0,td.jsx)(tD,{...t,layoutGroup:s,switchLayoutGroup:(0,tm.useContext)(tv),isPresent:e,safeToRemove:i})}let tE={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tP.complex.parse(t);if(s.length>5)return t;let r=tP.complex.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,G.mixNumber)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};var tb=t.i(274015),tC=t.i(268638);let tL=["TopLeft","TopRight","BottomLeft","BottomRight"],tR=tL.length,tV=t=>"string"==typeof t?parseFloat(t):t,tB=t=>"number"==typeof t||tr.px.test(t);function tj(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tM=tF(0,.5,tC.circOut),tk=tF(.5,.95,P.noop);function tF(t,e,i){return s=>s<t?0:s>e?1:i((0,W.progress)(t,e,s))}function tU(t,e){t.min=e.min,t.max=e.max}function tO(t,e){tU(t.x,e.x),tU(t.y,e.y)}function tI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tN=t.i(789234);function tW(t,e,i,s,r){return t-=e,t=(0,tN.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,tN.scalePoint)(t,1/r,s)),t}function tG(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(tr.percent.test(e)&&(e=parseFloat(e),e=(0,G.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,G.mixNumber)(n.min,n.max,s);t===n&&(a-=e),t.min=tW(t.min,e,i,a,r),t.max=tW(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let tH=["x","scaleX","originX"],t$=["y","scaleY","originY"];function tz(t,e,i,s){tG(t.x,e,tH,i?i.x:void 0,s?s.x:void 0),tG(t.y,e,t$,i?i.y:void 0,s?s.y:void 0)}var tY=t.i(591591);function t_(t){return 0===t.translate&&1===t.scale}function tX(t){return t_(t.x)&&t_(t.y)}function tK(t,e){return t.min===e.min&&t.max===e.max}function tq(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tZ(t,e){return tq(t.x,e.x)&&tq(t.y,e.y)}function tJ(t){return H(t.x)/H(t.y)}function tQ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var t0=t.i(803668);class t1{constructor(){this.members=[]}add(t){(0,t0.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,t0.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}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:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var t2=t.i(672696);let t3=(t,e)=>t.depth-e.depth;class t4{constructor(){this.children=[],this.isDirty=!1}add(t){(0,t0.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,t0.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t3),this.isDirty=!1,this.children.forEach(t)}}var t7=t.i(87519),t9=t.i(298549);function t8(t){let e=(0,t9.isMotionValue)(t)?t.get():t;return(0,t7.isCustomValue)(e)?e.toValue():e}var t5=t.i(167406),t6=t.i(92180),et=t.i(969122),ee=t.i(767369);let ei={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},es="u">typeof window&&void 0!==window.MotionDebug,er=["","X","Y","Z"],en={visibility:"hidden"},eo=0;function ea(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function el({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){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,es&&(ei.totalNodes=ei.resolvedTargetDeltas=ei.recalculatedProjection=0),this.nodes.forEach(ec),this.nodes.forEach(ey),this.nodes.forEach(ex),this.nodes.forEach(ed),es&&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 t4)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tb.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,t6.isSVGElement)(e),this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=t5.time.now(),e=({timestamp:i})=>{let r=i-t;r>=250&&((0,L.cancelFrame)(e),s(r-250))},L.frame.read(e,!0),i=()=>(0,L.cancelFrame)(e),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEach(eg))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ew,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tZ(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,tY.getValueTransition)(r,"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=s})}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,L.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(eP),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 s=(0,ee.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",L.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ep);return}this.isUpdating||this.nodes.forEach(ef),this.isUpdating=!1,this.nodes.forEach(ev),this.nodes.forEach(eh),this.nodes.forEach(eu),this.clearAllSnapshots();let t=t5.time.now();L.frameData.delta=(0,K.clamp)(0,1e3/60,t-L.frameData.timestamp),L.frameData.timestamp=t,L.frameData.isProcessing=!0,L.frameSteps.update.process(L.frameData),L.frameSteps.preRender.process(L.frameData),L.frameSteps.render.process(L.frameData),L.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(em),this.sharedNodes.forEach(eT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.frame.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,tt.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tX(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||(0,t2.hasTransform)(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),eC((e=s).x),eC(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,tt.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(eR))){let{scroll:t}=this.root;t&&((0,tN.translateAxis)(i.x,t.offset.x),(0,tN.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,tt.createBox)();if(tO(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;
1s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&tO(i,t),(0,tN.translateAxis)(i.x,r.offset.x),(0,tN.translateAxis)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,tt.createBox)();tO(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,tN.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,t2.hasTransform)(s.latestValues)&&(0,tN.transformBox)(i,s.latestValues)}return(0,t2.hasTransform)(this.latestValues)&&(0,tN.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tt.createBox)();tO(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t2.hasTransform)(i.latestValues))continue;(0,t2.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tt.createBox)();tO(s,i.measurePageBox()),tz(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,t2.hasTransform)(this.latestValues)&&tz(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!==L.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);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=L.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tt.createBox)(),this.relativeTargetOrigin=(0,tt.createBox)(),X(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,tt.createBox)(),this.targetWithTransforms=(0,tt.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,Y(i.x,s.x,r.x),Y(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tO(this.target,this.layout.layoutBox),(0,tN.applyBoxDelta)(this.target,this.targetDelta)):tO(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,tt.createBox)(),this.relativeTargetOrigin=(0,tt.createBox)(),X(this.relativeTargetOrigin,this.target,t.target),tO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}es&&ei.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,t2.hasScale)(this.parent.latestValues)||(0,t2.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===L.frameData.timestamp&&(s=!1),s)return;let{layout:r,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||!(r||n))return;tO(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,tN.applyTreeDeltas)(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,tt.createBox)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tI(this.prevProjectionDelta.x,this.projectionDelta.x),tI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),z(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tQ(this.projectionDelta.x,this.prevProjectionDelta.x)&&tQ(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),es&&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,tt.createDelta)(),this.projectionDelta=(0,tt.createDelta)(),this.projectionDeltaWithTransform=(0,tt.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=(0,tt.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tt.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(eD));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eA(o.x,t.x,s),eA(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,v;X(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=a,v=s,eS(m.x,p.x,f.x,v),eS(m.y,p.y,f.y,v),i&&(h=this.relativeTarget,d=i,tK(h.x,d.x)&&tK(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tt.createBox)()),tO(i,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,G.mixNumber)(0,void 0!==i.opacity?i.opacity:1,tM(s)),t.opacityExit=(0,G.mixNumber)(void 0!==e.opacity?e.opacity:1,0,tk(s))):n&&(t.opacity=(0,G.mixNumber)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<tR;r++){let n=`border${tL[r]}Radius`,o=tj(e,n),a=tj(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tB(o)===tB(a)?(t[n]=Math.max((0,G.mixNumber)(tV(o),tV(a),s),0),(tr.percent.test(a)||tr.percent.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,G.mixNumber)(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},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,L.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.frame.update(()=>{tg.hasAnimatedSinceResize=!0,this.currentAnimation=(0,et.animateSingleValue)(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:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eL(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tt.createBox)();let e=H(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=H(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tO(e,i),(0,tN.transformBox)(e,r),z(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t1),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 s=this.getStack();s&&s.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 s={};i.z&&ea("z",t,s,this.animationValues);for(let e=0;e<er.length;e++)ea(`rotate${er[e]}`,t,s,this.animationValues),ea(`skew${er[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return en;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=t8(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;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=t8(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t2.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tT.scaleCorrectors){if
1(void 0===o[t])continue;let{correct:e,applyTo:i}=tT.scaleCorrectors[t],r="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=n===this?t8(null==t?void 0:t.pointerEvents)||"":"none"),s}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(ep),this.root.sharedNodes.clear()}}}function eh(t){t.updateLayout()}function eu(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:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?te(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=H(s);s.min=e[t].min,s.max=s.min+r}):eL(r,i.layoutBox,e)&&te(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=H(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,tt.createDelta)();z(o,e,i.layoutBox);let a=(0,tt.createDelta)();n?z(a,t.applyTransform(s,!0),i.measuredBox):z(a,e,i.layoutBox);let l=!tX(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=(0,tt.createBox)();X(o,i.layoutBox,r.layoutBox);let a=(0,tt.createBox)();X(a,e,n.layoutBox),tZ(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ec(t){es&&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 ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function em(t){t.clearSnapshot()}function ep(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 eP(t){t.resetSkewAndRotation()}function eT(t){t.removeLeadSnapshot()}function eA(t,e,i){t.translate=(0,G.mixNumber)(e.translate,0,i),t.scale=(0,G.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eS(t,e,i,s){t.min=(0,G.mixNumber)(e.min,i.min,s),t.max=(0,G.mixNumber)(e.max,i.max,s)}function eD(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ew={duration:.45,ease:[.4,0,.1,1]},eE=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eb=eE("applewebkit/")&&!eE("chrome/")?Math.round:P.noop;function eC(t){t.min=eb(t.min),t.max=eb(t.max)}function eL(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(tJ(e)-tJ(i)))}function eR(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eV=el({attachResizeListener:(t,e)=>w(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eB={current:void 0},ej=el({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eB.current){let t=new eV({});t.mount(window),t.setOptions({layoutScroll:!0}),eB.current=t}return eB.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eM(t,e){let i=e?"onHoverStart":"onHoverEnd";return E(t.current,e?"pointerenter":"pointerleave",(s,r)=>{if("touch"===s.pointerType||I())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e);let o=n[i];o&&L.frame.postRender(()=>o(s,r))},{passive:!t.getProps()[i]})}let ek=(t,e)=>!!e&&(t===e||ek(t,e.parentElement));function eF(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,S(i))}let eU=new WeakMap,eO=new WeakMap,eI=t=>{let e=eU.get(t.target);e&&e(t)}
1,eN=t=>{t.forEach(eI)},eW={some:0,all:1};var eG=t.i(737806);let eH=(0,tm.createContext)({});var e$=t.i(674008);let ez=(0,tm.createContext)({strict:!1});var eY=t.i(979386),e_=t.i(298922);function eX(t){return Array.isArray(t)?t.join(" "):t}var eK=t.i(476948),eq=t.i(292936);let eZ=Symbol.for("motionComponentSymbol"),eJ=["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 eQ(t){if("string"!=typeof t||t.includes("-"));else if(eJ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e0=t.i(797823),e1=t.i(925954),e2=t.i(243190),e3=t.i(947414);let e4=t=>(e,i)=>{let s=(0,tm.useContext)(eH),n=(0,tm.useContext)(tp.PresenceContext),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},s,n,o){let a={latestValues:function(t,e,i,s){let n={},o=s(t,{});for(let t in o)n[t]=t8(o[t]);let{initial:a,animate:l}=t,h=(0,e_.isControllingVariants)(t),u=(0,e_.isVariantNode)(t);e&&u&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!(0,r.isAnimationControls)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=(0,e2.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(s,n,o,t),renderState:e()};return i&&(a.mount=t=>i(s,t,a)),a})(t,e,s,n);return i?o():(0,e3.useConstant)(o)},e7=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e9=()=>({...e7(),attrs:{}});var e8=t.i(733203),e5=t.i(450514);let e6={useVisualState:e4({scrapeMotionValuesFromProps:e1.scrapeMotionValuesFromProps,createRenderState:e9,onMount:(t,e,{renderState:i,latestValues:s})=>{L.frame.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),L.frame.render(()=>{(0,e8.buildSVGAttrs)(i,s,(0,e5.isSVGTag)(e.tagName),t.transformTemplate),(0,e0.renderSVG)(e,i)})}})},it={useVisualState:e4({scrapeMotionValuesFromProps:t.i(432313).scrapeMotionValuesFromProps,createRenderState:e7})};var ie=t.i(319026),ii=t.i(358768);function is(t,e,i){for(let s in e)(0,t9.isMotionValue)(e[s])||(0,ie.isForcedMotionValue)(s,i)||(t[s]=e[s])}let ir=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 io(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ir.has(t)}let ia=t=>!io(t);try{(e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(ia=t=>t.startsWith("on")?!io(t):e(t))}catch(t){}var il=t.i(457044),ih=t.i(678310);let iu=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((i={animation:{Feature:class extends y{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 s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>c(t,e,i)));else if("string"==typeof e)s=c(t,e,i);else{let r="function"==typeof e?(0,l.resolveVariant)(t,e,i.custom):e;s=Promise.all((0,u.animateTarget)(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=g(),s=!0,d=e=>(i,s)=>{var r;let n=(0,l.resolveVariant)(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function v(l){let{props:u}=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<m;t++){let s=h.variantProps[t],r=e.props[s];((0,a.isVariantLabel)(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},v=[],g=new Set,y={},x=1/0;for(let e=0;e<f;e++){var P,T;let h=p[e],m=i[h],f=void 0!==u[h]?u[h]:c[h],A=(0,a.isVariantLabel)(f),S=h===l?m.isActive:null;!1===S&&(x=e);let D=f===c[h]&&f!==u[h]&&A;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),m.protectedKeys={...y},!m.isActive&&null===S||!f&&!m.prevProp||(0,r.isAnimationControls)(f)||"boolean"==typeof f)continue;let w=(P=m.prevProp,"string"==typeof(T=f)?T!==P:!!Array.isArray(T)&&!o(T,P)),E=w||h===l&&m.isActive&&!D&&A||e>x&&A,b=!1,C=Array.isArray(f)?f:[f],L=C.reduce(d(h),{});!1===S&&(L={});let{prevResolvedValues:R={}}=m,V={...R,...L},B=e=>{E=!0,g.has(e)&&(b=!0,g.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in V){let e=L[t],i=R[t];if(!y.hasOwnProperty(t))((0,n.isKeyframesTarget)(e)&&(0,n.isKeyframesTarget)(i)?o(e,i):e===i)?void 0!==e&&g.has(t)?B(t):m.protectedKeys[t]=!0:null!=e?B(t):g.add(t)}m.prevProp=f,m.prevResolvedValues=L,m.isActive&&(y={...y,...L}),s&&t.blockInitialAnimation&&(E=!1);let j=!(D&&w)||b;E&&j&&v.push(...C.map(t=>({animation:t,options:{type:h}})))}if(g.size){let e={};g.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),v.push({animation:e})}let A=!!v.length;return s&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(A=!1),s=!1,A?e(v):Promise.resolve()}return{animateChanges:v,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let n=v(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=g(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends y{constructor(){super(...arguments),this.id=x++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:eW[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:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;eO.has(i)||eO.set(i,{});
1let s=eO.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(eN,{root:t,...e})),s[r]}(a),eU.set(t,l),e.observe(t),()=>{eU.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(){}}},tap:{Feature:class extends y{constructor(){super(...arguments),this.removeStartListeners=P.noop,this.removeEndListeners=P.noop,this.removeAccessibleListeners=P.noop,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=E(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:r}=this.node.getProps(),n=r||ek(this.node.current,t.target)?i:s;n&&L.frame.update(()=>n(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=E(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,b.pipe)(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&eF("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&L.frame.postRender(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=w(this.node.current,"keyup",e),eF("down",(t,e)=>{this.startPress(t,e)})},e=w(this.node.current,"keydown",t),i=()=>{this.isPressing&&eF("cancel",(t,e)=>this.cancelPress(t,e))},s=w(this.node.current,"blur",i);this.removeAccessibleListeners=(0,b.pipe)(e,s)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&L.frame.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!I()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&L.frame.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=E(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=w(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,b.pipe)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends y{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,b.pipe)(w(this.node.current,"focus",()=>this.onFocus()),w(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends y{mount(){this.unmount=(0,b.pipe)(eM(this.node,!0),eM(this.node,!1))}unmount(){}}},pan:{Feature:class extends y{constructor(){super(...arguments),this.removePointerDownListener=P.noop}onPointerDown(t){this.session=new R(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:to(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tc(t),onStart:tc(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&L.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=E(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends y{constructor(t){super(t),this.removeGroupControls=P.noop,this.removeListeners=P.noop,this.controls=new th(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.noop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ej,MeasureLayout:tw},layout:{ProjectionNode:ej,MeasureLayout:tw}},s=(t,e)=>eQ(t)?new ih.SVGVisualElement(e):new il.HTMLVisualElement(e,{allowProjection:t!==tm.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:r}){t&&function(t){for(let e in t)eK.featureDefinitions[e]={...eK.featureDefinitions[e],...t[e]}}(t);let n=(0,tm.forwardRef)(function(t,n){var o;let l,h={...(0,tm.useContext)(eG.MotionConfigContext),...t,layoutId:function({layoutId:t}){let e=(0,tm.useContext)(tf.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if((0,e_.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,a.isVariantLabel)(e)?e:void 0,animate:(0,a.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tm.useContext)(eH));return(0,tm.useMemo)(()=>({initial:e,animate:i}),[eX(e),eX(i)])}(t),d=s(t,u);if(!u&&eq.isBrowser){(0,tm.useContext)(ez).strict;let t=function(t){let{drag:e,layout:i}=eK.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(h);l=t.MeasureLayout,c.visualElement=function(t,e,i,s,r){var n,o;let{visualElement:a}=(0,tm.useContext)(eH),l=(0,tm.useContext)(ez),h=(0,tm.useContext)(tp.PresenceContext),u=(0,tm.useContext)(eG.MotionConfigContext).reducedMotion,c=(0,tm.useRef)(void 0);s=s||l.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u}));let d=c.current,m=(0,tm.useContext)(tv);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||a&&N(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(c.current,i,r,m);let p=(0,tm.useRef)(!1);(0,tm.useInsertionEffect)(()=>{d&&p.current&&d.update(i,h)});let f=i[eY.optimizedAppearDataAttribute],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,e$.useIsomorphicLayoutEffect)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tA.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,tm.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),v.current=!1))}),d}(r,d,h,e,t.ProjectionNode)}return(0,td.jsxs)(eH.Provider,{value:c,children:[l&&c.visualElement?(0,td.jsx)(l,{visualElement:c.visualElement,...h}):null,i(r,t,(o=c.visualElement,(0,tm.useCallback)(t=>{t&&d.mount&&d.mount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):N(n)&&(n.current=t))},[o])),d,u,c.visualElement)]})});return n[eZ]=r,n}({...eQ(t)?e6:it,preloadedFeatures:i,useRender:function(t=!1){return(e,i,s,{latestValues:r},n)=>{let o=(eQ(e)?function(t,e,i,s){let r=(0,tm.useMemo)(()=>{let i=e9();return(0,e8.buildSVGAttrs)(i,e,(0,e5.isSVGTag)(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};is(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},is(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,tm.useMemo)(()=>{let i=e7();return(0,ii.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.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)&&(r.tabIndex=0),r.style=n,r})(i,r,n,e),a=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(ia(r)||!0===i&&io(r)||!e&&!io(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),l=e!==tm.Fragment?{...a,...o,ref:s}:{},{children:h}=i,u=(0,tm.useMemo)(()=>(0,t9.isMotionValue)(h)?h.get():h,[h]);return(0,tm.createElement)(e,{...l,children:u})}}(e),createVisualElement:s,Component:t})}));t.s(["motion",0,iu],846932)},636251,t=>{"use strict";t.s(["LARGE_LAYOUT_SHIFT",0,{type:"spring",stiffness:1400,damping:70,mass:2.9},"SMALL_LAYOUT_SHIFT",0,{type:"spring",stiffness:1180,damping:40},"TRANSITION_ENTER",0,{type:"spring",stiffness:1300,damping:90,mass:2,restDelta:.001}])}]);
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.