1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3df57b72-253c-90e6-b04a-25b0b9fa713b")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,193377,734368,842573,49262,86265,212644,359110,912647,649135,137779,48318,581818,410959,764650,30687,987185,123740,919744,887808,259812,825293,719279,t=>{"use strict";function e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function i(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,s,n){if("function"==typeof e){let[o,r]=i(n);e=e(void 0!==s?s:t.custom,o,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[o,r]=i(n);e=e(void 0!==s?s:t.custom,o,r)}return e}function n(t,e,i){let n=t.getProps();return s(n,e,void 0!==i?i:n.custom,t)}t.i(562876),t.s(["createDOMMotionComponentProxy",0,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))})}],193377),t.s(["isAnimationControls",0,e],734368),t.s(["resolveVariantFromProps",0,s],842573);var o=t.i(424830),r=t.i(734639),a=t.i(399748),l=t.i(820321);let u=t=>Array.isArray(t);var h=t.i(23968),c=t.i(597209);function d(t,e){let i=t.getValue("willChange");if((0,c.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&h.MotionGlobalConfig.WillChange){let i=new h.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let m=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",0,m],49262);let p="data-"+m("framerAppearId");function f(t){return t.props[p]}t.s(["optimizedAppearDataAttribute",0,p],86265),t.s(["getOptimisedAppearId",0,f],212644);var g=t.i(283046),v=t.i(390897),y=t.i(869308);let x=t=>null!==t;var P=t.i(692250);let V={type:"spring",stiffness:500,damping:25,restSpeed:10},S={type:"keyframes",duration:.8},T={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},A=(t,e,i,s={},n,a)=>l=>{let u=(0,o.getValueTransition)(s,t)||{},c=u.delay||s.delay||0,{elapsed:d=0}=s;d-=(0,y.secondsToMilliseconds)(c);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:a?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&Object.assign(m,((t,{keyframes:e})=>e.length>2?S:P.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:V:T)(t,m)),m.duration&&(m.duration=(0,y.secondsToMilliseconds)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,y.secondsToMilliseconds)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let p=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0===m.delay&&(p=!0)),(h.MotionGlobalConfig.instantAnimations||h.MotionGlobalConfig.skipAnimations)&&(p=!0,m.duration=0,m.delay=0),m.allowFlatten=!u.type&&!u.ease,p&&!a&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let s=t.filter(x),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(m.keyframes,u);if(void 0!==t)return void r.frame.update(()=>{m.onUpdate(t),m.onComplete()})}return u.isSync?new g.JSAnimation(m):new v.AsyncMotionValueAnimation(m)};function C(t,e,{delay:i=0,transitionOverride:s,type:h}={}){let{transition:c=t.getDefaultTransition(),transitionEnd:m,...p}=e;s&&(c=s);let g=[],v=h&&t.animationState&&t.animationState.getState()[h];for(let e in p){let s=t.getValue(e,t.latestValues[e]??null),n=p[e];if(void 0===n||v&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(v,e))continue;let l={delay:i,...(0,o.getValueTransition)(c||{},e)},u=s.get();if(void 0!==u&&!s.isAnimating&&!Array.isArray(n)&&n===u&&!l.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=f(t);if(i){let t=window.MotionHandoffAnimation(i,e,r.frame);null!==t&&(l.startTime=t,h=!0)}}d(t,e),s.start(A(e,s,n,t.shouldReduceMotion&&a.positionalKeys.has(e)?{type:!1}:l,t,h));let m=s.animation;
2m&&g.push(m)}return m&&Promise.all(g).then(()=>{r.frame.update(()=>{m&&function(t,e){let{transitionEnd:i={},transition:s={},...o}=n(t,e)||{};for(let e in o={...o,...i}){var r;let i=u(r=o[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,l.motionValue)(i))}}(t,m)})}),g}function D(t,e,i={}){let s=n(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);let r=s?()=>Promise.all(C(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,i=0,s=0,n=1,o){let r=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(w).forEach((t,s)=>{t.notify("AnimationStart",e),r.push(D(t,e,{...o,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,n+s,r,a,i)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}}function w(t,e){return t.sortNodePosition(e)}function b(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}function M(t){return"string"==typeof t||Array.isArray(t)}t.s(["animateMotionValue",0,A],359110),t.s(["isVariantLabel",0,M],912647);let E=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],R=["initial",...E];t.s(["variantPriorityOrder",0,E,"variantProps",0,R],649135);let B=R.length,L=[...E].reverse(),j=E.length;function k(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function F(){return{animate:k(!0),whileInView:k(),whileHover:k(),whileTap:k(),whileDrag:k(),whileFocus:k(),exit:k()}}class O{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,O],137779);let U=0;t.s(["animations",0,{animation:{Feature:class extends O{constructor(t){super(t),t.animationState||(t.animationState=function(t){let i=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=>D(t,e,i)));else if("string"==typeof e)s=D(t,e,i);else{let o="function"==typeof e?n(t,e,i.custom):e;s=Promise.all(C(t,o,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),s=F(),o=!0,r=e=>(i,s)=>{let o=n(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(o){let{transition:t,transitionEnd:e,...s}=o;i={...i,...s,...e}}return i};function a(a){let{props:l}=t,h=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<B;t++){let s=R[t],n=e.props[s];(M(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},c=[],d=new Set,m={},p=1/0;for(let i=0;i<j;i++){var f,g;let n=L[i],v=s[n],y=void 0!==l[n]?l[n]:h[n],x=M(y),P=n===a?v.isActive:null;!1===P&&(p=i);let V=y===h[n]&&y!==l[n]&&x;if(V&&o&&t.manuallyAnimateOnMount&&(V=!1),v.protectedKeys={...m},!v.isActive&&null===P||!y&&!v.prevProp||e(y)||"boolean"==typeof y)continue;let S=(f=v.prevProp,"string"==typeof(g=y)?g!==f:!!Array.isArray(g)&&!b(g,f)),T=S||n===a&&v.isActive&&!V&&x||i>p&&x,A=!1,C=Array.isArray(y)?y:[y],D=C.reduce(r(n),{});!1===P&&(D={});let{prevResolvedValues:w={}}=v,E={...w,...D},R=e=>{T=!0,d.has(e)&&(A=!0,d.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=D[t],i=w[t];if(!m.hasOwnProperty(t))(u(e)&&u(i)?b(e,i):e===i)?void 0!==e&&d.has(t)?R(t):v.protectedKeys[t]=!0:null!=e?R(t):d.add(t)}v.prevProp=y,v.prevResolvedValues=D,v.isActive&&(m={...m,...D}),o&&t.blockInitialAnimation&&(T=!1);let B=!(V&&S)||A;T&&B&&c.push(...C.map(t=>({animation:t,options:{type:n}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=n(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),c.push({animation:e})}let v=!!c.length;return o&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),o=!1,v?i(c):Promise.resolve()}
2return{animateChanges:a,setActive:function(e,i){if(s[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),s[e].isActive=i;let n=a(e);for(let t in s)s[t].protectedKeys={};return n},setAnimateFunction:function(e){i=e(t)},getState:()=>s,reset:()=>{s=F(),o=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();e(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends O{constructor(){super(...arguments),this.id=U++}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,onExitComplete:e}=this.node.presenceContext||{};
2e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}}],48318);var I=t.i(32574),N=t.i(964717),G=t.i(772971),W=t.i(313559),H=t.i(261691);function $(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",0,$],581818);var z=t.i(571335);function X(t){return{point:{x:t.pageX,y:t.pageY}}}let Y=t=>e=>(0,z.isPrimaryPointer)(e)&&t(e,X(e));function K(t,e,i,s){return $(t,e,Y(i),s)}function q({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}t.s(["addPointerInfo",0,Y,"extractEventInfo",0,X],410959);function Z(t){return t.max-t.min}function _(t,e,i,s=.5){t.origin=s,t.originPoint=(0,N.mixNumber)(e.min,e.max,t.origin),t.scale=Z(i)/Z(e),t.translate=(0,N.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 J(t,e,i){t.min=i.min+e.min,t.max=t.min+Z(e)}function Q(t,e,i){t.min=e.min-i.min,t.max=t.min+Z(e)}t.s(["calcBoxDelta",0,function(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)},"calcLength",0,Z,"calcRelativeBox",0,function(t,e,i){J(t.x,e.x,i.x),J(t.y,e.y,i.y)},"calcRelativePosition",0,function(t,e,i){Q(t.x,e.x,i.x),Q(t.y,e.y,i.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],764650);let tt=()=>({translate:0,scale:1,origin:0,originPoint:0}),te=()=>({min:0,max:0}),ti=()=>({x:te(),y:te()});function ts(t){return[t("x"),t("y")]}function tn(t){return void 0===t||1===t}function to({scale:t,scaleX:e,scaleY:i}){return!tn(t)||!tn(e)||!tn(i)}function tr(t){return to(t)||ta(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ta(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["createBox",0,ti,"createDelta",0,()=>({x:tt(),y:tt()})],30687),t.s(["eachAxis",0,ts],987185);function tl(t,e,i){return i+e*(t-i)}function tu(t,e,i,s,n){return void 0!==n&&(t=tl(t,n,s)),tl(t,i,s)+e}function th(t,e=0,i=1,s,n){t.min=tu(t.min,e,i,s,n),t.max=tu(t.max,e,i,s,n)}function tc(t,{x:e,y:i}){th(t.x,e.translate,e.scale,e.originPoint),th(t.y,i.translate,i.scale,i.originPoint)}function td(t,e){t.min=t.min+e,t.max=t.max+e}function tm(t,e,i,s,n=.5){let o=(0,N.mixNumber)(t.min,t.max,n);
2th(t,e,i,o,s)}function tp(t,e){tm(t.x,e.x,e.scaleX,e.scale,e.originX),tm(t.y,e.y,e.scaleY,e.scale,e.originY)}function tf(t,e){return q(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function tg(t,e,i){let s=tf(t,i),{scroll:n}=e;return n&&(td(s.x,n.offset.x),td(s.y,n.offset.y)),s}t.s(["has2DTranslate",0,ta,"hasScale",0,to,"hasTransform",0,tr],123740),t.s(["applyBoxDelta",0,tc,"applyTreeDeltas",0,function(t,e,i,s=!1){let n,o,r=i.length;if(r){e.x=e.y=1;for(let a=0;a<r;a++){o=(n=i[a]).projectionDelta;let{visualElement:r}=n.options;(!r||!r.props.style||"contents"!==r.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tp(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,tc(t,o)),s&&tr(n.latestValues)&&tp(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,tl,"transformBox",0,tp,"translateAxis",0,td],919744),t.s(["measurePageBox",0,tg,"measureViewportBox",0,tf],887808);let tv=({current:t})=>t?t.ownerDocument.defaultView:null;function ty(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["isRefObject",0,ty],259812);var tx=t.i(209533);let tP=(t,e)=>Math.abs(t-e);class tV{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=tA(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(tP(t.x,e.x)**2+tP(t.y,e.y)**2)>=3);if(!s&&!n)return;let{point:o}=i,{timestamp:a}=r.frameData;this.history.push({...o,timestamp:a});let{onStart:l,onMove:u}=this.handlers;s||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=tS(e,this.transformPagePoint),r.frame.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=tA("pointercancel"===t.type?this.lastMoveEventInfo:tS(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!(0,z.isPrimaryPointer)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const o=tS(X(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=r.frameData;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,tA(o,this.history)),this.removeListeners=(0,tx.pipe)(K(this.contextWindow,"pointermove",this.handlePointerMove),K(this.contextWindow,"pointerup",this.handlePointerUp),K(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,r.cancelFrame)(this.updatePoint)}}function tS(t,e){return e?{point:e(t.point)}:t}function tT(t,e){return{x:t.x-e.x,y:t.y-e.y}}function tA({point:t},e){return{point:t,delta:tT(t,tC(e)),offset:tT(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=tC(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,y.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let n=(0,y.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===n)return{x:0,y:0};let o={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e)}}function tC(t){return t[t.length-1]}var tD=t.i(818680),tw=t.i(174104);function tb(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 tM(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:tR(t,e),max:tR(t,i)}}function tR(t,e){return"number"==typeof t?t:t[e]||0}let tB=new WeakMap;class tL{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ti(),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(X(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,G.setDragLock)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ts(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=Z(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&r.frame.postRender(()=>n(t,e)),d(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)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)},a=(t,e)=>this.stop(t,e),l=()=>ts(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tV(t,{onSessionStart:s,onStart:n,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:tv(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&r.frame.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tj(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,N.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,N.mixNumber)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&ty(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:tb(t.x,i,n),y:tb(t.y,e,s)}}(i.layoutBox,t):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")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ts(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ty(e))return!1;let s=e.current;(0,H.invariant)(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=tg(s,n.root,this.visualElement.getTransformPagePoint()),r=(t=n.layout.layoutBox,{x:tM(t.x,o.x),y:tM(t.y,o.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=q(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(ts(r=>{if(!tj(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let u={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,u)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return d(this.visualElement,t),i.start(A(t,i,0,e,this.visualElement,!1))}stopAnimation(){ts(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ts(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ts(e=>{let{drag:i}=this.getProps();if(!tj(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,N.mixNumber)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ty(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ts(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let o,r,a,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],o=.5,r=Z(i),(a=Z(n))>r?o=(0,tD.progress)(n.min,n.max-r,i.min):r>a&&(o=(0,tD.progress)(i.min,i.max-a,n.min)),(0,tw.clamp)(0,1,o))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ts(e=>{if(!tj(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,N.mixNumber)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;tB.set(this.visualElement,this);let t=K(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ty(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()),r.frame.read(e);let n=$(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ts(e=>{let i=this.getAxisMotionValue(e);
2i&&(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 tj(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}t.s(["DragGesture",0,class extends O{constructor(t){super(t),this.removeGroupControls=I.noop,this.removeListeners=I.noop,this.controls=new tL(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}],825293);let tk=t=>(e,i)=>{t&&r.frame.postRender(()=>t(e,i))};t.s(["PanGesture",0,class extends O{constructor(){super(...arguments),this.removePointerDownListener=I.noop}onPointerDown(t){this.session=new tV(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tv(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tk(t),onStart:tk(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&r.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=K(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}],719279)},233750,t=>{"use strict";let e=(0,t.i(769792).createContext)(null);t.s(["PresenceContext",0,e])},243015,t=>{"use strict";var e=t.i(769792),i=t.i(233750);t.s(["usePresence",0,function(t=!0){let s=(0,e.useContext)(i.PresenceContext);if(null===s)return[!0,null];let{isPresent:n,onExitComplete:o,register:r}=s,a=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return r(a)},[t]);let l=(0,e.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!n&&o?[!1,l]:[!0]}])},73143,t=>{"use strict";let e=(0,t.i(769792).createContext)({});t.s(["LayoutGroupContext",0,e])},891195,992153,977747,916694,609420,252370,520326,t=>{"use strict";var e=t.i(825293),i=t.i(719279),s=t.i(367991),n=t.i(734639),o=t.i(526973),r=t.i(769792),a=t.i(243015),l=t.i(73143);let u=(0,r.createContext)({});t.s(["SwitchLayoutGroupContext",0,u],992153);let h={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var c=t.i(313559);function d(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let m={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!c.px.test(t))return t;else t=parseFloat(t);let i=d(t,e.target.x),s=d(t,e.target.y);return`${i}% ${s}%`}};var p=t.i(214668),f=t.i(964717),g=t.i(760167);let v={};function y(t){for(let e in t)v[e]=t[e],(0,g.isCSSVariableName)(e)&&(v[e].isCSSVariable=!0)}t.s(["addScaleCorrector",0,y,"scaleCorrectors",0,v],977747);class x extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;y(V),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()})),h.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,s||t.layoutDependency!==e||void 0===e||t.isPresent!==o?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||n.frame.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),o.microtask.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 P(t){let[e,i]=(0,a.usePresence)(),n=(0,r.useContext)(l.LayoutGroupContext);return(0,s.jsx)(x,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(u),isPresent:e,safeToRemove:i})}let V={borderRadius:{...m,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomLeftRadius:m,borderBottomRightRadius:m,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=p.complex.parse(t);if(s.length>5)return t;let n=p.complex.createTransformer(t),o=+("number"!=typeof s[0]),r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,f.mixNumber)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};
2var S=t.i(269958),T=t.i(210773),A=t.i(210990),C=t.i(424830),D=t.i(559330),w=t.i(994440),b=t.i(820321),M=t.i(607215),E=t.i(174104),R=t.i(32574),B=t.i(597209),L=t.i(359110),j=t.i(212644),k=t.i(339839);let F=(t,e)=>t.depth-e.depth;class O{constructor(){this.children=[],this.isDirty=!1}add(t){(0,k.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,k.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F),this.isDirty=!1,this.children.forEach(t)}}function U(t){return(0,B.isMotionValue)(t)?t.get():t}t.i(869308),t.s(["resolveMotionValue",0,U],916694);var I=t.i(818680),N=t.i(865520);let G=["TopLeft","TopRight","BottomLeft","BottomRight"],W=G.length,H=t=>"string"==typeof t?parseFloat(t):t,$=t=>"number"==typeof t||c.px.test(t);function z(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let X=K(0,.5,N.circOut),Y=K(.5,.95,R.noop);function K(t,e,i){return s=>s<t?0:s>e?1:i((0,I.progress)(t,e,s))}function q(t,e){t.min=e.min,t.max=e.max}function Z(t,e){q(t.x,e.x),q(t.y,e.y)}function _(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var J=t.i(919744),Q=t.i(764650);function tt(t,e,i,s,n){return t-=e,t=(0,J.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,J.scalePoint)(t,1/n,s)),t}function te(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(c.percent.test(e)&&(e=parseFloat(e),e=(0,f.mixNumber)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,f.mixNumber)(o.min,o.max,s);t===o&&(a-=e),t.min=tt(t.min,e,i,a,n),t.max=tt(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let ti=["x","scaleX","originX"],ts=["y","scaleY","originY"];function tn(t,e,i,s){te(t.x,e,ti,i?i.x:void 0,s?s.x:void 0),te(t.y,e,ts,i?i.y:void 0,s?s.y:void 0)}var to=t.i(30687);function tr(t){return 0===t.translate&&1===t.scale}function ta(t){return tr(t.x)&&tr(t.y)}function tl(t,e){return t.min===e.min&&t.max===e.max}function tu(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function th(t,e){return tu(t.x,e.x)&&tu(t.y,e.y)}function tc(t){return(0,Q.calcLength)(t.x)/(0,Q.calcLength)(t.y)}function td(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tm{constructor(){this.members=[]}add(t){(0,k.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,k.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade: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 tp=t.i(987185),tf=t.i(123740);let tg={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tv=["","X","Y","Z"],ty={visibility:"hidden"},tx=0;function tP(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tV({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=tx++,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,S.statsBuffer.value&&(tg.nodes=tg.calculatedTargetDeltas=tg.calculatedProjections=0),this.nodes.forEac
2h(tA),this.nodes.forEach(tR),this.nodes.forEach(tB),this.nodes.forEach(tC),S.statsBuffer.addProjectionMetrics&&S.statsBuffer.addProjectionMetrics(tg)},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 O)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new M.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){if(this.instance)return;this.isSVG=(0,T.isSVGElement)(e)&&!(0,A.isSVGSVGElement)(e),this.instance=e;let{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=D.time.now(),e=({timestamp:i})=>{let o=i-t;o>=250&&((0,n.cancelFrame)(e),s(o-250))},n.frame.setup(e,!0),i=()=>(0,n.cancelFrame)(e),h.hasAnimatedSinceResize&&(h.hasAnimatedSinceResize=!1,this.nodes.forEach(tE))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||tU,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!th(this.targetLayout,s),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,C.getValueTransition)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||tE(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,this.eventHandlers.clear(),(0,n.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tL),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,j.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",n.frame,!(t||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(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.forEac
2h(tw);return}this.isUpdating||this.nodes.forEach(tb),this.isUpdating=!1,this.nodes.forEach(tM),this.nodes.forEach(tS),this.nodes.forEach(tT),this.clearAllSnapshots();let t=D.time.now();n.frameData.delta=(0,E.clamp)(0,1e3/60,t-n.frameData.timestamp),n.frameData.timestamp=t,n.frameData.isProcessing=!0,n.frameSteps.update.process(n.frameData),n.frameSteps.preRender.process(n.frameData),n.frameSteps.render.process(n.frameData),n.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,o.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tD),this.sharedNodes.forEach(tj)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,n.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){n.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,Q.calcLength)(this.snapshot.measuredBox.x)||(0,Q.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,to.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&&this.instance){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&&!ta(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tf.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)),tG((e=s).x),tG(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,to.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tH))){let{scroll:t}=this.root;t&&((0,J.translateAxis)(e.x,t.offset.x),(0,J.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,to.createBox)();if(Z(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&Z(e,t),(0,J.translateAxis)(e.x,n.offset.x),(0,J.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,to.createBox)();Z(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,J.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tf.hasTransform)(s.latestValues)&&(0,J.transformBox)(i,s.latestValues)}return(0,tf.hasTransform)(this.latestValues)&&(0,J.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,to.createBox)();Z(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tf.hasTransform)(i.latestValues))continue;(0,tf.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,to.createBox)();Z(s,i.measurePageBox()),tn(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tf.hasTransform)(this.latestValues)&&tn(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!==n.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:o}=this.options;
2if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=n.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,to.createBox)(),this.relativeTargetOrigin=(0,to.createBox)(),(0,Q.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,to.createBox)(),this.targetWithTransforms=(0,to.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,Q.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),(0,J.applyBoxDelta)(this.target,this.targetDelta)):Z(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,to.createBox)(),this.relativeTargetOrigin=(0,to.createBox)(),(0,Q.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),Z(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}S.statsBuffer.value&&tg.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tf.hasScale)(this.parent.latestValues)||(0,tf.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(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===n.frameData.timestamp&&(i=!1),i)return;let{layout:s,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||!(s||o))return;Z(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,J.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,to.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(_(this.prevProjectionDelta.x,this.projectionDelta.x),_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,Q.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&td(this.projectionDelta.x,this.prevProjectionDelta.x)&&td(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),S.statsBuffer.value&&tg.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,to.createDelta)(),this.projectionDelta=(0,to.createDelta)(),this.projectionDeltaWithTransform=(0,to.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=(0,to.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,to.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
2!0===this.options.crossfade&&!this.path.some(tO));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tk(r.x,t.x,s),tk(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,p,g,v,y;(0,Q.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,g=this.relativeTargetOrigin,v=a,y=s,tF(p.x,g.x,v.x,y),tF(p.y,g.y,v.y,y),i&&(u=this.relativeTarget,m=i,tl(u.x,m.x)&&tl(u.y,m.y))&&(this.isProjectionDirty=!1),i||(i=(0,to.createBox)()),Z(i,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,f.mixNumber)(0,i.opacity??1,X(s)),t.opacityExit=(0,f.mixNumber)(e.opacity??1,0,Y(s))):o&&(t.opacity=(0,f.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<W;n++){let o=`border${G[n]}Radius`,r=z(e,o),a=z(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||$(r)===$(a)?(t[o]=Math.max((0,f.mixNumber)(H(r),H(a),s),0),(c.percent.test(a)||c.percent.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,f.mixNumber)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,n.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=n.frame.update(()=>{var e,i,s;let n;h.hasAnimatedSinceResize=!0,w.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,b.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{w.activeAnimations.layout--},onComplete:()=>{w.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,B.isMotionValue)(e)?e:(0,b.motionValue)(e)).start((0,L.animateMotionValue)("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tW(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,to.createBox)();let e=(0,Q.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,Q.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}Z(e,i),(0,J.transformBox)(e,n),(0,Q.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tm),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
2return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let 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&&tP("z",t,s,this.animationValues);for(let e=0;e<tv.length;e++)tP(`rotate${tv[e]}`,t,s,this.animationValues),tP(`skew${tv[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){if(!this.instance||this.isSVG)return;if(!this.isVisible)return ty;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=U(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=U(t?.pointerEvents)||""),this.hasProjected&&!(0,tf.hasTransform)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let n=s.animationValues||s.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=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,n),i&&(e.transform=i(n,e.transform));let{x:o,y:r}=this.projectionDelta;for(let t in e.transformOrigin=`${100*o.origin}% ${100*r.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,v){if(void 0===n[t])continue;let{correct:i,applyTo:o,isCSSVariable:r}=v[t],a="none"===e.transform?n[t]:i(n[t],s);if(o){let t=o.length;for(let i=0;i<t;i++)e[o[i]]=a}else r?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=s===this?U(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tw),this.root.sharedNodes.clear()}}}function tS(t){t.updateLayout()}function tT(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,o=e.source!==t.layout.source;"size"===n?(0,tp.eachAxis)(t=>{let s=o?e.measuredBox[t]:e.layoutBox[t],n=(0,Q.calcLength)(s);s.min=i[t].min,s.max=s.min+n}):tW(n,e.layoutBox,i)&&(0,tp.eachAxis)(s=>{let n=o?e.measuredBox[s]:e.layoutBox[s],r=(0,Q.calcLength)(i[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,to.createDelta)();(0,Q.calcBoxDelta)(r,i,e.layoutBox);let a=(0,to.createDelta)();o?(0,Q.calcBoxDelta)(a,t.applyTransform(s,!0),e.measuredBox):(0,Q.calcBoxDelta)(a,i,e.layoutBox);let l=!ta(r),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=(0,to.createBox)();(0,Q.calcRelativePosition)(r,e.layoutBox,n.layoutBox);let a=(0,to.createBox)();(0,Q.calcRelativePosition)(a,i,o.layoutBox),th(r,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tA(t){S.statsBuffer.value&&tg.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
2isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tC(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tD(t){t.clearSnapshot()}function tw(t){t.clearMeasurements()}function tb(t){t.isLayoutDirty=!1}function tM(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tR(t){t.resolveTargetDelta()}function tB(t){t.calcProjection()}function tL(t){t.resetSkewAndRotation()}function tj(t){t.removeLeadSnapshot()}function tk(t,e,i){t.translate=(0,f.mixNumber)(e.translate,0,i),t.scale=(0,f.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tF(t,e,i,s){t.min=(0,f.mixNumber)(e.min,i.min,s),t.max=(0,f.mixNumber)(e.max,i.max,s)}function tO(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tU={duration:.45,ease:[.4,0,.1,1]},tI=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tN=tI("applewebkit/")&&!tI("chrome/")?Math.round:R.noop;function tG(t){t.min=tN(t.min),t.max=tN(t.max)}function tW(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,Q.isNear)(tc(e),tc(i),.2)}function tH(t){return t!==t.root&&t.scroll?.wasRoot}var t$=t.i(581818);let tz=tV({attachResizeListener:(t,e)=>(0,t$.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tX={current:void 0},tY=tV({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tX.current){let t=new tz({});t.mount(window),t.setOptions({layoutScroll:!0}),tX.current=t}return tX.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tK={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tY,MeasureLayout:P}};t.s(["drag",0,tK],891195);var tq=t.i(729361),tZ=t.i(410959),t_=t.i(137779);function tJ(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let o=s["onHover"+i];o&&n.frame.postRender(()=>o(e,(0,tZ.extractEventInfo)(e)))}class tQ extends t_.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,tq.hover)(t,(t,e)=>(tJ(this.node,e,"Start"),t=>tJ(this.node,t,"End"))))}unmount(){}}var t0=t.i(209533),t1=t_;class t9 extends t1.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,t0.pipe)((0,t$.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,t$.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var t2=t.i(802862),t3=t_;function t7(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let o=s["onTap"+("End"===i?"":i)];o&&n.frame.postRender(()=>o(e,(0,tZ.extractEventInfo)(e)))}class t5 extends t3.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,t2.press)(t,(t,e)=>(t7(this.node,e,"Start"),(t,{success:e})=>t7(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var t6=t_;let t8=new WeakMap,t4=new WeakMap,et=t=>{let e=t8.get(t.target);e&&e(t)},ee=t=>{t.forEach(et)},ei={some:0,all:1};class es extends t6.Feature{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:n,amount:o="some",once:r}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:ei[o]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;t4.has(i)||t4.set(i,{});let s=t4.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(ee,{root:t,...e})),s[n]}(a),t8.set(t,l),e.observe(t),()=>{t8.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(){}}t.s(["gestureAnimations",0,{inView:{Feature:es},tap:{Feature:t5},focus:{Feature:t9},hover:{Feature:tQ}}],609420),t.s(["layout",0,{layout:{ProjectionNode:tY,MeasureLayout:P}}],252370);let en=(0,r.createContext)({strict:!1});t.s(["LazyContext",0,en],520326)},57391,t=>{"use strict";let e=(0,t.i(769792).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},855102,5125,848540,t=>{"use strict";var e=t.i(769792);let i=(0,e.createContext)({});t.s(["MotionContext",0,i],855102);var s=t.i(734368),n=t.i(912647),o=t.i(649135);function r(t){return(0,s.isAnimationControls)(t.animate)||o.variantProps.some(e=>(0,n.isVariantLabel)(t[e]))}function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["isControllingVariants",0,r,"isVariantNode",0,function(t){return!!(r(t)||t.variants)}],5125),t.s(["useCreateMotionContext",0,function(t){let{initial:s,animate:o}=function(t,e){if(r(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,n.isVariantLabel)(e)?e:void 0,animate:(0,n.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i));return(0,e.useMemo)(()=>({initial:s,animate:o}),[a(s),a(o)])}],848540)},927178,t=>{"use strict";let e="u">typeof window;t.s(["isBrowser",0,e])},666010,813020,902634,148868,t=>{"use strict";let e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(let t in e)i[t]={isEnabled:i=>e[t].some(t=>!!i[t])};t.s(["featureDefinitions",0,i],666010),t.s(["loadFeatures",0,function(t){for(let e in t)i[e]={...i[e],...t[e]}}],813020);let s=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,s],902634);var n=t.i(769792),o=t.i(259812);
2t.s(["useMotionRef",0,function(t,e,i){return(0,n.useCallback)(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),i&&("function"==typeof i?i(s):(0,o.isRefObject)(i)&&(i.current=s))},[e])}],148868)},286167,t=>{"use strict";var e=t.i(769792);let i=t.i(927178).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i])},32926,955539,499220,848693,626478,59301,393316,964491,269291,t=>{"use strict";t.i(562876);var e,i=t.i(367991),s=t.i(769792),n=t.i(73143),o=t.i(520326),r=t.i(57391),a=t.i(855102),l=t.i(848540),u=t.i(927178),h=t.i(666010),c=t.i(813020),d=t.i(902634),m=t.i(148868),p=t.i(526973),f=t.i(86265),g=t.i(233750),v=t.i(992153),y=t.i(259812),x=t.i(286167);t.s(["createRendererMotionComponent",0,function({preloadedFeatures:t,createVisualElement:e,useRender:P,useVisualState:V,Component:S}){function T(t,c){let d,T={...(0,s.useContext)(r.MotionConfigContext),...t,layoutId:function({layoutId:t}){let e=(0,s.useContext)(n.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:A}=T,C=(0,l.useCreateMotionContext)(t),D=V(t,A);if(!A&&u.isBrowser){(0,s.useContext)(o.LazyContext).strict;let t=function(t){let{drag:e,layout:i}=h.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(T);d=t.MeasureLayout,C.visualElement=function(t,e,i,n,l){let{visualElement:u}=(0,s.useContext)(a.MotionContext),h=(0,s.useContext)(o.LazyContext),c=(0,s.useContext)(g.PresenceContext),d=(0,s.useContext)(r.MotionConfigContext).reducedMotion,m=(0,s.useRef)(null);n=n||h.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:u,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let P=m.current,V=(0,s.useContext)(v.SwitchLayoutGroupContext);P&&!P.projection&&l&&("html"===P.type||"svg"===P.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||a&&(0,y.isRefObject)(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u})}(m.current,i,l,V);let S=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{P&&S.current&&P.update(i,c)});let T=i[f.optimizedAppearDataAttribute],A=(0,s.useRef)(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return(0,x.useIsomorphicLayoutEffect)(()=>{P&&(S.current=!0,window.MotionIsMounted=!0,P.updateFeatures(),p.microtask.render(P.render),A.current&&P.animationState&&P.animationState.animateChanges())}),(0,s.useEffect)(()=>{P&&(!A.current&&P.animationState&&P.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),A.current=!1))}),P}(S,D,T,e,t.ProjectionNode)}return(0,i.jsxs)(a.MotionContext.Provider,{value:C,children:[d&&C.visualElement?(0,i.jsx)(d,{visualElement:C.visualElement,...T}):null,P(S,t,(0,m.useMotionRef)(D,C.visualElement,c),D,A,C.visualElement)]})}t&&(0,c.loadFeatures)(t),T.displayName=`motion.${"string"==typeof S?S:`create(${S.displayName??S.name??""})`}`;let A=(0,s.forwardRef)(T);return A[d.motionComponentSymbol]=S,A}],32926);var P=t.i(597209),V=t.i(692250),S=t.i(977747);function T(t,{layout:e,layoutId:i}){return V.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!S.scaleCorrectors[t]||"opacity"===t)}t.s(["isForcedMotionValue",0,T],955539);var A=t.i(760167),C=t.i(226374),D=t.i(547778);let w={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},b=V.transformPropOrder.length;function M(t,e,i){let{style:s,vars:n,transformOrigin:o}=t,r=!1,a=!1;for(let t in e){let i=e[t];if(V.transformProps.has(t)){r=!0;continue}if((0,A.isCSSVariableName)(t)){n[t]=i;continue}{let e=(0,C.getValueAsType)(i,D.numberValueTypes[t]);t.startsWith("origin")?(a=!0,o[t]=e):s[t]=e}}
2if(!e.transform&&(r||i?s.transform=function(t,e,i){let s="",n=!0;for(let o=0;o<b;o++){let r=V.transformPropOrder[o],a=t[r];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!r.startsWith("scale"):0===parseFloat(a))||i){let t=(0,C.getValueAsType)(a,D.numberValueTypes[r]);if(!l){n=!1;let e=w[r]||r;s+=`${e}(${t}) `}i&&(e[r]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;s.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",0,M],499220);let E=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R(t,e,i){for(let s in e)(0,P.isMotionValue)(e[s])||T(s,i)||(t[s]=e[s])}t.s(["createHtmlRenderState",0,E],848693);var B=t.i(313559);let L={offset:"stroke-dashoffset",array:"stroke-dasharray"},j={offset:"strokeDashoffset",array:"strokeDasharray"};function k(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:o=1,pathOffset:r=0,...a},l,u,h){if(M(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let o=n?L:j;t[o.offset]=B.px.transform(-s);let r=B.px.transform(e),a=B.px.transform(i);t[o.array]=`${r} ${a}`}(c,n,o,r,!1)}t.s(["buildSVGAttrs",0,k],626478);let F=()=>({...E(),attrs:{}});t.s(["createSvgRenderState",0,F],59301);let O=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["isSVGTag",0,O],393316);let U=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 I(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||U.has(t)}let N=t=>!I(t);try{(e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(N=t=>t.startsWith("on")?!I(t):e(t))}catch{}let G=["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 W(t){if("string"!=typeof t||t.includes("-"));else if(G.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,W],964491),t.s(["createUseRender",0,function(t=!1){return(e,i,n,{latestValues:o},r)=>{let a=(W(e)?function(t,e,i,n){let o=(0,s.useMemo)(()=>{let i=F();return k(i,e,O(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};R(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let i,n,o={},r=(i=t.style||{},R(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=E();return M(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o})(i,o,r,e),l=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(N(n)||!0===i&&I(n)||!e&&!I(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(i,"string"==typeof e,t),u=e!==s.Fragment?{...l,...a,ref:n}:{},{children:h}=i,c=(0,s.useMemo)(()=>(0,P.isMotionValue)(h)?h.get():h,[h]);return(0,s.createElement)(e,{...u,children:c})}}],269291)},454522,t=>{"use strict";var e=t.i(769792);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},396092,t=>{"use strict";var e,i,s=t.i(193377),n=t.i(48318),o=t.i(891195),r=t.i(609420),a=t.i(252370),l=t.i(32926),u=t.i(269291),h=t.i(964491),c=t.i(769792),d=t.i(
2734368),m=t.i(855102),p=t.i(233750),f=t.i(5125),g=t.i(842573),v=t.i(454522),y=t.i(916694);let x=t=>(e,i)=>{let s=(0,c.useContext)(m.MotionContext),n=(0,c.useContext)(p.PresenceContext),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},o=s(t,{});for(let t in o)n[t]=(0,y.resolveMotionValue)(o[t]);let{initial:r,animate:a}=t,l=(0,f.isControllingVariants)(t),u=(0,f.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===r)?a:r;if(c&&"boolean"!=typeof c&&!(0,d.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=(0,g.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=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?o():(0,v.useConstant)(o)};var P=t.i(597209),V=t.i(955539);function S(t,e,i){let{style:s}=t,n={};for(let o in s)((0,P.isMotionValue)(s[o])||e.style&&(0,P.isMotionValue)(e.style[o])||(0,V.isForcedMotionValue)(o,t)||i?.getValue(o)?.liveStyle!==void 0)&&(n[o]=s[o]);return n}let T={useVisualState:x({scrapeMotionValuesFromProps:S,createRenderState:t.i(848693).createHtmlRenderState})};var A=t.i(59301),C=t.i(692250);function D(t,e,i){let s=S(t,e,i);for(let i in t)((0,P.isMotionValue)(t[i])||(0,P.isMotionValue)(e[i]))&&(s[-1!==C.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let w={useVisualState:x({scrapeMotionValuesFromProps:D,createRenderState:A.createSvgRenderState})};var b=t.i(379132),M=t.i(760167),E=t.i(887808),R=t.i(995283);t.i(562876);var B=t.i(878787),L=t.i(559330),j=t.i(734639),k=t.i(820321),F=t.i(672925),O=t.i(214668),U=t.i(9290),I=t.i(842298),N=t.i(313251),G=t.i(607215),W=t.i(666010),H=t.i(30687),$=t.i(927178);let z={current:null},X={current:!1},Y=new WeakMap,K=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class q{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=B.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=L.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,j.frame.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.blockInitialAnimation=!!n,this.isControllingVariants=(0,f.isControllingVariants)(e),this.isVariantNode=(0,f.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&(0,P.isMotionValue)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,Y.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),X.current||function(){if(X.current=!0,$.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>z.current=t.matches;t.addListener(e),e()}else z.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||z.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,j.cancelFrame)(this.notifyUpdate),(0,j.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=C.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&j.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),o(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in W.featureDefinitions){let e=W.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
2e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,H.createBox)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<K.length;e++){let i=K[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],o=i[s];if((0,P.isMotionValue)(n))t.addValue(s,n);else if((0,P.isMotionValue)(o))t.addValue(s,(0,k.motionValue)(n,{owner:t}));else if(o!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,k.motionValue)(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,k.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,I.isNumericalString)(i)||(0,N.isZeroValueString)(i))?i=parseFloat(i):!(0,F.findValueType)(i)&&O.complex.test(e)&&(i=(0,U.getAnimatableNone)(t,e)),this.setBaseTarget(t,(0,P.isMotionValue)(i)?i.get():i)),(0,P.isMotionValue)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=(0,g.resolveVariantFromProps)(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,P.isMotionValue)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new G.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Z extends q{constructor(){super(...arguments),this.KeyframeResolver=R.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,P.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var _=t.i(499220);function J(t,{style:e,vars:i},s,n){for(let o in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(o,i[o])}class Q extends Z{constructor(){super(...arguments),this.type="html",this.renderInstance=J}readValueFromInstance(t,e){if(C.transformProps.has(e))return this.projection?.isProjecting?(0,b.defaultTransformValue)(e):(0,b.readTransformValue)(t,e);{let i=window.getComputedStyle(t),s=((0,M.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,E.measureViewportBox)(t,e)}build(t,e,i){(0,_.buildHTMLStyles)(t,e,i.transformTemplate)}
2scrapeMotionValuesFromProps(t,e,i){return S(t,e,i)}}var tt=t.i(18745),te=t.i(49262),ti=t.i(626478);let ts=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var tn=t.i(393316);class to extends Z{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(C.transformProps.has(e)){let t=(0,tt.getDefaultValueType)(e);return t&&t.default||0}return e=ts.has(e)?e:(0,te.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return D(t,e,i)}build(t,e,i){(0,ti.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in J(t,e,void 0,s),e.attrs)t.setAttribute(ts.has(i)?i:(0,te.camelToDash)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,tn.isSVGTag)(t.tagName),super.mount(t)}}let tr=(e={...n.animations,...r.gestureAnimations,...o.drag,...a.layout},i=(t,e)=>(0,h.isSVGComponent)(t)?new to(e):new Q(e,{allowProjection:t!==c.Fragment}),function(t,{forwardMotionProps:s}={forwardMotionProps:!1}){let n={...(0,h.isSVGComponent)(t)?w:T,preloadedFeatures:e,useRender:(0,u.createUseRender)(s),createVisualElement:i,Component:t};return(0,l.createRendererMotionComponent)(n)}),ta=(0,s.createDOMMotionComponentProxy)(tr);t.s(["motion",0,ta],396092)}]); 3 4//# debugId=3df57b72-253c-90e6-b04a-25b0b9fa713b 5//# sourceMappingURL=3404oemgta4tk.js.map
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.