1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fc61ba86-3d40-575f-a51a-7f102aa31664")}catch(e){}}(); 3(self.webpackChunkproject=self.webpackChunkproject||[]).push([["6099"],{55591:function(e,i,n){var r,s;self,s=function(e){return(()=>{"use strict";var i={297:i=>{i.exports=e}},r={};function s(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return i[e](o,o.exports,s),o.exports}s.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return s.d(i,{a:i}),i},s.d=(e,i)=>{for(var n in i)s.o(i,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},s.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{let e;s.r(o),s.d(o,{default:()=>rS});var i,r=s(297),a=s.n(r);let l=e=>e,u={some:0,all:1},h=e=>/^\-?\d*\.?\d+$/.test(e),d=e=>/^0[^.\s]+$/.test(e),c=e=>Array.isArray(e);function p(e,i){-1===e.indexOf(i)&&e.push(i)}function m(e,i){let n=e.indexOf(i);n>-1&&e.splice(n,1)}class f{constructor(){this.subscriptions=[]}add(e){return p(this.subscriptions,e),()=>m(this.subscriptions,e)}notify(e,i,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,i,n);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(e,i,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class g{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let i=this.order.indexOf(e);-1!==i&&(this.order.splice(i,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let v=["prepare","read","update","preRender","render","postRender"],{schedule:y,cancel:x,state:P,steps:b}=function(e,i){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},o=v.reduce((e,i)=>(e[i]=function(e){let i=new g,n=new g,r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let u=l&&s,h=u?i:n;return o&&a.add(e),h.add(e)&&u&&s&&(r=i.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:u=>{if(s)o=!0;else{if(s=!0,[i,n]=[n,i],n.clear(),r=i.order.length)for(let n=0;n<r;n++){let r=i.order[n];r(u),a.has(r)&&(l.schedule(r),e())}s=!1,o&&(o=!1,l.process(u))}}};return l}(()=>n=!0),e),{}),a=e=>o[e].process(s),l=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,v.forEach(a),s.isProcessing=!1,n&&(r=!1,e(l))};return{schedule:v.reduce((i,a)=>{let u=o[a];return i[a]=(i,o=!1,a=!1)=>(n||(n=!0,r=!0,s.isProcessing||e(l)),u.schedule(i,o,a)),i},{}),cancel:e=>v.forEach(i=>o[i].cancel(e)),state:s,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:l),T={current:void 0};class w{constructor(e,i={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,i=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=P;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,y.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>y.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=i.owner}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new f);let n=this.events[e].add(i);return"change"===e?()=>{n(),y.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){i&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,i)}setWithVelocity(e,i,n){this.set(i),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return T.current&&T.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,i;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(i=this.timeDelta)?1e3/i*e:0):0}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),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 S(e,i){return new w(e,i)}let A=e=>i=>"string"==typeof i&&i.startsWith(e),V=A("--"),E=A("var(--"),C=e=>
3Math.round(1e5*e)/1e5,M=/(-)?([\d]*\.?[\d])+/g,k=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,D=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function R(e){return"string"==typeof e}let L=(e,i,n)=>Math.min(Math.max(n,e),i),F={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},j={...F,transform:e=>L(0,1,e)},B={...F,default:1},O=(e,i)=>n=>!!(R(n)&&D.test(n)&&n.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(n,i)),I=(e,i,n)=>r=>{if(!R(r))return r;let[s,o,a,l]=r.match(M);return{[e]:parseFloat(s),[i]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},U={...F,transform:e=>Math.round(L(0,255,e))},N={test:O("rgb","red"),parse:I("red","green","blue"),transform:({red:e,green:i,blue:n,alpha:r=1})=>"rgba("+U.transform(e)+", "+U.transform(i)+", "+U.transform(n)+", "+C(j.transform(r))+")"},$={test:O("#"),parse:function(e){let i="",n="",r="",s="";return e.length>5?(i=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(i=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),i+=i,n+=n,r+=r,s+=s),{red:parseInt(i,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:N.transform},W=e=>({test:i=>R(i)&&i.endsWith(e)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${e}`}),H=W("deg"),z=W("%"),Y=W("px"),X=W("vh"),G=W("vw"),q={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(100*e)},K={test:O("hsl","hue"),parse:I("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+z.transform(C(i))+", "+z.transform(C(n))+", "+C(j.transform(r))+")"},Z={test:e=>N.test(e)||$.test(e)||K.test(e),parse:e=>N.test(e)?N.parse(e):K.test(e)?K.parse(e):$.parse(e),transform:e=>R(e)?e:e.hasOwnProperty("red")?N.transform(e):K.transform(e)}
3,_={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:l},J={regex:k,countKey:"Colors",token:"${c}",parse:Z.parse},Q={regex:M,countKey:"Numbers",token:"${n}",parse:F.parse};function tt(e,{regex:i,countKey:n,token:r,parse:s}){let o=e.tokenised.match(i);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(i,r),e.values.push(...o.map(s)))}function te(e){let i=e.toString(),n={value:i,tokenised:i,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tt(n,_),tt(n,J),tt(n,Q),n}function ti(e){return te(e).values}function tn(e){let{values:i,numColors:n,numVars:r,tokenised:s}=te(e),o=i.length;return e=>{let i=s;for(let s=0;s<o;s++)i=s<r?i.replace(_.token,e[s]):s<r+n?i.replace(J.token,Z.transform(e[s])):i.replace(Q.token,C(e[s]));return i}}let tr=e=>"number"==typeof e?0:e,ts={test:function(e){var i,n;return isNaN(e)&&R(e)&&((null===(i=e.match(M))||void 0===i?void 0:i.length)||0)+((null===(n=e.match(k))||void 0===n?void 0:n.length)||0)>0},parse:ti,createTransformer:tn,getAnimatableNone:function(e){let i=ti(e);return tn(e)(i.map(tr))}},to=new Set(["brightness","contrast","saturate","opacity"]);function ta(e){let[i,n]=e.slice(0,-1).split("(");if("drop-shadow"===i)return e;let[r]=n.match(M)||[];if(!r)return e;let s=n.replace(r,""),o=to.has(i)?1:0;return r!==n&&(o*=100),i+"("+o+s+")"}let tl=/([a-z-]*)\(.*?\)/g,tu={...ts,getAnimatableNone:e=>{let i=e.match(tl);return i?i.map(ta).join(" "):e}},th={...F,transform:Math.round},td={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:H,skewX:H,skewY:H,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:j,originX:q,originY:q,originZ:Y,zIndex:th,fillOpacity:j,strokeOpacity:j,numOctaves:th},tc={...td,color:Z,backgroundColor:Z,outlineColor:Z,fill:Z,stroke:Z,borderColor:Z,borderTopColor:Z,borderRightColor:Z,borderBottomColor:Z,borderLeftColor:Z,filter:tu,WebkitFilter:tu},tp=e=>tc[e];function tm(e,i){let n=tp(e);return n!==tu&&(n=ts),n.getAnimatableNone?n.getAnimatableNone(i):void 0}let tf=e=>i=>i.test(e),tg=[F,Y,z,H,G,X,{test:e=>"auto"===e,parse:e=>e}],tv=e=>tg.find(tf(e)),ty=[...tg,Z,ts];function tx(e,i,n,r={},s={}){return"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),"string"==typeof i&&(i=e.variants&&e.variants[i]),"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),i}function tP(e,i,n){let r=e.getProps();return tx(r,i,void 0!==n?n:r.custom,function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.get()),i}(e),function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.getVelocity()),i}(e))}function tb(e,i){var n,r;let s=tP(e,i),{transitionEnd:o={},transition:a={},...l}=s?e.makeTargetAnimatable(s,!1):{};for(let i in l={...l,...o})r=c(n=l[i])?n[n.length-1]||0:n,e.hasValue(i)?e.getValue(i).set(r):e.addValue(i,S(r))}function tT(e,i){[...i].reverse().forEach(n=>{let r=e.getVariant(n);r&&tb(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{tT(e,i)})})}let tw=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tS=new Set(tw),tA=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),tV="data-"+tA("framerAppearId"),tE=e=>1e3*e,tC=e=>e/1e3,tM=e=>Array.isArray(e)&&"number"==typeof e[0],tk=([e,i,n,r])=>`cubic-bezier(${e}, ${i}, ${n}, ${r})`,tD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tk([0,.65,.55,1]),circOut:tk([.55,0,1,.45]),backIn:tk([.31,.01,.66,-.59]),backOut:tk([.33,1.53,.69,.99])},tR=(e,i,n)=>(((1-3*n+3*i)*e+(3*n-6*i))*e+3*i)*e;function tL(e,i,n,r){return e===i&&n===r?l:s=>0===s||1===s?s:tR(function(e,i,n,r,s){let o,a,l=0;do(o=tR(a=i+(n-i)/2,r,s)-e)>
30?n=a:i=a;while(Math.abs(o)>1e-7&&++l<12);return a}(s,0,1,e,n),i,r)}let tF=tL(.42,0,1,1),tj=tL(0,0,.58,1),tB=tL(.42,0,.58,1),tO=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,tI=e=>i=>1-e(1-i),tU=e=>1-Math.sin(Math.acos(e)),tN=tI(tU),t$=tO(tN),tW=tL(.33,1.53,.69,.99),tH=tI(tW),tz=tO(tH),tY={linear:l,easeIn:tF,easeInOut:tB,easeOut:tj,circIn:tU,circInOut:t$,circOut:tN,backIn:tH,backInOut:tz,backOut:tW,anticipate:e=>(e*=2)<1?.5*tH(e):.5*(2-Math.pow(2,-10*(e-1)))},tX=e=>{if(Array.isArray(e)){l(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[i,n,r,s]=e;return tL(i,n,r,s)}return"string"==typeof e?(l(void 0!==tY[e],`Invalid easing type '${e}'`),tY[e]):e},tG=(e,i,n)=>-n*e+n*i+e;function tq(e,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(i-e)*n:n<.5?i:n<2/3?e+(i-e)*(2/3-n)*6:e}let tK=(e,i,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(i*i-r)+r))},tZ=[$,N,K];function t_(e){let i=tZ.find(i=>i.test(e));l(!!i,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=i.parse(e);return i===K&&(n=function({hue:e,saturation:i,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let r=n<.5?n*(1+i):n+i-n*i,l=2*n-r;s=tq(l,r,e+1/3),o=tq(l,r,e),a=tq(l,r,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let tJ=(e,i)=>{let n=t_(e),r=t_(i),s={...n};return e=>(s.red=tK(n.red,r.red,e),s.green=tK(n.green,r.green,e),s.blue=tK(n.blue,r.blue,e),s.alpha=tG(n.alpha,r.alpha,e),N.transform(s))},tQ=(e,i)=>n=>i(e(n)),t0=(...e)=>e.reduce(tQ),t1=(e,i)=>n=>`${n>0?i:e}`;function t5(e,i){return"number"==typeof e?n=>tG(e,i,n):Z.test(e)?tJ(e,i):e.startsWith("var(")?t1(e,i):t9(e,i)}let t2=(e,i)=>{let n=[...e],r=n.length,s=e.map((e,n)=>t5(e,i[n]));return e=>{for(let i=0;i<r;i++)n[i]=s[i](e);return n}},t3=(e,i)=>{let n={...e,...i},r={};for(let s in n)void 0!==e[s]&&void 0!==i[s]&&(r[s]=t5(e[s],i[s]));return e=>{for(let i in r)n[i]=r[i](e);return n}},t9=(e,i)=>{let n=ts.createTransformer(i),r=te(e),s=te(i);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?t0(t2(r.values,s.values),n):(l(!0,`Complex values '${e}' and '${i}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),t1(e,i))},t4=(e,i,n)=>{let r=i-e;return 0===r?1:(n-e)/r},t6=(e,i)=>n=>tG(e,i,n);function t8(e,i,{clamp:n=!0,ease:r,mixer:s}={}){let o=e.length;if(l(o===i.length,"Both input and output ranges must be the same length"),1===o)return()=>i[0];e[0]>e[o-1]&&(e=[...e].reverse(),i=[...i].reverse());let a=function(e,i,n){var r;let s=[],o=n||("number"==typeof(r=e[0])?t6:"string"==typeof r?Z.test(r)?tJ:t9:Array.isArray(r)?t2:"object"==typeof r?t3:t6),a=e.length-1;for(let n=0;n<a;n++){let r=o(e[n],e[n+1]);i&&(r=t0(Array.isArray(i)?i[n]||l:i,r)),s.push(r)}return s}(i,r,s),u=a.length,h=i=>{let n=0;if(u>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=t4(e[n],e[n+1],i);return a[n](r)};return n?i=>h(L(e[0],e[o-1],i)):h}function t7({duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}){let s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(tX):tX(r),o={done:!1,value:i[0]},a=t8((n&&n.length===i.length?n:function(e){let i=[0];return function(e,i){let n=e[e.length-1];for(let r=1;r<=i;r++){let s=t4(0,i,r);e.push(tG(n,1,s))}}(i,e.length-1),i}(i)).map(i=>i*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||tB).splice(0,i.length-1)});return{calculatedDuration:e,next:i=>(o.value=a(i),o.done=i>=e,o)}}function et(e,i,n){var r,s;let o=Math.max(i-5,0);return r=n-e(o),(s=i-o)?1e3/s*r:0}function ee(e,i){return e*Math.sqrt(1-i*i)}let ei=["duration","bounce"],en=["stiffness","damping","mass"];function er(e,i){return i.some(i=>void 0!==e[i])}function es({keyframes:e,restDelta:i,restSpeed:n,...r}){let s;let o=e[0],a=e[e.length-1],u={done:!1,value:o},{stiffness:h,damping:d,mass:c,velocity:p,duration:m,isResolvedFromDuration:f}=function(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!er(e,en)&&er(e,ei)){let n=function({duration:e=800,bounce:i=.25,velocity:n=0,mass:r=1}){let s,o;l(e<=tE(10),"Spring duration must be 10 seconds or less");let a=1-i;a=L(.05,1,a),e=L(.01,10,tC(e)),a<1?(s=i=>{let r=i*a,s=r*e;return .001-(r-n)/ee(i,a)*Math.exp(-s)},o=i=>{let r=i*a*e,o=Math.pow(a,2)*Math.pow(i,2)*e,l=Math.exp(-r),u=ee(Math.pow(i,2),a);return(.001-s(i)>0?-1:1)*((r*n+n-o)*l)/u}):(s=i=>Math.exp(-i*e)*((i-n)*e+1)-.001,o=i=>e*e*(n-i)*Math.exp(-i*e));let u=function(e,i,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/i(r);return r}(s,o,5/e);if(e=tE(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let i=Math.pow(u,2)*r;
3return{stiffness:i,damping:2*a*Math.sqrt(r*i),duration:e}}}(e);(i={...i,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return i}(r),g=p?-tC(p):0,v=d/(2*Math.sqrt(h*c)),y=a-o,x=tC(Math.sqrt(h/c)),P=5>Math.abs(y);if(n||(n=P?.01:2),i||(i=P?.005:.5),v<1){let e=ee(x,v);s=i=>a-Math.exp(-v*x*i)*((g+v*x*y)/e*Math.sin(e*i)+y*Math.cos(e*i))}else if(1===v)s=e=>a-Math.exp(-x*e)*(y+(g+x*y)*e);else{let e=x*Math.sqrt(v*v-1);s=i=>{let n=Math.exp(-v*x*i),r=Math.min(e*i,300);return a-n*((g+v*x*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}return{calculatedDuration:f&&m||null,next:e=>{let r=s(e);if(f)u.done=e>=m;else{let o=g;0!==e&&(o=v<1?et(s,e,r):0);let l=Math.abs(o)<=n,h=Math.abs(a-r)<=i;u.done=l&&h}return u.value=u.done?a:r,u}}}function eo({keyframes:e,velocity:i=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:h=.5,restSpeed:d}){let c,p;let m=e[0],f={done:!1,value:m},g=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u,v=n*i,y=m+v,x=void 0===a?y:a(y);x!==y&&(v=x-m);let P=e=>-v*Math.exp(-e/r),b=e=>x+P(e),T=e=>{let i=P(e),n=b(e);f.done=Math.abs(i)<=h,f.value=f.done?x:n},w=e=>{var i;i=f.value,(void 0!==l&&i<l||void 0!==u&&i>u)&&(c=e,p=es({keyframes:[f.value,g(f.value)],velocity:et(b,e,f.value),damping:s,stiffness:o,restDelta:h,restSpeed:d}))};return w(0),{calculatedDuration:null,next:e=>{let i=!1;return p||void 0!==c||(i=!0,T(e),w(e)),void 0!==c&&e>c?p.next(e-c):(i||T(e),f)}}}let ea=e=>{let i=({timestamp:i})=>e(i);return{start:()=>y.update(i,!0),stop:()=>x(i),now:()=>P.isProcessing?P.timestamp:performance.now()}};function el(e){let i=0,n=e.next(i);for(;!n.done&&i<2e4;)i+=50,n=e.next(i);return i>=2e4?1/0:i}let eu={decay:eo,inertia:eo,tween:t7,keyframes:t7,spring:es};function eh({autoplay:e=!0,delay:i=0,driver:n=ea,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:l="loop",onPlay:u,onStop:h,onComplete:d,onUpdate:c,...p}){let m,f,g,v,y,x=1,P=!1,b=()=>{y=new Promise(e=>{v=e})};b();let T=eu[s]||t7;T!==t7&&"number"!=typeof r[0]&&(f=t8([0,100],r,{clamp:!1}),r=[0,100]);let w=T({...p,keyframes:r});"mirror"===l&&(g=T({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let S="idle",A=null,V=null,E=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=el(w));let{calculatedDuration:C}=w,M=1/0,k=1/0;null!==C&&(k=(M=C+a)*(o+1)-a);let D=0,R=e=>{if(null===V)return;x>0&&(V=Math.min(V,e)),x<0&&(V=Math.min(e-k/x,V));let n=(D=null!==A?A:Math.round(e-V)*x)-i*(x>=0?1:-1),s=x>=0?n<0:n>k;D=Math.max(n,0),"finished"===S&&null===A&&(D=k);let u=D,h=w;if(o){let e=D/M,i=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&i--;let r=!!((i=Math.min(i,o+1))%2);r&&("reverse"===l?(n=1-n,a&&(n-=a/M)):"mirror"===l&&(h=g));let s=L(0,1,n);D>k&&(s="reverse"===l&&r?1:0),u=s*M}let d=s?{done:!1,value:r[0]}:h.next(u);f&&(d.value=f(d.value));let{done:p}=d;s||null===C||(p=x>=0?D>=k:D<=0);let m=null===A&&("finished"===S||"running"===S&&p);return c&&c(d.value),m&&B(),d},F=()=>{m&&m.stop(),m=void 0},j=()=>{S="idle",F(),v(),b(),V=E=null},B=()=>{S="finished",d&&d(),F(),v()},O=()=>{if(P)return;m||(m=n(R));let e=m.now();u&&u(),null!==A?V=e-A:V&&"finished"!==S||(V=e),"finished"===S&&b(),E=V,A=null,S="running",m.start()};e&&O();let I={then:(e,i)=>y.then(e,i),get time(){return tC(D)},set time(t){D=t=tE(t),null===A&&m&&0!==x?V=m.now()-t/x:A=t},get duration(){return tC(null===w.calculatedDuration?el(w):w.calculatedDuration)},get speed(){return x},set speed(t){t!==x&&m&&(x=t,I.time=tC(D))},get state(){return S},play:O,pause:()=>{S="paused",A=D},stop:()=>{P=!0,"idle"!==S&&(S="idle",h&&h(),j())},cancel:()=>{null!==E&&R(E),j()},complete:()=>{S="finished"},sample:e=>(V=0,R(e))};return I}let ed=()=>(void 0===e&&(e=Object.hasOwnProperty.call(Element.prototype,"animate")),e),ec=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ep={type:"spring",stiffness:500,damping:25,restSpeed:10},em={type:"keyframes",duration:.8},ef={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eg=(e,{keyframes:i})=>i.length>2?em:tS.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:ep:ef,ev=(e,i)=>!("zIndex"===e||"number"!=typeof i&&!Array.isArray(i)&&("string"!=typeof i||!ts.test(i)&&"0"!==i||i.startsWith("url(")));function ey(e,i){return e[i]||e.default||e}let ex=(e,i,n,r={})=>s=>{let o=ey(r,e)||{},a=o.delay||r.delay||0,{elapsed:u=0}=r;u-=tE(a);let h=function(e,i,n,r){let s,o;let a=ev(i,n);s=Array.isArray(n)?[...n]:[null,n];let l=void 0!==r.from?r.from:e.get(),u=[];for(let e=0;e<s.length;e++){var h;null===s[e]&&(s[e]=0===e?l:s[e-1]),("number"==typeof(h=s[e])?0===h:null!==h?"none"===h||"0"===h||d(h):void 0)&&u.push(e),"string"==typeof s[e]&&"none"!==s[e]&&"0"!==s[e]&&(o=s[e])}
3if(a&&u.length&&o)for(let e=0;e<u.length;e++)s[u[e]]=tm(i,o);return s}(i,e,n,o),c=h[0],p=h[h.length-1],m=ev(e,c),f=ev(e,p);l(m===f,`You are trying to animate ${e} from "${c}" to "${p}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${p} via the \`style\` property.`);let g={keyframes:h,velocity:i.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:e=>{i.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(function({when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...d}){return!!Object.keys(d).length}(o)||(g={...g,...eg(e,g)}),g.duration&&(g.duration=tE(g.duration)),g.repeatDelay&&(g.repeatDelay=tE(g.repeatDelay)),!m||!f||!1===o.type)return function({keyframes:e,delay:i,onUpdate:n,onComplete:r}){let s=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:l,pause:l,stop:l,then:e=>(e(),Promise.resolve()),cancel:l,complete:l});return i?eh({keyframes:[0,1],duration:0,delay:i,onComplete:s}):s()}(g);if(i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate){let n=function(e,i,{onUpdate:n,onComplete:r,...s}){if(!ed()||!ec.has(i)||s.repeatDelay||"mirror"===s.repeatType||0===s.damping||"inertia"===s.type)return!1;let o,a,u=!1,h=()=>{a=new Promise(e=>{o=e})};h();let{keyframes:d,duration:c=300,ease:p,times:m}=s;if("spring"===s.type||"backgroundColor"===i||!function e(i){return!!(!i||"string"==typeof i&&tD[i]||tM(i)||Array.isArray(i)&&i.every(e))}(s.ease)){let e=eh({...s,repeat:0,delay:0}),i={done:!1,value:d[0]},n=[],r=0;for(;!i.done&&r<2e4;)i=e.sample(r),n.push(i.value),r+=10;m=void 0,d=n,c=r-10,p="linear"}let f=function(e,i,n,{delay:r=0,duration:s,repeat:o=0,repeatType:a="loop",ease:l,times:u}={}){let h={[i]:n};u&&(h.offset=u);let d=function e(i){if(i)return tM(i)?tk(i):Array.isArray(i)?i.map(e):tD[i]}(l);return Array.isArray(d)&&(h.easing=d),e.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,i,d,{...s,duration:c,ease:p,times:m});s.syncStart&&(f.startTime=P.isProcessing?P.timestamp:document.timeline?document.timeline.currentTime:performance.now());let g=()=>f.cancel(),v=()=>{y.update(g),o(),h()};return f.onfinish=()=>{e.set(function(e,{repeat:i,repeatType:n="loop"}){return e[i&&"loop"!==n&&i%2==1?0:e.length-1]}(d,s)),r&&r(),v()},{then:(e,i)=>a.then(e,i),attachTimeline:e=>(f.timeline=e,f.onfinish=null,l),get time(){return tC(f.currentTime||0)},set time(t){f.currentTime=tE(t)},get speed(){return f.playbackRate},set speed(t){f.playbackRate=t},get duration(){return tC(c)},play:()=>{u||(f.play(),x(g))},pause:()=>f.pause(),stop:()=>{if(u=!0,"idle"===f.playState)return;let{currentTime:i}=f;if(i){let n=eh({...s,autoplay:!1});e.setWithVelocity(n.sample(i-10).value,n.sample(i).value,10)}v()},complete:()=>f.finish(),cancel:v}}(i,e,g);if(n)return n}return eh(g)},eP=e=>!!(e&&e.getVelocity);function eb(e){return!!(eP(e)&&e.add)}function eT(e,i,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=e.makeTargetAnimatable(i),u=e.getValue("willChange");r&&(o=r);let h=[],d=s&&e.animationState&&e.animationState.getState()[s];for(let i in l){let r=e.getValue(i),s=l[i];if(!r||void 0===s||d&&function({protectedKeys:e,needsAnimating:i},n){let r=e.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,r}(d,i))continue;let a={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=e.getProps()[tV];n&&(a.elapsed=window.HandoffAppearAnimations(n,i,r,y),a.syncStart=!0)}r.start(ex(i,r,s,e.shouldReduceMotion&&tS.has(i)?{type:!1}:a));let c=r.animation;eb(u)&&(u.add(i),c.then(()=>u.remove(i))),h.push(c)}return a&&Promise.all(h).then(()=>{a&&tb(e,a)}),h}function ew(e,i,n={}){let r=tP(e,i,n.custom),{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);let o=r?()=>Promise.all(eT(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;return function(e,i,n=0,r=0,s=1,o){let a=[],l=(e.variantChildren.size-1)*r,u=1===s?(e=0)=>e*r:(e=0)=>
3l-e*r;return Array.from(e.variantChildren).sort(eS).forEach((e,r)=>{e.notify("AnimationStart",i),a.push(ew(e,i,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",i)))}),Promise.all(a)}(e,i,o+r,a,l,n)}:()=>Promise.resolve(),{when:l}=s;if(l){let[e,i]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>i())}return Promise.all([o(),a(n.delay)])}function eS(e,i){return e.sortNodePosition(i)}function eA(e,i,n={}){let r;if(e.notify("AnimationStart",i),Array.isArray(i))r=Promise.all(i.map(i=>ew(e,i,n)));else if("string"==typeof i)r=ew(e,i,n);else{let s="function"==typeof i?tP(e,i,n.custom):i;r=Promise.all(eT(e,s,n))}return r.then(()=>e.notify("AnimationComplete",i))}function eV(){let e=!1,i=new Set,n={subscribe:e=>(i.add(e),()=>{i.delete(e)}),start(n,r){l(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return i.forEach(e=>{s.push(eA(e,n,{transitionOverride:r}))}),Promise.all(s)},set:n=>(l(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),i.forEach(e=>{Array.isArray(n)?tT(e,n):"string"==typeof n?tT(e,[n]):tb(e,n)})),stop(){i.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}function eE(e){let i=(0,r.useRef)(null);return null===i.current&&(i.current=e()),i.current}let eC="undefined"!=typeof document,eM=eC?r.useLayoutEffect:r.useEffect,ek=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),eD=(0,r.createContext)({}),eR=(0,r.createContext)(null),eL=(0,r.createContext)({strict:!1});function eF(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ej(e){return"string"==typeof e||Array.isArray(e)}function eB(e){return"object"==typeof e&&"function"==typeof e.start}let eO=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eI=["initial",...eO];function eU(e){return eB(e.animate)||eI.some(i=>ej(e[i]))}function eN(e){return!!(eU(e)||e.variants)}function e$(e){return Array.isArray(e)?e.join(" "):e}let eW={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"]},eH={};for(let e in eW)eH[e]={isEnabled:i=>eW[e].some(e=>!!i[e])};let ez=(0,r.createContext)({}),eY=(0,r.createContext)({}),eX=Symbol.for("motionComponentSymbol"),eG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eq(e){return"string"==typeof e&&!e.includes("-")&&!!(eG.indexOf(e)>-1||/[A-Z]/.test(e))}let eK={};function eZ(e,{layout:i,layoutId:n}){return tS.has(e)||e.startsWith("origin")||(i||void 0!==n)&&(!!eK[e]||"opacity"===e)}let e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eJ=tw.length,eQ=(e,i)=>i&&"number"==typeof e?i.transform(e):e;function e0(e,i,n,r){let{style:s,vars:o,transform:a,transformOrigin:l}=e,u=!1,h=!1,d=!0;for(let e in i){let n=i[e];if(V(e)){o[e]=n;continue}let r=td[e],c=eQ(n,r);if(tS.has(e)){if(u=!0,a[e]=c,!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(h=!0,l[e]=c):s[e]=c}if(i.transform||(u||r?s.transform=function(e,{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<eJ;i++){let n=tw[i];void 0!==e[n]&&(o+=`${e_[n]||n}(${e[n]}) `)}return i&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,d,r):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:i="50%",originZ:n=0}=l;s.transformOrigin=`${e} ${i} ${n}`}}function e1(e,i,n){for(let r in i)eP(i[r])||eZ(r,n)||(e[r]=i[r])}let e5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function e2(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e5.has(e)}let e3=e=>!e2(e);try{(i=n(78455).Z)&&(e3=e=>e.startsWith("on")?!e2(e):i(e))}catch(e){}function e9(e,i,n){return"string"==typeof e?e:Y.transform(i+n*e)}let e4={offset:"stroke-dashoffset",array:"stroke-dasharray"},e6={offset:"strokeDashoffset",array:"strokeDasharray"};function e8(e,{attrX:i,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...h},d,c,p){var m,f;
3if(e0(e,h,d,p),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};let{attrs:g,style:v,dimensions:y}=e;g.transform&&(y&&(v.transform=g.transform),delete g.transform),y&&(void 0!==s||void 0!==o||v.transform)&&(v.transformOrigin=(m=void 0!==s?s:.5,f=void 0!==o?o:.5,`${e9(m,y.x,y.width)} ${e9(f,y.y,y.height)}`)),void 0!==i&&(g.x=i),void 0!==n&&(g.y=n),void 0!==r&&(g.scale=r),void 0!==a&&function(e,i,n=1,r=0,s=!0){e.pathLength=1;let o=s?e4:e6;e[o.offset]=Y.transform(-r);let a=Y.transform(i),l=Y.transform(n);e[o.array]=`${a} ${l}`}(g,a,l,u,!1)}let e7=e=>"string"==typeof e&&"svg"===e.toLowerCase();function it(e,{style:i,vars:n},r,s){for(let o in Object.assign(e.style,i,s&&s.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let ie=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 ii(e,i,n,r){for(let n in it(e,i,void 0,r),i.attrs)e.setAttribute(ie.has(n)?n:tA(n),i.attrs[n])}function ir(e,i){let{style:n}=e,r={};for(let s in n)(eP(n[s])||i.style&&eP(i.style[s])||eZ(s,e))&&(r[s]=n[s]);return r}function is(e,i){let n=ir(e,i);for(let r in e)(eP(e[r])||eP(i[r]))&&(n[-1!==tw.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function io(e){let i=eP(e)?e.get():e;return i&&"object"==typeof i&&i.mix&&i.toValue?i.toValue():i}let ia=e=>(i,n)=>{let s=(0,r.useContext)(eD),o=(0,r.useContext)(eR),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o){let a={latestValues:function(e,i,n,r){let s={},o=r(e,{});for(let e in o)s[e]=io(o[e]);let{initial:a,animate:l}=e,u=eU(e),h=eN(e);i&&h&&!u&&!1!==e.inherit&&(void 0===a&&(a=i.initial),void 0===l&&(l=i.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===a)?l:a;return c&&"boolean"!=typeof c&&!eB(c)&&(Array.isArray(c)?c:[c]).forEach(i=>{let n=tx(e,i);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let i=a[e];Array.isArray(i)&&(i=i[d?i.length-1:0]),null!==i&&(s[e]=i)}for(let e in r)s[e]=r[e]}),s}(r,s,o,e),renderState:i()};return n&&(a.mount=e=>n(r,e,a)),a})(e,i,s,o);return n?a():eE(a)},il={useVisualState:ia({scrapeMotionValuesFromProps:is,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,i,{renderState:n,latestValues:r})=>{y.read(()=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),y.render(()=>{e8(n,r,{enableHardwareAcceleration:!1},e7(i.tagName),e.transformTemplate),ii(i,n)})}})},iu={useVisualState:ia({scrapeMotionValuesFromProps:ir,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function ih(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}let id=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ic(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}function ip(e,i,n,r){return ih(e,i,e=>id(e)&&n(e,ic(e)),r)}function im(e){let i=null;return()=>null===i&&(i=e,()=>{i=null})}let ig=im("dragHorizontal"),iv=im("dragVertical");function iy(e){let i=!1;if("y"===e)i=iv();else if("x"===e)i=ig();else{let e=ig(),n=iv();e&&n?i=()=>{e(),n()}:(e&&e(),n&&n())}return i}function ix(){let e=iy(!0);return!e||(e(),!1)}class iP{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ib(e,i){let n="onHover"+(i?"Start":"End");return ip(e.current,"pointer"+(i?"enter":"leave"),(r,s)=>{if("touch"===r.type||ix())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i),o[n]&&y.update(()=>o[n](r,s))},{passive:!e.getProps()[n]})}let iT=(e,i)=>!!i&&(e===i||iT(e,i.parentElement));function iw(e,i){if(!i)return;let n=new PointerEvent("pointer"+e);i(n,ic(n))}let iS=new WeakMap,iA=new WeakMap,iV=e=>{let i=iS.get(e.target);i&&i(e)},iE=e=>{e.forEach(iV)},iC={some:0,all:1};function iM(e,i){if(!Array.isArray(i))return!1;let n=i.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(i[r]!==e[r])return!1;return!0}let ik=[...eO].reverse(),iD=eO.length;function iR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iL=0,iF=(e,i)=>Math.abs(e-i);class ij{constructor(e,i,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{var e,i;if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;let n=iI(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(e=n.offset,i={x:0,y:0},Math.sqrt(iF(e.x,i.x)**2+iF(e.y,i.y)**2)>=3);if(!r&&!s)return;let{point:o}=n,{timestamp:a}=P;this.history.push({...o,timestamp:a});let{onStart:l,onMove:u}=this.handlers;r||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,i)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iB(i,this.transformPagePoint),y.update(this.updatePoint,!0)},this.handlePointerUp=(e,i)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;let{onEnd:n,onSessionEnd:r}=this.handlers,s=iI("pointercancel"===e.type?this.lastMoveEventInfo:iB(i,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!id(e))return;this.handlers=i,this.transformPagePoint=n;let r=iB(ic(e),this.transformPagePoint),{point:s}=r,{timestamp:o}=P;this.history=[{...s,timestamp:o}];let{onSessionStart:a}=i;a&&a(e,iI(r,this.history)),this.removeListeners=t0(ip(window,"pointermove",this.handlePointerMove),ip(window,"pointerup",this.handlePointerUp),ip(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),x(this.updatePoint)}}function iB(e,i){return i?{point:i(e.point)}:e}function iO(e,i){return{x:e.x-i.x,y:e.y-i.y}}function iI({point:e},i){return{point:e,delta:iO(e,iU(i)),offset:iO(e,i[0]),velocity:function(e,i){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,s=iU(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>tE(.1)));)n--;if(!r)return{x:0,y:0};let o=tC(s.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(i,.1)}}function iU(e){return e[e.length-1]}function iN(e){return e.max-e.min}function i$(e,i=0,n=.01){return Math.abs(e-i)<=n}function iW(e,i,n,r=.5){e.origin=r,e.originPoint=tG(i.min,i.max,e.origin),e.scale=iN(n)/iN(i),(i$(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tG(n.min,n.max,e.origin)-e.originPoint,(i$(e.translate)||isNaN(e.translate))&&(e.translate=0)}function iH(e,i,n,r){iW(e.x,i.x,n.x,r?r.originX:void 0),iW(e.y,i.y,n.y,r?r.originY:void 0)}function iz(e,i,n){e.min=n.min+i.min,e.max=e.min+iN(i)}function iY(e,i,n){e.min=i.min-n.min,e.max=e.min+iN(i)}function iX(e,i,n){iY(e.x,i.x,n.x),iY(e.y,i.y,n.y)}function iG(e,i,n){return{min:void 0!==i?e.min+i:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iq(e,i){let n=i.min-e.min,r=i.max-e.max;return i.max-i.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iK(e,i,n){return{min:iZ(e,i),max:iZ(e,n)}}function iZ(e,i){return"number"==typeof e?e:e[i]||0}function i_(e){return[e("x"),e("y")]}
3function iJ({top:e,left:i,right:n,bottom:r}){return{x:{min:i,max:n},y:{min:e,max:r}}}function iQ(e){return void 0===e||1===e}function i0({scale:e,scaleX:i,scaleY:n}){return!iQ(e)||!iQ(i)||!iQ(n)}function i1(e){return i0(e)||i5(e)||e.z||e.rotate||e.rotateX||e.rotateY}function i5(e){var i,n;return(i=e.x)&&"0%"!==i||(n=e.y)&&"0%"!==n}function i2(e,i,n,r,s){return void 0!==s&&(e=r+s*(e-r)),r+n*(e-r)+i}function i3(e,i=0,n=1,r,s){e.min=i2(e.min,i,n,r,s),e.max=i2(e.max,i,n,r,s)}function i9(e,{x:i,y:n}){i3(e.x,i.translate,i.scale,i.originPoint),i3(e.y,n.translate,n.scale,n.originPoint)}function i4(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function i6(e,i){e.min=e.min+i,e.max=e.max+i}function i8(e,i,[n,r,s]){let o=void 0!==i[s]?i[s]:.5,a=tG(e.min,e.max,o);i3(e,i[n],i[r],a,i.scale)}let i7=["x","scaleX","originX"],nt=["y","scaleY","originY"];function ne(e,i){i8(e.x,i,i7),i8(e.y,i,nt)}function ni(e,i){return iJ(function(e,i){if(!i)return e;let n=i({x:e.left,y:e.top}),r=i({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),i))}let nn=new WeakMap;class nr{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:i=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new ij(e,{onSessionStart:e=>{this.stopAnimation(),i&&this.snapToCursor(ic(e,"page").point)},onStart:(e,i)=>{let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iy(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i_(e=>{let i=this.getAxisMotionValue(e).get()||0;if(z.test(i)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(i=iN(r)*(parseFloat(i)/100))}}this.originPoint[e]=i}),s&&y.update(()=>s(e,i),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,i)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=i;if(r&&null===this.currentDirection)return this.currentDirection=function(e,i=10){let n=null;return Math.abs(e.y)>i?n="y":Math.abs(e.x)>i&&(n="x"),n}(a),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",i.point,a),this.updateAxis("y",i.point,a),this.visualElement.render(),o&&o(e,i)},onSessionEnd:(e,i)=>this.stop(e,i)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,i){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&y.update(()=>s(e,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){let{drag:r}=this.getProps();if(!n||!ns(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:i,max:n},r){return void 0!==i&&e<i?e=r?tG(i,e,r.min):Math.max(e,i):void 0!==n&&e>n&&(e=r?tG(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:i}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&eF(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:i,left:n,bottom:r,right:s}){return{x:iG(e.x,n,s),y:iG(e.y,i,r)}}(n.layoutBox,e),this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iK(e,"left","right"),y:iK(e,"to
3p","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&i_(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,i){let n={};return void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!i||!eF(i))return!1;let r=i.current;l(null!==r,"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 o=function(e,i,n){let r=ni(e,n),{scroll:s}=i;return s&&(i6(r.x,s.offset.x),i6(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),a={x:iq((e=s.layout.layoutBox).x,o.x),y:iq(e.y,o.y)};if(n){let e=n(function({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=iJ(e))}return a}startAnimation(e){let{drag:i,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(i_(a=>{if(!ns(a,i,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,i){let n=this.getAxisMotionValue(e);return n.start(ex(e,n,0,i))}stopAnimation(){i_(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let i="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[i]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){i_(i=>{let{drag:n}=this.getProps();if(!ns(i,n,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(i);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[i];s.set(e[i]-tG(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!eF(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};i_(e=>{let i=this.getAxisMotionValue(e);if(i){let n=i.get();r[e]=function(e,i){let n=.5,r=iN(e),s=iN(i);return s>r?n=t4(i.min,i.max-r,e.min):r>s&&(n=t4(e.min,e.max-s,i.min)),L(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),i_(i=>{if(!ns(i,e,null))return;let n=this.getAxisMotionValue(i),{min:s,max:o}=this.constraints[i];n.set(tG(s,o,r[i]))})}addListeners(){if(!this.visualElement.current)return;nn.set(this.visualElement,this);let e=ip(this.visualElement.current,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps();i&&n&&this.start(e)}),i=()=>{let{dragConstraints:e}=this.getProps();eF(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),i();let s=ih(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i})=>{this.isDragging&&i&&(i_(i=>{let n=this.getAxisMotionValue(i);n&&(this.originPoint[i]+=e[i].translate,n.set(n.get()+e[i].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ns(e,i,n){return!(!0!==i&&i!==e||null!==n&&n!==e)}let no=e=>(i,n)=>{e&&y.update(()=>e(i,n))},na={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nl(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}let nu={correct:(e,i)=>{if(!i.target)return e;if("string"==typeof e){if(!Y.test(e))return e;e=parseFloat(e)}return`${nl(e,i.target.x)}% ${nl(e,i.target.y)}%`}};
3class nh extends r.Component{componentDidMount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:r}=this.props,{projection:s}=e;Object.assign(eK,nc),s&&(i.group&&i.group.add(s),n&&n.register&&r&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),na.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:i,visualElement:n,drag:r,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==i||void 0===i?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||y.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nd(e){let[i,n]=function(){let e=(0,r.useContext)(eR);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,r.useId)();return(0,r.useEffect)(()=>s(o),[]),!i&&n?[!1,()=>n&&n(o)]:[!0]}(),s=(0,r.useContext)(ez);return r.createElement(nh,{...e,layoutGroup:s,switchLayoutGroup:(0,r.useContext)(eY),isPresent:i,safeToRemove:n})}let nc={borderRadius:{...nu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nu,borderTopRightRadius:nu,borderBottomLeftRadius:nu,borderBottomRightRadius:nu,boxShadow:{correct:(e,{treeScale:i,projectionDelta:n})=>{let r=ts.parse(e);if(r.length>5)return e;let s=ts.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=tG(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}},np=["TopLeft","TopRight","BottomLeft","BottomRight"],nm=np.length,nf=e=>"string"==typeof e?parseFloat(e):e,ng=e=>"number"==typeof e||Y.test(e);function nv(e,i){return void 0!==e[i]?e[i]:e.borderRadius}let ny=nP(0,.5,tN),nx=nP(.5,.95,l);function nP(e,i,n){return r=>r<e?0:r>i?1:n(t4(e,i,r))}function nb(e,i){e.min=i.min,e.max=i.max}function nT(e,i){nb(e.x,i.x),nb(e.y,i.y)}function nw(e,i,n,r,s){var o;return o=e-=i,e=r+1/n*(o-r),void 0!==s&&(e=r+1/s*(e-r)),e}function nS(e,i,[n,r,s],o,a){!function(e,i=0,n=1,r=.5,s,o=e,a=e){if(z.test(i)&&(i=parseFloat(i),i=tG(a.min,a.max,i/100)-a.min),"number"!=typeof i)return;let l=tG(o.min,o.max,r);e===o&&(l-=i),e.min=nw(e.min,i,n,l,s),e.max=nw(e.max,i,n,l,s)}(e,i[n],i[r],i[s],i.scale,o,a)}let nA=["x","scaleX","originX"],nV=["y","scaleY","originY"];function nE(e,i,n,r){nS(e.x,i,nA,n?n.x:void 0,r?r.x:void 0),nS(e.y,i,nV,n?n.y:void 0,r?r.y:void 0)}function nC(e){return 0===e.translate&&1===e.scale}function nM(e){return nC(e.x)&&nC(e.y)}function nk(e,i){return Math.round(e.x.min)===Math.round(i.x.min)&&Math.round(e.x.max)===Math.round(i.x.max)&&Math.round(e.y.min)===Math.round(i.y.min)&&Math.round(e.y.max)===Math.round(i.y.max)}function nD(e){return iN(e.x)/iN(e.y)}class nR{constructor(){this.members=[]}add(e){p(this.members,e),e.scheduleRender()}remove(e){if(m(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let i;let n=this.members.findIndex(i=>e===i);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(e,i){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}
3exitAnimationComplete(){this.members.forEach(e=>{let{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nL(e,i,n){let r="",s=e.x.translate/i.x,o=e.y.translate/i.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),1===i.x&&1===i.y||(r+=`scale(${1/i.x}, ${1/i.y}) `),n){let{rotate:e,rotateX:i,rotateY:s}=n;e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `)}let a=e.x.scale*i.x,l=e.y.scale*i.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}let nF=(e,i)=>e.depth-i.depth;class nj{constructor(){this.children=[],this.isDirty=!1}add(e){p(this.children,e),this.isDirty=!0}remove(e){m(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nF),this.isDirty=!1,this.children.forEach(e)}}let nB=["","X","Y","Z"],nO=0,nI={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nU({attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e={},n=null==i?void 0:i()){this.id=nO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nI.totalNodes=nI.resolvedTargetDeltas=nI.recalculatedProjection=0,this.nodes.forEach(nW),this.nodes.forEach(nK),this.nodes.forEach(nZ),this.nodes.forEach(nH),window.MotionDebug&&window.MotionDebug.record(nI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nj)}addEventListener(e,i){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new f),this.eventHandlers.get(e).add(i)}notifyListeners(e,...i){let n=this.eventHandlers.get(e);n&&n.notify(...i)}hasListeners(e){return this.eventHandlers.has(e)}mount(i,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=i instanceof SVGElement&&"svg"!==i.tagName,this.instance=i;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,i){let n=performance.now(),r=({timestamp:i})=>{let s=i-n;s>=250&&(x(r),e(s-250))};return y.read(r,!0),()=>x(r)}(r),na.hasAnimatedSinceResize&&(na.hasAnimatedSinceResize=!1,this.nodes.forEach(nq))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);let s=this.options.transition||o.getDefaultTransition()||n5,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!nk(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let i={...ey(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(i.delay=0,i.type=!1),this.startAnimation(i)}else i||nq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,x(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
3h(n_),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:i,layout:n}=this.options;if(void 0===i&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(nY);this.isUpdating||this.nodes.forEach(nX),this.isUpdating=!1,this.nodes.forEach(nG),this.nodes.forEach(nN),this.nodes.forEach(n$),this.clearAllSnapshots();let e=performance.now();P.delta=L(0,1e3/60,e-P.timestamp),P.timestamp=e,P.isProcessing=!0,b.update.process(P),b.preRender.process(P),b.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(nz),this.sharedNodes.forEach(nJ)}scheduleUpdateProjection(){y.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!nM(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(i||i1(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var i;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),n9((i=r).x),n9(i.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};let i=e.measureViewportBox(),{scroll:n}=this.root;return n&&(i6(i.x,n.offset.x),i6(i.y,n.offset.y)),i}removeElementScroll(e){let i={x:{min:0,max:0},y:{min:0,max:0}};nT(i,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:s,options:o}=r;if(r!==this.root&&s&&o.layoutScroll){if(s.isRoot){nT(i,e);let{scroll:n}=this.root;n&&(i6(i.x,-n.offset.x),i6(i.y,-n.offset.y))}i6(i.x,s.offset.x),i6(i.y,s.offset.y)}}return i}applyTransform(e,i=!1){let n={x:{min:0,max:0},y:{min:0,max:0}};nT(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ne(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i1(r.latestValues)&&ne(n,r.latestValues)}return i1(this.latestValues)&&ne(n,this.latestValues),n}removeTransform(e){let i={x:{min:0,max:0},y:{min:0,max:0}};nT(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!i1(n.latestValues))continue;i0(n.latestValues)&&n.updateSnapshot();let r={x:{min:0,max:0},y:{min:0,max:0}};nT(r,n.measurePageBox()),nE(i,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return i1(this.latestValues)&&nE(i,this.latestValues),i}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var i,n,r,s;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(i=this.parent)||void 0===i?void 0:i.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=P.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},iX(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,s=this.relativeParent.target,iz(n.x,r.x,s.x),iz(n.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nT(this.target,this.layout.layoutBox),i9(this.target,this.targetDelta)):nT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},iX(this.relativeTargetOrigin,this.target,e.target),nT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nI.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!i0(this.parent.latestValues)&&!i5(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let i=this.getLead(),n=!!this.resumingFrom||this!==i,r=!0;
3if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===P.timestamp&&(r=!1),r)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;nT(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;(function(e,i,n,r=!1){let s,o;let a=n.length;if(a){i.x=i.y=1;for(let l=0;l<a;l++){o=(s=n[l]).projectionDelta;let a=s.instance;a&&a.style&&"contents"===a.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ne(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(i.x*=o.x.scale,i.y*=o.y.scale,i9(e,o)),r&&i1(s.latestValues)&&ne(e,s.latestValues))}i.x=i4(i.x),i.y=i4(i.y)}})(this.layoutCorrected,this.treeScale,this.path,n),!i.layout||i.target||1===this.treeScale.x&&1===this.treeScale.y||(i.target=i.layout.layoutBox);let{target:u}=i;if(!u)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});let h=this.projectionTransform;iH(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=nL(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===a&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),nI.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,i=!1){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l={x:{min:0,max:0},y:{min:0,max:0}},u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(n1));this.animationProgress=0,this.mixTargetDelta=i=>{var r,h,p,m;let f=i/1e3;nQ(a.x,e.x,f),nQ(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(iX(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,n0(p.x,m.x,l.x,f),n0(p.y,m.y,l.y,f),n&&(r=this.relativeTarget,h=n,r.x.min===h.x.min&&r.x.max===h.x.max&&r.y.min===h.y.min&&r.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n={x:{min:0,max:0},y:{min:0,max:0}}),nT(n,this.relativeTarget)),u&&(this.animationValues=o,function(e,i,n,r,s,o){s?(e.opacity=tG(0,void 0!==n.opacity?n.opacity:1,ny(r)),e.opacityExit=tG(void 0!==i.opacity?i.opacity:1,0,nx(r))):o&&(e.opacity=tG(void 0!==i.opacity?i.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<nm;s++){let o=`border${np[s]}Radius`,a=nv(i,o),l=nv(n,o);void 0===a&&void 0===l||(a||(a=0),l||(l=0),0===a||0===l||ng(a)===ng(l)?(e[o]=Math.max(tG(nf(a),nf(l),r),0),(z.test(l)||z.test(a))&&(e[o]+="%")):e[o]=l)}(i.rotate||n.rotate)&&(e.rotate=tG(i.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,f,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=f},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(x(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=y.update(()=>{na.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,i,n){let r=eP(0)?0:S(0);return r.start(ex("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:i=>{this.mixTargetDelta(i),e.onUpdate&&e.onUpdate(i)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:i,target:n,layout:r,latestValues:s}=e;if(i&&n&&r){if(this!==e&&this.layout&&r&&n4(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};let i=iN(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+i;let r=iN(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nT(i,n),ne(i,s),iH(this.projectionDeltaWithTransform,this.layoutCorrected,i,s)}}registerSharedNode(e,i){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nR),this.sharedNodes.get(e).add(i);let n=i.options.initialPromotionConfig;i.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(i):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:i}=this.options;return i&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:i}=this.options;return i?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:i,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let i=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(i=!0),!i)return;let r={};for(let i=0;i<nB.length;i++){let s="rotate"+nB[i];n[s]&&(r[s]=n[s],e.setStaticValue(s,0))}for(let i in e.render(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}getProjectionStyles(e={}){var i,n;let r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";let s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=io(e.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let i={};return this.options.layoutId&&(i.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,i.pointerEvents=io(e.pointerEvents)||""),this.hasProjected&&!i1(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1),i}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=nL(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,eK){if(void 0===a[e])continue;let{correct:i,applyTo:n}=eK[e],s="none"===r.transform?a[e]:i(a[e],o);if(n){let e=n.length;for(let i=0;i<e;i++)r[n[i]]=s}else r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?io(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
3resetTree(){this.root.nodes.forEach(e=>{var i;return null===(i=e.currentAnimation)||void 0===i?void 0:i.stop()}),this.root.nodes.forEach(nY),this.root.sharedNodes.clear()}}}function nN(e){e.updateLayout()}function n$(e){var i;let n=(null===(i=e.resumeFrom)||void 0===i?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?i_(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=iN(r);r.min=i[e].min,r.max=r.min+s}):n4(s,n.layoutBox,i)&&i_(r=>{let s=o?n.measuredBox[r]:n.layoutBox[r],a=iN(i[r]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};iH(a,i,n.layoutBox);let l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?iH(l,e.applyTransform(r,!0),n.measuredBox):iH(l,i,n.layoutBox);let u=!nM(a),h=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:o}=r;if(s&&o){let a={x:{min:0,max:0},y:{min:0,max:0}};iX(a,n.layoutBox,s.layoutBox);let l={x:{min:0,max:0},y:{min:0,max:0}};iX(l,i,o.layoutBox),nk(a,l)||(h=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){let{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function nW(e){nI.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nz(e){e.clearSnapshot()}function nY(e){e.clearMeasurements()}function nX(e){e.isLayoutDirty=!1}function nG(e){let{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function nq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nK(e){e.resolveTargetDelta()}function nZ(e){e.calcProjection()}function n_(e){e.resetRotation()}function nJ(e){e.removeLeadSnapshot()}function nQ(e,i,n){e.translate=tG(i.translate,0,n),e.scale=tG(i.scale,1,n),e.origin=i.origin,e.originPoint=i.originPoint}function n0(e,i,n,r){e.min=tG(i.min,n.min,r),e.max=tG(i.max,n.max,r)}function n1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n5={duration:.45,ease:[.4,0,.1,1]},n2=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),n3=n2("applewebkit/")&&!n2("chrome/")?Math.round:l;function n9(e){e.min=n3(e.min),e.max=n3(e.max)}function n4(e,i,n){return"position"===e||"preserve-aspect"===e&&!i$(nD(i),nD(n),.2)}let n6=nU({attachResizeListener:(e,i)=>ih(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n8={current:void 0},n7=nU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n8.current){let e=new n6({});e.mount(window),e.setOptions({layoutScroll:!0}),n8.current=e}return n8.current},resetTransform:(e,i)=>{e.style.transform=void 0!==i?i:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function re(e,i,n=1){l(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(e){let i=rt.exec(e);if(!i)return[,];let[,n,r]=i;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let e=o.trim();return h(e)?parseFloat(e):e}return E(s)?re(s,i,n+1):s}let ri=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rn=e=>ri.has(e),rr=e=>e===F||e===Y,rs=(e,i)=>parseFloat(e.split(", ")[i]),ro=(e,i)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/);if(s)return rs(s[1],i);{let i=r.match(/^matrix\((.+)\)$/);return i?rs(i[1],e):0}},ra=new Set(["x","y","z"]),rl=tw.filter(e=>!ra.has(e)),ru={width:({x:e},{paddingLeft:i="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),height:({y:e},{paddingTop:i="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:ro(4,13),y:ro(5,14)};ru.translateX=ru.x,ru.translateY=ru.y;let rh={current:null},rd={current:!1},rc=new WeakMap,rp=Object.keys(eH),rm=rp.length,rf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rg=eI.length;class rv extends class{constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>y.render(this.render,!1,!0);let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=i.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=eU(i),this.isVariantNode=eN(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(i,{});for(let e in h){let i=h[e];void 0!==a[e]&&eP(i)&&(i.set(a[e],!1),eb(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,i){return{}}mount(e){this.current=e,rc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
3h((e,i)=>this.bindToMotionValue(i,e)),rd.current||function(){if(rd.current=!0,eC){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),i=()=>rh.current=e.matches;e.addListener(i),i()}else rh.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rh.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in rc.delete(this.current),this.projection&&this.projection.unmount(),x(this.notifyUpdate),x(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,i){let n=tS.has(e),r=i.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&y.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=i.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...i},n,r,s){let o,a;for(let e=0;e<rm;e++){let n=rp[e],{isEnabled:r,Feature:s,ProjectionNode:l,MeasureLayout:u}=eH[n];l&&(o=l),r(i)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),u&&(a=u))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=i;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&eF(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}return a}updateFeatures(){for(let e in this.features){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}makeTargetAnimatable(e,i=!0){return this.makeTargetAnimatableFromInstance(e,this.props,i)}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let i=0;i<rf.length;i++){let n=rf[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,i,n){let{willChange:r}=i;for(let s in i){let o=i[s],a=n[s];if(eP(o))e.addValue(s,o),eb(r)&&r.add(s);else if(eP(a))e.addValue(s,S(o,{owner:e})),eb(r)&&r.remove(s);else if(a!==o){if(e.hasValue(s)){let i=e.getValue(s);i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(s);e.addValue(s,S(void 0!==i?i:o,{owner:e}))}}}for(let r in n)void 0===i[r]&&e.removeValue(r);return i}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<rg;e++){let n=eI[e],r=this.props[n];(ej(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(e){let i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){i!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,i)),this.values.set(e,i),this.latestValues[e]=i.get()}removeValue(e){this.values.delete(e);let i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==i&&(n=S(i,{owner:this}),this.addValue(e,n)),n}readValue(e){var i;return void 0===this.latestValues[e]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,e))&&void 0!==i?i:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(i=tx(this.props,n))||void 0===i?void 0:i[e]:void 0;if(n&&void 0!==r)return r;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||eP(s)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:s}on(e,i){return this.events[e]||(this.events[e]=new f),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}{sortInstanceNodePosition(e,i){return 2&e.compareDocumentPosition(i)?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:i,...n},{transformValues:r},s){let o=function(e,i,n){let r={};for(let s in e){let e=function(e,i){if(i)return(i[e]||i.default||i).from}(s,i);if(void 0!==e)r[s]=e;else{let e=n.getValue(s);e&&(r[s]=e.get())}}return r}(n,e||{},this);if(r&&(i&&(i=r(i)),n&&(n=r(n)),o&&(o=r(o))),s){!function(e,i,n){var r,s,o;let a=Object.keys(i).filter(i=>!e.hasValue(i)),l=a.length;if(l)for(let u=0;u<l;u++){let l=a[u],c=i[l],p=null;Array.isArray(c)&&(p=c[0]),null===p&&(p=null!==(s=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==s?s:i[l]),null!=p&&("string"==typeof p&&(h(p)||d(p))?p=parseFloat(p):(o=p,!ty.find(tf(o))&&ts.test(c)&&(p=tm(l,c))),e.addValue(l,S(p,{owner:e})),void 0===n[l]&&(n[l]=p),null!==p&&e.setBaseTarget(l,p))}}(this,n,o);let e=((e,i,n,r)=>{var s,o,a,u;let h=function(e,{...i},n){let r=e.current;if(!(r instanceof Element))return{target:i,transitionEnd:n};for(let s in n&&(n={...n}
3),e.values.forEach(e=>{let i=e.get();if(!E(i))return;let n=re(i,r);n&&e.set(n)}),i){let e=i[s];if(!E(e))continue;let o=re(e,r);o&&(i[s]=o,n||(n={}),void 0===n[s]&&(n[s]=e))}return{target:i,transitionEnd:n}}(e,i,r);return s=e,o=i=h.target,a=n,u=r=h.transitionEnd,Object.keys(o).some(rn)?((e,i,n={},r={})=>{i={...i},r={...r};let s=Object.keys(i).filter(rn),o=[],a=!1,u=[];if(s.forEach(s=>{let h;let d=e.getValue(s);if(!e.hasValue(s))return;let p=n[s],m=tv(p),f=i[s];if(c(f)){let e=f.length,i=null===f[0]?1:0;m=tv(p=f[i]);for(let n=i;n<e&&null!==f[n];n++)h?l(tv(f[n])===h,"All keyframes must be of the same type"):l((h=tv(f[n]))===m||rr(m)&&rr(h),"Keyframes must be of the same dimension as the current value")}else h=tv(f);if(m!==h){if(rr(m)&&rr(h)){let e=d.get();"string"==typeof e&&d.set(parseFloat(e)),"string"==typeof f?i[s]=parseFloat(f):Array.isArray(f)&&h===Y&&(i[s]=f.map(parseFloat))}else(null==m?void 0:m.transform)&&(null==h?void 0:h.transform)&&(0===p||0===f)?0===p?d.set(h.transform(p)):i[s]=m.transform(f):(a||(o=function(e){let i=[];return rl.forEach(n=>{let r=e.getValue(n);void 0!==r&&(i.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),i.length&&e.render(),i}(e),a=!0),u.push(s),r[s]=void 0!==r[s]?r[s]:i[s],d.jump(f))}}),u.length){let n=u.indexOf("height")>=0?window.pageYOffset:null,s=((e,i,n)=>{let r=i.measureViewportBox(),s=getComputedStyle(i.current),{display:o}=s,a={};"none"===o&&i.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=ru[e](r,s)}),i.render();let l=i.measureViewportBox();return n.forEach(n=>{let r=i.getValue(n);r&&r.jump(a[n]),e[n]=ru[n](l,s)}),e})(i,e,u);return o.length&&o.forEach(([i,n])=>{e.getValue(i).set(n)}),e.render(),eC&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}return{target:i,transitionEnd:r}})(s,o,a,u):{target:o,transitionEnd:u}})(this,n,o,i);i=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:i,...n}}}class ry extends rv{readValueFromInstance(e,i){if(tS.has(i)){let e=tp(i);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(V(i)?n.getPropertyValue(i):n[i])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:i}){return ni(e,i)}build(e,i,n,r){e0(e,i,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,i){return ir(e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eP(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,i,n,r){it(e,i,n,r)}}class rx extends rv{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(tS.has(i)){let e=tp(i);return e&&e.default||0}return i=ie.has(i)?i:tA(i),e.getAttribute(i)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,i){return is(e,i)}build(e,i,n,r){e8(e,i,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,i,n,r){ii(e,i,0,r)}mount(e){this.isSVGTag=e7(e.tagName),super.mount(e)}}let rP=(e,i)=>eq(e)?new rx(i,{enableHardwareAcceleration:!1}):new ry(i,{enableHardwareAcceleration:!0}),rb={animation:{Feature:class extends iP{constructor(e){super(e),e.animationState||(e.animationState=function(e){let i=i=>Promise.all(i.map(({animation:i,options:n})=>eA(e,i,n))),n={animate:iR(!0),whileInView:iR(),whileHover:iR(),whileTap:iR(),whileDrag:iR(),whileFocus:iR(),exit:iR()},r=!0,s=(i,n)=>{let r=tP(e,n);if(r){let{transition:e,transitionEnd:n,...s}=r;i={...i,...s,...n}}return i};function o(o,a){var l;let u=e.getProps(),h=e.getVariantContext(!0)||{},d=[],p=new Set,m={},f=1/0;for(let i=0;i<iD;i++){let g=ik[i],v=n[g],y=void 0!==u[g]?u[g]:h[g],x=ej(y),P=g===a?v.isActive:null;!1===P&&(f=i);let b=y===h[g]&&y!==u[g]&&x;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...m},!v.isActive&&null===P||!y&&!v.prevProp||eB(y)||"boolean"==typeof y)continue;let T=(l=v.prevProp,"string"==typeof y?y!==l:!!Array.isArray(y)&&!iM(y,l)),w=T||g===a&&v.isActive&&!b&&x||i>f&&x,S=Array.isArray(y)?y:[y],A=S.reduce(s,{});!1===P&&(A={});let{prevResolvedValues:V={}}=v,E={...V,...A},C=e=>{w=!0,p.delete(e),v.needsAnimating[e]=!0};for(let e in E){let i=A[e],n=V[e];m.hasOwnProperty(e)||(i!==n?c(i)&&c(n)?!iM(i,n)||T?C(e):v.protectedKeys[e]=!0:void 0!==i?C(e):p.add(e):void 0!==i&&p.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=y,v.prevResolvedValues=A,v.isActive&&(m={...m,...A}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&d.push(...S.map(e=>({animation:e,options:{type:g,...o}})))}if(p.size){let i={};p.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(i[n]=r)}),d.push({animation:i})}let g=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?i(d):Promise.resolve()}
3return{animateChanges:o,setActive:function(i,r,s){var a;if(n[i].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(i,r)}),n[i].isActive=r;let l=o(s,i);for(let e in n)n[e].protectedKeys={};return l},setAnimateFunction:function(n){i=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),eB(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends iP{constructor(){super(...arguments),this.id=iL++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:i,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});i&&!e&&s.then(()=>i(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s}=e,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iC[r]};return function(e,i,n){let r=function({root:e,...i}){let n=e||document;iA.has(n)||iA.set(n,{});let r=iA.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(iE,{root:e,...i})),r[s]}(i);return iS.set(e,n),r.observe(e),()=>{iS.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:i}=e;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=i?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:i}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:i={}}={}){return n=>e[n]!==i[n]}(e,i))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends iP{constructor(){super(...arguments),this.removeStartListeners=l,this.removeEndListeners=l,this.removeAccessibleListeners=l,this.startPointerPress=(e,i)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=ip(window,"pointerup",(e,i)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();y.update(()=>{iT(this.node.current,e.target)?n&&n(e,i):r&&r(e,i)})},{passive:!(n.onTap||n.onPointerUp)}),s=ip(window,"pointercancel",(e,i)=>this.cancelPress(e,i),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=t0(r,s),this.startPress(e,i)},this.startAccessiblePress=()=>{let e=ih(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ih(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&iw("up",(e,i)=>{let{onTap:n}=this.node.getProps();n&&y.update(()=>n(e,i))})}),iw("down",(e,i)=>{this.startPress(e,i)}))}),i=ih(this.node.current,"blur",()=>{this.isPressing&&iw("cancel",(e,i)=>this.cancelPress(e,i))});this.removeAccessibleListeners=t0(e,i)}}startPress(e,i){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&y.update(()=>n(e,i))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ix()}cancelPress(e,i){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&y.update(()=>n(e,i))}mount(){let e=this.node.getProps(),i=ip(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ih(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t0(i,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends iP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(i){e=!0}e&&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=t0(ih(this.node.current,"focus",()=>this.onFocus()),ih(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iP{mount(){this.unmount=t0(ib(this.node,!0),ib(this.node,!1))}unmount(){}}},pan:{Feature:class extends iP{constructor(){super(...arguments),this.removePointerDownListener=l}onPointerDown(e){this.session=new ij(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:no(e),onStart:no(i),onMove:n,onEnd:(e,i)=>{delete this.session,r&&y.update(()=>r(e,i))}}}mount(){this.removePointerDownListener=ip(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iP{constructor(e){super(e),this.removeGroupControls=l,this.removeListeners=l,this.controls=new nr(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:n7,MeasureLayout:nd},layout:{ProjectionNode:n7,MeasureLayout:nd}},rT=function(e){function i(n,s={}){return function({preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:s,Component:o}){e&&function(e){for(let i in e)eH[i]={...eH[i],...e[i]}}(e);let a=(0,r.forwardRef)(function(a,l){var u;let h;let d={...(0,r.useContext)(ek),...a,layoutId:function({layoutId:e}){let i=(0,r.useContext)(ez).id;return i&&void 0!==e?i+"-"+e:e}(a)},{isStatic:c}=d,p=function(e){let{initial:i,animate:n}=function(e,i){if(eU(e)){let{initial:i,animate:n}=e;return{initial:!1===i||ej(i)?i:void 0,animate:ej(n)?n:void 0}}return!1!==e.inherit?i:{}}(e,(0,r.useContext)(eD));return(0,r.useMemo)(()=>({initial:i,animate:n}),[e$(i),e$(n)])}
3(a),m=s(a,c);if(!c&&eC){p.visualElement=function(e,i,n,s){let{visualElement:o}=(0,r.useContext)(eD),a=(0,r.useContext)(eL),l=(0,r.useContext)(eR),u=(0,r.useContext)(ek).reducedMotion,h=(0,r.useRef)();s=s||a.renderer,!h.current&&s&&(h.current=s(e,{visualState:i,parent:o,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=h.current;(0,r.useInsertionEffect)(()=>{d&&d.update(n,l)});let c=(0,r.useRef)(!!window.HandoffAppearAnimations);return eM(()=>{d&&(d.render(),c.current&&d.animationState&&d.animationState.animateChanges())}),(0,r.useEffect)(()=>{d&&(d.updateFeatures(),!c.current&&d.animationState&&d.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),d}(o,m,d,i);let n=(0,r.useContext)(eY),s=(0,r.useContext)(eL).strict;p.visualElement&&(h=p.visualElement.loadFeatures(d,s,e,n))}return r.createElement(eD.Provider,{value:p},h&&p.visualElement?r.createElement(h,{visualElement:p.visualElement,...d}):null,n(o,a,(u=p.visualElement,(0,r.useCallback)(e=>{e&&m.mount&&m.mount(e),u&&(e?u.mount(e):u.unmount()),l&&("function"==typeof l?l(e):eF(l)&&(l.current=e))},[u])),m,c,p.visualElement))});return a[eX]=o,a}(e(n,s))}if("undefined"==typeof Proxy)return i;let n=new Map;return new Proxy(i,{get:(e,r)=>(n.has(r)||n.set(r,i(r)),n.get(r))})}((e,i)=>(function(e,{forwardMotionProps:i=!1},n,s){return{...eq(e)?il:iu,preloadedFeatures:n,useRender:function(e=!1){return(i,n,s,{latestValues:o},a)=>{let l=(eq(i)?function(e,i,n,s){let o=(0,r.useMemo)(()=>{let n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return e8(n,i,{enableHardwareAcceleration:!1},e7(s),e.transformTemplate),{...n.attrs,style:{...n.style}}},[i]);if(e.style){let i={};e1(i,e.style,e),o.style={...i,...o.style}}return o}:function(e,i,n){let s={},o=function(e,i,n){let s={};return e1(s,e.style||{},e),Object.assign(s,function({transformTemplate:e},i,n){return(0,r.useMemo)(()=>{let r={style:{},transform:{},transformOrigin:{},vars:{}};return e0(r,i,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[i])}(e,i,n)),e.transformValues?e.transformValues(s):s}(e,i,n);return e.drag&&!1!==e.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=o,s})(n,o,a,i),u={...function(e,i,n){let r={};for(let s in e)"values"===s&&"object"==typeof e.values||(e3(s)||!0===n&&e2(s)||!i&&!e2(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof i,e),...l,ref:s},{children:h}=n,d=(0,r.useMemo)(()=>eP(h)?h.get():h,[h]);return(0,r.createElement)(i,{...u,children:d})}}(i),createVisualElement:s,Component:e}})(e,i,rb,rP)),rw=[0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9],rS=a().memo(({className:e,animateToNumber:i,fontStyle:n,transitions:s,includeComma:o,locale:l})=>{let h=a().useRef(null),d=function(e,{root:i,margin:n,amount:s,once:o=!1}={}){let[a,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e.current||o&&a)return;let r={root:i&&i.current||void 0,margin:n,amount:s};return function(e,i,{root:n,margin:r,amount:s="some"}={}){var o;let a=("string"==typeof(o=e)?o=document.querySelectorAll(o):o instanceof Element&&(o=[o]),Array.from(o||[])),l=new WeakMap,h=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting){if(e.isIntersecting){let n=i(e);"function"==typeof n?l.set(e.target,n):h.unobserve(e.target)}else n&&(n(e),l.delete(e.target))}})},{root:n,rootMargin:r,threshold:"number"==typeof s?s:u[s]});return a.forEach(e=>h.observe(e)),()=>h.disconnect()}(e.current,()=>(l(!0),o?void 0:()=>l(!1)),r)},[i,e,n,o]),a}(h,{once:!0}),c=function(){let e=eE(eV);return eM(e.mount,[]),e}(),p=a().useRef(0),m=o?Math.abs(i).toLocaleString(l||"en-US"):String(Math.abs(i)),f=Array.from(m,Number).map((e,i)=>isNaN(e)?m[i]:e),[g,v]=a().useState(0),[y,x]=a().useState(0),P=a().useRef(null);return a().useEffect(()=>{var e;let i=null===(e=P.current.getClientRects())||void 0===e?void 0:e[0];i&&(v(i.height),x(i.width))},[i,n]),a().useEffect(()=>{d&&c.start("visible")},[d,i]),a().createElement("span",{ref:h},0!==g&&a().createElement("div",{style:{display:"flex",flexDirection:"row",overflow:"hidden"},className:e},f.map((e,i)=>"string"==typeof e?a().createElement("div",{key:i,style:{...n,fontVariantNumeric:"tabular-nums"}},e):a().createElement("div",{key:i,style:{height:g,width:y}},rw.map(e=>a().createElement(rT.div,{style:{...n,fontVariantNumeric:"tabular-nums"},key:""+p.current++,initial:"hidden",variants:{hidden:{y:0},visible:{y:-(g*f[i]*1)-20*g}},animate:c,transition:null==s?void 0:s(i)},e))))),a().createElement("div",{ref:P,style:{position:"absolute",top:-9999,...n}},0))},(e,i)=>e.animateToNumber===i.animateToNumber&&e.fontStyle===i.fontStyle&&e.includeComma===i.includeComma)})(),o})()},e.exports=s(n(67294))},78455:function(e,i,n){"use strict";n.d(i,{Z:()=>a});var r,s,o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
3ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;let a=(r=function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)},s={},function(e){return void 0===s[e]&&(s[e]=r(e)),s[e]})},31659:function(e,i,n){"use strict";let r,s;n.d(i,{E:()=>r0});var o,a,l=n("67294");let u=(0,l.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),h=(0,l.createContext)({}),d=(0,l.createContext)(null),c="undefined"!=typeof document,p=c?l.useLayoutEffect:l.useEffect,m=(0,l.createContext)({strict:!1}),f=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),g="data-"+f("framerAppearId"),v={skipAnimations:!1,useManualTiming:!1};class y{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let i=this.order.indexOf(e);-1!==i&&(this.order.splice(i,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let x=["read","resolveKeyframes","update","preRender","render","postRender"];
3function P(e,i){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},o=x.reduce((e,i)=>(e[i]=function(e){let i=new y,n=new y,r=0,s=!1,o=!1,a=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let u=l&&s,h=u?i:n;return o&&a.add(e),h.add(e)&&u&&s&&(r=i.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:u=>{if(s){o=!0;return}if(s=!0,[i,n]=[n,i],n.clear(),r=i.order.length)for(let n=0;n<r;n++){let r=i.order[n];a.has(r)&&(l.schedule(r),e()),r(u)}s=!1,o&&(o=!1,l.process(u))}};return l}(()=>n=!0),e),{}),a=e=>{o[e].process(s)},l=()=>{let o=v.useManualTiming?s.timestamp:performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,x.forEach(a),s.isProcessing=!1,n&&i&&(r=!1,e(l))},u=()=>{n=!0,r=!0,s.isProcessing||e(l)};return{schedule:x.reduce((e,i)=>{let r=o[i];return e[i]=(e,i=!1,s=!1)=>(n||u(),r.schedule(e,i,s)),e},{}),cancel:e=>x.forEach(i=>o[i].cancel(e)),state:s,steps:o}}let{schedule:b,cancel:T}=P(queueMicrotask,!1);function w(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function S(e){return"string"==typeof e||Array.isArray(e)}function A(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let V=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E=["initial",...V];function C(e){return A(e.animate)||E.some(i=>S(e[i]))}function M(e){return!!(C(e)||e.variants)}function k(e){return Array.isArray(e)?e.join(" "):e}let D={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"]},R={};for(let e in D)R[e]={isEnabled:i=>D[e].some(e=>!!i[e])};let L=(0,l.createContext)({}),F=(0,l.createContext)({}),j=Symbol.for("motionComponentSymbol"),B=["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 O(e){if("string"!=typeof e||e.includes("-"));else if(B.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let I={},U=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],N=new Set(U);function $(e,{layout:i,layoutId:n}){return N.has(e)||e.startsWith("origin")||(i||void 0!==n)&&(!!I[e]||"opacity"===e)}let W=e=>!!(e&&e.getVelocity),H={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z=U.length,Y=e=>i=>"string"==typeof i&&i.startsWith(e),X=Y("--"),G=Y("var(--"),q=e=>!!G(e)&&K.test(e.split("/*")[0].trim()),K=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Z=(e,i)=>i&&"number"==typeof e?i.transform(e):e,_=(e,i,n)=>n>i?i:n<e?e:n,J={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Q={...J,transform:e=>_(0,1,e)},tt={...J,default:1},te=e=>Math.round(1e5*e)/1e5,ti=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ts(e){return"string"==typeof e}let to=e=>({test:i=>ts(i)&&i.endsWith(e)&&1===i.split(" ").length,parse:parseFloat,transform:i=>`${i}${e}`}),ta=to("deg"),tl=to("%"),tu=to("px"),th=to("vh"),td=to("vw"),tc={...tl,parse:e=>tl.parse(e)/100,transform:e=>tl.transform(100*e)},tp={...J,transform:Math.round},tm={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,size:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,rotate:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:tt,scaleX:tt,scaleY:tt,scaleZ:tt,skew:ta,skewX:ta,skewY:ta,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:Q,originX:tc,originY:tc,originZ:tu,zIndex:tp,backgroundPositionX:tu,backgroundPositionY:tu,fillOpacity:Q,strokeOpacity:Q,numOctaves:tp};function tf(e,i,n,r){let{style:s,vars:o,transform:a,transformOrigin:l}=e,u=!1,h=!1,d=!0;for(let e in i){let n=i[e];if(X(e)){o[e]=n;continue}let r=tm[e],c=Z(n,r);
3if(N.has(e)){if(u=!0,a[e]=c,!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(h=!0,l[e]=c):s[e]=c}if(!i.transform&&(u||r?s.transform=function(e,{enableHardwareAcceleration:i=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<z;i++){let n=U[i];if(void 0!==e[n]){let i=H[n]||n;o+=`${i}(${e[n]}) `}}return i&&!e.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(e,r?"":o):n&&r&&(o="none"),o}(e.transform,n,d,r):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:i="50%",originZ:n=0}=l;s.transformOrigin=`${e} ${i} ${n}`}}let tg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tv(e,i,n){for(let r in i)W(i[r])||$(r,n)||(e[r]=i[r])}let ty=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 tx(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ty.has(e)}let tP=e=>!tx(e);try{(o=require("@emotion/is-prop-valid").default)&&(tP=e=>e.startsWith("on")?!tx(e):o(e))}catch(e){}function tb(e,i,n){return"string"==typeof e?e:tu.transform(i+n*e)}let tT={offset:"stroke-dashoffset",array:"stroke-dasharray"},tw={offset:"strokeDashoffset",array:"strokeDasharray"};function tS(e,{attrX:i,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...h},d,c,p){if(tf(e,h,d,p),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:f,dimensions:g}=e;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==s||void 0!==o||f.transform)&&(f.transformOrigin=function(e,i,n){let r=tb(i,e.x,e.width),s=tb(n,e.y,e.height);return`${r} ${s}`}(g,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==i&&(m.x=i),void 0!==n&&(m.y=n),void 0!==r&&(m.scale=r),void 0!==a&&function(e,i,n=1,r=0,s=!0){e.pathLength=1;let o=s?tT:tw;e[o.offset]=tu.transform(-r);let a=tu.transform(i),l=tu.transform(n);e[o.array]=`${a} ${l}`}(m,a,l,u,!1)}let tA=()=>({...tg(),attrs:{}}),tV=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tE(e,{style:i,vars:n},r,s){for(let o in Object.assign(e.style,i,s&&s.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let tC=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 tM(e,i,n,r){for(let n in tE(e,i,void 0,r),i.attrs)e.setAttribute(tC.has(n)?n:f(n),i.attrs[n])}function tk(e,i){let{style:n}=e,r={};for(let s in n)(W(n[s])||i.style&&W(i.style[s])||$(s,e))&&(r[s]=n[s]);return r}function tD(e,i){let n=tk(e,i);for(let r in e)(W(e[r])||W(i[r]))&&(n[-1!==U.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function tR(e,i,n,r={},s={}){return"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),"string"==typeof i&&(i=e.variants&&e.variants[i]),"function"==typeof i&&(i=i(void 0!==n?n:e.custom,r,s)),i}let tL=e=>Array.isArray(e),tF=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),tj=e=>tL(e)?e[e.length-1]||0:e;function tB(e){let i=W(e)?e.get():e;return tF(i)?i.toValue():i}let tO=e=>(i,n)=>{let r=(0,l.useContext)(h),s=(0,l.useContext)(d),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,o){let a={latestValues:function(e,i,n,r){let s={},o=r(e,{});for(let e in o)s[e]=tB(o[e]);let{initial:a,animate:l}=e,u=C(e),h=M(e);i&&h&&!u&&!1!==e.inherit&&(void 0===a&&(a=i.initial),void 0===l&&(l=i.animate));let d=!!n&&!1===n.initial,c=(d=d||!1===a)?l:a;return c&&"boolean"!=typeof c&&!A(c)&&(Array.isArray(c)?c:[c]).forEac
3h(i=>{let n=tR(e,i);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let i=a[e];if(Array.isArray(i)){let e=d?i.length-1:0;i=i[e]}null!==i&&(s[e]=i)}for(let e in r)s[e]=r[e]}),s}(r,s,o,e),renderState:i()};return n&&(a.mount=e=>n(r,e,a)),a})(e,i,r,s);return n?o():function(e){let i=(0,l.useRef)(null);return null===i.current&&(i.current=e()),i.current}(o)},tI=e=>e,{schedule:tU,cancel:tN,state:t$,steps:tW}=P("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tI,!0),tH={useVisualState:tO({scrapeMotionValuesFromProps:tD,createRenderState:tA,onMount:(e,i,{renderState:n,latestValues:r})=>{tU.read(()=>{try{n.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),tU.render(()=>{tS(n,r,{enableHardwareAcceleration:!1},tV(i.tagName),e.transformTemplate),tM(i,n)})}})},tz={useVisualState:tO({scrapeMotionValuesFromProps:tk,createRenderState:tg})};function tY(e,i,n,r={passive:!0}){return e.addEventListener(i,n,r),()=>e.removeEventListener(i,n)}let tX=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function tG(e,i="page"){return{point:{x:e[i+"X"],y:e[i+"Y"]}}}let tq=e=>i=>tX(i)&&e(i,tG(i));function tK(e,i,n,r){return tY(e,i,tq(n),r)}let tZ=(e,i)=>n=>i(e(n)),t_=(...e)=>e.reduce(tZ);function tJ(e){let i=null;return()=>null===i&&(i=e,()=>{i=null})}let tQ=tJ("dragHorizontal"),t0=tJ("dragVertical");function t1(e){let i=!1;if("y"===e)i=t0();else if("x"===e)i=tQ();else{let e=tQ(),n=t0();e&&n?i=()=>{e(),n()}:(e&&e(),n&&n())}return i}function t5(){let e=t1(!0);return!e||(e(),!1)}class t2{constructor(e){this.isMounted=!1,this.node=e}update(){}}function t3(e,i){let n="onHover"+(i?"Start":"End");return tK(e.current,"pointer"+(i?"enter":"leave"),(r,s)=>{if("touch"===r.pointerType||t5())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",i),o[n]&&o[n](r,s)},{passive:!e.getProps()[n]})}let t9=(e,i)=>!!i&&(e===i||t9(e,i.parentElement));function t4(e,i){if(!i)return;let n=new PointerEvent("pointer"+e);i(n,tG(n))}let t6=new WeakMap,t8=new WeakMap,t7=e=>{let i=t6.get(e.target);i&&i(e)},et=e=>{e.forEach(t7)},ee={some:0,all:1};function ei(e,i){if(!Array.isArray(i))return!1;let n=i.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(i[r]!==e[r])return!1;return!0}function en(e,i,n){let r=e.getProps();return tR(r,i,void 0!==n?n:r.custom,function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.get()),i}(e),function(e){let i={};return e.values.forEach((e,n)=>i[n]=e.getVelocity()),i}(e))}let er=e=>1e3*e,es=e=>e/1e3,eo={type:"spring",stiffness:500,damping:25,restSpeed:10},ea=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),el={type:"keyframes",duration:.8},eu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eh=(e,{keyframes:i})=>i.length>2?el:N.has(e)?e.startsWith("scale")?ea(i[1]):eo:eu;function ed(e,i){return e[i]||e.default||e}let ec={current:!1},ep=e=>null!==e;function em(e,{repeat:i,repeatType:n="loop"},r){let s=e.filter(ep),o=i&&"loop"!==n&&i%2==1?0:s.length-1;return o&&void 0!==r?r:s[o]}function ef(){r=void 0}let eg={now:()=>(void 0===r&&eg.set(t$.isProcessing||v.useManualTiming?t$.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(ef)}},ev=e=>/^0[^.\s]+$/u.test(e),ey=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eb=e=>e===J||e===tu,eT=(e,i)=>parseFloat(e.split(", ")[i]),ew=(e,i)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return eT(s[1],i);{let i=r.match(/^matrix\((.+)\)$/u);return i?eT(i[1],e):0}},eS=new Set(["x","y","z"]),eA=U.filter(e=>!eS.has(e));function eV(e){let i=[];return eA.forEach(n=>{let r=e.getValue(n);void 0!==r&&(i.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),i}let eE={width:({x:e},{paddingLeft:i="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),height:({y:e},{paddingTop:i="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(i)-parseFloat(n),top:(e,{top:i})=>parseFloat(i),left:(e,{left:i})=>parseFloat(i),bottom:({y:e},{top:i})=>parseFloat(i)+(e.max-e.min),right:({x:e},{left:i})=>parseFloat(i)+(e.max-e.min),x:ew(4,13),y:ew(5,14)};eE.translateX=eE.x,eE.translateY=eE.y;let eC=e=>i=>i.test(e),eM=[J,tu,tl,ta,td,th,{test:e=>"auto"===e,parse:e=>e}],ek=e=>eM.find(eC(e)),eD=new Set,eR=!1,eL=!1;function eF(){if(eL){let e=Array.from(eD).filter(e=>e.needsMeasurement),i=new Set(e.map(e=>e.element)),n=new Map;
3i.forEach(e=>{eV(e).length&&(n.set(e,eV(e)),e.render())}),e.forEach(e=>e.measureInitialState()),i.forEach(e=>{e.render()}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eL=!1,eR=!1,eD.forEach(e=>e.complete()),eD.clear()}function ej(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eL=!0)})}class eB{constructor(e,i,n,r,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=n,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eD.add(this),eR||(eR=!0,tU.read(ej),tU.resolveKeyframes(eF))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:i,element:n,motionValue:r}=this;for(let s=0;s<e.length;s++)if(null===e[s]){if(0===s){let s=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==s)e[0]=s;else if(n&&i){let r=n.readValue(i,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===s&&r.set(e[0])}else e[s]=e[s-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eD.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eD.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eO=(e,i)=>n=>!!(ts(n)&&tr.test(n)&&n.startsWith(e)||i&&Object.prototype.hasOwnProperty.call(n,i)),eI=(e,i,n)=>r=>{if(!ts(r))return r;let[s,o,a,l]=r.match(ti);return{[e]:parseFloat(s),[i]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},eU=e=>_(0,255,e),eN={...J,transform:e=>Math.round(eU(e))},e$={test:eO("rgb","red"),parse:eI("red","green","blue"),transform:({red:e,green:i,blue:n,alpha:r=1})=>"rgba("+eN.transform(e)+", "+eN.transform(i)+", "+eN.transform(n)+", "+te(Q.transform(r))+")"},eW={test:eO("#"),parse:function(e){let i="",n="",r="",s="";return e.length>5?(i=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(i=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),i+=i,n+=n,r+=r,s+=s),{red:parseInt(i,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:e$.transform},eH={test:eO("hsl","hue"),parse:eI("hue","saturation","lightness"),transform:({hue:e,saturation:i,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tl.transform(te(i))+", "+tl.transform(te(n))+", "+te(Q.transform(r))+")"},ez={test:e=>e$.test(e)||eW.test(e)||eH.test(e),parse:e=>e$.test(e)?e$.parse(e):eH.test(e)?eH.parse(e):eW.parse(e),transform:e=>ts(e)?e:e.hasOwnProperty("red")?e$.transform(e):eH.transform(e)},eY="number",eX="color",eG=/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 eq(e){let i=e.toString(),n=[],r={color:[],number:[],var:[]},s=[],o=0,a=i.replace(eG,e=>(ez.test(e)?(r.color.push(o),s.push(eX),n.push(ez.parse(e))):e.startsWith("var(")?(r.var.push(o),s.push("var"),n.push(e)):(r.number.push(o),s.push(eY),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:s}}function eK(e){return eq(e).values}function eZ(e){let{split:i,types:n}=eq(e),r=i.length;return e=>{let s="";for(let o=0;o<r;o++)if(s+=i[o],void 0!==e[o]){let i=n[o];i===eY?s+=te(e[o]):i===eX?s+=ez.transform(e[o]):s+=e[o]}return s}}let e_=e=>"number"==typeof e?0:e,eJ={test:function(e){var i,n;return isNaN(e)&&ts(e)&&((null===(i=e.match(ti))||void 0===i?void 0:i.length)||0)+((null===(n=e.match(tn))||void 0===n?void 0:n.length)||0)>0},parse:eK,createTransformer:eZ,getAnimatableNone:function(e){let i=eK(e);return eZ(e)(i.map(e_))}},eQ=new Set(["brightness","contrast","saturate","opacity"]);function e0(e){let[i,n]=e.slice(0,-1).split("(");if("drop-shadow"===i)return e;let[r]=n.match(ti)||[];if(!r)return e;let s=n.replace(r,""),o=eQ.has(i)?1:0;return r!==n&&(o*=100),i+"("+o+s+")"}let e1=/\b([a-z-]*)\(.*?\)/gu,e5={...eJ,getAnimatableNone:e=>{let i=e.match(e1);return i?i.map(e0).join(" "):e}},e2={...tm,color:ez,backgroundColor:ez,outlineColor:ez,fill:ez,stroke:ez,borderColor:ez,borderTopColor:ez,borderRightColor:ez,borderBottomColor:ez,borderLeftColor:ez,filter:e5,WebkitFilter:e5},e3=e=>e2[e];function e9(e,i){let n=e3(e);return n!==e5&&(n=eJ),n.getAnimatableNone?n.getAnimatableNone(i):void 0}class e4 extends eB{constructor(e,i,n,r){super(e,i,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:i,name:n}=this;if(!i.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&q(r)){let s=function e(i,n,r=1){tI(r<=4,`Max CSS variable fallback depth detected in property "${i}". This may indicate a circular fallback dependency.`);let[s,o]=function(e){let i=ex.exec(e);if(!i)return[,];let[,n,r,s]=i;return[`--${null!=n?n:r}`,s]}(i);if(!s)return;let a=window.getComputedStyle(n).getPropertyValue(s);if(a){let e=a.trim();return ey(e)?parseFloat(e):e}return q(o)?e(o,n,r+1):o}(r,i.current);void 0!==s&&(e[n]=s)}}if(!eP.has(n)||2!==e.length)return this.resolveNoneKeyframes();let[r,s]=e,o=ek(r),a=ek(s);if(o!==a){if(eb(o)&&eb(a))for(let i=0;i<e.length;i++){let n=e[i];"string"==typeof n&&(e[i]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:i}=this,n=[];for(let i=0;i<e.length;i++){var r;("number"==typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||ev(r))&&n.push(i)}n.length&&function(e,i,n){let r,s=0;for(;s<e.length&&!r;)"string"==typeof e[s]&&"none"!==e[s]&&"0"!==e[s]&&(r=e[s]),s++;if(r&&n)for(let s of i)e[s]=e9(n,r)}(e,n,i)}measureInitialState(){let{element:e,unresolvedKeyframes:i,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eE[n](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;let r=i[i.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:i,name:n,unresolvedKeyframes:r}=this;if(!i.current)return;let s=i.getValue(n);s&&s.jump(this.measuredOrigin,!1);let o=r.length-1,a=r[o];r[o]=eE[n](i.measureViewportBox(),window.getComputedStyle(i.current)),null!==a&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
3h(([e,n])=>{i.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let e6=(e,i)=>"zIndex"!==i&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eJ.test(e)||"0"===e)&&!e.startsWith("url("));class e8{constructor({autoplay:e=!0,delay:i=0,type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.options={autoplay:e,delay:i,type:n,repeat:r,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||(ej(),eF()),this._resolved}onKeyframesResolved(e,i){let{name:n,type:r,velocity:s,delay:o,onComplete:a,onUpdate:l}=this.options;if(!function(e,i,n,r){let s=e[0];if(null===s)return!1;let o=e[e.length-1],a=e6(s,i),l=e6(o,i);return tI(a===l,`You are trying to animate ${i} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!l&&(function(e){let i=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==i)return!0}(e)||"spring"===n&&r)}(e,n,r,s)){if(ec.current||!o){null==l||l(em(e,this.options,i)),null==a||a(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,i);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:i,...u},this.onPostResolved())}onPostResolved(){}then(e,i){return this.currentFinishedPromise.then(e,i)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function e7(e,i,n){var r,s;let o=Math.max(i-5,0);return r=n-e(o),(s=i-o)?1e3/s*r:0}function it(e,i){return e*Math.sqrt(1-i*i)}let ie=["duration","bounce"],ii=["stiffness","damping","mass"];function ir(e,i){return i.some(i=>void 0!==e[i])}function is({keyframes:e,restDelta:i,restSpeed:n,...r}){let s;let o=e[0],a=e[e.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(e){let i={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ir(e,ii)&&ir(e,ie)){let n=function({duration:e=800,bounce:i=.25,velocity:n=0,mass:r=1}){let s,o;tI(e<=er(10),"Spring duration must be 10 seconds or less");let a=1-i;a=_(.05,1,a),e=_(.01,10,es(e)),a<1?(s=i=>{let r=i*a,s=r*e;return .001-(r-n)/it(i,a)*Math.exp(-s)},o=i=>{let r=i*a*e,o=Math.pow(a,2)*Math.pow(i,2)*e,l=Math.exp(-r),u=it(Math.pow(i,2),a);return(r*n+n-o)*l*(-s(i)+.001>0?-1:1)/u}):(s=i=>-.001+Math.exp(-i*e)*((i-n)*e+1),o=i=>e*e*(n-i)*Math.exp(-i*e));let l=function(e,i,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/i(r);return r}(s,o,5/e);if(e=er(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let i=Math.pow(l,2)*r;return{stiffness:i,damping:2*a*Math.sqrt(r*i),duration:e}}}(e);(i={...i,...n,mass:1}).isResolvedFromDuration=!0}return i}({...r,velocity:-es(r.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*d)),v=a-o,y=es(Math.sqrt(u/d)),x=5>Math.abs(v);if(n||(n=x?.01:2),i||(i=x?.005:.5),g<1){let e=it(y,g);s=i=>a-Math.exp(-g*y*i)*((f+g*y*v)/e*Math.sin(e*i)+v*Math.cos(e*i))}else if(1===g)s=e=>a-Math.exp(-y*e)*(v+(f+y*v)*e);else{let e=y*Math.sqrt(g*g-1);s=i=>{let n=Math.exp(-g*y*i),r=Math.min(e*i,300);return a-n*((f+g*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e}}return{calculatedDuration:m&&c||null,next:e=>{let r=s(e);if(m)l.done=e>=c;else{let o=f;0!==e&&(o=g<1?e7(s,e,r):0);let u=Math.abs(o)<=n,h=Math.abs(a-r)<=i;l.done=u&&h}return l.value=l.done?a:r,l}}}function io({keyframes:e,velocity:i=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:h=.5,restSpeed:d}){let c,p;let m=e[0],f={done:!1,value:m},g=e=>void 0!==l&&e<l||void 0!==u&&e>u,v=e=>void 0===l?u:void 0===u?l:Math.abs(l-e)<Math.abs(u-e)?l:u,y=n*i,x=m+y,P=void 0===a?x:a(x);P!==x&&(y=P-m);let b=e=>-y*Math.exp(-e/r),T=e=>P+b(e),w=e=>{let i=b(e),n=T(e);f.done=Math.abs(i)<=h,f.value=f.done?P:n},S=e=>{g(f.value)&&(c=e,p=is({keyframes:[f.value,v(f.value)],velocity:e7(T,e,f.value),damping:s,stiffness:o,restDelta:h,restSpeed:d}))};return S(0),{calculatedDuration:null,next:e=>{let i=!1;return(p||void 0!==c||(i=!0,w(e),S(e)),void 0!==c&&e>=c)?p.next(e-c):(i||w(e),f)}}}let ia=(e,i,n)=>(((1-3*n+3*i)*e+(3*n-6*i))*e+3*i)*e;function il(e,i,n,r){if(e===i&&n===r)return tI;let s=i=>(function(e,i,n,r,s){let o,a;let l=0;do(o=ia(a=i+(n-i)/2,r,s)-e)>
30?n=a:i=a;while(Math.abs(o)>1e-7&&++l<12);return a})(i,0,1,e,n);return e=>0===e||1===e?e:ia(s(e),i,r)}let iu=il(.42,0,1,1),ih=il(0,0,.58,1),id=il(.42,0,.58,1),ic=e=>Array.isArray(e)&&"number"!=typeof e[0],ip=e=>i=>i<=.5?e(2*i)/2:(2-e(2*(1-i)))/2,im=e=>i=>1-e(1-i),ig=e=>1-Math.sin(Math.acos(e)),iv=im(ig),iy=ip(ig),ix=il(.33,1.53,.69,.99),iP=im(ix),ib=ip(iP),iT={linear:tI,easeIn:iu,easeInOut:id,easeOut:ih,circIn:ig,circInOut:iy,circOut:iv,backIn:iP,backInOut:ib,backOut:ix,anticipate:e=>(e*=2)<1?.5*iP(e):.5*(2-Math.pow(2,-10*(e-1)))},iw=e=>{if(Array.isArray(e)){tI(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[i,n,r,s]=e;return il(i,n,r,s)}return"string"==typeof e?(tI(void 0!==iT[e],`Invalid easing type '${e}'`),iT[e]):e},iS=(e,i,n)=>{let r=i-e;return 0===r?1:(n-e)/r},iA=(e,i,n)=>e+(i-e)*n;function iV(e,i,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(i-e)*6*n:n<.5?i:n<2/3?e+(i-e)*(2/3-n)*6:e}let iE=(e,i,n)=>{let r=e*e,s=n*(i*i-r)+r;return s<0?0:Math.sqrt(s)},iC=[eW,e$,eH],iM=e=>iC.find(i=>i.test(e));function ik(e){let i=iM(e);tI(!!i,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=i.parse(e);return i===eH&&(n=function({hue:e,saturation:i,lightness:n,alpha:r}){e/=360,n/=100;let s=0,o=0,a=0;if(i/=100){let r=n<.5?n*(1+i):n+i-n*i,l=2*n-r;s=iV(l,r,e+1/3),o=iV(l,r,e),a=iV(l,r,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let iD=(e,i)=>{let n=ik(e),r=ik(i),s={...n};return e=>(s.red=iE(n.red,r.red,e),s.green=iE(n.green,r.green,e),s.blue=iE(n.blue,r.blue,e),s.alpha=iA(n.alpha,r.alpha,e),e$.transform(s))};function iR(e,i){return n=>n>0?i:e}function iL(e,i){return n=>iA(e,i,n)}function iF(e){return"number"==typeof e?iL:"string"==typeof e?q(e)?iR:ez.test(e)?iD:iO:Array.isArray(e)?ij:"object"==typeof e?ez.test(e)?iD:iB:iR}function ij(e,i){let n=[...e],r=n.length,s=e.map((e,n)=>iF(e)(e,i[n]));return e=>{for(let i=0;i<r;i++)n[i]=s[i](e);return n}}function iB(e,i){let n={...e,...i},r={};for(let s in n)void 0!==e[s]&&void 0!==i[s]&&(r[s]=iF(e[s])(e[s],i[s]));return e=>{for(let i in r)n[i]=r[i](e);return n}}let iO=(e,i)=>{let n=eJ.createTransformer(i),r=eq(e),s=eq(i);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?t_(ij(function(e,i){var n;let r=[],s={color:0,var:0,number:0};for(let o=0;o<i.values.length;o++){let a=i.types[o],l=e.indexes[a][s[a]],u=null!==(n=e.values[l])&&void 0!==n?n:0;r[o]=u,s[a]++}return r}(r,s),s.values),n):(tI(!0,`Complex values '${e}' and '${i}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),iR(e,i))};function iI(e,i,n){return"number"==typeof e&&"number"==typeof i&&"number"==typeof n?iA(e,i,n):iF(e)(e,i)}function iU({duration:e=300,keyframes:i,times:n,ease:r="easeInOut"}){let s=ic(r)?r.map(iw):iw(r),o={done:!1,value:i[0]},a=function(e,i,{clamp:n=!0,ease:r,mixer:s}={}){let o=e.length;if(tI(o===i.length,"Both input and output ranges must be the same length"),1===o)return()=>i[0];if(2===o&&e[0]===e[1])return()=>i[1];e[0]>e[o-1]&&(e=[...e].reverse(),i=[...i].reverse());let a=function(e,i,n){let r=[],s=n||iI,o=e.length-1;for(let n=0;n<o;n++){let o=s(e[n],e[n+1]);i&&(o=t_(Array.isArray(i)?i[n]||tI:i,o)),r.push(o)}return r}(i,r,s),l=a.length,u=i=>{let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=iS(e[n],e[n+1],i);return a[n](r)};return n?i=>u(_(e[0],e[o-1],i)):u}((n&&n.length===i.length?n:function(e){let i=[0];return function(e,i){let n=e[e.length-1];for(let r=1;r<=i;r++){let s=iS(0,i,r);e.push(iA(n,1,s))}}(i,e.length-1),i}(i)).map(i=>i*e),i,{ease:Array.isArray(s)?s:i.map(()=>s||id).splice(0,i.length-1)});return{calculatedDuration:e,next:i=>(o.value=a(i),o.done=i>=e,o)}}let iN=e=>{let i=({timestamp:i})=>e(i);return{start:()=>tU.update(i,!0),stop:()=>tN(i),now:()=>t$.isProcessing?t$.timestamp:eg.now()}},i$={decay:io,inertia:io,tween:iU,keyframes:iU,spring:is},iW=e=>e/100;class iH extends e8{constructor({KeyframeResolver:e=eB,...i}){super(i),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";let{name:n,motionValue:r,keyframes:s}=this.options,o=(e,i)=>this.onKeyframesResolved(e,i);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(s,o,n,r):this.resolver=new e(s,o,n,r),this.resolver.scheduleResolve()}initPlayback(e){let i,n;let{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=i$[r]||iU;u!==iU&&"number"!=typeof e[0]&&(i=t_(iW,iI(e[0],e[1])),e=[0,100]);let h=u({...this.options,keyframes:e});"mirror"===a&&(n=u({...this.options,keyframes:[...e].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=function(e){let i=0,n=e.next(i);for(;!n.done&&i<2e4;)i+=50,n=e.next(i);return i>=2e4?1/0:i}(h));let{calculatedDuration:d}=h,c=d+o;return{generator:h,mirroredGenerator:n,mapPercentToKeyframes:i,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(s+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,i=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:h,resolvedDuration:d}=n;if(null===this.startTime)return s.next(0);let{delay:c,repeat:p,repeatType:m,repeatDelay:f,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-h/this.speed,this.startTime)),i?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let x=this.currentTime,P=s;if(p){let e=Math.min(this.currentTime,h)/d,i=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&i--,(i=Math.min(i,p+1))%2&&("reverse"===m?(n=1-n,f&&(n-=f/d)):"mirror"===m&&(P=o)),x=_(0,1,n)*d}let b=y?{done:!1,value:l[0]}:P.next(x);a&&(b.value=a(b.value));let{done:T}=b;y||null===u||(T=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==r&&(b.value=em(l,this.options,r)),g&&g(b.value),w&&this.finish(),b}get duration(){let{resolved:e}=this;return e?es(e.calculatedDuration):0}
3get time(){return es(this.currentTime)}set time(e){e=er(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=es(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=iN,onPlay:i}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),i&&i();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let iz=e=>Array.isArray(e)&&"number"==typeof e[0],iY=([e,i,n,r])=>`cubic-bezier(${e}, ${i}, ${n}, ${r})`,iX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iY([0,.65,.55,1]),circOut:iY([.55,0,1,.45]),backIn:iY([.31,.01,.66,-.59]),backOut:iY([.33,1.53,.69,.99])},iG=(a=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===s&&(s=a()),s)),iq=new Set(["opacity","clipPath","filter","transform"]);class iK extends e8{constructor(e){super(e);let{name:i,motionValue:n,keyframes:r}=this.options;this.resolver=new e4(r,(e,i)=>this.onKeyframesResolved(e,i),i,n),this.resolver.scheduleResolve()}initPlayback(e,i){var n,r;let{duration:s=300,motionValue:o,name:a}=this.options;if(!(null===(n=o.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function e(i){return!!(!i||"string"==typeof i&&iX[i]||iz(i)||Array.isArray(i)&&i.every(e))}(r.ease)){let{onComplete:i,onUpdate:n,motionValue:r,...o}=this.options,a=function(e,i){let n=new iH({...i,keyframes:e,repeat:0,delay:0}),r={done:!1,value:e[0]},s=[],o=0;for(;!r.done&&o<2e4;)s.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(e,o);e=a.keyframes,s=a.duration,this.options.times=a.times,this.options.ease=a.ease}let l=function(e,i,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l,times:u}={}){let h={[i]:n};u&&(h.offset=u);let d=function e(i){if(i)return iz(i)?iY(i):Array.isArray(i)?i.map(e):iX[i]}(l);return Array.isArray(d)&&(h.easing=d),e.animate(h,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,a,e,{...this.options,duration:s});return l.startTime=eg.now(),this.pendingTimeline?(l.timeline=this.pendingTimeline,this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:n}=this.options;o.set(em(e,this.options,i)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:i}=e;return es(i)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:i}=e;return es(i.currentTime||0)}set time(e){let{resolved:i}=this;if(!i)return;let{animation:n}=i;n.currentTime=er(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:i}=e;return i.playbackRate}set speed(e){let{resolved:i}=this;if(!i)return;let{animation:n}=i;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:i}=e;return i.playState}attachTimeline(e){if(this._resolved){let{resolved:i}=this;if(!i)return tI;let{animation:n}=i;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return tI}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:i}=e;
3"finished"===i.playState&&this.updateFinishedPromise(),i.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:i,keyframes:n}=e;if("idle"!==i.playState&&"finished"!==i.playState){if(this.time){let{motionValue:e,onUpdate:i,onComplete:r,...s}=this.options,o=new iH({...s,keyframes:n}),a=er(this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:i,name:n,repeatDelay:r,repeatType:s,damping:o,type:a}=e;return iG()&&n&&iq.has(n)&&i&&i.owner&&i.owner.current instanceof HTMLElement&&!i.owner.getProps().onUpdate&&!r&&"mirror"!==s&&0!==o&&"inertia"!==a}}let iZ=(e,i,n,r={},s,o)=>a=>{let l=ed(r,e)||{},u=l.delay||r.delay||0,{elapsed:h=0}=r;h-=er(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:i.getVelocity(),...l,delay:-h,onUpdate:e=>{i.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:i,element:o?void 0:s};!function({when:e,delay:i,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:h,...d}){return!!Object.keys(d).length}(l)&&(d={...d,...eh(e,d)}),d.duration&&(d.duration=er(d.duration)),d.repeatDelay&&(d.repeatDelay=er(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1===d.type&&(d.duration=0,0===d.delay&&(c=!0)),(ec.current||v.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!o&&void 0!==i.get()){let e=em(d.keyframes,l);if(void 0!==e){tU.update(()=>{d.onUpdate(e),d.onComplete()});return}}return!o&&iK.supports(d)?new iK(d):new iH(d)};function i_(e){return!!(W(e)&&e.add)}function iJ(e,i){-1===e.indexOf(i)&&e.push(i)}function iQ(e,i){let n=e.indexOf(i);n>-1&&e.splice(n,1)}class i0{constructor(){this.subscriptions=[]}add(e){return iJ(this.subscriptions,e),()=>iQ(this.subscriptions,e)}notify(e,i,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,i,n);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(e,i,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let i1=e=>!isNaN(parseFloat(e)),i5={current:void 0};class i2{constructor(e,i={}){this.version="11.0.20",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,i=!0)=>{let n=eg.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=i1(this.current),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=eg.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new i0);let n=this.events[e].add(i);return"change"===e?()=>{n(),tU.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e,i=!0){i&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,i)}setWithVelocity(e,i,n){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return i5.current&&i5.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let i=eg.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||i-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),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 i3(e,i){return new i2(e,i)}function i9(e,i,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=i,h=e.getValue("willChange");r&&(a=r);let d=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let i in u){let r=e.getValue(i,null!==(o=e.latestValues[i])&&void 0!==o?o:null),s=u[i];if(void 0===s||c&&function({protectedKeys:e,needsAnimating:i},n){let r=e.hasOwnProperty(n)&&!0!==i[n];return i[n]=!1,r}(c,i))continue;let l={delay:n,elapsed:0,...ed(a||{},i)},p=!1;if(window.HandoffAppearAnimations){let n=e.getProps()[g];if(n){let e=window.HandoffAppearAnimations(n,i);null!==e&&(l.elapsed=e,p=!0)}}r.start(iZ(i,r,s,e.shouldReduceMotion&&N.has(i)?{type:!1}:l,e,p));let m=r.animation;m&&(i_(h)&&(h.add(i),m.then(()=>h.remove(i))),d.push(m))}return l&&Promise.all(d).then(()=>{tU.update(()=>{l&&function(e,i){let{transitionEnd:n={},transition:r={},...s}=en(e,i)||{};for(let i in s={...s,...n}){let n=tj(s[i]);e.hasValue(i)?e.getValue(i).set(n):e.addValue(i,i3(n))}}(e,l)})}),d}function i4(e,i,n={}){var r;let s=en(e,i,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=s||{};
3n.transitionOverride&&(o=n.transitionOverride);let a=s?()=>Promise.all(i9(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:l}=o;return function(e,i,n=0,r=0,s=1,o){let a=[],l=(e.variantChildren.size-1)*r,u=1===s?(e=0)=>e*r:(e=0)=>l-e*r;return Array.from(e.variantChildren).sort(i6).forEach((e,r)=>{e.notify("AnimationStart",i),a.push(i4(e,i,{...o,delay:n+u(r)}).then(()=>e.notify("AnimationComplete",i)))}),Promise.all(a)}(e,i,s+r,a,l,n)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([a(),l(n.delay)]);{let[e,i]="beforeChildren"===u?[a,l]:[l,a];return e().then(()=>i())}}function i6(e,i){return e.sortNodePosition(i)}let i8=[...V].reverse(),i7=V.length;function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ne=0,ni=(e,i)=>Math.abs(e-i);class nn{constructor(e,i,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,i;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=no(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(e=n.offset,i={x:0,y:0},Math.sqrt(ni(e.x,i.x)**2+ni(e.y,i.y)**2)>=3);if(!r&&!s)return;let{point:o}=n,{timestamp:a}=t$;this.history.push({...o,timestamp:a});let{onStart:l,onMove:u}=this.handlers;r||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,i)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nr(i,this.transformPagePoint),tU.update(this.updatePoint,!0)},this.handlePointerUp=(e,i)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=no("pointercancel"===e.type?this.lastMoveEventInfo:nr(i,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!tX(e))return;this.dragSnapToOrigin=s,this.handlers=i,this.transformPagePoint=n,this.contextWindow=r||window;let o=nr(tG(e),this.transformPagePoint),{point:a}=o,{timestamp:l}=t$;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=i;u&&u(e,no(o,this.history)),this.removeListeners=t_(tK(this.contextWindow,"pointermove",this.handlePointerMove),tK(this.contextWindow,"pointerup",this.handlePointerUp),tK(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tN(this.updatePoint)}}function nr(e,i){return i?{point:i(e.point)}:e}function ns(e,i){return{x:e.x-i.x,y:e.y-i.y}}function no({point:e},i){return{point:e,delta:ns(e,na(i)),offset:ns(e,i[0]),velocity:function(e,i){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,s=na(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>er(.1)));)n--;if(!r)return{x:0,y:0};let o=es(s.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(i,.1)}}function na(e){return e[e.length-1]}function nl(e){return e.max-e.min}function nu(e,i=0,n=.01){return Math.abs(e-i)<=n}function nh(e,i,n,r=.5){e.origin=r,e.originPoint=iA(i.min,i.max,e.origin),e.scale=nl(n)/nl(i),(nu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=iA(n.min,n.max,e.origin)-e.originPoint,(nu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nd(e,i,n,r){nh(e.x,i.x,n.x,r?r.originX:void 0),nh(e.y,i.y,n.y,r?r.originY:void 0)}function nc(e,i,n){e.min=n.min+i.min,e.max=e.min+nl(i)}function np(e,i,n){e.min=i.min-n.min,e.max=e.min+nl(i)}function nm(e,i,n){np(e.x,i.x,n.x),np(e.y,i.y,n.y)}function nf(e,i,n){return{min:void 0!==i?e.min+i:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ng(e,i){let n=i.min-e.min,r=i.max-e.max;return i.max-i.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nv(e,i,n){return{min:ny(e,i),max:ny(e,n)}}function ny(e,i){return"number"==typeof e?e:e[i]||0}let nx=()=>({translate:0,scale:1,origin:0,originPoint:0}),nP=()=>({x:nx(),y:nx()}),nb=()=>({min:0,max:0}),nT=()=>({x:nb(),y:nb()});function nw(e){return[e("x"),e("y")]}function nS({top:e,left:i,right:n,bottom:r}){return{x:{min:i,max:n},y:{min:e,max:r}}}function nA(e){return void 0===e||1===e}function nV({scale:e,scaleX:i,scaleY:n}){return!nA(e)||!nA(i)||!nA(n)}function nE(e){return nV(e)||nC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nC(e){var i,n;return(i=e.x)&&"0%"!==i||(n=e.y)&&"0%"!==n}function nM(e,i,n,r,s){return void 0!==s&&(e=r+s*(e-r)),r+n*(e-r)+i}function nk(e,i=0,n=1,r,s){e.min=nM(e.min,i,n,r,s),e.max=nM(e.max,i,n,r,s)}function nD(e,{x:i,y:n}){nk(e.x,i.translate,i.scale,i.originPoint),nk(e.y,n.translate,n.scale,n.originPoint)}function nR(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function nL(e,i){e.min=e.min+i,e.max=e.max+i}function nF(e,i,[n,r,s]){let o=void 0!==i[s]?i[s]:.5,a=iA(e.min,e.max,o);nk(e,i[n],i[r],a,i.scale)}
3let nj=["x","scaleX","originX"],nB=["y","scaleY","originY"];function nO(e,i){nF(e.x,i,nj),nF(e.y,i,nB)}function nI(e,i){return nS(function(e,i){if(!i)return e;let n=i({x:e.left,y:e.top}),r=i({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),i))}let nU=({current:e})=>e?e.ownerDocument.defaultView:null,nN=new WeakMap;class n${constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nT(),this.visualElement=e}start(e,{snapToCursor:i=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nn(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(tG(e,"page").point)},onStart:(e,i)=>{let{drag:n,dragPropagation:r,onDragStart:s}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t1(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nw(e=>{let i=this.getAxisMotionValue(e).get()||0;if(tl.test(i)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(i=nl(r)*(parseFloat(i)/100))}}this.originPoint[e]=i}),s&&s(e,i);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,i)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=i;if(r&&null===this.currentDirection){this.currentDirection=function(e,i=10){let n=null;return Math.abs(e.y)>i?n="y":Math.abs(e.x)>i&&(n="x"),n}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",i.point,a),this.updateAxis("y",i.point,a),this.visualElement.render(),o&&o(e,i)},onSessionEnd:(e,i)=>this.stop(e,i),resumeAnimation:()=>nw(e=>{var i;return"paused"===this.getAnimationState(e)&&(null===(i=this.getAxisMotionValue(e).animation)||void 0===i?void 0:i.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:nU(this.visualElement)})}stop(e,i){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&s(e,i)}cancel(){this.isDragging=!1;let{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,n){let{drag:r}=this.getProps();if(!n||!nW(e,r,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:i,max:n},r){return void 0!==i&&e<i?e=r?iA(i,e,r.min):Math.max(e,i):void 0!==n&&e>n&&(e=r?iA(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;let{dragConstraints:i,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,s=this.constraints;i&&w(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=function(e,{top:i,left:n,bottom:r,right:s}){return{x:nf(e.x,n,s),y:nf(e.y,i,r)}}(r.layoutBox,i):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nv(e,"left","right"),y:nv(e,"top","bottom")}}(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nw(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,i){let n={};return void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:i,onMeasureDragConstraints:n}=this.getProps();if(!i||!w(i))return!1;let r=i.current;tI(null!==r,"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;
3let o=function(e,i,n){let r=nI(e,n),{scroll:s}=i;return s&&(nL(r.x,s.offset.x),nL(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),a={x:ng((e=s.layout.layoutBox).x,o.x),y:ng(e.y,o.y)};if(n){let e=n(function({x:e,y:i}){return{top:i.min,right:e.max,bottom:i.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=nS(e))}return a}startAnimation(e){let{drag:i,dragMomentum:n,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(nw(a=>{if(!nW(a,i,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let h={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,i){let n=this.getAxisMotionValue(e);return n.start(iZ(e,n,0,i,this.visualElement))}stopAnimation(){nw(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nw(e=>{var i;return null===(i=this.getAxisMotionValue(e).animation)||void 0===i?void 0:i.pause()})}getAnimationState(e){var i;return null===(i=this.getAxisMotionValue(e).animation)||void 0===i?void 0:i.state}getAxisMotionValue(e){let i="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[i]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nw(i=>{let{drag:n}=this.getProps();if(!nW(i,n,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(i);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[i];s.set(e[i]-iA(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:i}=this.getProps(),{projection:n}=this.visualElement;if(!w(i)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nw(e=>{let i=this.getAxisMotionValue(e);if(i){let n=i.get();r[e]=function(e,i){let n=.5,r=nl(e),s=nl(i);return s>r?n=iS(i.min,i.max-r,e.min):r>s&&(n=iS(e.min,e.max-s,i.min)),_(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nw(i=>{if(!nW(i,e,null))return;let n=this.getAxisMotionValue(i),{min:s,max:o}=this.constraints[i];n.set(iA(s,o,r[i]))})}addListeners(){if(!this.visualElement.current)return;nN.set(this.visualElement,this);let e=tK(this.visualElement.current,"pointerdown",e=>{let{drag:i,dragListener:n=!0}=this.getProps();i&&n&&this.start(e)}),i=()=>{let{dragConstraints:e}=this.getProps();w(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),i();let s=tY(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i})=>{this.isDragging&&i&&(nw(i=>{let n=this.getAxisMotionValue(i);n&&(this.originPoint[i]+=e[i].translate,n.set(n.get()+e[i].translate))}),this.visualElement.render())});return()=>{s(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:i,dragDirectionLock:n,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function nW(e,i,n){return(!0===i||i===e)&&(null===n||n===e)}let nH=e=>(i,n)=>{e&&e(i,n)},nz={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nY(e,i){return i.max===i.min?0:e/(i.max-i.min)*100}let nX={correct:(e,i)=>{if(!i.target)return e;if("string"==typeof e){if(!tu.test(e))return e;e=parseFloat(e)}let n=nY(e,i.target.x),r=nY(e,i.target.y);return`${n}% ${r}%`}};class nG extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n,layoutId:r}=this.props,{projection:s}=e;Object.assign(I,nK),s&&(i.group&&i.group.add(s),n&&n.register&&r&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nz.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:i,visualElement:n,drag:r,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==i||void 0===i?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||tU.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),b.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:i,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nq(e){let[i,n]=function(){let e=(0,l.useContext)(d);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,l.useId)();return(0,l.useEffect)(()=>
3r(s),[]),!i&&n?[!1,()=>n&&n(s)]:[!0]}(),r=(0,l.useContext)(L);return l.createElement(nG,{...e,layoutGroup:r,switchLayoutGroup:(0,l.useContext)(F),isPresent:i,safeToRemove:n})}let nK={borderRadius:{...nX,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nX,borderTopRightRadius:nX,borderBottomLeftRadius:nX,borderBottomRightRadius:nX,boxShadow:{correct:(e,{treeScale:i,projectionDelta:n})=>{let r=eJ.parse(e);if(r.length>5)return e;let s=eJ.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*i.x,l=n.y.scale*i.y;r[0+o]/=a,r[1+o]/=l;let u=iA(a,l,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),s(r)}}},nZ=["TopLeft","TopRight","BottomLeft","BottomRight"],n_=nZ.length,nJ=e=>"string"==typeof e?parseFloat(e):e,nQ=e=>"number"==typeof e||tu.test(e);function n0(e,i){return void 0!==e[i]?e[i]:e.borderRadius}let n1=n2(0,.5,iv),n5=n2(.5,.95,tI);function n2(e,i,n){return r=>r<e?0:r>i?1:n(iS(e,i,r))}function n3(e,i){e.min=i.min,e.max=i.max}function n9(e,i){n3(e.x,i.x),n3(e.y,i.y)}function n4(e,i,n,r,s){return e-=i,e=r+1/n*(e-r),void 0!==s&&(e=r+1/s*(e-r)),e}function n6(e,i,[n,r,s],o,a){!function(e,i=0,n=1,r=.5,s,o=e,a=e){if(tl.test(i)&&(i=parseFloat(i),i=iA(a.min,a.max,i/100)-a.min),"number"!=typeof i)return;let l=iA(o.min,o.max,r);e===o&&(l-=i),e.min=n4(e.min,i,n,l,s),e.max=n4(e.max,i,n,l,s)}(e,i[n],i[r],i[s],i.scale,o,a)}let n8=["x","scaleX","originX"],n7=["y","scaleY","originY"];function rt(e,i,n,r){n6(e.x,i,n8,n?n.x:void 0,r?r.x:void 0),n6(e.y,i,n7,n?n.y:void 0,r?r.y:void 0)}function re(e){return 0===e.translate&&1===e.scale}function ri(e){return re(e.x)&&re(e.y)}function rn(e,i){return Math.round(e.x.min)===Math.round(i.x.min)&&Math.round(e.x.max)===Math.round(i.x.max)&&Math.round(e.y.min)===Math.round(i.y.min)&&Math.round(e.y.max)===Math.round(i.y.max)}function rr(e){return nl(e.x)/nl(e.y)}class rs{constructor(){this.members=[]}add(e){iJ(this.members,e),e.scheduleRender()}remove(e){if(iQ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let i;let n=this.members.findIndex(i=>e===i);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){i=n;break}}return!!i&&(this.promote(i),!0)}promote(e,i){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,i&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:i,resumingFrom:n}=e;i.onExitComplete&&i.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ro(e,i,n){let r="",s=e.x.translate/i.x,o=e.y.translate/i.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(1!==i.x||1!==i.y)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),n){let{rotate:e,rotateX:i,rotateY:s,skewX:o,skewY:a}=n;e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*i.x,l=e.y.scale*i.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}let ra=(e,i)=>e.depth-i.depth;class rl{constructor(){this.children=[],this.isDirty=!1}add(e){iJ(this.children,e),this.isDirty=!0}remove(e){iQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ra),this.isDirty=!1,this.children.forEach(e)}}let ru=["","X","Y","Z"],rh={visibility:"hidden"},rd=0,rc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rp(e,i,n,r){let{latestValues:s}=i;s[e]&&(n[e]=s[e],i.setStaticValue(e,0),r&&(r[e]=0))}function rm({attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(e={},n=null==i?void 0:i()){this.id=rd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rc.totalNodes=rc.resolvedTargetDeltas=rc.recalculatedProjection=0,this.nodes.forEac
3h(rv),this.nodes.forEach(rS),this.nodes.forEach(rA),this.nodes.forEach(ry),window.MotionDebug&&window.MotionDebug.record(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rl)}addEventListener(e,i){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new i0),this.eventHandlers.get(e).add(i)}notifyListeners(e,...i){let n=this.eventHandlers.get(e);n&&n.notify(...i)}hasListeners(e){return this.eventHandlers.has(e)}mount(i,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=i instanceof SVGElement&&"svg"!==i.tagName,this.instance=i;let{layoutId:r,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,i){let n=eg.now(),r=({timestamp:i})=>{let s=i-n;s>=250&&(tN(r),e(s-250))};return tU.read(r,!0),()=>tN(r)}(r,250),nz.hasAnimatedSinceResize&&(nz.hasAnimatedSinceResize=!1,this.nodes.forEach(rw))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||rD,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!rn(this.targetLayout,r)||n,h=!i&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let i={...ed(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(i.delay=0,i.type=!1),this.startAnimation(i)}else i||rw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tN(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(rV),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let i=this.path[e];i.shouldResetTransform=!0,i.updateScroll("snapshot"),i.options.layoutRoot&&i.willUpdate(!1)}let{layoutId:i,layout:n}=this.options;if(void 0===i&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rP);return}this.isUpdating||this.nodes.forEach(rb),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(rT),this.nodes.forEach(rf),this.nodes.forEach(rg),this.clearAllSnapshots();let e=eg.now();t$.delta=_(0,1e3/60,e-t$.timestamp),t$.timestamp=e,t$.isProcessing=!0,tW.update.process(t$),tW.preRender.process(t$),tW.render.process(t$),t$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,b.read(()=>this.update()))}
3clearAllSnapshots(){this.nodes.forEach(rx),this.sharedNodes.forEach(rE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tU.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tU.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nT(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!ri(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(i||nE(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var i;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),rF((i=r).x),rF(i.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return nT();let i=e.measureViewportBox(),{scroll:n}=this.root;return n&&(nL(i.x,n.offset.x),nL(i.y,n.offset.y)),i}removeElementScroll(e){let i=nT();n9(i,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:s,options:o}=r;if(r!==this.root&&s&&o.layoutScroll){if(s.isRoot){n9(i,e);let{scroll:n}=this.root;n&&(nL(i.x,-n.offset.x),nL(i.y,-n.offset.y))}nL(i.x,s.offset.x),nL(i.y,s.offset.y)}}return i}applyTransform(e,i=!1){let n=nT();n9(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nO(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nE(r.latestValues)&&nO(n,r.latestValues)}return nE(this.latestValues)&&nO(n,this.latestValues),n}removeTransform(e){let i=nT();n9(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!nE(n.latestValues))continue;nV(n.latestValues)&&n.updateSnapshot();let r=nT();n9(r,n.measurePageBox()),rt(i,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nE(this.latestValues)&&rt(i,this.latestValues),i}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==t$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var i,n,r,s;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(i=this.parent)||void 0===i?void 0:i.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=t$.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nT(),this.relativeTargetOrigin=nT(),nm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),n9(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nT(),this.targetWithTransforms=nT()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,s=this.relativeParent.target,nc(n.x,r.x,s.x),nc(n.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):n9(this.target,this.layout.layoutBox),nD(this.target,this.targetDelta)):n9(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nT(),this.relativeTargetOrigin=nT(),nm(this.relativeTargetOrigin,this.target,e.target),n9(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rc.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nV(this.parent.latestValues)||nC(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let i=this.getLead(),n=!!this.resumingFrom||this!==i,r=!0;
3if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===t$.timestamp&&(r=!1),r)return;let{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||o))return;n9(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,l=this.treeScale.y;!function(e,i,n,r=!1){let s,o;let a=n.length;if(a){i.x=i.y=1;for(let l=0;l<a;l++){o=(s=n[l]).projectionDelta;let a=s.instance;(!a||!a.style||"contents"!==a.style.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&nO(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(i.x*=o.x.scale,i.y*=o.y.scale,nD(e,o)),r&&nE(s.latestValues)&&nO(e,s.latestValues))}i.x=nR(i.x),i.y=nR(i.y)}}(this.layoutCorrected,this.treeScale,this.path,n),i.layout&&!i.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=nT());let{target:u}=i;if(!u){this.projectionTransform&&(this.projectionDelta=nP(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nP(),this.projectionDeltaWithTransform=nP());let h=this.projectionTransform;nd(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=ro(this.projectionDelta,this.treeScale),(this.projectionTransform!==h||this.treeScale.x!==a||this.treeScale.y!==l)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),rc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,i=!1){let n;let r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=nP();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let l=nT(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(rk));this.animationProgress=0,this.mixTargetDelta=i=>{let r=i/1e3;if(rC(a.x,e.x,r),rC(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,p,m,f,g,v;if(nm(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,g=l,v=r,rM(m.x,f.x,g.x,v),rM(m.y,f.y,g.y,v),n&&(h=this.relativeTarget,p=n,h.x.min===p.x.min&&h.x.max===p.x.max&&h.y.min===p.y.min&&h.y.max===p.y.max))this.isProjectionDirty=!1;n||(n=nT()),n9(n,this.relativeTarget)}u&&(this.animationValues=o,function(e,i,n,r,s,o){s?(e.opacity=iA(0,void 0!==n.opacity?n.opacity:1,n1(r)),e.opacityExit=iA(void 0!==i.opacity?i.opacity:1,0,n5(r))):o&&(e.opacity=iA(void 0!==i.opacity?i.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s<n_;s++){let o=`border${nZ[s]}Radius`,a=n0(i,o),l=n0(n,o);(void 0!==a||void 0!==l)&&(a||(a=0),l||(l=0),0===a||0===l||nQ(a)===nQ(l)?(e[o]=Math.max(iA(nJ(a),nJ(l),r),0),(tl.test(l)||tl.test(a))&&(e[o]+="%")):e[o]=l)}(i.rotate||n.rotate)&&(e.rotate=iA(i.rotate||0,n.rotate||0,r))}(o,s,this.latestValues,r,c,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tN(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tU.update(()=>{nz.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,i,n){let r=W(0)?0:i3(e);return r.start(iZ("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:i=>{this.mixTargetDelta(i),e.onUpdate&&e.onUpdate(i)},onComplete:()=>{e.onComplete&&e.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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:i,target:n,layout:r,latestValues:s}=e;if(i&&n&&r){if(this!==e&&this.layout&&r&&rj(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nT();let i=nl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+i;let r=nl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}n9(i,n),nO(i,s),nd(this.projectionDeltaWithTransform,this.layoutCorrected,i,s)}}registerSharedNode(e,i){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rs),this.sharedNodes.get(e).add(i);let n=i.options.initialPromotionConfig;i.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(i):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:i}=this.options;return i&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:i}=this.options;return i?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:i,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}
3resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let i=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(i=!0),!i)return;let r={};for(let i=0;i<ru.length;i++)rp(`rotate${ru[i]}`,e,r,this.animationValues),rp(`skew${ru[i]}`,e,r,this.animationValues);for(let i in e.render(),r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var i,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rh;let r={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tB(null==e?void 0:e.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let i={};return this.options.layoutId&&(i.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,i.pointerEvents=tB(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nE(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1),i}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=ro(this.projectionDeltaWithTransform,this.treeScale,a),s&&(r.transform=s(a,r.transform));let{x:l,y:u}=this.projectionDelta;for(let e in r.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(i=a.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,I){if(void 0===a[e])continue;let{correct:i,applyTo:n}=I[e],s="none"===r.transform?a[e]:i(a[e],o);if(n){let e=n.length;for(let i=0;i<e;i++)r[n[i]]=s}else r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?tB(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var i;return null===(i=e.currentAnimation)||void 0===i?void 0:i.stop()}),this.root.nodes.forEach(rP),this.root.sharedNodes.clear()}}}function rf(e){e.updateLayout()}function rg(e){var i;let n=(null===(i=e.resumeFrom)||void 0===i?void 0:i.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?nw(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],s=nl(r);r.min=i[e].min,r.max=r.min+s}):rj(s,n.layoutBox,i)&&nw(r=>{let s=o?n.measuredBox[r]:n.layoutBox[r],a=nl(i[r]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=nP();nd(a,i,n.layoutBox);let l=nP();o?nd(l,e.applyTransform(r,!0),n.measuredBox):nd(l,i,n.layoutBox);let u=!ri(a),h=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:o}=r;if(s&&o){let a=nT();nm(a,n.layoutBox,s.layoutBox);let l=nT();nm(l,i,o.layoutBox),rn(a,l)||(h=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else if(e.isLead()){let{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function rv(e){rc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ry(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rx(e){e.clearSnapshot()}function rP(e){e.clearMeasurements()}function rb(e){e.isLayoutDirty=!1}function rT(e){let{visualElement:i}=e.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),e.resetTransform()}function rw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rS(e){e.resolveTargetDelta()}function rA(e){e.calcProjection()}
3function rV(e){e.resetSkewAndRotation()}function rE(e){e.removeLeadSnapshot()}function rC(e,i,n){e.translate=iA(i.translate,0,n),e.scale=iA(i.scale,1,n),e.origin=i.origin,e.originPoint=i.originPoint}function rM(e,i,n,r){e.min=iA(i.min,n.min,r),e.max=iA(i.max,n.max,r)}function rk(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rD={duration:.45,ease:[.4,0,.1,1]},rR=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rL=rR("applewebkit/")&&!rR("chrome/")?Math.round:tI;function rF(e){e.min=rL(e.min),e.max=rL(e.max)}function rj(e,i,n){return"position"===e||"preserve-aspect"===e&&!nu(rr(i),rr(n),.2)}let rB=rm({attachResizeListener:(e,i)=>tY(e,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rO={current:void 0},rI=rm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rO.current){let e=new rB({});e.mount(window),e.setOptions({layoutScroll:!0}),rO.current=e}return rO.current},resetTransform:(e,i)=>{e.style.transform=void 0!==i?i:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rU={current:null},rN={current:!1},r$=new WeakMap,rW=[...eM,ez,eJ],rH=e=>rW.find(eC(e)),rz=Object.keys(R),rY=rz.length,rX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],rG=E.length;class rq{constructor({parent:e,props:i,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(e,i,n,r)=>new this.KeyframeResolver(e,i,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tU.render(this.render,!1,!0);let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=i.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=i,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=C(i),this.isVariantNode=M(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(i,{});for(let e in d){let i=d[e];void 0!==l[e]&&W(i)&&(i.set(l[e],!1),i_(h)&&h.add(e))}}scrapeMotionValuesFromProps(e,i){return{}}mount(e){this.current=e,r$.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,i)=>this.bindToMotionValue(i,e)),rN.current||function(){if(rN.current=!0,c){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),i=()=>rU.current=e.matches;e.addListener(i),i()}else rU.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rU.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in r$.delete(this.current),this.projection&&this.projection.unmount(),tN(this.notifyUpdate),tN(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,i){let n=N.has(e),r=i.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&tU.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=i.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),s(),i.owner&&i.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...i},n,r,s){let o,a;for(let e=0;e<rY;e++){let n=rz[e],{isEnabled:r,Feature:s,ProjectionNode:l,MeasureLayout:u}=R[n];l&&(o=l),r(i)&&(!this.features[n]&&s&&(this.features[n]=new s(this)),u&&(
3a=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=i;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!r||a&&w(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}return a}updateFeatures(){for(let e in this.features){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nT()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let i=0;i<rX.length;i++){let n=rX[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,i,n){let{willChange:r}=i;for(let s in i){let o=i[s],a=n[s];if(W(o))e.addValue(s,o),i_(r)&&r.add(s);else if(W(a))e.addValue(s,i3(o,{owner:e})),i_(r)&&r.remove(s);else if(a!==o){if(e.hasValue(s)){let i=e.getValue(s);i.hasAnimated||i.set(o)}else{let i=e.getStaticValue(s);e.addValue(s,i3(void 0!==i?i:o,{owner:e}))}}}for(let r in n)void 0===i[r]&&e.removeValue(r);return i}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let i={};for(let e=0;e<rG;e++){let n=E[e],r=this.props[n];(S(r)||!1===r)&&(i[n]=r)}return i}addVariantChild(e){let i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){i!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,i)),this.values.set(e,i),this.latestValues[e]=i.get()}removeValue(e){this.values.delete(e);let i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==i&&(n=i3(null===i?void 0:i,{owner:this}),this.addValue(e,n)),n}readValue(e,i){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(ey(r)||ev(r))?r=parseFloat(r):!rH(r)&&eJ.test(i)&&(r=e9(e,i)),this.setBaseTarget(e,W(r)?r.get():r)),W(r)?r.get():r}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var i,n;let{initial:r}=this.props,s="string"==typeof r||"object"==typeof r?null===(n=tR(this.props,r,null===(i=this.presenceContext)||void 0===i?void 0:i.custom))||void 0===n?void 0:n[e]:void 0;if(r&&void 0!==s)return s;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||W(o)?void 0!==this.initialValues[e]&&void 0===s?void 0:this.baseTarget[e]:o}on(e,i){return this.events[e]||(this.events[e]=new i0),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}}class rK extends rq{constructor(){super(...arguments),this.KeyframeResolver=e4}sortInstanceNodePosition(e,i){return 2&e.compareDocumentPosition(i)?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:n}){delete i[e],delete n[e]}}class rZ extends rK{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,i){if(N.has(i)){let e=e3(i);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(X(i)?n.getPropertyValue(i):n[i])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:i}){return nI(e,i)}build(e,i,n,r){tf(e,i,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,i){return tk(e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,i,n,r){tE(e,i,n,r)}}class r_ extends rK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(N.has(i)){let e=e3(i);return e&&e.default||0}return i=tC.has(i)?i:f(i),e.getAttribute(i)}measureInstanceViewportBox(){return nT()}scrapeMotionValuesFromProps(e,i){return tD(e,i)}build(e,i,n,r){tS(e,i,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,i,n,r){tM(e,i,n,r)}mount(e){this.isSVGTag=tV(e.tagName),super.mount(e)}}let rJ=(e,i)=>O(e)?new r_(i,{enableHardwareAcceleration:!1}):new rZ(i,{enableHardwareAcceleration:!0}),rQ={animation:{Feature:class extends t2{constructor(e){super(e),e.animationState||(e.animationState=function(e){let i=i=>Promise.all(i.map(({animation:i,options:n})=>(function(e,i,n={}){let r;if(e.notify("AnimationStart",i),Array.isArray(i))r=Promise.all(i.map(i=>i4(e,i,n)));else if("string"==typeof i)r=i4(e,i,n);else{let s="function"==typeof i?en(e,i,n.custom):i;r=Promise.all(i9(e,s,n))}return r.then(()=>{tU.postRender(()=>{e.notify("AnimationComplete",i)})})})(e,i,n))),n={animate:nt(!0),whileInView:nt(),whileHover:nt(),whileTap:nt(),whileDrag:nt(),whileFocus:nt(),exit:nt()},r=!0,s=i=>(n,r)=>{var s;let o=en(e,r,"exit"===i?null===(s=e.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){let{transition:e,transitionEnd:i,...r}=o;n={...n,...r,...i}}return n};function o(o){let a=e.getProps(),l=e.getVariantContext(!0)||{},u=[],h=new Set,d={},c=1/0;for(let i=0;i<i7;i++){var p,m;let f=i8[i],g=n[f],v=void 0!==a[f]?a[f]:l[f],y=S(v),x=f===o?g.isActive:null;!1===x&&(c=i);let P=v===l[f]&&v!==a[f]&&y;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...d},!g.isActive&&null===x||!v&&!g.prevProp||A(v)||"boolean"==typeof v)continue;let b=(p=g.prevProp,("string"==typeof(m=v)?m!==p:!!Array.isArray(m)&&!ei(m,p))||f===o&&g.isActive&&!P&&y||i>c&&y),T=!1,w=Array.isArray(v)?v:[v],V=w.reduce(s(f),{});!1===x&&(V={});let{prevResolvedValues:E={}}=g,C={...E,...V},M=e=>{b=!0,h.has(e)&&(T=!0,h.delete(e)),g.needsAnimating[e]=!0};for(let e in C){let i=V[e],n=E[e];if(d.hasOwnProperty(e))continue;let r=!1;(tL(i)&&tL(n)?ei(i,n):i===n)?void 0!==i&&h.has(e)?M(e):g.protectedKeys[e]=!0:null!=i?M(e):h.add(e)}g.prevProp=v,g.prevResolvedValues=V,g.isActive&&(d={...d,...V}),r&&e.blockInitialAnimation&&(b=!1),b&&(!P||T)&&u.push(...w.map(e=>({animation:e,options:{type:f}})))}if(h.size){let i={};h.forEach(n=>{let r=e.getBaseTarget(n);i[n]=void 0===r?null:r}),u.push({animation:i})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?i(u):Promise.resolve()}
3return{animateChanges:o,setActive:function(i,r){var s;if(n[i].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(i,r)}),n[i].isActive=r;let a=o(i);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){i=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),A(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends t2{constructor(){super(...arguments),this.id=ne++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:i}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);i&&!e&&r.then(()=>i(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends t2{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:s}=e,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ee[r]};return function(e,i,n){let r=function({root:e,...i}){let n=e||document;t8.has(n)||t8.set(n,{});let r=t8.get(n),s=JSON.stringify(i);return r[s]||(r[s]=new IntersectionObserver(et,{root:e,...i})),r[s]}(i);return t6.set(e,n),r.observe(e),()=>{t6.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:i}=e;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=i?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:i}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:i={}}={}){return n=>e[n]!==i[n]}(e,i))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends t2{constructor(){super(...arguments),this.removeStartListeners=tI,this.removeEndListeners=tI,this.removeAccessibleListeners=tI,this.startPointerPress=(e,i)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=tK(window,"pointerup",(e,i)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:s}=this.node.getProps();s||t9(this.node.current,e.target)?n&&n(e,i):r&&r(e,i)},{passive:!(n.onTap||n.onPointerUp)}),s=tK(window,"pointercancel",(e,i)=>this.cancelPress(e,i),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=t_(r,s),this.startPress(e,i)},this.startAccessiblePress=()=>{let e=tY(this.node.current,"keydown",e=>{"Enter"===e.key&&!this.isPressing&&(this.removeEndListeners(),this.removeEndListeners=tY(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&t4("up",(e,i)=>{let{onTap:n}=this.node.getProps();n&&n(e,i)})}),t4("down",(e,i)=>{this.startPress(e,i)}))}),i=tY(this.node.current,"blur",()=>{this.isPressing&&t4("cancel",(e,i)=>this.cancelPress(e,i))});this.removeAccessibleListeners=t_(e,i)}}startPress(e,i){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,i)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t5()}cancelPress(e,i){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&n(e,i)}mount(){let e=this.node.getProps(),i=tK(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=tY(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t_(i,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends t2{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(i){e=!0}e&&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=t_(tY(this.node.current,"focus",()=>this.onFocus()),tY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends t2{mount(){this.unmount=t_(t3(this.node,!0),t3(this.node,!1))}unmount(){}}},pan:{Feature:class extends t2{constructor(){super(...arguments),this.removePointerDownListener=tI}onPointerDown(e){this.session=new nn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nU(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:i,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nH(e),onStart:nH(i),onMove:n,onEnd:(e,i)=>{delete this.session,r&&r(e,i)}}}mount(){this.removePointerDownListener=tK(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends t2{constructor(e){super(e),this.removeGroupControls=tI,this.removeListeners=tI,this.controls=new n$(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tI}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rI,MeasureLayout:nq},layout:{ProjectionNode:rI,MeasureLayout:nq}},r0=function(e){function i(n,r={}){return function({preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:s}){e&&function(e){for(let i in e)R[i]={...R[i],...e[i]}}(e);let o=(0,l.forwardRef)(function(o,a){var f;let v;let y={...(0,l.useContext)(u),...o,layoutId:function({layoutId:e}){let i=(0,l.useContext)(L).id;return i&&void 0!==e?i+"-"+e:e}(o)},{isStatic:x}=y,P=function(e){let{initial:i,animate:n}=function(e,i){if(C(e)){let{initial:i,animate:n}=e;return{initial:!1===i||S(i)?i:void 0,animate:S(n)?n:void 0}}return!1!==e.inherit?i:{}}(e,(0,l.useContext)(h));return(0,l.useMemo)(()=>({initial:i,animate:n}
3),[k(i),k(n)])}(o),T=r(o,x);if(!x&&c){P.visualElement=function(e,i,n,r){let{visualElement:s}=(0,l.useContext)(h),o=(0,l.useContext)(m),a=(0,l.useContext)(d),c=(0,l.useContext)(u).reducedMotion,f=(0,l.useRef)();r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:i,parent:s,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:c}));let v=f.current;(0,l.useInsertionEffect)(()=>{v&&v.update(n,a)});let y=(0,l.useRef)(!!(n[g]&&!window.HandoffComplete));return p(()=>{v&&(b.postRender(v.render),y.current&&v.animationState&&v.animationState.animateChanges())}),(0,l.useEffect)(()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),v}(s,T,y,i);let n=(0,l.useContext)(F),r=(0,l.useContext)(m).strict;P.visualElement&&(v=P.visualElement.loadFeatures(y,r,e,n))}return l.createElement(h.Provider,{value:P},v&&P.visualElement?l.createElement(v,{visualElement:P.visualElement,...y}):null,n(s,o,(f=P.visualElement,(0,l.useCallback)(e=>{e&&T.mount&&T.mount(e),f&&(e?f.mount(e):f.unmount()),a&&("function"==typeof a?a(e):w(a)&&(a.current=e))},[f])),T,x,P.visualElement))});return o[j]=s,o}(e(n,r))}if("undefined"==typeof Proxy)return i;let n=new Map;return new Proxy(i,{get:(e,r)=>(n.has(r)||n.set(r,i(r)),n.get(r))})}((e,i)=>(function(e,{forwardMotionProps:i=!1},n,r){return{...O(e)?tH:tz,preloadedFeatures:n,useRender:function(e=!1){return(i,n,r,{latestValues:s},o)=>{let a=(O(i)?function(e,i,n,r){let s=(0,l.useMemo)(()=>{let n=tA();return tS(n,i,{enableHardwareAcceleration:!1},tV(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[i]);if(e.style){let i={};tv(i,e.style,e),s.style={...i,...s.style}}return s}:function(e,i,n){let r={},s=function(e,i,n){let r=e.style||{},s={};return tv(s,r,e),Object.assign(s,function({transformTemplate:e},i,n){return(0,l.useMemo)(()=>{let r=tg();return tf(r,i,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[i])}(e,i,n)),s}(e,i,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(n,s,o,i),u=function(e,i,n){let r={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(tP(s)||!0===n&&tx(s)||!i&&!tx(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}(n,"string"==typeof i,e),h=i!==l.Fragment?{...u,...a,ref:r}:{},{children:d}=n,c=(0,l.useMemo)(()=>W(d)?d.get():d,[d]);return(0,l.createElement)(i,{...h,children:c})}}(i),createVisualElement:r,Component:e}})(e,i,rQ,rJ))}}]); 4//# debugId=fc61ba86-3d40-575f-a51a-7f102aa31664
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.