1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e300108c-1258-475e-b49e-a90512f2828e",t._sentryDebugIdIdentifier="sentry-dbid-e300108c-1258-475e-b49e-a90512f2828e")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9344],{1686:function(t,e,i){i.d(e,{d:function(){return a}});var s=i(12841),n=i(91222);function o(t,e,i={}){var a;let l=(0,s.x)(t,e,"exit"===i.type?null===(a=t.presenceContext)||void 0===a?void 0:a.custom:void 0),{transition:h=t.getDefaultTransition()||{}}=l||{};i.transitionOverride&&(h=i.transitionOverride);let u=l?()=>Promise.all((0,n.w)(t,l,i)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:l}=h;return function(t,e,i=0,s=0,n=1,a){let l=[],h=(t.variantChildren.size-1)*s,u=1===n?(t=0)=>t*s:(t=0)=>h-t*s;return Array.from(t.variantChildren).sort(r).forEach((t,s)=>{t.notify("AnimationStart",e),l.push(o(t,e,{...a,delay:i+u(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,n+s,a,l,i)}:()=>Promise.resolve(),{when:c}=h;if(!c)return Promise.all([u(),d(i.delay)]);{let[t,e]="beforeChildren"===c?[u,d]:[d,u];return t().then(()=>e())}}function r(t,e){return t.sortNodePosition(e)}function a(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>o(t,e,i)));else if("string"==typeof e)r=o(t,e,i);else{let o="function"==typeof e?(0,s.x)(t,e,i.custom):e;r=Promise.all((0,n.w)(t,o,i))}return r.then(()=>{t.notify("AnimationComplete",e)})}},60976:function(t,e,i){i.d(e,{_:function(){return s}});let s=(0,i(2784).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},70645:function(t,e,i){i.d(e,{E:function(){return iA}});var s,n,o,r=i(12816),a=i(55721);function l(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 h=i(20330),u=i(12841),d=i(36427),c=i(1686);let m=d.V.length,p=[...d.e].reverse(),f=d.e.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(){}}class x extends y{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,c.d)(t,e,i))),i=g(),s=!0,n=e=>(i,s)=>{var n;let o=(0,u.x)(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(o){let{transition:t,transitionEnd:e,...s}=o;i={...i,...s,...e}}return i};function o(o){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=d.V[t],n=e.props[s];((0,h.$)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},v=[],g=new Set,y={},x=1/0;for(let e=0;e<f;e++){var P;let d=p[e],m=i[d],f=void 0!==u[d]?u[d]:c[d],T=(0,h.$)(f),w=d===o?m.isActive:null;!1===w&&(x=e);let D=f===c[d]&&f!==u[d]&&T;if(D&&s&&t.manuallyAnimateOnMount&&(D=!1),m.protectedKeys={...y},!m.isActive&&null===w||!f&&!m.prevProp||(0,r.H)(f)||"boolean"==typeof f)continue;let A=(P=m.prevProp,"string"==typeof f?f!==P:!!Array.isArray(f)&&!l(f,P)),S=A||d===o&&m.isActive&&!D&&T||e>x&&T,E=!1,b=Array.isArray(f)?f:[f],C=b.reduce(n(d),{});!1===w&&(C={});let{prevResolvedValues:L={}}=m,R={...L,...C},j=e=>{S=!0,g.has(e)&&(E=!0,g.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in R){let e=C[t],i=L[t];if(!y.hasOwnProperty(t))((0,a.C)(e)&&(0,a.C)(i)?l(e,i):e===i)?void 0!==e&&g.has(t)?j(t):m.protectedKeys[t]=!0:null!=e?j(t):g.add(t)}m.prevProp=f,m.prevResolvedValues=C,m.isActive&&(y={...y,...C}),s&&t.blockInitialAnimation&&(S=!1);let M=!(D&&A)||E;S&&M&&v.push(...b.map(t=>({animation:t,options:{type:d}})))}if(g.size){let e={};g.forEach(i=>
1{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?s:null}),v.push({animation:e})}let T=!!v.length;return s&&(!1===u.initial||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?e(v):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=g(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let P=0;class T extends y{constructor(){super(...arguments),this.id=P++}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(){}}var w=i(50065),D=i(57035);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`]}}}let E=t=>e=>A(e)&&t(e,S(e));var b=i(41429);function C(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function L(t,e,i,s){return C(t,e,E(i),s)}var R=i(96953);let j=(t,e)=>Math.abs(t-e);var M=i(41359);class V{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=O(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(j(t.x,e.x)**2+j(t.y,e.y)**2)>=3);if(!s&&!n)return;let{point:o}=i,{timestamp:r}=M.frameData;this.history.push({...o,timestamp:r});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=k(e,this.transformPagePoint),M.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=O("pointercancel"===t.type?this.lastMoveEventInfo:k(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!A(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=k(S(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=M.frameData;this.history=[{...r,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,O(o,this.history)),this.removeListeners=(0,R.z)(L(this.contextWindow,"pointermove",this.handlePointerMove),L(this.contextWindow,"pointerup",this.handlePointerUp),L(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,M.Pn)(this.updatePoint)}}function k(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,F(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=F(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,b.w)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,b.X)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let r={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function F(t){return t[t.length-1]}function U(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let W=U("dragHorizontal"),I=U("dragVertical");function z(t){let e=!1;if("y"===t)e=I();else if("x"===t)e=W();else{let t=W(),i=I();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function $(){let t=z(!0);return!t||(t(),!1)}function H(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var N=i(17475),G=i(19038);function _(t){return t.max-t.min}function Y(t,e,i,s=.5){t.origin=s,t.originPoint=(0,G.t)(e.min,e.max,t.origin),t.scale=_(i)/_(e),t.translate=(0,G.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function X(t,e,i,s){Y(t.x,e.x,i.x,s?s.originX:void 0),Y(t.y,e.y,i.y,s?s.originY:void 0)}
1function Z(t,e,i){t.min=i.min+e.min,t.max=t.min+_(e)}function K(t,e,i){t.min=e.min-i.min,t.max=t.min+_(e)}function q(t,e,i){K(t.x,e.x,i.x),K(t.y,e.y,i.y)}var Q=i(51366);function J(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 tt(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 te(t,e,i){return{min:ti(t,e),max:ti(t,i)}}function ti(t,e){return"number"==typeof t?t:t[e]||0}var ts=i(33933);function tn(t){return[t("x"),t("y")]}var to=i(85579),tr=i(77222),ta=i(88772),tl=i(65455);let th=({current:t})=>t?t.ownerDocument.defaultView:null;var tu=i(81559);let td=new WeakMap;class tc{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,ts.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new V(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(S(t,"page").point)},onStart:(t,e)=>{var i;let{drag:s,dragPropagation:n,onDragStart:o}=this.getProps();if(s&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=z(s),!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),tn(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ta.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=_(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),o&&M.Wi.postRender(()=>o(t,e)),null===(i=this.removeWillChange)||void 0===i||i.call(this),this.removeWillChange=(0,tu.K)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:r}=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}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>tn(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:th(this.visualElement)})}stop(t,e){var i;null===(i=this.removeWillChange)||void 0===i||i.call(this);let s=this.isDragging;if(this.cancel(),!s)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&M.Wi.postRender(()=>o(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||!tm(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,G.t)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,G.t)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}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?void 0:t.layout,n=this.constraints;e&&H(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:J(t.x,i,n),y:J(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:te(t,"left","right"),y:te(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tn(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!H(e))return!1;let s=e.current;(0,D.k)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=(0,to.z)(s,n.root,this.visualElement.getTransformPagePoint()),r={x:tt((t=n.layout.layoutBox).x,o.x),y:tt(t.y,o.y)};if(i){let t=i((0,tr.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,tr.i8)(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(tn(r=>{if(!tm(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,tl.v)(t,i,0,e,this.visualElement,!1,(0,tu.K)(this.visualElement,t)))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?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){tn(e=>{let{drag:i}=this.getProps();if(!tm(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e];n.set(t[e]-(0,G.t)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!H(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tn(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=_(t),n=_(e);return n>s?i=(0,N.Y)(e.min,e.max-s,t.min):s>n&&(i=(0,N.Y)(t.min,t.max-n,e.min)),(0,Q.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tn(e=>{if(!tm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,G.t)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;td.set(this.visualElement,this);let t=L(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();H(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()),M.Wi.read(e);let n=C(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tn(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function tm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tp extends y{constructor(t){super(t),this.removeGroupControls=w.Z,this.removeListeners=w.Z,this.controls=new tc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tf=t=>(e,i)=>{t&&M.Wi.postRender(()=>t(e,i))};class tv extends y{constructor(){super(...arguments),this.removePointerDownListener=w.Z}onPointerDown(t){this.session=new V(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:th(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tf(t),onStart:tf(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&M.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=L(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 tg=i(52322),ty=i(2784);let tx=(0,ty.createContext)(null),tP=(0,ty.createContext)({}),tT=(0,ty.createContext)({}),tw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tD(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tA={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ta.px.test(t))return t;t=parseFloat(t)}let i=tD(t,e.target.x),s=tD(t,e.target.y);return`${i}% ${s}%`}};var tS=i(76865),tE=i(14599);let{schedule:tb,cancel:tC}=(0,i(57780).Z)(queueMicrotask,!1);class tL extends ty.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,tE.B)(tj),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===n||(n?o.promote():o.relegate()||M.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.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 tR(t){let[e,i]=function(){let t=(0,ty.useContext)(tx);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,ty.useId)();(0,ty.useEffect)(()=>s(n),[]);let o=(0,ty.useCallback)(()=>i&&i(n),[n,i]);return!e&&i?[!1,o]:[!0]}(),s=(0,ty.useContext)(tP);return(0,tg.jsx)(tL,{...t,layoutGroup:s,switchLayoutGroup:(0,ty.useContext)(tT),isPresent:e,safeToRemove:i})}let tj={borderRadius:{...tA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tA,borderTopRightRadius:tA,borderBottomLeftRadius:tA,borderBottomRightRadius:tA,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tS.P.parse(t);if(s.length>5)return t;let n=tS.P.createTransformer(t),o="number"!=typeof s[0]?1:0,r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,G.t)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};var tM=i(88069),tV=i(41469);let tk=["TopLeft","TopRight","BottomLeft","BottomRight"],tB=tk.length,tO=t=>"string"==typeof t?parseFloat(t):t,tF=t=>"number"==typeof t||ta.px.test(t);function tU(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tW=tz(0,.5,tV.Bn),tI=tz(.5,.95,w.Z);function tz(t,e,i){return s=>s<t?0:s>e?1:i((0,N.Y)(t,e,s))}function t$(t,e){t.min=e.min,t.max=e.max}function tH(t,e){t$(t.x,e.x),t$(t.y,e.y)}function tN(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tG=i(2217);function t_(t,e,i,s,n){return t-=e,t=(0,tG.q2)(t,1/i,s),void 0!==n&&(t=(0,tG.q2)(t,1/n,s)),t}function tY(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(ta.aQ.test(e)&&(e=parseFloat(e),e=(0,G.t)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,G.t)(o.min,o.max,s);t===o&&(a-=e),t.min=t_(t.min,e,i,a,n),t.max=t_(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let tX=["x","scaleX","originX"],tZ=["y","scaleY","originY"];function tK(t,e,i,s){tY(t.x,e,tX,i?i.x:void 0,s?s.x:void 0),tY(t.y,e,tZ,i?i.y:void 0,s?s.y:void 0)}var tq=i(73172);function tQ(t){return 0===t.translate&&1===t.scale}function tJ(t){return tQ(t.x)&&tQ(t.y)}function t0(t,e){return t.min===e.min&&t.max===e.max}function t1(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t2(t,e){return t1(t.x,e.x)&&t1(t.y,e.y)}function t5(t){return _(t.x)/_(t.y)}function t3(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var t7=i(44866);class t4{constructor(){this.members=[]}add(t){(0,t7.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,t7.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];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 t8=i(28749);let t6=(t,e)=>t.depth-e.depth;class t9{constructor(){this.children=[],this.isDirty=!1}add(t){(0,t7.y4)(this.children,t),this.isDirty=!0}remove(t){(0,t7.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t6),this.isDirty=!1,this.children.forEach(t)}}var et=i(13809),ee=i(41551);function ei(t){let e=(0,ee.i)(t)?t.get():t;return(0,et.p)(e)?e.toValue():e}var es=i(82644),en=i(28650),eo=i(74197),er=i(58880);let ea={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},el="undefined"!=typeof window&&void 0!==window.MotionDebug,eh=["","X","Y","Z"],eu={visibility:"hidden"},ed=0;function ec(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function em({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ed++,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,el&&(ea.totalNodes=ea.resolvedTargetDeltas=ea.recalculatedProjection=0),this.nodes.forEach(ev),this.nodes.forEach(eD),this.nodes.forEach(eA),this.nodes.forEach(eg),el&&window.MotionDebug.record(ea)},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 t9)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tM.L),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,en.v)(e),this.instance=e;let{layoutId:s,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=es.X.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,M.Pn)(s),t(n-250))};return M.Wi.read(s,!0),()=>(0,M.Pn)(s)}(s,0),tw.hasAnimatedSinceResize&&(tw.hasAnimatedSinceResize=!1,this.nodes.forEach(ew))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||eR,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!t2(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,tq.e)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ew(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,M.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(eS),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,er.s)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",M.Wi,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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(ex);return}this.isUpdating||this.nodes.forEach(eP),this.isUpdating=!1,this.nodes.forEach(eT),this.nodes.forEach(ep),this.nodes.forEach(ef),this.clearAllSnapshots();let t=es.X.now();M.frameData.delta=(0,Q.u)(0,1e3/60,t-M.frameData.timestamp),M.frameData.timestamp=t,M.frameData.isProcessing=!0,M.S6.update.process(M.frameData),M.S6.preRender.process(M.frameData),M.S6.render.process(M.frameData),M.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ey),this.sharedNodes.forEach(eE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.Wi.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,ts.dO)(),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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!tJ(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,t8.ud)(this.latestValues)||o)&&(n(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)),eV((e=s).x),eV(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,ts.dO)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(eB))){let{scroll:t}=this.root;t&&((0,tG.am)(i.x,t.offset.x),(0,tG.am)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,ts.dO)();if(tH(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&tH(i,t),(0,tG.am)(i.x,n.offset.x),(0,tG.am)(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=(0,ts.dO)();tH(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,tG.D2)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,t8.ud)(s.latestValues)&&(0,tG.D2)(i,s.latestValues)}return(0,t8.ud)(this.latestValues)&&(0,tG.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,ts.dO)();tH(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t8.ud)(i.latestValues))continue;(0,t8.Lj)(i.latestValues)&&i.updateSnapshot();let s=(0,ts.dO)();tH(s,i.measurePageBox()),tK(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,t8.ud)(this.latestValues)&&tK(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!==M.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==o;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?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=M.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ts.dO)(),this.relativeTargetOrigin=(0,ts.dO)(),q(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,ts.dO)(),this.targetWithTransforms=(0,ts.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,Z(i.x,s.x,n.x),Z(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tH(this.target,this.layout.layoutBox),(0,tG.o2)(this.target,this.targetDelta)):tH(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,ts.dO)(),this.relativeTargetOrigin=(0,ts.dO)(),q(this.relativeTargetOrigin,this.target,t.target),tH(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}el&&ea.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,t8.Lj)(this.parent.latestValues)||(0,t8.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent: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?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===M.frameData.timestamp&&(s=!1),s)return;let{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||o))return;tH(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,tG.YY)(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,ts.dO)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tN(this.prevProjectionDelta.x,this.projectionDelta.x),tN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),X(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&t3(this.projectionDelta.x,this.prevProjectionDelta.x)&&t3(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),el&&ea.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,ts.wc)(),this.projectionDelta=(0,ts.wc)(),this.projectionDeltaWithTransform=(0,ts.wc)()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=(0,ts.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,ts.dO)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(eL));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eb(r.x,t.x,s),eb(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p;q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,e
1C(m.x,p.x,a.x,s),eC(m.y,p.y,a.y,s),i&&(h=this.relativeTarget,c=i,t0(h.x,c.x)&&t0(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,ts.dO)()),tH(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,G.t)(0,void 0!==i.opacity?i.opacity:1,tW(s)),t.opacityExit=(0,G.t)(void 0!==e.opacity?e.opacity:1,0,tI(s))):o&&(t.opacity=(0,G.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n<tB;n++){let o=`border${tk[n]}Radius`,r=tU(e,o),a=tU(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tF(r)===tF(a)?(t[o]=Math.max((0,G.t)(tO(r),tO(a),s),0),(ta.aQ.test(a)||ta.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,G.t)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,M.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.Wi.update(()=>{tw.hasAnimatedSinceResize=!0,this.currentAnimation=(0,eo.D)(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:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&ek(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,ts.dO)();let e=_(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=_(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tH(e,i),(0,tG.D2)(e,n),X(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t4),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?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?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&&ec("z",t,s,this.animationValues);for(let e=0;e<eh.length;e++)ec(`rotate${eh[e]}`,t,s,this.animationValues),ec(`skew${eh[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 eu;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ei(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ei(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t8.ud)(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let r=o.animationValues||o.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==i?void 0:i.z)||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}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,r),n&&(s.transform=n(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tE.P){if(void 0===r[t])continue;let{correct:e,applyTo:i}=tE.P[t],n="none"===s.transform?r[t]:e(r[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=n}else s[t]=n}return this.options.layoutId&&(s.pointerEvents=o===this?ei(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?void 0:e.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function ep(t){t.updateLayout()}function ef(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,o=i.source!==t.layout.source;"size"===n?tn(t=>{let s=o?i.measuredBox[t]:i.layoutBox[t],n=_(s);s.min=e[t].min,s.max=s.min+n}):ek(n,i.layoutBox,e)&&tn(s=>{let n=o?i.measuredBox[s]:i.layoutBox[s],r=_(e[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,ts.wc)();X(r,e,i.layoutBox);let a=(0,ts.wc)();o?X(a,t.applyTransform(s,!0),i.measuredBox):X(a,e,i.layoutBox);let l=!tJ(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=(0,ts.dO)();q(r,i.layoutBox,n.layoutBox);let a=(0,ts.dO)();q(a,e,o.layoutBox),t2(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ev(t){el&&ea.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 eg(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ey(t){t.clearSnapshot()}function ex(t){t.clearMeasurements()}function eP(t){t.isLayoutDirty=!1}function eT(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ew(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eD(t){t.resolveTargetDelta()}function eA(t){t.calcProjection()}function eS(t){t.resetSkewAndRotation()}function eE(t){t.removeLeadSnapshot()}function eb(t,e,i){t.translate=(0,G.t)(e.translate,0,i),t.scale=(0,G.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eC(t,e,i,s){t.min=(0,G.t)(e.min,i.min,s),t.max=(0,G.t)(e.max,i.max,s)}function eL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eR={duration:.45,ease:[.4,0,.1,1]},ej=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eM=ej("applewebkit/")&&!ej("chrome/")?Math.round:w.Z;function eV(t){t.min=eM(t.min),t.max=eM(t.max)}function ek(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t5(e)-t5(i)))}function eB(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eO=em({attachResizeListener:(t,e)=>C(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eF={current:void 0},eU=em({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eF.current){let t=new eO({});t.mount(window),t.setOptions({layoutScroll:!0}),eF.current=t}return eF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eW(t,e){let i=e?"onHoverStart":"onHoverEnd";return L(t.current,e?"pointerenter":"pointerleave",(s,n)=>{if("touch"===s.pointerType||$())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);let r=o[i];r&&M.Wi.postRender(()=>r(s,n))},{passive:!t.getProps()[i]})}class eI extends y{mount(){this.unmount=(0,R.z)(eW(this.node,!0),eW(this.node,!1))}unmount(){}}class ez 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,R.z)(C(this.node.current,"focus",()=>this.onFocus()),C(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let e$=(t,e)=>!!e&&(t===e||e$(t,e.parentElement));function eH(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,S(i))}class eN extends y{constructor(){super(...arguments),this.removeStartListeners=w.Z,this.removeEndListeners=w.Z,this.removeAccessibleListeners=w.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=L(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:n}=this.node.getProps(),o=n||e$(this.node.current,t.target)?i:s;o&&M.Wi.update(()=>o(t,e))},{passive:!(i.onTap||i.onPointerUp)}),n=L(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,R.z)(s,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=C(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=C(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&eH("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&M.Wi.postRender(()=>i(t,e))})}),eH("down",(t,e)=>{this.startPress(t,e)}))}),e=C(this.node.current,"blur",()=>{this.isPressing&&eH("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,R.z)(t,e)}}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&&M.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&M.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=L(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=C(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,R.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eG=new WeakMap,e_=new WeakMap,eY=t=>{let e=eG.get(t.target);e&&e(t)}
1,eX=t=>{t.forEach(eY)},eZ={some:0,all:1};class eK extends y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:eZ[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;e_.has(i)||e_.set(i,{});let s=e_.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(eX,{root:t,...e})),s[n]}(e);return eG.set(t,i),s.observe(t),()=>{eG.delete(t),s.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!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(),o=e?i:s;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var eq=i(60976);let eQ=(0,ty.createContext)({});var eJ=i(23617);let e0=(0,ty.createContext)({strict:!1});var e1=i(67098);let e2=!1;function e5(){window.MotionHandoffIsComplete=!0}var e3=i(23293);function e7(t){return Array.isArray(t)?t.join(" "):t}var e4=i(7397),e8=i(33791);let e6=Symbol.for("motionComponentSymbol"),e9=["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 it(t){if("string"!=typeof t||t.includes("-"));else if(e9.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ie=i(13517),ii=i(7587),is=i(99764),io=i(3105),ir=i(38493);let ia=t=>(e,i)=>{let s=(0,ty.useContext)(eQ),n=(0,ty.useContext)(tx),o=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:s},n,o,a,l){let h={latestValues:function(t,e,i,s,n){var o;let a={},l=[],h=s&&(null===(o=t.style)||void 0===o?void 0:o.willChange)===void 0,u=n(t,{});for(let t in u)a[t]=ei(u[t]);let{initial:d,animate:c}=t,m=(0,e3.G)(t),p=(0,e3.M)(t);e&&p&&!m&&!1!==t.inherit&&(void 0===d&&(d=e.initial),void 0===c&&(c=e.animate));let f=!!i&&!1===i.initial,v=(f=f||!1===d)?c:d;return v&&"boolean"!=typeof v&&!(0,r.H)(v)&&il(t,v,(t,e)=>{for(let e in t){let i=t[e];if(Array.isArray(i)){let t=f?i.length-1:0;i=i[t]}null!==i&&(a[e]=i)}for(let t in e)a[t]=e[t]}),h&&(c&&!1!==d&&!(0,r.H)(c)&&il(t,c,t=>{for(let e in t)!function(t,e){let i=(0,ir.p)(e);i&&(0,t7.y4)(t,i)}(l,e)}),l.length&&(a.willChange=l.join(","))),a}(n,o,a,!l&&t,e),renderState:i()};return s&&(h.mount=t=>s(n,t,h)),h})(t,e,s,n,i);return i?o():(0,io.h)(o)};function il(t,e,i){let s=Array.isArray(e)?e:[e];for(let e=0;e<s.length;e++){let n=(0,is.o)(t,s[e]);if(n){let{transitionEnd:t,transition:e,...s}=n;i(s,t)}}}let ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iu=()=>({...ih(),attrs:{}});var id=i(10658),ic=i(13336);let im={useVisualState:ia({scrapeMotionValuesFromProps:ii.U,createRenderState:iu,onMount:(t,e,{renderState:i,latestValues:s})=>{M.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),M.Wi.render(()=>{(0,id.i)(i,s,(0,ic.a)(e.tagName),t.transformTemplate),(0,ie.K)(e,i)})}})},ip={useVisualState:ia({applyWillChange:!0,scrapeMotionValuesFromProps:i(53921).U,createRenderState:ih})};var iv=i(41980),ig=i(62411);function iy(t,e,i){for(let s in e)(0,ee.i)(e[s])||(0,iv.j)(s,i)||(t[s]=e[s])}let ix=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 iP(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ix.has(t)}let iT=t=>!iP(t);try{(s=require("@emotion/is-prop-valid").default)&&(iT=t=>t.startsWith("on")?!iP(t):s(t))}catch(t){}var iw=i(74422),iD=i(23384);let iA=function(t){if("undefined"==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))})}((n={animation:{Feature:x},exit:{Feature:T},inView:{Feature:eK},tap:{Feature:eN},focus:{Feature:ez},hover:{Feature:eI},pan:{Feature:tv},drag:{Feature:tp,ProjectionNode:eU,MeasureLayout:tR},layout:{ProjectionNode:eU,MeasureLayout:tR}},o=(t,e)=>it(t)?new iD.e(e):new iw.W(e,{allowProjection:t!==ty.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:n}){t&&function(t){for(let e in t)e4.featureDefinitions[e]={...e4.featureDefinitions[e],...t[e]}}(t);let o=(0,ty.forwardRef)(function(t,o){var r;let a;let l={...(0,ty.useContext)(eq._),...t,layoutId:function({layoutId:t}){let e=(0,ty.useContext)(tP).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,e3.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,h.$)(e)?e:void 0,animate:(0,h.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ty.useContext)(eQ));return(0,ty.useMemo)(()=>({initial:e,animate:i}),[e7(e),e7(i)])}
1(t),c=s(t,u);if(!u&&e8.j){(0,ty.useContext)(e0).strict;let t=function(t){let{drag:e,layout:i}=e4.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}}(l);a=t.MeasureLayout,d.visualElement=function(t,e,i,s,n){var o;let{visualElement:r}=(0,ty.useContext)(eQ),a=(0,ty.useContext)(e0),l=(0,ty.useContext)(tx),h=(0,ty.useContext)(eq._).reducedMotion,u=(0,ty.useRef)();s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:r,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let d=u.current,c=(0,ty.useContext)(tT);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,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:n,layout:o,alwaysMeasureLayout:!!r||a&&H(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(u.current,i,n,c),(0,ty.useInsertionEffect)(()=>{d&&d.update(i,l)});let m=i[e1.M],p=(0,ty.useRef)(!!m&&!window.MotionHandoffIsComplete&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,eJ.L)(()=>{d&&(d.updateFeatures(),tb.render(d.render),p.current&&d.animationState&&d.animationState.animateChanges())}),(0,ty.useEffect)(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current=!1,e2||(e2=!0,queueMicrotask(e5)))}),d}(n,c,l,e,t.ProjectionNode)}return(0,tg.jsxs)(eQ.Provider,{value:d,children:[a&&d.visualElement?(0,tg.jsx)(a,{visualElement:d.visualElement,...l}):null,i(n,t,(r=d.visualElement,(0,ty.useCallback)(t=>{t&&c.mount&&c.mount(t),r&&(t?r.mount(t):r.unmount()),o&&("function"==typeof o?o(t):H(o)&&(o.current=t))},[r])),c,u,d.visualElement)]})});return o[e6]=n,o}({...it(t)?im:ip,preloadedFeatures:n,useRender:function(t=!1){return(e,i,s,{latestValues:n},o)=>{let r=(it(e)?function(t,e,i,s){let n=(0,ty.useMemo)(()=>{let i=iu();return(0,id.i)(i,e,(0,ic.a)(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iy(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return iy(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,ty.useMemo)(()=>{let i=ih();return(0,ig.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,n,o,e),a=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(iT(n)||!0===i&&iP(n)||!e&&!iP(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(i,"string"==typeof e,t),l=e!==ty.Fragment?{...a,...r,ref:s}:{},{children:h}=i,u=(0,ty.useMemo)(()=>(0,ee.i)(h)?h.get():h,[h]);return(0,ty.createElement)(e,{...l,children:u})}}(e),createVisualElement:o,Component:t})}))},23617:function(t,e,i){i.d(e,{L:function(){return n}});var s=i(2784);let n=i(33791).j?s.useLayoutEffect:s.useEffect},21687:function(t,e,i){i.d(e,{c:function(){return a}});var s=i(2784),n=i(40226),o=i(60976),r=i(3105);function a(t){let e=(0,r.h)(()=>(0,n.BX)(t)),{isStatic:i}=(0,s.useContext)(o._);if(i){let[,i]=(0,s.useState)(t);(0,s.useEffect)(()=>e.on("change",i),[])}return e}}}]);
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.