s?32:s,V.T=null,s=Qm,Qm=null;var p=Xa,C=ya;if(Bn=0,jo=Xa=null,ya=0,(Vt&6)!==0)throw Error(a(331));var k=Vt;if(Vt|=4,z2(p.current),N2(p,p.current,C,s),Vt=k,Xl(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Ot,p)}catch{}return!0}finally{K.p=h,V.T=l,J2(n,r)}}function tb(n,r,s){r=ni(s,r),r=Dm(n.stateNode,r,2),n=Ia(n,r,2),n!==null&&(_t(n,2),Ii(n))}function Gt(n,r,s){if(n.tag===3)tb(n,n,s);else for(;r!==null;){if(r.tag===3){tb(r,n,s);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ka===null||!Ka.has(l))){n=ni(s,n),s=n2(2),l=Ia(r,s,2),l!==null&&(r2(s,l,r,n),_t(l,2),Ii(l));break}}r=r.return}}function np(n,r,s){var l=n.pingCache;if(l===null){l=n.pingCache=new w3;var h=new Set;l.set(r,h)}else h=l.get(r),h===void 0&&(h=new Set,l.set(r,h));h.has(s)||(Xm=!0,h.add(s),n=A3.bind(null,n,r,s),r.then(n,n))}function A3(n,r,s){var l=n.pingCache;l!==null&&l.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,tn===n&&(Ct&s)===s&&(xn===4||xn===3&&(Ct&62914560)===Ct&&300>at()-tf?(Vt&2)===0&&Oo(n,0):$m|=s,Mo===Ct&&(Mo=0)),Ii(n)}function nb(n,r){r===0&&(r=sn()),n=Rs(n,r),n!==null&&(_t(n,r),Ii(n))}function M3(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),nb(n,s)}function j3(n,r){var s=0;switch(n.tag){case 31:case 13:var l=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(a(314))}l!==null&&l.delete(r),nb(n,s)}function O3(n,r){return Xe(n,r)}var cf=null,No=null,rp=!1,uf=!1,ip=!1,Wa=0;function Ii(n){n!==No&&n.next===null&&(No===null?cf=No=n:No=No.next=n),uf=!0,rp||(rp=!0,N3())}function Xl(n,r){if(!ip&&uf){ip=!0;do for(var s=!1,l=cf;l!==null;){if(n!==0){var h=l.pendingLanes;if(h===0)var p=0;else{var C=l.suspendedLanes,k=l.pingedLanes;p=(1<<31-Ft(42|n)+1)-1,p&=h&~(C&~k),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(s=!0,sb(l,p))}else p=Ct,p=Mn(l,l===tn?p:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(p&3)===0||zn(l,p)||(s=!0,sb(l,p));l=l.next}while(s);ip=!1}}function D3(){rb()}function rb(){uf=rp=!1;var n=0;Wa!==0&&H3()&&(n=Wa);for(var r=at(),s=null,l=cf;l!==null;){var h=l.next,p=ib(l,r);p===0?(l.next=null,s===null?cf=h:s.next=h,h===null&&(No=s)):(s=l,(n!==0||(p&3)!==0)&&(uf=!0)),l=h}Bn!==0&&Bn!==5||Xl(n),Wa!==0&&(Wa=0)}function ib(n,r){for(var s=n.suspendedLanes,l=n.pingedLanes,h=n.expirationTimes,p=n.pendingLanes&-62914561;0k)break;var me=q.transferSize,Se=q.initiatorType;me&&mb(Se)&&(q=q.responseEnd,C+=me*(q"u"?null:document;function Tb(n,r,s){var l=Lo;if(l&&typeof r=="string"&&r){var h=qe(r);h='link[rel="'+n+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),Cb.has(h)||(Cb.add(h),n={rel:n,crossOrigin:s,href:r},l.querySelector(h)===null&&(r=l.createElement("link"),Jn(r,"link",n),st(r),l.head.appendChild(r)))}}function Z3(n){va.D(n),Tb("dns-prefetch",n,null)}function Q3(n,r){va.C(n,r),Tb("preconnect",n,r)}function J3(n,r,s){va.L(n,r,s);var l=Lo;if(l&&n&&r){var h='link[rel="preload"][as="'+qe(r)+'"]';r==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+qe(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+qe(s.imageSizes)+'"]')):h+='[href="'+qe(n)+'"]';var p=h;switch(r){case"style":p=ko(n);break;case"script":p=zo(n)}li.has(p)||(n=v({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),li.set(p,n),l.querySelector(h)!==null||r==="style"&&l.querySelector(Ql(p))||r==="script"&&l.querySelector(Jl(p))||(r=l.createElement("link"),Jn(r,"link",n),st(r),l.head.appendChild(r)))}}function eM(n,r){va.m(n,r);var s=Lo;if(s&&n){var l=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+qe(l)+'"][href="'+qe(n)+'"]',p=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=zo(n)}if(!li.has(p)&&(n=v({rel:"modulepreload",href:n},r),li.set(p,n),s.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Jl(p)))return}l=s.createElement("link"),Jn(l,"link",n),st(l),s.head.appendChild(l)}}}function tM(n,r,s){va.S(n,r,s);var l=Lo;if(l&&n){var h=It(l).hoistableStyles,p=ko(n);r=r||"default";var C=h.get(p);if(!C){var k={loading:0,preload:null};if(C=l.querySelector(Ql(p)))k.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":r},s),(s=li.get(p))&&xp(n,s);var q=C=l.createElement("link");st(q),Jn(q,"link",n),q._p=new Promise(function(se,me){q.onload=se,q.onerror=me}),q.addEventListener("load",function(){k.loading|=1}),q.addEventListener("error",function(){k.loading|=2}),k.loading|=4,pf(C,r,l)}C={type:"stylesheet",instance:C,count:1,state:k},h.set(p,C)}}}function nM(n,r){va.X(n,r);var s=Lo;if(s&&n){var l=It(s).hoistableScripts,h=zo(n),p=l.get(h);p||(p=s.querySelector(Jl(h)),p||(n=v({src:n,async:!0},r),(r=li.get(h))&&Sp(n,r),p=s.createElement("script"),st(p),Jn(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(h,p))}}function rM(n,r){va.M(n,r);var s=Lo;if(s&&n){var l=It(s).hoistableScripts,h=zo(n),p=l.get(h);p||(p=s.querySelector(Jl(h)),p||(n=v({src:n,async:!0,type:"module"},r),(r=li.get(h))&&Sp(n,r),p=s.createElement("script"),st(p),Jn(p,"link",n),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(h,p))}}function Ab(n,r,s,l){var h=(h=ie.current)?mf(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=ko(s.href),s=It(h).hoistableStyles,l=s.get(r),l||(l={type:"style",instance:null,count:0,state:null},s.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ko(s.href);var p=It(h).hoistableStyles,C=p.get(n);if(C||(h=h.ownerDocument||h,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,C),(p=h.querySelector(Ql(n)))&&!p._p&&(C.instance=p,C.state.loading=5),li.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},li.set(n,s),p||iM(h,n,s,C.state))),r&&l===null)throw Error(a(528,""));return C}if(r&&l!==null)throw Error(a(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=zo(s),s=It(h).hoistableScripts,l=s.get(r),l||(l={type:"script",instance:null,count:0,state:null},s.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function ko(n){return'href="'+qe(n)+'"'}function Ql(n){return'link[rel="stylesheet"]['+n+"]"}function Mb(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function iM(n,r,s,l){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=n.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Jn(r,"link",s),st(r),n.head.appendChild(r))}function zo(n){return'[src="'+qe(n)+'"]'}function Jl(n){return"script[async]"+n}function jb(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var l=n.querySelector('style[data-href~="'+qe(s.href)+'"]');if(l)return r.instance=l,st(l),l;var h=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),st(l),Jn(l,"style",h),pf(l,s.precedence,n),r.instance=l;case"stylesheet":h=ko(s.href);var p=n.querySelector(Ql(h));if(p)return r.state.loading|=4,r.instance=p,st(p),p;l=Mb(s),(h=li.get(h))&&xp(l,h),p=(n.ownerDocument||n).createElement("link"),st(p);var C=p;return C._p=new Promise(function(k,q){C.onload=k,C.onerror=q}),Jn(p,"link",l),r.state.loading|=4,pf(p,s.precedence,n),r.instance=p;case"script":return p=zo(s.src),(h=n.querySelector(Jl(p)))?(r.instance=h,st(h),h):(l=s,(h=li.get(p))&&(l=v({},s),Sp(l,h)),n=n.ownerDocument||n,h=n.createElement("script"),st(h),Jn(h,"link",l),n.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,pf(l,s.precedence,n));return r.instance}function pf(n,r,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,p=h,C=0;C title"):null)}function aM(n,r,s){if(s===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Nb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function sM(n,r,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var h=ko(l.href),p=r.querySelector(Ql(h));if(p){r=p._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=yf.bind(n),r.then(n,n)),s.state.loading|=4,s.instance=p,st(p);return}p=r.ownerDocument||r,l=Mb(l),(h=li.get(h))&&xp(l,h),p=p.createElement("link"),st(p);var C=p;C._p=new Promise(function(k,q){C.onload=k,C.onerror=q}),Jn(p,"link",l),s.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=yf.bind(n),r.addEventListener("load",s),r.addEventListener("error",s))}}var wp=0;function oM(n,r){return n.stylesheets&&n.count===0&&bf(n,n.stylesheets),0wp?50:800)+r);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var vf=null;function bf(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,vf=new Map,r.forEach(lM,n),vf=null,yf.call(n))}function lM(n,r){if(!(r.state.loading&4)){var s=vf.get(n);if(s)var l=s.get(null);else{s=new Map,vf.set(n,s);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dp.exports=TM(),Dp.exports}var nx=AM();const V0=b.createContext({});function ou(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const MM=typeof window<"u",Pc=MM?b.useLayoutEffect:b.useEffect,Wd=b.createContext(null);function U0(e,t){e.indexOf(t)===-1&&e.push(t)}function vd(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}const Aa=(e,t,i)=>i>t?t:i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),XE=e=>typeof e=="object"&&e!==null,I0=e=>/^0[^.\s]+$/u.test(e);function jM(e){let t;return()=>(t===void 0&&(t=e()),t)}const Di=e=>e,nl=(...e)=>e.reduce((t,i)=>a=>i(t(a))),Zs=(e,t,i)=>{const a=t-e;return a?(i-e)/a:1};class bd{constructor(){this.subscriptions=[]}add(t){return U0(this.subscriptions,t),()=>this.remove(t)}remove(t){vd(this.subscriptions,t)}notify(t,i,a){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,i,a);else for(let c=0;ce*1e3,Kr=e=>e/1e3,$E=(e,t)=>t?e*(1e3/t):0,zp=(e,t,i)=>e*(3*(1-e)*((1-e)*t+e*i)+e*e);function lu(e,t,i,a){return e===t&&i===a?Di:o=>{let c=0,u=1,f=o;for(let d=0;;d++){f>=c&&f<=u||(f=(c+u)/2);const m=zp(f,e,i)-o;if(m*m<1e-28||d===40)break;m>0?u=f:c=f,f-=m*1e-7/(zp(f+1e-7,e,i)-o-m)}return zp(f,t,a)}}const WE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZE=e=>t=>1-e(1-t),QE=lu(.33,1.53,.69,.99),H0=ZE(QE),JE=WE(H0),eR=e=>e>=1?1:(e*=2)<1?.5*H0(e):.5*(2-Math.pow(2,-10*(e-1))),F0=e=>1-Math.sin(Math.acos(e)),tR=ZE(F0),nR=WE(F0),OM=lu(.42,0,1,1),DM=lu(0,0,.58,1),Y0=lu(.42,0,.58,1),rR=e=>Array.isArray(e)&&typeof e[0]!="number",q0=e=>Array.isArray(e)&&typeof e[0]=="number",NM={linear:Di,easeIn:OM,easeInOut:Y0,easeOut:DM,circIn:F0,circInOut:nR,circOut:tR,backIn:H0,backInOut:JE,backOut:QE,anticipate:eR},LM=e=>typeof e=="string",zg=e=>{if(q0(e)){const[t,i,a,o]=e;return lu(t,i,a,o)}else if(LM(e))return NM[e];return e},An={delta:0,timestamp:0,isProcessing:!1};let Qf;function kM(){Qf=void 0}const Ut={now:()=>(Qf===void 0&&Ut.set(An.isProcessing||ki.useManualTiming?An.timestamp:performance.now()),Qf),set:e=>{Qf=e,queueMicrotask(kM)}},Xo=e=>Math.round(e*1e5)/1e5,iR=e=>t=>typeof t=="string"&&t.startsWith(e),aR=iR("--"),zM=iR("var(--"),Zd=e=>zM(e)?PM.test(e.split("/*")[0].trim()):!1,PM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pp(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_c={...gl,transform:e=>Aa(0,1,e)},Af={...gl,default:1},G0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _M(e){return e==null}const VM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,K0=(e,t)=>i=>!!(typeof i=="string"&&VM.test(i)&&i.startsWith(e)||t&&!_M(i)&&Object.prototype.hasOwnProperty.call(i,t)),sR=(e,t,i)=>a=>{if(typeof a!="string")return a;const[o,c,u,f]=a.match(G0);return{[e]:parseFloat(o),[t]:parseFloat(c),[i]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},UM=e=>Aa(0,255,e),_p={...gl,transform:e=>Math.round(UM(e))},Ys={test:K0("rgb","red"),parse:sR("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:a=1})=>"rgba("+_p.transform(e)+", "+_p.transform(t)+", "+_p.transform(i)+", "+Xo(_c.transform(a))+")"},Mf=(e,t,i)=>{const a=e.substring(1+t*i,1+(t+1)*i);return i>1?a:a+a};function BM(e){const t=e.length>5?2:1,i=Mf(e,3,t);return{red:parseInt(Mf(e,0,t),16),green:parseInt(Mf(e,1,t),16),blue:parseInt(Mf(e,2,t),16),alpha:i?parseInt(i,16)/255:1}}const Pg={test:K0("#"),parse:BM,transform:Ys.transform},cu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ba=cu("deg"),Xi=cu("%"),Ve=cu("px"),IM=cu("vh"),HM=cu("vw"),rx={...Xi,parse:e=>Xi.parse(e)/100,transform:e=>Xi.transform(e*100)},Ho={test:K0("hsl","hue"),parse:sR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:a=1})=>"hsla("+Math.round(e)+", "+Xi.transform(Xo(t))+", "+Xi.transform(Xo(i))+", "+Xo(_c.transform(a))+")"},Hn={test:e=>Ys.test(e)||Pg.test(e)||Ho.test(e),parse:e=>Ys.test(e)?Ys.parse(e):Ho.test(e)?Ho.parse(e):Pg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ys.transform(e):Ho.transform(e),getAnimatableNone:e=>{const t=Hn.parse(e);return t.alpha=0,Hn.transform(t)}},FM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,oR=new RegExp(G0.source),lR=new RegExp(FM.source,"i");function YM(e){return isNaN(e)&&typeof e=="string"&&(oR.test(e)||lR.test(e))}const cR="number",uR="color",qM="var",GM="var(",ix="${}",KM=/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+)(?![a-z]*\()/giu;function XM(e){const t=e.toString();return oR.test(t)||lR.test(t)}function Vc(e){const t=e.toString(),i=[],a={color:[],number:[],var:[]},o=[];let c=0;const f=t.replace(KM,d=>(Hn.test(d)?(a.color.push(c),o.push(uR),i.push(Hn.parse(d))):d.startsWith(GM)?(a.var.push(c),o.push(qM),i.push(d)):(a.number.push(c),o.push(cR),i.push(parseFloat(d))),++c,ix)).split(ix);return{values:i,split:f,indexes:a,types:o}}function $M(e){return Vc(e).values}function X0({split:e,types:t}){const i=e.length;return a=>{let o="";for(let c=0;ctypeof e=="number"?0:Hn.test(e)?Hn.getAnimatableNone(e):e,QM=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:ZM(e);function JM(e){const t=Vc(e);return X0(t)(t.values.map((a,o)=>QM(a,t.split[o])))}const hi={test:YM,parse:$M,createTransformer:WM,getAnimatableNone:JM};function Vp(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(t-e)*6*i:i<1/2?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function e4({hue:e,saturation:t,lightness:i,alpha:a}){e/=360,t/=100,i/=100;let o=0,c=0,u=0;if(!t)o=c=u=i;else{const f=i<.5?i*(1+t):i+t-i*t,d=2*i-f;o=Vp(d,f,e+1/3),c=Vp(d,f,e),u=Vp(d,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:a}}function xd(e,t){return i=>i>0?t:e}const rn=(e,t,i)=>e+(t-e)*i,Up=(e,t,i)=>{const a=e*e,o=i*(t*t-a)+a;return o<0?0:Math.sqrt(o)},t4=[Pg,Ys,Ho],n4=e=>t4.find(t=>t.test(e));function ax(e){const t=n4(e);if(!t)return!1;let i=t.parse(e);return t===Ho&&(i=e4(i)),i}const sx=(e,t)=>{const i=ax(e),a=ax(t);if(!i||!a)return xd(e,t);const o={...i};return c=>(o.red=Up(i.red,a.red,c),o.green=Up(i.green,a.green,c),o.blue=Up(i.blue,a.blue,c),o.alpha=rn(i.alpha,a.alpha,c),Ys.transform(o))},_g=new Set(["none","hidden"]);function r4(e,t){return _g.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}function i4(e,t){return i=>rn(e,t,i)}function $0(e){return typeof e=="number"?i4:typeof e=="string"?Zd(e)?xd:Hn.test(e)?sx:o4:Array.isArray(e)?fR:typeof e=="object"?Hn.test(e)?sx:a4:xd}function fR(e,t){const i=[...e],a=i.length,o=e.map((c,u)=>$0(c)(c,t[u]));return c=>{for(let u=0;u{for(const c in a)i[c]=a[c](o);return i}}function s4(e,t){const i=[],a={color:0,var:0,number:0};for(let o=0;o{const i=Vc(e),a=Vc(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?_g.has(e)&&!a.values.length||_g.has(t)&&!i.values.length?r4(e,t):nl(fR(s4(i,a),a.values),X0(a)):xd(e,t)},ox=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function l4(e,t){const i=ox.exec(e);if(!i)return;const a=ox.exec(t);if(!a||i[2]!==a[2])return;const o=i[2],c=parseFloat(i[1]),u=parseFloat(a[1]);return f=>Xo(rn(c,u,f))+o}function W0(e,t,i){if(typeof e=="number"&&typeof t=="number"&&typeof i=="number")return rn(e,t,i);if(typeof e=="string"&&typeof t=="string"){const o=l4(e,t);if(o)return o}return $0(e)(e,t)}const jf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function c4(e){let t=new Set,i=new Set,a=!1,o=!1,c;const u=new Set;let f={delta:0,timestamp:0,isProcessing:!1};function d(g){u.has(g)&&(i.add(g),e()),(c=g)(f)}const m={schedule:(g,v=!1,S=!1)=>{const x=S&&a,E=x?t:i;return v&&u.add(g),x&&g!==c&&E.delete(g),E.add(g),g},cancel:g=>{i.delete(g),u.delete(g)},process:g=>{if(f=g,a){o=!0;return}a=!0;const v=t;t=i,i=v,t.forEach(d),t.clear(),c=void 0,a=!1,o&&(o=!1,m.process(g))}};return m}const u4=40;function dR(e,t,i={delta:0,timestamp:0,isProcessing:!1}){let a=!1,o=!0;const c=()=>a=!0,u=jf.reduce((N,j)=>(N[j]=c4(c),N),{}),{setup:f,read:d,resolveKeyframes:m,preUpdate:g,update:v,preRender:S,render:x,postRender:E}=u,w=()=>{const N=ki.useManualTiming,j=N?i.timestamp:performance.now();a=!1,N||(i.delta=o?1e3/60:Math.max(Math.min(j-i.timestamp,u4),1)),i.timestamp=j,i.isProcessing=!0,f.process(i),d.process(i),m.process(i),g.process(i),v.process(i),S.process(i),x.process(i),E.process(i),i.isProcessing=!1,a&&t&&(o=!1,e(w))},R=()=>{a=!0,o=!0,i.isProcessing||e(w)};return{schedule:jf.reduce((N,j)=>{const L=u[j];return N[j]=(P,D=!1,A=!1)=>(a||R(),L.schedule(P,D,A)),N},{}),cancel:N=>{for(let j=0;j{const t=({timestamp:i})=>e(i);return{start:(i=!0)=>Kt.update(t,i),stop:()=>Gr(t),now:()=>An.isProcessing?An.timestamp:Ut.now()}},hR=(e,t,i=10)=>{let a="";const o=Math.max(Math.round(t/i),2);for(let c=0;c=i?1/0:o}function f4(e,t=100,i){const{keyframes:a,velocity:o}=e,c=a&&a[a.length-1]-a[0],u=i({...e,velocity:o&&c?o*t/c:o,keyframes:[0,t]}),f=Math.min(J0(u),Q0);return{type:"keyframes",ease:d=>u.next(f*d).value/t,duration:Kr(f)}}const lx=100,cx=10,d4=1,h4=800,mR=.3,m4=.3,p4=.01,g4=2,y4=.005,v4=.5,b4=.01,x4=10,ux=.05,pR=e=>e<0?1/Math.max(1+e,ux):Math.max(1-e,ux);function gR(e,t){if(!(e>1))return 1;const i=Math.sqrt(e*e-1),a=e-i,o=e+i,c=2*i*Math.exp(-t)*(1+t);return yR(u=>o*Math.exp(-a*u)-a*Math.exp(-o*u)-c,u=>Math.exp(-o*u)-Math.exp(-a*u),t)/t}function Vg(e,t){return e*Math.sqrt(1-t*t)}const S4=12;function yR(e,t,i){let a=i;for(let o=1;o{const g=m*o,v=g*e,S=Vg(m,o),x=Math.exp(-v);return Ip-g/S*x},a=m=>{const v=m*o*e,S=o*o*m*m*e,x=Math.exp(-v),E=Vg(m*m,o);return(-i(m)+Ip>0?-1:1)*-S*x/E}):(i=m=>{const g=Math.exp(-m*e),v=m*e+1;return-Ip+g*v},a=m=>{const g=Math.exp(-m*e),v=-m*(e*e);return g*v});const c=5/e,u=yR(i,a,c),f=u*gR(o,u*e),d=f*f;return{stiffness:d,damping:o*2*Math.sqrt(d),duration:br(e)}}const Ug=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Hp(e,t){if(Ug(e,t))return e}function E4(e){const t=Hp(e.stiffness),i=Hp(e.damping,!0),a=Hp(e.mass),o={...e,stiffness:t??lx,damping:i??cx,mass:a??d4,isResolvedFromDuration:!1,isTimeDefined:(t??i??a)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(o.isTimeDefined){if(e.visualDuration){const c=pR(e.bounce||0),u=2*Math.PI/(e.visualDuration*1.2)*gR(c,2*Math.PI/1.2);o.stiffness=u*u,o.damping=2*c*Math.sqrt(o.stiffness)}else Object.assign(o,w4(o)),o.isResolvedFromDuration=!0;(!Ug(o.stiffness)||!Ug(o.damping,!0))&&(o.stiffness=lx,o.damping=cx)}return o}function fx(e=m4,t=mR){const i=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,a=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],c={done:!1,value:a},{stiffness:u,damping:f,mass:d,duration:m,isResolvedFromDuration:g,isTimeDefined:v}=E4({...i}),S=D=>v?0:-Kr(D),x=f/(2*Math.sqrt(u*d)),E=Kr(Math.sqrt(u/d)),w=x*E,R={target:o,delta:o-a,velocity:S(i.velocity||0)||0,restSpeed:0,restDelta:0},T=()=>{const D=Math.abs(R.delta)<5;R.restSpeed=i.restSpeed||(D?p4:g4),R.restDelta=i.restDelta||(D?y4:v4)};T();let O,N,j;if(x<1){const D=Vg(E,x),A={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};j=()=>{A.A=(R.velocity+w*R.delta)/D,A.sinC=w*A.A+R.delta*D,A.cosC=w*R.delta-A.A*D};const F=H=>{H!==A.t&&(A.t=H,A.env=Math.exp(-w*H),A.sin=Math.sin(D*H),A.cos=Math.cos(D*H))};O=H=>(F(H),R.target-A.env*(A.A*A.sin+R.delta*A.cos)),N=H=>(F(H),A.env*(A.sinC*A.sin+A.cosC*A.cos))}else if(x===1){O=A=>R.target-Math.exp(-E*A)*(R.delta+(R.velocity+E*R.delta)*A);const D={C:0};j=()=>{D.C=R.velocity+E*R.delta},N=A=>Math.exp(-E*A)*(E*D.C*A-R.velocity)}else{const D=E*Math.sqrt(x*x-1),A=w-D,F=w+D,H=D<1||v?1/0:300/D,X=($,ee)=>Math.exp(ee>H?(w-$)*H-w*ee:-$*ee),J={S:0,F:0};j=()=>{const $=(R.velocity+w*R.delta)/D;J.S=(R.delta+$)/2,J.F=(R.delta-$)/2},O=$=>R.target-J.S*X(A,$)-J.F*X(F,$),N=$=>A*J.S*X(A,$)+F*J.F*X(F,$)}j();const L=g&&m||null,P={calculatedDuration:L,retarget:(D,A)=>{R.target=D[D.length-1],R.delta=R.target-D[0],R.velocity=S(A),i.restSpeed&&i.restDelta||T(),P.calculatedDuration=L,c.done=!1,j()},velocity:D=>br(N(D)),next:D=>{const A=O(D);if(g)c.done=D>=m;else{const F=br(N(D));c.done=Math.abs(F)<=R.restSpeed&&Math.abs(R.target-A)<=R.restDelta}return c.value=c.done?R.target:A,c},toString:()=>{const D=Math.min(J0(P),Q0),A=hR(F=>P.next(D*F).value,D,30);return D+"ms "+A},toTransition:()=>{}};return P}const vR=Object.assign(fx,{applyToOptions:e=>{const t=f4(e,100,fx);return e.ease=t.ease,e.duration=br(t.duration),e.type="keyframes",e}});function Sd({keyframes:e,velocity:t=0,power:i=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:d,restDelta:m=.5,restSpeed:g}){const v=e[0],S={done:!1,value:v},x=D=>Dd,E=D=>f===void 0?d:d===void 0||Math.abs(f-D)-w*Math.exp(-D/a),N=D=>{const A=O(D);S.done=Math.abs(A)<=m,S.value=S.done?T:D?T+A:v};let j,L;const P=D=>{x(S.value)&&(j=D,L=vR({keyframes:[S.value,E(S.value)],velocity:-O(D)/a*1e3,damping:o,stiffness:c,restDelta:m,restSpeed:g}))};return P(0),{calculatedDuration:null,next:D=>{let A=!1;return!L&&j===void 0&&(A=!0,N(D),P(D)),j!==void 0&&D>=j?L.next(D-j):(!A&&N(D),S)}}}function R4(e,t,i){const a=[],o=ki.mix||W0,c=e.length-1;for(let u=0;ut[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=R4(t,a,o),d=f.length,m=g=>{if(u&&g1)for(;vm(Aa(e[0],e[c-1],g)):m}function T4(e,t){const i=e[e.length-1];for(let a=1;a<=t;a++){const o=Zs(0,t,a);e.push(rn(i,1,o))}}function Uc(e){const t=[0];return T4(t,e.length-1),t}function A4(e,t){return e.map(i=>i*t)}function M4(e,t){return e.map(()=>t||Y0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:i,ease:a="easeInOut",mixer:o}){const c=typeof t[0]=="number"?void 0:o,u=rR(a)?a.map(zg):zg(a)||Y0,f={done:!1,value:t[0]};let d=-1;if(!c){for(let v=1;v=0){d=-2;break}d=v-1}}if(d>=0){const v=i&&i.length===t.length?i:Uc(t),S=v[d]*e,x=v[d+1]*e,E=t[d],w=t[d+1],R=Array.isArray(u)?u[d]:u,T=(ki.mix||W0)(E,w),O=t.length-2;return{calculatedDuration:e,next:N=>(f.value=d&&N=x||!e)?typeof w=="number"?w:T(1):T(R(N>=x||!e?1:N<=S?0:(N-S)/(x-S))),f.done=N>=e,f)}}const m=A4(i&&i.length===t.length?i:Uc(t),e),g=C4(m,t,{ease:Array.isArray(u)?u:M4(t,u),mixer:c});return{calculatedDuration:e,next:v=>(f.value=g(v),f.done=v>=e,f)}}const j4=5;function O4(e,t,i){const a=Math.max(t-j4,0);return $E(i-e(a),t-a)}function D4(e,t,i=0){return t<=0?i:e.velocity?e.velocity(t):O4(a=>e.next(a).value,t,e.next(t).value)}function Bc(e,{repeat:t,repeatType:i="loop"},a,o=1){let c,u,f=0;for(let g=0;gt-e>L4&&!ki.useManualTiming?t:e;function SR(e,t){return{kind:e,animation:t,timestamp:Ut.now(),frameTimestamp:An.timestamp,frameIsProcessing:An.isProcessing}}function wR(e,t,i){const a=globalThis.__MOTION_INSPECT__;if(a)try{a({...SR("animation-start",e),options:i?{...t,...i}:t})}catch{}}function k4(e,t){const i=globalThis.__MOTION_INSPECT__;if(i)try{i({...SR("layout-animation-start",e),node:t})}catch{}}class ey{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,i){return this.finished.then(t,i)}}const z4=e=>e/100,Ic=e=>Math.round(e*1e4)/1e4;class rl extends ey{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==Ut.now()&&this.tick(Ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause(),wR(this,this.options)}initAnimation(){const{options:t}=this;bR(t);const{type:i=ls,repeat:a=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:f}=t;const d=i||ls;this.mixKeyframes=void 0,d!==ls&&typeof f[0]!="number"&&(this.mixKeyframes=nl(z4,t.mixer?.(f[0],f[1])||W0(f[0],f[1])),f=[0,100]);const m=d(f===t.keyframes?t:{...t,keyframes:f});c==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...f].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=J0(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(a+1)-o,this.generator=m}updateTime(t){this.currentTime=this.holdTime??Math.round(t-this.startTime)*this.playbackSpeed}tick(t,i=!1){const{generator:a,totalDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return a.next(0);const{delay:u=0,keyframes:f,type:d,onUpdate:m,finalKeyframe:g}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=xR(this.startTime,t)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);const x=this.generate(this.currentTime,S);let{done:E}=x;S||(E=this.playbackSpeed>=0?c<1/0?this.currentTime>=o:E:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return w&&d!==Sd&&(x.value=Bc(f,this.options,g,this.speed)),m&&m(x.value),w&&this.finish(),x}at(t){return this.holdTime??Ic((t-this.startTime)*this.playbackSpeed)}sampleAt(t,i){const{options:a,totalDuration:o}=this,c=this.at(t)-(a.delay||0);return c>=o&&a.type!==Sd?Bc(a.keyframes,a,i?void 0:a.finalKeyframe):this.generate(Math.max(c,0),c<0).value}generate(t,i){const{generator:a,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:f}=this,{keyframes:d,repeat:m,repeatType:g,repeatDelay:v}=this.options;let S=t,x=a;if(m){const w=Math.min(t,o)/f;let R=Math.floor(w),T=w%1;!T&&w>=1&&(T=1),T===1&&R--,R=Math.min(R,m+1),R%2&&(g==="reverse"?(T=1-T,v&&(T-=v/f)):g==="mirror"&&(x=u)),S=Aa(0,1,T)*f}let E;return i?(this.delayState.value=d[0],E=this.delayState):E=x.next(S),c&&!i&&(E.value=c(E.value)),E}get duration(){return Kr(this.calculatedDuration)}get iterationDuration(){return this.duration+Kr(this.options.delay??0)}get time(){return Kr(this.currentTime)}set time(t){this.state==="finished"&&this.updateFinished(),t=br(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return D4(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){const i=this.playbackSpeed!==t;i&&this.driver&&this.updateTime(Ut.now()),this.playbackSpeed=t,i&&this.driver&&(this.time=Kr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Z0,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=i??(this.pendingStartTime=a)),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const P4=new Set(["brightness","contrast","saturate","opacity"]);function _4(e){const[t,i]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[a]=i.match(G0)||[];if(!a)return e;const o=i.replace(a,"");let c=P4.has(t)?1:0;return a!==i&&(c*=100),t+"("+c+o+")"}const V4=/\b([a-z-]*)\(.*?\)/gu,Bg={...hi,getAnimatableNone:e=>{const t=e.match(V4);return t?t.map(_4).join(" "):e}},Ig={...hi,getAnimatableNone:e=>{const t=hi.parse(e);return hi.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}},dx={...gl,transform:Math.round},ER={rotate:ba,pathRotation:ba,rotateX:ba,rotateY:ba,rotateZ:ba,scale:Af,scaleX:Af,scaleY:Af,scaleZ:Af,skew:ba,skewX:ba,skewY:ba,distance:Ve,translateX:Ve,translateY:Ve,translateZ:Ve,x:Ve,y:Ve,z:Ve,perspective:Ve,transformPerspective:Ve,opacity:_c,originX:rx,originY:rx,originZ:Ve},ty={borderWidth:Ve,borderTopWidth:Ve,borderRightWidth:Ve,borderBottomWidth:Ve,borderLeftWidth:Ve,borderRadius:Ve,borderTopLeftRadius:Ve,borderTopRightRadius:Ve,borderBottomRightRadius:Ve,borderBottomLeftRadius:Ve,width:Ve,maxWidth:Ve,height:Ve,maxHeight:Ve,top:Ve,right:Ve,bottom:Ve,left:Ve,inset:Ve,insetBlock:Ve,insetBlockStart:Ve,insetBlockEnd:Ve,insetInline:Ve,insetInlineStart:Ve,insetInlineEnd:Ve,padding:Ve,paddingTop:Ve,paddingRight:Ve,paddingBottom:Ve,paddingLeft:Ve,paddingBlock:Ve,paddingBlockStart:Ve,paddingBlockEnd:Ve,paddingInline:Ve,paddingInlineStart:Ve,paddingInlineEnd:Ve,margin:Ve,marginTop:Ve,marginRight:Ve,marginBottom:Ve,marginLeft:Ve,marginBlock:Ve,marginBlockStart:Ve,marginBlockEnd:Ve,marginInline:Ve,marginInlineStart:Ve,marginInlineEnd:Ve,fontSize:Ve,backgroundPositionX:Ve,backgroundPositionY:Ve,...ER,zIndex:dx,fillOpacity:_c,strokeOpacity:_c,numOctaves:dx},U4={...ty,color:Hn,backgroundColor:Hn,outlineColor:Hn,fill:Hn,stroke:Hn,borderColor:Hn,borderTopColor:Hn,borderRightColor:Hn,borderBottomColor:Hn,borderLeftColor:Hn,filter:Bg,WebkitFilter:Bg,mask:Ig,WebkitMask:Ig},RR=e=>U4[e],B4=new Set([Bg,Ig]);let hx,mx,Fp;function ny(e,t){if(e===hx&&t===mx)return Fp;let i=RR(e);return B4.has(i)||(i=hi),Fp=i.getAnimatableNone?i.getAnimatableNone(t):void 0,hx=e,mx=t,Fp}function I4(e){for(let t=1;te*180/Math.PI,Hg=e=>{const t=qs(Math.atan2(e[1],e[0]));return Fg(t)},H4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hg,rotateZ:Hg,skewX:e=>qs(Math.atan(e[1])),skewY:e=>qs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Fg=e=>(e=e%360,e<0&&(e+=360),e),px=Hg,gx=e=>Math.hypot(e[0],e[1]),yx=e=>Math.hypot(e[4],e[5]),F4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gx,scaleY:yx,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(gx(e)+yx(e))/2,rotateX:e=>Fg(qs(Math.atan2(e[6],e[5]))),rotateY:e=>Fg(qs(Math.atan2(-e[2],e[0]))),rotateZ:px,rotate:px,skewX:e=>qs(Math.atan(e[4])),skewY:e=>qs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hc(e){return e.includes("scale")?1:0}function ry(e,t){if(!e||e==="none")return Hc(t);const i=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!i)return Hc(t);const a=(i[1]?F4:H4)[t],o=i[2].split(",").map(c=>parseFloat(c));return typeof a=="function"?a(o):o[a]}const Y4=(e,t)=>{const{transform:i="none"}=getComputedStyle(e);return ry(i,t)},Ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cs=new Set([...Ra,"pathRotation"]),vx=e=>e===gl||e===Ve,q4=new Set(["x","y","z"]),G4=Ra.filter(e=>!q4.has(e));function K4(e){const t=[];return G4.forEach(i=>{const a=e.getValue(i);if(a!==void 0){const o=a.get(),c=i.startsWith("scale")?1:0;if(o===c)return;t.push([i,o]),a.set(c)}}),t}const X4=new Set(["bottom","right"]);function bx(e,t,i,a,o,c){const u=parseFloat(e);if(!isNaN(u))return u;const{min:f,max:d}=t()[i],m=d-f;return c==="border-box"?m:m-parseFloat(a)-parseFloat(o)}const xx=({transform:e})=>ry(e,"x"),Sx=({transform:e})=>ry(e,"y"),Yp={width:({width:e,paddingLeft:t="0",paddingRight:i="0",boxSizing:a},o)=>bx(e,o,"x",t,i,a),height:({height:e,paddingTop:t="0",paddingBottom:i="0",boxSizing:a},o)=>bx(e,o,"y",t,i,a),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{const{y:i}=t();return parseFloat(e)+(i.max-i.min)},right:({left:e},t)=>{const{x:i}=t();return parseFloat(e)+(i.max-i.min)},x:xx,y:Sx,translateX:xx,translateY:Sx},Xs=new Set;let Yg=!1,qg=!1,Gg=!1;function CR(){if(qg){const e=[],t=new Set,i=new Set;Xs.forEach(o=>{o.needsMeasurement&&(e.push(o),t.add(o.element),X4.has(o.name)&&i.add(o.element))});const a=new Map;i.forEach(o=>{const c=K4(o);c.length&&(a.set(o,c),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const c=a.get(o);c&&c.forEach(([u,f])=>{o.getValue(u)?.set(f)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}qg=!1,Yg=!1,Xs.forEach(e=>e.complete(Gg)),Xs.clear()}function TR(){Xs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qg=!0)})}function $4(){Gg=!0,TR(),CR(),Gg=!1}function W4(e,t,i){if(typeof e=="string"){if(B0(e)||I0(e))return parseFloat(e);if(!hi.test(e)&&hi.test(i))return ny(t,i)}return e??void 0}class iy{constructor(t,i,a,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=i,this.name=a,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Xs.add(this),Yg||(Yg=!0,Kt.read(TR),Kt.resolveKeyframes(CR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:i,element:a,motionValue:o}=this;if(t[0]===null){const c=o?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(a&&i){const f=W4(a.readValue(i,u),i,u);f!==void 0&&(t[0]=f)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}I4(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xs.delete(this)}cancel(){this.state==="scheduled"&&(Xs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Z4=e=>e.startsWith("--");function AR(e,t,i){Z4(t)?e.style.setProperty(t,i):e.style[t]=i}const Q4={};function MR(e,t){const i=jM(e);return()=>Q4[t]??i()}const J4=MR(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ay=MR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fo=([e,t,i,a])=>`cubic-bezier(${e}, ${t}, ${i}, ${a})`,Kg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fo([0,.65,.55,1]),circOut:Fo([.55,0,1,.45]),backIn:Fo([.31,.01,.66,-.59]),backOut:Fo([.33,1.53,.69,.99])};function jR(e,t){if(e)return typeof e=="function"?ay()?hR(e,t):"ease-out":q0(e)?Fo(e):Array.isArray(e)?e.map(i=>jR(i,t)||Kg.easeOut):Kg[e]}function e6(e,t,i,{delay:a=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeOut",times:d}={},m=void 0){const g={[t]:i};d&&(g.offset=d);const v=jR(f,o);Array.isArray(v)&&(g.easing=v);const S={delay:a,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return m&&(S.pseudoElement=m),e.animate(g,S)}function OR(e){return typeof e=="function"&&"applyToOptions"in e}function t6({type:e,...t}){return OR(e)&&ay()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class DR extends ey{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:i,name:a,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:f,onComplete:d}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t;const m=t6(t);this.animation=e6(i,a,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!c){const g=Bc(o,this.options,f,this.speed);this.updateMotionValue?.(g),AR(i,a,g),this.animation.cancel()}d?.(),this.notifyFinished()},wR(this,t,m)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,!(this.state==="idle"||this.finishedTime!==null)&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Kr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kr(t)}get time(){return Kr(Number(this.animation.currentTime)||0)}set time(t){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=br(t),i&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:i,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=this.onFinish=null,t&&J4()?(this.animation.timeline=t,i?.(this.animation),Di):a(this)}}const NR={anticipate:eR,backInOut:JE,circInOut:nR};function n6(e){return e in NR}function r6(e){typeof e.ease=="string"&&n6(e.ease)&&(e.ease=NR[e.ease])}const wd=10;class i6 extends DR{constructor(t){r6(t),bR(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}elapsed(){return this.state==="running"?(Ut.now()-this.startTime)*this.speed:this.time*1e3}sample(t){if(!this.sampler){const{motionValue:i,onUpdate:a,onComplete:o,onPlay:c,onStop:u,element:f,...d}=this.options;this.sampler=new rl({...d,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,t)).value}liveValue(){const{state:t}=this;if(t==="running"||t==="paused")return this.sample(this.elapsed())}updateMotionValue(t){const{motionValue:i,element:a,name:o}=this.options;if(!i)return;if(t!==void 0){i.set(t);return}const{speed:c}=this,u=this.elapsed(),f=this.state==="running"&&c?Aa(0,wd,u):0,d=this.sample(u);a&&o&&AR(a,o,d),i.setWithVelocity(this.sample(u-f*Math.sign(c)),d,f/Math.abs(c||1))}}const wx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(hi.test(e)||e==="0")&&!e.startsWith("url("));function a6(e){const t=e[0];if(e.length===1)return!0;for(let i=0;ie&&typeof t[0]!="number"&&t.some((i,a)=>a&&e(t[a-1],i)),Ex=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),kR=()=>!ki.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate");function c6(e){const{motionValue:t,name:i,repeatDelay:a,repeatType:o,damping:c,type:u,keyframes:f}=e;if(!i||!($g.has(i)||Ex.has(i)))return!1;const d=t?.owner?.current;if(!(d instanceof HTMLElement)&&!(d instanceof SVGElement))return!1;const{onUpdate:m,transformTemplate:g}=t.owner.getProps();return kR()&&($g.has(i)||Ex.has(i)&&l6(f))&&(i!=="transform"||!g)&&!m&&!a&&o!=="mirror"&&c!==0&&u!=="inertia"&&!LR(e)}const sy=(e,t)=>t&&typeof e=="number"?t.transform(e):e,u6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f6=Ra.length,Rx={},Wg=(e,t,i=sy(t,ER[e]))=>(Rx[e]||(Rx[e]=(u6[e]||e)+"("))+i+")",Zg=(e,t)=>(typeof t=="number"?t:parseFloat(t))===(e.startsWith("scale")?1:0);function d6(e,t,i){let a="";for(let c=0;cy6.has(e),Tx=new WeakMap,b6=(e,t)=>{let i=Tx.get(e);return i?.[0]!==t&&(i=[t,"linear("+Uc(Array(t+1)).map(a=>Ic(e(a))+" "+Ic(a*100)+"%")+")"],Tx.set(e,i)),i[1]},Ax=(e,t)=>Math.min(h6,Math.max(2,Math.ceil((t-e)/wd))),Mc=(e,t)=>Math.abs(e-t)<=zR,qp=(e,t)=>e-t,Mx=(e,t,i)=>Uc(Array(i+1)).map(a=>rn(e,t,a)),Jf=e=>e.motionValue.owner,Ed=e=>il.get(e),jx=({state:e})=>e==="idle"||e==="finished",Yo=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),x6=({name:e,motionValue:t})=>e&&Ra.includes(e)&&t?.owner?.current instanceof HTMLElement&&kR()&&ay();function S6(e){const t=Jf(e),{onUpdate:i,transformTemplate:a}=t.getProps();return!e.isHandoff&&!i&&!e.hasOnUpdate&&!a&&e.type!=="inertia"&&(Yo(t,"transform")||"none")==="none"&&!Yo(t,"pathRotation")&&!t.projection?.isProjecting()&&!LR(e)}class w6{constructor(t,i,a,o){this.element=t,this.update=i,this.makeDriver=a,this.animation=o}get js(){return this.driver||(this.driver=this.makeDriver(this.update))}now(){return this.driver||this.makeDriver!==Z0?this.js.now():An.isProcessing?An.timestamp:Ut.now()}start(t=!0){const i=Ed(this.element);!i||i.isJS?this.js.start(t):i.schedule(!1,!t)}stopJS(){this.driver?.stop()}stop(){this.stopJS();const t=Ed(this.element);t&&!t.isFinishing&&t.release(this.animation)}}let Ox;class E6 extends rl{constructor(t){const i=Jf(t).current,{driver:a=Z0}=t;let o;const c=S6(t);t.driver=d=>new w6(i,d,a,o),super(t),o=this;const u=this.driver;u&&(u.animation=this),this.canAccelerate=c;const{stop:f}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),f()}}offsets(){const{keyframes:t,times:i}=this.options;return i||(this.offsetsOf!==t&&(this.offsetsOf=t,this.cachedOffsets=Uc(t)),this.cachedOffsets)}get group(){return Ed(Jf(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){const{startTime:t,speed:i,totalDuration:a}=this,{delay:o=0,repeatType:c}=this.options;return this.holdTime!==null?[1/0,0]:a===1/0?[t+o/i,this.resolvedDuration*(c==="loop"?1:2)/i||1]:[t+(o+a)/i,0]}isAccelerated(){const{group:t,state:i}=this;return t?.tracks.has(this)&&!t.isJS&&this.canAccelerate&&(i==="running"||i==="paused")}liveValue(){return this.isAccelerated()?this.sampleAt(Ut.now()):void 0}tween(){const{keyframes:t,type:i,repeat:a,delay:o=0}=this.options;let c=-1;if(a||i!==ls||this.holdTime!==null)return;for(let m=1;m