"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9526],{78888:(t,e,i)=>{let n;function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t){let e;return()=>(void 0===e&&(e=t()),e)}i.d(e,{P:()=>rf});let u=l(()=>void 0!==window.ScrollTimeline);class h{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;iu()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d extends h{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function c(t,e){return t?t[e]||t.default||t:void 0}function p(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function m(t){return"function"==typeof t}function f(t,e){t.timeline=e,t.onfinish=null}let v=t=>Array.isArray(t)&&"number"==typeof t[0],g={linearEasing:void 0},y=function(t,e){let i=l(t);return()=>{var t;return null!==(t=g[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),x=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},P=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,w={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:T([0,.65,.55,1]),circOut:T([.55,0,1,.45]),backIn:T([.31,.01,.66,-.59]),backOut:T([.33,1.53,.69,.99])},b={x:!1,y:!1};function S(t,e){let i=function(t,e,i){var n;if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(n=void 0,e.querySelectorAll(t));return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function A(t){return!("touch"===t.pointerType||b.x||b.y)}function V(t,e){let i=`${e}PointerCapture`;if(t.target instanceof Element&&i in t.target&&void 0!==t.pointerId)try{t.target[i](t.pointerId)}catch(t){}}let E=(t,e)=>!!e&&(t===e||E(t,e.parentElement)),M=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,C=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),D=new WeakSet;function R(t){return e=>{"Enter"===e.key&&t(e)}}function k(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let j=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=R(()=>{if(D.has(i))return;k(i,"down");let t=R(()=>{k(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>k(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function L(t){return M(t)&&!(b.x||b.y)}let F=t=>1e3*t,B=t=>t/1e3,O=t=>t,I=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(I),$=new Set(["width","height","top","left","right","bottom",...I]),N=t=>Array.isArray(t),W=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),z=t=>N(t)?t[t.length-1]||0:t,H={skipAnimations:!1,useManualTiming:!1},Y=["read","resolveKeyframes","update","preRender","render","postRender"],X={value:null,addProjectionMetrics:null};function K(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=Y.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&X.value&&X.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let r=H.useManualTiming?s.timestamp:performance.now();i=!1,H.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(p))},m=()=>{i=!0,n=!0,s.isProcessing||t(p)};return{schedule:Y.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,s=!1)=>(i||m(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e(void 0===n&&Q.set(_.isProcessing||H.useManualTiming?_.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(J)}};function tt(t,e){-1===t.indexOf(e)&&t.push(e)}function te(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class ti{constructor(){this.subscriptions=[]}add(t){return tt(this.subscriptions,t),()=>te(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s!isNaN(parseFloat(t)),ts={current:void 0};class tr{constructor(t,e={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=Q.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Q.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=tn(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ti);let i=this.events[t].add(e);return"change"===t?()=>{i(),q.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ts.current&&ts.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=Q.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function to(t,e){return new tr(t,e)}let ta=t=>!!(t&&t.getVelocity);function tl(t,e){let i=t.getValue("willChange");if(ta(i)&&i.add)return i.add(e)}let tu=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),th="data-"+tu("framerAppearId"),td={current:!1},tc=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tp(t,e,i,n){if(t===e&&i===n)return O;let s=e=>(function(t,e,i,n,s){let r,o;let a=0;do(r=tc(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:tc(s(t),e,n)}let tm=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tf=t=>e=>1-t(1-e),tv=tp(.33,1.53,.69,.99),tg=tf(tv),ty=tm(tg),tx=t=>(t*=2)<1?.5*tg(t):.5*(2-Math.pow(2,-10*(t-1))),tP=t=>1-Math.sin(Math.acos(t)),tT=tf(tP),tw=tm(tP),tb=t=>/^0[^.\s]+$/u.test(t),tS=(t,e,i)=>i>e?e:i"number"==typeof t,parse:parseFloat,transform:t=>t},tV={...tA,transform:t=>tS(0,1,t)},tE={...tA,default:1},tM=t=>Math.round(1e5*t)/1e5,tC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tD=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tR=(t,e)=>i=>!!("string"==typeof i&&tD.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tk=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(tC);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tj=t=>tS(0,255,t),tL={...tA,transform:t=>Math.round(tj(t))},tF={test:tR("rgb","red"),parse:tk("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tL.transform(t)+", "+tL.transform(e)+", "+tL.transform(i)+", "+tM(tV.transform(n))+")"},tB={test:tR("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tF.transform},tO=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tI=tO("deg"),tU=tO("%"),t$=tO("px"),tN=tO("vh"),tW=tO("vw"),tz={...tU,parse:t=>tU.parse(t)/100,transform:t=>tU.transform(100*t)},tH={test:tR("hsl","hue"),parse:tk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tU.transform(tM(e))+", "+tU.transform(tM(i))+", "+tM(tV.transform(n))+")"},tY={test:t=>tF.test(t)||tB.test(t)||tH.test(t),parse:t=>tF.test(t)?tF.parse(t):tH.test(t)?tH.parse(t):tB.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tF.transform(t):tH.transform(t)},tX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tK="number",tq="color",tG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function t_(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(tG,t=>(tY.test(t)?(n.color.push(r),s.push(tq),i.push(tY.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tK),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tZ(t){return t_(t).values}function tJ(t){let{split:e,types:i}=t_(t),n=e.length;return t=>{let s="";for(let r=0;r"number"==typeof t?0:t,t0={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tC))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tX))||void 0===i?void 0:i.length)||0)>0},parse:tZ,createTransformer:tJ,getAnimatableNone:function(t){let e=tZ(t);return tJ(t)(e.map(tQ))}},t1=new Set(["brightness","contrast","saturate","opacity"]);function t5(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tC)||[];if(!n)return t;let s=i.replace(n,""),r=+!!t1.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let t2=/\b([a-z-]*)\(.*?\)/gu,t3={...t0,getAnimatableNone:t=>{let e=t.match(t2);return e?e.map(t5).join(" "):t}},t9={...tA,transform:Math.round},t4={borderWidth:t$,borderTopWidth:t$,borderRightWidth:t$,borderBottomWidth:t$,borderLeftWidth:t$,borderRadius:t$,radius:t$,borderTopLeftRadius:t$,borderTopRightRadius:t$,borderBottomRightRadius:t$,borderBottomLeftRadius:t$,width:t$,maxWidth:t$,height:t$,maxHeight:t$,top:t$,right:t$,bottom:t$,left:t$,padding:t$,paddingTop:t$,paddingRight:t$,paddingBottom:t$,paddingLeft:t$,margin:t$,marginTop:t$,marginRight:t$,marginBottom:t$,marginLeft:t$,backgroundPositionX:t$,backgroundPositionY:t$,rotate:tI,rotateX:tI,rotateY:tI,rotateZ:tI,scale:tE,scaleX:tE,scaleY:tE,scaleZ:tE,skew:tI,skewX:tI,skewY:tI,distance:t$,translateX:t$,translateY:t$,translateZ:t$,x:t$,y:t$,z:t$,perspective:t$,transformPerspective:t$,opacity:tV,originX:tz,originY:tz,originZ:t$,zIndex:t9,size:t$,fillOpacity:tV,strokeOpacity:tV,numOctaves:t9},t6={...t4,color:tY,backgroundColor:tY,outlineColor:tY,fill:tY,stroke:tY,borderColor:tY,borderTopColor:tY,borderRightColor:tY,borderBottomColor:tY,borderLeftColor:tY,filter:t3,WebkitFilter:t3},t8=t=>t6[t];function t7(t,e){let i=t8(t);return i!==t3&&(i=t0),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let et=new Set(["auto","none","0"]),ee=t=>t===tA||t===t$,ei=(t,e)=>parseFloat(t.split(", ")[e]),en=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return ei(s[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?ei(e[1],t):0}},es=new Set(["x","y","z"]),er=I.filter(t=>!es.has(t)),eo={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:en(4,13),y:en(5,14)};eo.translateX=eo.x,eo.translateY=eo.y;let ea=new Set,el=!1,eu=!1;function eh(){if(eu){let t=Array.from(ea).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return er.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eu=!1,el=!1,ea.forEach(t=>t.complete()),ea.clear()}function ed(){ea.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eu=!0)})}class ec{constructor(t,e,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ea.add(this),el||(el=!0,q.read(ed),q.resolveKeyframes(eh))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),em=t=>e=>"string"==typeof e&&e.startsWith(t),ef=em("--"),ev=em("var(--"),eg=t=>!!ev(t)&&ey.test(t.split("/*")[0].trim()),ey=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eP=t=>e=>e.test(t),eT=[tA,t$,tU,tI,tW,tN,{test:t=>"auto"===t,parse:t=>t}],ew=t=>eT.find(eP(t));class eb extends ec{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eS=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t0.test(t)||"0"===t)&&!t.startsWith("url(")),eA=t=>null!==t;function eV(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(eA),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}class eE{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ed(),eh()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=eS(s,e),a=eS(r,e);return O(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}let eM={layout:0,mainThread:0,waapi:0},eC=(t,e,i)=>t+(e-t)*i;function eD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eR(t,e){return i=>i>0?e:t}let ek=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},ej=[tB,tF,tH],eL=t=>ej.find(e=>e.test(t));function eF(t){let e=eL(t);if(O(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tH&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=eD(a,n,t+1/3),r=eD(a,n,t),o=eD(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let eB=(t,e)=>{let i=eF(t),n=eF(e);if(!i||!n)return eR(t,e);let s={...i};return t=>(s.red=ek(i.red,n.red,t),s.green=ek(i.green,n.green,t),s.blue=ek(i.blue,n.blue,t),s.alpha=eC(i.alpha,n.alpha,t),tF.transform(s))},eO=(t,e)=>i=>e(t(i)),eI=(...t)=>t.reduce(eO),eU=new Set(["none","hidden"]);function e$(t,e){return i=>eC(t,e,i)}function eN(t){return"number"==typeof t?e$:"string"==typeof t?eg(t)?eR:tY.test(t)?eB:eH:Array.isArray(t)?eW:"object"==typeof t?tY.test(t)?eB:ez:eR}function eW(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>eN(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let eH=(t,e)=>{let i=t0.createTransformer(e),n=t_(t),s=t_(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?eU.has(t)&&!s.values.length||eU.has(e)&&!n.values.length?function(t,e){return eU.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):eI(eW(function(t,e){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;rvoid 0!==t[e])}function eJ(t=eK.visualDuration,e=eK.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:eK.velocity,stiffness:eK.stiffness,damping:eK.damping,mass:eK.mass,isResolvedFromDuration:!1,...t};if(!eZ(t,e_)&&eZ(t,eG)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*tS(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eK.mass,stiffness:n,damping:s}}else{let i=function({duration:t=eK.duration,bounce:e=eK.bounce,velocity:i=eK.velocity,mass:n=eK.mass}){let s,r;O(t<=F(eK.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=tS(eK.minDamping,eK.maxDamping,o),t=tS(eK.minDuration,eK.maxDuration,B(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/eq(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eq(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=F(t),isNaN(a))return{stiffness:eK.stiffness,damping:eK.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eK.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-B(n.velocity||0)}),v=m||0,g=h/(2*Math.sqrt(u*d)),y=a-o,x=B(Math.sqrt(u/d)),T=5>Math.abs(y);if(s||(s=T?eK.restSpeed.granular:eK.restSpeed.default),r||(r=T?eK.restDelta.granular:eK.restDelta.default),g<1){let t=eq(x,g);i=e=>a-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-i*((v+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:f&&c||null,next:t=>{let e=i(t);if(f)l.done=t>=c;else{let n=0;g<1&&(n=0===t?F(v):eX(i,t,e));let o=Math.abs(n)<=s,u=Math.abs(a-e)<=r;l.done=o&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(p(w),2e4),e=P(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function eQ({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){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/n),T=t=>x+P(t),w=t=>{let e=P(t),i=T(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},b=t=>{f(m.value)&&(d=t,c=eJ({keyframes:[m.value,v(m.value)],velocity:eX(T,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,w(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||w(t),m)}}}let e0=tp(.42,0,1,1),e1=tp(0,0,.58,1),e5=tp(.42,0,.58,1),e2=t=>Array.isArray(t)&&"number"!=typeof t[0],e3={linear:O,easeIn:e0,easeInOut:e5,easeOut:e1,circIn:tP,circInOut:tw,circOut:tT,backIn:tg,backInOut:ty,backOut:tv,anticipate:tx},e9=t=>{if(v(t)){O(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return tp(e,i,n,s)}return"string"==typeof t?(O(void 0!==e3[t],`Invalid easing type '${t}'`),e3[t]):t};function e4({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let s=e2(n)?n.map(e9):e9(n),r={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(O(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||eY,r=t.length-1;for(let i=0;i{if(o&&i1)for(;nu(tS(t[0],t[r-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=x(0,e,n);t.push(eC(i,1,s))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(s)?s:e.map(()=>s||e5).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}let e6=t=>{let e=({timestamp:e})=>t(e);return{start:()=>q.update(e,!0),stop:()=>G(e),now:()=>_.isProcessing?_.timestamp:Q.now()}},e8={decay:eQ,inertia:eQ,tween:e4,keyframes:e4,spring:eJ},e7=t=>t/100;class it extends eE{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||ec;this.resolver=new r(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=m(n)?n:e8[n]||e4;l!==e4&&"number"!=typeof t[0]&&(e=eI(e7,eY(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=p(u));let{calculatedDuration:h}=u,d=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(s+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;eM.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=r)),y=tS(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==n&&(P.value=eV(a,this.options,n)),f&&f(P.value),w&&this.finish(),P}get duration(){let{resolved:t}=this;return t?B(t.calculatedDuration):0}get time(){return B(this.currentTime)}set time(t){t=F(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=B(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e6,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),eM.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let ie=new Set(["opacity","clipPath","filter","transform"]),ii=l(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),is={anticipate:tx,backInOut:ty,circInOut:tw};class ir extends eE{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new eb(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof r&&y()&&r in is&&(r=is[r]),m((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&y()||!e||"string"==typeof e&&(e in w||y())||v(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new it({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,s=h.times,r=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&y()?P(e,i):v(e)?T(e):Array.isArray(e)?e.map(e=>t(e,i)||w.easeOut):w[e]}(a,s);Array.isArray(h)&&(u.easing=h),X.value&&eM.waapi++;let d=t.animate(u,{delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"});return X.value&&d.finished.finally(()=>{eM.waapi--}),d}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:r});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(f(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eV(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:o,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return B(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return B(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=F(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return O;let{animation:i}=e;f(i,t)}else this.pendingTimeline=t;return O}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:r,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new it({...u,keyframes:i,duration:n,type:s,ease:r,times:o,isGenerator:!0}),d=F(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return ii()&&i&&ie.has(i)&&!a&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}}let io={type:"spring",stiffness:500,damping:25,restSpeed:10},ia=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),il={type:"keyframes",duration:.8},iu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ih=(t,{keyframes:e})=>e.length>2?il:U.has(t)?t.startsWith("scale")?ia(e[1]):io:iu,id=(t,e,i,n={},s,r)=>o=>{let a=c(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=F(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...ih(t,h)}),h.duration&&(h.duration=F(h.duration)),h.repeatDelay&&(h.repeatDelay=F(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let p=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(p=!0)),(td.current||H.skipAnimations)&&(p=!0,h.duration=0,h.delay=0),p&&!r&&void 0!==e.get()){let t=eV(h.keyframes,a);if(void 0!==t)return q.update(()=>{h.onUpdate(t),h.onComplete()}),new d([])}return!r&&ir.supports(h)?new ir(h):new it(h)};function ic(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:l,...u}=e;n&&(o=n);let h=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in u){let n=t.getValue(e,null!==(r=t.latestValues[e])&&void 0!==r?r:null),s=u[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...c(o||{},e)},l=!1;if(window.MotionHandoffAnimation){let i=t.props[th];if(i){let t=window.MotionHandoffAnimation(i,e,q);null!==t&&(a.startTime=t,l=!0)}}tl(t,e),n.start(id(e,n,s,t.shouldReduceMotion&&$.has(e)?{type:!1}:a,t,l));let p=n.animation;p&&h.push(p)}return l&&Promise.all(h).then(()=>{q.update(()=>{l&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=a(t,e)||{};for(let e in s={...s,...i}){let i=z(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,to(i))}}(t,l)})}),h}function ip(t,e,i={}){var n;let s=a(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let o=s?()=>Promise.all(ic(t,s,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(im).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(ip(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+n,o,a,i)}:()=>Promise.resolve(),{when:u}=r;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function im(t,e){return t.sortNodePosition(e)}function iv(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ip(t,e,i)));else if("string"==typeof e)n=ip(t,e,i);else{let s="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(ic(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iS(),n=!0,r=e=>(i,n)=>{var s;let r=a(t,n,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=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;tp&&y,b=!1,S=Array.isArray(g)?g:[g],A=S.reduce(r(a),{});!1===x&&(A={});let{prevResolvedValues:V={}}=v,E={...V,...A},M=e=>{w=!0,d.has(e)&&(b=!0,d.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=A[t],i=V[t];if(c.hasOwnProperty(t))continue;let n=!1;(N(e)&&N(i)?iv(e,i):e===i)?void 0!==e&&d.has(t)?M(t):v.protectedKeys[t]=!0:null!=e?M(t):d.add(t)}v.prevProp=g,v.prevResolvedValues=A,v.isActive&&(c={...c,...A}),n&&t.blockInitialAnimation&&(w=!1);let C=!(P&&T)||b;w&&C&&h.push(...S.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),h.push({animation:e})}let v=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,v?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iS(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let iE=0;class iM extends iA{constructor(){super(...arguments),this.id=iE++}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 n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}function iC(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function iD(t){return{point:{x:t.pageX,y:t.pageY}}}let iR=t=>e=>M(e)&&t(e,iD(e));function ik(t,e,i,n){return iC(t,e,iR(i),n)}function ij({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iL(t){return t.max-t.min}function iF(t,e,i,n=.5){t.origin=n,t.originPoint=eC(e.min,e.max,t.origin),t.scale=iL(i)/iL(e),t.translate=eC(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 iB(t,e,i,n){iF(t.x,e.x,i.x,n?n.originX:void 0),iF(t.y,e.y,i.y,n?n.originY:void 0)}function iO(t,e,i){t.min=i.min+e.min,t.max=t.min+iL(e)}function iI(t,e,i){t.min=e.min-i.min,t.max=t.min+iL(e)}function iU(t,e,i){iI(t.x,e.x,i.x),iI(t.y,e.y,i.y)}let i$=()=>({translate:0,scale:1,origin:0,originPoint:0}),iN=()=>({x:i$(),y:i$()}),iW=()=>({min:0,max:0}),iz=()=>({x:iW(),y:iW()});function iH(t){return[t("x"),t("y")]}function iY(t){return void 0===t||1===t}function iX({scale:t,scaleX:e,scaleY:i}){return!iY(t)||!iY(e)||!iY(i)}function iK(t){return iX(t)||iq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iq(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iG(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function i_(t,e=0,i=1,n,s){t.min=iG(t.min,e,i,n,s),t.max=iG(t.max,e,i,n,s)}function iZ(t,{x:e,y:i}){i_(t.x,e.translate,e.scale,e.originPoint),i_(t.y,i.translate,i.scale,i.originPoint)}function iJ(t,e){t.min=t.min+e,t.max=t.max+e}function iQ(t,e,i,n,s=.5){let r=eC(t.min,t.max,s);i_(t,e,i,r,n)}function i0(t,e){iQ(t.x,e.x,e.scaleX,e.scale,e.originX),iQ(t.y,e.y,e.scaleY,e.scale,e.originY)}function i1(t,e){return ij(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}function i5(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let i2=(t,e)=>Math.abs(t-e);class i3{constructor(t,e,{transformPagePoint:i,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=i6(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(i2(t.x,e.x)**2+i2(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=_;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(t.target instanceof Element&&t.target.hasPointerCapture&&void 0!==t.pointerId)try{if(!t.target.hasPointerCapture(t.pointerId))return}catch(t){}this.lastMoveEvent=t,this.lastMoveEventInfo=i9(e,this.transformPagePoint),q.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{V(t,"release"),this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=i6("pointercancel"===t.type||"lostpointercapture"===t.type?this.lastMoveEventInfo:i9(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!M(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i;let s=i9(iD(t),this.transformPagePoint),{point:r}=s,{timestamp:o}=_;this.history=[{...r,timestamp:o}];let{onSessionStart:a}=e;a&&a(t,i6(s,this.history)),V(t,"set"),this.removeListeners=eI(ik(t.currentTarget,"pointermove",this.handlePointerMove),ik(t.currentTarget,"pointerup",this.handlePointerUp),ik(t.currentTarget,"pointercancel",this.handlePointerUp),ik(t.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),G(this.updatePoint)}}function i9(t,e){return e?{point:e(t.point)}:t}function i4(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i6({point:t},e){return{point:t,delta:i4(t,i8(e)),offset:i4(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=i8(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>F(.1)));)i--;if(!n)return{x:0,y:0};let r=B(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function i8(t){return t[t.length-1]}function i7(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 nt(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iD(t).point)},onStart:(t,e)=>{var i;let{drag:n,dragPropagation:s,onDragStart:r}=this.getProps();if(n&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?b[i]?null:(b[i]=!0,()=>{b[i]=!1}):b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1}),!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),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tU.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=iL(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&q.postRender(()=>r(t,e)),tl(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iH(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&q.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nr(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?eC(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&i5(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:i7(t.x,i,s),y:i7(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ne(t,"left","right"),y:ne(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!i5(e))return!1;let n=e.current;O(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=i1(t,i),{scroll:s}=e;return s&&(iJ(n.x,s.offset.x),iJ(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o={x:nt((t=s.layout.layoutBox).x,r.x),y:nt(t.y,r.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ij(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iH(o=>{if(!nr(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return tl(this.visualElement,t),i.start(id(t,i,0,e,this.visualElement,!1))}stopAnimation(){iH(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iH(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iH(e=>{let{drag:i}=this.getProps();if(!nr(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-eC(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!i5(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iL(t),s=iL(e);return s>n?i=x(e.min,e.max-n,t.min):n>s&&(i=x(t.min,t.max-s,e.min)),tS(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iH(e=>{if(!nr(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eC(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;nn.set(this.visualElement,this);let t=ik(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();i5(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),q.read(e);let s=iC(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iH(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function nr(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class no extends iA{constructor(t){super(t),this.removeGroupControls=O,this.removeListeners=O,this.controls=new ns(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}let na=t=>(e,i)=>{t&&q.postRender(()=>t(e,i))};class nl extends iA{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(t){this.session=new i3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:na(t),onStart:na(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&q.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ik(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 nu,nh,nd=i(95155),nc=i(12115);let np=(0,nc.createContext)(null),nm=(0,nc.createContext)({}),nf=(0,nc.createContext)({}),nv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ng(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ny={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!t$.test(t))return t;t=parseFloat(t)}let i=ng(t,e.target.x),n=ng(t,e.target.y);return`${i}% ${n}%`}},nx={},{schedule:nP,cancel:nT}=K(queueMicrotask,!1);class nw extends nc.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;!function(t){for(let e in t)nx[e]=t[e],ef(e)&&(nx[e].isCSSVariable=!0)}(nS),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||q.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nP.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nb(t){let[e,i]=function(t=!0){let e=(0,nc.useContext)(np);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,nc.useId)();(0,nc.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,nc.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,nc.useContext)(nm);return(0,nd.jsx)(nw,{...t,layoutGroup:n,switchLayoutGroup:(0,nc.useContext)(nf),isPresent:e,safeToRemove:i})}let nS={borderRadius:{...ny,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ny,borderTopRightRadius:ny,borderBottomLeftRadius:ny,borderBottomRightRadius:ny,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=t0.parse(t);if(n.length>5)return t;let s=t0.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eC(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},nA=(t,e)=>t.depth-e.depth;class nV{constructor(){this.children=[],this.isDirty=!1}add(t){tt(this.children,t),this.isDirty=!0}remove(t){te(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nA),this.isDirty=!1,this.children.forEach(t)}}function nE(t){let e=ta(t)?t.get():t;return W(e)?e.toValue():e}let nM=["TopLeft","TopRight","BottomLeft","BottomRight"],nC=nM.length,nD=t=>"string"==typeof t?parseFloat(t):t,nR=t=>"number"==typeof t||t$.test(t);function nk(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nj=nF(0,.5,tT),nL=nF(.5,.95,O);function nF(t,e,i){return n=>ne?1:i(x(t,e,n))}function nB(t,e){t.min=e.min,t.max=e.max}function nO(t,e){nB(t.x,e.x),nB(t.y,e.y)}function nI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nU(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function n$(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(tU.test(e)&&(e=parseFloat(e),e=eC(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eC(r.min,r.max,n);t===r&&(a-=e),t.min=nU(t.min,e,i,a,s),t.max=nU(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let nN=["x","scaleX","originX"],nW=["y","scaleY","originY"];function nz(t,e,i,n){n$(t.x,e,nN,i?i.x:void 0,n?n.x:void 0),n$(t.y,e,nW,i?i.y:void 0,n?n.y:void 0)}function nH(t){return 0===t.translate&&1===t.scale}function nY(t){return nH(t.x)&&nH(t.y)}function nX(t,e){return t.min===e.min&&t.max===e.max}function nK(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nq(t,e){return nK(t.x,e.x)&&nK(t.y,e.y)}function nG(t){return iL(t.x)/iL(t.y)}function n_(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nZ{constructor(){this.members=[]}add(t){tt(this.members,t),t.scheduleRender()}remove(t){if(te(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:n}=t.options;!1===n&&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)}}let nJ={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nQ=["","X","Y","Z"],n0={visibility:"hidden"},n1=0;function n5(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=n1++,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,X.value&&(nJ.nodes=nJ.calculatedTargetDeltas=nJ.calculatedProjections=0),this.nodes.forEach(n4),this.nodes.forEach(sn),this.nodes.forEach(ss),this.nodes.forEach(n6),X.addProjectionMetrics&&X.addProjectionMetrics(nJ)},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;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=Q.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&(G(n),t(r-e))};return q.read(n,!0),()=>G(n)}(n,250),nv.hasAnimatedSinceResize&&(nv.hasAnimatedSinceResize=!1,this.nodes.forEach(si))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sh,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!nq(this.targetLayout,n),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),this.setAnimationOrigin(t,u);let e={...c(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||si(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,G(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(sr),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 n=i.props[th];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",q,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iL(this.snapshot.measuredBox.x)||iL(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.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iz());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nI(this.prevProjectionDelta.x,this.projectionDelta.x),nI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iB(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&n_(this.projectionDelta.x,this.prevProjectionDelta.x)&&n_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),X.value&&nJ.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iN(),this.projectionDelta=iN(),this.projectionDeltaWithTransform=iN()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=iN();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iz(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(su));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sa(o.x,t.x,n),sa(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(iU(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,sl(p.x,m.x,f.x,v),sl(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,nX(u.x,c.x)&&nX(u.y,c.y)))this.isProjectionDirty=!1;i||(i=iz()),nO(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=eC(0,void 0!==i.opacity?i.opacity:1,nj(n)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,nL(n))):r&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s{nv.hasAnimatedSinceResize=!0,eM.layout++,this.currentAnimation=function(t,e,i){let n=ta(0)?0:to(t);return n.start(id("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{eM.layout--},onComplete:()=>{eM.layout--,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:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sm(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iz();let e=iL(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iL(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nO(e,i),i0(e,s),iB(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nZ),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 n=this.getStack();n&&n.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 n={};i.z&&n5("z",t,n,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(n7),this.root.sharedNodes.clear()}}}function n3(t){t.updateLayout()}function n9(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:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?iH(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=iL(n);n.min=e[t].min,n.max=n.min+s}):sm(s,i.layoutBox,e)&&iH(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=iL(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iN();iB(o,e,i.layoutBox);let a=iN();r?iB(a,t.applyTransform(n,!0),i.measuredBox):iB(a,e,i.layoutBox);let l=!nY(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=iz();iU(o,i.layoutBox,s.layoutBox);let a=iz();iU(a,e,r.layoutBox),nq(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n4(t){X.value&&nJ.nodes++,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 n6(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n8(t){t.clearSnapshot()}function n7(t){t.clearMeasurements()}function st(t){t.isLayoutDirty=!1}function se(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function si(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sn(t){t.resolveTargetDelta()}function ss(t){t.calcProjection()}function sr(t){t.resetSkewAndRotation()}function so(t){t.removeLeadSnapshot()}function sa(t,e,i){t.translate=eC(e.translate,0,i),t.scale=eC(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sl(t,e,i,n){t.min=eC(e.min,i.min,n),t.max=eC(e.max,i.max,n)}function su(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sh={duration:.45,ease:[.4,0,.1,1]},sd=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sc=sd("applewebkit/")&&!sd("chrome/")?Math.round:O;function sp(t){t.min=sc(t.min),t.max=sc(t.max)}function sm(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nG(e)-nG(i)))}function sf(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let sv=n2({attachResizeListener:(t,e)=>iC(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sg={current:void 0},sy=n2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sg.current){let t=new sv({});t.mount(window),t.setOptions({layoutScroll:!0}),sg.current=t}return sg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sx(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&q.postRender(()=>s(e,iD(e)))}class sP extends iA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=S(t,i),o=t=>{if(!A(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{A(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(sx(this.node,e,"Start"),t=>sx(this.node,t,"End"))))}unmount(){}}class sT extends iA{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=eI(iC(this.node.current,"focus",()=>this.onFocus()),iC(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sw(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&q.postRender(()=>s(e,iD(e)))}class sb extends iA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=S(t,i),o=t=>{let i=t.currentTarget;if(!i||!L(t)||D.has(i))return;D.add(i),V(t,"set");let n=e(i,t),r=(t,e)=>{i.removeEventListener("pointerup",o),i.removeEventListener("pointercancel",a),V(t,"release"),L(t)&&D.has(i)&&(D.delete(i),"function"==typeof n&&n(t,{success:e}))},o=t=>{var e,n;t.isTrusted&&(e=t,n=i instanceof Element?i.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},e.clientXn.right||e.clientYn.bottom)?r(t,!1):r(t,!(i instanceof Element)||E(i,t.target))},a=t=>{r(t,!1)};i.addEventListener("pointerup",o,s),i.addEventListener("pointercancel",a,s),i.addEventListener("lostpointercapture",a,s)};return n.forEach(t=>{t=i.useGlobalTarget?window:t;let e=!1;if(t instanceof HTMLElement){var n;e=!0,n=t,!C.has(n.tagName)&&-1===n.tabIndex&&null===t.getAttribute("tabindex")&&(t.tabIndex=0)}t.addEventListener("pointerdown",o,s),e&&t.addEventListener("focus",t=>j(t,s),s)}),r}(t,(t,e)=>(sw(this.node,e,"Start"),(t,{success:e})=>sw(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sS=new WeakMap,sA=new WeakMap,sV=t=>{let e=sS.get(t.target);e&&e(t)},sE=t=>{t.forEach(sV)},sM={some:0,all:1};class sC extends iA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sM[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sA.has(i)||sA.set(i,{});let n=sA.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sE,{root:t,...e})),n[s]}(e);return sS.set(t,i),n.observe(t),()=>{sS.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(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(){}}let sD=(0,nc.createContext)({strict:!1}),sR=(0,nc.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),sk=(0,nc.createContext)({});function sj(t){return s(t.animate)||ix.some(e=>ig(t[e]))}function sL(t){return!!(sj(t)||t.variants)}function sF(t){return Array.isArray(t)?t.join(" "):t}let sB="undefined"!=typeof window,sO={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"]},sI={};for(let t in sO)sI[t]={isEnabled:e=>sO[t].some(t=>!!e[t])};let sU=Symbol.for("motionComponentSymbol"),s$=sB?nc.useLayoutEffect:nc.useEffect;function sN(t,{layout:e,layoutId:i}){return U.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nx[t]||"opacity"===t)}let sW=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sH=I.length;function sY(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(U.has(t)){o=!0;continue}if(ef(t)){s[t]=i;continue}{let e=sW(i,t4[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r({style:{},transform:{},transformOrigin:{},vars:{}});function sK(t,e,i){for(let n in e)ta(e[n])||sN(n,i)||(t[n]=e[n])}let sq=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 sG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sq.has(t)}let s_=t=>!sG(t);try{!function(t){t&&(s_=e=>e.startsWith("on")?!sG(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let sZ=["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 sJ(t){if("string"!=typeof t||t.includes("-"));else if(sZ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let sQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},s0={offset:"strokeDashoffset",array:"strokeDasharray"};function s1(t,e,i){return"string"==typeof t?t:t$.transform(e+i*t)}function s5(t,{attrX:e,attrY:i,attrScale:n,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(sY(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==s||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let n=s1(e,t.x,t.width),s=s1(i,t.y,t.height);return`${n} ${s}`}(m,void 0!==s?s:.5,void 0!==r?r:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==o&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?sQ:s0;t[r.offset]=t$.transform(-n);let o=t$.transform(e),a=t$.transform(i);t[r.array]=`${o} ${a}`}(c,o,a,l,!1)}let s2=()=>({...sX(),attrs:{}}),s3=t=>"string"==typeof t&&"svg"===t.toLowerCase(),s9=t=>(e,i)=>{let n=(0,nc.useContext)(sk),r=(0,nc.useContext)(np),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,a){let l={latestValues:function(t,e,i,n){let r={},a=n(t,{});for(let t in a)r[t]=nE(a[t]);let{initial:l,animate:u}=t,h=sj(t),d=sL(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!s(p)){let e=Array.isArray(p)?p:[p];for(let i=0;ii({props:n,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,n,r);return i?a():function(t){let e=(0,nc.useRef)(null);return null===e.current&&(e.current=t()),e.current}(a)};function s4(t,e,i){var n;let{style:s}=t,r={};for(let o in s)(ta(s[o])||e.style&&ta(e.style[o])||sN(o,t)||(null===(n=null==i?void 0:i.getValue(o))||void 0===n?void 0:n.liveStyle)!==void 0)&&(r[o]=s[o]);return r}let s6={useVisualState:s9({scrapeMotionValuesFromProps:s4,createRenderState:sX})};function s8(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function s7(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}let rt=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"]);function re(t,e,i,n){for(let i in s7(t,e,void 0,n),e.attrs)t.setAttribute(rt.has(i)?i:tu(i),e.attrs[i])}function ri(t,e,i){let n=s4(t,e,i);for(let i in t)(ta(t[i])||ta(e[i]))&&(n[-1!==I.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let rn=["x","y","width","height","cx","cy","r"],rs={useVisualState:s9({scrapeMotionValuesFromProps:ri,createRenderState:s2,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:s})=>{if(!i)return;let r=!!t.drag;if(!r){for(let t in s)if(U.has(t)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let i=0;i{s8(i,n),q.render(()=>{s5(n,s,s3(i.tagName),t.transformTemplate),re(i,n)})})}})},rr={current:null},ro={current:!1},ra=[...eT,tY,t0],rl=t=>ra.find(eP(t)),ru=new WeakMap,rh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rd{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ec,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=Q.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),ro.current||function(){if(ro.current=!0,sB){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rr.current=t.matches;t.addListener(e),e()}else rr.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rr.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(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 n=U.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&q.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),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 sI){let e=sI[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iz()}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;ee.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=to(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(ep(n)||tb(n))?n=parseFloat(n):!rl(n)&&t0.test(e)&&(n=t7(t,e)),this.setBaseTarget(t,ta(n)?n.get():n)),ta(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let s=o(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||ta(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new ti),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rc extends rd{constructor(){super(...arguments),this.KeyframeResolver=eb}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;ta(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class rp extends rc{constructor(){super(...arguments),this.type="html",this.renderInstance=s7}readValueFromInstance(t,e){if(U.has(e)){let t=t8(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(ef(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i1(t,e)}build(t,e,i){sY(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return s4(t,e,i)}}class rm extends rc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iz,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&s8(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(U.has(e)){let t=t8(e);return t&&t.default||0}return e=rt.has(e)?e:tu(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ri(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&q.postRender(this.updateDimensions)}build(t,e,i){s5(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){re(t,e,i,n)}mount(t){this.isSVGTag=s3(t.tagName),super.mount(t)}}let rf=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((nu={animation:{Feature:iV},exit:{Feature:iM},inView:{Feature:sC},tap:{Feature:sb},focus:{Feature:sT},hover:{Feature:sP},pan:{Feature:nl},drag:{Feature:no,ProjectionNode:sy,MeasureLayout:nb},layout:{ProjectionNode:sy,MeasureLayout:nb}},nh=(t,e)=>sJ(t)?new rm(e):new rp(e,{allowProjection:t!==nc.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u;let h={...(0,nc.useContext)(sR),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,nc.useContext)(nm).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(sj(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ig(e)?e:void 0,animate:ig(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,nc.useContext)(sk));return(0,nc.useMemo)(()=>({initial:e,animate:i}),[sF(e),sF(i)])}(t),p=o(t,d);if(!d&&sB){n=0,l=0,(0,nc.useContext)(sD).strict;let t=function(t){let{drag:e,layout:i}=sI;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){var r,o;let{visualElement:a}=(0,nc.useContext)(sk),l=(0,nc.useContext)(sD),u=(0,nc.useContext)(np),h=(0,nc.useContext)(sR).reducedMotion,d=(0,nc.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,nc.useContext)(nf);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&i5(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,nc.useRef)(!1);(0,nc.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[th],v=(0,nc.useRef)(!!f&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return s$(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),nP.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,nc.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(a,p,h,s,t.ProjectionNode)}return(0,nd.jsxs)(sk.Provider,{value:c,children:[u&&c.visualElement?(0,nd.jsx)(u,{visualElement:c.visualElement,...h}):null,r(a,t,(i=c.visualElement,(0,nc.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):i5(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)sI[e]={...sI[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,nc.forwardRef)(l);return u[sU]=a,u}({...sJ(t)?rs:s6,preloadedFeatures:nu,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(sJ(e)?function(t,e,i,n){let s=(0,nc.useMemo)(()=>{let i=s2();return s5(i,e,s3(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sK(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sK(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,nc.useMemo)(()=>{let i=sX();return sY(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(s_(s)||!0===i&&sG(s)||!e&&!sG(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==nc.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,nc.useMemo)(()=>ta(u)?u.get():u,[u]);return(0,nc.createElement)(e,{...l,children:h})}}(e),createVisualElement:nh,Component:t})}))},95083:(t,e,i)=>{i.d(e,{Wx:()=>h});var n=i(12115),s=Object.defineProperty,r=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,o=new Map,a=new WeakMap,l=0,u=void 0;function h(){var t;let{threshold:e,delay:i,trackVisibility:s,rootMargin:r,root:h,triggerOnce:d,skip:c,initialInView:p,fallbackInView:m,onChange:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[v,g]=n.useState(null),y=n.useRef(f),[x,P]=n.useState({inView:!!p,entry:void 0});y.current=f,n.useEffect(()=>{let t;if(!c&&v)return t=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u;if(void 0===window.IntersectionObserver&&void 0!==n){let s=t.getBoundingClientRect();return e(n,{isIntersecting:n,target:t,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}let{id:s,observer:r,elements:h}=function(t){let e=Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{var i;return"".concat(e,"_").concat("root"===e?(i=t.root)?(a.has(i)||(l+=1,a.set(i,l.toString())),a.get(i)):"0":t[e])}).toString(),i=o.get(e);if(!i){let n;let s=new Map,r=new IntersectionObserver(e=>{e.forEach(e=>{var i;let r=e.isIntersecting&&n.some(t=>e.intersectionRatio>=t);t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=r),null==(i=s.get(e.target))||i.forEach(t=>{t(r,e)})})},t);n=r.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),i={id:e,observer:r,elements:s},o.set(e,i)}return i}(i),d=h.get(t)||[];return h.has(t)||h.set(t,d),d.push(e),r.observe(t),function(){d.splice(d.indexOf(e),1),0===d.length&&(h.delete(t),r.unobserve(t)),0===h.size&&(r.disconnect(),o.delete(s))}}(v,(e,i)=>{P({inView:e,entry:i}),y.current&&y.current(e,i),i.isIntersecting&&d&&t&&(t(),t=void 0)},{root:h,rootMargin:r,threshold:e,trackVisibility:s,delay:i},m),()=>{t&&t()}},[Array.isArray(e)?e.toString():e,v,h,r,d,c,s,m,i]);let T=null==(t=x.entry)?void 0:t.target,w=n.useRef(void 0);v||!T||d||c||w.current===T||(w.current=T,P({inView:!!p,entry:void 0}));let b=[g,x.inView,x.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}n.Component}}]);