nomoreide 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=l(c);fetch(c.href,d)}})();var vc={exports:{}},Vs={};var $0;function Ab(){if($0)return Vs;$0=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(o,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}return Vs.Fragment=i,Vs.jsx=l,Vs.jsxs=l,Vs}var W0;function Eb(){return W0||(W0=1,vc.exports=Ab()),vc.exports}var g=Eb(),bc={exports:{}},dt={};var I0;function jb(){if(I0)return dt;I0=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function j(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,k={};function U(w,H,P){this.props=w,this.context=H,this.refs=k,this.updater=P||E}U.prototype.isReactComponent={},U.prototype.setState=function(w,H){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,H,"setState")},U.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function B(){}B.prototype=U.prototype;function q(w,H,P){this.props=w,this.context=H,this.refs=k,this.updater=P||E}var X=q.prototype=new B;X.constructor=q,z(X,U.prototype),X.isPureReactComponent=!0;var Z=Array.isArray;function nt(){}var $={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function K(w,H,P){var tt=P.ref;return{$$typeof:a,type:w,key:H,ref:tt!==void 0?tt:null,props:P}}function I(w,H){return K(w.type,H,w.props)}function ft(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function pt(w){var H={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(P){return H[P]})}var Rt=/\/+/g;function At(w,H){return typeof w=="object"&&w!==null&&w.key!=null?pt(""+w.key):H.toString(36)}function Nt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(nt,nt):(w.status="pending",w.then(function(H){w.status==="pending"&&(w.status="fulfilled",w.value=H)},function(H){w.status==="pending"&&(w.status="rejected",w.reason=H)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,H,P,tt,lt){var rt=typeof w;(rt==="undefined"||rt==="boolean")&&(w=null);var Et=!1;if(w===null)Et=!0;else switch(rt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(w.$$typeof){case a:case i:Et=!0;break;case v:return Et=w._init,R(Et(w._payload),H,P,tt,lt)}}if(Et)return lt=lt(w),Et=tt===""?"."+At(w,0):tt,Z(lt)?(P="",Et!=null&&(P=Et.replace(Rt,"$&/")+"/"),R(lt,H,P,"",function(Un){return Un})):lt!=null&&(ft(lt)&&(lt=I(lt,P+(lt.key==null||w&&w.key===lt.key?"":(""+lt.key).replace(Rt,"$&/")+"/")+Et)),H.push(lt)),1;Et=0;var ie=tt===""?".":tt+":";if(Z(w))for(var gt=0;gt<w.length;gt++)tt=w[gt],rt=ie+At(tt,gt),Et+=R(tt,H,P,rt,lt);else if(gt=j(w),typeof gt=="function")for(w=gt.call(w),gt=0;!(tt=w.next()).done;)tt=tt.value,rt=ie+At(tt,gt++),Et+=R(tt,H,P,rt,lt);else if(rt==="object"){if(typeof w.then=="function")return R(Nt(w),H,P,tt,lt);throw H=String(w),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Et}function Q(w,H,P){if(w==null)return w;var tt=[],lt=0;return R(w,tt,"","",function(rt){return H.call(P,rt,lt++)}),tt}function F(w){if(w._status===-1){var H=w._result;H=H(),H.then(function(P){(w._status===0||w._status===-1)&&(w._status=1,w._result=P)},function(P){(w._status===0||w._status===-1)&&(w._status=2,w._result=P)}),w._status===-1&&(w._status=0,w._result=H)}if(w._status===1)return w._result.default;throw w._result}var ct=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},J={map:Q,forEach:function(w,H,P){Q(w,function(){H.apply(this,arguments)},P)},count:function(w){var H=0;return Q(w,function(){H++}),H},toArray:function(w){return Q(w,function(H){return H})||[]},only:function(w){if(!ft(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return dt.Activity=x,dt.Children=J,dt.Component=U,dt.Fragment=l,dt.Profiler=c,dt.PureComponent=q,dt.StrictMode=o,dt.Suspense=y,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,dt.__COMPILER_RUNTIME={__proto__:null,c:function(w){return $.H.useMemoCache(w)}},dt.cache=function(w){return function(){return w.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(w,H,P){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var tt=z({},w.props),lt=w.key;if(H!=null)for(rt in H.key!==void 0&&(lt=""+H.key),H)!Y.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(tt[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)tt.children=P;else if(1<rt){for(var Et=Array(rt),ie=0;ie<rt;ie++)Et[ie]=arguments[ie+2];tt.children=Et}return K(w.type,lt,tt)},dt.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},dt.createElement=function(w,H,P){var tt,lt={},rt=null;if(H!=null)for(tt in H.key!==void 0&&(rt=""+H.key),H)Y.call(H,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(lt[tt]=H[tt]);var Et=arguments.length-2;if(Et===1)lt.children=P;else if(1<Et){for(var ie=Array(Et),gt=0;gt<Et;gt++)ie[gt]=arguments[gt+2];lt.children=ie}if(w&&w.defaultProps)for(tt in Et=w.defaultProps,Et)lt[tt]===void 0&&(lt[tt]=Et[tt]);return K(w,rt,lt)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(w){return{$$typeof:p,render:w}},dt.isValidElement=ft,dt.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:F}},dt.memo=function(w,H){return{$$typeof:m,type:w,compare:H===void 0?null:H}},dt.startTransition=function(w){var H=$.T,P={};$.T=P;try{var tt=w(),lt=$.S;lt!==null&&lt(P,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(nt,ct)}catch(rt){ct(rt)}finally{H!==null&&P.types!==null&&(H.types=P.types),$.T=H}},dt.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},dt.use=function(w){return $.H.use(w)},dt.useActionState=function(w,H,P){return $.H.useActionState(w,H,P)},dt.useCallback=function(w,H){return $.H.useCallback(w,H)},dt.useContext=function(w){return $.H.useContext(w)},dt.useDebugValue=function(){},dt.useDeferredValue=function(w,H){return $.H.useDeferredValue(w,H)},dt.useEffect=function(w,H){return $.H.useEffect(w,H)},dt.useEffectEvent=function(w){return $.H.useEffectEvent(w)},dt.useId=function(){return $.H.useId()},dt.useImperativeHandle=function(w,H,P){return $.H.useImperativeHandle(w,H,P)},dt.useInsertionEffect=function(w,H){return $.H.useInsertionEffect(w,H)},dt.useLayoutEffect=function(w,H){return $.H.useLayoutEffect(w,H)},dt.useMemo=function(w,H){return $.H.useMemo(w,H)},dt.useOptimistic=function(w,H){return $.H.useOptimistic(w,H)},dt.useReducer=function(w,H,P){return $.H.useReducer(w,H,P)},dt.useRef=function(w){return $.H.useRef(w)},dt.useState=function(w){return $.H.useState(w)},dt.useSyncExternalStore=function(w,H,P){return $.H.useSyncExternalStore(w,H,P)},dt.useTransition=function(){return $.H.useTransition()},dt.version="19.2.6",dt}var t1;function bf(){return t1||(t1=1,bc.exports=jb()),bc.exports}var O=bf(),xc={exports:{}},Os={},Sc={exports:{}},Tc={};var e1;function Cb(){return e1||(e1=1,(function(a){function i(R,Q){var F=R.length;R.push(Q);t:for(;0<F;){var ct=F-1>>>1,J=R[ct];if(0<c(J,Q))R[ct]=Q,R[F]=J,F=ct;else break t}}function l(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var Q=R[0],F=R.pop();if(F!==Q){R[0]=F;t:for(var ct=0,J=R.length,w=J>>>1;ct<w;){var H=2*(ct+1)-1,P=R[H],tt=H+1,lt=R[tt];if(0>c(P,F))tt<J&&0>c(lt,P)?(R[ct]=lt,R[tt]=F,ct=tt):(R[ct]=P,R[H]=F,ct=H);else if(tt<J&&0>c(lt,F))R[ct]=lt,R[tt]=F,ct=tt;else break t}}return Q}function c(R,Q){var F=R.sortIndex-Q.sortIndex;return F!==0?F:R.id-Q.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();a.unstable_now=function(){return f.now()-p}}var y=[],m=[],v=1,x=null,S=3,j=!1,E=!1,z=!1,k=!1,U=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function X(R){for(var Q=l(m);Q!==null;){if(Q.callback===null)o(m);else if(Q.startTime<=R)o(m),Q.sortIndex=Q.expirationTime,i(y,Q);else break;Q=l(m)}}function Z(R){if(z=!1,X(R),!E)if(l(y)!==null)E=!0,nt||(nt=!0,pt());else{var Q=l(m);Q!==null&&Nt(Z,Q.startTime-R)}}var nt=!1,$=-1,Y=5,K=-1;function I(){return k?!0:!(a.unstable_now()-K<Y)}function ft(){if(k=!1,nt){var R=a.unstable_now();K=R;var Q=!0;try{t:{E=!1,z&&(z=!1,B($),$=-1),j=!0;var F=S;try{e:{for(X(R),x=l(y);x!==null&&!(x.expirationTime>R&&I());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,S=x.priorityLevel;var J=ct(x.expirationTime<=R);if(R=a.unstable_now(),typeof J=="function"){x.callback=J,X(R),Q=!0;break e}x===l(y)&&o(y),X(R)}else o(y);x=l(y)}if(x!==null)Q=!0;else{var w=l(m);w!==null&&Nt(Z,w.startTime-R),Q=!1}}break t}finally{x=null,S=F,j=!1}Q=void 0}}finally{Q?pt():nt=!1}}}var pt;if(typeof q=="function")pt=function(){q(ft)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,At=Rt.port2;Rt.port1.onmessage=ft,pt=function(){At.postMessage(null)}}else pt=function(){U(ft,0)};function Nt(R,Q){$=U(function(){R(a.unstable_now())},Q)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(R){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var F=S;S=Q;try{return R()}finally{S=F}},a.unstable_requestPaint=function(){k=!0},a.unstable_runWithPriority=function(R,Q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var F=S;S=R;try{return Q()}finally{S=F}},a.unstable_scheduleCallback=function(R,Q,F){var ct=a.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ct+F:ct):F=ct,R){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=F+J,R={id:v++,callback:Q,priorityLevel:R,startTime:F,expirationTime:J,sortIndex:-1},F>ct?(R.sortIndex=F,i(m,R),l(y)===null&&R===l(m)&&(z?(B($),$=-1):z=!0,Nt(Z,F-ct))):(R.sortIndex=J,i(y,R),E||j||(E=!0,nt||(nt=!0,pt()))),R},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(R){var Q=S;return function(){var F=S;S=Q;try{return R.apply(this,arguments)}finally{S=F}}}})(Tc)),Tc}var n1;function Mb(){return n1||(n1=1,Sc.exports=Cb()),Sc.exports}var wc={exports:{}},me={};var a1;function zb(){if(a1)return me;a1=1;var a=bf();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,m,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:y,containerInfo:m,implementation:v}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,me.createPortal=function(y,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(y,m,null,v)},me.flushSync=function(y){var m=f.T,v=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=m,o.p=v,o.d.f()}},me.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(y,m))},me.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},me.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:j}):v==="script"&&o.d.X(y,{crossOrigin:x,integrity:S,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=p(m.as,m.crossOrigin);o.d.M(y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(y)},me.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,x=p(v,m.crossOrigin);o.d.L(y,v,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(y,m){if(typeof y=="string")if(m){var v=p(m.as,m.crossOrigin);o.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(y)},me.requestFormReset=function(y){o.d.r(y)},me.unstable_batchedUpdates=function(y,m){return y(m)},me.useFormState=function(y,m,v){return f.H.useFormState(y,m,v)},me.useFormStatus=function(){return f.H.useHostTransitionStatus()},me.version="19.2.6",me}var i1;function Hp(){if(i1)return wc.exports;i1=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),wc.exports=zb(),wc.exports}var s1;function Nb(){if(s1)return Os;s1=1;var a=Mb(),i=bf(),l=Hp();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,s=e;;){var r=n.return;if(r===null)break;var u=r.alternate;if(u===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===u.child){for(u=r.child;u;){if(u===n)return y(r),t;if(u===s)return y(r),e;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=r,s=u;else{for(var h=!1,b=r.child;b;){if(b===n){h=!0,n=r,s=u;break}if(b===s){h=!0,s=r,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,s=r;break}if(b===s){h=!0,s=u,n=r;break}b=b.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),q=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ft=Symbol.iterator;function pt(t){return t===null||typeof t!="object"?null:(t=ft&&t[ft]||t["@@iterator"],typeof t=="function"?t:null)}var Rt=Symbol.for("react.client.reference");function At(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case U:return"Profiler";case k:return"StrictMode";case Z:return"Suspense";case nt:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case q:return t.displayName||"Context";case B:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:At(t.type)||"Memo";case Y:e=t._payload,t=t._init;try{return At(t(e))}catch{}}return null}var Nt=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ct=[],J=-1;function w(t){return{current:t}}function H(t){0>J||(t.current=ct[J],ct[J]=null,J--)}function P(t,e){J++,ct[J]=t.current,t.current=e}var tt=w(null),lt=w(null),rt=w(null),Et=w(null);function ie(t,e){switch(P(rt,e),P(lt,t),P(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?x0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=x0(e),t=S0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(tt),P(tt,t)}function gt(){H(tt),H(lt),H(rt)}function Un(t){t.memoizedState!==null&&P(Et,t);var e=tt.current,n=S0(e,t.type);e!==n&&(P(lt,t),P(tt,n))}function bn(t){lt.current===t&&(H(tt),H(lt)),Et.current===t&&(H(Et),zs._currentValue=F)}var Hn,Za;function Le(t){if(Hn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Hn=e&&e[1]||"",Za=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Hn+t+Za}var er=!1;function nr(t,e){if(!t||er)return"";er=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(V){var D=V}Reflect.construct(t,[],G)}else{try{G.call()}catch(V){D=V}t.call(G.prototype)}}else{try{throw Error()}catch(V){D=V}(G=t())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(V){if(V&&D&&typeof V.stack=="string")return[V.stack,D.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var T=h.split(`
4
+ `),N=b.split(`
5
+ `);for(r=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(s===T.length||r===N.length)for(s=T.length-1,r=N.length-1;1<=s&&0<=r&&T[s]!==N[r];)r--;for(;1<=s&&0<=r;s--,r--)if(T[s]!==N[r]){if(s!==1||r!==1)do if(s--,r--,0>r||T[s]!==N[r]){var _=`
6
+ `+T[s].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=s&&0<=r);break}}}finally{er=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Le(n):""}function e2(t,e){switch(t.tag){case 26:case 27:case 5:return Le(t.type);case 16:return Le("Lazy");case 13:return t.child!==e&&e!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return nr(t.type,!1);case 11:return nr(t.type.render,!1);case 1:return nr(t.type,!0);case 31:return Le("Activity");default:return""}}function $f(t){try{var e="",n=null;do e+=e2(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
7
+ Error generating stack: `+s.message+`
8
+ `+s.stack}}var ar=Object.prototype.hasOwnProperty,ir=a.unstable_scheduleCallback,sr=a.unstable_cancelCallback,n2=a.unstable_shouldYield,a2=a.unstable_requestPaint,je=a.unstable_now,i2=a.unstable_getCurrentPriorityLevel,Wf=a.unstable_ImmediatePriority,If=a.unstable_UserBlockingPriority,il=a.unstable_NormalPriority,s2=a.unstable_LowPriority,td=a.unstable_IdlePriority,l2=a.log,o2=a.unstable_setDisableYieldValue,Gi=null,Ce=null;function Gn(t){if(typeof l2=="function"&&o2(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Gi,t)}catch{}}var Me=Math.clz32?Math.clz32:c2,r2=Math.log,u2=Math.LN2;function c2(t){return t>>>=0,t===0?32:31-(r2(t)/u2|0)|0}var sl=256,ll=262144,ol=4194304;function ba(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function rl(t,e,n){var s=t.pendingLanes;if(s===0)return 0;var r=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var b=s&134217727;return b!==0?(s=b&~u,s!==0?r=ba(s):(h&=b,h!==0?r=ba(h):n||(n=b&~t,n!==0&&(r=ba(n))))):(b=s&~u,b!==0?r=ba(b):h!==0?r=ba(h):n||(n=s&~t,n!==0&&(r=ba(n)))),r===0?0:e!==0&&e!==r&&(e&u)===0&&(u=r&-r,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:r}function qi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function f2(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ed(){var t=ol;return ol<<=1,(ol&62914560)===0&&(ol=4194304),t}function lr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Yi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function d2(t,e,n,s,r,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,N=t.hiddenUpdates;for(n=h&~n;0<n;){var _=31-Me(n),G=1<<_;b[_]=0,T[_]=-1;var D=N[_];if(D!==null)for(N[_]=null,_=0;_<D.length;_++){var V=D[_];V!==null&&(V.lane&=-536870913)}n&=~G}s!==0&&nd(t,s,0),u!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function nd(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-Me(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|n&261930}function ad(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var s=31-Me(n),r=1<<s;r&e|t[s]&e&&(t[s]|=e),n&=~r}}function id(t,e){var n=e&-e;return n=(n&42)!==0?1:or(n),(n&(t.suspendedLanes|e))!==0?0:n}function or(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function rr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function sd(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:X0(t.type))}function ld(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var qn=Math.random().toString(36).slice(2),oe="__reactFiber$"+qn,ve="__reactProps$"+qn,Qa="__reactContainer$"+qn,ur="__reactEvents$"+qn,h2="__reactListeners$"+qn,m2="__reactHandles$"+qn,od="__reactResources$"+qn,Xi="__reactMarker$"+qn;function cr(t){delete t[oe],delete t[ve],delete t[ur],delete t[h2],delete t[m2]}function Ka(t){var e=t[oe];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Qa]||n[oe]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=M0(t);t!==null;){if(n=t[oe])return n;t=M0(t)}return e}t=n,n=t.parentNode}return null}function Ja(t){if(t=t[oe]||t[Qa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Zi(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fa(t){var e=t[od];return e||(e=t[od]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[Xi]=!0}var rd=new Set,ud={};function xa(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(ud[t]=e,t=0;t<e.length;t++)rd.add(e[t])}var p2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),cd={},fd={};function g2(t){return ar.call(fd,t)?!0:ar.call(cd,t)?!1:p2.test(t)?fd[t]=!0:(cd[t]=!0,!1)}function ul(t,e,n){if(g2(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function cl(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function xn(t,e,n,s){if(s===null)t.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+s)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function dd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function y2(t,e,n){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,u=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function fr(t){if(!t._valueTracker){var e=dd(t)?"checked":"value";t._valueTracker=y2(t,e,""+t[e])}}function hd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=dd(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}function fl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var v2=/[\n"\\]/g;function He(t){return t.replace(v2,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function dr(t,e,n,s,r,u,h,b){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?hr(t,h,Ue(e)):n!=null?hr(t,h,Ue(n)):s!=null&&t.removeAttribute("value"),r==null&&u!=null&&(t.defaultChecked=!!u),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ue(b):t.removeAttribute("name")}function md(t,e,n,s,r,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){fr(t);return}n=n!=null?""+Ue(n):"",e=e!=null?""+Ue(e):n,b||e===t.value||(t.value=e),t.defaultValue=e}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=b?t.checked:!!s,t.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),fr(t)}function hr(t,e,n){e==="number"&&fl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function $a(t,e,n,s){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&s&&(t[n].defaultSelected=!0)}else{for(n=""+Ue(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,s&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function pd(t,e,n){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ue(n):""}function gd(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(o(92));if(Nt(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),e=n}n=Ue(e),t.defaultValue=n,s=t.textContent,s===n&&s!==""&&s!==null&&(t.value=s),fr(t)}function Wa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var b2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yd(t,e,n){var s=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,n):typeof n!="number"||n===0||b2.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function vd(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var r in e)s=e[r],e.hasOwnProperty(r)&&n[r]!==s&&yd(t,r,s)}else for(var u in e)e.hasOwnProperty(u)&&yd(t,u,e[u])}function mr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var x2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),S2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dl(t){return S2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var pr=null;function gr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ia=null,ti=null;function bd(t){var e=Ja(t);if(e&&(t=e.stateNode)){var n=t[ve]||null;t:switch(t=e.stateNode,e.type){case"input":if(dr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+He(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var s=n[e];if(s!==t&&s.form===t.form){var r=s[ve]||null;if(!r)throw Error(o(90));dr(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<n.length;e++)s=n[e],s.form===t.form&&hd(s)}break t;case"textarea":pd(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&$a(t,!!n.multiple,e,!1)}}}var yr=!1;function xd(t,e,n){if(yr)return t(e,n);yr=!0;try{var s=t(e);return s}finally{if(yr=!1,(Ia!==null||ti!==null)&&(Il(),Ia&&(e=Ia,t=ti,ti=Ia=null,bd(e),t)))for(e=0;e<t.length;e++)bd(t[e])}}function Qi(t,e){var n=t.stateNode;if(n===null)return null;var s=n[ve]||null;if(s===null)return null;n=s[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vr=!1;if(Tn)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){vr=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{vr=!1}var Yn=null,br=null,hl=null;function Sd(){if(hl)return hl;var t,e=br,n=e.length,s,r="value"in Yn?Yn.value:Yn.textContent,u=r.length;for(t=0;t<n&&e[t]===r[t];t++);var h=n-t;for(s=1;s<=h&&e[n-s]===r[u-s];s++);return hl=r.slice(t,1<s?1-s:void 0)}function ml(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function pl(){return!0}function Td(){return!1}function be(t){function e(n,s,r,u,h){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(n=t[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pl:Td,this.isPropagationStopped=Td,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),e}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gl=be(Sa),Ji=x({},Sa,{view:0,detail:0}),T2=be(Ji),xr,Sr,Fi,yl=x({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fi&&(Fi&&t.type==="mousemove"?(xr=t.screenX-Fi.screenX,Sr=t.screenY-Fi.screenY):Sr=xr=0,Fi=t),xr)},movementY:function(t){return"movementY"in t?t.movementY:Sr}}),wd=be(yl),w2=x({},yl,{dataTransfer:0}),A2=be(w2),E2=x({},Ji,{relatedTarget:0}),Tr=be(E2),j2=x({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),C2=be(j2),M2=x({},Sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),z2=be(M2),N2=x({},Sa,{data:0}),Ad=be(N2),D2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O2(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=V2[t])?!!e[t]:!1}function wr(){return O2}var k2=x({},Ji,{key:function(t){if(t.key){var e=D2[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ml(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?R2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wr,charCode:function(t){return t.type==="keypress"?ml(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ml(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_2=be(k2),B2=x({},yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ed=be(B2),L2=x({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wr}),U2=be(L2),H2=x({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),G2=be(H2),q2=x({},yl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Y2=be(q2),X2=x({},Sa,{newState:0,oldState:0}),Z2=be(X2),Q2=[9,13,27,32],Ar=Tn&&"CompositionEvent"in window,Pi=null;Tn&&"documentMode"in document&&(Pi=document.documentMode);var K2=Tn&&"TextEvent"in window&&!Pi,jd=Tn&&(!Ar||Pi&&8<Pi&&11>=Pi),Cd=" ",Md=!1;function zd(t,e){switch(t){case"keyup":return Q2.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ei=!1;function J2(t,e){switch(t){case"compositionend":return Nd(e);case"keypress":return e.which!==32?null:(Md=!0,Cd);case"textInput":return t=e.data,t===Cd&&Md?null:t;default:return null}}function F2(t,e){if(ei)return t==="compositionend"||!Ar&&zd(t,e)?(t=Sd(),hl=br=Yn=null,ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return jd&&e.locale!=="ko"?null:e.data;default:return null}}var P2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!P2[t.type]:e==="textarea"}function Rd(t,e,n,s){Ia?ti?ti.push(s):ti=[s]:Ia=s,e=lo(e,"onChange"),0<e.length&&(n=new gl("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var $i=null,Wi=null;function $2(t){m0(t,0)}function vl(t){var e=Zi(t);if(hd(e))return t}function Vd(t,e){if(t==="change")return e}var Od=!1;if(Tn){var Er;if(Tn){var jr="oninput"in document;if(!jr){var kd=document.createElement("div");kd.setAttribute("oninput","return;"),jr=typeof kd.oninput=="function"}Er=jr}else Er=!1;Od=Er&&(!document.documentMode||9<document.documentMode)}function _d(){$i&&($i.detachEvent("onpropertychange",Bd),Wi=$i=null)}function Bd(t){if(t.propertyName==="value"&&vl(Wi)){var e=[];Rd(e,Wi,t,gr(t)),xd($2,e)}}function W2(t,e,n){t==="focusin"?(_d(),$i=e,Wi=n,$i.attachEvent("onpropertychange",Bd)):t==="focusout"&&_d()}function I2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vl(Wi)}function tv(t,e){if(t==="click")return vl(e)}function ev(t,e){if(t==="input"||t==="change")return vl(e)}function nv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:nv;function Ii(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!ar.call(e,r)||!ze(t[r],e[r]))return!1}return!0}function Ld(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ud(t,e){var n=Ld(t);t=0;for(var s;n;){if(n.nodeType===3){if(s=t+n.textContent.length,t<=e&&s>=e)return{node:n,offset:e-t};t=s}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Ld(n)}}function Hd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=fl(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fl(t.document)}return e}function Cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var av=Tn&&"documentMode"in document&&11>=document.documentMode,ni=null,Mr=null,ts=null,zr=!1;function qd(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||ni==null||ni!==fl(s)||(s=ni,"selectionStart"in s&&Cr(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ts&&Ii(ts,s)||(ts=s,s=lo(Mr,"onSelect"),0<s.length&&(e=new gl("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=ni)))}function Ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ai={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Nr={},Yd={};Tn&&(Yd=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function wa(t){if(Nr[t])return Nr[t];if(!ai[t])return t;var e=ai[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Yd)return Nr[t]=e[n];return t}var Xd=wa("animationend"),Zd=wa("animationiteration"),Qd=wa("animationstart"),iv=wa("transitionrun"),sv=wa("transitionstart"),lv=wa("transitioncancel"),Kd=wa("transitionend"),Jd=new Map,Dr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Dr.push("scrollEnd");function en(t,e){Jd.set(t,e),xa(e,[t])}var bl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ge=[],ii=0,Rr=0;function xl(){for(var t=ii,e=Rr=ii=0;e<t;){var n=Ge[e];Ge[e++]=null;var s=Ge[e];Ge[e++]=null;var r=Ge[e];Ge[e++]=null;var u=Ge[e];if(Ge[e++]=null,s!==null&&r!==null){var h=s.pending;h===null?r.next=r:(r.next=h.next,h.next=r),s.pending=r}u!==0&&Fd(n,r,u)}}function Sl(t,e,n,s){Ge[ii++]=t,Ge[ii++]=e,Ge[ii++]=n,Ge[ii++]=s,Rr|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Vr(t,e,n,s){return Sl(t,e,n,s),Tl(t)}function Aa(t,e){return Sl(t,null,null,e),Tl(t)}function Fd(t,e,n){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n);for(var r=!1,u=t.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(r=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,r&&e!==null&&(r=31-Me(n),t=u.hiddenUpdates,s=t[r],s===null?t[r]=[e]:s.push(e),e.lane=n|536870912),u):null}function Tl(t){if(50<Ts)throw Ts=0,qu=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var si={};function ov(t,e,n,s){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(t,e,n,s){return new ov(t,e,n,s)}function Or(t){return t=t.prototype,!(!t||!t.isReactComponent)}function wn(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Pd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function wl(t,e,n,s,r,u){var h=0;if(s=t,typeof t=="function")Or(t)&&(h=1);else if(typeof t=="string")h=db(t,n,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case K:return t=Ne(31,n,e,r),t.elementType=K,t.lanes=u,t;case z:return Ea(n.children,r,u,e);case k:h=8,r|=24;break;case U:return t=Ne(12,n,e,r|2),t.elementType=U,t.lanes=u,t;case Z:return t=Ne(13,n,e,r),t.elementType=Z,t.lanes=u,t;case nt:return t=Ne(19,n,e,r),t.elementType=nt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case q:h=10;break t;case B:h=9;break t;case X:h=11;break t;case $:h=14;break t;case Y:h=16,s=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),s=null}return e=Ne(h,n,e,r),e.elementType=t,e.type=s,e.lanes=u,e}function Ea(t,e,n,s){return t=Ne(7,t,s,e),t.lanes=n,t}function kr(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function $d(t){var e=Ne(18,null,null,0);return e.stateNode=t,e}function _r(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Wd=new WeakMap;function qe(t,e){if(typeof t=="object"&&t!==null){var n=Wd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:$f(e)},Wd.set(t,e),e)}return{value:t,source:e,stack:$f(e)}}var li=[],oi=0,Al=null,es=0,Ye=[],Xe=0,Xn=null,un=1,cn="";function An(t,e){li[oi++]=es,li[oi++]=Al,Al=t,es=e}function Id(t,e,n){Ye[Xe++]=un,Ye[Xe++]=cn,Ye[Xe++]=Xn,Xn=t;var s=un;t=cn;var r=32-Me(s)-1;s&=~(1<<r),n+=1;var u=32-Me(e)+r;if(30<u){var h=r-r%5;u=(s&(1<<h)-1).toString(32),s>>=h,r-=h,un=1<<32-Me(e)+r|n<<r|s,cn=u+t}else un=1<<u|n<<r|s,cn=t}function Br(t){t.return!==null&&(An(t,1),Id(t,1,0))}function Lr(t){for(;t===Al;)Al=li[--oi],li[oi]=null,es=li[--oi],li[oi]=null;for(;t===Xn;)Xn=Ye[--Xe],Ye[Xe]=null,cn=Ye[--Xe],Ye[Xe]=null,un=Ye[--Xe],Ye[Xe]=null}function th(t,e){Ye[Xe++]=un,Ye[Xe++]=cn,Ye[Xe++]=Xn,un=e.id,cn=e.overflow,Xn=t}var re=null,Ht=null,jt=!1,Zn=null,Ze=!1,Ur=Error(o(519));function Qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ns(qe(e,t)),Ur}function eh(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[oe]=t,e[ve]=s,n){case"dialog":St("cancel",e),St("close",e);break;case"iframe":case"object":case"embed":St("load",e);break;case"video":case"audio":for(n=0;n<As.length;n++)St(As[n],e);break;case"source":St("error",e);break;case"img":case"image":case"link":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"input":St("invalid",e),md(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":St("invalid",e);break;case"textarea":St("invalid",e),gd(e,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||s.suppressHydrationWarning===!0||v0(e.textContent,n)?(s.popover!=null&&(St("beforetoggle",e),St("toggle",e)),s.onScroll!=null&&St("scroll",e),s.onScrollEnd!=null&&St("scrollend",e),s.onClick!=null&&(e.onclick=Sn),e=!0):e=!1,e||Qn(t,!0)}function nh(t){for(re=t.return;re;)switch(re.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:re=re.return}}function ri(t){if(t!==re)return!1;if(!jt)return nh(t),jt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ac(t.type,t.memoizedProps)),n=!n),n&&Ht&&Qn(t),nh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=C0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ht=C0(t)}else e===27?(e=Ht,la(t.type)?(t=rc,rc=null,Ht=t):Ht=e):Ht=re?Ke(t.stateNode.nextSibling):null;return!0}function ja(){Ht=re=null,jt=!1}function Hr(){var t=Zn;return t!==null&&(we===null?we=t:we.push.apply(we,t),Zn=null),t}function ns(t){Zn===null?Zn=[t]:Zn.push(t)}var Gr=w(null),Ca=null,En=null;function Kn(t,e,n){P(Gr,e._currentValue),e._currentValue=n}function jn(t){t._currentValue=Gr.current,H(Gr)}function qr(t,e,n){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===n)break;t=t.return}}function Yr(t,e,n,s){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var u=r.dependencies;if(u!==null){var h=r.child;u=u.firstContext;t:for(;u!==null;){var b=u;u=r;for(var T=0;T<e.length;T++)if(b.context===e[T]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),qr(u.return,n,t),s||(h=null);break t}u=b.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),qr(h,n,t),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function ui(t,e,n,s){t=null;for(var r=e,u=!1;r!==null;){if(!u){if((r.flags&524288)!==0)u=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var b=r.type;ze(r.pendingProps.value,h.value)||(t!==null?t.push(b):t=[b])}}else if(r===Et.current){if(h=r.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(zs):t=[zs])}r=r.return}t!==null&&Yr(e,t,n,s),e.flags|=262144}function El(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ma(t){Ca=t,En=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return ah(Ca,t)}function jl(t,e){return Ca===null&&Ma(t),ah(t,e)}function ah(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},En===null){if(t===null)throw Error(o(308));En=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else En=En.next=e;return n}var rv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},uv=a.unstable_scheduleCallback,cv=a.unstable_NormalPriority,Ft={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xr(){return{controller:new rv,data:new Map,refCount:0}}function as(t){t.refCount--,t.refCount===0&&uv(cv,function(){t.controller.abort()})}var is=null,Zr=0,ci=0,fi=null;function fv(t,e){if(is===null){var n=is=[];Zr=0,ci=Ju(),fi={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Zr++,e.then(ih,ih),e}function ih(){if(--Zr===0&&is!==null){fi!==null&&(fi.status="fulfilled");var t=is;is=null,ci=0,fi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function dv(t,e){var n=[],s={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var r=0;r<n.length;r++)(0,n[r])(e)},function(r){for(s.status="rejected",s.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),s}var sh=R.S;R.S=function(t,e){qm=je(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&fv(t,e),sh!==null&&sh(t,e)};var za=w(null);function Qr(){var t=za.current;return t!==null?t:Lt.pooledCache}function Cl(t,e){e===null?P(za,za.current):P(za,e.pool)}function lh(){var t=Qr();return t===null?null:{parent:Ft._currentValue,pool:t}}var di=Error(o(460)),Kr=Error(o(474)),Ml=Error(o(542)),zl={then:function(){}};function oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function rh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Sn,Sn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ch(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=s}},function(s){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ch(t),t}throw Da=e,di}}function Na(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Da=n,di):n}}var Da=null;function uh(){if(Da===null)throw Error(o(459));var t=Da;return Da=null,t}function ch(t){if(t===di||t===Ml)throw Error(o(483))}var hi=null,ss=0;function Nl(t){var e=ss;return ss+=1,hi===null&&(hi=[]),rh(hi,t,e)}function ls(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Dl(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function fh(t){function e(C,A){if(t){var M=C.deletions;M===null?(C.deletions=[A],C.flags|=16):M.push(A)}}function n(C,A){if(!t)return null;for(;A!==null;)e(C,A),A=A.sibling;return null}function s(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function r(C,A){return C=wn(C,A),C.index=0,C.sibling=null,C}function u(C,A,M){return C.index=M,t?(M=C.alternate,M!==null?(M=M.index,M<A?(C.flags|=67108866,A):M):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function b(C,A,M,L){return A===null||A.tag!==6?(A=kr(M,C.mode,L),A.return=C,A):(A=r(A,M),A.return=C,A)}function T(C,A,M,L){var ot=M.type;return ot===z?_(C,A,M.props.children,L,M.key):A!==null&&(A.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Y&&Na(ot)===A.type)?(A=r(A,M.props),ls(A,M),A.return=C,A):(A=wl(M.type,M.key,M.props,null,C.mode,L),ls(A,M),A.return=C,A)}function N(C,A,M,L){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=_r(M,C.mode,L),A.return=C,A):(A=r(A,M.children||[]),A.return=C,A)}function _(C,A,M,L,ot){return A===null||A.tag!==7?(A=Ea(M,C.mode,L,ot),A.return=C,A):(A=r(A,M),A.return=C,A)}function G(C,A,M){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=kr(""+A,C.mode,M),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return M=wl(A.type,A.key,A.props,null,C.mode,M),ls(M,A),M.return=C,M;case E:return A=_r(A,C.mode,M),A.return=C,A;case Y:return A=Na(A),G(C,A,M)}if(Nt(A)||pt(A))return A=Ea(A,C.mode,M,null),A.return=C,A;if(typeof A.then=="function")return G(C,Nl(A),M);if(A.$$typeof===q)return G(C,jl(C,A),M);Dl(C,A)}return null}function D(C,A,M,L){var ot=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ot!==null?null:b(C,A,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return M.key===ot?T(C,A,M,L):null;case E:return M.key===ot?N(C,A,M,L):null;case Y:return M=Na(M),D(C,A,M,L)}if(Nt(M)||pt(M))return ot!==null?null:_(C,A,M,L,null);if(typeof M.then=="function")return D(C,A,Nl(M),L);if(M.$$typeof===q)return D(C,A,jl(C,M),L);Dl(C,M)}return null}function V(C,A,M,L,ot){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return C=C.get(M)||null,b(A,C,""+L,ot);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case j:return C=C.get(L.key===null?M:L.key)||null,T(A,C,L,ot);case E:return C=C.get(L.key===null?M:L.key)||null,N(A,C,L,ot);case Y:return L=Na(L),V(C,A,M,L,ot)}if(Nt(L)||pt(L))return C=C.get(M)||null,_(A,C,L,ot,null);if(typeof L.then=="function")return V(C,A,M,Nl(L),ot);if(L.$$typeof===q)return V(C,A,M,jl(A,L),ot);Dl(A,L)}return null}function at(C,A,M,L){for(var ot=null,Ct=null,st=A,mt=A=0,wt=null;st!==null&&mt<M.length;mt++){st.index>mt?(wt=st,st=null):wt=st.sibling;var Mt=D(C,st,M[mt],L);if(Mt===null){st===null&&(st=wt);break}t&&st&&Mt.alternate===null&&e(C,st),A=u(Mt,A,mt),Ct===null?ot=Mt:Ct.sibling=Mt,Ct=Mt,st=wt}if(mt===M.length)return n(C,st),jt&&An(C,mt),ot;if(st===null){for(;mt<M.length;mt++)st=G(C,M[mt],L),st!==null&&(A=u(st,A,mt),Ct===null?ot=st:Ct.sibling=st,Ct=st);return jt&&An(C,mt),ot}for(st=s(st);mt<M.length;mt++)wt=V(st,C,mt,M[mt],L),wt!==null&&(t&&wt.alternate!==null&&st.delete(wt.key===null?mt:wt.key),A=u(wt,A,mt),Ct===null?ot=wt:Ct.sibling=wt,Ct=wt);return t&&st.forEach(function(fa){return e(C,fa)}),jt&&An(C,mt),ot}function ut(C,A,M,L){if(M==null)throw Error(o(151));for(var ot=null,Ct=null,st=A,mt=A=0,wt=null,Mt=M.next();st!==null&&!Mt.done;mt++,Mt=M.next()){st.index>mt?(wt=st,st=null):wt=st.sibling;var fa=D(C,st,Mt.value,L);if(fa===null){st===null&&(st=wt);break}t&&st&&fa.alternate===null&&e(C,st),A=u(fa,A,mt),Ct===null?ot=fa:Ct.sibling=fa,Ct=fa,st=wt}if(Mt.done)return n(C,st),jt&&An(C,mt),ot;if(st===null){for(;!Mt.done;mt++,Mt=M.next())Mt=G(C,Mt.value,L),Mt!==null&&(A=u(Mt,A,mt),Ct===null?ot=Mt:Ct.sibling=Mt,Ct=Mt);return jt&&An(C,mt),ot}for(st=s(st);!Mt.done;mt++,Mt=M.next())Mt=V(st,C,mt,Mt.value,L),Mt!==null&&(t&&Mt.alternate!==null&&st.delete(Mt.key===null?mt:Mt.key),A=u(Mt,A,mt),Ct===null?ot=Mt:Ct.sibling=Mt,Ct=Mt);return t&&st.forEach(function(wb){return e(C,wb)}),jt&&An(C,mt),ot}function Bt(C,A,M,L){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case j:t:{for(var ot=M.key;A!==null;){if(A.key===ot){if(ot=M.type,ot===z){if(A.tag===7){n(C,A.sibling),L=r(A,M.props.children),L.return=C,C=L;break t}}else if(A.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===Y&&Na(ot)===A.type){n(C,A.sibling),L=r(A,M.props),ls(L,M),L.return=C,C=L;break t}n(C,A);break}else e(C,A);A=A.sibling}M.type===z?(L=Ea(M.props.children,C.mode,L,M.key),L.return=C,C=L):(L=wl(M.type,M.key,M.props,null,C.mode,L),ls(L,M),L.return=C,C=L)}return h(C);case E:t:{for(ot=M.key;A!==null;){if(A.key===ot)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){n(C,A.sibling),L=r(A,M.children||[]),L.return=C,C=L;break t}else{n(C,A);break}else e(C,A);A=A.sibling}L=_r(M,C.mode,L),L.return=C,C=L}return h(C);case Y:return M=Na(M),Bt(C,A,M,L)}if(Nt(M))return at(C,A,M,L);if(pt(M)){if(ot=pt(M),typeof ot!="function")throw Error(o(150));return M=ot.call(M),ut(C,A,M,L)}if(typeof M.then=="function")return Bt(C,A,Nl(M),L);if(M.$$typeof===q)return Bt(C,A,jl(C,M),L);Dl(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,A!==null&&A.tag===6?(n(C,A.sibling),L=r(A,M),L.return=C,C=L):(n(C,A),L=kr(M,C.mode,L),L.return=C,C=L),h(C)):n(C,A)}return function(C,A,M,L){try{ss=0;var ot=Bt(C,A,M,L);return hi=null,ot}catch(st){if(st===di||st===Ml)throw st;var Ct=Ne(29,st,null,C.mode);return Ct.lanes=L,Ct.return=C,Ct}}}var Ra=fh(!0),dh=fh(!1),Jn=!1;function Jr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Fn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,n){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Dt&2)!==0){var r=s.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),s.pending=e,e=Tl(t),Fd(t,null,n),e}return Sl(t,s,e,n),Tl(t)}function os(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,ad(t,n)}}function Pr(t,e){var n=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?r=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?r=u=e:u=u.next=e}else r=u=e;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var $r=!1;function rs(){if($r){var t=fi;if(t!==null)throw t}}function us(t,e,n,s){$r=!1;var r=t.updateQueue;Jn=!1;var u=r.firstBaseUpdate,h=r.lastBaseUpdate,b=r.shared.pending;if(b!==null){r.shared.pending=null;var T=b,N=T.next;T.next=null,h===null?u=N:h.next=N,h=T;var _=t.alternate;_!==null&&(_=_.updateQueue,b=_.lastBaseUpdate,b!==h&&(b===null?_.firstBaseUpdate=N:b.next=N,_.lastBaseUpdate=T))}if(u!==null){var G=r.baseState;h=0,_=N=T=null,b=u;do{var D=b.lane&-536870913,V=D!==b.lane;if(V?(Tt&D)===D:(s&D)===D){D!==0&&D===ci&&($r=!0),_!==null&&(_=_.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var at=t,ut=b;D=e;var Bt=n;switch(ut.tag){case 1:if(at=ut.payload,typeof at=="function"){G=at.call(Bt,G,D);break t}G=at;break t;case 3:at.flags=at.flags&-65537|128;case 0:if(at=ut.payload,D=typeof at=="function"?at.call(Bt,G,D):at,D==null)break t;G=x({},G,D);break t;case 2:Jn=!0}}D=b.callback,D!==null&&(t.flags|=64,V&&(t.flags|=8192),V=r.callbacks,V===null?r.callbacks=[D]:V.push(D))}else V={lane:D,tag:b.tag,payload:b.payload,callback:b.callback,next:null},_===null?(N=_=V,T=G):_=_.next=V,h|=D;if(b=b.next,b===null){if(b=r.shared.pending,b===null)break;V=b,b=V.next,V.next=null,r.lastBaseUpdate=V,r.shared.pending=null}}while(!0);_===null&&(T=G),r.baseState=T,r.firstBaseUpdate=N,r.lastBaseUpdate=_,u===null&&(r.shared.lanes=0),ea|=h,t.lanes=h,t.memoizedState=G}}function hh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function mh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)hh(n[t],e)}var mi=w(null),Rl=w(0);function ph(t,e){t=kn,P(Rl,t),P(mi,e),kn=t|e.baseLanes}function Wr(){P(Rl,kn),P(mi,mi.current)}function Ir(){kn=Rl.current,H(mi),H(Rl)}var De=w(null),Qe=null;function $n(t){var e=t.alternate;P(Kt,Kt.current&1),P(De,t),Qe===null&&(e===null||mi.current!==null||e.memoizedState!==null)&&(Qe=t)}function tu(t){P(Kt,Kt.current),P(De,t),Qe===null&&(Qe=t)}function gh(t){t.tag===22?(P(Kt,Kt.current),P(De,t),Qe===null&&(Qe=t)):Wn()}function Wn(){P(Kt,Kt.current),P(De,De.current)}function Re(t){H(De),Qe===t&&(Qe=null),H(Kt)}var Kt=w(0);function Vl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lc(n)||oc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cn=0,ht=null,kt=null,Pt=null,Ol=!1,pi=!1,Va=!1,kl=0,cs=0,gi=null,hv=0;function Xt(){throw Error(o(321))}function eu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ze(t[n],e[n]))return!1;return!0}function nu(t,e,n,s,r,u){return Cn=u,ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Ih:yu,Va=!1,u=n(s,r),Va=!1,pi&&(u=vh(e,n,s,r)),yh(t),u}function yh(t){R.H=hs;var e=kt!==null&&kt.next!==null;if(Cn=0,Pt=kt=ht=null,Ol=!1,cs=0,gi=null,e)throw Error(o(300));t===null||$t||(t=t.dependencies,t!==null&&El(t)&&($t=!0))}function vh(t,e,n,s){ht=t;var r=0;do{if(pi&&(gi=null),cs=0,pi=!1,25<=r)throw Error(o(301));if(r+=1,Pt=kt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=tm,u=e(n,s)}while(pi);return u}function mv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?fs(e):e,t=t.useState()[0],(kt!==null?kt.memoizedState:null)!==t&&(ht.flags|=1024),e}function au(){var t=kl!==0;return kl=0,t}function iu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function su(t){if(Ol){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ol=!1}Cn=0,Pt=kt=ht=null,pi=!1,cs=kl=0,gi=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Jt(){if(kt===null){var t=ht.alternate;t=t!==null?t.memoizedState:null}else t=kt.next;var e=Pt===null?ht.memoizedState:Pt.next;if(e!==null)Pt=e,kt=t;else{if(t===null)throw ht.alternate===null?Error(o(467)):Error(o(310));kt=t,t={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},Pt===null?ht.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function _l(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(t){var e=cs;return cs+=1,gi===null&&(gi=[]),t=rh(gi,t,e),e=ht,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Ih:yu),t}function Bl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return fs(t);if(t.$$typeof===q)return ue(t)}throw Error(o(438,String(t)))}function lu(t){var e=null,n=ht.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=ht.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=_l(),ht.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),s=0;s<t;s++)n[s]=I;return e.index++,n}function Mn(t,e){return typeof e=="function"?e(t):e}function Ll(t){var e=Jt();return ou(e,kt,t)}function ou(t,e,n){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var r=t.baseQueue,u=s.pending;if(u!==null){if(r!==null){var h=r.next;r.next=u.next,u.next=h}e.baseQueue=r=u,s.pending=null}if(u=t.baseState,r===null)t.memoizedState=u;else{e=r.next;var b=h=null,T=null,N=e,_=!1;do{var G=N.lane&-536870913;if(G!==N.lane?(Tt&G)===G:(Cn&G)===G){var D=N.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),G===ci&&(_=!0);else if((Cn&D)===D){N=N.next,D===ci&&(_=!0);continue}else G={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=G,h=u):T=T.next=G,ht.lanes|=D,ea|=D;G=N.action,Va&&n(u,G),u=N.hasEagerState?N.eagerState:n(u,G)}else D={lane:G,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},T===null?(b=T=D,h=u):T=T.next=D,ht.lanes|=G,ea|=G;N=N.next}while(N!==null&&N!==e);if(T===null?h=u:T.next=b,!ze(u,t.memoizedState)&&($t=!0,_&&(n=fi,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,s.lastRenderedState=u}return r===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function ru(t){var e=Jt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var s=n.dispatch,r=n.pending,u=e.memoizedState;if(r!==null){n.pending=null;var h=r=r.next;do u=t(u,h.action),h=h.next;while(h!==r);ze(u,e.memoizedState)||($t=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,s]}function bh(t,e,n){var s=ht,r=Jt(),u=jt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!ze((kt||r).memoizedState,n);if(h&&(r.memoizedState=n,$t=!0),r=r.queue,fu(Th.bind(null,s,r,t),[t]),r.getSnapshot!==e||h||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,yi(9,{destroy:void 0},Sh.bind(null,s,r,n,e),null),Lt===null)throw Error(o(349));u||(Cn&127)!==0||xh(s,e,n)}return n}function xh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ht.updateQueue,e===null?(e=_l(),ht.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Sh(t,e,n,s){e.value=n,e.getSnapshot=s,wh(e)&&Ah(t)}function Th(t,e,n){return n(function(){wh(e)&&Ah(t)})}function wh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ze(t,n)}catch{return!0}}function Ah(t){var e=Aa(t,2);e!==null&&Ae(e,t,2)}function uu(t){var e=pe();if(typeof t=="function"){var n=t;if(t=n(),Va){Gn(!0);try{n()}finally{Gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:t},e}function Eh(t,e,n,s){return t.baseState=n,ou(t,kt,typeof s=="function"?s:Mn)}function pv(t,e,n,s,r){if(Gl(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};R.T!==null?n(!0):u.isTransition=!1,s(u),n=e.pending,n===null?(u.next=e.pending=u,jh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function jh(t,e){var n=e.action,s=e.payload,r=t.state;if(e.isTransition){var u=R.T,h={};R.T=h;try{var b=n(r,s),T=R.S;T!==null&&T(h,b),Ch(t,e,b)}catch(N){cu(t,e,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),R.T=u}}else try{u=n(r,s),Ch(t,e,u)}catch(N){cu(t,e,N)}}function Ch(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Mh(t,e,s)},function(s){return cu(t,e,s)}):Mh(t,e,n)}function Mh(t,e,n){e.status="fulfilled",e.value=n,zh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,jh(t,n)))}function cu(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,zh(e),e=e.next;while(e!==s)}t.action=null}function zh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Nh(t,e){return e}function Dh(t,e){if(jt){var n=Lt.formState;if(n!==null){t:{var s=ht;if(jt){if(Ht){e:{for(var r=Ht,u=Ze;r.nodeType!==8;){if(!u){r=null;break e}if(r=Ke(r.nextSibling),r===null){r=null;break e}}u=r.data,r=u==="F!"||u==="F"?r:null}if(r){Ht=Ke(r.nextSibling),s=r.data==="F!";break t}}Qn(s)}s=!1}s&&(e=n[0])}}return n=pe(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:e},n.queue=s,n=Ph.bind(null,ht,s),s.dispatch=n,s=uu(!1),u=gu.bind(null,ht,!1,s.queue),s=pe(),r={state:e,dispatch:null,action:t,pending:null},s.queue=r,n=pv.bind(null,ht,r,u,n),r.dispatch=n,s.memoizedState=t,[e,n,!1]}function Rh(t){var e=Jt();return Vh(e,kt,t)}function Vh(t,e,n){if(e=ou(t,e,Nh)[0],t=Ll(Mn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=fs(e)}catch(h){throw h===di?Ml:h}else s=e;e=Jt();var r=e.queue,u=r.dispatch;return n!==e.memoizedState&&(ht.flags|=2048,yi(9,{destroy:void 0},gv.bind(null,r,n),null)),[s,u,t]}function gv(t,e){t.action=e}function Oh(t){var e=Jt(),n=kt;if(n!==null)return Vh(e,n,t);Jt(),e=e.memoizedState,n=Jt();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function yi(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=ht.updateQueue,e===null&&(e=_l(),ht.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(s=n.next,n.next=t,t.next=s,e.lastEffect=t),t}function kh(){return Jt().memoizedState}function Ul(t,e,n,s){var r=pe();ht.flags|=t,r.memoizedState=yi(1|e,{destroy:void 0},n,s===void 0?null:s)}function Hl(t,e,n,s){var r=Jt();s=s===void 0?null:s;var u=r.memoizedState.inst;kt!==null&&s!==null&&eu(s,kt.memoizedState.deps)?r.memoizedState=yi(e,u,n,s):(ht.flags|=t,r.memoizedState=yi(1|e,u,n,s))}function _h(t,e){Ul(8390656,8,t,e)}function fu(t,e){Hl(2048,8,t,e)}function yv(t){ht.flags|=4;var e=ht.updateQueue;if(e===null)e=_l(),ht.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Bh(t){var e=Jt().memoizedState;return yv({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Lh(t,e){return Hl(4,2,t,e)}function Uh(t,e){return Hl(4,4,t,e)}function Hh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Gh(t,e,n){n=n!=null?n.concat([t]):null,Hl(4,4,Hh.bind(null,e,t),n)}function du(){}function qh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&eu(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function Yh(t,e){var n=Jt();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&eu(e,s[1]))return s[0];if(s=t(),Va){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[s,e],s}function hu(t,e,n){return n===void 0||(Cn&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Xm(),ht.lanes|=t,ea|=t,n)}function Xh(t,e,n,s){return ze(n,e)?n:mi.current!==null?(t=hu(t,n,s),ze(t,e)||($t=!0),t):(Cn&42)===0||(Cn&1073741824)!==0&&(Tt&261930)===0?($t=!0,t.memoizedState=n):(t=Xm(),ht.lanes|=t,ea|=t,e)}function Zh(t,e,n,s,r){var u=Q.p;Q.p=u!==0&&8>u?u:8;var h=R.T,b={};R.T=b,gu(t,!1,e,n);try{var T=r(),N=R.S;if(N!==null&&N(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var _=dv(T,s);ds(t,e,_,ke(t))}else ds(t,e,s,ke(t))}catch(G){ds(t,e,{then:function(){},status:"rejected",reason:G},ke())}finally{Q.p=u,h!==null&&b.types!==null&&(h.types=b.types),R.T=h}}function vv(){}function mu(t,e,n,s){if(t.tag!==5)throw Error(o(476));var r=Qh(t).queue;Zh(t,r,e,F,n===null?vv:function(){return Kh(t),n(s)})}function Qh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:F},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Kh(t){var e=Qh(t);e.next===null&&(e=t.alternate.memoizedState),ds(t,e.next.queue,{},ke())}function pu(){return ue(zs)}function Jh(){return Jt().memoizedState}function Fh(){return Jt().memoizedState}function bv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=ke();t=Fn(n);var s=Pn(e,t,n);s!==null&&(Ae(s,e,n),os(s,e,n)),e={cache:Xr()},t.payload=e;return}e=e.return}}function xv(t,e,n){var s=ke();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gl(t)?$h(e,n):(n=Vr(t,e,n,s),n!==null&&(Ae(n,t,s),Wh(n,e,s)))}function Ph(t,e,n){var s=ke();ds(t,e,n,s)}function ds(t,e,n,s){var r={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gl(t))$h(e,r);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,b=u(h,n);if(r.hasEagerState=!0,r.eagerState=b,ze(b,h))return Sl(t,e,r,0),Lt===null&&xl(),!1}catch{}if(n=Vr(t,e,r,s),n!==null)return Ae(n,t,s),Wh(n,e,s),!0}return!1}function gu(t,e,n,s){if(s={lane:2,revertLane:Ju(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Gl(t)){if(e)throw Error(o(479))}else e=Vr(t,n,s,2),e!==null&&Ae(e,t,2)}function Gl(t){var e=t.alternate;return t===ht||e!==null&&e===ht}function $h(t,e){pi=Ol=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Wh(t,e,n){if((n&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,ad(t,n)}}var hs={readContext:ue,use:Bl,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};hs.useEffectEvent=Xt;var Ih={readContext:ue,use:Bl,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:_h,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ul(4194308,4,Hh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ul(4194308,4,t,e)},useInsertionEffect:function(t,e){Ul(4,2,t,e)},useMemo:function(t,e){var n=pe();e=e===void 0?null:e;var s=t();if(Va){Gn(!0);try{t()}finally{Gn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=pe();if(n!==void 0){var r=n(e);if(Va){Gn(!0);try{n(e)}finally{Gn(!1)}}}else r=e;return s.memoizedState=s.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},s.queue=t,t=t.dispatch=xv.bind(null,ht,t),[s.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=uu(t);var e=t.queue,n=Ph.bind(null,ht,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:du,useDeferredValue:function(t,e){var n=pe();return hu(n,t,e)},useTransition:function(){var t=uu(!1);return t=Zh.bind(null,ht,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=ht,r=pe();if(jt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Lt===null)throw Error(o(349));(Tt&127)!==0||xh(s,e,n)}r.memoizedState=n;var u={value:n,getSnapshot:e};return r.queue=u,_h(Th.bind(null,s,u,t),[t]),s.flags|=2048,yi(9,{destroy:void 0},Sh.bind(null,s,u,n,e),null),n},useId:function(){var t=pe(),e=Lt.identifierPrefix;if(jt){var n=cn,s=un;n=(s&~(1<<32-Me(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=kl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=hv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:pu,useFormState:Dh,useActionState:Dh,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=gu.bind(null,ht,!0,n),n.dispatch=e,[t,e]},useMemoCache:lu,useCacheRefresh:function(){return pe().memoizedState=bv.bind(null,ht)},useEffectEvent:function(t){var e=pe(),n={impl:t};return e.memoizedState=n,function(){if((Dt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},yu={readContext:ue,use:Bl,useCallback:qh,useContext:ue,useEffect:fu,useImperativeHandle:Gh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Yh,useReducer:Ll,useRef:kh,useState:function(){return Ll(Mn)},useDebugValue:du,useDeferredValue:function(t,e){var n=Jt();return Xh(n,kt.memoizedState,t,e)},useTransition:function(){var t=Ll(Mn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:bh,useId:Jh,useHostTransitionStatus:pu,useFormState:Rh,useActionState:Rh,useOptimistic:function(t,e){var n=Jt();return Eh(n,kt,t,e)},useMemoCache:lu,useCacheRefresh:Fh};yu.useEffectEvent=Bh;var tm={readContext:ue,use:Bl,useCallback:qh,useContext:ue,useEffect:fu,useImperativeHandle:Gh,useInsertionEffect:Lh,useLayoutEffect:Uh,useMemo:Yh,useReducer:ru,useRef:kh,useState:function(){return ru(Mn)},useDebugValue:du,useDeferredValue:function(t,e){var n=Jt();return kt===null?hu(n,t,e):Xh(n,kt.memoizedState,t,e)},useTransition:function(){var t=ru(Mn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:fs(t),e]},useSyncExternalStore:bh,useId:Jh,useHostTransitionStatus:pu,useFormState:Oh,useActionState:Oh,useOptimistic:function(t,e){var n=Jt();return kt!==null?Eh(n,kt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:lu,useCacheRefresh:Fh};tm.useEffectEvent=Bh;function vu(t,e,n,s){e=t.memoizedState,n=n(s,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var bu={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=ke(),r=Fn(s);r.payload=e,n!=null&&(r.callback=n),e=Pn(t,r,s),e!==null&&(Ae(e,t,s),os(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var s=ke(),r=Fn(s);r.tag=1,r.payload=e,n!=null&&(r.callback=n),e=Pn(t,r,s),e!==null&&(Ae(e,t,s),os(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ke(),s=Fn(n);s.tag=2,e!=null&&(s.callback=e),e=Pn(t,s,n),e!==null&&(Ae(e,t,n),os(e,t,n))}};function em(t,e,n,s,r,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,u,h):e.prototype&&e.prototype.isPureReactComponent?!Ii(n,s)||!Ii(r,u):!0}function nm(t,e,n,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,s),e.state!==t&&bu.enqueueReplaceState(e,e.state,null)}function Oa(t,e){var n=e;if("ref"in e){n={};for(var s in e)s!=="ref"&&(n[s]=e[s])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var r in t)n[r]===void 0&&(n[r]=t[r])}return n}function am(t){bl(t)}function im(t){console.error(t)}function sm(t){bl(t)}function ql(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function lm(t,e,n){try{var s=t.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function xu(t,e,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){ql(t,e)},n}function om(t){return t=Fn(t),t.tag=3,t}function rm(t,e,n,s){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var u=s.value;t.payload=function(){return r(u)},t.callback=function(){lm(e,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){lm(e,n,s),typeof r!="function"&&(na===null?na=new Set([this]):na.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function Sv(t,e,n,s,r){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&ui(e,n,r,!0),n=De.current,n!==null){switch(n.tag){case 31:case 13:return Qe===null?to():n.alternate===null&&Zt===0&&(Zt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,s===zl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),Zu(t,s,r)),!1;case 22:return n.flags|=65536,s===zl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([s]):n.add(s)),Zu(t,s,r)),!1}throw Error(o(435,n.tag))}return Zu(t,s,r),to(),!1}if(jt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,s!==Ur&&(t=Error(o(422),{cause:s}),ns(qe(t,n)))):(s!==Ur&&(e=Error(o(423),{cause:s}),ns(qe(e,n))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,s=qe(s,n),r=xu(t.stateNode,s,r),Pr(t,r),Zt!==4&&(Zt=2)),!1;var u=Error(o(520),{cause:s});if(u=qe(u,n),Ss===null?Ss=[u]:Ss.push(u),Zt!==4&&(Zt=2),e===null)return!0;s=qe(s,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=r&-r,n.lanes|=t,t=xu(n.stateNode,s,t),Pr(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(na===null||!na.has(u))))return n.flags|=65536,r&=-r,n.lanes|=r,r=om(r),rm(r,t,n,s),Pr(n,r),!1}n=n.return}while(n!==null);return!1}var Su=Error(o(461)),$t=!1;function ce(t,e,n,s){e.child=t===null?dh(e,null,n,s):Ra(e,t.child,n,s)}function um(t,e,n,s,r){n=n.render;var u=e.ref;if("ref"in s){var h={};for(var b in s)b!=="ref"&&(h[b]=s[b])}else h=s;return Ma(e),s=nu(t,e,n,h,u,r),b=au(),t!==null&&!$t?(iu(t,e,r),zn(t,e,r)):(jt&&b&&Br(e),e.flags|=1,ce(t,e,s,r),e.child)}function cm(t,e,n,s,r){if(t===null){var u=n.type;return typeof u=="function"&&!Or(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,fm(t,e,u,s,r)):(t=wl(n.type,null,s,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!zu(t,r)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(h,s)&&t.ref===e.ref)return zn(t,e,r)}return e.flags|=1,t=wn(u,s),t.ref=e.ref,t.return=e,e.child=t}function fm(t,e,n,s,r){if(t!==null){var u=t.memoizedProps;if(Ii(u,s)&&t.ref===e.ref)if($t=!1,e.pendingProps=s=u,zu(t,r))(t.flags&131072)!==0&&($t=!0);else return e.lanes=t.lanes,zn(t,e,r)}return Tu(t,e,n,s,r)}function dm(t,e,n,s){var r=s.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(s=e.child=t.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~u}else s=0,e.child=null;return hm(t,e,u,n,s)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Cl(e,u!==null?u.cachePool:null),u!==null?ph(e,u):Wr(),gh(e);else return s=e.lanes=536870912,hm(t,e,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(Cl(e,u.cachePool),ph(e,u),Wn(),e.memoizedState=null):(t!==null&&Cl(e,null),Wr(),Wn());return ce(t,e,r,n),e.child}function ms(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function hm(t,e,n,s,r){var u=Qr();return u=u===null?null:{parent:Ft._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Cl(e,null),Wr(),gh(e),t!==null&&ui(t,e,s,!0),e.childLanes=r,null}function Yl(t,e){return e=Zl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function mm(t,e,n){return Ra(e,t.child,null,n),t=Yl(e,e.pendingProps),t.flags|=2,Re(e),e.memoizedState=null,t}function Tv(t,e,n){var s=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(jt){if(s.mode==="hidden")return t=Yl(e,s),e.lanes=536870912,ms(null,t);if(tu(e),(t=Ht)?(t=j0(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=$d(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return Yl(e,s)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(tu(e),r)if(e.flags&256)e.flags&=-257,e=mm(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if($t||ui(t,e,n,!1),r=(n&t.childLanes)!==0,$t||r){if(s=Lt,s!==null&&(h=id(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Aa(t,h),Ae(s,t,h),Su;to(),e=mm(t,e,n)}else t=u.treeContext,Ht=Ke(h.nextSibling),re=e,jt=!0,Zn=null,Ze=!1,t!==null&&th(e,t),e=Yl(e,s),e.flags|=4096;return e}return t=wn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Xl(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Tu(t,e,n,s,r){return Ma(e),n=nu(t,e,n,s,void 0,r),s=au(),t!==null&&!$t?(iu(t,e,r),zn(t,e,r)):(jt&&s&&Br(e),e.flags|=1,ce(t,e,n,r),e.child)}function pm(t,e,n,s,r,u){return Ma(e),e.updateQueue=null,n=vh(e,s,n,r),yh(t),s=au(),t!==null&&!$t?(iu(t,e,u),zn(t,e,u)):(jt&&s&&Br(e),e.flags|=1,ce(t,e,n,u),e.child)}function gm(t,e,n,s,r){if(Ma(e),e.stateNode===null){var u=si,h=n.contextType;typeof h=="object"&&h!==null&&(u=ue(h)),u=new n(s,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=bu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Jr(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?ue(h):si,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(vu(e,n,h,s),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&bu.enqueueReplaceState(u,u.state,null),us(e,s,u,r),rs(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var b=e.memoizedProps,T=Oa(n,b);u.props=T;var N=u.context,_=n.contextType;h=si,typeof _=="object"&&_!==null&&(h=ue(_));var G=n.getDerivedStateFromProps;_=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=e.pendingProps!==b,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||N!==h)&&nm(e,u,s,h),Jn=!1;var D=e.memoizedState;u.state=D,us(e,s,u,r),rs(),N=e.memoizedState,b||D!==N||Jn?(typeof G=="function"&&(vu(e,n,G,s),N=e.memoizedState),(T=Jn||em(e,n,T,s,D,N,h))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=N),u.props=s,u.state=N,u.context=h,s=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Fr(t,e),h=e.memoizedProps,_=Oa(n,h),u.props=_,G=e.pendingProps,D=u.context,N=n.contextType,T=si,typeof N=="object"&&N!==null&&(T=ue(N)),b=n.getDerivedStateFromProps,(N=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==G||D!==T)&&nm(e,u,s,T),Jn=!1,D=e.memoizedState,u.state=D,us(e,s,u,r),rs();var V=e.memoizedState;h!==G||D!==V||Jn||t!==null&&t.dependencies!==null&&El(t.dependencies)?(typeof b=="function"&&(vu(e,n,b,s),V=e.memoizedState),(_=Jn||em(e,n,_,s,D,V,T)||t!==null&&t.dependencies!==null&&El(t.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,V,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,V,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=V),u.props=s,u.state=V,u.context=T,s=_):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,Xl(t,e),s=(e.flags&128)!==0,u||s?(u=e.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&s?(e.child=Ra(e,t.child,null,r),e.child=Ra(e,null,n,r)):ce(t,e,n,r),e.memoizedState=u.state,t=e.child):t=zn(t,e,r),t}function ym(t,e,n,s){return ja(),e.flags|=256,ce(t,e,n,s),e.child}var wu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Au(t){return{baseLanes:t,cachePool:lh()}}function Eu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function vm(t,e,n){var s=e.pendingProps,r=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),h&&(r=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(jt){if(r?$n(e):Wn(),(t=Ht)?(t=j0(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=$d(t),n.return=e,e.child=n,re=e,Ht=null)):t=null,t===null)throw Qn(e);return oc(t)?e.lanes=32:e.lanes=536870912,null}var b=s.children;return s=s.fallback,r?(Wn(),r=e.mode,b=Zl({mode:"hidden",children:b},r),s=Ea(s,r,n,null),b.return=e,s.return=e,b.sibling=s,e.child=b,s=e.child,s.memoizedState=Au(n),s.childLanes=Eu(t,h,n),e.memoizedState=wu,ms(null,s)):($n(e),ju(e,b))}var T=t.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(u)e.flags&256?($n(e),e.flags&=-257,e=Cu(t,e,n)):e.memoizedState!==null?(Wn(),e.child=t.child,e.flags|=128,e=null):(Wn(),b=s.fallback,r=e.mode,s=Zl({mode:"visible",children:s.children},r),b=Ea(b,r,n,null),b.flags|=2,s.return=e,b.return=e,s.sibling=b,e.child=s,Ra(e,t.child,null,n),s=e.child,s.memoizedState=Au(n),s.childLanes=Eu(t,h,n),e.memoizedState=wu,e=ms(null,s));else if($n(e),oc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var N=h.dgst;h=N,s=Error(o(419)),s.stack="",s.digest=h,ns({value:s,source:null,stack:null}),e=Cu(t,e,n)}else if($t||ui(t,e,n,!1),h=(n&t.childLanes)!==0,$t||h){if(h=Lt,h!==null&&(s=id(h,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,Aa(t,s),Ae(h,t,s),Su;lc(b)||to(),e=Cu(t,e,n)}else lc(b)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ht=Ke(b.nextSibling),re=e,jt=!0,Zn=null,Ze=!1,t!==null&&th(e,t),e=ju(e,s.children),e.flags|=4096);return e}return r?(Wn(),b=s.fallback,r=e.mode,T=t.child,N=T.sibling,s=wn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,N!==null?b=wn(N,b):(b=Ea(b,r,n,null),b.flags|=2),b.return=e,s.return=e,s.sibling=b,e.child=s,ms(null,s),s=e.child,b=t.child.memoizedState,b===null?b=Au(n):(r=b.cachePool,r!==null?(T=Ft._currentValue,r=r.parent!==T?{parent:T,pool:T}:r):r=lh(),b={baseLanes:b.baseLanes|n,cachePool:r}),s.memoizedState=b,s.childLanes=Eu(t,h,n),e.memoizedState=wu,ms(t.child,s)):($n(e),n=t.child,t=n.sibling,n=wn(n,{mode:"visible",children:s.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function ju(t,e){return e=Zl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Zl(t,e){return t=Ne(22,t,null,e),t.lanes=0,t}function Cu(t,e,n){return Ra(e,t.child,null,n),t=ju(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function bm(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),qr(t.return,e,n)}function Mu(t,e,n,s,r,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=s,h.tail=n,h.tailMode=r,h.treeForkCount=u)}function xm(t,e,n){var s=e.pendingProps,r=s.revealOrder,u=s.tail;s=s.children;var h=Kt.current,b=(h&2)!==0;if(b?(h=h&1|2,e.flags|=128):h&=1,P(Kt,h),ce(t,e,s,n),s=jt?es:0,!b&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&bm(t,n,e);else if(t.tag===19)bm(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Vl(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Mu(e,!1,r,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Vl(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Mu(e,!0,n,null,u,s);break;case"together":Mu(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function zn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ea|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ui(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=wn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=wn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function zu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&El(t)))}function wv(t,e,n){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),Kn(e,Ft,t.memoizedState.cache),ja();break;case 27:case 5:Un(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:Kn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,tu(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?($n(e),e.flags|=128,null):(n&e.child.childLanes)!==0?vm(t,e,n):($n(e),t=zn(t,e,n),t!==null?t.sibling:null);$n(e);break;case 19:var r=(t.flags&128)!==0;if(s=(n&e.childLanes)!==0,s||(ui(t,e,n,!1),s=(n&e.childLanes)!==0),r){if(s)return xm(t,e,n);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),P(Kt,Kt.current),s)break;return null;case 22:return e.lanes=0,dm(t,e,n,e.pendingProps);case 24:Kn(e,Ft,t.memoizedState.cache)}return zn(t,e,n)}function Sm(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)$t=!0;else{if(!zu(t,n)&&(e.flags&128)===0)return $t=!1,wv(t,e,n);$t=(t.flags&131072)!==0}else $t=!1,jt&&(e.flags&1048576)!==0&&Id(e,es,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Na(e.elementType),e.type=t,typeof t=="function")Or(t)?(s=Oa(t,s),e.tag=1,e=gm(null,e,t,s,n)):(e.tag=0,e=Tu(null,e,t,s,n));else{if(t!=null){var r=t.$$typeof;if(r===X){e.tag=11,e=um(null,e,t,s,n);break t}else if(r===$){e.tag=14,e=cm(null,e,t,s,n);break t}}throw e=At(t)||t,Error(o(306,e,""))}}return e;case 0:return Tu(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,r=Oa(s,e.pendingProps),gm(t,e,s,r,n);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(o(387));s=e.pendingProps;var u=e.memoizedState;r=u.element,Fr(t,e),us(e,s,null,n);var h=e.memoizedState;if(s=h.cache,Kn(e,Ft,s),s!==u.cache&&Yr(e,[Ft],n,!0),rs(),s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=ym(t,e,s,n);break t}else if(s!==r){r=qe(Error(o(424)),e),ns(r),e=ym(t,e,s,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ht=Ke(t.firstChild),re=e,jt=!0,Zn=null,Ze=!0,n=dh(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ja(),s===r){e=zn(t,e,n);break t}ce(t,e,s,n)}e=e.child}return e;case 26:return Xl(t,e),t===null?(n=R0(e.type,null,e.pendingProps,null))?e.memoizedState=n:jt||(n=e.type,t=e.pendingProps,s=oo(rt.current).createElement(n),s[oe]=e,s[ve]=t,fe(s,n,t),se(s),e.stateNode=s):e.memoizedState=R0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Un(e),t===null&&jt&&(s=e.stateNode=z0(e.type,e.pendingProps,rt.current),re=e,Ze=!0,r=Ht,la(e.type)?(rc=r,Ht=Ke(s.firstChild)):Ht=r),ce(t,e,e.pendingProps.children,n),Xl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&jt&&((r=s=Ht)&&(s=Iv(s,e.type,e.pendingProps,Ze),s!==null?(e.stateNode=s,re=e,Ht=Ke(s.firstChild),Ze=!1,r=!0):r=!1),r||Qn(e)),Un(e),r=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,s=u.children,ac(r,u)?s=null:h!==null&&ac(r,h)&&(e.flags|=32),e.memoizedState!==null&&(r=nu(t,e,mv,null,null,n),zs._currentValue=r),Xl(t,e),ce(t,e,s,n),e.child;case 6:return t===null&&jt&&((t=n=Ht)&&(n=tb(n,e.pendingProps,Ze),n!==null?(e.stateNode=n,re=e,Ht=null,t=!0):t=!1),t||Qn(e)),null;case 13:return vm(t,e,n);case 4:return ie(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Ra(e,null,s,n):ce(t,e,s,n),e.child;case 11:return um(t,e,e.type,e.pendingProps,n);case 7:return ce(t,e,e.pendingProps,n),e.child;case 8:return ce(t,e,e.pendingProps.children,n),e.child;case 12:return ce(t,e,e.pendingProps.children,n),e.child;case 10:return s=e.pendingProps,Kn(e,e.type,s.value),ce(t,e,s.children,n),e.child;case 9:return r=e.type._context,s=e.pendingProps.children,Ma(e),r=ue(r),s=s(r),e.flags|=1,ce(t,e,s,n),e.child;case 14:return cm(t,e,e.type,e.pendingProps,n);case 15:return fm(t,e,e.type,e.pendingProps,n);case 19:return xm(t,e,n);case 31:return Tv(t,e,n);case 22:return dm(t,e,n,e.pendingProps);case 24:return Ma(e),s=ue(Ft),t===null?(r=Qr(),r===null&&(r=Lt,u=Xr(),r.pooledCache=u,u.refCount++,u!==null&&(r.pooledCacheLanes|=n),r=u),e.memoizedState={parent:s,cache:r},Jr(e),Kn(e,Ft,r)):((t.lanes&n)!==0&&(Fr(t,e),us(e,null,null,n),rs()),r=t.memoizedState,u=e.memoizedState,r.parent!==s?(r={parent:s,cache:s},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Kn(e,Ft,s)):(s=u.cache,Kn(e,Ft,s),s!==r.cache&&Yr(e,[Ft],n,!0))),ce(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Nn(t){t.flags|=4}function Nu(t,e,n,s,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Jm())t.flags|=8192;else throw Da=zl,Kr}else t.flags&=-16777217}function Tm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!B0(e))if(Jm())t.flags|=8192;else throw Da=zl,Kr}function Ql(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ed():536870912,t.lanes|=e,Si|=e)}function ps(t,e){if(!jt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,s=0;if(e)for(var r=t.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=s,t.childLanes=n,e}function Av(t,e,n){var s=e.pendingProps;switch(Lr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return n=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),jn(Ft),gt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ri(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Hr())),Gt(e),null;case 26:var r=e.type,u=e.memoizedState;return t===null?(Nn(e),u!==null?(Gt(e),Tm(e,u)):(Gt(e),Nu(e,r,null,s,n))):u?u!==t.memoizedState?(Nn(e),Gt(e),Tm(e,u)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Nn(e),Gt(e),Nu(e,r,t,s,n)),null;case 27:if(bn(e),n=rt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}t=tt.current,ri(e)?eh(e):(t=z0(r,s,n),e.stateNode=t,Nn(e))}return Gt(e),null;case 5:if(bn(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return Gt(e),null}if(u=tt.current,ri(e))eh(e);else{var h=oo(rt.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?h.createElement(r,{is:s.is}):h.createElement(r)}}u[oe]=e,u[ve]=s;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(fe(u,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Nn(e)}}return Gt(e),Nu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Nn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,ri(e)){if(t=e.stateNode,n=e.memoizedProps,s=null,r=re,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}t[oe]=e,t=!!(t.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||v0(t.nodeValue,n)),t||Qn(e,!0)}else t=oo(t).createTextNode(s),t[oe]=e,e.stateNode=t}return Gt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(s=ri(e),n!==null){if(t===null){if(!s)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[oe]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else n=Hr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Re(e),e):(Re(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Gt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ri(e),s!==null&&s.dehydrated!==null){if(t===null){if(!r)throw Error(o(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[oe]=e}else ja(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),r=!1}else r=Hr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Re(e),e):(Re(e),null)}return Re(e),(e.flags&128)!==0?(e.lanes=n,e):(n=s!==null,t=t!==null&&t.memoizedState!==null,n&&(s=e.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==r&&(s.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ql(e,e.updateQueue),Gt(e),null);case 4:return gt(),t===null&&Wu(e.stateNode.containerInfo),Gt(e),null;case 10:return jn(e.type),Gt(e),null;case 19:if(H(Kt),s=e.memoizedState,s===null)return Gt(e),null;if(r=(e.flags&128)!==0,u=s.rendering,u===null)if(r)ps(s,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Vl(t),u!==null){for(e.flags|=128,ps(s,!1),t=u.updateQueue,e.updateQueue=t,Ql(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Pd(n,t),n=n.sibling;return P(Kt,Kt.current&1|2),jt&&An(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&je()>$l&&(e.flags|=128,r=!0,ps(s,!1),e.lanes=4194304)}else{if(!r)if(t=Vl(u),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Ql(e,t),ps(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!jt)return Gt(e),null}else 2*je()-s.renderingStartTime>$l&&n!==536870912&&(e.flags|=128,r=!0,ps(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=je(),t.sibling=null,n=Kt.current,P(Kt,r?n&1|2:n&1),jt&&An(e,s.treeForkCount),t):(Gt(e),null);case 22:case 23:return Re(e),Ir(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(n&536870912)!==0&&(e.flags&128)===0&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),n=e.updateQueue,n!==null&&Ql(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==n&&(e.flags|=2048),t!==null&&H(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),jn(Ft),Gt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Ev(t,e){switch(Lr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return jn(Ft),gt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return bn(e),null;case 31:if(e.memoizedState!==null){if(Re(e),e.alternate===null)throw Error(o(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Re(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ja()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Kt),null;case 4:return gt(),null;case 10:return jn(e.type),null;case 22:case 23:return Re(e),Ir(),t!==null&&H(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return jn(Ft),null;case 25:return null;default:return null}}function wm(t,e){switch(Lr(e),e.tag){case 3:jn(Ft),gt();break;case 26:case 27:case 5:bn(e);break;case 4:gt();break;case 31:e.memoizedState!==null&&Re(e);break;case 13:Re(e);break;case 19:H(Kt);break;case 10:jn(e.type);break;case 22:case 23:Re(e),Ir(),t!==null&&H(za);break;case 24:jn(Ft)}}function gs(t,e){try{var n=e.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var r=s.next;n=r;do{if((n.tag&t)===t){s=void 0;var u=n.create,h=n.inst;s=u(),h.destroy=s}n=n.next}while(n!==r)}}catch(b){Ot(e,e.return,b)}}function In(t,e,n){try{var s=e.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var u=r.next;s=u;do{if((s.tag&t)===t){var h=s.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,r=e;var T=n,N=b;try{N()}catch(_){Ot(r,T,_)}}}s=s.next}while(s!==u)}}catch(_){Ot(e,e.return,_)}}function Am(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{mh(e,n)}catch(s){Ot(t,t.return,s)}}}function Em(t,e,n){n.props=Oa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(s){Ot(t,e,s)}}function ys(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof n=="function"?t.refCleanup=n(s):n.current=s}}catch(r){Ot(t,e,r)}}function fn(t,e){var n=t.ref,s=t.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(r){Ot(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Ot(t,e,r)}else n.current=null}function jm(t){var e=t.type,n=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break t;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(r){Ot(t,t.return,r)}}function Du(t,e,n){try{var s=t.stateNode;Kv(s,t.type,n,e),s[ve]=e}catch(r){Ot(t,t.return,r)}}function Cm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&la(t.type)||t.tag===4}function Ru(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&la(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Vu(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Sn));else if(s!==4&&(s===27&&la(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Vu(t,e,n),t=t.sibling;t!==null;)Vu(t,e,n),t=t.sibling}function Kl(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(s!==4&&(s===27&&la(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Kl(t,e,n),t=t.sibling;t!==null;)Kl(t,e,n),t=t.sibling}function Mm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var s=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);fe(e,s,n),e[oe]=t,e[ve]=n}catch(u){Ot(t,t.return,u)}}var Dn=!1,Wt=!1,Ou=!1,zm=typeof WeakSet=="function"?WeakSet:Set,le=null;function jv(t,e){if(t=t.containerInfo,ec=po,t=Gd(t),Cr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,b=-1,T=-1,N=0,_=0,G=t,D=null;e:for(;;){for(var V;G!==n||r!==0&&G.nodeType!==3||(b=h+r),G!==u||s!==0&&G.nodeType!==3||(T=h+s),G.nodeType===3&&(h+=G.nodeValue.length),(V=G.firstChild)!==null;)D=G,G=V;for(;;){if(G===t)break e;if(D===n&&++N===r&&(b=h),D===u&&++_===s&&(T=h),(V=G.nextSibling)!==null)break;G=D,D=G.parentNode}G=V}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(nc={focusedElem:t,selectionRange:n},po=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,r=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var at=Oa(n.type,r);t=s.getSnapshotBeforeUpdate(at,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Ot(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)sc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":sc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}}function Nm(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Vn(t,n),s&4&&gs(5,n);break;case 1:if(Vn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Ot(n,n.return,h)}else{var r=Oa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Ot(n,n.return,h)}}s&64&&Am(n),s&512&&ys(n,n.return);break;case 3:if(Vn(t,n),s&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{mh(t,e)}catch(h){Ot(n,n.return,h)}}break;case 27:e===null&&s&4&&Mm(n);case 26:case 5:Vn(t,n),e===null&&s&4&&jm(n),s&512&&ys(n,n.return);break;case 12:Vn(t,n);break;case 31:Vn(t,n),s&4&&Vm(t,n);break;case 13:Vn(t,n),s&4&&Om(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=kv.bind(null,n),eb(t,n))));break;case 22:if(s=n.memoizedState!==null||Dn,!s){e=e!==null&&e.memoizedState!==null||Wt,r=Dn;var u=Wt;Dn=s,(Wt=e)&&!u?On(t,n,(n.subtreeFlags&8772)!==0):Vn(t,n),Dn=r,Wt=u}break;case 30:break;default:Vn(t,n)}}function Dm(t){var e=t.alternate;e!==null&&(t.alternate=null,Dm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&cr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,xe=!1;function Rn(t,e,n){for(n=n.child;n!==null;)Rm(t,e,n),n=n.sibling}function Rm(t,e,n){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Gi,n)}catch{}switch(n.tag){case 26:Wt||fn(n,e),Rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||fn(n,e);var s=Yt,r=xe;la(n.type)&&(Yt=n.stateNode,xe=!1),Rn(t,e,n),js(n.stateNode),Yt=s,xe=r;break;case 5:Wt||fn(n,e);case 6:if(s=Yt,r=xe,Yt=null,Rn(t,e,n),Yt=s,xe=r,Yt!==null)if(xe)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(n.stateNode)}catch(u){Ot(n,e,u)}else try{Yt.removeChild(n.stateNode)}catch(u){Ot(n,e,u)}break;case 18:Yt!==null&&(xe?(t=Yt,A0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),zi(t)):A0(Yt,n.stateNode));break;case 4:s=Yt,r=xe,Yt=n.stateNode.containerInfo,xe=!0,Rn(t,e,n),Yt=s,xe=r;break;case 0:case 11:case 14:case 15:In(2,n,e),Wt||In(4,n,e),Rn(t,e,n);break;case 1:Wt||(fn(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Em(n,e,s)),Rn(t,e,n);break;case 21:Rn(t,e,n);break;case 22:Wt=(s=Wt)||n.memoizedState!==null,Rn(t,e,n),Wt=s;break;default:Rn(t,e,n)}}function Vm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{zi(t)}catch(n){Ot(e,e.return,n)}}}function Om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{zi(t)}catch(n){Ot(e,e.return,n)}}function Cv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zm),e;default:throw Error(o(435,t.tag))}}function Jl(t,e){var n=Cv(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var r=_v.bind(null,t,s);s.then(r,r)}})}function Se(t,e){var n=e.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=n[s],u=t,h=e,b=h;t:for(;b!==null;){switch(b.tag){case 27:if(la(b.type)){Yt=b.stateNode,xe=!1;break t}break;case 5:Yt=b.stateNode,xe=!1;break t;case 3:case 4:Yt=b.stateNode.containerInfo,xe=!0;break t}b=b.return}if(Yt===null)throw Error(o(160));Rm(u,h,r),Yt=null,xe=!1,u=r.alternate,u!==null&&(u.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)km(e,t),e=e.sibling}var nn=null;function km(t,e){var n=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Te(t),s&4&&(In(3,t,t.return),gs(3,t),In(5,t,t.return));break;case 1:Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),s&64&&Dn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var r=nn;if(Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=t.memoizedState,n===null)if(s===null)if(t.stateNode===null){t:{s=t.type,n=t.memoizedProps,r=r.ownerDocument||r;e:switch(s){case"title":u=r.getElementsByTagName("title")[0],(!u||u[Xi]||u[oe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=r.createElement(s),r.head.insertBefore(u,r.querySelector("head > title"))),fe(u,s,n),u[oe]=t,se(u),s=u;break t;case"link":var h=k0("link","href",r).get(s+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break e}}u=r.createElement(s),fe(u,s,n),r.head.appendChild(u);break;case"meta":if(h=k0("meta","content",r).get(s+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break e}}u=r.createElement(s),fe(u,s,n),r.head.appendChild(u);break;default:throw Error(o(468,s))}u[oe]=t,se(u),s=u}t.stateNode=s}else _0(r,t.type,t.stateNode);else t.stateNode=O0(r,s,t.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?_0(r,t.type,t.stateNode):O0(r,s,t.memoizedProps)):s===null&&t.stateNode!==null&&Du(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),n!==null&&s&4&&Du(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Te(t),s&512&&(Wt||n===null||fn(n,n.return)),t.flags&32){r=t.stateNode;try{Wa(r,"")}catch(at){Ot(t,t.return,at)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,Du(t,r,n!==null?n.memoizedProps:r)),s&1024&&(Ou=!0);break;case 6:if(Se(e,t),Te(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,n=t.stateNode;try{n.nodeValue=s}catch(at){Ot(t,t.return,at)}}break;case 3:if(co=null,r=nn,nn=ro(e.containerInfo),Se(e,t),nn=r,Te(t),s&4&&n!==null&&n.memoizedState.isDehydrated)try{zi(e.containerInfo)}catch(at){Ot(t,t.return,at)}Ou&&(Ou=!1,_m(t));break;case 4:s=nn,nn=ro(t.stateNode.containerInfo),Se(e,t),Te(t),nn=s;break;case 12:Se(e,t),Te(t);break;case 31:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Jl(t,s)));break;case 13:Se(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Pl=je()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Jl(t,s)));break;case 22:r=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,N=Dn,_=Wt;if(Dn=N||r,Wt=_||T,Se(e,t),Wt=_,Dn=N,Te(t),s&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(n===null||T||Dn||Wt||ka(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,r)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var G=T.memoizedProps.style,D=G!=null&&G.hasOwnProperty("display")?G.display:null;b.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(at){Ot(T,T.return,at)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=r?"":T.memoizedProps}catch(at){Ot(T,T.return,at)}}}else if(e.tag===18){if(n===null){T=e;try{var V=T.stateNode;r?E0(V,!0):E0(T.stateNode,!1)}catch(at){Ot(T,T.return,at)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Jl(t,n))));break;case 19:Se(e,t),Te(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Jl(t,s)));break;case 30:break;case 21:break;default:Se(e,t),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var n,s=t.return;s!==null;){if(Cm(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var r=n.stateNode,u=Ru(t);Kl(t,u,r);break;case 5:var h=n.stateNode;n.flags&32&&(Wa(h,""),n.flags&=-33);var b=Ru(t);Kl(t,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,N=Ru(t);Vu(t,N,T);break;default:throw Error(o(161))}}catch(_){Ot(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function _m(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;_m(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Vn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nm(t,e.alternate,e),e=e.sibling}function ka(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:In(4,e,e.return),ka(e);break;case 1:fn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Em(e,e.return,n),ka(e);break;case 27:js(e.stateNode);case 26:case 5:fn(e,e.return),ka(e);break;case 22:e.memoizedState===null&&ka(e);break;case 30:ka(e);break;default:ka(e)}t=t.sibling}}function On(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,r=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:On(r,u,n),gs(4,u);break;case 1:if(On(r,u,n),s=u,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){Ot(s,s.return,N)}if(s=u,r=s.updateQueue,r!==null){var b=s.stateNode;try{var T=r.shared.hiddenCallbacks;if(T!==null)for(r.shared.hiddenCallbacks=null,r=0;r<T.length;r++)hh(T[r],b)}catch(N){Ot(s,s.return,N)}}n&&h&64&&Am(u),ys(u,u.return);break;case 27:Mm(u);case 26:case 5:On(r,u,n),n&&s===null&&h&4&&jm(u),ys(u,u.return);break;case 12:On(r,u,n);break;case 31:On(r,u,n),n&&h&4&&Vm(r,u);break;case 13:On(r,u,n),n&&h&4&&Om(r,u);break;case 22:u.memoizedState===null&&On(r,u,n),ys(u,u.return);break;case 30:break;default:On(r,u,n)}e=e.sibling}}function ku(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&as(n))}function _u(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&as(t))}function an(t,e,n,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bm(t,e,n,s),e=e.sibling}function Bm(t,e,n,s){var r=e.flags;switch(e.tag){case 0:case 11:case 15:an(t,e,n,s),r&2048&&gs(9,e);break;case 1:an(t,e,n,s);break;case 3:an(t,e,n,s),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&as(t)));break;case 12:if(r&2048){an(t,e,n,s),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ot(e,e.return,T)}}else an(t,e,n,s);break;case 31:an(t,e,n,s);break;case 13:an(t,e,n,s);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?an(t,e,n,s):vs(t,e):u._visibility&2?an(t,e,n,s):(u._visibility|=2,vi(t,e,n,s,(e.subtreeFlags&10256)!==0||!1)),r&2048&&ku(h,e);break;case 24:an(t,e,n,s),r&2048&&_u(e.alternate,e);break;default:an(t,e,n,s)}}function vi(t,e,n,s,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,b=n,T=s,N=h.flags;switch(h.tag){case 0:case 11:case 15:vi(u,h,b,T,r),gs(8,h);break;case 23:break;case 22:var _=h.stateNode;h.memoizedState!==null?_._visibility&2?vi(u,h,b,T,r):vs(u,h):(_._visibility|=2,vi(u,h,b,T,r)),r&&N&2048&&ku(h.alternate,h);break;case 24:vi(u,h,b,T,r),r&&N&2048&&_u(h.alternate,h);break;default:vi(u,h,b,T,r)}e=e.sibling}}function vs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,s=e,r=s.flags;switch(s.tag){case 22:vs(n,s),r&2048&&ku(s.alternate,s);break;case 24:vs(n,s),r&2048&&_u(s.alternate,s);break;default:vs(n,s)}e=e.sibling}}var bs=8192;function bi(t,e,n){if(t.subtreeFlags&bs)for(t=t.child;t!==null;)Lm(t,e,n),t=t.sibling}function Lm(t,e,n){switch(t.tag){case 26:bi(t,e,n),t.flags&bs&&t.memoizedState!==null&&hb(n,nn,t.memoizedState,t.memoizedProps);break;case 5:bi(t,e,n);break;case 3:case 4:var s=nn;nn=ro(t.stateNode.containerInfo),bi(t,e,n),nn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=bs,bs=16777216,bi(t,e,n),bs=s):bi(t,e,n));break;default:bi(t,e,n)}}function Um(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function xs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];le=s,Gm(s,t)}Um(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hm(t),t=t.sibling}function Hm(t){switch(t.tag){case 0:case 11:case 15:xs(t),t.flags&2048&&In(9,t,t.return);break;case 3:xs(t);break;case 12:xs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fl(t)):xs(t);break;default:xs(t)}}function Fl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];le=s,Gm(s,t)}Um(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:In(8,e,e.return),Fl(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(e));break;default:Fl(e)}t=t.sibling}}function Gm(t,e){for(;le!==null;){var n=le;switch(n.tag){case 0:case 11:case 15:In(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:as(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,le=s;else t:for(n=t;le!==null;){s=le;var r=s.sibling,u=s.return;if(Dm(s),s===n){le=null;break t}if(r!==null){r.return=u,le=r;break t}le=u}}}var Mv={getCacheForType:function(t){var e=ue(Ft),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(Ft).controller.signal}},zv=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Lt=null,xt=null,Tt=0,Vt=0,Ve=null,ta=!1,xi=!1,Bu=!1,kn=0,Zt=0,ea=0,_a=0,Lu=0,Oe=0,Si=0,Ss=null,we=null,Uu=!1,Pl=0,qm=0,$l=1/0,Wl=null,na=null,ee=0,aa=null,Ti=null,_n=0,Hu=0,Gu=null,Ym=null,Ts=0,qu=null;function ke(){return(Dt&2)!==0&&Tt!==0?Tt&-Tt:R.T!==null?Ju():sd()}function Xm(){if(Oe===0)if((Tt&536870912)===0||jt){var t=ll;ll<<=1,(ll&3932160)===0&&(ll=262144),Oe=t}else Oe=536870912;return t=De.current,t!==null&&(t.flags|=32),Oe}function Ae(t,e,n){(t===Lt&&(Vt===2||Vt===9)||t.cancelPendingCommit!==null)&&(wi(t,0),ia(t,Tt,Oe,!1)),Yi(t,n),((Dt&2)===0||t!==Lt)&&(t===Lt&&((Dt&2)===0&&(_a|=n),Zt===4&&ia(t,Tt,Oe,!1)),dn(t))}function Zm(t,e,n){if((Dt&6)!==0)throw Error(o(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||qi(t,e),r=s?Rv(t,e):Xu(t,e,!0),u=s;do{if(r===0){xi&&!s&&ia(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!Nv(n)){r=Xu(t,e,!1),u=!1;continue}if(r===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var b=t;r=Ss;var T=b.current.memoizedState.isDehydrated;if(T&&(wi(b,h).flags|=256),h=Xu(b,h,!1),h!==2){if(Bu&&!T){b.errorRecoveryDisabledLanes|=u,_a|=u,r=4;break t}u=we,we=r,u!==null&&(we===null?we=u:we.push.apply(we,u))}r=h}if(u=!1,r!==2)continue}}if(r===1){wi(t,0),ia(t,e,0,!0);break}t:{switch(s=t,u=r,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:ia(s,e,Oe,!ta);break t;case 2:we=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(r=Pl+300-je(),10<r)){if(ia(s,e,Oe,!ta),rl(s,0,!0)!==0)break t;_n=e,s.timeoutHandle=T0(Qm.bind(null,s,n,we,Wl,Uu,e,Oe,_a,Si,ta,u,"Throttled",-0,0),r);break t}Qm(s,n,we,Wl,Uu,e,Oe,_a,Si,ta,u,null,-0,0)}}break}while(!0);dn(t)}function Qm(t,e,n,s,r,u,h,b,T,N,_,G,D,V){if(t.timeoutHandle=-1,G=e.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Lm(e,u,G);var at=(u&62914560)===u?Pl-je():(u&4194048)===u?qm-je():0;if(at=mb(G,at),at!==null){_n=u,t.cancelPendingCommit=at(t0.bind(null,t,e,u,n,s,r,h,b,T,_,G,null,D,V)),ia(t,u,h,!N);return}}t0(t,e,u,n,s,r,h,b,T)}function Nv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var r=n[s],u=r.getSnapshot;r=r.value;try{if(!ze(u(),r))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ia(t,e,n,s){e&=~Lu,e&=~_a,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var r=e;0<r;){var u=31-Me(r),h=1<<u;s[u]=-1,r&=~h}n!==0&&nd(t,n,e)}function Il(){return(Dt&6)===0?(ws(0),!1):!0}function Yu(){if(xt!==null){if(Vt===0)var t=xt.return;else t=xt,En=Ca=null,su(t),hi=null,ss=0,t=xt;for(;t!==null;)wm(t.alternate,t),t=t.return;xt=null}}function wi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Pv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),_n=0,Yu(),Lt=t,xt=n=wn(t.current,null),Tt=e,Vt=0,Ve=null,ta=!1,xi=qi(t,e),Bu=!1,Si=Oe=Lu=_a=ea=Zt=0,we=Ss=null,Uu=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var r=31-Me(s),u=1<<r;e|=t[r],s&=~u}return kn=e,xl(),n}function Km(t,e){ht=null,R.H=hs,e===di||e===Ml?(e=uh(),Vt=3):e===Kr?(e=uh(),Vt=4):Vt=e===Su?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ve=e,xt===null&&(Zt=1,ql(t,qe(e,t.current)))}function Jm(){var t=De.current;return t===null?!0:(Tt&4194048)===Tt?Qe===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Qe:!1}function Fm(){var t=R.H;return R.H=hs,t===null?hs:t}function Pm(){var t=R.A;return R.A=Mv,t}function to(){Zt=4,ta||(Tt&4194048)!==Tt&&De.current!==null||(xi=!0),(ea&134217727)===0&&(_a&134217727)===0||Lt===null||ia(Lt,Tt,Oe,!1)}function Xu(t,e,n){var s=Dt;Dt|=2;var r=Fm(),u=Pm();(Lt!==t||Tt!==e)&&(Wl=null,wi(t,e)),e=!1;var h=Zt;t:do try{if(Vt!==0&&xt!==null){var b=xt,T=Ve;switch(Vt){case 8:Yu(),h=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var N=Vt;if(Vt=0,Ve=null,Ai(t,b,T,N),n&&xi){h=0;break t}break;default:N=Vt,Vt=0,Ve=null,Ai(t,b,T,N)}}Dv(),h=Zt;break}catch(_){Km(t,_)}while(!0);return e&&t.shellSuspendCounter++,En=Ca=null,Dt=s,R.H=r,R.A=u,xt===null&&(Lt=null,Tt=0,xl()),h}function Dv(){for(;xt!==null;)$m(xt)}function Rv(t,e){var n=Dt;Dt|=2;var s=Fm(),r=Pm();Lt!==t||Tt!==e?(Wl=null,$l=je()+500,wi(t,e)):xi=qi(t,e);t:do try{if(Vt!==0&&xt!==null){e=xt;var u=Ve;e:switch(Vt){case 1:Vt=0,Ve=null,Ai(t,e,u,1);break;case 2:case 9:if(oh(u)){Vt=0,Ve=null,Wm(e);break}e=function(){Vt!==2&&Vt!==9||Lt!==t||(Vt=7),dn(t)},u.then(e,e);break t;case 3:Vt=7;break t;case 4:Vt=5;break t;case 7:oh(u)?(Vt=0,Ve=null,Wm(e)):(Vt=0,Ve=null,Ai(t,e,u,7));break;case 5:var h=null;switch(xt.tag){case 26:h=xt.memoizedState;case 5:case 27:var b=xt;if(h?B0(h):b.stateNode.complete){Vt=0,Ve=null;var T=b.sibling;if(T!==null)xt=T;else{var N=b.return;N!==null?(xt=N,eo(N)):xt=null}break e}}Vt=0,Ve=null,Ai(t,e,u,5);break;case 6:Vt=0,Ve=null,Ai(t,e,u,6);break;case 8:Yu(),Zt=6;break t;default:throw Error(o(462))}}Vv();break}catch(_){Km(t,_)}while(!0);return En=Ca=null,R.H=s,R.A=r,Dt=n,xt!==null?0:(Lt=null,Tt=0,xl(),Zt)}function Vv(){for(;xt!==null&&!n2();)$m(xt)}function $m(t){var e=Sm(t.alternate,t,kn);t.memoizedProps=t.pendingProps,e===null?eo(t):xt=e}function Wm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=pm(n,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=pm(n,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:su(e);default:wm(n,e),e=xt=Pd(e,kn),e=Sm(n,e,kn)}t.memoizedProps=t.pendingProps,e===null?eo(t):xt=e}function Ai(t,e,n,s){En=Ca=null,su(e),hi=null,ss=0;var r=e.return;try{if(Sv(t,r,e,n,Tt)){Zt=1,ql(t,qe(n,t.current)),xt=null;return}}catch(u){if(r!==null)throw xt=r,u;Zt=1,ql(t,qe(n,t.current)),xt=null;return}e.flags&32768?(jt||s===1?t=!0:xi||(Tt&536870912)!==0?t=!1:(ta=t=!0,(s===2||s===9||s===3||s===6)&&(s=De.current,s!==null&&s.tag===13&&(s.flags|=16384))),Im(e,t)):eo(e)}function eo(t){var e=t;do{if((e.flags&32768)!==0){Im(e,ta);return}t=e.return;var n=Av(e.alternate,e,kn);if(n!==null){xt=n;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Zt===0&&(Zt=5)}function Im(t,e){do{var n=Ev(t.alternate,t);if(n!==null){n.flags&=32767,xt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=n}while(t!==null);Zt=6,xt=null}function t0(t,e,n,s,r,u,h,b,T){t.cancelPendingCommit=null;do no();while(ee!==0);if((Dt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=Rr,d2(t,n,u,h,b,T),t===Lt&&(xt=Lt=null,Tt=0),Ti=e,aa=t,_n=n,Hu=u,Gu=r,Ym=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Bv(il,function(){return s0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=R.T,R.T=null,r=Q.p,Q.p=2,h=Dt,Dt|=4;try{jv(t,e,n)}finally{Dt=h,Q.p=r,R.T=s}}ee=1,e0(),n0(),a0()}}function e0(){if(ee===1){ee=0;var t=aa,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var s=Q.p;Q.p=2;var r=Dt;Dt|=4;try{km(e,t);var u=nc,h=Gd(t.containerInfo),b=u.focusedElem,T=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&Hd(b.ownerDocument.documentElement,b)){if(T!==null&&Cr(b)){var N=T.start,_=T.end;if(_===void 0&&(_=N),"selectionStart"in b)b.selectionStart=N,b.selectionEnd=Math.min(_,b.value.length);else{var G=b.ownerDocument||document,D=G&&G.defaultView||window;if(D.getSelection){var V=D.getSelection(),at=b.textContent.length,ut=Math.min(T.start,at),Bt=T.end===void 0?ut:Math.min(T.end,at);!V.extend&&ut>Bt&&(h=Bt,Bt=ut,ut=h);var C=Ud(b,ut),A=Ud(b,Bt);if(C&&A&&(V.rangeCount!==1||V.anchorNode!==C.node||V.anchorOffset!==C.offset||V.focusNode!==A.node||V.focusOffset!==A.offset)){var M=G.createRange();M.setStart(C.node,C.offset),V.removeAllRanges(),ut>Bt?(V.addRange(M),V.extend(A.node,A.offset)):(M.setEnd(A.node,A.offset),V.addRange(M))}}}}for(G=[],V=b;V=V.parentNode;)V.nodeType===1&&G.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<G.length;b++){var L=G[b];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}po=!!ec,nc=ec=null}finally{Dt=r,Q.p=s,R.T=n}}t.current=e,ee=2}}function n0(){if(ee===2){ee=0;var t=aa,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var s=Q.p;Q.p=2;var r=Dt;Dt|=4;try{Nm(t,e.alternate,e)}finally{Dt=r,Q.p=s,R.T=n}}ee=3}}function a0(){if(ee===4||ee===3){ee=0,a2();var t=aa,e=Ti,n=_n,s=Ym;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Ti=aa=null,i0(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(na=null),rr(n),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Gi,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=R.T,r=Q.p,Q.p=2,R.T=null;try{for(var u=t.onRecoverableError,h=0;h<s.length;h++){var b=s[h];u(b.value,{componentStack:b.stack})}}finally{R.T=e,Q.p=r}}(_n&3)!==0&&no(),dn(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===qu?Ts++:(Ts=0,qu=t):Ts=0,ws(0)}}function i0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,as(e)))}function no(){return e0(),n0(),a0(),s0()}function s0(){if(ee!==5)return!1;var t=aa,e=Hu;Hu=0;var n=rr(_n),s=R.T,r=Q.p;try{Q.p=32>n?32:n,R.T=null,n=Gu,Gu=null;var u=aa,h=_n;if(ee=0,Ti=aa=null,_n=0,(Dt&6)!==0)throw Error(o(331));var b=Dt;if(Dt|=4,Hm(u.current),Bm(u,u.current,h,n),Dt=b,ws(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Gi,u)}catch{}return!0}finally{Q.p=r,R.T=s,i0(t,e)}}function l0(t,e,n){e=qe(n,e),e=xu(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(Yi(t,2),dn(t))}function Ot(t,e,n){if(t.tag===3)l0(t,t,n);else for(;e!==null;){if(e.tag===3){l0(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(na===null||!na.has(s))){t=qe(n,t),n=om(2),s=Pn(e,n,2),s!==null&&(rm(n,s,e,t),Yi(s,2),dn(s));break}}e=e.return}}function Zu(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new zv;var r=new Set;s.set(e,r)}else r=s.get(e),r===void 0&&(r=new Set,s.set(e,r));r.has(n)||(Bu=!0,r.add(n),t=Ov.bind(null,t,e,n),e.then(t,t))}function Ov(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Lt===t&&(Tt&n)===n&&(Zt===4||Zt===3&&(Tt&62914560)===Tt&&300>je()-Pl?(Dt&2)===0&&wi(t,0):Lu|=n,Si===Tt&&(Si=0)),dn(t)}function o0(t,e){e===0&&(e=ed()),t=Aa(t,e),t!==null&&(Yi(t,e),dn(t))}function kv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),o0(t,n)}function _v(t,e){var n=0;switch(t.tag){case 31:case 13:var s=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(e),o0(t,n)}function Bv(t,e){return ir(t,e)}var ao=null,Ei=null,Qu=!1,io=!1,Ku=!1,sa=0;function dn(t){t!==Ei&&t.next===null&&(Ei===null?ao=Ei=t:Ei=Ei.next=t),io=!0,Qu||(Qu=!0,Uv())}function ws(t,e){if(!Ku&&io){Ku=!0;do for(var n=!1,s=ao;s!==null;){if(t!==0){var r=s.pendingLanes;if(r===0)var u=0;else{var h=s.suspendedLanes,b=s.pingedLanes;u=(1<<31-Me(42|t)+1)-1,u&=r&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,f0(s,u))}else u=Tt,u=rl(s,s===Lt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||qi(s,u)||(n=!0,f0(s,u));s=s.next}while(n);Ku=!1}}function Lv(){r0()}function r0(){io=Qu=!1;var t=0;sa!==0&&Fv()&&(t=sa);for(var e=je(),n=null,s=ao;s!==null;){var r=s.next,u=u0(s,e);u===0?(s.next=null,n===null?ao=r:n.next=r,r===null&&(Ei=n)):(n=s,(t!==0||(u&3)!==0)&&(io=!0)),s=r}ee!==0&&ee!==5||ws(t),sa!==0&&(sa=0)}function u0(t,e){for(var n=t.suspendedLanes,s=t.pingedLanes,r=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-Me(u),b=1<<h,T=r[h];T===-1?((b&n)===0||(b&s)!==0)&&(r[h]=f2(b,e)):T<=e&&(t.expiredLanes|=b),u&=~b}if(e=Lt,n=Tt,n=rl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(Vt===2||Vt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&sr(s),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||qi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(s!==null&&sr(s),rr(n)){case 2:case 8:n=If;break;case 32:n=il;break;case 268435456:n=td;break;default:n=il}return s=c0.bind(null,t),n=ir(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&sr(s),t.callbackPriority=2,t.callbackNode=null,2}function c0(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(no()&&t.callbackNode!==n)return null;var s=Tt;return s=rl(t,t===Lt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Zm(t,s,e),u0(t,je()),t.callbackNode!=null&&t.callbackNode===n?c0.bind(null,t):null)}function f0(t,e){if(no())return null;Zm(t,e,!0)}function Uv(){$v(function(){(Dt&6)!==0?ir(Wf,Lv):r0()})}function Ju(){if(sa===0){var t=ci;t===0&&(t=sl,sl<<=1,(sl&261888)===0&&(sl=256)),sa=t}return sa}function d0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:dl(""+t)}function h0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Hv(t,e,n,s,r){if(e==="submit"&&n&&n.stateNode===r){var u=d0((r[ve]||null).action),h=s.submitter;h&&(e=(e=h[ve]||null)?d0(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var b=new gl("action","action",null,s,r);t.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(sa!==0){var T=h?h0(r,h):new FormData(r);mu(n,{pending:!0,data:T,method:r.method,action:u},null,T)}}else typeof u=="function"&&(b.preventDefault(),T=h?h0(r,h):new FormData(r),mu(n,{pending:!0,data:T,method:r.method,action:u},u,T))},currentTarget:r}]})}}for(var Fu=0;Fu<Dr.length;Fu++){var Pu=Dr[Fu],Gv=Pu.toLowerCase(),qv=Pu[0].toUpperCase()+Pu.slice(1);en(Gv,"on"+qv)}en(Xd,"onAnimationEnd"),en(Zd,"onAnimationIteration"),en(Qd,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(iv,"onTransitionRun"),en(sv,"onTransitionStart"),en(lv,"onTransitionCancel"),en(Kd,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xa("onBeforeInput",["compositionend","keypress","textInput","paste"]),xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var As="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(As));function m0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var s=t[n],r=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var h=s.length-1;0<=h;h--){var b=s[h],T=b.instance,N=b.currentTarget;if(b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(_){bl(_)}r.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(b=s[h],T=b.instance,N=b.currentTarget,b=b.listener,T!==u&&r.isPropagationStopped())break t;u=b,r.currentTarget=N;try{u(r)}catch(_){bl(_)}r.currentTarget=null,u=T}}}}function St(t,e){var n=e[ur];n===void 0&&(n=e[ur]=new Set);var s=t+"__bubble";n.has(s)||(p0(e,t,2,!1),n.add(s))}function $u(t,e,n){var s=0;e&&(s|=4),p0(n,t,s,e)}var so="_reactListening"+Math.random().toString(36).slice(2);function Wu(t){if(!t[so]){t[so]=!0,rd.forEach(function(n){n!=="selectionchange"&&(Yv.has(n)||$u(n,!1,t),$u(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[so]||(e[so]=!0,$u("selectionchange",!1,e))}}function p0(t,e,n,s){switch(X0(e)){case 2:var r=yb;break;case 8:r=vb;break;default:r=hc}n=r.bind(null,e,n,t),r=void 0,!vr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),s?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Iu(t,e,n,s,r){var u=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var b=s.stateNode.containerInfo;if(b===r)break;if(h===4)for(h=s.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;b!==null;){if(h=Ka(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){s=u=h;continue t}b=b.parentNode}}s=s.return}xd(function(){var N=u,_=gr(n),G=[];t:{var D=Jd.get(t);if(D!==void 0){var V=gl,at=t;switch(t){case"keypress":if(ml(n)===0)break t;case"keydown":case"keyup":V=_2;break;case"focusin":at="focus",V=Tr;break;case"focusout":at="blur",V=Tr;break;case"beforeblur":case"afterblur":V=Tr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=wd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=U2;break;case Xd:case Zd:case Qd:V=C2;break;case Kd:V=G2;break;case"scroll":case"scrollend":V=T2;break;case"wheel":V=Y2;break;case"copy":case"cut":case"paste":V=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Ed;break;case"toggle":case"beforetoggle":V=Z2}var ut=(e&4)!==0,Bt=!ut&&(t==="scroll"||t==="scrollend"),C=ut?D!==null?D+"Capture":null:D;ut=[];for(var A=N,M;A!==null;){var L=A;if(M=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||M===null||C===null||(L=Qi(A,C),L!=null&&ut.push(Es(A,L,M))),Bt)break;A=A.return}0<ut.length&&(D=new V(D,at,null,n,_),G.push({event:D,listeners:ut}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",V=t==="mouseout"||t==="pointerout",D&&n!==pr&&(at=n.relatedTarget||n.fromElement)&&(Ka(at)||at[Qa]))break t;if((V||D)&&(D=_.window===_?_:(D=_.ownerDocument)?D.defaultView||D.parentWindow:window,V?(at=n.relatedTarget||n.toElement,V=N,at=at?Ka(at):null,at!==null&&(Bt=d(at),ut=at.tag,at!==Bt||ut!==5&&ut!==27&&ut!==6)&&(at=null)):(V=null,at=N),V!==at)){if(ut=wd,L="onMouseLeave",C="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(ut=Ed,L="onPointerLeave",C="onPointerEnter",A="pointer"),Bt=V==null?D:Zi(V),M=at==null?D:Zi(at),D=new ut(L,A+"leave",V,n,_),D.target=Bt,D.relatedTarget=M,L=null,Ka(_)===N&&(ut=new ut(C,A+"enter",at,n,_),ut.target=M,ut.relatedTarget=Bt,L=ut),Bt=L,V&&at)e:{for(ut=Xv,C=V,A=at,M=0,L=C;L;L=ut(L))M++;L=0;for(var ot=A;ot;ot=ut(ot))L++;for(;0<M-L;)C=ut(C),M--;for(;0<L-M;)A=ut(A),L--;for(;M--;){if(C===A||A!==null&&C===A.alternate){ut=C;break e}C=ut(C),A=ut(A)}ut=null}else ut=null;V!==null&&g0(G,D,V,ut,!1),at!==null&&Bt!==null&&g0(G,Bt,at,ut,!0)}}t:{if(D=N?Zi(N):window,V=D.nodeName&&D.nodeName.toLowerCase(),V==="select"||V==="input"&&D.type==="file")var Ct=Vd;else if(Dd(D))if(Od)Ct=ev;else{Ct=I2;var st=W2}else V=D.nodeName,!V||V.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?N&&mr(N.elementType)&&(Ct=Vd):Ct=tv;if(Ct&&(Ct=Ct(t,N))){Rd(G,Ct,n,_);break t}st&&st(t,D,N),t==="focusout"&&N&&D.type==="number"&&N.memoizedProps.value!=null&&hr(D,"number",D.value)}switch(st=N?Zi(N):window,t){case"focusin":(Dd(st)||st.contentEditable==="true")&&(ni=st,Mr=N,ts=null);break;case"focusout":ts=Mr=ni=null;break;case"mousedown":zr=!0;break;case"contextmenu":case"mouseup":case"dragend":zr=!1,qd(G,n,_);break;case"selectionchange":if(av)break;case"keydown":case"keyup":qd(G,n,_)}var mt;if(Ar)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else ei?zd(t,n)&&(wt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(wt="onCompositionStart");wt&&(jd&&n.locale!=="ko"&&(ei||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&ei&&(mt=Sd()):(Yn=_,br="value"in Yn?Yn.value:Yn.textContent,ei=!0)),st=lo(N,wt),0<st.length&&(wt=new Ad(wt,t,null,n,_),G.push({event:wt,listeners:st}),mt?wt.data=mt:(mt=Nd(n),mt!==null&&(wt.data=mt)))),(mt=K2?J2(t,n):F2(t,n))&&(wt=lo(N,"onBeforeInput"),0<wt.length&&(st=new Ad("onBeforeInput","beforeinput",null,n,_),G.push({event:st,listeners:wt}),st.data=mt)),Hv(G,t,N,n,_)}m0(G,e)})}function Es(t,e,n){return{instance:t,listener:e,currentTarget:n}}function lo(t,e){for(var n=e+"Capture",s=[];t!==null;){var r=t,u=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||u===null||(r=Qi(t,n),r!=null&&s.unshift(Es(t,r,u)),r=Qi(t,e),r!=null&&s.push(Es(t,r,u))),t.tag===3)return s;t=t.return}return[]}function Xv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function g0(t,e,n,s,r){for(var u=e._reactName,h=[];n!==null&&n!==s;){var b=n,T=b.alternate,N=b.stateNode;if(b=b.tag,T!==null&&T===s)break;b!==5&&b!==26&&b!==27||N===null||(T=N,r?(N=Qi(n,u),N!=null&&h.unshift(Es(n,N,T))):r||(N=Qi(n,u),N!=null&&h.push(Es(n,N,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var Zv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function y0(t){return(typeof t=="string"?t:""+t).replace(Zv,`
9
+ `).replace(Qv,"")}function v0(t,e){return e=y0(e),y0(t)===e}function _t(t,e,n,s,r,u){switch(n){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Wa(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Wa(t,""+s);break;case"className":cl(t,"class",s);break;case"tabIndex":cl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":cl(t,n,s);break;case"style":vd(t,s,u);break;case"data":if(e!=="object"){cl(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=dl(""+s),t.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&_t(t,e,"name",r.name,r,null),_t(t,e,"formEncType",r.formEncType,r,null),_t(t,e,"formMethod",r.formMethod,r,null),_t(t,e,"formTarget",r.formTarget,r,null)):(_t(t,e,"encType",r.encType,r,null),_t(t,e,"method",r.method,r,null),_t(t,e,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=dl(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=Sn);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}n=dl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""+s):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":s===!0?t.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,s):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(n,s):t.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(n):t.setAttribute(n,s);break;case"popover":St("beforetoggle",t),St("toggle",t),ul(t,"popover",s);break;case"xlinkActuate":xn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":xn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":xn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":xn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":xn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":xn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":xn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":xn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":xn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ul(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=x2.get(n)||n,ul(t,n,s))}}function tc(t,e,n,s,r,u){switch(n){case"style":vd(t,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(r.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof s=="string"?Wa(t,s):(typeof s=="number"||typeof s=="bigint")&&Wa(t,""+s);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ud.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),e=n.slice(2,r?n.length-7:void 0),u=t[ve]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,r),typeof s=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,s,r);break t}n in t?t[n]=s:s===!0?t.setAttribute(n,""):ul(t,n,s)}}}function fe(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",t),St("load",t);var s=!1,r=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:_t(t,e,u,h,n,null)}}r&&_t(t,e,"srcSet",n.srcSet,n,null),s&&_t(t,e,"src",n.src,n,null);return;case"input":St("invalid",t);var b=u=h=r=null,T=null,N=null;for(s in n)if(n.hasOwnProperty(s)){var _=n[s];if(_!=null)switch(s){case"name":r=_;break;case"type":h=_;break;case"checked":T=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":b=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,e));break;default:_t(t,e,s,_,n,null)}}md(t,u,b,T,N,h,r,!1);return;case"select":St("invalid",t),s=h=u=null;for(r in n)if(n.hasOwnProperty(r)&&(b=n[r],b!=null))switch(r){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":s=b;default:_t(t,e,r,b,n,null)}e=u,n=h,t.multiple=!!s,e!=null?$a(t,!!s,e,!1):n!=null&&$a(t,!!s,n,!0);return;case"textarea":St("invalid",t),u=r=s=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":s=b;break;case"defaultValue":r=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:_t(t,e,h,b,n,null)}gd(t,s,r,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(s=n[T],s!=null)&&(T==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":_t(t,e,T,s,n,null));return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(s=0;s<As.length;s++)St(As[s],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(s=n[N],s!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:_t(t,e,N,s,n,null)}return;default:if(mr(e)){for(_ in n)n.hasOwnProperty(_)&&(s=n[_],s!==void 0&&tc(t,e,_,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&_t(t,e,b,s,n,null))}function Kv(t,e,n,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,u=null,h=null,b=null,T=null,N=null,_=null;for(V in n){var G=n[V];if(n.hasOwnProperty(V)&&G!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=G;default:s.hasOwnProperty(V)||_t(t,e,V,null,s,G)}}for(var D in s){var V=s[D];if(G=n[D],s.hasOwnProperty(D)&&(V!=null||G!=null))switch(D){case"type":u=V;break;case"name":r=V;break;case"checked":N=V;break;case"defaultChecked":_=V;break;case"value":h=V;break;case"defaultValue":b=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,e));break;default:V!==G&&_t(t,e,D,V,s,G)}}dr(t,h,b,T,N,_,u,r);return;case"select":V=h=b=D=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":V=T;default:s.hasOwnProperty(u)||_t(t,e,u,null,s,T)}for(r in s)if(u=s[r],T=n[r],s.hasOwnProperty(r)&&(u!=null||T!=null))switch(r){case"value":D=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==T&&_t(t,e,r,u,s,T)}e=b,n=h,s=V,D!=null?$a(t,!!n,D,!1):!!s!=!!n&&(e!=null?$a(t,!!n,e,!0):$a(t,!!n,n?[]:"",!1));return;case"textarea":V=D=null;for(b in n)if(r=n[b],n.hasOwnProperty(b)&&r!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:_t(t,e,b,null,s,r)}for(h in s)if(r=s[h],u=n[h],s.hasOwnProperty(h)&&(r!=null||u!=null))switch(h){case"value":D=r;break;case"defaultValue":V=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==u&&_t(t,e,h,r,s,u)}pd(t,D,V);return;case"option":for(var at in n)D=n[at],n.hasOwnProperty(at)&&D!=null&&!s.hasOwnProperty(at)&&(at==="selected"?t.selected=!1:_t(t,e,at,null,s,D));for(T in s)D=s[T],V=n[T],s.hasOwnProperty(T)&&D!==V&&(D!=null||V!=null)&&(T==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":_t(t,e,T,D,s,V));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in n)D=n[ut],n.hasOwnProperty(ut)&&D!=null&&!s.hasOwnProperty(ut)&&_t(t,e,ut,null,s,D);for(N in s)if(D=s[N],V=n[N],s.hasOwnProperty(N)&&D!==V&&(D!=null||V!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:_t(t,e,N,D,s,V)}return;default:if(mr(e)){for(var Bt in n)D=n[Bt],n.hasOwnProperty(Bt)&&D!==void 0&&!s.hasOwnProperty(Bt)&&tc(t,e,Bt,void 0,s,D);for(_ in s)D=s[_],V=n[_],!s.hasOwnProperty(_)||D===V||D===void 0&&V===void 0||tc(t,e,_,D,s,V);return}}for(var C in n)D=n[C],n.hasOwnProperty(C)&&D!=null&&!s.hasOwnProperty(C)&&_t(t,e,C,null,s,D);for(G in s)D=s[G],V=n[G],!s.hasOwnProperty(G)||D===V||D==null&&V==null||_t(t,e,G,D,s,V)}function b0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var r=n[s],u=r.transferSize,h=r.initiatorType,b=r.duration;if(u&&b&&b0(h)){for(h=0,b=r.responseEnd,s+=1;s<n.length;s++){var T=n[s],N=T.startTime;if(N>b)break;var _=T.transferSize,G=T.initiatorType;_&&b0(G)&&(T=T.responseEnd,h+=_*(T<b?1:(b-N)/(T-N)))}if(--s,e+=8*(u+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ec=null,nc=null;function oo(t){return t.nodeType===9?t:t.ownerDocument}function x0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function S0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ac(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ic=null;function Fv(){var t=window.event;return t&&t.type==="popstate"?t===ic?!1:(ic=t,!0):(ic=null,!1)}var T0=typeof setTimeout=="function"?setTimeout:void 0,Pv=typeof clearTimeout=="function"?clearTimeout:void 0,w0=typeof Promise=="function"?Promise:void 0,$v=typeof queueMicrotask=="function"?queueMicrotask:typeof w0<"u"?function(t){return w0.resolve(null).then(t).catch(Wv)}:T0;function Wv(t){setTimeout(function(){throw t})}function la(t){return t==="head"}function A0(t,e){var n=e,s=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(s===0){t.removeChild(r),zi(e);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")js(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,js(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[Xi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&js(t.ownerDocument.body);n=r}while(n);zi(e)}function E0(t,e){var n=t;t=0;do{var s=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=s}while(n)}function sc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sc(n),cr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Iv(t,e,n,s){for(;t.nodeType===1;){var r=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Xi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ke(t.nextSibling),t===null)break}return null}function tb(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ke(t.nextSibling),t===null))return null;return t}function j0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ke(t.nextSibling),t===null))return null;return t}function lc(t){return t.data==="$?"||t.data==="$~"}function oc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function eb(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var s=function(){e(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Ke(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var rc=null;function C0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ke(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function M0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function z0(t,e,n){switch(e=oo(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function js(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);cr(t)}var Je=new Map,N0=new Set;function ro(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Bn=Q.d;Q.d={f:nb,r:ab,D:ib,C:sb,L:lb,m:ob,X:ub,S:rb,M:cb};function nb(){var t=Bn.f(),e=Il();return t||e}function ab(t){var e=Ja(t);e!==null&&e.tag===5&&e.type==="form"?Kh(e):Bn.r(t)}var ji=typeof document>"u"?null:document;function D0(t,e,n){var s=ji;if(s&&typeof e=="string"&&e){var r=He(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),N0.has(r)||(N0.add(r),t={rel:t,crossOrigin:n,href:e},s.querySelector(r)===null&&(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function ib(t){Bn.D(t),D0("dns-prefetch",t,null)}function sb(t,e){Bn.C(t,e),D0("preconnect",t,e)}function lb(t,e,n){Bn.L(t,e,n);var s=ji;if(s&&t&&e){var r='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+He(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+He(n.imageSizes)+'"]')):r+='[href="'+He(t)+'"]';var u=r;switch(e){case"style":u=Ci(t);break;case"script":u=Mi(t)}Je.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Je.set(u,t),s.querySelector(r)!==null||e==="style"&&s.querySelector(Cs(u))||e==="script"&&s.querySelector(Ms(u))||(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function ob(t,e){Bn.m(t,e);var n=ji;if(n&&t){var s=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+He(s)+'"][href="'+He(t)+'"]',u=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Mi(t)}if(!Je.has(u)&&(t=x({rel:"modulepreload",href:t},e),Je.set(u,t),n.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ms(u)))return}s=n.createElement("link"),fe(s,"link",t),se(s),n.head.appendChild(s)}}}function rb(t,e,n){Bn.S(t,e,n);var s=ji;if(s&&t){var r=Fa(s).hoistableStyles,u=Ci(t);e=e||"default";var h=r.get(u);if(!h){var b={loading:0,preload:null};if(h=s.querySelector(Cs(u)))b.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Je.get(u))&&uc(t,n);var T=h=s.createElement("link");se(T),fe(T,"link",t),T._p=new Promise(function(N,_){T.onload=N,T.onerror=_}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,uo(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:b},r.set(u,h)}}}function ub(t,e){Bn.X(t,e);var n=ji;if(n&&t){var s=Fa(n).hoistableScripts,r=Mi(t),u=s.get(r);u||(u=n.querySelector(Ms(r)),u||(t=x({src:t,async:!0},e),(e=Je.get(r))&&cc(t,e),u=n.createElement("script"),se(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function cb(t,e){Bn.M(t,e);var n=ji;if(n&&t){var s=Fa(n).hoistableScripts,r=Mi(t),u=s.get(r);u||(u=n.querySelector(Ms(r)),u||(t=x({src:t,async:!0,type:"module"},e),(e=Je.get(r))&&cc(t,e),u=n.createElement("script"),se(u),fe(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(r,u))}}function R0(t,e,n,s){var r=(r=rt.current)?ro(r):null;if(!r)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Ci(n.href),n=Fa(r).hoistableStyles,s=n.get(e),s||(s={type:"style",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ci(n.href);var u=Fa(r).hoistableStyles,h=u.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=r.querySelector(Cs(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Je.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Je.set(t,n),u||fb(r,t,n,h.state))),e&&s===null)throw Error(o(528,""));return h}if(e&&s!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Mi(n),n=Fa(r).hoistableScripts,s=n.get(e),s||(s={type:"script",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ci(t){return'href="'+He(t)+'"'}function Cs(t){return'link[rel="stylesheet"]['+t+"]"}function V0(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function fb(t,e,n,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),fe(e,"link",n),se(e),t.head.appendChild(e))}function Mi(t){return'[src="'+He(t)+'"]'}function Ms(t){return"script[async]"+t}function O0(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+He(n.href)+'"]');if(s)return e.instance=s,se(s),s;var r=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),se(s),fe(s,"style",r),uo(s,n.precedence,t),e.instance=s;case"stylesheet":r=Ci(n.href);var u=t.querySelector(Cs(r));if(u)return e.state.loading|=4,e.instance=u,se(u),u;s=V0(n),(r=Je.get(r))&&uc(s,r),u=(t.ownerDocument||t).createElement("link"),se(u);var h=u;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),fe(u,"link",s),e.state.loading|=4,uo(u,n.precedence,t),e.instance=u;case"script":return u=Mi(n.src),(r=t.querySelector(Ms(u)))?(e.instance=r,se(r),r):(s=n,(r=Je.get(u))&&(s=x({},n),cc(s,r)),t=t.ownerDocument||t,r=t.createElement("script"),se(r),fe(r,"link",s),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,uo(s,n.precedence,t));return e.instance}function uo(t,e,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,u=r,h=0;h<s.length;h++){var b=s[h];if(b.dataset.precedence===e)u=b;else if(u!==r)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function uc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function cc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var co=null;function k0(t,e,n){if(co===null){var s=new Map,r=co=new Map;r.set(n,s)}else r=co,s=r.get(n),s||(s=new Map,r.set(n,s));if(s.has(t))return s;for(s.set(t,null),n=n.getElementsByTagName(t),r=0;r<n.length;r++){var u=n[r];if(!(u[Xi]||u[oe]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var b=s.get(h);b?b.push(u):s.set(h,[u])}}return s}function _0(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function db(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function B0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function hb(t,e,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Ci(s.href),u=e.querySelector(Cs(r));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=fo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,se(u);return}u=e.ownerDocument||e,s=V0(s),(r=Je.get(r))&&uc(s,r),u=u.createElement("link"),se(u);var h=u;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),fe(u,"link",s),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=fo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var fc=0;function mb(t,e){return t.stylesheets&&t.count===0&&mo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&mo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&fc===0&&(fc=62500*Jv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&mo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>fc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ho=null;function mo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ho=new Map,e.forEach(pb,t),ho=null,fo.call(t))}function pb(t,e){if(!(e.state.loading&4)){var n=ho.get(t);if(n)var s=n.get(null);else{n=new Map,ho.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<r.length;u++){var h=r[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),s=h)}s&&n.set(null,s)}r=e.instance,h=r.getAttribute("data-precedence"),u=n.get(h)||s,u===s&&n.set(null,r),n.set(h,r),this.count++,s=fo.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),u?u.parentNode.insertBefore(r,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var zs={$$typeof:q,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function gb(t,e,n,s,r,u,h,b,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.hiddenUpdates=lr(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function L0(t,e,n,s,r,u,h,b,T,N,_,G){return t=new gb(t,e,n,h,T,N,_,G,b),e=1,u===!0&&(e|=24),u=Ne(3,null,null,e),t.current=u,u.stateNode=t,e=Xr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:e},Jr(u),t}function U0(t){return t?(t=si,t):si}function H0(t,e,n,s,r,u){r=U0(r),s.context===null?s.context=r:s.pendingContext=r,s=Fn(e),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Pn(t,s,e),n!==null&&(Ae(n,t,e),os(n,t,e))}function G0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function dc(t,e){G0(t,e),(t=t.alternate)&&G0(t,e)}function q0(t){if(t.tag===13||t.tag===31){var e=Aa(t,67108864);e!==null&&Ae(e,t,67108864),dc(t,67108864)}}function Y0(t){if(t.tag===13||t.tag===31){var e=ke();e=or(e);var n=Aa(t,e);n!==null&&Ae(n,t,e),dc(t,e)}}var po=!0;function yb(t,e,n,s){var r=R.T;R.T=null;var u=Q.p;try{Q.p=2,hc(t,e,n,s)}finally{Q.p=u,R.T=r}}function vb(t,e,n,s){var r=R.T;R.T=null;var u=Q.p;try{Q.p=8,hc(t,e,n,s)}finally{Q.p=u,R.T=r}}function hc(t,e,n,s){if(po){var r=mc(s);if(r===null)Iu(t,e,s,go,n),Z0(t,s);else if(xb(r,t,e,n,s))s.stopPropagation();else if(Z0(t,s),e&4&&-1<bb.indexOf(t)){for(;r!==null;){var u=Ja(r);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ba(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-Me(h);b.entanglements[1]|=T,h&=~T}dn(u),(Dt&6)===0&&($l=je()+500,ws(0))}}break;case 31:case 13:b=Aa(u,2),b!==null&&Ae(b,u,2),Il(),dc(u,2)}if(u=mc(s),u===null&&Iu(t,e,s,go,n),u===r)break;r=u}r!==null&&s.stopPropagation()}else Iu(t,e,s,null,n)}}function mc(t){return t=gr(t),pc(t)}var go=null;function pc(t){if(go=null,t=Ka(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return go=t,null}function X0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(i2()){case Wf:return 2;case If:return 8;case il:case s2:return 32;case td:return 268435456;default:return 32}default:return 32}}var gc=!1,oa=null,ra=null,ua=null,Ns=new Map,Ds=new Map,ca=[],bb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Z0(t,e){switch(t){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":Ns.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ds.delete(e.pointerId)}}function Rs(t,e,n,s,r,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[r]},e!==null&&(e=Ja(e),e!==null&&q0(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function xb(t,e,n,s,r){switch(e){case"focusin":return oa=Rs(oa,t,e,n,s,r),!0;case"dragenter":return ra=Rs(ra,t,e,n,s,r),!0;case"mouseover":return ua=Rs(ua,t,e,n,s,r),!0;case"pointerover":var u=r.pointerId;return Ns.set(u,Rs(Ns.get(u)||null,t,e,n,s,r)),!0;case"gotpointercapture":return u=r.pointerId,Ds.set(u,Rs(Ds.get(u)||null,t,e,n,s,r)),!0}return!1}function Q0(t){var e=Ka(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,ld(t.priority,function(){Y0(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,ld(t.priority,function(){Y0(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function yo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=mc(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);pr=s,n.target.dispatchEvent(s),pr=null}else return e=Ja(n),e!==null&&q0(e),t.blockedOn=n,!1;e.shift()}return!0}function K0(t,e,n){yo(t)&&n.delete(e)}function Sb(){gc=!1,oa!==null&&yo(oa)&&(oa=null),ra!==null&&yo(ra)&&(ra=null),ua!==null&&yo(ua)&&(ua=null),Ns.forEach(K0),Ds.forEach(K0)}function vo(t,e){t.blockedOn===e&&(t.blockedOn=null,gc||(gc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Sb)))}var bo=null;function J0(t){bo!==t&&(bo=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){bo===t&&(bo=null);for(var e=0;e<t.length;e+=3){var n=t[e],s=t[e+1],r=t[e+2];if(typeof s!="function"){if(pc(s||n)===null)continue;break}var u=Ja(n);u!==null&&(t.splice(e,3),e-=3,mu(u,{pending:!0,data:r,method:n.method,action:s},s,r))}}))}function zi(t){function e(T){return vo(T,t)}oa!==null&&vo(oa,t),ra!==null&&vo(ra,t),ua!==null&&vo(ua,t),Ns.forEach(e),Ds.forEach(e);for(var n=0;n<ca.length;n++){var s=ca[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<ca.length&&(n=ca[0],n.blockedOn===null);)Q0(n),n.blockedOn===null&&ca.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var r=n[s],u=n[s+1],h=r[ve]||null;if(typeof u=="function")h||J0(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(r=u,h=u[ve]||null)b=h.formAction;else if(pc(r)!==null)continue}else b=h.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),J0(n)}}}function F0(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function yc(t){this._internalRoot=t}xo.prototype.render=yc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,s=ke();H0(n,s,t,e,null,null)},xo.prototype.unmount=yc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;H0(t.current,2,null,t,null,null),Il(),e[Qa]=null}};function xo(t){this._internalRoot=t}xo.prototype.unstable_scheduleHydration=function(t){if(t){var e=sd();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ca.length&&e!==0&&e<ca[n].priority;n++);ca.splice(n,0,t),n===0&&Q0(t)}};var P0=i.version;if(P0!=="19.2.6")throw Error(o(527,P0,"19.2.6"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Tb={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Gi=So.inject(Tb),Ce=So}catch{}}return Os.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,s="",r=am,u=im,h=sm;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=L0(t,1,!1,null,null,n,s,null,r,u,h,F0),t[Qa]=e.current,Wu(t),new yc(e)},Os.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var s=!1,r="",u=am,h=im,b=sm,T=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=L0(t,1,!0,e,n??null,s,r,T,u,h,b,F0),e.context=U0(null),n=e.current,s=ke(),s=or(s),r=Fn(s),r.callback=null,Pn(n,r,s),n=s,e.current.lanes=n,Yi(e,n),dn(e),t[Qa]=e.current,Wu(t),new xo(e)},Os.version="19.2.6",Os}var l1;function Db(){if(l1)return xc.exports;l1=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),xc.exports=Nb(),xc.exports}var Gp=Db();const qp=(...a)=>a.filter((i,l,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===l).join(" ").trim();const Rb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Vb=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,o)=>o?o.toUpperCase():l.toLowerCase());const o1=a=>{const i=Vb(a);return i.charAt(0).toUpperCase()+i.slice(1)};var Ac={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ob=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},kb=O.createContext({}),_b=()=>O.useContext(kb),Bb=O.forwardRef(({color:a,size:i,strokeWidth:l,absoluteStrokeWidth:o,className:c="",children:d,iconNode:f,...p},y)=>{const{size:m=24,strokeWidth:v=2,absoluteStrokeWidth:x=!1,color:S="currentColor",className:j=""}=_b()??{},E=o??x?Number(l??v)*24/Number(i??m):l??v;return O.createElement("svg",{ref:y,...Ac,width:i??m??Ac.width,height:i??m??Ac.height,stroke:a??S,strokeWidth:E,className:qp("lucide",j,c),...!d&&!Ob(p)&&{"aria-hidden":"true"},...p},[...f.map(([z,k])=>O.createElement(z,k)),...Array.isArray(d)?d:[d]])});const bt=(a,i)=>{const l=O.forwardRef(({className:o,...c},d)=>O.createElement(Bb,{ref:d,iconNode:i,className:qp(`lucide-${Rb(o1(a))}`,`lucide-${a}`,o),...c}));return l.displayName=o1(a),l};const Lb=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Ub=bt("arrow-down",Lb);const Hb=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Gb=bt("arrow-up",Hb);const qb=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],r1=bt("box",qb);const Yb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Xb=bt("check",Yb);const Zb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ws=bt("chevron-down",Zb);const Qb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Kb=bt("chevron-right",Qb);const Jb=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Fb=bt("database",Jb);const Pb=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$b=bt("earth",Pb);const Wb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ib=bt("external-link",Wb);const t3=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],e3=bt("file-code-corner",t3);const n3=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],a3=bt("file-text",n3);const i3=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],s3=bt("file",i3);const l3=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],o3=bt("flask-conical",l3);const r3=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],u3=bt("folder-plus",r3);const c3=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],xf=bt("folder",c3);const f3=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Uo=bt("git-branch",f3);const d3=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 9v12",key:"1sc30k"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v3",key:"1jb6z3"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],h3=bt("git-pull-request-create",d3);const m3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],p3=bt("image",m3);const g3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yp=bt("loader-circle",g3);const y3=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],v3=bt("lock-keyhole",y3);const b3=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],x3=bt("network",b3);const S3=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],T3=bt("palette",S3);const w3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],A3=bt("panel-left-close",w3);const E3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],j3=bt("panel-left-open",E3);const C3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],M3=bt("panel-left",C3);const z3=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],N3=bt("pencil",z3);const D3=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],R3=bt("play",D3);const V3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qc=bt("plus",V3);const O3=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],u1=bt("radio",O3);const k3=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Xp=bt("refresh-cw",k3);const _3=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],B3=bt("rotate-ccw",_3);const L3=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],U3=bt("save",L3);const H3=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],G3=bt("search",H3);const q3=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Y3=bt("server",q3);const X3=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Z3=bt("settings-2",X3);const Q3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],K3=bt("square",Q3);const J3=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Zp=bt("terminal",J3);const F3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Po=bt("x",F3),P3="/assets/nomoreide-logo-B2E14b65.png";async function $3(){return Is("/api/dashboard")}async function W3(a){const i=await fetch(`/api/git/diff?file=${encodeURIComponent(a)}`);if(!i.ok){const l=await i.json().catch(()=>({error:i.statusText}));throw new Error(l.error||"Unable to load diff")}return i.text()}async function I3(a){return Is(`/api/fs/directories?path=${encodeURIComponent(a)}`)}async function c1(a){return(await Is(`/api/services/${encodeURIComponent(a)}/logs`)).logs}async function on(a,i){const l=new URLSearchParams;for(const[o,c]of Object.entries(i))c!==void 0&&String(c).trim()&&l.set(o,String(c));await Is(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function tx(a){return ex("/api/services/test",a)}async function ex(a,i){const l=new URLSearchParams;for(const[o,c]of Object.entries(i))c!==void 0&&String(c).trim()&&l.set(o,String(c));return Is(a,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:l})}async function Is(a,i){const l=await fetch(a,i),o=await l.json().catch(()=>{});if(!l.ok)throw new Error(o?.error||l.statusText);return o}function Qp(a){var i,l,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(i=0;i<c;i++)a[i]&&(l=Qp(a[i]))&&(o&&(o+=" "),o+=l)}else for(l in a)a[l]&&(o&&(o+=" "),o+=l);return o}function Qs(){for(var a,i,l=0,o="",c=arguments.length;l<c;l++)(a=arguments[l])&&(i=Qp(a))&&(o&&(o+=" "),o+=i);return o}const f1=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,d1=Qs,Kp=(a,i)=>l=>{var o;if(i?.variants==null)return d1(a,l?.class,l?.className);const{variants:c,defaultVariants:d}=i,f=Object.keys(c).map(m=>{const v=l?.[m],x=d?.[m];if(v===null)return null;const S=f1(v)||f1(x);return c[m][S]}),p=l&&Object.entries(l).reduce((m,v)=>{let[x,S]=v;return S===void 0||(m[x]=S),m},{}),y=i==null||(o=i.compoundVariants)===null||o===void 0?void 0:o.reduce((m,v)=>{let{class:x,className:S,...j}=v;return Object.entries(j).every(E=>{let[z,k]=E;return Array.isArray(k)?k.includes({...d,...p}[z]):{...d,...p}[z]===k})?[...m,x,S]:m},[]);return d1(a,f,y,l?.class,l?.className)},nx=(a,i)=>{const l=new Array(a.length+i.length);for(let o=0;o<a.length;o++)l[o]=a[o];for(let o=0;o<i.length;o++)l[a.length+o]=i[o];return l},ax=(a,i)=>({classGroupId:a,validator:i}),Jp=(a=new Map,i=null,l)=>({nextPart:a,validators:i,classGroupId:l}),Ho="-",h1=[],ix="arbitrary..",sx=a=>{const i=ox(a),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return lx(f);const p=f.split(Ho),y=p[0]===""&&p.length>1?1:0;return Fp(p,y,i)},getConflictingClassGroupIds:(f,p)=>{if(p){const y=o[f],m=l[f];return y?m?nx(m,y):y:m||h1}return l[f]||h1}}},Fp=(a,i,l)=>{if(a.length-i===0)return l.classGroupId;const c=a[i],d=l.nextPart.get(c);if(d){const m=Fp(a,i+1,d);if(m)return m}const f=l.validators;if(f===null)return;const p=i===0?a.join(Ho):a.slice(i).join(Ho),y=f.length;for(let m=0;m<y;m++){const v=f[m];if(v.validator(p))return v.classGroupId}},lx=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=a.slice(1,-1),l=i.indexOf(":"),o=i.slice(0,l);return o?ix+o:void 0})(),ox=a=>{const{theme:i,classGroups:l}=a;return rx(l,i)},rx=(a,i)=>{const l=Jp();for(const o in a){const c=a[o];Sf(c,l,o,i)}return l},Sf=(a,i,l,o)=>{const c=a.length;for(let d=0;d<c;d++){const f=a[d];ux(f,i,l,o)}},ux=(a,i,l,o)=>{if(typeof a=="string"){cx(a,i,l);return}if(typeof a=="function"){fx(a,i,l,o);return}dx(a,i,l,o)},cx=(a,i,l)=>{const o=a===""?i:Pp(i,a);o.classGroupId=l},fx=(a,i,l,o)=>{if(hx(a)){Sf(a(o),i,l,o);return}i.validators===null&&(i.validators=[]),i.validators.push(ax(l,a))},dx=(a,i,l,o)=>{const c=Object.entries(a),d=c.length;for(let f=0;f<d;f++){const[p,y]=c[f];Sf(y,Pp(i,p),l,o)}},Pp=(a,i)=>{let l=a;const o=i.split(Ho),c=o.length;for(let d=0;d<c;d++){const f=o[d];let p=l.nextPart.get(f);p||(p=Jp(),l.nextPart.set(f,p)),l=p}return l},hx=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,mx=a=>{if(a<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),o=Object.create(null);const c=(d,f)=>{l[d]=f,i++,i>a&&(i=0,o=l,l=Object.create(null))};return{get(d){let f=l[d];if(f!==void 0)return f;if((f=o[d])!==void 0)return c(d,f),f},set(d,f){d in l?l[d]=f:c(d,f)}}},Kc="!",m1=":",px=[],p1=(a,i,l,o,c)=>({modifiers:a,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:o,isExternal:c}),gx=a=>{const{prefix:i,experimentalParseClassName:l}=a;let o=c=>{const d=[];let f=0,p=0,y=0,m;const v=c.length;for(let z=0;z<v;z++){const k=c[z];if(f===0&&p===0){if(k===m1){d.push(c.slice(y,z)),y=z+1;continue}if(k==="/"){m=z;continue}}k==="["?f++:k==="]"?f--:k==="("?p++:k===")"&&p--}const x=d.length===0?c:c.slice(y);let S=x,j=!1;x.endsWith(Kc)?(S=x.slice(0,-1),j=!0):x.startsWith(Kc)&&(S=x.slice(1),j=!0);const E=m&&m>y?m-y:void 0;return p1(d,j,S,E)};if(i){const c=i+m1,d=o;o=f=>f.startsWith(c)?d(f.slice(c.length)):p1(px,!1,f,void 0,!0)}if(l){const c=o;o=d=>l({className:d,parseClassName:c})}return o},yx=a=>{const i=new Map;return a.orderSensitiveModifiers.forEach((l,o)=>{i.set(l,1e6+o)}),l=>{const o=[];let c=[];for(let d=0;d<l.length;d++){const f=l[d],p=f[0]==="[",y=i.has(f);p||y?(c.length>0&&(c.sort(),o.push(...c),c=[]),o.push(f)):c.push(f)}return c.length>0&&(c.sort(),o.push(...c)),o}},vx=a=>({cache:mx(a.cacheSize),parseClassName:gx(a),sortModifiers:yx(a),postfixLookupClassGroupIds:bx(a),...sx(a)}),bx=a=>{const i=Object.create(null),l=a.postfixLookupClassGroups;if(l)for(let o=0;o<l.length;o++)i[l[o]]=!0;return i},xx=/\s+/,Sx=(a,i)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d,postfixLookupClassGroupIds:f}=i,p=[],y=a.trim().split(xx);let m="";for(let v=y.length-1;v>=0;v-=1){const x=y[v],{isExternal:S,modifiers:j,hasImportantModifier:E,baseClassName:z,maybePostfixModifierPosition:k}=l(x);if(S){m=x+(m.length>0?" "+m:m);continue}let U=!!k,B;if(U){const $=z.substring(0,k);B=o($);const Y=B&&f[B]?o(z):void 0;Y&&Y!==B&&(B=Y,U=!1)}else B=o(z);if(!B){if(!U){m=x+(m.length>0?" "+m:m);continue}if(B=o(z),!B){m=x+(m.length>0?" "+m:m);continue}U=!1}const q=j.length===0?"":j.length===1?j[0]:d(j).join(":"),X=E?q+Kc:q,Z=X+B;if(p.indexOf(Z)>-1)continue;p.push(Z);const nt=c(B,U);for(let $=0;$<nt.length;++$){const Y=nt[$];p.push(X+Y)}m=x+(m.length>0?" "+m:m)}return m},Tx=(...a)=>{let i=0,l,o,c="";for(;i<a.length;)(l=a[i++])&&(o=$p(l))&&(c&&(c+=" "),c+=o);return c},$p=a=>{if(typeof a=="string")return a;let i,l="";for(let o=0;o<a.length;o++)a[o]&&(i=$p(a[o]))&&(l&&(l+=" "),l+=i);return l},wx=(a,...i)=>{let l,o,c,d;const f=y=>{const m=i.reduce((v,x)=>x(v),a());return l=vx(m),o=l.cache.get,c=l.cache.set,d=p,p(y)},p=y=>{const m=o(y);if(m)return m;const v=Sx(y,l);return c(y,v),v};return d=f,(...y)=>d(Tx(...y))},Ax=[],ne=a=>{const i=l=>l[a]||Ax;return i.isThemeGetter=!0,i},Wp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ip=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ex=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,da=a=>Ex.test(a),yt=a=>!!a&&!Number.isNaN(Number(a)),hn=a=>!!a&&Number.isInteger(Number(a)),Ec=a=>a.endsWith("%")&&yt(a.slice(0,-1)),Ln=a=>jx.test(a),tg=()=>!0,Dx=a=>Cx.test(a)&&!Mx.test(a),Tf=()=>!1,Rx=a=>zx.test(a),Vx=a=>Nx.test(a),Ox=a=>!W(a)&&!et(a),kx=a=>a.startsWith("@container")&&(a[10]==="/"&&a[11]!==void 0||a[11]==="s"&&a[16]!==void 0&&a.startsWith("-size/",10)||a[11]==="n"&&a[18]!==void 0&&a.startsWith("-normal/",10)),_x=a=>ya(a,ag,Tf),W=a=>Wp.test(a),Ba=a=>ya(a,ig,Dx),g1=a=>ya(a,Xx,yt),Bx=a=>ya(a,lg,tg),Lx=a=>ya(a,sg,Tf),y1=a=>ya(a,eg,Tf),Ux=a=>ya(a,ng,Vx),To=a=>ya(a,og,Rx),et=a=>Ip.test(a),ks=a=>Xa(a,ig),Hx=a=>Xa(a,sg),v1=a=>Xa(a,eg),Gx=a=>Xa(a,ag),qx=a=>Xa(a,ng),wo=a=>Xa(a,og,!0),Yx=a=>Xa(a,lg,!0),ya=(a,i,l)=>{const o=Wp.exec(a);return o?o[1]?i(o[1]):l(o[2]):!1},Xa=(a,i,l=!1)=>{const o=Ip.exec(a);return o?o[1]?i(o[1]):l:!1},eg=a=>a==="position"||a==="percentage",ng=a=>a==="image"||a==="url",ag=a=>a==="length"||a==="size"||a==="bg-size",ig=a=>a==="length",Xx=a=>a==="number",sg=a=>a==="family-name",lg=a=>a==="number"||a==="weight",og=a=>a==="shadow",Zx=()=>{const a=ne("color"),i=ne("font"),l=ne("text"),o=ne("font-weight"),c=ne("tracking"),d=ne("leading"),f=ne("breakpoint"),p=ne("container"),y=ne("spacing"),m=ne("radius"),v=ne("shadow"),x=ne("inset-shadow"),S=ne("text-shadow"),j=ne("drop-shadow"),E=ne("blur"),z=ne("perspective"),k=ne("aspect"),U=ne("ease"),B=ne("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...X(),et,W],nt=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],Y=()=>[et,W,y],K=()=>[da,"full","auto",...Y()],I=()=>[hn,"none","subgrid",et,W],ft=()=>["auto",{span:["full",hn,et,W]},hn,et,W],pt=()=>[hn,"auto",et,W],Rt=()=>["auto","min","max","fr",et,W],At=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Nt=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...Y()],Q=()=>[da,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],F=()=>[da,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ct=()=>[da,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],J=()=>[a,et,W],w=()=>[...X(),v1,y1,{position:[et,W]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],P=()=>["auto","cover","contain",Gx,_x,{size:[et,W]}],tt=()=>[Ec,ks,Ba],lt=()=>["","none","full",m,et,W],rt=()=>["",yt,ks,Ba],Et=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],gt=()=>[yt,Ec,v1,y1],Un=()=>["","none",E,et,W],bn=()=>["none",yt,et,W],Hn=()=>["none",yt,et,W],Za=()=>[yt,et,W],Le=()=>[da,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[tg],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[Ox],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",yt],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",da,W,et,k]}],container:["container"],"container-type":[{"@container":["","normal","size",et,W]}],"container-named":[kx],columns:[{columns:[yt,W,et,p]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:nt()}],"overflow-x":[{"overflow-x":nt()}],"overflow-y":[{"overflow-y":nt()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[hn,"auto",et,W]}],basis:[{basis:[da,"full","auto",p,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[yt,da,"auto","initial","none",W]}],grow:[{grow:["",yt,et,W]}],shrink:[{shrink:["",yt,et,W]}],order:[{order:[hn,"first","last","none",et,W]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:ft()}],"col-start":[{"col-start":pt()}],"col-end":[{"col-end":pt()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:ft()}],"row-start":[{"row-start":pt()}],"row-end":[{"row-end":pt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Rt()}],"auto-rows":[{"auto-rows":Rt()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...At(),"normal"]}],"justify-items":[{"justify-items":[...Nt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Nt()]}],"align-content":[{content:["normal",...At()]}],"align-items":[{items:[...Nt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Nt(),{baseline:["","last"]}]}],"place-content":[{"place-content":At()}],"place-items":[{"place-items":[...Nt(),"baseline"]}],"place-self":[{"place-self":["auto",...Nt()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...ct()]}],"min-block-size":[{"min-block":["auto",...ct()]}],"max-block-size":[{"max-block":["none",...ct()]}],w:[{w:[p,"screen",...Q()]}],"min-w":[{"min-w":[p,"screen","none",...Q()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[f]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",l,ks,Ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Yx,Bx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ec,W]}],"font-family":[{font:[Hx,Lx,i]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,et,W]}],"line-clamp":[{"line-clamp":[yt,"none",et,g1]}],leading:[{leading:[d,...Y()]}],"list-image":[{"list-image":["none",et,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",et,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Et(),"wavy"]}],"text-decoration-thickness":[{decoration:[yt,"from-font","auto",et,Ba]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[yt,"auto",et,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[hn,et,W]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",et,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",et,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hn,et,W],radial:["",et,W],conic:[hn,et,W]},qx,Ux]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:tt()}],"gradient-via-pos":[{via:tt()}],"gradient-to-pos":[{to:tt()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:lt()}],"rounded-s":[{"rounded-s":lt()}],"rounded-e":[{"rounded-e":lt()}],"rounded-t":[{"rounded-t":lt()}],"rounded-r":[{"rounded-r":lt()}],"rounded-b":[{"rounded-b":lt()}],"rounded-l":[{"rounded-l":lt()}],"rounded-ss":[{"rounded-ss":lt()}],"rounded-se":[{"rounded-se":lt()}],"rounded-ee":[{"rounded-ee":lt()}],"rounded-es":[{"rounded-es":lt()}],"rounded-tl":[{"rounded-tl":lt()}],"rounded-tr":[{"rounded-tr":lt()}],"rounded-br":[{"rounded-br":lt()}],"rounded-bl":[{"rounded-bl":lt()}],"border-w":[{border:rt()}],"border-w-x":[{"border-x":rt()}],"border-w-y":[{"border-y":rt()}],"border-w-s":[{"border-s":rt()}],"border-w-e":[{"border-e":rt()}],"border-w-bs":[{"border-bs":rt()}],"border-w-be":[{"border-be":rt()}],"border-w-t":[{"border-t":rt()}],"border-w-r":[{"border-r":rt()}],"border-w-b":[{"border-b":rt()}],"border-w-l":[{"border-l":rt()}],"divide-x":[{"divide-x":rt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":rt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Et(),"hidden","none"]}],"divide-style":[{divide:[...Et(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...Et(),"none","hidden"]}],"outline-offset":[{"outline-offset":[yt,et,W]}],"outline-w":[{outline:["",yt,ks,Ba]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",v,wo,To]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",x,wo,To]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[yt,Ba]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",S,wo,To]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[yt,et,W]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[yt]}],"mask-image-linear-from-pos":[{"mask-linear-from":gt()}],"mask-image-linear-to-pos":[{"mask-linear-to":gt()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":gt()}],"mask-image-t-to-pos":[{"mask-t-to":gt()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":gt()}],"mask-image-r-to-pos":[{"mask-r-to":gt()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":gt()}],"mask-image-b-to-pos":[{"mask-b-to":gt()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":gt()}],"mask-image-l-to-pos":[{"mask-l-to":gt()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":gt()}],"mask-image-x-to-pos":[{"mask-x-to":gt()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":gt()}],"mask-image-y-to-pos":[{"mask-y-to":gt()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[et,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":gt()}],"mask-image-radial-to-pos":[{"mask-radial-to":gt()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":X()}],"mask-image-conic-pos":[{"mask-conic":[yt]}],"mask-image-conic-from-pos":[{"mask-conic-from":gt()}],"mask-image-conic-to-pos":[{"mask-conic-to":gt()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",et,W]}],filter:[{filter:["","none",et,W]}],blur:[{blur:Un()}],brightness:[{brightness:[yt,et,W]}],contrast:[{contrast:[yt,et,W]}],"drop-shadow":[{"drop-shadow":["","none",j,wo,To]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",yt,et,W]}],"hue-rotate":[{"hue-rotate":[yt,et,W]}],invert:[{invert:["",yt,et,W]}],saturate:[{saturate:[yt,et,W]}],sepia:[{sepia:["",yt,et,W]}],"backdrop-filter":[{"backdrop-filter":["","none",et,W]}],"backdrop-blur":[{"backdrop-blur":Un()}],"backdrop-brightness":[{"backdrop-brightness":[yt,et,W]}],"backdrop-contrast":[{"backdrop-contrast":[yt,et,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",yt,et,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[yt,et,W]}],"backdrop-invert":[{"backdrop-invert":["",yt,et,W]}],"backdrop-opacity":[{"backdrop-opacity":[yt,et,W]}],"backdrop-saturate":[{"backdrop-saturate":[yt,et,W]}],"backdrop-sepia":[{"backdrop-sepia":["",yt,et,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",et,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[yt,"initial",et,W]}],ease:[{ease:["linear","initial",U,et,W]}],delay:[{delay:[yt,et,W]}],animate:[{animate:["none",B,et,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,et,W]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:bn()}],"rotate-x":[{"rotate-x":bn()}],"rotate-y":[{"rotate-y":bn()}],"rotate-z":[{"rotate-z":bn()}],scale:[{scale:Hn()}],"scale-x":[{"scale-x":Hn()}],"scale-y":[{"scale-y":Hn()}],"scale-z":[{"scale-z":Hn()}],"scale-3d":["scale-3d"],skew:[{skew:Za()}],"skew-x":[{"skew-x":Za()}],"skew-y":[{"skew-y":Za()}],transform:[{transform:[et,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],zoom:[{zoom:[hn,et,W]}],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",et,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":J()}],"scrollbar-track-color":[{"scrollbar-track":J()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",et,W]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[yt,ks,Ba,g1]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qx=wx(Zx);function vt(...a){return Qx(Qs(a))}const Kx=Kp("inline-flex h-9 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent px-3 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border-border bg-background hover:bg-muted",ghost:"hover:bg-muted",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},size:{default:"h-9 px-3",sm:"h-8 px-2.5 text-xs",icon:"size-9 p-0"}},defaultVariants:{variant:"default",size:"default"}});function zt({className:a,variant:i,size:l,...o}){return g.jsx("button",{className:vt(Kx({variant:i,size:l,className:a})),...o})}const rg=O.createContext({});function Jx(a){const i=O.useRef(null);return i.current===null&&(i.current=a()),i.current}const Fx=typeof window<"u",Px=Fx?O.useLayoutEffect:O.useEffect,wf=O.createContext(null);function Af(a,i){a.indexOf(i)===-1&&a.push(i)}function Go(a,i){const l=a.indexOf(i);l>-1&&a.splice(l,1)}const vn=(a,i,l)=>l>i?i:l<a?a:l;let Ef=()=>{};const pa={},ug=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function cg(a){return typeof a=="object"&&a!==null}const fg=a=>/^0[^.\s]+$/u.test(a);function dg(a){let i;return()=>(i===void 0&&(i=a()),i)}const Pe=a=>a,$x=(a,i)=>l=>i(a(l)),tl=(...a)=>a.reduce($x),Ks=(a,i,l)=>{const o=i-a;return o===0?1:(l-a)/o};class jf{constructor(){this.subscriptions=[]}add(i){return Af(this.subscriptions,i),()=>Go(this.subscriptions,i)}notify(i,l,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,l,o);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,l,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _e=a=>a*1e3,Fe=a=>a/1e3;function hg(a,i){return i?a*(1e3/i):0}const mg=(a,i,l)=>(((1-3*l+3*i)*a+(3*l-6*i))*a+3*i)*a,Wx=1e-7,Ix=12;function t5(a,i,l,o,c){let d,f,p=0;do f=i+(l-i)/2,d=mg(f,o,c)-a,d>0?l=f:i=f;while(Math.abs(d)>Wx&&++p<Ix);return f}function el(a,i,l,o){if(a===i&&l===o)return Pe;const c=d=>t5(d,0,1,a,l);return d=>d===0||d===1?d:mg(c(d),i,o)}const pg=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,gg=a=>i=>1-a(1-i),yg=el(.33,1.53,.69,.99),Cf=gg(yg),vg=pg(Cf),bg=a=>a>=1?1:(a*=2)<1?.5*Cf(a):.5*(2-Math.pow(2,-10*(a-1))),Mf=a=>1-Math.sin(Math.acos(a)),xg=gg(Mf),Sg=pg(Mf),e5=el(.42,0,1,1),n5=el(0,0,.58,1),Tg=el(.42,0,.58,1),a5=a=>Array.isArray(a)&&typeof a[0]!="number",wg=a=>Array.isArray(a)&&typeof a[0]=="number",i5={linear:Pe,easeIn:e5,easeInOut:Tg,easeOut:n5,circIn:Mf,circInOut:Sg,circOut:xg,backIn:Cf,backInOut:vg,backOut:yg,anticipate:bg},s5=a=>typeof a=="string",b1=a=>{if(wg(a)){Ef(a.length===4);const[i,l,o,c]=a;return el(i,l,o,c)}else if(s5(a))return i5[a];return a},Ao=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function l5(a,i){let l=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function y(v){f.has(v)&&(m.schedule(v),a()),v(p)}const m={schedule:(v,x=!1,S=!1)=>{const E=S&&c?l:o;return x&&f.add(v),E.add(v),v},cancel:v=>{o.delete(v),f.delete(v)},process:v=>{if(p=v,c){d=!0;return}c=!0;const x=l;l=o,o=x,l.forEach(y),l.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const o5=40;function Ag(a,i){let l=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>l=!0,f=Ao.reduce((q,X)=>(q[X]=l5(d),q),{}),{setup:p,read:y,resolveKeyframes:m,preUpdate:v,update:x,preRender:S,render:j,postRender:E}=f,z=()=>{const q=pa.useManualTiming,X=q?c.timestamp:performance.now();l=!1,q||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,o5),1)),c.timestamp=X,c.isProcessing=!0,p.process(c),y.process(c),m.process(c),v.process(c),x.process(c),S.process(c),j.process(c),E.process(c),c.isProcessing=!1,l&&i&&(o=!1,a(z))},k=()=>{l=!0,o=!0,c.isProcessing||a(z)};return{schedule:Ao.reduce((q,X)=>{const Z=f[X];return q[X]=(nt,$=!1,Y=!1)=>(l||k(),Z.schedule(nt,$,Y)),q},{}),cancel:q=>{for(let X=0;X<Ao.length;X++)f[Ao[X]].cancel(q)},state:c,steps:f}}const{schedule:Ut,cancel:ga,state:de,steps:jc}=Ag(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let No;function r5(){No=void 0}const ge={now:()=>(No===void 0&&ge.set(de.isProcessing||pa.useManualTiming?de.timestamp:performance.now()),No),set:a=>{No=a,queueMicrotask(r5)}},Eg=a=>i=>typeof i=="string"&&i.startsWith(a),jg=Eg("--"),u5=Eg("var(--"),zf=a=>u5(a)?c5.test(a.split("/*")[0].trim()):!1,c5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function x1(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const Bi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Js={...Bi,transform:a=>vn(0,1,a)},Eo={...Bi,default:1},Ls=a=>Math.round(a*1e5)/1e5,Nf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function f5(a){return a==null}const d5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Df=(a,i)=>l=>!!(typeof l=="string"&&d5.test(l)&&l.startsWith(a)||i&&!f5(l)&&Object.prototype.hasOwnProperty.call(l,i)),Cg=(a,i,l)=>o=>{if(typeof o!="string")return o;const[c,d,f,p]=o.match(Nf);return{[a]:parseFloat(c),[i]:parseFloat(d),[l]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},h5=a=>vn(0,255,a),Cc={...Bi,transform:a=>Math.round(h5(a))},Ha={test:Df("rgb","red"),parse:Cg("red","green","blue"),transform:({red:a,green:i,blue:l,alpha:o=1})=>"rgba("+Cc.transform(a)+", "+Cc.transform(i)+", "+Cc.transform(l)+", "+Ls(Js.transform(o))+")"};function m5(a){let i="",l="",o="",c="";return a.length>5?(i=a.substring(1,3),l=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),l=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,l+=l,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Jc={test:Df("#"),parse:m5,transform:Ha.transform},nl=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),ha=nl("deg"),yn=nl("%"),it=nl("px"),p5=nl("vh"),g5=nl("vw"),S1={...yn,parse:a=>yn.parse(a)/100,transform:a=>yn.transform(a*100)},Ri={test:Df("hsl","hue"),parse:Cg("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:l,alpha:o=1})=>"hsla("+Math.round(a)+", "+yn.transform(Ls(i))+", "+yn.transform(Ls(l))+", "+Ls(Js.transform(o))+")"},It={test:a=>Ha.test(a)||Jc.test(a)||Ri.test(a),parse:a=>Ha.test(a)?Ha.parse(a):Ri.test(a)?Ri.parse(a):Jc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?Ha.transform(a):Ri.transform(a),getAnimatableNone:a=>{const i=It.parse(a);return i.alpha=0,It.transform(i)}},y5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v5(a){return isNaN(a)&&typeof a=="string"&&(a.match(Nf)?.length||0)+(a.match(y5)?.length||0)>0}const Mg="number",zg="color",b5="var",x5="var(",T1="${}",S5=/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 ki(a){const i=a.toString(),l=[],o={color:[],number:[],var:[]},c=[];let d=0;const p=i.replace(S5,y=>(It.test(y)?(o.color.push(d),c.push(zg),l.push(It.parse(y))):y.startsWith(x5)?(o.var.push(d),c.push(b5),l.push(y)):(o.number.push(d),c.push(Mg),l.push(parseFloat(y))),++d,T1)).split(T1);return{values:l,split:p,indexes:o,types:c}}function T5(a){return ki(a).values}function Ng({split:a,types:i}){const l=a.length;return o=>{let c="";for(let d=0;d<l;d++)if(c+=a[d],o[d]!==void 0){const f=i[d];f===Mg?c+=Ls(o[d]):f===zg?c+=It.transform(o[d]):c+=o[d]}return c}}function w5(a){return Ng(ki(a))}const A5=a=>typeof a=="number"?0:It.test(a)?It.getAnimatableNone(a):a,E5=(a,i)=>typeof a=="number"?i?.trim().endsWith("/")?a:0:A5(a);function j5(a){const i=ki(a);return Ng(i)(i.values.map((o,c)=>E5(o,i.split[c])))}const rn={test:v5,parse:T5,createTransformer:w5,getAnimatableNone:j5};function Mc(a,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(i-a)*6*l:l<1/2?i:l<2/3?a+(i-a)*(2/3-l)*6:a}function C5({hue:a,saturation:i,lightness:l,alpha:o}){a/=360,i/=100,l/=100;let c=0,d=0,f=0;if(!i)c=d=f=l;else{const p=l<.5?l*(1+i):l+i-l*i,y=2*l-p;c=Mc(y,p,a+1/3),d=Mc(y,p,a),f=Mc(y,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function qo(a,i){return l=>l>0?i:a}const qt=(a,i,l)=>a+(i-a)*l,zc=(a,i,l)=>{const o=a*a,c=l*(i*i-o)+o;return c<0?0:Math.sqrt(c)},M5=[Jc,Ha,Ri],z5=a=>M5.find(i=>i.test(a));function w1(a){const i=z5(a);if(!i)return!1;let l=i.parse(a);return i===Ri&&(l=C5(l)),l}const A1=(a,i)=>{const l=w1(a),o=w1(i);if(!l||!o)return qo(a,i);const c={...l};return d=>(c.red=zc(l.red,o.red,d),c.green=zc(l.green,o.green,d),c.blue=zc(l.blue,o.blue,d),c.alpha=qt(l.alpha,o.alpha,d),Ha.transform(c))},Fc=new Set(["none","hidden"]);function N5(a,i){return Fc.has(a)?l=>l<=0?a:i:l=>l>=1?i:a}function D5(a,i){return l=>qt(a,i,l)}function Rf(a){return typeof a=="number"?D5:typeof a=="string"?zf(a)?qo:It.test(a)?A1:O5:Array.isArray(a)?Dg:typeof a=="object"?It.test(a)?A1:R5:qo}function Dg(a,i){const l=[...a],o=l.length,c=a.map((d,f)=>Rf(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)l[f]=c[f](d);return l}}function R5(a,i){const l={...a,...i},o={};for(const c in l)a[c]!==void 0&&i[c]!==void 0&&(o[c]=Rf(a[c])(a[c],i[c]));return c=>{for(const d in o)l[d]=o[d](c);return l}}function V5(a,i){const l=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=a.indexes[d][o[d]],p=a.values[f]??0;l[c]=p,o[d]++}return l}const O5=(a,i)=>{const l=rn.createTransformer(i),o=ki(a),c=ki(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Fc.has(a)&&!c.values.length||Fc.has(i)&&!o.values.length?N5(a,i):tl(Dg(V5(o,c),c.values),l):qo(a,i)};function Rg(a,i,l){return typeof a=="number"&&typeof i=="number"&&typeof l=="number"?qt(a,i,l):Rf(a)(a,i)}const k5=a=>{const i=({timestamp:l})=>a(l);return{start:(l=!0)=>Ut.update(i,l),stop:()=>ga(i),now:()=>de.isProcessing?de.timestamp:ge.now()}},Vg=(a,i,l=10)=>{let o="";const c=Math.max(Math.round(i/l),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Yo=2e4;function Vf(a){let i=0;const l=50;let o=a.next(i);for(;!o.done&&i<Yo;)i+=l,o=a.next(i);return i>=Yo?1/0:i}function _5(a,i=100,l){const o=l({...a,keyframes:[0,i]}),c=Math.min(Vf(o),Yo);return{type:"keyframes",ease:d=>o.next(c*d).value/i,duration:Fe(c)}}const Qt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Pc(a,i){return a*Math.sqrt(1-i*i)}const B5=12;function L5(a,i,l){let o=l;for(let c=1;c<B5;c++)o=o-a(o)/i(o);return o}const Nc=.001;function U5({duration:a=Qt.duration,bounce:i=Qt.bounce,velocity:l=Qt.velocity,mass:o=Qt.mass}){let c,d,f=1-i;f=vn(Qt.minDamping,Qt.maxDamping,f),a=vn(Qt.minDuration,Qt.maxDuration,Fe(a)),f<1?(c=m=>{const v=m*f,x=v*a,S=v-l,j=Pc(m,f),E=Math.exp(-x);return Nc-S/j*E},d=m=>{const x=m*f*a,S=x*l+l,j=Math.pow(f,2)*Math.pow(m,2)*a,E=Math.exp(-x),z=Pc(Math.pow(m,2),f);return(-c(m)+Nc>0?-1:1)*((S-j)*E)/z}):(c=m=>{const v=Math.exp(-m*a),x=(m-l)*a+1;return-Nc+v*x},d=m=>{const v=Math.exp(-m*a),x=(l-m)*(a*a);return v*x});const p=5/a,y=L5(c,d,p);if(a=_e(a),isNaN(y))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:a};{const m=Math.pow(y,2)*o;return{stiffness:m,damping:f*2*Math.sqrt(o*m),duration:a}}}const H5=["duration","bounce"],G5=["stiffness","damping","mass"];function E1(a,i){return i.some(l=>a[l]!==void 0)}function q5(a){let i={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...a};if(!E1(a,G5)&&E1(a,H5))if(i.velocity=0,a.visualDuration){const l=a.visualDuration,o=2*Math.PI/(l*1.2),c=o*o,d=2*vn(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Qt.mass,stiffness:c,damping:d}}else{const l=U5({...a,velocity:0});i={...i,...l,mass:Qt.mass},i.isResolvedFromDuration=!0}return i}function Xo(a=Qt.visualDuration,i=Qt.bounce){const l=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=l;const d=l.keyframes[0],f=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:y,damping:m,mass:v,duration:x,velocity:S,isResolvedFromDuration:j}=q5({...l,velocity:-Fe(l.velocity||0)}),E=S||0,z=m/(2*Math.sqrt(y*v)),k=f-d,U=Fe(Math.sqrt(y/v)),B=Math.abs(k)<5;o||(o=B?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=B?Qt.restDelta.granular:Qt.restDelta.default);let q,X,Z,nt,$,Y;if(z<1)Z=Pc(U,z),nt=(E+z*U*k)/Z,q=I=>{const ft=Math.exp(-z*U*I);return f-ft*(nt*Math.sin(Z*I)+k*Math.cos(Z*I))},$=z*U*nt+k*Z,Y=z*U*k-nt*Z,X=I=>Math.exp(-z*U*I)*($*Math.sin(Z*I)+Y*Math.cos(Z*I));else if(z===1){q=ft=>f-Math.exp(-U*ft)*(k+(E+U*k)*ft);const I=E+U*k;X=ft=>Math.exp(-U*ft)*(U*I*ft-E)}else{const I=U*Math.sqrt(z*z-1);q=At=>{const Nt=Math.exp(-z*U*At),R=Math.min(I*At,300);return f-Nt*((E+z*U*k)*Math.sinh(R)+I*k*Math.cosh(R))/I};const ft=(E+z*U*k)/I,pt=z*U*ft-k*I,Rt=z*U*k-ft*I;X=At=>{const Nt=Math.exp(-z*U*At),R=Math.min(I*At,300);return Nt*(pt*Math.sinh(R)+Rt*Math.cosh(R))}}const K={calculatedDuration:j&&x||null,velocity:I=>_e(X(I)),next:I=>{if(!j&&z<1){const pt=Math.exp(-z*U*I),Rt=Math.sin(Z*I),At=Math.cos(Z*I),Nt=f-pt*(nt*Rt+k*At),R=_e(pt*($*Rt+Y*At));return p.done=Math.abs(R)<=o&&Math.abs(f-Nt)<=c,p.value=p.done?f:Nt,p}const ft=q(I);if(j)p.done=I>=x;else{const pt=_e(X(I));p.done=Math.abs(pt)<=o&&Math.abs(f-ft)<=c}return p.value=p.done?f:ft,p},toString:()=>{const I=Math.min(Vf(K),Yo),ft=Vg(pt=>K.next(I*pt).value,I,30);return I+"ms "+ft},toTransition:()=>{}};return K}Xo.applyToOptions=a=>{const i=_5(a,100,Xo);return a.ease=i.ease,a.duration=_e(i.duration),a.type="keyframes",a};const Y5=5;function Og(a,i,l){const o=Math.max(i-Y5,0);return hg(l-a(o),i-o)}function $c({keyframes:a,velocity:i=0,power:l=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:y,restDelta:m=.5,restSpeed:v}){const x=a[0],S={done:!1,value:x},j=Y=>p!==void 0&&Y<p||y!==void 0&&Y>y,E=Y=>p===void 0?y:y===void 0||Math.abs(p-Y)<Math.abs(y-Y)?p:y;let z=l*i;const k=x+z,U=f===void 0?k:f(k);U!==k&&(z=U-x);const B=Y=>-z*Math.exp(-Y/o),q=Y=>U+B(Y),X=Y=>{const K=B(Y),I=q(Y);S.done=Math.abs(K)<=m,S.value=S.done?U:I};let Z,nt;const $=Y=>{j(S.value)&&(Z=Y,nt=Xo({keyframes:[S.value,E(S.value)],velocity:Og(q,Y,S.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return $(0),{calculatedDuration:null,next:Y=>{let K=!1;return!nt&&Z===void 0&&(K=!0,X(Y),$(Y)),Z!==void 0&&Y>=Z?nt.next(Y-Z):(!K&&X(Y),S)}}}function X5(a,i,l){const o=[],c=l||pa.mix||Rg,d=a.length-1;for(let f=0;f<d;f++){let p=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||Pe:i;p=tl(y,p)}o.push(p)}return o}function Z5(a,i,{clamp:l=!0,ease:o,mixer:c}={}){const d=a.length;if(Ef(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const p=X5(i,o,c),y=p.length,m=v=>{if(f&&v<a[0])return i[0];let x=0;if(y>1)for(;x<a.length-2&&!(v<a[x+1]);x++);const S=Ks(a[x],a[x+1],v);return p[x](S)};return l?v=>m(vn(a[0],a[d-1],v)):m}function Q5(a,i){const l=a[a.length-1];for(let o=1;o<=i;o++){const c=Ks(0,i,o);a.push(qt(l,1,c))}}function K5(a){const i=[0];return Q5(i,a.length-1),i}function J5(a,i){return a.map(l=>l*i)}function F5(a,i){return a.map(()=>i||Tg).splice(0,a.length-1)}function Us({duration:a=300,keyframes:i,times:l,ease:o="easeInOut"}){const c=a5(o)?o.map(b1):b1(o),d={done:!1,value:i[0]},f=J5(l&&l.length===i.length?l:K5(i),a),p=Z5(f,i,{ease:Array.isArray(c)?c:F5(i,c)});return{calculatedDuration:a,next:y=>(d.value=p(y),d.done=y>=a,d)}}const P5=a=>a!==null;function $o(a,{repeat:i,repeatType:l="loop"},o,c=1){const d=a.filter(P5),p=c<0||i&&l!=="loop"&&i%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const $5={decay:$c,inertia:$c,tween:Us,keyframes:Us,spring:Xo};function kg(a){typeof a.type=="string"&&(a.type=$5[a.type])}class Of{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const W5=a=>a/100;class Zo extends Of{constructor(i){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:l}=this.options;l&&l.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;kg(i);const{type:l=Us,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:p}=i;const y=l||Us;y!==Us&&typeof p[0]!="number"&&(this.mixKeyframes=tl(W5,Rg(p[0],p[1])),p=[0,100]);const m=y({...i,keyframes:p});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...p].reverse(),velocity:-f})),m.calculatedDuration===null&&(m.calculatedDuration=Vf(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:x,repeatType:S,repeatDelay:j,type:E,onUpdate:z,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const U=this.currentTime-m*(this.playbackSpeed>=0?1:-1),B=this.playbackSpeed>=0?U<0:U>c;this.currentTime=Math.max(U,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let q=this.currentTime,X=o;if(x){const Y=Math.min(this.currentTime,c)/p;let K=Math.floor(Y),I=Y%1;!I&&Y>=1&&(I=1),I===1&&K--,K=Math.min(K,x+1),K%2&&(S==="reverse"?(I=1-I,j&&(I-=j/p)):S==="mirror"&&(X=f)),q=vn(0,1,I)*p}let Z;B?(this.delayState.value=v[0],Z=this.delayState):Z=X.next(q),d&&!B&&(Z.value=d(Z.value));let{done:nt}=Z;!B&&y!==null&&(nt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&nt);return $&&E!==$c&&(Z.value=$o(v,this.options,k,this.speed)),z&&z(Z.value),$&&this.finish(),Z}then(i,l){return this.finished.then(i,l)}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Fe(i)}get time(){return Fe(this.currentTime)}set time(i){i=_e(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=i,this.tick(i))}getGeneratorVelocity(){const i=this.currentTime;if(i<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(i);const l=this.generator.next(i).value;return Og(o=>this.generator.next(o).value,i,l)}get speed(){return this.playbackSpeed}set speed(i){const l=this.playbackSpeed!==i;l&&this.driver&&this.updateTime(ge.now()),this.playbackSpeed=i,l&&this.driver&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=k5,startTime:l}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=l??o),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(ge.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.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function I5(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const Ga=a=>a*180/Math.PI,Wc=a=>{const i=Ga(Math.atan2(a[1],a[0]));return Ic(i)},t4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Wc,rotateZ:Wc,skewX:a=>Ga(Math.atan(a[1])),skewY:a=>Ga(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Ic=a=>(a=a%360,a<0&&(a+=360),a),j1=Wc,C1=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),M1=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),e4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:C1,scaleY:M1,scale:a=>(C1(a)+M1(a))/2,rotateX:a=>Ic(Ga(Math.atan2(a[6],a[5]))),rotateY:a=>Ic(Ga(Math.atan2(-a[2],a[0]))),rotateZ:j1,rotate:j1,skewX:a=>Ga(Math.atan(a[4])),skewY:a=>Ga(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function tf(a){return a.includes("scale")?1:0}function ef(a,i){if(!a||a==="none")return tf(i);const l=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(l)o=e4,c=l;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=t4,c=p}if(!c)return tf(i);const d=o[i],f=c[1].split(",").map(a4);return typeof d=="function"?d(f):f[d]}const n4=(a,i)=>{const{transform:l="none"}=getComputedStyle(a);return ef(l,i)};function a4(a){return parseFloat(a.trim())}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ui=new Set(Li),z1=a=>a===Bi||a===it,i4=new Set(["x","y","z"]),s4=Li.filter(a=>!i4.has(a));function l4(a){const i=[];return s4.forEach(l=>{const o=a.getValue(l);o!==void 0&&(i.push([l,o.get()]),o.set(l.startsWith("scale")?1:0))}),i}const ma={width:({x:a},{paddingLeft:i="0",paddingRight:l="0",boxSizing:o})=>{const c=a.max-a.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},height:({y:a},{paddingTop:i="0",paddingBottom:l="0",boxSizing:o})=>{const c=a.max-a.min;return o==="border-box"?c:c-parseFloat(i)-parseFloat(l)},top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>ef(i,"x"),y:(a,{transform:i})=>ef(i,"y")};ma.translateX=ma.x;ma.translateY=ma.y;const qa=new Set;let nf=!1,af=!1,sf=!1;function _g(){if(af){const a=Array.from(qa).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),l=new Map;i.forEach(o=>{const c=l4(o);c.length&&(l.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=l.get(o);c&&c.forEach(([d,f])=>{o.getValue(d)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}af=!1,nf=!1,qa.forEach(a=>a.complete(sf)),qa.clear()}function Bg(){qa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(af=!0)})}function o4(){sf=!0,Bg(),_g(),sf=!1}class kf{constructor(i,l,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),nf||(nf=!0,Ut.read(Bg),Ut.resolveKeyframes(_g))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:o,motionValue:c}=this;if(i[0]===null){const d=c?.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&l){const p=o.readValue(l,f);p!=null&&(i[0]=p)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}I5(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const r4=a=>a.startsWith("--");function Lg(a,i,l){r4(i)?a.style.setProperty(i,l):a.style[i]=l}const u4={};function Ug(a,i){const l=dg(a);return()=>u4[i]??l()}const c4=Ug(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Hg=Ug(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bs=([a,i,l,o])=>`cubic-bezier(${a}, ${i}, ${l}, ${o})`,N1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bs([0,.65,.55,1]),circOut:Bs([.55,0,1,.45]),backIn:Bs([.31,.01,.66,-.59]),backOut:Bs([.33,1.53,.69,.99])};function Gg(a,i){if(a)return typeof a=="function"?Hg()?Vg(a,i):"ease-out":wg(a)?Bs(a):Array.isArray(a)?a.map(l=>Gg(l,i)||N1.easeOut):N1[a]}function f4(a,i,l,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:p="easeOut",times:y}={},m=void 0){const v={[i]:l};y&&(v.offset=y);const x=Gg(p,c);Array.isArray(x)&&(v.easing=x);const S={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return m&&(S.pseudoElement=m),a.animate(v,S)}function qg(a){return typeof a=="function"&&"applyToOptions"in a}function d4({type:a,...i}){return qg(a)&&Hg()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Yg extends Of{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:p,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,Ef(typeof i.type!="string");const m=d4(i);this.animation=f4(l,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=$o(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(v),Lg(l,o,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return Fe(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+Fe(i)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(i){const l=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=_e(i),l&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,rangeStart:l,rangeEnd:o,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&c4()?(this.animation.timeline=i,l&&(this.animation.rangeStart=l),o&&(this.animation.rangeEnd=o),Pe):c(this)}}const Xg={anticipate:bg,backInOut:vg,circInOut:Sg};function h4(a){return a in Xg}function m4(a){typeof a.ease=="string"&&h4(a.ease)&&(a.ease=Xg[a.ease])}const Dc=10;class p4 extends Yg{constructor(i){m4(i),kg(i),super(i),i.startTime!==void 0&&i.autoplay!==!1&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const p=new Zo({...f,autoplay:!1}),y=Math.max(Dc,ge.now()-this.startTime),m=vn(0,Dc,y-Dc),v=p.sample(y).value,{name:x}=this.options;d&&x&&Lg(d,x,v),l.setWithVelocity(p.sample(Math.max(0,y-m)).value,v,m),p.stop()}}const D1=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(rn.test(a)||a==="0")&&!a.startsWith("url("));function g4(a){const i=a[0];if(a.length===1)return!0;for(let l=0;l<a.length;l++)if(a[l]!==i)return!0}function y4(a,i,l,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=a[a.length-1],f=D1(c,i),p=D1(d,i);return!f||!p?!1:g4(a)||(l==="spring"||qg(l))&&o}function lf(a){a.duration=0,a.type="keyframes"}const Zg=new Set(["opacity","clipPath","filter","transform"]),v4=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function b4(a){for(let i=0;i<a.length;i++)if(typeof a[i]=="string"&&v4.test(a[i]))return!0;return!1}const x4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),S4=dg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function T4(a){const{motionValue:i,name:l,repeatDelay:o,repeatType:c,damping:d,type:f,keyframes:p}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:v}=i.owner.getProps();return S4()&&l&&(Zg.has(l)||x4.has(l)&&b4(p))&&(l!=="transform"||!v)&&!m&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const w4=40;class A4 extends Of{constructor({autoplay:i=!0,delay:l=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:p,name:y,motionValue:m,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const S={autoplay:i,delay:l,type:o,repeat:c,repeatDelay:d,repeatType:f,name:y,motionValue:m,element:v,...x},j=v?.KeyframeResolver||kf;this.keyframeResolver=new j(p,(E,z,k)=>this.onKeyframesResolved(E,z,S,!k),y,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:p,delay:y,isHandoff:m,onUpdate:v}=o;this.resolvedAt=ge.now();let x=!0;y4(i,d,f,p)||(x=!1,(pa.instantAnimations||!y)&&v?.($o(i,o,l)),i[0]=i[i.length-1],lf(o),o.repeat=0);const j={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>w4?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...o,keyframes:i},E=x&&!m&&T4(j),z=j.motionValue?.owner?.current;let k;if(E)try{k=new p4({...j,element:z})}catch{k=new Zo(j)}else k=new Zo(j);k.finished.then(()=>{this.notifyFinished()}).catch(Pe),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),o4()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Qg(a,i,l,o=0,c=1){const d=Array.from(a).sort((m,v)=>m.sortNodePosition(v)).indexOf(i),f=a.size,p=(f-1)*o;return typeof l=="function"?l(d,f):c===1?d*o:p-d*o}const E4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j4(a){const i=E4.exec(a);if(!i)return[,];const[,l,o,c]=i;return[`--${l??o}`,c]}function Kg(a,i,l=1){const[o,c]=j4(a);if(!o)return;const d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return ug(f)?parseFloat(f):f}return zf(c)?Kg(c,i,l+1):c}const C4={type:"spring",stiffness:500,damping:25,restSpeed:10},M4=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),z4={type:"keyframes",duration:.8},N4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},D4=(a,{keyframes:i})=>i.length>2?z4:Ui.has(a)?a.startsWith("scale")?M4(i[1]):C4:N4;function Jg(a,i){if(a?.inherit&&i){const{inherit:l,...o}=a;return{...i,...o}}return a}function _f(a,i){const l=a?.[i]??a?.default??a;return l!==a?Jg(l,a):l}const R4=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function V4(a){for(const i in a)if(!R4.has(i))return!0;return!1}const Bf=(a,i,l,o={},c,d)=>f=>{const p=_f(o,a)||{},y=p.delay||o.delay||0;let{elapsed:m=0}=o;m=m-_e(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-m,onUpdate:S=>{i.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:a,motionValue:i,element:d?void 0:c};V4(p)||Object.assign(v,D4(a,v)),v.duration&&(v.duration=_e(v.duration)),v.repeatDelay&&(v.repeatDelay=_e(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(lf(v),v.delay===0&&(x=!0)),(pa.instantAnimations||pa.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,lf(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,x&&!d&&i.get()!==void 0){const S=$o(v.keyframes,p);if(S!==void 0){Ut.update(()=>{v.onUpdate(S),v.onComplete()});return}}return p.isSync?new Zo(v):new A4(v)};function R1(a){const i=[{},{}];return a?.values.forEach((l,o)=>{i[0][o]=l.get(),i[1][o]=l.getVelocity()}),i}function Lf(a,i,l,o){if(typeof i=="function"){const[c,d]=R1(o);i=i(l!==void 0?l:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=R1(o);i=i(l!==void 0?l:a.custom,c,d)}return i}function Ya(a,i,l){const o=a.getProps();return Lf(o,i,l!==void 0?l:o.custom,a)}const Fg=new Set(["width","height","top","left","right","bottom",...Li]),V1=30,O4=a=>!isNaN(parseFloat(a));class k4{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=ge.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=O4(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new jf);const o=this.events[i].add(l);return i==="change"?()=>{o(),Ut.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,o){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>V1)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,V1);return hg(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _i(a,i){return new k4(a,i)}const of=a=>Array.isArray(a);function _4(a,i,l){a.hasValue(i)?a.getValue(i).set(l):a.addValue(i,_i(l))}function B4(a){return of(a)?a[a.length-1]||0:a}function L4(a,i){const l=Ya(a,i);let{transitionEnd:o={},transition:c={},...d}=l||{};d={...d,...o};for(const f in d){const p=B4(d[f]);_4(a,f,p)}}const he=a=>!!(a&&a.getVelocity);function U4(a){return!!(he(a)&&a.add)}function rf(a,i){const l=a.getValue("willChange");if(U4(l))return l.add(i);if(!l&&pa.WillChange){const o=new pa.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function Uf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const H4="framerAppearId",Pg="data-"+Uf(H4);function $g(a){return a.props[Pg]}function G4({protectedKeys:a,needsAnimating:i},l){const o=a.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,o}function Wg(a,i,{delay:l=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:f,...p}=i;const y=a.getDefaultTransition();d=d?Jg(d,y):y;const m=d?.reduceMotion;o&&(d=o);const v=[],x=c&&a.animationState&&a.animationState.getState()[c];for(const S in p){const j=a.getValue(S,a.latestValues[S]??null),E=p[S];if(E===void 0||x&&G4(x,S))continue;const z={delay:l,..._f(d||{},S)},k=j.get();if(k!==void 0&&!j.isAnimating()&&!Array.isArray(E)&&E===k&&!z.velocity){Ut.update(()=>j.set(E));continue}let U=!1;if(window.MotionHandoffAnimation){const X=$g(a);if(X){const Z=window.MotionHandoffAnimation(X,S,Ut);Z!==null&&(z.startTime=Z,U=!0)}}rf(a,S);const B=m??a.shouldReduceMotion;j.start(Bf(S,j,E,B&&Fg.has(S)?{type:!1}:z,a,U));const q=j.animation;q&&v.push(q)}if(f){const S=()=>Ut.update(()=>{f&&L4(a,f)});v.length?Promise.all(v).then(S):S()}return v}function uf(a,i,l={}){const o=Ya(a,i,l.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};l.transitionOverride&&(c=l.transitionOverride);const d=o?()=>Promise.all(Wg(a,o,l)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:x}=c;return q4(a,i,y,m,v,x,l)}:()=>Promise.resolve(),{when:p}=c;if(p){const[y,m]=p==="beforeChildren"?[d,f]:[f,d];return y().then(()=>m())}else return Promise.all([d(),f(l.delay)])}function q4(a,i,l=0,o=0,c=0,d=1,f){const p=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),p.push(uf(y,i,{...f,delay:l+(typeof o=="function"?0:o)+Qg(a.variantChildren,y,o,c,d)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(p)}function Y4(a,i,l={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(d=>uf(a,d,l));o=Promise.all(c)}else if(typeof i=="string")o=uf(a,i,l);else{const c=typeof i=="function"?Ya(a,i,l.custom):i;o=Promise.all(Wg(a,c,l))}return o.then(()=>{a.notify("AnimationComplete",i)})}const X4={test:a=>a==="auto",parse:a=>a},Ig=a=>i=>i.test(a),ty=[Bi,it,yn,ha,g5,p5,X4],O1=a=>ty.find(Ig(a));function Z4(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||fg(a):!0}const Q4=new Set(["brightness","contrast","saturate","opacity"]);function K4(a){const[i,l]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=l.match(Nf)||[];if(!o)return a;const c=l.replace(o,"");let d=Q4.has(i)?1:0;return o!==l&&(d*=100),i+"("+d+c+")"}const J4=/\b([a-z-]*)\(.*?\)/gu,cf={...rn,getAnimatableNone:a=>{const i=a.match(J4);return i?i.map(K4).join(" "):a}},ff={...rn,getAnimatableNone:a=>{const i=rn.parse(a);return rn.createTransformer(a)(i.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},k1={...Bi,transform:Math.round},F4={rotate:ha,rotateX:ha,rotateY:ha,rotateZ:ha,scale:Eo,scaleX:Eo,scaleY:Eo,scaleZ:Eo,skew:ha,skewX:ha,skewY:ha,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:Js,originX:S1,originY:S1,originZ:it},Hf={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,inset:it,insetBlock:it,insetBlockStart:it,insetBlockEnd:it,insetInline:it,insetInlineStart:it,insetInlineEnd:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,paddingBlock:it,paddingBlockStart:it,paddingBlockEnd:it,paddingInline:it,paddingInlineStart:it,paddingInlineEnd:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,marginBlock:it,marginBlockStart:it,marginBlockEnd:it,marginInline:it,marginInlineStart:it,marginInlineEnd:it,fontSize:it,backgroundPositionX:it,backgroundPositionY:it,...F4,zIndex:k1,fillOpacity:Js,strokeOpacity:Js,numOctaves:k1},P4={...Hf,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:cf,WebkitFilter:cf,mask:ff,WebkitMask:ff},ey=a=>P4[a],$4=new Set([cf,ff]);function ny(a,i){let l=ey(a);return $4.has(l)||(l=rn),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const W4=new Set(["auto","none","0"]);function I4(a,i,l){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!W4.has(d)&&ki(d).values.length&&(c=a[o]),o++}if(c&&l)for(const d of i)a[d]=ny(l,c)}class t8 extends kf{constructor(i,l,o,c,d){super(i,l,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:o}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let x=i[v];if(typeof x=="string"&&(x=x.trim(),zf(x))){const S=Kg(x,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!Fg.has(o)||i.length!==2)return;const[c,d]=i,f=O1(c),p=O1(d),y=x1(c),m=x1(d);if(y!==m&&ma[o]){this.needsMeasurement=!0;return}if(f!==p)if(z1(f)&&z1(p))for(let v=0;v<i.length;v++){const x=i[v];typeof x=="string"&&(i[v]=parseFloat(x))}else ma[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||Z4(i[c]))&&o.push(c);o.length&&I4(i,o,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ma[o](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(l);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=ma[l](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,y])=>{i.getValue(p).set(y)}),this.resolveNoneKeyframes()}}function ay(a,i,l){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=l?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(o=>o!=null)}const iy=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function e8(a){return cg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Gf}=Ag(queueMicrotask,!1),ln={x:!1,y:!1};function sy(){return ln.x||ln.y}function n8(a){return a==="x"||a==="y"?ln[a]?null:(ln[a]=!0,()=>{ln[a]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function ly(a,i){const l=ay(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[l,c,()=>o.abort()]}function a8(a){return!(a.pointerType==="touch"||sy())}function i8(a,i,l={}){const[o,c,d]=ly(a,l);return o.forEach(f=>{let p=!1,y=!1,m;const v=()=>{f.removeEventListener("pointerleave",E)},x=k=>{m&&(m(k),m=void 0),v()},S=k=>{p=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),y&&(y=!1,x(k))},j=()=>{p=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},E=k=>{if(k.pointerType!=="touch"){if(p){y=!0;return}x(k)}},z=k=>{if(!a8(k))return;y=!1;const U=i(f,k);typeof U=="function"&&(m=U,f.addEventListener("pointerleave",E,c))};f.addEventListener("pointerenter",z,c),f.addEventListener("pointerdown",j,c)}),d}const oy=(a,i)=>i?a===i?!0:oy(a,i.parentElement):!1,qf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,s8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function l8(a){return s8.has(a.tagName)||a.isContentEditable===!0}const o8=new Set(["INPUT","SELECT","TEXTAREA"]);function r8(a){return o8.has(a.tagName)||a.isContentEditable===!0}const Do=new WeakSet;function _1(a){return i=>{i.key==="Enter"&&a(i)}}function Rc(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const u8=(a,i)=>{const l=a.currentTarget;if(!l)return;const o=_1(()=>{if(Do.has(l))return;Rc(l,"down");const c=_1(()=>{Rc(l,"up")}),d=()=>Rc(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",d,i)});l.addEventListener("keydown",o,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",o),i)};function B1(a){return qf(a)&&!sy()}const L1=new WeakSet;function c8(a,i,l={}){const[o,c,d]=ly(a,l),f=p=>{const y=p.currentTarget;if(!B1(p)||L1.has(p))return;Do.add(y),l.stopPropagation&&L1.add(p);const m=i(y,p),v=(j,E)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",S),Do.has(y)&&Do.delete(y),B1(j)&&typeof m=="function"&&m(j,{success:E})},x=j=>{v(j,y===window||y===document||l.useGlobalTarget||oy(y,j.target))},S=j=>{v(j,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",S,c)};return o.forEach(p=>{(l.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),e8(p)&&(p.addEventListener("focus",m=>u8(m,c)),!l8(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Yf(a){return cg(a)&&"ownerSVGElement"in a}const Ro=new WeakMap;let Vo;const ry=(a,i,l)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:Yf(o)&&"getBBox"in o?o.getBBox()[i]:o[l],f8=ry("inline","width","offsetWidth"),d8=ry("block","height","offsetHeight");function h8({target:a,borderBoxSize:i}){Ro.get(a)?.forEach(l=>{l(a,{get width(){return f8(a,i)},get height(){return d8(a,i)}})})}function m8(a){a.forEach(h8)}function p8(){typeof ResizeObserver>"u"||(Vo=new ResizeObserver(m8))}function g8(a,i){Vo||p8();const l=ay(a);return l.forEach(o=>{let c=Ro.get(o);c||(c=new Set,Ro.set(o,c)),c.add(i),Vo?.observe(o)}),()=>{l.forEach(o=>{const c=Ro.get(o);c?.delete(i),c?.size||Vo?.unobserve(o)})}}const Oo=new Set;let Vi;function y8(){Vi=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Oo.forEach(i=>i(a))},window.addEventListener("resize",Vi)}function v8(a){return Oo.add(a),Vi||y8(),()=>{Oo.delete(a),!Oo.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function U1(a,i){return typeof a=="function"?v8(a):g8(a,i)}function b8(a){return Yf(a)&&a.tagName==="svg"}const x8=[...ty,It,rn],S8=a=>x8.find(Ig(a)),H1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:H1(),y:H1()}),G1=()=>({min:0,max:0}),ae=()=>({x:G1(),y:G1()}),T8=new WeakMap;function Wo(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Fs(a){return typeof a=="string"||Array.isArray(a)}const Xf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zf=["initial",...Xf];function Io(a){return Wo(a.animate)||Zf.some(i=>Fs(a[i]))}function uy(a){return!!(Io(a)||a.variants)}function w8(a,i,l){for(const o in i){const c=i[o],d=l[o];if(he(c))a.addValue(o,c);else if(he(d))a.addValue(o,_i(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,_i(f!==void 0?f:c,{owner:a}))}}for(const o in l)i[o]===void 0&&a.removeValue(o);return i}const df={current:null},cy={current:!1},A8=typeof window<"u";function E8(){if(cy.current=!0,!!A8)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>df.current=a.matches;a.addEventListener("change",i),i()}else df.current=!1}const q1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Qo={};function fy(a){Qo=a}function j8(){return Qo}class C8{scrapeMotionValuesFromProps(i,l,o){return{}}constructor({parent:i,props:l,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:p},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=kf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const j=ge.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,Ut.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=l.initial?{...m}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,this.isControllingVariants=Io(l),this.isVariantNode=uy(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:x,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const j in S){const E=S[j];m[j]!==void 0&&he(E)&&E.set(m[j])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,T8.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,o)=>this.bindToMotionValue(o,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(cy.current||E8(),this.shouldReduceMotion=df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ga(this.notifyUpdate),ga(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&Zg.has(i)&&this.current instanceof HTMLElement){const{factory:f,keyframes:p,times:y,ease:m,duration:v}=l.accelerate,x=new Yg({element:this.current,name:i,keyframes:p,times:y,ease:m,duration:_e(v)}),S=f(x);this.valueSubscriptions.set(i,()=>{S(),x.cancel()});return}const o=Ui.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ut.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Qo){const l=Qo[i];if(!l)continue;const{isEnabled:o,Feature:c}=l;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let o=0;o<q1.length;o++){const c=q1[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=w8(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const o=this.values.get(i);l!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&l!==void 0&&(o=_i(l===null?void 0:l,{owner:this}),this.addValue(i,o)),o}readValue(i,l){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(ug(o)||fg(o))?o=parseFloat(o):!S8(o)&&rn.test(l)&&(o=ny(i,l)),this.setBaseTarget(i,he(o)?o.get():o)),he(o)?o.get():o}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let o;if(typeof l=="string"||typeof l=="object"){const d=Lf(this.props,l,this.presenceContext?.custom);d&&(o=d[i])}if(l&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!he(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new jf),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Gf.render(this.render)}}class dy extends C8{constructor(){super(...arguments),this.KeyframeResolver=t8}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const o=i.style;return o?o[l]:void 0}removeValueFromRenderState(i,{vars:l,style:o}){delete l[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;he(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class va{constructor(i){this.isMounted=!1,this.node=i}update(){}}function hy({top:a,left:i,right:l,bottom:o}){return{x:{min:i,max:l},y:{min:a,max:o}}}function M8({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function z8(a,i){if(!i)return a;const l=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:l.y,left:l.x,bottom:o.y,right:o.x}}function Vc(a){return a===void 0||a===1}function hf({scale:a,scaleX:i,scaleY:l}){return!Vc(a)||!Vc(i)||!Vc(l)}function Ua(a){return hf(a)||my(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function my(a){return Y1(a.x)||Y1(a.y)}function Y1(a){return a&&a!=="0%"}function Ko(a,i,l){const o=a-l,c=i*o;return l+c}function X1(a,i,l,o,c){return c!==void 0&&(a=Ko(a,c,o)),Ko(a,l,o)+i}function mf(a,i=0,l=1,o,c){a.min=X1(a.min,i,l,o,c),a.max=X1(a.max,i,l,o,c)}function py(a,{x:i,y:l}){mf(a.x,i.translate,i.scale,i.originPoint),mf(a.y,l.translate,l.scale,l.originPoint)}const Z1=.999999999999,Q1=1.0000000000001;function N8(a,i,l,o=!1){const c=l.length;if(!c)return;i.x=i.y=1;let d,f;for(let p=0;p<c;p++){d=l[p],f=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(pn(a.x,-d.scroll.offset.x),pn(a.y,-d.scroll.offset.y)),f&&(i.x*=f.x.scale,i.y*=f.y.scale,py(a,f)),o&&Ua(d.latestValues)&&ko(a,d.latestValues,d.layout?.layoutBox))}i.x<Q1&&i.x>Z1&&(i.x=1),i.y<Q1&&i.y>Z1&&(i.y=1)}function pn(a,i){a.min+=i,a.max+=i}function K1(a,i,l,o,c=.5){const d=qt(a.min,a.max,c);mf(a,i,l,d,o)}function J1(a,i){return typeof a=="string"?parseFloat(a)/100*(i.max-i.min):a}function ko(a,i,l){const o=l??a;K1(a.x,J1(i.x,o.x),i.scaleX,i.scale,i.originX),K1(a.y,J1(i.y,o.y),i.scaleY,i.scale,i.originY)}function gy(a,i){return hy(z8(a.getBoundingClientRect(),i))}function D8(a,i,l){const o=gy(a,l),{scroll:c}=i;return c&&(pn(o.x,c.offset.x),pn(o.y,c.offset.y)),o}const R8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V8=Li.length;function O8(a,i,l){let o="",c=!0;for(let d=0;d<V8;d++){const f=Li[d],p=a[f];if(p===void 0)continue;let y=!0;if(typeof p=="number")y=p===(f.startsWith("scale")?1:0);else{const m=parseFloat(p);y=f.startsWith("scale")?m===1:m===0}if(!y||l){const m=iy(p,Hf[f]);if(!y){c=!1;const v=R8[f]||f;o+=`${v}(${m}) `}l&&(i[f]=m)}}return o=o.trim(),l?o=l(i,c?"":o):c&&(o="none"),o}function Qf(a,i,l){const{style:o,vars:c,transformOrigin:d}=a;let f=!1,p=!1;for(const y in i){const m=i[y];if(Ui.has(y)){f=!0;continue}else if(jg(y)){c[y]=m;continue}else{const v=iy(m,Hf[y]);y.startsWith("origin")?(p=!0,d[y]=v):o[y]=v}}if(i.transform||(f||l?o.transform=O8(i,a.transform,l):o.transform&&(o.transform="none")),p){const{originX:y="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${y} ${m} ${v}`}}function yy(a,{style:i,vars:l},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c?.applyProjectionStyles(d,o);for(f in l)d.setProperty(f,l[f])}function F1(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const _s={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(it.test(a))a=parseFloat(a);else return a;const l=F1(a,i.target.x),o=F1(a,i.target.y);return`${l}% ${o}%`}},k8={correct:(a,{treeScale:i,projectionDelta:l})=>{const o=a,c=rn.parse(a);if(c.length>5)return o;const d=rn.createTransformer(a),f=typeof c[0]!="number"?1:0,p=l.x.scale*i.x,y=l.y.scale*i.y;c[0+f]/=p,c[1+f]/=y;const m=qt(p,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=m),typeof c[3+f]=="number"&&(c[3+f]/=m),d(c)}},pf={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:k8};function vy(a,{layout:i,layoutId:l}){return Ui.has(a)||a.startsWith("origin")||(i||l!==void 0)&&(!!pf[a]||a==="opacity")}function Kf(a,i,l){const o=a.style,c=i?.style,d={};if(!o)return d;for(const f in o)(he(o[f])||c&&he(c[f])||vy(f,a)||l?.getValue(f)?.liveStyle!==void 0)&&(d[f]=o[f]);return d}function _8(a){return window.getComputedStyle(a)}class B8 extends dy{constructor(){super(...arguments),this.type="html",this.renderInstance=yy}readValueFromInstance(i,l){if(Ui.has(l))return this.projection?.isProjecting?tf(l):n4(i,l);{const o=_8(i),c=(jg(l)?o.getPropertyValue(l):o[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return gy(i,l)}build(i,l,o){Qf(i,l,o.transformTemplate)}scrapeMotionValuesFromProps(i,l,o){return Kf(i,l,o)}}const L8={offset:"stroke-dashoffset",array:"stroke-dasharray"},U8={offset:"strokeDashoffset",array:"strokeDasharray"};function H8(a,i,l=1,o=0,c=!0){a.pathLength=1;const d=c?L8:U8;a[d.offset]=`${-o}`,a[d.array]=`${i} ${l}`}const G8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function by(a,{attrX:i,attrY:l,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},y,m,v){if(Qf(a,p,m),y){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:S}=a;x.transform&&(S.transform=x.transform,delete x.transform),(S.transform||x.transformOrigin)&&(S.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const j of G8)x[j]!==void 0&&(S[j]=x[j],delete x[j]);i!==void 0&&(x.x=i),l!==void 0&&(x.y=l),o!==void 0&&(x.scale=o),c!==void 0&&H8(x,c,d,f,!1)}const xy=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"]),Sy=a=>typeof a=="string"&&a.toLowerCase()==="svg";function q8(a,i,l,o){yy(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(xy.has(c)?c:Uf(c),i.attrs[c])}function Ty(a,i,l){const o=Kf(a,i,l);for(const c in a)if(he(a[c])||he(i[c])){const d=Li.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}class Y8 extends dy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(Ui.has(l)){const o=ey(l);return o&&o.default||0}return l=xy.has(l)?l:Uf(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,o){return Ty(i,l,o)}build(i,l,o){by(i,l,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,l,o,c){q8(i,l,o,c)}mount(i){this.isSVGTag=Sy(i.tagName),super.mount(i)}}const X8=Zf.length;function wy(a){if(!a)return;if(!a.isControllingVariants){const l=a.parent?wy(a.parent)||{}:{};return a.props.initial!==void 0&&(l.initial=a.props.initial),l}const i={};for(let l=0;l<X8;l++){const o=Zf[l],c=a.props[o];(Fs(c)||c===!1)&&(i[o]=c)}return i}function Ay(a,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==a.length)return!1;for(let o=0;o<l;o++)if(i[o]!==a[o])return!1;return!0}const Z8=[...Xf].reverse(),Q8=Xf.length;function K8(a){return i=>Promise.all(i.map(({animation:l,options:o})=>Y4(a,l,o)))}function J8(a){let i=K8(a),l=P1(),o=!0,c=!1;const d=m=>(v,x)=>{const S=Ya(a,x,m==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:j,transitionEnd:E,...z}=S;v={...v,...z,...E}}return v};function f(m){i=m(a)}function p(m){const{props:v}=a,x=wy(a.parent)||{},S=[],j=new Set;let E={},z=1/0;for(let U=0;U<Q8;U++){const B=Z8[U],q=l[B],X=v[B]!==void 0?v[B]:x[B],Z=Fs(X),nt=B===m?q.isActive:null;nt===!1&&(z=U);let $=X===x[B]&&X!==v[B]&&Z;if($&&(o||c)&&a.manuallyAnimateOnMount&&($=!1),q.protectedKeys={...E},!q.isActive&&nt===null||!X&&!q.prevProp||Wo(X)||typeof X=="boolean")continue;if(B==="exit"&&q.isActive&&nt!==!0){q.prevResolvedValues&&(E={...E,...q.prevResolvedValues});continue}const Y=F8(q.prevProp,X);let K=Y||B===m&&q.isActive&&!$&&Z||U>z&&Z,I=!1;const ft=Array.isArray(X)?X:[X];let pt=ft.reduce(d(B),{});nt===!1&&(pt={});const{prevResolvedValues:Rt={}}=q,At={...Rt,...pt},Nt=F=>{K=!0,j.has(F)&&(I=!0,j.delete(F)),q.needsAnimating[F]=!0;const ct=a.getValue(F);ct&&(ct.liveStyle=!1)};for(const F in At){const ct=pt[F],J=Rt[F];if(E.hasOwnProperty(F))continue;let w=!1;of(ct)&&of(J)?w=!Ay(ct,J):w=ct!==J,w?ct!=null?Nt(F):j.add(F):ct!==void 0&&j.has(F)?Nt(F):q.protectedKeys[F]=!0}q.prevProp=X,q.prevResolvedValues=pt,q.isActive&&(E={...E,...pt}),(o||c)&&a.blockInitialAnimation&&(K=!1);const R=$&&Y;K&&(!R||I)&&S.push(...ft.map(F=>{const ct={type:B};if(typeof F=="string"&&(o||c)&&!R&&a.manuallyAnimateOnMount&&a.parent){const{parent:J}=a,w=Ya(J,F);if(J.enteringChildren&&w){const{delayChildren:H}=w.transition||{};ct.delay=Qg(J.enteringChildren,a,H)}}return{animation:F,options:ct}}))}if(j.size){const U={};if(typeof v.initial!="boolean"){const B=Ya(a,Array.isArray(v.initial)?v.initial[0]:v.initial);B&&B.transition&&(U.transition=B.transition)}j.forEach(B=>{const q=a.getBaseTarget(B),X=a.getValue(B);X&&(X.liveStyle=!0),U[B]=q??null}),S.push({animation:U})}let k=!!S.length;return o&&(v.initial===!1||v.initial===v.animate)&&!a.manuallyAnimateOnMount&&(k=!1),o=!1,c=!1,k?i(S):Promise.resolve()}function y(m,v){if(l[m].isActive===v)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(m,v)),l[m].isActive=v;const x=p(m);for(const S in l)l[S].protectedKeys={};return x}return{animateChanges:p,setActive:y,setAnimateFunction:f,getState:()=>l,reset:()=>{l=P1(),c=!0}}}function F8(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!Ay(i,a):!1}function La(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function P1(){return{animate:La(!0),whileInView:La(),whileHover:La(),whileTap:La(),whileDrag:La(),whileFocus:La(),exit:La()}}function gf(a,i){a.min=i.min,a.max=i.max}function sn(a,i){gf(a.x,i.x),gf(a.y,i.y)}function $1(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const Ey=1e-4,P8=1-Ey,$8=1+Ey,jy=.01,W8=0-jy,I8=0+jy;function ye(a){return a.max-a.min}function t6(a,i,l){return Math.abs(a-i)<=l}function W1(a,i,l,o=.5){a.origin=o,a.originPoint=qt(i.min,i.max,a.origin),a.scale=ye(l)/ye(i),a.translate=qt(l.min,l.max,a.origin)-a.originPoint,(a.scale>=P8&&a.scale<=$8||isNaN(a.scale))&&(a.scale=1),(a.translate>=W8&&a.translate<=I8||isNaN(a.translate))&&(a.translate=0)}function Hs(a,i,l,o){W1(a.x,i.x,l.x,o?o.originX:void 0),W1(a.y,i.y,l.y,o?o.originY:void 0)}function I1(a,i,l,o=0){const c=o?qt(l.min,l.max,o):l.min;a.min=c+i.min,a.max=a.min+ye(i)}function e6(a,i,l,o){I1(a.x,i.x,l.x,o?.x),I1(a.y,i.y,l.y,o?.y)}function tp(a,i,l,o=0){const c=o?qt(l.min,l.max,o):l.min;a.min=i.min-c,a.max=a.min+ye(i)}function Jo(a,i,l,o){tp(a.x,i.x,l.x,o?.x),tp(a.y,i.y,l.y,o?.y)}function ep(a,i,l,o,c){return a-=i,a=Ko(a,1/l,o),c!==void 0&&(a=Ko(a,1/c,o)),a}function n6(a,i=0,l=1,o=.5,c,d=a,f=a){if(yn.test(i)&&(i=parseFloat(i),i=qt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=qt(d.min,d.max,o);a===d&&(p-=i),a.min=ep(a.min,i,l,p,c),a.max=ep(a.max,i,l,p,c)}function np(a,i,[l,o,c],d,f){n6(a,i[l],i[o],i[c],i.scale,d,f)}const a6=["x","scaleX","originX"],i6=["y","scaleY","originY"];function ap(a,i,l,o){np(a.x,i,a6,l?l.x:void 0,o?o.x:void 0),np(a.y,i,i6,l?l.y:void 0,o?o.y:void 0)}function ip(a){return a.translate===0&&a.scale===1}function Cy(a){return ip(a.x)&&ip(a.y)}function sp(a,i){return a.min===i.min&&a.max===i.max}function s6(a,i){return sp(a.x,i.x)&&sp(a.y,i.y)}function lp(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function My(a,i){return lp(a.x,i.x)&&lp(a.y,i.y)}function op(a){return ye(a.x)/ye(a.y)}function rp(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function mn(a){return[a("x"),a("y")]}function l6(a,i,l){let o="";const c=a.x.translate/i.x,d=a.y.translate/i.y,f=l?.z||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:m,rotate:v,rotateX:x,rotateY:S,skewX:j,skewY:E}=l;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),S&&(o+=`rotateY(${S}deg) `),j&&(o+=`skewX(${j}deg) `),E&&(o+=`skewY(${E}deg) `)}const p=a.x.scale*i.x,y=a.y.scale*i.y;return(p!==1||y!==1)&&(o+=`scale(${p}, ${y})`),o||"none"}const zy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],o6=zy.length,up=a=>typeof a=="string"?parseFloat(a):a,cp=a=>typeof a=="number"||it.test(a);function r6(a,i,l,o,c,d){c?(a.opacity=qt(0,l.opacity??1,u6(o)),a.opacityExit=qt(i.opacity??1,0,c6(o))):d&&(a.opacity=qt(i.opacity??1,l.opacity??1,o));for(let f=0;f<o6;f++){const p=zy[f];let y=fp(i,p),m=fp(l,p);if(y===void 0&&m===void 0)continue;y||(y=0),m||(m=0),y===0||m===0||cp(y)===cp(m)?(a[p]=Math.max(qt(up(y),up(m),o),0),(yn.test(m)||yn.test(y))&&(a[p]+="%")):a[p]=m}(i.rotate||l.rotate)&&(a.rotate=qt(i.rotate||0,l.rotate||0,o))}function fp(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const u6=Ny(0,.5,xg),c6=Ny(.5,.95,Pe);function Ny(a,i,l){return o=>o<a?0:o>i?1:l(Ks(a,i,o))}function f6(a,i,l){const o=he(a)?a:_i(a);return o.start(Bf("",o,i,l)),o.animation}function Ps(a,i,l,o={passive:!0}){return a.addEventListener(i,l,o),()=>a.removeEventListener(i,l)}const d6=(a,i)=>a.depth-i.depth;class h6{constructor(){this.children=[],this.isDirty=!1}add(i){Af(this.children,i),this.isDirty=!0}remove(i){Go(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(d6),this.isDirty=!1,this.children.forEach(i)}}function m6(a,i){const l=ge.now(),o=({timestamp:c})=>{const d=c-l;d>=i&&(ga(o),a(d-i))};return Ut.setup(o,!0),()=>ga(o)}function _o(a){return he(a)?a.get():a}class p6{constructor(){this.members=[]}add(i){Af(this.members,i);for(let l=this.members.length-1;l>=0;l--){const o=this.members[l];if(o===i||o===this.lead||o===this.prevLead)continue;const c=o.instance;(!c||c.isConnected===!1)&&!o.snapshot&&(Go(this.members,o),o.unmount())}i.scheduleRender()}remove(i){if(Go(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){for(let l=this.members.indexOf(i)-1;l>=0;l--){const o=this.members[l];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(i,l){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.updateSnapshot(),i.scheduleRender();const{layoutDependency:c}=o.options,{layoutDependency:d}=i.options;(c===void 0||c!==d)&&(i.resumeFrom=o,l&&(o.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root?.isUpdating&&(i.isLayoutDirty=!0)),i.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{i.options.onExitComplete?.(),i.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(i=>i.instance&&i.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Oc=["","X","Y","Z"],g6=1e3;let y6=0;function kc(a,i,l,o){const{latestValues:c}=i;c[a]&&(l[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function Dy(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const l=$g(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(l,"transform",Ut,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Dy(o)}function Ry({attachResizeListener:a,defaultParent:i,measureScroll:l,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},p=i?.()){this.id=y6++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(x6),this.nodes.forEach(j6),this.nodes.forEach(C6),this.nodes.forEach(S6)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new h6)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new jf),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const y=this.eventHandlers.get(f);y&&y.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Yf(f)&&!b8(f),this.instance=f;const{layoutId:p,layout:y,visualElement:m}=this.options;if(m&&!m.current&&m.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||p)&&(this.isLayoutDirty=!0),a){let v,x=0;const S=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{x=window.innerWidth}),a(f,()=>{const j=window.innerWidth;j!==x&&(x=j,this.root.updateBlockedByResize=!0,v&&v(),v=m6(S,250),Bo.hasAnimatedSinceResize&&(Bo.hasAnimatedSinceResize=!1,this.nodes.forEach(mp)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:S,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||m.getDefaultTransition()||R6,{onLayoutAnimationStart:z,onLayoutAnimationComplete:k}=m.getProps(),U=!this.targetLayout||!My(this.targetLayout,j),B=!x&&S;if(this.options.layoutRoot||this.resumeFrom||B||x&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const q={..._f(E,"layout"),onPlay:z,onComplete:k};(m.shouldReduceMotion||this.options.layoutRoot)&&(q.delay=0,q.type=!1),this.startAnimation(q),this.setAnimationOrigin(v,B)}else x||mp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ga(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(M6),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:y}=this.options;if(p===void 0&&!y)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const y=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),y&&this.nodes.forEach(w6),this.nodes.forEach(dp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(A6),this.nodes.forEach(E6),this.nodes.forEach(v6),this.nodes.forEach(b6)):this.nodes.forEach(hp),this.clearAllSnapshots();const p=ge.now();de.delta=vn(0,1e3/60,p-de.timestamp),de.timestamp=p,de.isProcessing=!0,jc.update.process(de),jc.preRender.process(de),jc.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(T6),this.sharedNodes.forEach(z6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ae()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Cy(this.projectionDelta),y=this.getTransformTemplate(),m=y?y(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;f&&this.instance&&(p||Ua(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let y=this.removeElementScroll(p);return f&&(y=this.removeTransform(y)),V6(y),{animationId:this.root.animationId,measuredBox:p,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return ae();const p=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(O6))){const{scroll:m}=this.root;m&&(pn(p.x,m.offset.x),pn(p.y,m.offset.y))}return p}removeElementScroll(f){const p=ae();if(sn(p,f),this.scroll?.wasRoot)return p;for(let y=0;y<this.path.length;y++){const m=this.path[y],{scroll:v,options:x}=m;m!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&sn(p,f),pn(p.x,v.offset.x),pn(p.y,v.offset.y))}return p}applyTransform(f,p=!1,y){const m=y||ae();sn(m,f);for(let v=0;v<this.path.length;v++){const x=this.path[v];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(pn(m.x,-x.scroll.offset.x),pn(m.y,-x.scroll.offset.y)),Ua(x.latestValues)&&ko(m,x.latestValues,x.layout?.layoutBox)}return Ua(this.latestValues)&&ko(m,this.latestValues,this.layout?.layoutBox),m}removeTransform(f){const p=ae();sn(p,f);for(let y=0;y<this.path.length;y++){const m=this.path[y];if(!Ua(m.latestValues))continue;let v;m.instance&&(hf(m.latestValues)&&m.updateSnapshot(),v=ae(),sn(v,m.measurePageBox())),ap(p,m.latestValues,m.snapshot?.layoutBox,v)}return Ua(this.latestValues)&&ap(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}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!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==p;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))return;this.resolvedRelativeTargetAt=de.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),e6(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sn(this.target,this.layout.layoutBox),py(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||hf(this.parent.latestValues)||my(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,p,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),Jo(this.relativeTargetOrigin,p,y,this.options.layoutAnchor||void 0),sn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),p=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===de.timestamp&&(y=!1),y)return;const{layout:m,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||v))return;sn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,S=this.treeScale.y;N8(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ae());const{target:j}=f;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($1(this.prevProjectionDelta.x,this.projectionDelta.x),$1(this.prevProjectionDelta.y,this.projectionDelta.y)),Hs(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==S||!rp(this.projectionDelta.x,this.prevProjectionDelta.x)||!rp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(f,p=!1){const y=this.snapshot,m=y?y.latestValues:{},v={...this.latestValues},x=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=ae(),j=y?y.source:void 0,E=this.layout?this.layout.source:void 0,z=j!==E,k=this.getStack(),U=!k||k.members.length<=1,B=!!(z&&!U&&this.options.crossfade===!0&&!this.path.some(D6));this.animationProgress=0;let q;this.mixTargetDelta=X=>{const Z=X/1e3;pp(x.x,f.x,Z),pp(x.y,f.y,Z),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jo(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),N6(this.relativeTarget,this.relativeTargetOrigin,S,Z),q&&s6(this.relativeTarget,q)&&(this.isProjectionDirty=!1),q||(q=ae()),sn(q,this.relativeTarget)),z&&(this.animationValues=v,r6(v,m,this.latestValues,Z,B,U)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ga(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{Bo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_i(0)),this.motionValue.jump(0,!1),this.currentAnimation=f6(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(g6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:y,layout:m,latestValues:v}=f;if(!(!p||!y||!m)){if(this!==f&&this.layout&&m&&Vy(this.options.animationType,this.layout.layoutBox,m.layoutBox)){y=this.target||ae();const x=ye(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+x;const S=ye(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}sn(p,y),ko(p,v),Hs(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new p6),this.sharedNodes.get(f).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:y}={}){const m=this.getStack();m&&m.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(p=!0),!p)return;const m={};y.z&&kc("z",f,m,this.animationValues);for(let v=0;v<Oc.length;v++)kc(`rotate${Oc[v]}`,f,m,this.animationValues),kc(`skew${Oc[v]}`,f,m,this.animationValues);f.render();for(const v in m)f.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);f.scheduleRender()}applyProjectionStyles(f,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=_o(p?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=_o(p?.pointerEvents)||""),this.hasProjected&&!Ua(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=l6(this.projectionDeltaWithTransform,this.treeScale,v);y&&(x=y(v,x)),f.transform=x;const{x:S,y:j}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${j.origin*100}% 0`,m.animationValues?f.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const E in pf){if(v[E]===void 0)continue;const{correct:z,applyTo:k,isCSSVariable:U}=pf[E],B=x==="none"?v[E]:z(v[E],m);if(k){const q=k.length;for(let X=0;X<q;X++)f[k[X]]=B}else U?this.options.visualElement.renderState.vars[E]=B:f[E]=B}this.options.layoutId&&(f.pointerEvents=m===this?_o(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(dp),this.root.sharedNodes.clear()}}}function v6(a){a.updateLayout()}function b6(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:o}=a.layout,{animationType:c}=a.options,d=i.source!==a.layout.source;if(c==="size")mn(v=>{const x=d?i.measuredBox[v]:i.layoutBox[v],S=ye(x);x.min=l[v].min,x.max=x.min+S});else if(c==="x"||c==="y"){const v=c==="x"?"y":"x";gf(d?i.measuredBox[v]:i.layoutBox[v],l[v])}else Vy(c,i.layoutBox,l)&&mn(v=>{const x=d?i.measuredBox[v]:i.layoutBox[v],S=ye(l[v]);x.max=x.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+S)});const f=Oi();Hs(f,l,i.layoutBox);const p=Oi();d?Hs(p,a.applyTransform(o,!0),i.measuredBox):Hs(p,l,i.layoutBox);const y=!Cy(f);let m=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:S}=v;if(x&&S){const j=a.options.layoutAnchor||void 0,E=ae();Jo(E,i.layoutBox,x.layoutBox,j);const z=ae();Jo(z,l,S.layoutBox,j),My(E,z)||(m=!0),v.options.layoutRoot&&(a.relativeTarget=z,a.relativeTargetOrigin=E,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:p,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:m})}else if(a.isLead()){const{onExitComplete:l}=a.options;l&&l()}a.options.transition=void 0}function x6(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function S6(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function T6(a){a.clearSnapshot()}function dp(a){a.clearMeasurements()}function w6(a){a.isLayoutDirty=!0,a.updateLayout()}function hp(a){a.isLayoutDirty=!1}function A6(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function E6(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function mp(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function j6(a){a.resolveTargetDelta()}function C6(a){a.calcProjection()}function M6(a){a.resetSkewAndRotation()}function z6(a){a.removeLeadSnapshot()}function pp(a,i,l){a.translate=qt(i.translate,0,l),a.scale=qt(i.scale,1,l),a.origin=i.origin,a.originPoint=i.originPoint}function gp(a,i,l,o){a.min=qt(i.min,l.min,o),a.max=qt(i.max,l.max,o)}function N6(a,i,l,o){gp(a.x,i.x,l.x,o),gp(a.y,i.y,l.y,o)}function D6(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const R6={duration:.45,ease:[.4,0,.1,1]},yp=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),vp=yp("applewebkit/")&&!yp("chrome/")?Math.round:Pe;function bp(a){a.min=vp(a.min),a.max=vp(a.max)}function V6(a){bp(a.x),bp(a.y)}function Vy(a,i,l){return a==="position"||a==="preserve-aspect"&&!t6(op(i),op(l),.2)}function O6(a){return a!==a.root&&a.scroll?.wasRoot}const k6=Ry({attachResizeListener:(a,i)=>Ps(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),_c={current:void 0},Oy=Ry({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!_c.current){const a=new k6({});a.mount(window),a.setOptions({layoutScroll:!0}),_c.current=a}return _c.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),ky=O.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function _6(a=!0){const i=O.useContext(wf);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:o,register:c}=i,d=O.useId();O.useEffect(()=>{if(a)return c(d)},[a]);const f=O.useCallback(()=>a&&o&&o(d),[d,o,a]);return!l&&o?[!1,f]:[!0]}const _y=O.createContext({strict:!1}),xp={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"]};let Sp=!1;function B6(){if(Sp)return;const a={};for(const i in xp)a[i]={isEnabled:l=>xp[i].some(o=>!!l[o])};fy(a),Sp=!0}function By(){return B6(),j8()}function L6(a){const i=By();for(const l in a)i[l]={...i[l],...a[l]};fy(i)}const U6=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","propagate","ignoreStrict","viewport"]);function Fo(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||U6.has(a)}let Ly=a=>!Fo(a);function H6(a){typeof a=="function"&&(Ly=i=>i.startsWith("on")?!Fo(i):a(i))}try{H6(require("@emotion/is-prop-valid").default)}catch{}function G6(a,i,l){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||he(a[c])||(Ly(c)||l===!0&&Fo(c)||!i&&!Fo(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const tr=O.createContext({});function q6(a,i){if(Io(a)){const{initial:l,animate:o}=a;return{initial:l===!1||Fs(l)?l:void 0,animate:Fs(o)?o:void 0}}return a.inherit!==!1?i:{}}function Y6(a){const{initial:i,animate:l}=q6(a,O.useContext(tr));return O.useMemo(()=>({initial:i,animate:l}),[Tp(i),Tp(l)])}function Tp(a){return Array.isArray(a)?a.join(" "):a}const Jf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uy(a,i,l){for(const o in i)!he(i[o])&&!vy(o,l)&&(a[o]=i[o])}function X6({transformTemplate:a},i){return O.useMemo(()=>{const l=Jf();return Qf(l,i,a),Object.assign({},l.vars,l.style)},[i])}function Z6(a,i){const l=a.style||{},o={};return Uy(o,l,a),Object.assign(o,X6(a,i)),o}function Q6(a,i){const l={},o=Z6(a,i);return a.drag&&a.dragListener!==!1&&(l.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(l.tabIndex=0),l.style=o,l}const Hy=()=>({...Jf(),attrs:{}});function K6(a,i,l,o){const c=O.useMemo(()=>{const d=Hy();return by(d,i,Sy(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Uy(d,a.style,a),c.style={...d,...c.style}}return c}const J6=["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 Ff(a){return typeof a!="string"||a.includes("-")?!1:!!(J6.indexOf(a)>-1||/[A-Z]/u.test(a))}function F6(a,i,l,{latestValues:o},c,d=!1,f){const y=(f??Ff(a)?K6:Q6)(i,o,c,a),m=G6(i,typeof a=="string",d),v=a!==O.Fragment?{...m,...y,ref:l}:{},{children:x}=i,S=O.useMemo(()=>he(x)?x.get():x,[x]);return O.createElement(a,{...v,children:S})}function P6({scrapeMotionValuesFromProps:a,createRenderState:i},l,o,c){return{latestValues:$6(l,o,c,a),renderState:i()}}function $6(a,i,l,o){const c={},d=o(a,{});for(const S in d)c[S]=_o(d[S]);let{initial:f,animate:p}=a;const y=Io(a),m=uy(a);i&&m&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let v=l?l.initial===!1:!1;v=v||f===!1;const x=v?p:f;if(x&&typeof x!="boolean"&&!Wo(x)){const S=Array.isArray(x)?x:[x];for(let j=0;j<S.length;j++){const E=Lf(a,S[j]);if(E){const{transitionEnd:z,transition:k,...U}=E;for(const B in U){let q=U[B];if(Array.isArray(q)){const X=v?q.length-1:0;q=q[X]}q!==null&&(c[B]=q)}for(const B in z)c[B]=z[B]}}}return c}const Gy=a=>(i,l)=>{const o=O.useContext(tr),c=O.useContext(wf),d=()=>P6(a,i,o,c);return l?d():Jx(d)},W6=Gy({scrapeMotionValuesFromProps:Kf,createRenderState:Jf}),I6=Gy({scrapeMotionValuesFromProps:Ty,createRenderState:Hy}),t7=Symbol.for("motionComponentSymbol");function e7(a,i,l){const o=O.useRef(l);O.useInsertionEffect(()=>{o.current=l});const c=O.useRef(null);return O.useCallback(d=>{d&&a.onMount?.(d);const f=o.current;if(typeof f=="function")if(d){const p=f(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d);i&&(d?i.mount(d):i.unmount())},[i])}const qy=O.createContext({});function Ni(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function n7(a,i,l,o,c,d){const{visualElement:f}=O.useContext(tr),p=O.useContext(_y),y=O.useContext(wf),m=O.useContext(ky),v=m.reducedMotion,x=m.skipAnimations,S=O.useRef(null),j=O.useRef(!1);o=o||p.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:f,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:d}),j.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const E=S.current,z=O.useContext(qy);E&&!E.projection&&c&&(E.type==="html"||E.type==="svg")&&a7(S.current,l,c,z);const k=O.useRef(!1);O.useInsertionEffect(()=>{E&&k.current&&E.update(l,y)});const U=l[Pg],B=O.useRef(!!U&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(U)&&window.MotionHasOptimisedAnimation?.(U));return Px(()=>{j.current=!0,E&&(k.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),B.current&&E.animationState&&E.animationState.animateChanges())}),O.useEffect(()=>{E&&(!B.current&&E.animationState&&E.animationState.animateChanges(),B.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(U)}),B.current=!1),E.enteringChildren=void 0)}),E}function a7(a,i,l,o){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:y,layoutRoot:m,layoutAnchor:v,layoutCrossfade:x}=i;a.projection=new l(a.latestValues,i["data-framer-portal-id"]?void 0:Yy(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&Ni(p),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:y,layoutRoot:m,layoutAnchor:v})}function Yy(a){if(a)return a.options.allowProjection!==!1?a.projection:Yy(a.parent)}function Bc(a,{forwardMotionProps:i=!1,type:l}={},o,c){o&&L6(o);const d=l?l==="svg":Ff(a),f=d?I6:W6;function p(m,v){let x;const S={...O.useContext(ky),...m,layoutId:i7(m)},{isStatic:j}=S,E=Y6(m),z=f(m,j);if(!j&&typeof window<"u"){s7();const k=l7(S);x=k.MeasureLayout,E.visualElement=n7(a,z,S,c,k.ProjectionNode,d)}return g.jsxs(tr.Provider,{value:E,children:[x&&E.visualElement?g.jsx(x,{visualElement:E.visualElement,...S}):null,F6(a,m,e7(z,E.visualElement,v),z,j,i,d)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=O.forwardRef(p);return y[t7]=a,y}function i7({layoutId:a}){const i=O.useContext(rg).id;return i&&a!==void 0?i+"-"+a:a}function s7(a,i){O.useContext(_y).strict}function l7(a){const i=By(),{drag:l,layout:o}=i;if(!l&&!o)return{};const c={...l,...o};return{MeasureLayout:l?.isEnabled(a)||o?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function o7(a,i){if(typeof Proxy>"u")return Bc;const l=new Map,o=(d,f)=>Bc(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(l.has(f)||l.set(f,Bc(f,void 0,a,i)),l.get(f))})}const r7=(a,i)=>i.isSVG??Ff(a)?new Y8(i):new B8(i,{allowProjection:a!==O.Fragment});class u7 extends va{constructor(i){super(i),i.animationState||(i.animationState=J8(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Wo(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let c7=0;class f7 extends va{constructor(){super(...arguments),this.id=c7++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;if(i&&o===!1){if(this.isExitComplete){const{initial:d,custom:f}=this.node.getProps();if(typeof d=="string"){const p=Ya(this.node,d,f);if(p){const{transition:y,transitionEnd:m,...v}=p;for(const x in v)this.node.getValue(x)?.jump(v[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{this.isExitComplete=!0,l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const d7={animation:{Feature:u7},exit:{Feature:f7}};function al(a){return{point:{x:a.pageX,y:a.pageY}}}const h7=a=>i=>qf(i)&&a(i,al(i));function Gs(a,i,l,o){return Ps(a,i,h7(l),o)}const Xy=({current:a})=>a?a.ownerDocument.defaultView:null,wp=(a,i)=>Math.abs(a-i);function m7(a,i){const l=wp(a.x,i.x),o=wp(a.y,i.y);return Math.sqrt(l**2+o**2)}const Ap=new Set(["auto","scroll"]);class Zy{constructor(i,l,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=jo(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Lc(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,z=m7(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!z)return;const{point:k}=j,{timestamp:U}=de;this.history.push({...k,timestamp:U});const{onStart:B,onMove:q}=this.handlers;E||(B&&B(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),q&&q(this.lastMoveEvent,j)},this.handlePointerMove=(j,E)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=E,this.lastMoveEventInfo=jo(E,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(j,E)=>{this.end();const{onEnd:z,onSessionEnd:k,resumeAnimation:U}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&U&&U(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=Lc(j.type==="pointercancel"?this.lastMoveEventInfo:jo(E,this.transformPagePoint),this.history);this.startEvent&&z&&z(j,B),k&&k(j,B)},!qf(i))return;this.dragSnapToOrigin=d,this.handlers=l,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const y=al(i),m=jo(y,this.transformPagePoint),{point:v}=m,{timestamp:x}=de;this.history=[{...v,timestamp:x}];const{onSessionStart:S}=l;S&&S(i,Lc(m,this.history)),this.removeListeners=tl(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(i){let l=i.parentElement;for(;l;){const o=getComputedStyle(l);(Ap.has(o.overflowX)||Ap.has(o.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const l=this.scrollPositions.get(i);if(!l)return;const o=i===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},d={x:c.x-l.x,y:c.y-l.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(i,c),Ut.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ga(this.updatePoint)}}function jo(a,i){return i?{point:i(a.point)}:a}function Ep(a,i){return{x:a.x-i.x,y:a.y-i.y}}function Lc({point:a},i){return{point:a,delta:Ep(a,Qy(i)),offset:Ep(a,p7(i)),velocity:g7(i,.1)}}function p7(a){return a[0]}function Qy(a){return a[a.length-1]}function g7(a,i){if(a.length<2)return{x:0,y:0};let l=a.length-1,o=null;const c=Qy(a);for(;l>=0&&(o=a[l],!(c.timestamp-o.timestamp>_e(i)));)l--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&c.timestamp-o.timestamp>_e(i)*2&&(o=a[1]);const d=Fe(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function y7(a,{min:i,max:l},o){return i!==void 0&&a<i?a=o?qt(i,a,o.min):Math.max(a,i):l!==void 0&&a>l&&(a=o?qt(l,a,o.max):Math.min(a,l)),a}function jp(a,i,l){return{min:i!==void 0?a.min+i:void 0,max:l!==void 0?a.max+l-(a.max-a.min):void 0}}function v7(a,{top:i,left:l,bottom:o,right:c}){return{x:jp(a.x,l,c),y:jp(a.y,i,o)}}function Cp(a,i){let l=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([l,o]=[o,l]),{min:l,max:o}}function b7(a,i){return{x:Cp(a.x,i.x),y:Cp(a.y,i.y)}}function x7(a,i){let l=.5;const o=ye(a),c=ye(i);return c>o?l=Ks(i.min,i.max-o,a.min):o>c&&(l=Ks(a.min,a.max-c,i.min)),vn(0,1,l)}function S7(a,i){const l={};return i.min!==void 0&&(l.min=i.min-a.min),i.max!==void 0&&(l.max=i.max-a.min),l}const yf=.35;function T7(a=yf){return a===!1?a=0:a===!0&&(a=yf),{x:Mp(a,"left","right"),y:Mp(a,"top","bottom")}}function Mp(a,i,l){return{min:zp(a,i),max:zp(a,l)}}function zp(a,i){return typeof a=="number"?a:a[i]||0}const w7=new WeakMap;class A7{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=x=>{l&&this.snapToCursor(al(x).point),this.stopAnimation()},f=(x,S)=>{const{drag:j,dragPropagation:E,onDragStart:z}=this.getProps();if(j&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=n8(j),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(U=>{let B=this.getAxisMotionValue(U).get()||0;if(yn.test(B)){const{projection:q}=this.visualElement;if(q&&q.layout){const X=q.layout.layoutBox[U];X&&(B=ye(X)*(parseFloat(B)/100))}}this.originPoint[U]=B}),z&&Ut.update(()=>z(x,S),!1,!0),rf(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},p=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S;const{dragPropagation:j,dragDirectionLock:E,onDirectionLock:z,onDrag:k}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:U}=S;if(E&&this.currentDirection===null){this.currentDirection=j7(U),this.currentDirection!==null&&z&&z(this.currentDirection);return}this.updateAxis("x",S.point,U),this.updateAxis("y",S.point,U),this.visualElement.render(),k&&Ut.update(()=>k(x,S),!1,!0)},y=(x,S)=>{this.latestPointerEvent=x,this.latestPanInfo=S,this.stop(x,S),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Zy(i,{onSessionStart:d,onStart:f,onMove:p,onSessionEnd:y,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Xy(this.visualElement),element:this.visualElement.current})}stop(i,l){const o=i||this.latestPointerEvent,c=l||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:p}=this.getProps();p&&Ut.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,o){const{drag:c}=this.getProps();if(!o||!Co(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=y7(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&Ni(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=v7(o.layoutBox,i):this.constraints=!1,this.elastic=T7(l),c!==this.constraints&&!Ni(i)&&o&&this.constraints&&!this.hasMutatedConstraints&&mn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=S7(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!Ni(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=D8(o,c.root,this.visualElement.getTransformPagePoint());let f=b7(c.layout.layoutBox,d);if(l){const p=l(M8(f));this.hasMutatedConstraints=!!p,p&&(f=hy(p))}return f}startAnimation(i){const{drag:l,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),y=this.constraints||{},m=mn(v=>{if(!Co(v,l,this.currentDirection))return;let x=y&&y[v]||{};(f===!0||f===v)&&(x={min:0,max:0});const S=c?200:1e6,j=c?40:1e7,E={type:"inertia",velocity:o?i[v]:0,bounceStiffness:S,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,E)});return Promise.all(m).then(p)}startAxisValueAnimation(i,l){const o=this.getAxisMotionValue(i);return rf(this.visualElement,i),o.start(Bf(i,o,0,l,this.visualElement,!1))}stopAnimation(){mn(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[l];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){mn(l=>{const{drag:o}=this.getProps();if(!Co(l,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(l);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[l],y=d.get()||0;d.set(i[l]-qt(f,p,.5)+y)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:o}=this.visualElement;if(!Ni(l)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};mn(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const y=p.get();c[f]=x7({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),mn(f=>{if(!Co(f,i,null))return;const p=this.getAxisMotionValue(f),{min:y,max:m}=this.constraints[f];p.set(qt(y,m,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;w7.set(this.visualElement,this);const i=this.visualElement.current,l=Gs(i,"pointerdown",m=>{const{drag:v,dragListener:x=!0}=this.getProps(),S=m.target,j=S!==i&&r8(S);v&&x&&!j&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();Ni(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=E7(i,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,f=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Ut.read(c);const p=Ps(window,"resize",()=>this.scalePositionWithinConstraints()),y=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(mn(x=>{const S=this.getAxisMotionValue(x);S&&(this.originPoint[x]+=m[x].translate,S.set(S.get()+m[x].translate))}),this.visualElement.render())}));return()=>{p(),l(),f(),y&&y(),o&&o()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=yf,dragMomentum:p=!0}=i;return{...i,drag:l,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Np(a){let i=!0;return()=>{if(i){i=!1;return}a()}}function E7(a,i,l){const o=U1(a,Np(l)),c=U1(i,Np(l));return()=>{o(),c()}}function Co(a,i,l){return(i===!0||i===a)&&(l===null||l===a)}function j7(a,i=10){let l=null;return Math.abs(a.y)>i?l="y":Math.abs(a.x)>i&&(l="x"),l}class C7 extends va{constructor(i){super(i),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new A7(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Uc=a=>(i,l)=>{a&&Ut.update(()=>a(i,l),!1,!0)};class M7 extends va{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(i){this.session=new Zy(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xy(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Uc(i),onStart:Uc(l),onMove:Uc(o),onEnd:(d,f)=>{delete this.session,c&&Ut.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=Gs(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Hc=!1;class z7 extends O.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=i;d&&(l.group&&l.group.add(d),o&&o.register&&c&&o.register(d),Hc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,i.layoutDependency!==l&&f.setOptions({...f.options,layoutDependency:l}),Hc=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ut.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:i,layoutAnchor:l}=this.props,{projection:o}=i;o&&(o.options.layoutAnchor=l,o.root.didUpdate(),Gf.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:o}=this.props,{projection:c}=i;Hc=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Ky(a){const[i,l]=_6(),o=O.useContext(rg);return g.jsx(z7,{...a,layoutGroup:o,switchLayoutGroup:O.useContext(qy),isPresent:i,safeToRemove:l})}const N7={pan:{Feature:M7},drag:{Feature:C7,ProjectionNode:Oy,MeasureLayout:Ky}};function Dp(a,i,l){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,d=o[c];d&&Ut.postRender(()=>d(i,al(i)))}class D7 extends va{mount(){const{current:i}=this.node;i&&(this.unmount=i8(i,(l,o)=>(Dp(this.node,o,"Start"),c=>Dp(this.node,c,"End"))))}unmount(){}}class R7 extends va{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!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=tl(Ps(this.node.current,"focus",()=>this.onFocus()),Ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rp(a,i,l){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),d=o[c];d&&Ut.postRender(()=>d(i,al(i)))}class V7 extends va{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:o}=this.node.props;this.unmount=c8(i,(c,d)=>(Rp(this.node,d,"Start"),(f,{success:p})=>Rp(this.node,f,p?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:o?.tap===!1})}unmount(){}}const vf=new WeakMap,Gc=new WeakMap,O7=a=>{const i=vf.get(a.target);i&&i(a)},k7=a=>{a.forEach(O7)};function _7({root:a,...i}){const l=a||document;Gc.has(l)||Gc.set(l,{});const o=Gc.get(l),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(k7,{root:a,...i})),o[c]}function B7(a,i,l){const o=_7(i);return vf.set(a,l),o.observe(a),()=>{vf.delete(a),o.unobserve(a)}}const L7={some:0,all:1};class U7 extends va{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:i={}}=this.node.getProps(),{root:l,margin:o,amount:c="some",once:d}=i,f={root:l?l.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:L7[c]},p=y=>{const{isIntersecting:m}=y;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),S=m?v:x;S&&S(y)};this.stopObserver=B7(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(H7(i,l))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function H7({viewport:a={}},{viewport:i={}}={}){return l=>a[l]!==i[l]}const G7={inView:{Feature:U7},tap:{Feature:V7},focus:{Feature:R7},hover:{Feature:D7}},q7={layout:{ProjectionNode:Oy,MeasureLayout:Ky}},Y7={...d7,...G7,...N7,...q7},qc=o7(Y7,r7),Be=({label:a,children:i,variant:l="primary",size:o="medium",icon:c,onClick:d,removable:f=!1,className:p,maxWidth:y,appearance:m,onRemove:v,isLoading:x=!1})=>{const S=X7(l),j=m??(l==="outline"?"outline":"solid"),E=a??i,z=!!d,k={primary:{solid:"bg-[#11111198] text-white border border-transparent",outline:"border-2 border-[#11111198] text-[#11111198]",subtle:"bg-[#11111140] text-[#11111198] border border-transparent"},secondary:{solid:"bg-zinc-700 text-white border border-transparent",outline:"border-2 border-zinc-400 text-zinc-800 bg-white",subtle:"bg-zinc-100 text-zinc-800 border border-zinc-300"},success:{solid:"bg-emerald-600 text-white border border-transparent",outline:"border-2 border-emerald-600 text-emerald-700",subtle:"bg-emerald-100 text-emerald-700 border border-transparent"},warning:{solid:"bg-amber-500 text-white border border-transparent",outline:"border-2 border-amber-500 text-amber-700",subtle:"bg-amber-100 text-amber-700 border border-transparent"},error:{solid:"bg-destructive text-destructive-foreground border border-transparent",outline:"border-2 border-destructive text-destructive",subtle:"bg-destructive/20 text-destructive border border-transparent"}},U={small:"text-xs px-2 py-1",medium:"text-xs px-2.5 py-1",large:"text-sm px-3 py-1.5"},B=X=>{X.stopPropagation(),d?.()},q=X=>{X.stopPropagation(),v?.()};return g.jsxs(qc.div,{initial:{opacity:0,scale:.95,y:8,filter:"blur(8px)"},animate:{opacity:1,scale:1,y:0,filter:"blur(0px)"},transition:{duration:.32,ease:"easeInOut",type:"spring"},whileHover:{scale:z?1.04:1,backgroundColor:z&&S==="primary"?"#111111d1":void 0,transition:{duration:.2,ease:"easeInOut",type:"spring"}},onClick:B,style:{maxWidth:y},className:vt("inline-flex max-w-full items-center gap-1.5 rounded-lg font-medium shadow-[0_0_16px_rgba(0,0,0,0.14)] backdrop-blur-sm",k[S][j],U[o],z&&"cursor-pointer",p),children:[x?g.jsx(qc.div,{animate:{rotate:360},transition:{duration:1,ease:"linear",repeat:1/0},className:"flex-shrink-0",children:g.jsx(Yp,{className:"size-3.5"})}):c&&g.jsx("span",{className:"flex-shrink-0",children:c}),g.jsx("span",{className:"min-w-0 truncate",children:E}),f&&g.jsx(qc.button,{initial:{opacity:0,scale:.95,filter:"blur(8px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},whileHover:{scale:1.1,opacity:1,transition:{duration:.2,ease:"easeInOut",type:"spring"}},className:"flex items-center justify-center rounded-md bg-[#11111198] p-1 opacity-70 hover:opacity-100",onClick:q,type:"button",children:g.jsx(Po,{className:"size-3.5"})})]})};function X7(a){return a==="danger"?"error":a==="default"||a==="outline"?"primary":a}const Z7=Kp("rounded-lg border p-4 text-sm",{variants:{variant:{default:"border-border bg-card text-card-foreground",muted:"border-border bg-muted text-muted-foreground",destructive:"border-red-200 bg-red-50 text-red-700"}},defaultVariants:{variant:"default"}});function $e({className:a,variant:i,...l}){return g.jsx("div",{className:vt(Z7({variant:i,className:a})),...l})}function qs({className:a,...i}){return g.jsx("div",{className:vt("rounded-lg border border-border bg-card text-card-foreground",a),...i})}function Ys({className:a,...i}){return g.jsx("div",{className:vt("grid gap-1.5 p-4",a),...i})}function Xs({className:a,...i}){return g.jsx("h3",{className:vt("text-sm font-semibold tracking-tight",a),...i})}function Lo({className:a,...i}){return g.jsx("p",{className:vt("text-sm text-muted-foreground",a),...i})}function Zs({className:a,...i}){return g.jsx("div",{className:vt("p-4 pt-0",a),...i})}const Q7=[{animationDelay:"-1.2s",transform:"rotate(.0001deg) translate(146%)"},{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},{animationDelay:"-1.0s",transform:"rotate(60deg) translate(146%)"},{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}],K7=({size:a=20,color:i="#8f8f8f"})=>g.jsx("div",{style:{width:a,height:a},children:g.jsx("div",{className:"relative left-1/2 top-1/2",style:{width:a,height:a},children:Q7.map(l=>g.jsx("div",{className:"absolute -left-[10%] -top-[3.9%] h-[8%] w-[24%] animate-fade-spin rounded-[5px]",style:{backgroundColor:i,...l}},l.transform))})}),J7=[{tiny:"px-1.5 h-6 text-sm",small:"px-1.5 h-8 text-sm",medium:"px-2.5 h-10 text-sm",large:"px-3.5 h-12 text-base"},{tiny:"w-6 h-6 text-sm",small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-sm",large:"w-12 h-12 text-base"}],F7={primary:"bg-gray-1000 hover:bg-gray-1000-h text-background-100 fill-background-100",secondary:"bg-background-100 hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000 border border-gray-alpha-400",tertiary:"bg-none hover:bg-gray-alpha-200 text-gray-1000 fill-gray-1000",error:"bg-red-800 hover:bg-red-900 text-white fill-white",warning:"bg-amber-800 hover:bg-amber-850 text-black fill-black"},P7={square:{tiny:"rounded",small:"rounded-md",medium:"rounded-md",large:"rounded-lg"},circle:{tiny:"rounded-[100%]",small:"rounded-[100%]",medium:"rounded-[100%]",large:"rounded-[100%]"},rounded:{tiny:"rounded-[100px]",small:"rounded-[100px]",medium:"rounded-[100px]",large:"rounded-[100px]"}},Mo=({size:a="medium",type:i="primary",variant:l="styled",shape:o="square",svgOnly:c=!1,children:d,prefix:f,suffix:p,shadow:y=!1,loading:m=!1,disabled:v=!1,fullWidth:x=!1,className:S,...j})=>g.jsxs("button",{disabled:v,tabIndex:0,className:Qs("flex items-center justify-center gap-0.5 duration-150",J7[+c][a],v||m?"cursor-not-allowed border border-gray-400 bg-gray-100 text-gray-700":F7[i],P7[o][a],y&&"shadow-border-small border-none",x&&"w-full",l==="unstyled"?"h-fit bg-transparent px-0 text-gray-1000 outline-none hover:bg-transparent":"focus:shadow-focus-ring focus:outline-0",S),type:"button",...j,children:[m?g.jsx(K7,{size:a==="large"?24:16}):f,g.jsx("span",{className:Qs("relative overflow-hidden overflow-ellipsis whitespace-nowrap font-sans",a!=="tiny"&&l!=="unstyled"&&"px-1.5"),children:d}),!m&&p]}),$7=({className:a})=>g.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:a,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z"})}),W7=()=>g.jsx("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",className:"fill-gray-1000",children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z"})});let Yc=null,I7=0;const te={toasts:[],listeners:new Set,add(a,i,l,o,c,d){const f=I7++,p={id:f,text:a,preserve:l,action:o,onAction:c,onUndoAction:d,type:i};if(!p.preserve){p.remaining=3e3,p.start=Date.now();const y=()=>{this.toasts=this.toasts.filter(m=>m.id!==f),this.notify()};p.timeout=setTimeout(y,p.remaining),p.pause=()=>{p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0,p.remaining-=Date.now()-p.start)},p.resume=()=>{p.timeout||(p.start=Date.now(),p.timeout=setTimeout(y,p.remaining))}}this.toasts.push(p),this.notify()},remove(a){te.toasts=te.toasts.filter(i=>i.id!==a),te.notify()},subscribe(a){return te.listeners.add(a),()=>{te.listeners.delete(a)}},notify(){te.listeners.forEach(a=>a())}},tS=()=>{const[a,i]=O.useState([]),[l,o]=O.useState([]),[c,d]=O.useState(!1),f=E=>z=>{z&&E.measuredHeight==null&&(E.measuredHeight=z.getBoundingClientRect().height,te.notify())};O.useEffect(()=>(i([...te.toasts]),te.subscribe(()=>{i([...te.toasts])})),[]),O.useEffect(()=>{const E=a.filter(z=>!l.includes(z.id)).map(z=>z.id);E.length>0&&requestAnimationFrame(()=>{o(z=>[...z,...E])})},[l,a]);const y=Math.max(0,a.length-3),m=(E,z)=>{if(E===z-1)return"none";const k=z-1-E;let U=a[z-1]?.measuredHeight||63;for(let X=z-1;X>E;X--)c?U+=(a[X-1]?.measuredHeight||63)+10:U+=20;const B=-k,q=c?1:1-.05*k;return`translate3d(0, calc(100% - ${U}px), ${B}px) scale(${q})`},v=()=>{d(!0),te.toasts.forEach(E=>E.pause?.())},x=()=>{d(!1),te.toasts.forEach(E=>E.resume?.())},j=a.slice(y).reduce((E,z)=>E+(z.measuredHeight??63),0);return g.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[9999] w-[min(420px,calc(100vw-2rem))]",style:{height:j},children:g.jsx("div",{className:"pointer-events-auto relative w-full",style:{height:j},onMouseEnter:v,onMouseLeave:x,children:a.map((E,z)=>{const k=z>=y;return g.jsx("div",{ref:f(E),className:Qs("absolute bottom-0 right-0 h-fit rounded-xl p-4 leading-[21px] shadow-menu",{message:"bg-geist-background text-gray-1000",success:"bg-blue-700 text-contrast-fg",warning:"bg-amber-800 text-gray-1000 dark:text-gray-100",error:"bg-red-800 text-contrast-fg"}[E.type],k?"opacity-100":"opacity-0",z<y&&"pointer-events-none"),style:{width:"100%",transition:"all .35s cubic-bezier(.25,.75,.6,.98)",transform:l.includes(E.id)?m(z,a.length):"translate3d(0, 100%, 150px) scale(1)"},children:g.jsxs("div",{className:"flex flex-col items-center justify-between text-[.875rem]",children:[g.jsxs("div",{className:"flex h-full w-full items-center justify-between gap-4",children:[g.jsx("span",{children:E.text}),!E.action&&g.jsxs("div",{className:"flex gap-1",children:[E.onUndoAction&&g.jsx(Mo,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>{E.onUndoAction?.(),te.remove(E.id)},children:g.jsx(W7,{})}),g.jsx(Mo,{type:"tertiary",svgOnly:!0,size:"small",onClick:()=>te.remove(E.id),children:g.jsx($7,{className:{message:"fill-gray-1000",success:"fill-contrast-fg",warning:"fill-gray-1000 dark:fill-gray-100",error:"fill-contrast-fg"}[E.type]})})]})]}),E.action&&g.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[g.jsx(Mo,{type:"tertiary",size:"small",onClick:()=>te.remove(E.id),children:"Dismiss"}),g.jsx(Mo,{type:"primary",size:"small",onClick:()=>{E.onAction?.(),te.remove(E.id)},children:E.action})]})]})},E.id)})})})},zo=()=>{if(Yc)return;const a=document.createElement("div");a.className="fixed bottom-4 right-4 z-[9999]",document.body.appendChild(a),Yc=Gp.createRoot(a),Yc.render(g.jsx(tS,{}))},Hi=()=>({message:O.useCallback(({text:a,preserve:i,action:l,onAction:o,onUndoAction:c})=>{zo(),te.add(a,"message",i,l,o,c)},[]),success:O.useCallback(a=>{zo(),te.add(a,"success")},[]),warning:O.useCallback(a=>{zo(),te.add(a,"warning")},[]),error:O.useCallback(a=>{zo(),te.add(a,"error")},[])});function Jy({label:a}){return g.jsx($e,{variant:"muted",className:"m-4 text-center",children:a})}function gn({className:a,type:i,...l}){return g.jsx("input",{type:i,className:vt("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",a),...l})}function Vp({onChange:a,value:i}){return g.jsxs("label",{className:"relative block",children:[g.jsx(G3,{className:"pointer-events-none absolute left-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground"}),g.jsx(gn,{"aria-label":"Search logs",className:"h-8 w-44 pl-7 text-xs",onChange:l=>a(l.target.value),placeholder:"Search logs",value:i})]})}function Op({className:a,containerRef:i,emptyText:l,logs:o,query:c}){return g.jsx("div",{className:vt("h-full max-w-full overflow-auto font-mono text-[11px] leading-5",a),ref:i,role:"log",children:o.length?o.map((d,f)=>g.jsxs("div",{className:vt("grid min-w-max grid-cols-[168px_minmax(420px,1fr)] gap-2 border-b border-border/45 px-3 py-0.5",d.stream==="stderr"?"bg-red-50/70 text-red-800":"bg-emerald-50/35 text-zinc-800"),children:[g.jsx("span",{className:"text-muted-foreground",children:d.timestamp}),g.jsxs("span",{className:"whitespace-pre-wrap break-words",children:[d.stream==="stderr"?g.jsx("span",{className:"mr-2 rounded bg-red-100 px-1 font-semibold uppercase text-red-700",children:"stderr"}):null,nS(d.text,c)]})]},`${d.timestamp}-${d.stream}-${f}`)):g.jsx("div",{className:"p-3 text-muted-foreground",children:l})})}function eS(a){return`${a.timestamp} ${a.stream} ${a.text}`}function nS(a,i){const l=i.trim();if(!l)return a;const o=a.toLowerCase(),c=l.toLowerCase(),d=[];let f=0,p=o.indexOf(c);for(;p!==-1;){p>f&&d.push(a.slice(f,p));const y=p+l.length;d.push(g.jsx("mark",{className:"rounded bg-amber-200 px-0.5 text-amber-950",children:a.slice(p,y)},`${p}-${y}`)),f=y,p=o.indexOf(c,f)}return f<a.length&&d.push(a.slice(f)),d}function aS({ports:a}){const i=a.filter(o=>o.state==="occupied").length,l=a.filter(o=>o.state==="managed").length;return g.jsxs(qs,{className:"rounded-none border-0 border-b border-border bg-transparent",children:[g.jsxs(Ys,{className:"border-b border-border px-3 py-2",children:[g.jsxs(Xs,{className:"flex items-center gap-2",children:[g.jsx(x3,{className:"size-3.5"}),"Ports"]}),g.jsxs(Lo,{className:"text-xs",children:[l," managed, ",i," occupied by other"]})]}),g.jsx(Zs,{className:"p-0",children:a.length?g.jsx("div",{className:"divide-y divide-border",children:a.map(o=>g.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center gap-2 px-3 py-2",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"font-mono text-xs",children:[":",o.port]}),g.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:o.services.join(", ")||"Unassigned"}),o.urls[0]?g.jsx("div",{className:"truncate font-mono text-[10px] text-muted-foreground",children:o.urls[0]}):null]}),g.jsx(Fy,{port:o})]},o.port))}):g.jsx(Jy,{label:"No configured ports yet."})})]})}function Fy({compact:a,port:i}){const l=i.state==="managed"?"managed":i.state==="occupied"?"occupied by other":"available",o=i.state==="managed"?"success":i.state==="occupied"?"warning":"outline";return g.jsx(Be,{className:vt(a&&"max-w-36 truncate"),variant:o,children:l})}var Py=Hp();function Di({className:a,...i}){return g.jsx("label",{className:vt("grid gap-1.5 text-xs font-medium text-muted-foreground",a),...i})}const We='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ie='</title><path d="',tn='"/></svg>',iS={title:".NET",slug:"dotnet",get svg(){return We+".NET"+Ie+this.path+tn},path:"M24 8.77h-2.468v7.565h-1.425V8.77h-2.462V7.53H24zm-6.852 7.565h-4.821V7.53h4.63v1.24h-3.205v2.494h2.953v1.234h-2.953v2.604h3.396zm-6.708 0H8.882L4.78 9.863a2.896 2.896 0 0 1-.258-.51h-.036c.032.189.048.592.048 1.21v5.772H3.157V7.53h1.659l3.965 6.32c.167.261.275.442.323.54h.024c-.04-.233-.06-.629-.06-1.185V7.529h1.372zm-8.703-.693a.868.829 0 0 1-.869.829.868.829 0 0 1-.868-.83.868.829 0 0 1 .868-.828.868.829 0 0 1 .869.829Z",source:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/logo/dotnet-logo.svg",hex:"512BD4",guidelines:"https://github.com/dotnet/brand/blob/c7d0f51b8ec59531332d05fb27a5b758a7a3d689/dotnet-styleGuide-2024.pdf",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},sS={title:"Bun",slug:"bun",get svg(){return We+"Bun"+Ie+this.path+tn},path:"M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083 5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z",source:"https://bun.sh/press-kit",hex:"000000"},lS={title:"Deno",slug:"deno",get svg(){return We+"Deno"+Ie+this.path+tn},path:"M1.105 18.02A11.9 11.9 0 0 1 0 12.985q0-.698.078-1.376a12 12 0 0 1 .231-1.34A12 12 0 0 1 4.025 4.02a12 12 0 0 1 5.46-2.771 12 12 0 0 1 3.428-.23c1.452.112 2.825.477 4.077 1.05a12 12 0 0 1 2.78 1.774 12.02 12.02 0 0 1 4.053 7.078A12 12 0 0 1 24 12.985q0 .454-.036.914a12 12 0 0 1-.728 3.305 12 12 0 0 1-2.38 3.875c-1.33 1.357-3.02 1.962-4.43 1.936a4.4 4.4 0 0 1-2.724-1.024c-.99-.853-1.391-1.83-1.53-2.919a5 5 0 0 1 .128-1.518c.105-.38.37-1.116.76-1.437-.455-.197-1.04-.624-1.226-.829-.045-.05-.04-.13 0-.183a.155.155 0 0 1 .177-.053c.392.134.869.267 1.372.35.66.111 1.484.25 2.317.292 2.03.1 4.153-.813 4.812-2.627s.403-3.609-1.96-4.685-3.454-2.356-5.363-3.128c-1.247-.505-2.636-.205-4.06.582-3.838 2.121-7.277 8.822-5.69 15.032a.191.191 0 0 1-.315.19 12 12 0 0 1-1.25-1.634 12 12 0 0 1-.769-1.404M11.57 6.087c.649-.051 1.214.501 1.31 1.236.13.979-.228 1.99-1.41 2.013-1.01.02-1.315-.997-1.248-1.614.066-.616.574-1.575 1.35-1.635",source:"https://github.com/denoland/docs/blob/5dee713844c7447f80acd4093caa9d350d80bf36/static/img/logo.svg",hex:"000000",guidelines:"https://deno.com/brand",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},oS={title:"Docker",slug:"docker",get svg(){return We+"Docker"+Ie+this.path+tn},path:"M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z",source:"https://www.docker.com/company/newsroom/media-resources",hex:"2496ED"},rS={title:"Go",slug:"go",get svg(){return We+"Go"+Ie+this.path+tn},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},uS={title:"Node.js",slug:"nodedotjs",get svg(){return We+"Node.js"+Ie+this.path+tn},path:"M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z",source:"https://nodejs.org/en/about/branding",hex:"5FA04E",guidelines:"https://nodejs.org/en/about/branding"},cS={title:"npm",slug:"npm",get svg(){return We+"npm"+Ie+this.path+tn},path:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",source:"https://www.npmjs.com",hex:"CB3837",guidelines:"https://docs.npmjs.com/policies/logos-and-usage"},fS={title:"pnpm",slug:"pnpm",get svg(){return We+"pnpm"+Ie+this.path+tn},path:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM2 2h3.5v3.5H2zm8.25 0h3.498v3.5H10.25zm8.25 0H22v3.5h-3.5zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zm2 2H22v3.5h-3.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",source:"https://pnpm.io/logos",hex:"F69220"},dS={title:"Python",slug:"python",get svg(){return We+"Python"+Ie+this.path+tn},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},kp={title:"Rust",slug:"rust",get svg(){return We+"Rust"+Ie+this.path+tn},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},hS={title:"Vite",slug:"vite",get svg(){return We+"Vite"+Ie+this.path+tn},path:"M13.056 23.238a.57.57 0 0 1-1.02-.355v-5.202c0-.63-.512-1.143-1.144-1.143H5.148a.57.57 0 0 1-.464-.903l3.777-5.29c.54-.753 0-1.804-.93-1.804H.57a.574.574 0 0 1-.543-.746.6.6 0 0 1 .08-.157L5.008.78a.57.57 0 0 1 .467-.24h14.589a.57.57 0 0 1 .466.903l-3.778 5.29c-.54.755 0 1.806.93 1.806h5.745c.238 0 .424.138.513.322a.56.56 0 0 1-.063.603z",source:"https://github.com/voidzero-dev/community-design-resources/blob/55902097229cf01cf2a4ceb376f992f5cf306756/brand-assets/vite/vite-icon-color-bracketless.svg",hex:"9135FF"},mS={title:"Yarn",slug:"yarn",get svg(){return We+"Yarn"+Ie+this.path+tn},path:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",source:"https://github.com/yarnpkg/assets/blob/76d30ca2aebed5b73ea8131d972218fb860bd32d/yarn-kitten-circle.svg",hex:"2C8EBB",guidelines:"https://github.com/yarnpkg/assets/tree/76d30ca2aebed5b73ea8131d972218fb860bd32d",license:{type:"CC-BY-4.0",url:"https://spdx.org/licenses/CC-BY-4.0"}};function pS(a){const i=a.toLowerCase();return/\bvite\b/.test(i)?Ee.vite:/\bcargo\s+/.test(i)?Ee.cargo:/\brustc\b/.test(i)?Ee.rust:/\bdotnet\b/.test(i)?Ee.dotnet:/\bdocker(?:\s+compose|-compose|\s+)/.test(i)?Ee.docker:/\bpython3?\b|\buvicorn\b|\bfastapi\b/.test(i)?Ee.python:/\bgo\s+(run|test|build)\b|\bair\b/.test(i)?Ee.go:/\bbun\b/.test(i)?Ee.bun:/\bdeno\b/.test(i)?Ee.deno:/\bpnpm\b/.test(i)?Ee.pnpm:/\byarn\b/.test(i)?Ee.yarn:/\bnpm\b/.test(i)?Ee.npm:/\bnode\b/.test(i)?Ee.node:Ee.generic}const Ee={bun:{kind:"bun",label:"Bun"},cargo:{kind:"cargo",label:"Cargo"},deno:{kind:"deno",label:"Deno"},dotnet:{kind:"dotnet",label:".NET"},docker:{kind:"docker",label:"Docker"},generic:{kind:"generic",label:"Process"},go:{kind:"go",label:"Go"},node:{kind:"node",label:"Node"},npm:{kind:"npm",label:"npm"},pnpm:{kind:"pnpm",label:"pnpm"},python:{kind:"python",label:"Python"},rust:{kind:"rust",label:"Rust"},vite:{kind:"vite",label:"Vite"},yarn:{kind:"yarn",label:"Yarn"}};function Pf({command:a,compact:i}){const l=pS(a),o=gS[l.kind];return g.jsx("span",{"aria-label":`${l.label} process`,className:vt("inline-flex shrink-0 items-center justify-center rounded-md border bg-white shadow-sm",i?"size-6":"size-7",o?"border-zinc-200":"border-zinc-300 bg-zinc-100 text-zinc-700"),style:o?{color:`#${o.hex}`}:void 0,title:l.label,children:o?g.jsx("svg",{"aria-hidden":"true",className:i?"size-3.5":"size-4",fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:g.jsx("path",{d:o.path})}):g.jsx(Zp,{className:i?"size-3.5":"size-4"})})}const gS={bun:sS,cargo:kp,deno:lS,dotnet:iS,docker:oS,generic:null,go:rS,node:uS,npm:cS,pnpm:fS,python:dS,rust:kp,vite:hS,yarn:mS};function $y({active:a,baseUrl:i,onRefresh:l,restartAction:o,targetLabel:c}){return a?g.jsxs(g.Fragment,{children:[g.jsx(Xc,{intent:"restart",icon:g.jsx(B3,{}),label:"Restart",action:o,targetLabel:c,url:`${i}/restart`,onRefresh:l}),g.jsx(Xc,{intent:"stop",icon:g.jsx(K3,{}),label:"Stop",targetLabel:c,url:`${i}/stop`,onRefresh:l})]}):g.jsx(Xc,{intent:"start",icon:g.jsx(R3,{}),label:"Start",targetLabel:c,url:`${i}/start`,onRefresh:l})}function $s(a,i,l){const o=l instanceof Error?l.message:String(l);return`${a} failed for ${i}: ${o}`}function Xc({action:a,intent:i="neutral",icon:l,label:o,targetLabel:c,url:d,onRefresh:f}){const[p,y]=O.useState(!1),{error:m,success:v}=Hi();return g.jsxs(zt,{className:yS[i],variant:"outline",size:"sm",disabled:p,onClick:async()=>{y(!0);try{a?await a():await on(d,{}),v(`${o} requested for ${c}.`),await f()}catch(x){m($s(o,c,x))}finally{y(!1)}},children:[l,o]})}const yS={neutral:"",restart:"border-amber-600 bg-amber-600 text-white hover:bg-amber-700",start:"border-emerald-600 bg-emerald-600 text-white hover:bg-emerald-700",stop:"border-red-600 bg-red-600 text-white hover:bg-red-700"};function vS({children:a,icon:i,onClose:l,title:o}){return O.useEffect(()=>{function c(d){d.key==="Escape"&&l()}return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[l]),Py.createPortal(g.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",onMouseDown:l,children:g.jsxs("div",{"aria-modal":"true",className:"flex max-h-[min(760px,calc(100vh-2rem))] w-full max-w-lg flex-col overflow-hidden rounded-lg border border-border bg-card shadow-xl",onMouseDown:c=>c.stopPropagation(),role:"dialog",children:[g.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[g.jsx("div",{className:"flex size-8 items-center justify-center rounded-md border border-border bg-background text-foreground [&_svg]:size-4",children:i}),g.jsx("h2",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:o}),g.jsx(zt,{"aria-label":"Close dialog",onClick:l,size:"icon",type:"button",variant:"ghost",children:g.jsx(Po,{})})]}),g.jsx("div",{className:"min-h-0 overflow-auto p-4",children:a})]})}),document.body)}const bS=[{label:"npm",command:"npm run dev",description:"Node dev server"},{label:"pnpm",command:"pnpm dev",description:"pnpm dev server"},{label:"yarn",command:"yarn dev",description:"Yarn dev server"},{label:"bun",command:"bun dev",description:"Bun dev server"},{label:"Deno",command:"deno task dev",description:"Deno dev task"},{label:"Vite",badgeCommand:"vite",command:"npm run dev -- --host 127.0.0.1",description:"Vite app"},{label:"Go",command:"go run .",description:"Go app"},{label:"Rust",command:"cargo run",description:"Rust app"},{label:".NET",command:"dotnet watch run",description:".NET app"},{label:"Python",command:"python manage.py runserver",description:"Python app"},{label:"Docker",command:"docker compose up",description:"Docker Compose stack"}];function xS({cwd:a,onRefresh:i,onSaved:l}){const{error:o,success:c}=Hi(),[d,f]=O.useState(""),[p,y]=O.useState(""),[m,v]=O.useState(a),[x,S]=O.useState(""),[j,E]=O.useState(""),[z,k]=O.useState(null),[U,B]=O.useState(!1);O.useEffect(()=>{k(null)},[p,m,x]);async function q(Z){Z.preventDefault();try{await on("/api/services",{name:d,command:p,cwd:m,port:x,description:j}),f(""),y(""),v(a),S(""),E(""),k(null),c(`${d} added.`),await i(),l?.()}catch(nt){o($s("Add service",d||"service",nt))}}async function X(){if(!p.trim()){o("Test command failed for service: command is required.");return}B(!0);try{k(await tx({command:p,cwd:m,port:x}))}catch(Z){o($s("Test command",d||"service",Z))}finally{B(!1)}}return g.jsxs("form",{className:"grid gap-3",onSubmit:q,children:[g.jsxs("fieldset",{className:"grid gap-2",children:[g.jsx("legend",{className:"text-xs font-medium",children:"Recommended Dev Commands"}),g.jsx("div",{className:"grid grid-cols-2 gap-1.5 sm:grid-cols-4",children:bS.map(Z=>g.jsxs(zt,{className:"justify-start gap-1.5",onClick:()=>{y(Z.command),E(Z.description)},size:"sm",type:"button",variant:"outline",children:[g.jsx(Pf,{command:Z.badgeCommand??Z.command,compact:!0}),g.jsx("span",{className:"truncate",children:Z.label})]},Z.label))})]}),g.jsxs(Di,{children:["Name",g.jsx(gn,{className:"h-8 text-sm",name:"name",onChange:Z=>f(Z.target.value),placeholder:"backend",required:!0,value:d})]}),g.jsxs(Di,{children:["Command",g.jsx(gn,{className:"h-8 font-mono text-sm",name:"command",onChange:Z=>y(Z.target.value),placeholder:"npm run dev",required:!0,value:p})]}),g.jsxs(Di,{children:["Working Directory",g.jsx(gn,{className:"h-8 font-mono text-sm",name:"cwd",onChange:Z=>v(Z.target.value),required:!0,value:m})]}),g.jsxs(Di,{children:["Port",g.jsx(gn,{className:"h-8 text-sm",inputMode:"numeric",name:"port",onChange:Z=>S(Z.target.value),placeholder:"3001",value:x})]}),g.jsxs(Di,{children:["Description",g.jsx(gn,{className:"h-8 text-sm",name:"description",onChange:Z=>E(Z.target.value),placeholder:"API server",value:j})]}),z?g.jsx(SS,{result:z}):null,g.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[g.jsxs(zt,{disabled:U||!p.trim()||!m.trim(),onClick:X,type:"button",variant:"outline",children:[g.jsx(Zp,{}),U?"Testing...":"Test Command"]}),g.jsx(zt,{type:"submit",children:"Add Service"})]})]})}function SS({result:a}){const i=[...a.stdout,...a.stderr].slice(0,4);return g.jsxs($e,{variant:a.ok?"default":"destructive",children:[g.jsx("div",{className:"font-medium",children:a.ok?"Command test passed":"Command test failed"}),g.jsx("div",{className:"mt-1 text-xs",children:a.message}),i.length?g.jsx("pre",{className:"mt-2 max-h-24 overflow-auto rounded-md bg-background/80 p-2 font-mono text-[11px] leading-4",children:i.join(`
10
+ `)}):null]})}function Wy({initialName:a="",initialServices:i=[],onSaved:l,onRefresh:o,originalName:c,services:d,submitLabel:f="Save Group"}){const{error:p,success:y}=Hi();async function m(v){v.preventDefault();const x=v.currentTarget,S=new FormData(x),j=String(S.get("name")??""),E=S.getAll("services").map(z=>String(z)).filter(Boolean);try{await on("/api/bundles",{name:j,originalName:c,services:E.join(",")}),x.reset(),y(`${j} group saved.`),await o(),l?.()}catch(z){p($s("Save group",j||"group",z))}}return g.jsxs("form",{className:"grid gap-2.5",onSubmit:m,children:[g.jsxs(Di,{children:["Group name",g.jsx(gn,{className:"h-8 text-sm",defaultValue:a,name:"name",placeholder:"full-stack",required:!0})]}),g.jsxs("fieldset",{className:"grid gap-1.5",children:[g.jsx("legend",{className:"text-xs font-medium",children:"Services"}),d.length?d.map(v=>g.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-sm",children:[g.jsx("input",{className:"size-4 accent-primary",defaultChecked:i.includes(v.name),name:"services",type:"checkbox",value:v.name}),g.jsx(Pf,{command:v.command,compact:!0}),g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate text-sm font-medium",children:v.name}),g.jsx("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:v.command})]})]},v.name)):g.jsx($e,{variant:"muted",children:"Add services before creating a group."})]}),g.jsx(zt,{className:"h-8",disabled:!d.length,type:"submit",children:f})]})}function TS({allServices:a,group:i,onRefresh:l,ports:o,services:c,statuses:d}){const[f,p]=O.useState(!1),[y,m]=O.useState(!1),v=c.some(x=>t2(d[x.name]?.state));return g.jsxs("section",{children:[g.jsxs("div",{className:"grid gap-2 bg-muted/35 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[g.jsx("div",{className:"min-w-0",children:g.jsxs("button",{className:"flex max-w-full items-start gap-2 text-left",onClick:()=>m(x=>!x),type:"button",children:[g.jsx(Ws,{className:vt("mt-0.5 size-3.5 shrink-0 text-muted-foreground transition-transform",y&&"-rotate-90")}),g.jsxs("span",{className:"min-w-0",children:[g.jsxs("span",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Be,{appearance:"subtle",className:"shadow-none",size:"small",variant:"secondary",children:"group"}),g.jsx("span",{className:"text-sm font-medium",children:i.name}),g.jsx(Be,{variant:"secondary",children:i.services.length})]}),g.jsx("span",{className:"mt-0.5 block truncate text-xs text-muted-foreground",children:i.services.join(", ")})]})]})}),g.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[g.jsxs(zt,{"aria-expanded":f,onClick:()=>p(x=>!x),size:"sm",type:"button",variant:"outline",children:[g.jsx(N3,{}),"Edit"]}),g.jsx($y,{active:v,baseUrl:`/api/bundles/${encodeURIComponent(i.name)}`,restartAction:async()=>{await on(`/api/bundles/${encodeURIComponent(i.name)}/stop`,{}),await on(`/api/bundles/${encodeURIComponent(i.name)}/start`,{})},targetLabel:`group ${i.name}`,onRefresh:l})]})]}),f?g.jsx("div",{className:"border-t border-border bg-background/65 p-3",children:g.jsx(Wy,{initialName:i.name,initialServices:i.services,onRefresh:l,onSaved:()=>p(!1),originalName:i.name,services:a,submitLabel:"Save Group"})}):null,y?null:g.jsx("div",{className:"divide-y divide-border border-t border-border bg-background/45",children:c.length?c.map(x=>g.jsx(Iy,{service:x,status:d[x.name],ports:o,onRefresh:l},x.name)):g.jsx($e,{variant:"muted",className:"m-4",children:"This group does not match any registered services."})})]})}function Iy({service:a,status:i,ports:l,onRefresh:o}){const c=i?.state??"stopped",d=t2(c),f=i?.url??(a.port?AS(a.port):void 0),p=a.port?l.find(v=>v.port===a.port):void 0,y=ES(i?.url),m=y?l.find(v=>v.port===y):void 0;return g.jsxs("div",{className:"grid gap-2 px-3 py-2 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[g.jsx(Pf,{command:a.command}),g.jsx("span",{className:"text-sm font-medium",children:a.name}),g.jsx(jS,{state:c}),a.port?g.jsxs(Be,{variant:"outline",children:[":",a.port]}):null,p?g.jsx(Fy,{port:p,compact:!0}):null,m&&m.port!==a.port?g.jsxs(Be,{variant:"success",children:["actual :",m.port]}):null]}),g.jsx("div",{className:"mt-0.5 truncate font-mono text-[11px] text-muted-foreground",children:a.command}),g.jsx("div",{className:"truncate text-[11px] text-muted-foreground",children:a.cwd})]}),g.jsxs("div",{className:"flex flex-wrap justify-end gap-1.5",children:[g.jsx(wS,{service:a,onRefresh:o}),f?g.jsxs(zt,{onClick:()=>window.open(f,"_blank","noopener,noreferrer"),size:"sm",type:"button",variant:"outline",title:f,children:[g.jsx(Ib,{}),"Open"]}):null,g.jsx($y,{active:d,baseUrl:`/api/services/${encodeURIComponent(a.name)}`,targetLabel:a.name,onRefresh:o})]})]})}function t2(a){return a==="running"||a==="starting"}function wS({service:a,onRefresh:i}){const[l,o]=O.useState(a.port?String(a.port):""),[c,d]=O.useState(!1),{error:f,success:p}=Hi(),y=l.trim()!==(a.port?String(a.port):"");O.useEffect(()=>{o(a.port?String(a.port):"")},[a.port]);async function m(v){v.preventDefault(),d(!0);try{await on("/api/services",{name:a.name,command:a.command,cwd:a.cwd,port:l,description:a.description}),p(`Port saved for ${a.name}.`),await i()}catch(x){f($s("Save port",a.name,x))}finally{d(!1)}}return g.jsxs("form",{className:"flex items-center gap-1.5",onSubmit:m,children:[g.jsx(gn,{"aria-label":`Port for ${a.name}`,className:"h-8 w-20 font-mono text-xs",inputMode:"numeric",min:1,max:65535,onChange:v=>o(v.target.value),placeholder:"port",type:"number",value:l}),g.jsx(zt,{"aria-label":`Save port for ${a.name}`,disabled:c||!y,className:"size-8",size:"icon",title:"Save port",type:"submit",variant:"outline",children:g.jsx(U3,{})})]})}function AS(a){return`http://127.0.0.1:${a}`}function ES(a){if(a)try{const i=new URL(a);return i.port?Number(i.port):void 0}catch{return}}function jS({state:a}){return g.jsx(Be,{variant:a==="running"?"success":a==="exited"?"danger":a==="starting"?"warning":"outline",className:vt(a==="running"&&"font-mono"),children:a})}function CS({data:a,onRefresh:i}){const l=a.config.services[0]?.name??"",[o,c]=O.useState(l),[d,f]=O.useState(a.logs),[p,y]=O.useState(""),[m,v]=O.useState(null),[x,S]=O.useState(!1),j=O.useRef(null),E=O.useRef({}),{error:z,message:k,success:U}=Hi(),B=O.useMemo(()=>new Set(a.config.bundles.flatMap(K=>K.services)),[a.config.bundles]),q=O.useMemo(()=>{const K=new Map;for(const I of a.config.bundles)for(const ft of I.services)K.has(ft)||K.set(ft,I.name);return K},[a.config.bundles]),X=O.useMemo(()=>a.config.services.filter(K=>!B.has(K.name)),[a.config.services,B]),Z=a.config.bundles.length>0||X.length>0,nt=p.trim().toLowerCase(),$=O.useMemo(()=>nt?d.filter(K=>eS(K).toLowerCase().includes(nt)):d,[d,nt]);O.useEffect(()=>{!o&&l&&c(l)},[l,o]),O.useEffect(()=>{if(!o){f([]);return}let K=!0;return c1(o).then(I=>{K&&f(I)}).catch(()=>{K&&f([])}),()=>{K=!1}},[o,a.runtime.services]),O.useEffect(()=>{if(!x||!o)return;let K=!0;const I=async()=>{try{const pt=await c1(o);K&&f(pt)}catch{K&&f([])}};I();const ft=window.setInterval(I,1e3);return()=>{K=!1,window.clearInterval(ft)}},[o,x]),O.useEffect(()=>{if(!x)return;const K=j.current;K&&(K.scrollTop=K.scrollHeight)},[x,$]),O.useEffect(()=>{const K=Object.fromEntries(a.config.services.map(ft=>[ft.name,a.runtime.services[ft.name]?.state??"stopped"])),I=E.current;if(Object.keys(I).length){const ft=new Map,pt=new Map;for(const Rt of a.config.services){const At=K[Rt.name],Nt=I[Rt.name];if(!Nt||Nt===At)continue;const R=a.runtime.services[Rt.name],Q=q.get(Rt.name);if(Q){const F=ft.get(Q)??new Map;if(F.set(At,(F.get(At)??0)+1),ft.set(Q,F),At==="exited"){const ct=pt.get(Q)??[];ct.push(R?.exitCode),pt.set(Q,ct)}continue}if(At==="running")U(`${Rt.name} is running.`);else if(At==="stopped")k({text:`${Rt.name} stopped.`});else if(At==="starting")k({text:`${Rt.name} is starting.`});else if(At==="exited"){const F=R?.exitCode===void 0||R.exitCode===null?"":` with code ${R.exitCode}`;z(`${Rt.name} exited${F}.`)}}for(const[Rt,At]of ft)MS({exitCodes:pt.get(Rt)??[],groupName:Rt,showErrorToast:z,showMessageToast:k,showSuccessToast:U,transitions:At})}E.current=K},[a.config.services,a.runtime.services,q,z,k,U]);const Y=o?nt?`No log lines match "${p.trim()}".`:`No logs captured for ${o}.`:"No services registered.";return x?g.jsx("div",{className:"flex h-full min-h-0 bg-card/85",children:g.jsxs(qs,{className:"flex min-h-0 min-w-0 flex-1 flex-col rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"shrink-0 border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Streaming Logs"}),g.jsx(Lo,{className:"text-xs",children:"Polling the selected service every second and pinned to latest output."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Vp,{value:p,onChange:y}),g.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!a.config.services.length,onChange:K=>c(K.target.value),value:o,children:a.config.services.map(K=>g.jsx("option",{value:K.name,children:K.name},K.name))}),g.jsxs(zt,{"aria-pressed":x,className:"border-emerald-600 bg-emerald-50 text-emerald-700",onClick:()=>S(!1),size:"sm",type:"button",variant:"outline",children:[g.jsx(u1,{}),"Streaming"]})]})]})}),g.jsx(Zs,{className:"min-h-0 flex-1 p-0",children:g.jsx(Op,{containerRef:j,emptyText:Y,logs:$,query:p})})]})}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden bg-card/85 xl:grid-cols-[minmax(0,1fr)_340px]",children:[g.jsxs("div",{className:"min-h-0 min-w-0 overflow-auto",children:[g.jsxs(qs,{className:"min-w-0 rounded-none border-0 border-b border-border bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Services"}),g.jsx(Lo,{className:"text-xs",children:"Grouped services are nested; ungrouped services stay standalone."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsxs(zt,{"aria-haspopup":"dialog",onClick:()=>v("service"),size:"sm",type:"button",variant:"outline",children:[g.jsx(Qc,{}),"Add Service"]}),g.jsxs(zt,{"aria-haspopup":"dialog",onClick:()=>v("group"),size:"sm",type:"button",variant:"outline",children:[g.jsx(r1,{}),"Create Group"]})]})]})}),g.jsx(Zs,{className:"p-0",children:Z?g.jsxs("div",{className:"divide-y divide-border",children:[a.config.bundles.map(K=>g.jsx(TS,{group:K,onRefresh:i,ports:a.ports,allServices:a.config.services,services:a.config.services.filter(I=>K.services.includes(I.name)),statuses:a.runtime.services},K.name)),X.length?g.jsxs("div",{children:[a.config.bundles.length?g.jsx("div",{className:"bg-muted/55 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:"Ungrouped Services"}):null,g.jsx("div",{className:"divide-y divide-border",children:X.map(K=>g.jsx(Iy,{service:K,status:a.runtime.services[K.name],ports:a.ports,onRefresh:i},K.name))})]}):null]}):g.jsx(Jy,{label:"No services registered yet."})})]}),g.jsxs(qs,{className:"min-w-0 rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-3 py-2",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[g.jsxs("div",{children:[g.jsx(Xs,{children:"Recent Logs"}),g.jsx(Lo,{className:"text-xs",children:"Updates with dashboard refresh. Use Stream for a full-page live view."})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx(Vp,{value:p,onChange:y}),g.jsx("select",{className:"h-8 max-w-72 rounded-md border border-border bg-background px-2.5 text-xs",disabled:!a.config.services.length,onChange:K=>c(K.target.value),value:o,children:a.config.services.map(K=>g.jsx("option",{value:K.name,children:K.name},K.name))}),g.jsxs(zt,{"aria-pressed":x,disabled:!o,onClick:()=>S(!0),size:"sm",type:"button",variant:"outline",children:[g.jsx(u1,{}),"Stream"]})]})]})}),g.jsx(Zs,{className:"min-w-0 p-0",children:g.jsx(Op,{className:"max-h-[320px]",containerRef:j,emptyText:Y,logs:$,query:p})})]})]}),g.jsx("div",{className:"min-h-0 overflow-auto border-l border-border",children:g.jsx(aS,{ports:a.ports})})]}),m?g.jsx(vS,{icon:m==="service"?g.jsx(Qc,{}):g.jsx(r1,{}),onClose:()=>v(null),title:m==="service"?"Add Service":"Create Group",children:m==="service"?g.jsx(xS,{cwd:a.cwd,onRefresh:i,onSaved:()=>v(null)}):g.jsx(Wy,{services:a.config.services,onRefresh:i,onSaved:()=>v(null)})}):null]})}function MS({exitCodes:a,groupName:i,showErrorToast:l,showMessageToast:o,showSuccessToast:c,transitions:d}){if(d.size===1){const[y]=d.keys();if(y==="running")c(`${i} group is running.`);else if(y==="stopped")o({text:`${i} group stopped.`});else if(y==="starting")o({text:`${i} group is starting.`});else if(y==="exited"){const m=a.filter(x=>x!=null),v=m.length?` with code ${m.join(", ")}`:"";l(`${i} group exited${v}.`)}return}const f=[...d.entries()].map(([y,m])=>`${m} ${y}`).join(", "),p=`${i} group updated: ${f}.`;d.has("exited")?l(p):o({text:p})}function zS({activeHunkIndex:a=0,diff:i}){const l=DS(i),o=O.useRef([]);return O.useEffect(()=>{o.current[a]?.scrollIntoView({block:"start",behavior:"smooth"})},[a,i]),g.jsx("div",{className:"h-full min-h-0 overflow-auto bg-white text-xs leading-6",children:g.jsx("div",{className:"min-w-max font-mono",children:l.map((c,d)=>g.jsxs("div",{className:vt("grid grid-cols-[3rem_3rem_minmax(40rem,1fr)]",c.kind==="add"&&"bg-emerald-50 text-emerald-800",c.kind==="delete"&&"bg-red-50 text-red-800",_p(l,d)&&c.hunkIndex===a&&"outline outline-1 outline-offset-[-1px] outline-primary/35"),ref:c.hunkIndex!==null&&_p(l,d)?f=>{o.current[c.hunkIndex??0]=f}:void 0,children:[g.jsx(Bp,{value:c.oldLine}),g.jsx(Bp,{value:c.newLine}),g.jsx("span",{className:"whitespace-pre px-2",children:c.content||" "})]},`${d}-${c.content}`))})})}function NS(a){return a.split(`
11
+ `).reduce((i,l)=>(l.startsWith("@@")?i.hunks+=1:l.startsWith("+")&&!l.startsWith("+++")?i.additions+=1:l.startsWith("-")&&!l.startsWith("---")&&(i.deletions+=1),i),{additions:0,deletions:0,hunks:0})}function DS(a){const i=RS(a);return i.some(l=>l.kind==="hunk")?i.filter(l=>l.kind!=="meta"&&l.kind!=="hunk"):i}function RS(a){let i=null,l=null,o=null;return a.split(`
12
+ `).map(c=>{if(VS(c))return i=null,l=null,o=null,{content:c,hunkIndex:o,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("@@")){const f=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(c);return f&&(i=Number(f[1]),l=Number(f[2])),o=(o??-1)+1,{content:c,hunkIndex:o,kind:"hunk",oldLine:null,newLine:null}}if(i===null||l===null)return{content:c,hunkIndex:null,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("\\ No newline"))return{content:c,hunkIndex:o,kind:"meta",oldLine:null,newLine:null};if(c.startsWith("+")&&!c.startsWith("+++")){const f={content:c,hunkIndex:o,kind:"add",oldLine:null,newLine:l};return l+=1,f}if(c.startsWith("-")&&!c.startsWith("---")){const f={content:c,hunkIndex:o,kind:"delete",oldLine:i,newLine:null};return i+=1,f}const d={content:c,hunkIndex:o,kind:"context",oldLine:i,newLine:l};return i+=1,l+=1,d})}function _p(a,i){const l=a[i]?.hunkIndex;if(l===null)return!1;const o=a.findIndex(c=>c.hunkIndex===l&&(c.kind==="add"||c.kind==="delete"));return o!==-1?o===i:a.findIndex(c=>c.hunkIndex===l)===i}function VS(a){return a.startsWith("diff --git ")||a.startsWith("index ")||a.startsWith("--- ")||a.startsWith("+++ ")||a.startsWith("new file mode ")||a.startsWith("deleted file mode ")||a.startsWith("old mode ")||a.startsWith("new mode ")||a.startsWith("similarity index ")||a.startsWith("rename from ")||a.startsWith("rename to ")||a.startsWith("Binary files ")}function Bp({value:a}){return g.jsx("span",{className:vt("select-none border-r border-border/70 px-2 text-right text-muted-foreground",a===null&&"text-transparent"),children:a??"-"})}const OS=new Set(["c","cpp","cs","go","java","js","jsx","kt","mjs","py","rs","swift","ts","tsx"]),kS=new Set([".env",".gitignore","components.json","dockerfile","package.json","tsconfig.json","vite.config.ts"]),_S=new Set(["conf","config","ini","toml","yaml","yml"]),BS=new Set(["csv","json","sql","xml"]),LS=new Set(["md","mdx","rst","txt"]),US=new Set(["gif","jpeg","jpg","png","svg","webp"]),HS=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock"]),GS=new Set(["css","less","sass","scss"]);function qS(a){const i=a.split("/").pop()?.toLowerCase()??a.toLowerCase(),l=i.includes(".")?i.split(".").pop()??"":"";return HS.has(i)||i.endsWith(".lock")?"lock":YS(i)?"test":kS.has(i)||_S.has(l)?"config":GS.has(l)?"style":US.has(l)?"image":LS.has(l)?"document":BS.has(l)?"data":OS.has(l)?"code":"generic"}function YS(a){return a.includes(".test.")||a.includes(".spec.")||a.endsWith("_test.go")}function XS({branch:a,error:i,files:l,selectedFile:o,onSelectFile:c}){const d=O.useMemo(()=>FS(l).filter(y=>y.files.length),[l]),[f,p]=O.useState({staged:!1,unstaged:!1,untracked:!1});return g.jsxs(qs,{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-none border-0 bg-transparent",children:[g.jsx(Ys,{className:"border-b border-border px-2.5 py-1.5",children:g.jsxs(Xs,{className:"flex items-center justify-between gap-2",children:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(Uo,{className:"size-3.5"}),g.jsx("span",{className:"truncate",children:"Changes"})]}),g.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[a?g.jsx(Be,{variant:"outline",children:a}):null,g.jsx(Be,{variant:"secondary",children:l.length})]})]})}),g.jsx(Zs,{className:"min-h-0 flex-1 overflow-auto p-0",children:d.length?d.map(y=>g.jsx(ZS,{collapsed:f[y.id],group:y,onSelectFile:c,onToggle:()=>p(m=>({...m,[y.id]:!m[y.id]})),selectedFile:o},y.id)):g.jsx($e,{variant:"muted",className:"m-3 text-center",children:i??"No changed files."})})]})}function ZS({collapsed:a,group:i,onSelectFile:l,onToggle:o,selectedFile:c}){const d=a?Kb:Ws;return g.jsxs("section",{className:"border-b border-border last:border-b-0",children:[g.jsxs("button",{className:"flex w-full items-center justify-between gap-2 bg-muted/55 px-2.5 py-1 text-left text-[10px] font-semibold uppercase text-muted-foreground hover:bg-muted",onClick:o,type:"button",children:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(d,{className:"size-3.5"}),g.jsx("span",{className:"truncate",children:i.label})]}),g.jsx(Be,{className:"min-w-6 justify-center font-mono shadow-none",size:"small",variant:"outline",children:i.files.length})]}),a?null:g.jsx("div",{children:i.files.map(f=>g.jsx(QS,{active:c===f.path,file:f,group:i.id,onClick:()=>l(f.path)},f.path))})]})}function QS({active:a,file:i,group:l,onClick:o}){const c=i.path.split("/").pop()||i.path,d=i.path.split("/").slice(0,-1).join("/");return g.jsxs(zt,{className:vt("grid h-auto w-full grid-cols-[1fr_auto] items-center gap-2 rounded-none border-b border-border px-2.5 py-1.5 text-left",a&&"bg-muted"),onClick:o,type:"button",variant:"ghost",children:[g.jsxs("span",{className:"min-w-0",children:[g.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[g.jsx(JS,{path:i.path}),g.jsx("span",{className:"truncate text-[13px] font-medium",children:c})]}),d?g.jsx("span",{className:"block truncate pl-5 text-[10px] text-muted-foreground",children:d}):null]}),g.jsx("span",{className:vt("w-3.5 shrink-0 text-center font-mono text-[11px] font-semibold",l==="untracked"&&"text-amber-700",l==="staged"&&"text-emerald-700",l==="unstaged"&&"text-zinc-800"),children:KS(i,l)})]})}function KS(a,i){return i==="untracked"?"?":i==="staged"?a.index.trim():a.workingTree.trim()}function JS({path:a}){const i=qS(a),l=PS[i];return g.jsx(l,{"aria-label":`${i} file`,className:vt("size-3.5 shrink-0",$S[i])})}function FS(a){return[{id:"unstaged",label:"Changes",files:a.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.workingTree.trim())},{id:"staged",label:"Staged Changes",files:a.filter(i=>!(i.index==="?"&&i.workingTree==="?")&&i.index.trim()&&!i.workingTree.trim())},{id:"untracked",label:"Untracked Files",files:a.filter(i=>i.index==="?"&&i.workingTree==="?")}]}const PS={code:e3,config:Z3,data:Fb,document:a3,generic:s3,image:p3,lock:v3,style:T3,test:o3},$S={code:"text-sky-600",config:"text-zinc-600",data:"text-emerald-700",document:"text-blue-700",generic:"text-muted-foreground",image:"text-fuchsia-700",lock:"text-amber-700",style:"text-rose-700",test:"text-violet-700"};function WS({activeHunkIndex:a,filePaths:i,hunkCount:l,pendingNextFilePath:o,selectedFile:c}){if(l>0&&a<l-1)return{kind:"hunk",activeHunkIndex:a+1};const d=i.findIndex(p=>p===c),f=i[d+1];return f?o===f?{kind:"file",filePath:f}:{kind:"confirm-next-file",filePath:f}:{kind:"none"}}function IS({data:a}){const[i,l]=O.useState(a.git.status?.files[0]?.path??""),[o,c]=O.useState(""),[d,f]=O.useState(null),[p,y]=O.useState(0),[m,v]=O.useState(null),x=a.git.status?.files??[],S=O.useMemo(()=>x.map(Z=>Z.path),[x]),j=O.useMemo(()=>NS(o),[o]);O.useEffect(()=>{const Z=a.git.status?.files[0]?.path??"";l(nt=>nt&&a.git.status?.files.some($=>$.path===nt)?nt:Z)},[a.git.status?.files]),O.useEffect(()=>{if(!i){c("");return}let Z=!0;return f(null),W3(i).then(nt=>{Z&&(c(nt),y(0),v(null))}).catch(nt=>{Z&&f(nt instanceof Error?nt.message:String(nt))}),()=>{Z=!1}},[i]);function E(Z){y(0),v(null),l(Z)}function z(){const Z=WS({activeHunkIndex:p,filePaths:S,hunkCount:j.hunks,pendingNextFilePath:m,selectedFile:i});Z.kind==="hunk"?(v(null),y(Z.activeHunkIndex)):Z.kind==="confirm-next-file"?v(Z.filePath):Z.kind==="file"?E(Z.filePath):v(null)}function k(){if(v(null),p>0){y($=>$-1);return}const Z=x.findIndex($=>$.path===i),nt=x[Z-1];nt&&E(nt.path)}const U=x.findIndex(Z=>Z.path===i),B=!!(j.hunks&&p<j.hunks-1||x[U+1]),q=!!(p>0||x[U-1]),X=m?`End of file. Click Next again to open ${m}.`:null;return g.jsxs("div",{className:"grid h-full min-h-0 overflow-hidden border-0 bg-card/85 xl:grid-cols-[320px_minmax(0,1fr)]",children:[g.jsx("aside",{className:"flex min-h-0 flex-col overflow-hidden",children:g.jsx(XS,{branch:a.git.status?.branch||void 0,error:a.git.error,files:a.git.status?.files??[],selectedFile:i,onSelectFile:E})}),g.jsxs("section",{className:"flex min-h-0 min-w-0 flex-col border-l border-border bg-white",children:[g.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-border px-3 py-1.5",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("h2",{className:"truncate text-[13px] font-semibold tracking-tight",children:i||"Diff"}),g.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-muted-foreground",children:[g.jsx("span",{children:"Long rows scroll horizontally inside the editor pane."}),j.additions||j.deletions?g.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[g.jsxs("span",{className:"text-emerald-700",children:["+",j.additions]}),g.jsxs("span",{className:"text-red-700",children:["-",j.deletions]})]}):null]})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[X?g.jsx("span",{className:"max-w-72 truncate rounded border border-amber-200 bg-amber-50 px-2 py-1 text-[11px] text-amber-900",children:X}):null,g.jsxs(zt,{disabled:!i||!q,onClick:k,size:"sm",type:"button",variant:"outline",children:[g.jsx(Gb,{}),"Previous"]}),g.jsxs(zt,{disabled:!i||!B,onClick:z,size:"sm",type:"button",variant:"outline",children:[g.jsx(Ub,{}),"Next"]})]})]}),g.jsx("div",{className:"min-h-0 min-w-0 flex-1",children:d?g.jsx("div",{className:"p-4",children:g.jsx($e,{variant:"destructive",children:d})}):i?g.jsx(zS,{activeHunkIndex:p,diff:o||"No unstaged diff for this file."}):g.jsx("div",{className:"p-4",children:g.jsx($e,{variant:"muted",className:"border-dashed p-12 text-center",children:"Select a changed file to inspect its diff."})})})]})]})}function t9({initialPath:a,onSelect:i,selectedPath:l}){const[o,c]=O.useState(a),[d,f]=O.useState(null),[p,y]=O.useState(null),[m,v]=O.useState(!1),x=e9(d);return O.useEffect(()=>{c(a)},[a]),O.useEffect(()=>{let S=!0;return v(!0),y(null),I3(o).then(j=>{S&&(f(j),i(j.path))}).catch(j=>{S&&y(j instanceof Error?j.message:String(j))}).finally(()=>{S&&v(!1)}),()=>{S=!1}},[o,i]),g.jsxs("div",{className:"rounded-md border border-border bg-background",children:[g.jsxs("div",{className:"flex items-center gap-2 border-b border-border p-2",children:[x?g.jsx(zt,{"aria-label":"Open parent folder",onClick:()=>d&&c(d.parent),size:"icon",type:"button",variant:"ghost",children:g.jsx(Ws,{className:"rotate-90"})}):null,g.jsx("div",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:d?.path??o}),m?g.jsx(Yp,{className:"size-4 animate-spin text-muted-foreground"}):null]}),g.jsxs("div",{className:"max-h-56 overflow-auto p-1",children:[p?g.jsx($e,{variant:"destructive",className:"m-1",children:p}):null,!p&&d?.entries.length===0?g.jsx($e,{variant:"muted",className:"m-1 text-center",children:"No folders here."}):null,d?.entries.map(S=>g.jsxs(zt,{className:vt("h-8 w-full justify-start rounded-sm px-2 text-left",l===S.path&&"bg-muted"),onClick:()=>c(S.path),title:S.path,type:"button",variant:"ghost",children:[g.jsx(xf,{className:"text-accent"}),g.jsx("span",{className:"truncate",children:S.name})]},S.path))]})]})}function e9(a){return!!(a&&a.parent!==a.path)}function Zc(a){return a.split(/[\\/]/).filter(Boolean).pop()??"project"}function n9({data:a,onRefresh:i}){const[l,o]=O.useState(!1),[c,d]=O.useState(a.git.cwd),[f,p]=O.useState(null),[y,m]=O.useState(!1),[v,x]=O.useState(a.git.cwd),S=O.useRef(null),j=a.git.selectedRepository,E=j?.name??Zc(a.git.cwd);O.useEffect(()=>{d(a.git.cwd),x(a.git.cwd)},[a.git.cwd]),O.useEffect(()=>{if(!l)return;function B(q){S.current&&q.target instanceof Node&&!S.current.contains(q.target)&&o(!1)}return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[l]);const z=O.useCallback(B=>{d(B),p(null)},[]);async function k(B){await on("/api/git/select",{name:B}),o(!1),await i()}async function U(B){B.preventDefault();const q=c.trim();if(!a9(q)){p("Please add an absolute path. Paths beginning with ~ are not expanded here.");return}try{await on("/api/git/repositories",{name:Zc(q),path:q}),o(!1),p(null),await i()}catch(X){p(X instanceof Error?X.message:String(X))}}return g.jsxs("div",{className:"relative z-30",ref:S,children:[g.jsxs(zt,{className:"max-w-[220px] justify-start gap-2 rounded-md border-border bg-card",onClick:()=>o(B=>!B),size:"sm",type:"button",variant:"outline",children:[g.jsx(xf,{className:"text-muted-foreground"}),g.jsx("span",{className:"truncate",children:E}),g.jsx(Ws,{className:vt("ml-auto transition-transform",l&&"rotate-180")})]}),l?g.jsxs("div",{className:"absolute right-0 top-10 w-[min(520px,calc(100vw-2rem))] overflow-hidden rounded-xl border border-border bg-card shadow-lg",children:[g.jsxs("div",{className:"flex items-start gap-3 border-b border-border p-3",children:[g.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg border border-border bg-background",children:g.jsx($b,{className:"size-4"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:"text-sm font-semibold",children:"Git Projects"}),g.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:j?.path??a.git.cwd})]}),g.jsx(Be,{variant:"outline",children:a.config.gitRepositories.length})]}),g.jsx("div",{className:"max-h-72 overflow-auto",children:a.config.gitRepositories.length?g.jsx("div",{className:"divide-y divide-border",children:a.config.gitRepositories.map(B=>{const q=B.name===j?.name;return g.jsxs("button",{className:vt("grid w-full grid-cols-[1fr_auto] items-center gap-4 px-4 py-3 text-left transition-colors hover:bg-muted",q&&"bg-muted/70"),onClick:()=>{k(B.name)},type:"button",children:[g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate font-medium",children:B.name}),g.jsx("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:B.path})]}),q?g.jsx(Xb,{className:"size-4"}):null]},B.name)})}):g.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"No saved Git projects yet."})}),g.jsxs("div",{className:"border-t border-border bg-muted/20 p-3",children:[g.jsx("div",{className:"mb-2 text-xs font-semibold uppercase text-muted-foreground",children:"Current Path"}),g.jsx("div",{className:"mb-4 truncate rounded-md border border-border bg-background px-3 py-2 font-mono text-xs",children:a.git.cwd}),g.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:U,children:[g.jsx(gn,{"aria-label":"Paste absolute path",onChange:B=>{d(B.target.value),p(null)},placeholder:"/Users/you/projects/app",value:c}),g.jsxs(zt,{type:"submit",children:[g.jsx(Qc,{}),"Add ",Zc(c)]})]}),g.jsx($e,{className:vt("mt-2 px-3 py-2 text-xs",f?"":"border-dashed"),variant:f?"destructive":"muted",children:f??"Please add an absolute path. Paths beginning with ~ are not expanded."}),g.jsxs(zt,{className:"mt-3 w-full",onClick:()=>{x(c||a.git.cwd),m(!0)},type:"button",variant:"outline",children:[g.jsx(u3,{}),"Browse folders"]})]})]}):null,y?g.jsx(i9,{initialPath:c||a.git.cwd,selectedPath:v,onCancel:()=>m(!1),onSelect:x,onUse:()=>{z(v),m(!1)}}):null]})}function a9(a){return a.startsWith("/")}function i9({initialPath:a,onCancel:i,onSelect:l,onUse:o,selectedPath:c}){return Py.createPortal(g.jsx("div",{className:"fixed inset-0 z-[1000] grid place-items-center bg-black/35 px-4",children:g.jsxs("div",{className:"w-full max-w-2xl rounded-xl border border-border bg-card p-4 shadow-xl",children:[g.jsxs("div",{className:"mb-3 flex items-center gap-3",children:[g.jsx("div",{className:"flex size-8 items-center justify-center rounded-lg border border-border bg-background",children:g.jsx(xf,{className:"size-4"})}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:"text-sm font-semibold",children:"Choose Git Project Folder"}),g.jsx("div",{className:"truncate font-mono text-xs text-muted-foreground",children:c})]}),g.jsx(zt,{"aria-label":"Close folder picker",onClick:i,size:"icon",variant:"ghost",children:g.jsx(Po,{})})]}),g.jsx(t9,{initialPath:a,onSelect:l,selectedPath:c}),g.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[g.jsx(zt,{onClick:i,type:"button",variant:"outline",children:"Cancel"}),g.jsx(zt,{onClick:o,type:"button",children:"Use this folder"})]})]})}),document.body)}function s9({branches:a,currentBranch:i,disabled:l,onRefresh:o}){const[c,d]=O.useState(!1),[f,p]=O.useState(""),[y,m]=O.useState(null),[v,x]=O.useState(null),[S,j]=O.useState(null),E=a.filter(X=>!X.remote),z=a.filter(X=>X.remote);async function k(X,Z){m(X),j(null),x(null);try{await Z(),await o()}catch(nt){j(nt instanceof Error?nt.message:String(nt))}finally{m(null)}}async function U(X){await k(`switch:${X}`,async()=>{await on("/api/git/branches/switch",{name:X}),d(!1)})}async function B(){await k("fetch",async()=>{await on("/api/git/fetch",{}),x("Fetched latest branch refs.")})}async function q(X){X.preventDefault();const Z=f.trim();if(!Z){j("Branch name is required.");return}await k("create",async()=>{await on("/api/git/branches",{name:Z}),p(""),d(!1)})}return g.jsxs("div",{className:"fixed bottom-3 right-4 z-50 flex items-end",children:[c?g.jsxs("div",{"aria-label":"Switch Git branch",className:"mb-11 w-[min(460px,calc(100vw-2rem))] rounded-lg border border-border bg-card shadow-xl",role:"dialog",children:[g.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-border p-3",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[g.jsx(Uo,{className:"size-4 text-muted-foreground"}),g.jsx("span",{className:"truncate text-sm font-semibold",children:i||"Branches"})]}),g.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[g.jsx(zt,{"aria-label":"Fetch branches",disabled:l||y!==null,onClick:()=>{B()},size:"icon",title:"Fetch branches",type:"button",variant:"ghost",children:g.jsx(Xp,{className:vt(y==="fetch"&&"animate-spin")})}),g.jsx(zt,{"aria-label":"Close branch dialog",onClick:()=>d(!1),size:"icon",type:"button",variant:"ghost",children:g.jsx(Po,{})})]})]}),g.jsx("div",{className:"max-h-72 overflow-auto",children:a.length?g.jsxs(g.Fragment,{children:[g.jsx(Lp,{branches:E,busy:y!==null,disabled:l,label:"Local",onSwitch:U}),g.jsx(Lp,{branches:z,busy:y!==null,disabled:l,label:"Remote",onSwitch:U})]}):g.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"No branches found."})}),g.jsxs("div",{className:"border-t border-border p-3",children:[g.jsxs("form",{className:"grid gap-2 sm:grid-cols-[1fr_auto]",onSubmit:q,children:[g.jsx(gn,{"aria-label":"New branch name",disabled:l||y!==null,onChange:X=>{p(X.target.value),j(null),x(null)},placeholder:"feature/new-work",value:f}),g.jsxs(zt,{disabled:l||y!==null,type:"submit",children:[g.jsx(h3,{}),"Create"]})]}),S||v?g.jsx($e,{className:"mt-3 px-3 py-2 text-xs",variant:S?"destructive":"muted",children:S??v}):null]})]}):null,g.jsxs(zt,{className:"h-8 max-w-[260px] gap-2 rounded-md shadow-lg",disabled:l,onClick:()=>d(X=>!X),size:"sm",title:"Switch Git branch",type:"button",variant:"default",children:[g.jsx(Uo,{className:"size-4"}),g.jsx("span",{className:"truncate font-mono text-xs",children:i||"No branch"}),g.jsx(Ws,{className:vt("size-4 transition-transform",c&&"rotate-180")})]})]})}function Lp({branches:a,busy:i,disabled:l,label:o,onSwitch:c}){return g.jsxs("section",{children:[g.jsx("div",{className:"border-b border-border bg-muted/60 px-3 py-1.5 text-[11px] font-semibold uppercase text-muted-foreground",children:o}),a.length?a.map(d=>g.jsxs("button",{className:vt("grid w-full grid-cols-[1fr_auto] items-center gap-2 border-b border-border px-3 py-2 text-left text-sm last:border-b-0 hover:bg-muted",d.current&&"bg-muted/70"),disabled:l||i||d.current,onClick:()=>{c(d.name)},type:"button",children:[g.jsxs("span",{className:"min-w-0",children:[g.jsx("span",{className:"block truncate font-medium",children:d.name}),d.upstream?g.jsxs("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:["tracks ",d.upstream]}):null]}),g.jsx(Be,{variant:d.current?"success":d.remote?"outline":"secondary",children:d.current?"current":d.remote?"remote":"local"})]},`${d.remote?"remote":"local"}:${d.name}`)):g.jsxs("div",{className:"border-b border-border px-3 py-3 text-sm text-muted-foreground",children:["No ",o.toLowerCase()," branches."]})]})}function l9(){const[a,i]=O.useState(()=>window.location.pathname.startsWith("/git")?"git":"services"),[l,o]=O.useState(null),[c,d]=O.useState(null),[f,p]=O.useState(!0),{error:y,success:m}=Hi(),[v,x]=O.useState(()=>window.localStorage.getItem("nomoreide:sidebar")==="collapsed"),S=O.useCallback(async(E={})=>{E.silent||p(!0),d(null);try{o(await $3()),E.notify&&m("Dashboard refreshed.")}catch(z){const k=z instanceof Error?z.message:String(z);d(k),y(k)}finally{p(!1)}},[y,m]);O.useEffect(()=>{S()},[S]),O.useEffect(()=>{function E(){document.visibilityState==="visible"&&S({silent:!0})}const z=window.setInterval(E,5e3);return window.addEventListener("focus",E),document.addEventListener("visibilitychange",E),()=>{window.clearInterval(z),window.removeEventListener("focus",E),document.removeEventListener("visibilitychange",E)}},[a,S]),O.useEffect(()=>{const E=a==="git"?"/git":"/";window.location.pathname!==E&&window.history.pushState(null,"",E)},[a]),O.useEffect(()=>{window.localStorage.setItem("nomoreide:sidebar",v?"collapsed":"expanded")},[v]);const j=O.useMemo(()=>l?Object.values(l.runtime.services).filter(E=>E.state==="running").length:0,[l]);return g.jsxs("div",{className:"h-screen overflow-hidden",children:[g.jsxs("div",{className:"mx-auto flex h-screen max-w-[1500px]",children:[g.jsxs("aside",{className:vt("hidden h-screen shrink-0 overflow-auto border-r border-border bg-card/85 px-4 py-5 backdrop-blur transition-[width] duration-200 md:block",v?"w-[76px]":"w-64"),children:[g.jsxs("div",{className:vt("flex items-center px-2",v?"justify-center":"gap-3"),children:[g.jsx("div",{className:"flex size-9 items-center justify-center overflow-hidden rounded-md bg-primary",children:g.jsx("img",{alt:"NoMoreIDE",className:"size-full object-cover",src:P3})}),g.jsxs("div",{className:vt("min-w-0",v&&"hidden"),children:[g.jsx("div",{className:"text-sm font-semibold",children:"NoMoreIDE"}),g.jsx("div",{className:"font-mono text-[11px] text-muted-foreground",children:"127.0.0.1 console"})]}),g.jsx(zt,{"aria-label":v?"Expand navigation":"Collapse navigation",className:vt("ml-auto",v&&"hidden"),size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:g.jsx(A3,{})})]}),g.jsx("div",{className:vt("mt-4",!v&&"hidden"),children:g.jsx(zt,{"aria-label":"Expand navigation",className:"w-full",size:"icon",variant:"ghost",onClick:()=>x(E=>!E),children:g.jsx(j3,{})})}),g.jsxs("nav",{className:"mt-5 grid gap-1",children:[g.jsx(Up,{active:a==="services",badge:j,collapsed:v,icon:g.jsx(Y3,{}),label:"Services",onClick:()=>i("services")}),g.jsx(Up,{active:a==="git",collapsed:v,icon:g.jsx(Uo,{}),label:"Git Review",onClick:()=>i("git")})]})]}),g.jsxs("main",{className:"flex h-screen min-w-0 flex-1 flex-col px-0 py-0",children:[g.jsxs("header",{className:vt("flex shrink-0 flex-wrap items-center justify-between gap-3 border border-border bg-card/90 px-4 py-3 backdrop-blur","border-x-0 border-t-0 border-b"),children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(M3,{className:"size-4 text-muted-foreground md:hidden"}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:a==="git"?"Git Review":"Services"}),g.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:l?.git.selectedRepository?.name??l?.git.cwd??"Local workspace"})]})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[c?g.jsx(Be,{variant:"danger",children:c}):null,l&&a==="git"?g.jsx(n9,{data:l,onRefresh:S}):null,g.jsxs(zt,{variant:"outline",size:"sm",onClick:()=>{S({notify:!0})},children:[g.jsx(Xp,{className:vt(f&&"animate-spin")}),"Refresh"]})]})]}),f&&!l?g.jsx($e,{variant:"muted",children:"Loading NoMoreIDE state..."}):null,g.jsxs("div",{className:"min-h-0 flex-1 overflow-hidden",children:[l&&a==="services"?g.jsx(CS,{data:l,onRefresh:S}):null,l&&a==="git"?g.jsx(IS,{data:l}):null]})]})]}),l&&a==="git"?g.jsx(s9,{branches:l.git.branches,currentBranch:l.git.status?.branch||void 0,disabled:!l.git.status,onRefresh:S}):null]})}function Up({active:a,badge:i,collapsed:l,icon:o,label:c,onClick:d}){return g.jsxs(zt,{"aria-label":c,title:l?c:void 0,className:vt("w-full",l?"relative justify-center px-0":"justify-start"),variant:a?"default":"ghost",onClick:d,type:"button",children:[g.jsx("span",{className:vt(l&&"[&_svg]:size-4"),children:o}),g.jsx("span",{className:vt("min-w-0 flex-1 text-left",l&&"hidden"),children:c}),i!==void 0?g.jsx(Be,{appearance:i>0?"solid":"outline",className:vt("min-w-6 justify-center px-1.5 font-mono shadow-none",a?"border-primary-foreground/40 bg-primary-foreground/15 text-primary-foreground":i>0?"":"border-border bg-background text-muted-foreground",l&&"absolute right-1.5 top-1.5 h-4 min-w-4 rounded-full px-1 text-[10px] leading-none shadow-none"),size:"small",variant:i>0?"success":"outline",children:i}):null]})}Gp.createRoot(document.getElementById("root")).render(g.jsx(O.StrictMode,{children:g.jsx(l9,{})}));