"use strict"; !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="13ff5038-e711-585a-9bba-588e6172973f")}catch(e){}}(); (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7223],{56735:(t,e,i)=>{i.d(e,{L:()=>L});var s=i(19912);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function n(t,e,i,n){if(t===e&&i===n)return s.l;let o=e=>(function(t,e,i,s,n){let o,a;let l=0;do(o=r(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:r(o(t),e,n)}let o=n(.42,0,1,1),a=n(0,0,.58,1),l=n(.42,0,.58,1);var h=i(95028),u=i(12533),d=i(751),c=i(12442),p=i(47377);let m=n(.33,1.53,.69,.99),f=(0,p.G)(m),v=(0,c.V)(f),g={linear:s.l,easeIn:o,easeInOut:l,easeOut:a,circIn:d.po,circInOut:d.tn,circOut:d.yT,backIn:f,backInOut:v,backOut:m,anticipate:t=>(t*=2)<1?.5*f(t):.5*(2-Math.pow(2,-10*(t-1)))},y=t=>{if(Array.isArray(t)){(0,u.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return n(e,i,s,r)}return"string"==typeof t?((0,u.V)(void 0!==g[t],`Invalid easing type '${t}'`),g[t]):t};var x=i(94986),P=i(74756);function T({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let r=(0,h.h)(s)?s.map(y):y(s),n={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,P.Z)(e)).map(e=>e*t),a=(0,x.G)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||l).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(n.value=a(e),n.done=e>=t,n)}}var b=i(45568),V=i(54585);function A({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/s),T=t=>x+P(t),A=t=>{let e=P(t),i=T(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},S=t=>{f(m.value)&&(d=t,c=(0,b.o)({keyframes:[m.value,v(m.value)],velocity:(0,V.Y)(T,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,A(t),S(t)),void 0!==d&&t>d)?c.next(t-d):(e||A(t),m)}}}var S=i(33527),w=i(30162);let D=t=>{let e=({timestamp:e})=>t(e);return{start:()=>S.Gt.update(e,!0),stop:()=>(0,S.WG)(e),now:()=>w.u.isProcessing?w.u.timestamp:performance.now()}};var E=i(23075),M=i(2366),C=i(5034);let j={decay:A,inertia:A,tween:T,keyframes:T,spring:b.o};function L({autoplay:t=!0,delay:e=0,driver:i=D,keyframes:s,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:h,onComplete:u,onUpdate:d,...c}){let p,m,f,v,g,y=1,P=!1,b=()=>{p&&p(),m=new Promise(t=>{p=t})};b();let V=j[r]||T;V!==T&&"number"!=typeof s[0]&&(v=(0,x.G)([0,100],s,{clamp:!1}),s=[0,100]);let A=V({...c,keyframes:s});"mirror"===a&&(g=V({...c,keyframes:[...s].reverse(),velocity:-(c.velocity||0)}));let S="idle",w=null,L=null,R=null;null===A.calculatedDuration&&n&&(A.calculatedDuration=(0,C.t)(A));let{calculatedDuration:k}=A,F=1/0,B=1/0;null!==k&&(B=(F=k+o)*(n+1)-o);let U=0,O=t=>{if(null===L)return;y>0&&(L=Math.min(L,t));let i=(U=null!==w?w:(t-L)*y)-e,r=i<0;U=Math.max(i,0),"finished"===S&&null===w&&(U=B);let l=U,h=A;if(n){let t=U/F,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--;let s=!!((e=Math.min(e,n+1))%2);s&&("reverse"===a?(i=1-i,o&&(i-=o/F)):"mirror"===a&&(h=g));let r=(0,E.q)(0,1,i);U>B&&(r="reverse"===a&&s?1:0),l=r*F}let u=r?{done:!1,value:s[0]}:h.next(l);v&&(u.value=v(u.value));let{done:c}=u;r||null===k||(c=U>=B);let p=null===w&&("finished"===S||"running"===S&&c||y<0&&U<=0);return d&&d(u.value),p&&N(),u},I=()=>{f&&f.stop(),f=void 0},G=()=>{S="idle",I(),b(),L=R=null},N=()=>{S="finished",u&&u(),I(),b()},$=()=>{if(P)return;f||(f=i(O));let t=f.now();l&&l(),null!==w?L=t-w:L&&"finished"!==S||(L=t),R=L,w=null,S="running",f.start()};t&&$();let H={then:(t,e)=>m.then(t,e),get time(){return(0,M.X)(U)},set time(newTime){U=newTime=(0,M.f)(newTime),null===w&&f&&0!==y?L=f.now()-newTime/y:w=newTime},get duration(){let t=null===A.calculatedDuration?(0,C.t)(A):A.calculatedDuration;return(0,M.X)(t)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!f)return;y=newSpeed,H.time=(0,M.X)(U)},get state(){return S},play:$,pause:()=>{S="paused",w=U},stop:()=>{P=!0,"idle"!==S&&(S="idle",h&&h(),G())},cancel:()=>{null!==R&&O(R),G()},complete:()=>{S="finished"},sample:t=>(L=0,O(t))};return H}},45568:(t,e,i)=>{i.d(e,{o:()=>d});var s=i(2366),r=i(54585),n=i(12533),o=i(23075);function a(t,e){return t*Math.sqrt(1-e*e)}let l=["duration","bounce"],h=["stiffness","damping","mass"];function u(t,e){return e.some(e=>void 0!==t[e])}function d({keyframes:t,restDelta:e,restSpeed:i,...d}){let c;let p=t[0],m=t[t.length-1],f={done:!1,value:p},{stiffness:v,damping:g,mass:y,velocity:x,duration:P,isResolvedFromDuration:T}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!u(t,h)&&u(t,l)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let l,h;(0,n.$)(t<=(0,s.f)(10),"Spring duration must be 10 seconds or less");let u=1-e;u=(0,o.q)(.05,1,u),t=(0,o.q)(.01,10,(0,s.X)(t)),u<1?(l=e=>{let s=e*u,r=s*t;return .001-(s-i)/a(e,u)*Math.exp(-r)},h=e=>{let s=e*u*t,r=Math.pow(u,2)*Math.pow(e,2)*t,n=Math.exp(-s),o=a(Math.pow(e,2),u);return(s*i+i-r)*n*(-l(e)+.001>0?-1:1)/o}):(l=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let d=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(l,h,5/t);if(t=(0,s.f)(t),isNaN(d))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(d,2)*r;return{stiffness:e,damping:2*u*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(d),b=x?-(0,s.X)(x):0,V=g/(2*Math.sqrt(v*y)),A=m-p,S=(0,s.X)(Math.sqrt(v/y)),w=5>Math.abs(A);if(i||(i=w?.01:2),e||(e=w?.005:.5),V<1){let t=a(S,V);c=e=>m-Math.exp(-V*S*e)*((b+V*S*A)/t*Math.sin(t*e)+A*Math.cos(t*e))}else if(1===V)c=t=>m-Math.exp(-S*t)*(A+(b+S*A)*t);else{let t=S*Math.sqrt(V*V-1);c=e=>{let i=Math.exp(-V*S*e),s=Math.min(t*e,300);return m-i*((b+V*S*A)*Math.sinh(s)+t*A*Math.cosh(s))/t}}return{calculatedDuration:T&&P||null,next:t=>{let s=c(t);if(T)f.done=t>=P;else{let n=b;0!==t&&(n=V<1?(0,r.Y)(c,t,s):0);let o=Math.abs(n)<=i,a=Math.abs(m-s)<=e;f.done=o&&a}return f.value=f.done?m:s,f}}}},5034:(t,e,i)=>{i.d(e,{Y:()=>s,t:()=>r});let s=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e=s?1/0:e}},54585:(t,e,i)=>{i.d(e,{Y:()=>r});var s=i(15102);function r(t,e,i){let r=Math.max(e-5,0);return(0,s.f)(i-t(r),e-r)}},36567:(t,e,i)=>{i.d(e,{f:()=>E});var s=i(12533),r=i(2366);let n={current:!1};var o=i(33527);let a=t=>Array.isArray(t)&&"number"==typeof t[0],l=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,h={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:l([0,.65,.55,1]),circOut:l([.55,0,1,.45]),backIn:l([.31,.01,.66,-.59]),backOut:l([.33,1.53,.69,.99])},u={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},d={},c={};for(let t in u)c[t]=()=>(void 0===d[t]&&(d[t]=u[t]()),d[t]);var p=i(56735);let m=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),f=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&h[e]||a(e)||Array.isArray(e)&&e.every(t))}(e.ease);var v=i(19912),g=i(75243);let y={type:"spring",stiffness:500,damping:25,restSpeed:10},x=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),P={type:"keyframes",duration:.8},T={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(t,{keyframes:e})=>e.length>2?P:g.f.has(t)?t.startsWith("scale")?x(e[1]):y:T;var V=i(77621);let A=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(V.f.test(e)||"0"===e)&&!e.startsWith("url("));var S=i(96635),w=i(35775),D=i(61465);let E=(t,e,i,u={})=>d=>{let g=(0,D.r)(u,t)||{},y=g.delay||u.delay||0,{elapsed:x=0}=u;x-=(0,r.f)(y);let P=function(t,e,i,s){let r,n;let o=A(e,i);r=Array.isArray(i)?[...i]:[null,i];let a=void 0!==s.from?s.from:t.get(),l=[];for(let t=0;t{e.set(t),g.onUpdate&&g.onUpdate(t)},onComplete:()=>{d(),g.onComplete&&g.onComplete()}};if((0,D.D)(g)||(C={...C,...b(t,C)}),C.duration&&(C.duration=(0,r.f)(C.duration)),C.repeatDelay&&(C.repeatDelay=(0,r.f)(C.repeatDelay)),!E||!M||n.current||!1===g.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:s}){let r=()=>(i&&i(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:v.l,pause:v.l,stop:v.l,then:t=>(t(),Promise.resolve()),cancel:v.l,complete:v.l});return e?(0,p.L)({keyframes:[0,1],duration:0,delay:e,onComplete:r}):r()}(C);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:s,...n}){let u,d;if(!(c.waapi()&&m.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let v=!1,g=()=>{d=new Promise(t=>{u=t})};g();let{keyframes:y,duration:x=300,ease:P,times:T}=n;if(f(e,n)){let t=(0,p.L)({...n,repeat:0,delay:0}),e={done:!1,value:y[0]},i=[],s=0;for(;!e.done&&s<2e4;)e=t.sample(s),i.push(e.value),s+=10;T=void 0,y=i,x=s-10,P="linear"}let b=function(t,e,i,{delay:s=0,duration:r,repeat:n=0,repeatType:o="loop",ease:u,times:d}={}){let c={[e]:i};d&&(c.offset=d);let p=function t(e){if(e)return a(e)?l(e):Array.isArray(e)?e.map(t):h[e]}(u);return Array.isArray(p)&&(c.easing=p),t.animate(c,{delay:s,duration:r,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,y,{...n,duration:x,ease:P,times:T}),V=()=>b.cancel(),A=()=>{o.Gt.update(V),u(),g()};return b.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:i="loop"}){let s=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[s]}(y,n)),s&&s(),A()},{then:(t,e)=>d.then(t,e),get time(){return(0,r.X)(b.currentTime||0)},set time(newTime){b.currentTime=(0,r.f)(newTime)},get speed(){return b.playbackRate},set speed(newSpeed){b.playbackRate=newSpeed},get duration(){return(0,r.X)(x)},play:()=>{v||(b.play(),(0,o.WG)(V))},pause:()=>b.pause(),stop:()=>{if(v=!0,"idle"===b.playState)return;let{currentTime:e}=b;if(e){let i=(0,p.L)({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}A()},complete:()=>b.finish(),cancel:A}}(e,t,C);if(i)return i}return(0,p.L)(C)}},5016:(t,e,i)=>{i.d(e,{z:()=>o});var s=i(36567),r=i(34210),n=i(14499);function o(t,e,i){let o=(0,n.S)(t)?t:(0,r.O)(t);return o.start((0,s.f)("",o,e,i)),o.animation}},73301:(t,e,i)=>{i.d(e,{$:()=>h});var s=i(33527),r=i(75243);let n="data-"+(0,i(44413).I)("framerAppearId");var o=i(36567),a=i(51594),l=i(95763);function h(t,e,{delay:i=0,transitionOverride:u,type:d}={}){let{transition:c=t.getDefaultTransition(),transitionEnd:p,...m}=t.makeTargetAnimatable(e),f=t.getValue("willChange");u&&(c=u);let v=[],g=d&&t.animationState&&t.animationState.getState()[d];for(let e in m){let l=t.getValue(e),h=m[e];if(!l||void 0===h||g&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(g,e))continue;let u={delay:i,elapsed:0,...c};if(window.HandoffAppearAnimations&&!l.hasAnimated){let i=t.getProps()[n];i&&(u.elapsed=window.HandoffAppearAnimations(i,e,l,s.Gt))}l.start((0,o.f)(e,l,h,t.shouldReduceMotion&&r.f.has(e)?{type:!1}:u));let d=l.animation;(0,a.k)(f)&&(f.add(e),d.then(()=>f.remove(e))),v.push(d)}return p&&Promise.all(v).then(()=>{p&&(0,l.Uo)(t,p)}),v}},61465:(t,e,i)=>{function s({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}function r(t,e){return t[e]||t.default||t}i.d(e,{D:()=>s,r:()=>r})},751:(t,e,i)=>{i.d(e,{po:()=>n,tn:()=>a,yT:()=>o});var s=i(12442),r=i(47377);let n=t=>1-Math.sin(Math.acos(t)),o=(0,r.G)(n),a=(0,s.V)(o)},12442:(t,e,i)=>{i.d(e,{V:()=>s});let s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},47377:(t,e,i)=>{i.d(e,{G:()=>s});let s=t=>e=>1-t(1-e)},95028:(t,e,i)=>{i.d(e,{h:()=>s});let s=t=>Array.isArray(t)&&"number"!=typeof t[0]},96223:(t,e,i)=>{function s({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function n(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}i.d(e,{FY:()=>s,bS:()=>n,pA:()=>r})},99042:(t,e,i)=>{i.d(e,{OU:()=>h,Ql:()=>d,Ww:()=>f,hq:()=>n,o4:()=>l});var s=i(25020),r=i(81609);function n(t,e,i){return i+e*(t-i)}function o(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function a(t,e=0,i=1,s,r){t.min=o(t.min,e,i,s,r),t.max=o(t.max,e,i,s,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function h(t,e,i,s=!1){let n,o;let a=i.length;if(a){e.x=e.y=1;for(let h=0;h1.0000000000001||t<.999999999999?t:1}function d(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,[i,r,n]){let o=void 0!==e[n]?e[n]:.5,l=(0,s.j)(t.min,t.max,o);a(t,e[i],e[r],l,e.scale)}let p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){c(t.x,e,p),c(t.y,e,m)}},5401:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>r});let s=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:s(),y:s()}),n=()=>({min:0,max:0}),o=()=>({x:n(),y:n()})},81609:(t,e,i)=>{function s(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!s(t)||!s(e)||!s(i)}function n(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>n,vF:()=>o,vk:()=>r})},45650:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>n});var s=i(96223),r=i(99042);function n(t,e){return(0,s.FY)((0,s.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let s=n(t,i),{scroll:o}=e;return o&&((0,r.Ql)(s.x,o.offset.x),(0,r.Ql)(s.y,o.offset.y)),s}},44098:(t,e,i)=>{i.d(e,{b:()=>X});var s=i(95763),r=i(12533),n=i(19183);let o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a(t,e,i=1){(0,r.V)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[s,l]=function(t){let e=o.exec(t);if(!e)return[,];let[,i,s]=e;return[i,s]}(t);if(!s)return;let h=window.getComputedStyle(e).getPropertyValue(s);return h?h.trim():(0,n.pG)(l)?a(l,e,i+1):l}var l=i(84923),h=i(75243),u=i(10138),d=i(61351),c=i(32927),p=i(44366);let m=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),f=t=>m.has(t),v=t=>Object.keys(t).some(f),g=t=>t===c.ai||t===p.px,y=(t,e)=>parseFloat(t.split(", ")[e]),x=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/);if(r)return y(r[1],e);{let e=s.match(/^matrix\((.+)\)$/);return e?y(e[1],t):0}},P=new Set(["x","y","z"]),T=h.U.filter(t=>!P.has(t)),b={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:x(4,13),y:x(5,14)},V=(t,e,i)=>{let s=e.measureViewportBox(),r=getComputedStyle(e.current),{display:n}=r,o={};"none"===n&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=b[t](s,r)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let s=e.getValue(i);s&&s.jump(o[i]),t[i]=b[i](a,r)}),t},A=(t,e,i={},s={})=>{e={...e},s={...s};let n=Object.keys(e).filter(f),o=[],a=!1,h=[];if(n.forEach(n=>{let d;let c=t.getValue(n);if(!t.hasValue(n))return;let m=i[n],f=(0,u.n)(m),v=e[n];if((0,l.p)(v)){let t=v.length,e=null===v[0]?1:0;m=v[e],f=(0,u.n)(m);for(let i=e;i{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),a=!0),h.push(n),s[n]=void 0!==s[n]?s[n]:e[n],c.jump(v))}}),!h.length)return{target:e,transitionEnd:s};{let i=h.indexOf("height")>=0?window.pageYOffset:null,r=V(e,t,h);return o.length&&o.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),d.B&&null!==i&&window.scrollTo({top:i}),{target:r,transitionEnd:s}}},S=(t,e,i,s)=>{let r=function(t,{...e},i){let s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:i};for(let r in i&&(i={...i}),t.values.forEach(t=>{let e=t.get();if(!(0,n.pG)(e))return;let i=a(e,s);i&&t.set(i)}),e){let t=e[r];if(!(0,n.pG)(t))continue;let o=a(t,s);o&&(e[r]=o,i||(i={}),void 0===i[r]&&(i[r]=t))}return{target:e,transitionEnd:i}}(t,e,s);return function(t,e,i,s){return v(e)?A(t,e,i,s):{target:e,transitionEnd:s}}(t,e=r.target,i,s=r.transitionEnd)};var w=i(33527),D=i(5401),E=i(94642),M=i(82484),C=i(44723),j=i(78313),L=i(34210),R=i(51594),k=i(14499),F=i(84497),B=i(34992),U=i(80074),O=i(54695),I=i(86639),G=i(34747);let N=Object.keys(O.B),$=N.length,H=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],W=I._.length;class z{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,visualState:r},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>w.Gt.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=n,this.isControllingVariants=(0,F.e)(e),this.isVariantNode=(0,F.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...h}=this.scrapeMotionValuesFromProps(e,{});for(let t in h){let e=h[t];void 0!==o[t]&&(0,k.S)(e)&&(e.set(o[t],!1),(0,R.k)(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,G.C.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),C.r.current||(0,M.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||C.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in G.C.delete(this.current),this.projection&&this.projection.unmount(),(0,w.WG)(this.notifyUpdate),(0,w.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=h.f.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&w.Gt.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,s,r){let n,o;for(let t=0;t<$;t++){let i=N[t],{isEnabled:s,Feature:r,ProjectionNode:a,MeasureLayout:l}=O.B[i];a&&(n=a),s(e)&&(!this.features[i]&&r&&(this.features[i]=new r(this)),l&&(o=l))}if(!this.projection&&n){this.projection=new n(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:s,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!s||o&&(0,E.X)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,D.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(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,L.O)(e,{owner:this}),this.addValue(t,i)),i}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,s="string"==typeof i||"object"==typeof i?null===(e=(0,U.a)(this.props,i))||void 0===e?void 0:e[t]:void 0;if(i&&void 0!==s)return s;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,k.S)(r)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new j.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class X extends z{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},n){let o=(0,s.$z)(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),o&&(o=r(o))),n){(0,s.TM)(this,i,o);let t=S(this,i,o,e);e=t.transitionEnd,i=t.target}return{transition:t,transitionEnd:e,...i}}}},17223:(t,e,i)=>{i.d(e,{P:()=>eI});var s=i(3942),r=i(2138);function n(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let o=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function a(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let l=t=>e=>o(e)&&t(e,a(e));function h(t,e,i,s){return n(t,e,l(i),s)}var u=i(18172);function d(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let c=d("dragHorizontal"),p=d("dragVertical");function m(t){let e=!1;if("y"===t)e=p();else if("x"===t)e=c();else{let t=c(),i=p();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function f(){let t=m(!0);return!t||(t(),!1)}class v{constructor(t){this.isMounted=!1,this.node=t}update(){}}var g=i(33527);function y(t,e){let i="onHover"+(e?"Start":"End");return h(t.current,"pointer"+(e?"enter":"leave"),(s,r)=>{if("touch"===s.type||f())return;let n=t.getProps();t.animationState&&n.whileHover&&t.animationState.setActive("whileHover",e),n[i]&&g.Gt.update(()=>n[i](s,r))},{passive:!t.getProps()[i]})}class x extends v{mount(){this.unmount=(0,u.F)(y(this.node,!0),y(this.node,!1))}unmount(){}}class P extends v{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,u.F)(n(this.node.current,"focus",()=>this.onFocus()),n(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let T=(t,e)=>!!e&&(t===e||T(t,e.parentElement));var b=i(19912);function V(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,a(i))}class A extends v{constructor(){super(...arguments),this.removeStartListeners=b.l,this.removeEndListeners=b.l,this.removeAccessibleListeners=b.l,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let i=this.node.getProps(),s=h(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s}=this.node.getProps();g.Gt.update(()=>{T(this.node.current,t.target)?i&&i(t,e):s&&s(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),r=h(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,u.F)(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=n(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=n(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&V("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&g.Gt.update(()=>i(t,e))})}),V("down",(t,e)=>{this.startPress(t,e)}))}),e=n(this.node.current,"blur",()=>{this.isPressing&&V("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,u.F)(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&&g.Gt.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!f()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&g.Gt.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=h(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=n(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,u.F)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let S=new WeakMap,w=new WeakMap,D=t=>{let e=S.get(t.target);e&&e(t)},E=t=>{t.forEach(D)},M={some:0,all:1};class C extends v{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:r}=t,n={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:M[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;w.has(i)||w.set(i,{});let s=w.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(E,{root:t,...e})),s[r]}(e);return S.set(t,i),s.observe(t),()=>{S.delete(t),s.unobserve(t)}}(this.node.current,n,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)})}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 j=i(53513),L=i(84923);function R(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;sPromise.all((0,U.$)(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(I).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(O(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([n(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[n,o]:[o,n];return t().then(()=>e())}}function I(t,e){return t.sortNodePosition(e)}let G=[...B.U].reverse(),N=B.U.length;function $(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class H extends v{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>O(t,e,i)));else if("string"==typeof e)s=O(t,e,i);else{let r="function"==typeof e?(0,F.K)(t,e,i.custom):e;s=Promise.all((0,U.$)(t,r,i))}return s.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:$(!0),whileInView:$(),whileHover:$(),whileTap:$(),whileDrag:$(),whileFocus:$(),exit:$()},s=!0,r=(e,i)=>{let s=(0,F.K)(t,i);if(s){let{transition:t,transitionEnd:i,...r}=s;e={...e,...r,...i}}return e};function n(n,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;ec&&g,b=Array.isArray(v)?v:[v],V=b.reduce(r,{});!1===y&&(V={});let{prevResolvedValues:A={}}=f,S={...A,...V},w=t=>{T=!0,u.delete(t),f.needsAnimating[t]=!0};for(let t in S){let e=V[t],i=A[t];d.hasOwnProperty(t)||(e!==i?(0,L.p)(e)&&(0,L.p)(i)?!R(e,i)||P?w(t):f.protectedKeys[t]=!0:void 0!==e?w(t):u.add(t):void 0!==e&&u.has(t)?w(t):f.protectedKeys[t]=!0)}f.prevProp=v,f.prevResolvedValues=V,f.isActive&&(d={...d,...V}),s&&t.blockInitialAnimation&&(T=!1),T&&!x&&h.push(...b.map(t=>({animation:t,options:{type:m,...n}})))}if(u.size){let e={};u.forEach(i=>{let s=t.getBaseTarget(i);void 0!==s&&(e[i]=s)}),h.push({animation:e})}let m=!!h.length;return s&&!1===a.initial&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}return{animateChanges:n,setActive:function(e,s,r){var o;if(i[e].isActive===s)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let a=n(r,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),(0,j.N)(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let W=0;class z extends v{constructor(){super(...arguments),this.id=W++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;let r=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var X=i(12533),q=i(2366);let Y=(t,e)=>Math.abs(t-e);var K=i(30162);class Q{constructor(t,e,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=J(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(Y(t.x,e.x)**2+Y(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:r}=K.u;this.history.push({...s,timestamp:r});let{onStart:n,onMove:o}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=_(e,this.transformPagePoint),g.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:i,onSessionEnd:s}=this.handlers,r=J("pointercancel"===t.type?this.lastMoveEventInfo:_(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!o(t))return;this.handlers=e,this.transformPagePoint=i;let s=_(a(t),this.transformPagePoint),{point:r}=s,{timestamp:n}=K.u;this.history=[{...r,timestamp:n}];let{onSessionStart:l}=e;l&&l(t,J(s,this.history)),this.removeListeners=(0,u.F)(h(window,"pointermove",this.handlePointerMove),h(window,"pointerup",this.handlePointerUp),h(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,g.WG)(this.updatePoint)}}function _(t,e){return e?{point:e(t.point)}:t}function Z(t,e){return{x:t.x-e.x,y:t.y-e.y}}function J({point:t},e){return{point:t,delta:Z(t,tt(e)),offset:Z(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=tt(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,q.f)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,q.X)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function tt(t){return t[t.length-1]}var te=i(94642),ti=i(62557),ts=i(25020);function tr(t){return t.max-t.min}function tn(t,e=0,i=.01){return Math.abs(t-e)<=i}function to(t,e,i,s=.5){t.origin=s,t.originPoint=(0,ts.j)(e.min,e.max,t.origin),t.scale=tr(i)/tr(e),(tn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,ts.j)(i.min,i.max,t.origin)-t.originPoint,(tn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ta(t,e,i,s){to(t.x,e.x,i.x,s?s.originX:void 0),to(t.y,e.y,i.y,s?s.originY:void 0)}function tl(t,e,i){t.min=i.min+e.min,t.max=t.min+tr(e)}function th(t,e,i){t.min=e.min-i.min,t.max=t.min+tr(e)}function tu(t,e,i){th(t.x,e.x,i.x),th(t.y,e.y,i.y)}var td=i(23075);function tc(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 tp(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min{this.stopAnimation(),e&&this.snapToCursor(a(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=m(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tg(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tP.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=tr(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&g.Gt.update(()=>r(t,e),!1,!0);let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&g.Gt.update(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tA(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&ti&&(t=s?(0,ts.j)(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:i}=this.visualElement.projection||{},s=this.constraints;t&&(0,te.X)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:tc(t.x,i,r),y:tc(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:tm(t,"left","right"),y:tm(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tg(t=>{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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,te.X)(e))return!1;let s=e.current;(0,X.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=(0,ty.L)(s,r.root,this.visualElement.getTransformPagePoint()),o={x:tp((t=r.layout.layoutBox).x,n.x),y:tp(t.y,n.y)};if(i){let t=i((0,tx.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tx.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(tg(o=>{if(!tA(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start((0,tT.f)(t,i,0,e))}stopAnimation(){tg(t=>this.getAxisMotionValue(t).stop())}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){tg(e=>{let{drag:i}=this.getProps();if(!tA(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-(0,ts.j)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,te.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tg(t=>{let e=this.getAxisMotionValue(t);if(e){let i=e.get();s[t]=function(t,e){let i=.5,s=tr(t),r=tr(e);return r>s?i=(0,ti.q)(e.min,e.max-s,t.min):s>r&&(i=(0,ti.q)(t.min,t.max-r,e.min)),(0,td.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tg(e=>{if(!tA(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set((0,ts.j)(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;tb.set(this.visualElement,this);let t=h(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,te.X)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let r=n(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tg(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function tA(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tS extends v{constructor(t){super(t),this.removeGroupControls=b.l,this.removeListeners=b.l,this.controls=new tV(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tw=t=>(e,i)=>{t&&g.Gt.update(()=>t(e,i))};class tD extends v{constructor(){super(...arguments),this.removePointerDownListener=b.l}onPointerDown(t){this.session=new Q(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tw(t),onStart:tw(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&g.Gt.update(()=>s(t,e))}}}mount(){this.removePointerDownListener=h(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 tE=i(72303),tM=i(91624),tC=i(37638),tj=i(15654);let tL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tR(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tk={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tP.px.test(t))return t;t=parseFloat(t)}let i=tR(t,e.target.x),s=tR(t,e.target.y);return`${i}% ${s}%`}};var tF=i(77621),tB=i(45682);class tU extends tE.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;(0,tB.$)(tI),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tL.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent===r||(r?n.promote():n.relegate()||g.Gt.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!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 tO(t){let[e,i]=function(){let t=(0,tE.useContext)(tM.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,r=(0,tE.useId)();return(0,tE.useEffect)(()=>s(r),[]),!e&&i?[!1,()=>i&&i(r)]:[!0]}(),s=(0,tE.useContext)(tC.L);return tE.createElement(tU,{...t,layoutGroup:s,switchLayoutGroup:(0,tE.useContext)(tj.N),isPresent:e,safeToRemove:i})}let tI={borderRadius:{...tk,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tk,borderTopRightRadius:tk,borderBottomLeftRadius:tk,borderBottomRightRadius:tk,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tF.f.parse(t);if(s.length>5)return t;let r=tF.f.createTransformer(t),n="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,ts.j)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};var tG=i(78313),tN=i(751);let t$=["TopLeft","TopRight","BottomLeft","BottomRight"],tH=t$.length,tW=t=>"string"==typeof t?parseFloat(t):t,tz=t=>"number"==typeof t||tP.px.test(t);function tX(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tq=tK(0,.5,tN.yT),tY=tK(.5,.95,b.l);function tK(t,e,i){return s=>se?1:i((0,ti.q)(t,e,s))}function tQ(t,e){t.min=e.min,t.max=e.max}function t_(t,e){tQ(t.x,e.x),tQ(t.y,e.y)}var tZ=i(99042);function tJ(t,e,i,s,r){return t-=e,t=(0,tZ.hq)(t,1/i,s),void 0!==r&&(t=(0,tZ.hq)(t,1/r,s)),t}function t0(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(tP.KN.test(e)&&(e=parseFloat(e),e=(0,ts.j)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,ts.j)(n.min,n.max,s);t===n&&(a-=e),t.min=tJ(t.min,e,i,a,r),t.max=tJ(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let t1=["x","scaleX","originX"],t5=["y","scaleY","originY"];function t3(t,e,i,s){t0(t.x,e,t1,i?i.x:void 0,s?s.x:void 0),t0(t.y,e,t5,i?i.y:void 0,s?s.y:void 0)}var t2=i(61465);function t4(t){return 0===t.translate&&1===t.scale}function t9(t){return t4(t.x)&&t4(t.y)}function t6(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function t7(t){return tr(t.x)/tr(t.y)}var t8=i(70717);class et{constructor(){this.members=[]}add(t){(0,t8.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,t8.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;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)}}function ee(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y;if((r||n)&&(s=`translate3d(${r}px, ${n}px, 0) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:r}=i;t&&(s+=`rotate(${t}deg) `),e&&(s+=`rotateX(${e}deg) `),r&&(s+=`rotateY(${r}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(s+=`scale(${o}, ${a})`),s||"none"}var ei=i(81609);let es=(t,e)=>t.depth-e.depth;class er{constructor(){this.children=[],this.isDirty=!1}add(t){(0,t8.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,t8.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(es),this.isDirty=!1,this.children.forEach(t)}}var en=i(98245),eo=i(91816),ea=i(5016);let el=["","X","Y","Z"],eh=0,eu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ed({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=eh++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{eu.totalNodes=eu.resolvedTargetDeltas=eu.recalculatedProjection=0,this.nodes.forEach(em),this.nodes.forEach(eT),this.nodes.forEach(eb),this.nodes.forEach(ef),window.MotionDebug&&window.MotionDebug.record(eu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=performance.now(),s=({timestamp:e})=>{let r=e-i;r>=250&&((0,g.WG)(s),t(r-250))};return g.Gt.read(s,!0),()=>(0,g.WG)(s)}(s,0),tL.hasAnimatedSinceResize&&(tL.hasAnimatedSinceResize=!1,this.nodes.forEach(eP))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||eE,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!t6(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,t2.r)(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eP(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,g.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eV),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(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;tthis.update()))}clearAllSnapshots(){this.nodes.forEach(ev),this.sharedNodes.forEach(eA)}scheduleUpdateProjection(){g.Gt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){g.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{var s,h;let c=e/1e3;eS(o.x,t.x,c),eS(o.y,t.y,c),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tu(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s=this.relativeTarget,h=this.relativeTargetOrigin,ew(s.x,h.x,a.x,c),ew(s.y,h.y,a.y,c),i&&t6(this.relativeTarget,i)&&(this.isProjectionDirty=!1),i||(i=(0,tv.ge)()),t_(i,this.relativeTarget)),l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,ts.j)(0,void 0!==i.opacity?i.opacity:1,tq(s)),t.opacityExit=(0,ts.j)(void 0!==e.opacity?e.opacity:1,0,tY(s))):n&&(t.opacity=(0,ts.j)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r{tL.hasAnimatedSinceResize=!0,this.currentAnimation=(0,ea.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eC(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tv.ge)();let e=tr(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=tr(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}t_(e,i),(0,tZ.Ww)(e,r),ta(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new et),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?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)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let s={};for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(eg),this.root.sharedNodes.clear()}}}function ec(t){t.updateLayout()}function ep(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:r}=t.options,n=i.source!==t.layout.source;"size"===r?tg(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=tr(s);s.min=e[t].min,s.max=s.min+r}):eC(r,i.layoutBox,e)&&tg(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=tr(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,tv.xU)();ta(o,e,i.layoutBox);let a=(0,tv.xU)();n?ta(a,t.applyTransform(s,!0),i.measuredBox):ta(a,e,i.layoutBox);let l=!t9(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=(0,tv.ge)();tu(o,i.layoutBox,r.layoutBox);let a=(0,tv.ge)();tu(a,e,n.layoutBox),t6(o,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function em(t){eu.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 ef(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ev(t){t.clearSnapshot()}function eg(t){t.clearMeasurements()}function ey(t){t.isLayoutDirty=!1}function ex(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eP(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eT(t){t.resolveTargetDelta()}function eb(t){t.calcProjection()}function eV(t){t.resetRotation()}function eA(t){t.removeLeadSnapshot()}function eS(t,e,i){t.translate=(0,ts.j)(e.translate,0,i),t.scale=(0,ts.j)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ew(t,e,i,s){t.min=(0,ts.j)(e.min,i.min,s),t.max=(0,ts.j)(e.max,i.max,s)}function eD(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eE={duration:.45,ease:[.4,0,.1,1]};function eM(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function eC(t,e,i){return"position"===t||"preserve-aspect"===t&&!tn(t7(e),t7(i),.2)}let ej=ed({attachResizeListener:(t,e)=>n(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eL={current:void 0},eR=ed({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eL.current){let t=new ej({});t.mount(window),t.setOptions({layoutScroll:!0}),eL.current=t}return eL.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ek=i(31560),eF=i(72980),eB=i(53361);let eU=(t,e)=>(0,eB.Q)(t)?new eF.l(e,{enableHardwareAcceleration:!1}):new ek.M(e,{enableHardwareAcceleration:!0}),eO={animation:{Feature:H},exit:{Feature:z},inView:{Feature:C},tap:{Feature:A},focus:{Feature:P},hover:{Feature:x},pan:{Feature:tD},drag:{Feature:tS,ProjectionNode:eR,MeasureLayout:tO},layout:{ProjectionNode:eR,MeasureLayout:tO}},eI=(0,s.H)((t,e)=>(0,r.P)(t,e,eO,eU))},91816:(t,e,i)=>{i.d(e,{x:()=>s});function s(t){return t instanceof SVGElement&&"svg"!==t.tagName}},96635:(t,e,i)=>{i.d(e,{J:()=>o});var s=i(77621),r=i(88395),n=i(93572);function o(t,e){let i=(0,n.D)(t);return i!==r.p&&(i=s.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},93572:(t,e,i)=>{i.d(e,{D:()=>o});var s=i(94832),r=i(88395);let n={...i(85254).W,color:s.y,backgroundColor:s.y,outlineColor:s.y,fill:s.y,stroke:s.y,borderColor:s.y,borderTopColor:s.y,borderRightColor:s.y,borderBottomColor:s.y,borderLeftColor:s.y,filter:r.p,WebkitFilter:r.p},o=t=>n[t]},10138:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var s=i(32927),r=i(44366),n=i(27606);let o=[s.ai,r.px,r.KN,r.uj,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,n.w)(t))},27606:(t,e,i)=>{i.d(e,{w:()=>s});let s=t=>e=>e.test(t)},31560:(t,e,i)=>{i.d(e,{M:()=>c});var s=i(64358),r=i(19183),n=i(75243),o=i(87677),a=i(92999),l=i(93572),h=i(45650),u=i(44098),d=i(14499);class c extends u.b{readValueFromInstance(t,e){if(n.f.has(e)){let t=(0,l.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,r.j4)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,h.m)(t,e)}build(t,e,i,r){(0,s.O)(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return(0,o.x)(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,d.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,s){(0,a.e)(t,e,i,s)}}},34747:(t,e,i)=>{i.d(e,{C:()=>s});let s=new WeakMap},72980:(t,e,i)=>{i.d(e,{l:()=>p});var s=i(64689),r=i(44098),n=i(55657),o=i(44413),a=i(38144),l=i(75243),h=i(51928),u=i(93572),d=i(5401),c=i(39013);class p extends r.b{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,u.D)(e);return t&&t.default||0}return e=a.e.has(e)?e:(0,o.I)(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,d.ge)()}scrapeMotionValuesFromProps(t,e){return(0,s.x)(t,e)}build(t,e,i,s){(0,n.B)(t,e,i,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,i,s){(0,h.d)(t,e,i,s)}mount(t){this.isSVGTag=(0,c.n)(t.tagName),super.mount(t)}}},50398:(t,e,i)=>{i.d(e,{K:()=>r});var s=i(80074);function r(t,e,i){let r=t.getProps();return(0,s.a)(r,e,void 0!==i?i:r.custom,function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,i)=>e[i]=t.getVelocity()),e}(t))}},95763:(t,e,i)=>{i.d(e,{TM:()=>v,$z:()=>g,Uo:()=>f});let s=t=>/^\-?\d*\.?\d+$/.test(t);var r=i(35775),n=i(15622),o=i(34210),a=i(77621),l=i(96635),h=i(94832),u=i(10138),d=i(27606);let c=[...u.T,h.y,a.f],p=t=>c.find((0,d.w)(t));var m=i(50398);function f(t,e){let i=(0,m.K)(t,e),{transitionEnd:s={},transition:r={},...a}=i?t.makeTargetAnimatable(i,!1):{};for(let e in a={...a,...s}){let i=(0,n.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.O)(i))}}function v(t,e,i){var n,h;let u=Object.keys(e).filter(e=>!t.hasValue(e)),d=u.length;if(d)for(let c=0;c{i.d(e,{$:()=>s});let s=t=>/^0[^.\s]+$/.test(t)},82484:(t,e,i)=>{i.d(e,{U:()=>n});var s=i(61351),r=i(44723);function n(){if(r.r.current=!0,s.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.O.current=t.matches;t.addListener(e),e()}else r.O.current=!1}}},44723:(t,e,i)=>{i.d(e,{O:()=>s,r:()=>r});let s={current:null},r={current:!1}},2366:(t,e,i)=>{i.d(e,{X:()=>r,f:()=>s});let s=t=>1e3*t,r=t=>t/1e3},88395:(t,e,i)=>{i.d(e,{p:()=>l});var s=i(77621),r=i(30235);let n=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(r.SY)||[];if(!s)return t;let o=i.replace(s,""),a=n.has(e)?1:0;return s!==i&&(a*=100),e+"("+a+o+")"}let a=/([a-z-]*)\(.*?\)/g,l={...s.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},51594:(t,e,i)=>{i.d(e,{k:()=>r});var s=i(14499);function r(t){return!!((0,s.S)(t)&&t.add)}}}]); //# debugId=13ff5038-e711-585a-9bba-588e6172973f