lumen-app 0.4.2__py3-none-any.whl → 0.4.4__py3-none-any.whl

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.
@@ -1,56 +0,0 @@
1
- function f1(n,i){for(var r=0;r<i.length;r++){const s=i[r];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function dy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var zu={exports:{}},er={};var av;function d1(){if(av)return er;av=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return er.Fragment=i,er.jsx=r,er.jsxs=r,er}var lv;function h1(){return lv||(lv=1,zu.exports=d1()),zu.exports}var h=h1(),Du={exports:{}},pe={};var iv;function m1(){if(iv)return pe;iv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),N=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=N&&T[N]||T["@@iterator"],typeof T=="function"?T:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function A(T,Y,J){this.props=T,this.context=Y,this.refs=C,this.updater=J||j}A.prototype.isReactComponent={},A.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=A.prototype;function z(T,Y,J){this.props=T,this.context=Y,this.refs=C,this.updater=J||j}var V=z.prototype=new M;V.constructor=z,w(V,A.prototype),V.isPureReactComponent=!0;var Z=Array.isArray;function $(){}var q={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function I(T,Y,J){var W=J.ref;return{$$typeof:n,type:T,key:Y,ref:W!==void 0?W:null,props:J}}function se(T,Y){return I(T.type,Y,T.props)}function fe(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function oe(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(J){return Y[J]})}var me=/\/+/g;function de(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):Y.toString(36)}function ve(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then($,$):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,Y,J,W,re){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var F=!1;if(T===null)F=!0;else switch(ue){case"bigint":case"string":case"number":F=!0;break;case"object":switch(T.$$typeof){case n:case i:F=!0;break;case b:return F=T._init,D(F(T._payload),Y,J,W,re)}}if(F)return re=re(T),F=W===""?"."+de(T,0):W,Z(re)?(J="",F!=null&&(J=F.replace(me,"$&/")+"/"),D(re,Y,J,"",function(Ce){return Ce})):re!=null&&(fe(re)&&(re=se(re,J+(re.key==null||T&&T.key===re.key?"":(""+re.key).replace(me,"$&/")+"/")+F)),Y.push(re)),1;F=0;var be=W===""?".":W+":";if(Z(T))for(var ye=0;ye<T.length;ye++)W=T[ye],ue=be+de(W,ye),F+=D(W,Y,J,ue,re);else if(ye=E(T),typeof ye=="function")for(T=ye.call(T),ye=0;!(W=T.next()).done;)W=W.value,ue=be+de(W,ye++),F+=D(W,Y,J,ue,re);else if(ue==="object"){if(typeof T.then=="function")return D(ve(T),Y,J,W,re);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return F}function P(T,Y,J){if(T==null)return T;var W=[],re=0;return D(T,W,"","",function(ue){return Y.call(J,ue,re++)}),W}function B(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(J){(T._status===0||T._status===-1)&&(T._status=1,T._result=J)},function(J){(T._status===0||T._status===-1)&&(T._status=2,T._result=J)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var le=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},he={map:P,forEach:function(T,Y,J){P(T,function(){Y.apply(this,arguments)},J)},count:function(T){var Y=0;return P(T,function(){Y++}),Y},toArray:function(T){return P(T,function(Y){return Y})||[]},only:function(T){if(!fe(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=x,pe.Children=he,pe.Component=A,pe.Fragment=r,pe.Profiler=u,pe.PureComponent=z,pe.StrictMode=s,pe.Suspense=v,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return q.H.useMemoCache(T)}},pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,Y,J){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var W=w({},T.props),re=T.key;if(Y!=null)for(ue in Y.key!==void 0&&(re=""+Y.key),Y)!Q.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(W[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)W.children=J;else if(1<ue){for(var F=Array(ue),be=0;be<ue;be++)F[be]=arguments[be+2];W.children=F}return I(T.type,re,W)},pe.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},pe.createElement=function(T,Y,J){var W,re={},ue=null;if(Y!=null)for(W in Y.key!==void 0&&(ue=""+Y.key),Y)Q.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(re[W]=Y[W]);var F=arguments.length-2;if(F===1)re.children=J;else if(1<F){for(var be=Array(F),ye=0;ye<F;ye++)be[ye]=arguments[ye+2];re.children=be}if(T&&T.defaultProps)for(W in F=T.defaultProps,F)re[W]===void 0&&(re[W]=F[W]);return I(T,ue,re)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:m,render:T}},pe.isValidElement=fe,pe.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:B}},pe.memo=function(T,Y){return{$$typeof:y,type:T,compare:Y===void 0?null:Y}},pe.startTransition=function(T){var Y=q.T,J={};q.T=J;try{var W=T(),re=q.S;re!==null&&re(J,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then($,le)}catch(ue){le(ue)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),q.T=Y}},pe.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},pe.use=function(T){return q.H.use(T)},pe.useActionState=function(T,Y,J){return q.H.useActionState(T,Y,J)},pe.useCallback=function(T,Y){return q.H.useCallback(T,Y)},pe.useContext=function(T){return q.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,Y){return q.H.useDeferredValue(T,Y)},pe.useEffect=function(T,Y){return q.H.useEffect(T,Y)},pe.useEffectEvent=function(T){return q.H.useEffectEvent(T)},pe.useId=function(){return q.H.useId()},pe.useImperativeHandle=function(T,Y,J){return q.H.useImperativeHandle(T,Y,J)},pe.useInsertionEffect=function(T,Y){return q.H.useInsertionEffect(T,Y)},pe.useLayoutEffect=function(T,Y){return q.H.useLayoutEffect(T,Y)},pe.useMemo=function(T,Y){return q.H.useMemo(T,Y)},pe.useOptimistic=function(T,Y){return q.H.useOptimistic(T,Y)},pe.useReducer=function(T,Y,J){return q.H.useReducer(T,Y,J)},pe.useRef=function(T){return q.H.useRef(T)},pe.useState=function(T){return q.H.useState(T)},pe.useSyncExternalStore=function(T,Y,J){return q.H.useSyncExternalStore(T,Y,J)},pe.useTransition=function(){return q.H.useTransition()},pe.version="19.2.4",pe}var rv;function Rf(){return rv||(rv=1,Du.exports=m1()),Du.exports}var g=Rf();const xa=dy(g),jf=f1({__proto__:null,default:xa},[g]);var Lu={exports:{}},tr={},Uu={exports:{}},Hu={};var sv;function p1(){return sv||(sv=1,(function(n){function i(D,P){var B=D.length;D.push(P);e:for(;0<B;){var le=B-1>>>1,he=D[le];if(0<u(he,P))D[le]=P,D[B]=he,B=le;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var P=D[0],B=D.pop();if(B!==P){D[0]=B;e:for(var le=0,he=D.length,T=he>>>1;le<T;){var Y=2*(le+1)-1,J=D[Y],W=Y+1,re=D[W];if(0>u(J,B))W<he&&0>u(re,J)?(D[le]=re,D[W]=B,le=W):(D[le]=J,D[Y]=B,le=Y);else if(W<he&&0>u(re,B))D[le]=re,D[W]=B,le=W;else break e}}return P}function u(D,P){var B=D.sortIndex-P.sortIndex;return B!==0?B:D.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var v=[],y=[],b=1,x=null,N=3,E=!1,j=!1,w=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function V(D){for(var P=r(y);P!==null;){if(P.callback===null)s(y);else if(P.startTime<=D)s(y),P.sortIndex=P.expirationTime,i(v,P);else break;P=r(y)}}function Z(D){if(w=!1,V(D),!j)if(r(v)!==null)j=!0,$||($=!0,oe());else{var P=r(y);P!==null&&ve(Z,P.startTime-D)}}var $=!1,q=-1,Q=5,I=-1;function se(){return C?!0:!(n.unstable_now()-I<Q)}function fe(){if(C=!1,$){var D=n.unstable_now();I=D;var P=!0;try{e:{j=!1,w&&(w=!1,M(q),q=-1),E=!0;var B=N;try{t:{for(V(D),x=r(v);x!==null&&!(x.expirationTime>D&&se());){var le=x.callback;if(typeof le=="function"){x.callback=null,N=x.priorityLevel;var he=le(x.expirationTime<=D);if(D=n.unstable_now(),typeof he=="function"){x.callback=he,V(D),P=!0;break t}x===r(v)&&s(v),V(D)}else s(v);x=r(v)}if(x!==null)P=!0;else{var T=r(y);T!==null&&ve(Z,T.startTime-D),P=!1}}break e}finally{x=null,N=B,E=!1}P=void 0}}finally{P?oe():$=!1}}}var oe;if(typeof z=="function")oe=function(){z(fe)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,de=me.port2;me.port1.onmessage=fe,oe=function(){de.postMessage(null)}}else oe=function(){A(fe,0)};function ve(D,P){q=A(function(){D(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return N},n.unstable_next=function(D){switch(N){case 1:case 2:case 3:var P=3;break;default:P=N}var B=N;N=P;try{return D()}finally{N=B}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(D,P){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var B=N;N=D;try{return P()}finally{N=B}},n.unstable_scheduleCallback=function(D,P,B){var le=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?le+B:le):B=le,D){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=B+he,D={id:b++,callback:P,priorityLevel:D,startTime:B,expirationTime:he,sortIndex:-1},B>le?(D.sortIndex=B,i(y,D),r(v)===null&&D===r(y)&&(w?(M(q),q=-1):w=!0,ve(Z,B-le))):(D.sortIndex=he,i(v,D),j||E||(j=!0,$||($=!0,oe()))),D},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(D){var P=N;return function(){var B=N;N=P;try{return D.apply(this,arguments)}finally{N=B}}}})(Hu)),Hu}var ov;function v1(){return ov||(ov=1,Uu.exports=p1()),Uu.exports}var Bu={exports:{}},bt={};var cv;function y1(){if(cv)return bt;cv=1;var n=Rf();function i(v){var y="https://react.dev/errors/"+v;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,y,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:v,containerInfo:y,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,y){if(v==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,bt.createPortal=function(v,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(v,y,null,b)},bt.flushSync=function(v){var y=d.T,b=s.p;try{if(d.T=null,s.p=2,v)return v()}finally{d.T=y,s.p=b,s.d.f()}},bt.preconnect=function(v,y){typeof v=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(v,y))},bt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},bt.preinit=function(v,y){if(typeof v=="string"&&y&&typeof y.as=="string"){var b=y.as,x=m(b,y.crossOrigin),N=typeof y.integrity=="string"?y.integrity:void 0,E=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?s.d.S(v,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:x,integrity:N,fetchPriority:E}):b==="script"&&s.d.X(v,{crossOrigin:x,integrity:N,fetchPriority:E,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},bt.preinitModule=function(v,y){if(typeof v=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=m(y.as,y.crossOrigin);s.d.M(v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&s.d.M(v)},bt.preload=function(v,y){if(typeof v=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=m(b,y.crossOrigin);s.d.L(v,b,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},bt.preloadModule=function(v,y){if(typeof v=="string")if(y){var b=m(y.as,y.crossOrigin);s.d.m(v,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else s.d.m(v)},bt.requestFormReset=function(v){s.d.r(v)},bt.unstable_batchedUpdates=function(v,y){return v(y)},bt.useFormState=function(v,y,b){return d.H.useFormState(v,y,b)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.4",bt}var uv;function hy(){if(uv)return Bu.exports;uv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Bu.exports=y1(),Bu.exports}var fv;function g1(){if(fv)return tr;fv=1;var n=v1(),i=Rf(),r=hy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(s(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return v(o),e;if(c===l)return v(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=c;else{for(var p=!1,S=o.child;S;){if(S===a){p=!0,a=o,l=c;break}if(S===l){p=!0,l=o,a=c;break}S=S.sibling}if(!p){for(S=c.child;S;){if(S===a){p=!0,a=c,l=o;break}if(S===l){p=!0,l=c,a=o;break}S=S.sibling}if(!p)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,N=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case Z:return"Suspense";case $:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case z:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var ve=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},le=[],he=-1;function T(e){return{current:e}}function Y(e){0>he||(e.current=le[he],le[he]=null,he--)}function J(e,t){he++,le[he]=e.current,e.current=t}var W=T(null),re=T(null),ue=T(null),F=T(null);function be(e,t){switch(J(ue,t),J(re,e),J(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rp(t),e=jp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),J(W,e)}function ye(){Y(W),Y(re),Y(ue)}function Ce(e){e.memoizedState!==null&&J(F,e);var t=W.current,a=jp(t,e.type);t!==a&&(J(re,e),J(W,a))}function Te(e){re.current===e&&(Y(W),Y(re)),F.current===e&&(Y(F),Ji._currentValue=B)}var ze,xt;function St(e){if(ze===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",xt=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+ze+e+xt}var Ta=!1;function Aa(e,t){if(!e||Ta)return"";Ta=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var H=k}Reflect.construct(e,[],K)}else{try{K.call()}catch(k){H=k}e.call(K.prototype)}}else{try{throw Error()}catch(k){H=k}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&H&&typeof k.stack=="string")return[k.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),p=c[0],S=c[1];if(p&&S){var R=p.split(`
4
- `),U=S.split(`
5
- `);for(o=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;o<U.length&&!U[o].includes("DetermineComponentFrameRoot");)o++;if(l===R.length||o===U.length)for(l=R.length-1,o=U.length-1;1<=l&&0<=o&&R[l]!==U[o];)o--;for(;1<=l&&0<=o;l--,o--)if(R[l]!==U[o]){if(l!==1||o!==1)do if(l--,o--,0>o||R[l]!==U[o]){var G=`
6
- `+R[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=o);break}}}finally{Ta=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?St(a):""}function si(e,t){switch(e.tag){case 26:case 27:case 5:return St(e.type);case 16:return St("Lazy");case 13:return e.child!==t&&t!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Aa(e.type,!1);case 11:return Aa(e.type.render,!1);case 1:return Aa(e.type,!0);case 31:return St("Activity");default:return""}}function ad(e){try{var t="",a=null;do t+=si(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
- Error generating stack: `+l.message+`
8
- `+l.stack}}var go=Object.prototype.hasOwnProperty,bo=n.unstable_scheduleCallback,xo=n.unstable_cancelCallback,Q0=n.unstable_shouldYield,Y0=n.unstable_requestPaint,zt=n.unstable_now,X0=n.unstable_getCurrentPriorityLevel,ld=n.unstable_ImmediatePriority,id=n.unstable_UserBlockingPriority,vr=n.unstable_NormalPriority,K0=n.unstable_LowPriority,rd=n.unstable_IdlePriority,P0=n.log,Z0=n.unstable_setDisableYieldValue,oi=null,Dt=null;function Zn(e){if(typeof P0=="function"&&Z0(e),Dt&&typeof Dt.setStrictMode=="function")try{Dt.setStrictMode(oi,e)}catch{}}var Lt=Math.clz32?Math.clz32:$0,F0=Math.log,J0=Math.LN2;function $0(e){return e>>>=0,e===0?32:31-(F0(e)/J0|0)|0}var yr=256,gr=262144,br=4194304;function Oa(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function xr(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~c,l!==0?o=Oa(l):(p&=S,p!==0?o=Oa(p):a||(a=S&~e,a!==0&&(o=Oa(a))))):(S=l&~c,S!==0?o=Oa(S):p!==0?o=Oa(p):a||(a=l&~e,a!==0&&(o=Oa(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function ci(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function W0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 sd(){var e=br;return br<<=1,(br&62914560)===0&&(br=4194304),e}function So(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ui(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function I0(e,t,a,l,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=p&~a;0<a;){var G=31-Lt(a),K=1<<G;S[G]=0,R[G]=-1;var H=U[G];if(H!==null)for(U[G]=null,G=0;G<H.length;G++){var k=H[G];k!==null&&(k.lane&=-536870913)}a&=~K}l!==0&&od(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(p&~t))}function od(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Lt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function cd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Lt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function ud(e,t){var a=t&-t;return a=(a&42)!==0?1:wo(a),(a&(e.suspendedLanes|t))!==0?0:a}function wo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Eo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fd(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Jp(e.type))}function dd(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var Fn=Math.random().toString(36).slice(2),ft="__reactFiber$"+Fn,Ct="__reactProps$"+Fn,il="__reactContainer$"+Fn,Co="__reactEvents$"+Fn,eb="__reactListeners$"+Fn,tb="__reactHandles$"+Fn,hd="__reactResources$"+Fn,fi="__reactMarker$"+Fn;function No(e){delete e[ft],delete e[Ct],delete e[Co],delete e[eb],delete e[tb]}function rl(e){var t=e[ft];if(t)return t;for(var a=e.parentNode;a;){if(t=a[il]||a[ft]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Dp(e);e!==null;){if(a=e[ft])return a;e=Dp(e)}return t}e=a,a=e.parentNode}return null}function sl(e){if(e=e[ft]||e[il]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function di(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ol(e){var t=e[hd];return t||(t=e[hd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[fi]=!0}var md=new Set,pd={};function Ma(e,t){cl(e,t),cl(e+"Capture",t)}function cl(e,t){for(pd[e]=t,e=0;e<t.length;e++)md.add(t[e])}var nb=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]*$"),vd={},yd={};function ab(e){return go.call(yd,e)?!0:go.call(vd,e)?!1:nb.test(e)?yd[e]=!0:(vd[e]=!0,!1)}function Sr(e,t,a){if(ab(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function wr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Cn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lb(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ro(e){if(!e._valueTracker){var t=gd(e)?"checked":"value";e._valueTracker=lb(e,t,""+e[t])}}function bd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=gd(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Er(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ib=/[\n"\\]/g;function Pt(e){return e.replace(ib,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jo(e,t,a,l,o,c,p,S){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?To(e,p,Kt(t)):a!=null?To(e,p,Kt(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Kt(S):e.removeAttribute("name")}function xd(e,t,a,l,o,c,p,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ro(e);return}a=a!=null?""+Kt(a):"",t=t!=null?""+Kt(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Ro(e)}function To(e,t,a){t==="number"&&Er(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ul(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Kt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Sd(e,t,a){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Kt(a):""}function wd(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Kt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ro(e)}function fl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var rb=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 Ed(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||rb.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Cd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Ed(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&Ed(e,c,t[c])}function Ao(e){if(e.indexOf("-")===-1)return!1;switch(e){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 sb=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"]]),ob=/^[\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 Cr(e){return ob.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nn(){}var Oo=null;function Mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,hl=null;function Nd(e){var t=sl(e);if(t&&(e=t.stateNode)){var a=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(jo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Pt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[Ct]||null;if(!o)throw Error(s(90));jo(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&bd(l)}break e;case"textarea":Sd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ul(e,!!a.multiple,t,!1)}}}var _o=!1;function Rd(e,t,a){if(_o)return e(t,a);_o=!0;try{var l=e(t);return l}finally{if(_o=!1,(dl!==null||hl!==null)&&(fs(),dl&&(t=dl,e=hl,hl=dl=null,Nd(t),e)))for(t=0;t<e.length;t++)Nd(e[t])}}function hi(e,t){var a=e.stateNode;if(a===null)return null;var l=a[Ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zo=!1;if(Rn)try{var mi={};Object.defineProperty(mi,"passive",{get:function(){zo=!0}}),window.addEventListener("test",mi,mi),window.removeEventListener("test",mi,mi)}catch{zo=!1}var Jn=null,Do=null,Nr=null;function jd(){if(Nr)return Nr;var e,t=Do,a=t.length,l,o="value"in Jn?Jn.value:Jn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(l=1;l<=p&&t[a-l]===o[c-l];l++);return Nr=o.slice(e,1<l?1-l:void 0)}function Rr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jr(){return!0}function Td(){return!1}function Nt(e){function t(a,l,o,c,p){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?jr:Td,this.isPropagationStopped=Td,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=jr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var _a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tr=Nt(_a),pi=x({},_a,{view:0,detail:0}),cb=Nt(pi),Lo,Uo,vi,Ar=x({},pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vi&&(vi&&e.type==="mousemove"?(Lo=e.screenX-vi.screenX,Uo=e.screenY-vi.screenY):Uo=Lo=0,vi=e),Lo)},movementY:function(e){return"movementY"in e?e.movementY:Uo}}),Ad=Nt(Ar),ub=x({},Ar,{dataTransfer:0}),fb=Nt(ub),db=x({},pi,{relatedTarget:0}),Ho=Nt(db),hb=x({},_a,{animationName:0,elapsedTime:0,pseudoElement:0}),mb=Nt(hb),pb=x({},_a,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vb=Nt(pb),yb=x({},_a,{data:0}),Od=Nt(yb),gb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bb={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"},xb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xb[e])?!!t[e]:!1}function Bo(){return Sb}var wb=x({},pi,{key:function(e){if(e.key){var t=gb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Rr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?bb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return e.type==="keypress"?Rr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Rr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Eb=Nt(wb),Cb=x({},Ar,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=Nt(Cb),Nb=x({},pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo}),Rb=Nt(Nb),jb=x({},_a,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tb=Nt(jb),Ab=x({},Ar,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ob=Nt(Ab),Mb=x({},_a,{newState:0,oldState:0}),_b=Nt(Mb),zb=[9,13,27,32],ko=Rn&&"CompositionEvent"in window,yi=null;Rn&&"documentMode"in document&&(yi=document.documentMode);var Db=Rn&&"TextEvent"in window&&!yi,_d=Rn&&(!ko||yi&&8<yi&&11>=yi),zd=" ",Dd=!1;function Ld(e,t){switch(e){case"keyup":return zb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function Lb(e,t){switch(e){case"compositionend":return Ud(t);case"keypress":return t.which!==32?null:(Dd=!0,zd);case"textInput":return e=t.data,e===zd&&Dd?null:e;default:return null}}function Ub(e,t){if(ml)return e==="compositionend"||!ko&&Ld(e,t)?(e=jd(),Nr=Do=Jn=null,ml=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _d&&t.locale!=="ko"?null:t.data;default:return null}}var Hb={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 Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hb[e.type]:t==="textarea"}function Bd(e,t,a,l){dl?hl?hl.push(l):hl=[l]:dl=l,t=gs(t,"onChange"),0<t.length&&(a=new Tr("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var gi=null,bi=null;function Bb(e){xp(e,0)}function Or(e){var t=di(e);if(bd(t))return e}function kd(e,t){if(e==="change")return t}var qd=!1;if(Rn){var qo;if(Rn){var Vo="oninput"in document;if(!Vo){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Vo=typeof Vd.oninput=="function"}qo=Vo}else qo=!1;qd=qo&&(!document.documentMode||9<document.documentMode)}function Gd(){gi&&(gi.detachEvent("onpropertychange",Qd),bi=gi=null)}function Qd(e){if(e.propertyName==="value"&&Or(bi)){var t=[];Bd(t,bi,e,Mo(e)),Rd(Bb,t)}}function kb(e,t,a){e==="focusin"?(Gd(),gi=t,bi=a,gi.attachEvent("onpropertychange",Qd)):e==="focusout"&&Gd()}function qb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(bi)}function Vb(e,t){if(e==="click")return Or(t)}function Gb(e,t){if(e==="input"||e==="change")return Or(t)}function Qb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:Qb;function xi(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!go.call(t,o)||!Ut(e[o],t[o]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xd(e,t){var a=Yd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Yd(a)}}function Kd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Er(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Er(e.document)}return t}function Go(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yb=Rn&&"documentMode"in document&&11>=document.documentMode,pl=null,Qo=null,Si=null,Yo=!1;function Zd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yo||pl==null||pl!==Er(l)||(l=pl,"selectionStart"in l&&Go(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Si&&xi(Si,l)||(Si=l,l=gs(Qo,"onSelect"),0<l.length&&(t=new Tr("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=pl)))}function za(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var vl={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},Xo={},Fd={};Rn&&(Fd=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Da(e){if(Xo[e])return Xo[e];if(!vl[e])return e;var t=vl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Fd)return Xo[e]=t[a];return e}var Jd=Da("animationend"),$d=Da("animationiteration"),Wd=Da("animationstart"),Xb=Da("transitionrun"),Kb=Da("transitionstart"),Pb=Da("transitioncancel"),Id=Da("transitionend"),eh=new Map,Ko="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(" ");Ko.push("scrollEnd");function rn(e,t){eh.set(e,t),Ma(t,[e])}var Mr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Zt=[],yl=0,Po=0;function _r(){for(var e=yl,t=Po=yl=0;t<e;){var a=Zt[t];Zt[t++]=null;var l=Zt[t];Zt[t++]=null;var o=Zt[t];Zt[t++]=null;var c=Zt[t];if(Zt[t++]=null,l!==null&&o!==null){var p=l.pending;p===null?o.next=o:(o.next=p.next,p.next=o),l.pending=o}c!==0&&th(a,o,c)}}function zr(e,t,a,l){Zt[yl++]=e,Zt[yl++]=t,Zt[yl++]=a,Zt[yl++]=l,Po|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Zo(e,t,a,l){return zr(e,t,a,l),Dr(e)}function La(e,t){return zr(e,null,null,t),Dr(e)}function th(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Lt(a),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),c):null}function Dr(e){if(50<Qi)throw Qi=0,au=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gl={};function Zb(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,a,l){return new Zb(e,t,a,l)}function Fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var a=e.alternate;return a===null?(a=Ht(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function nh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lr(e,t,a,l,o,c){var p=0;if(l=e,typeof e=="function")Fo(e)&&(p=1);else if(typeof e=="string")p=Ix(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Ht(31,a,t,o),e.elementType=I,e.lanes=c,e;case w:return Ua(a.children,o,c,t);case C:p=8,o|=24;break;case A:return e=Ht(12,a,t,o|2),e.elementType=A,e.lanes=c,e;case Z:return e=Ht(13,a,t,o),e.elementType=Z,e.lanes=c,e;case $:return e=Ht(19,a,t,o),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:p=10;break e;case M:p=9;break e;case V:p=11;break e;case q:p=14;break e;case Q:p=16,l=null;break e}p=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Ht(p,a,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Ua(e,t,a,l){return e=Ht(7,e,l,t),e.lanes=a,e}function Jo(e,t,a){return e=Ht(6,e,null,t),e.lanes=a,e}function ah(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function $o(e,t,a){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var lh=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var a=lh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ad(t)},lh.set(e,t),t)}return{value:e,source:t,stack:ad(t)}}var bl=[],xl=0,Ur=null,wi=0,Jt=[],$t=0,$n=null,mn=1,pn="";function Tn(e,t){bl[xl++]=wi,bl[xl++]=Ur,Ur=e,wi=t}function ih(e,t,a){Jt[$t++]=mn,Jt[$t++]=pn,Jt[$t++]=$n,$n=e;var l=mn;e=pn;var o=32-Lt(l)-1;l&=~(1<<o),a+=1;var c=32-Lt(t)+o;if(30<c){var p=o-o%5;c=(l&(1<<p)-1).toString(32),l>>=p,o-=p,mn=1<<32-Lt(t)+o|a<<o|l,pn=c+e}else mn=1<<c|a<<o|l,pn=e}function Wo(e){e.return!==null&&(Tn(e,1),ih(e,1,0))}function Io(e){for(;e===Ur;)Ur=bl[--xl],bl[xl]=null,wi=bl[--xl],bl[xl]=null;for(;e===$n;)$n=Jt[--$t],Jt[$t]=null,pn=Jt[--$t],Jt[$t]=null,mn=Jt[--$t],Jt[$t]=null}function rh(e,t){Jt[$t++]=mn,Jt[$t++]=pn,Jt[$t++]=$n,mn=t.id,pn=t.overflow,$n=e}var dt=null,qe=null,je=!1,Wn=null,Wt=!1,ec=Error(s(519));function In(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ei(Ft(t,e)),ec}function sh(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[ft]=e,t[Ct]=l,a){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(a=0;a<Xi.length;a++)Ee(Xi[a],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),xd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),wd(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Cp(t.textContent,a)?(l.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),l.onScroll!=null&&Ee("scroll",t),l.onScrollEnd!=null&&Ee("scrollend",t),l.onClick!=null&&(t.onclick=Nn),t=!0):t=!1,t||In(e,!0)}function oh(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:dt=dt.return}}function Sl(e){if(e!==dt)return!1;if(!je)return oh(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||gu(e.type,e.memoizedProps)),a=!a),a&&qe&&In(e),oh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=zp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));qe=zp(e)}else t===27?(t=qe,ha(e.type)?(e=Eu,Eu=null,qe=e):qe=t):qe=dt?en(e.stateNode.nextSibling):null;return!0}function Ha(){qe=dt=null,je=!1}function tc(){var e=Wn;return e!==null&&(At===null?At=e:At.push.apply(At,e),Wn=null),e}function Ei(e){Wn===null?Wn=[e]:Wn.push(e)}var nc=T(null),Ba=null,An=null;function ea(e,t,a){J(nc,t._currentValue),t._currentValue=a}function On(e){e._currentValue=nc.current,Y(nc)}function ac(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function lc(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var p=o.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=o;for(var R=0;R<t.length;R++)if(S.context===t[R]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),ac(c.return,a,e),l||(p=null);break e}c=S.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(s(341));p.lanes|=a,c=p.alternate,c!==null&&(c.lanes|=a),ac(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function wl(e,t,a,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(s(387));if(p=p.memoizedProps,p!==null){var S=o.type;Ut(o.pendingProps.value,p.value)||(e!==null?e.push(S):e=[S])}}else if(o===F.current){if(p=o.alternate,p===null)throw Error(s(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ji):e=[Ji])}o=o.return}e!==null&&lc(t,e,a,l),t.flags|=262144}function Hr(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){Ba=e,An=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return ch(Ba,e)}function Br(e,t){return Ba===null&&ka(e),ch(e,t)}function ch(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},An===null){if(e===null)throw Error(s(308));An=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else An=An.next=t;return a}var Fb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Jb=n.unstable_scheduleCallback,$b=n.unstable_NormalPriority,$e={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new Fb,data:new Map,refCount:0}}function Ci(e){e.refCount--,e.refCount===0&&Jb($b,function(){e.controller.abort()})}var Ni=null,rc=0,El=0,Cl=null;function Wb(e,t){if(Ni===null){var a=Ni=[];rc=0,El=cu(),Cl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return rc++,t.then(uh,uh),t}function uh(){if(--rc===0&&Ni!==null){Cl!==null&&(Cl.status="fulfilled");var e=Ni;Ni=null,El=0,Cl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ib(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var fh=D.S;D.S=function(e,t){Zm=zt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Wb(e,t),fh!==null&&fh(e,t)};var qa=T(null);function sc(){var e=qa.current;return e!==null?e:ke.pooledCache}function kr(e,t){t===null?J(qa,qa.current):J(qa,t.pool)}function dh(){var e=sc();return e===null?null:{parent:$e._currentValue,pool:e}}var Nl=Error(s(460)),oc=Error(s(474)),qr=Error(s(542)),Vr={then:function(){}};function hh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Nn,Nn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e;default:if(typeof t.status=="string")t.then(Nn,Nn);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vh(e),e}throw Ga=t,Nl}}function Va(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ga=a,Nl):a}}var Ga=null;function ph(){if(Ga===null)throw Error(s(459));var e=Ga;return Ga=null,e}function vh(e){if(e===Nl||e===qr)throw Error(s(483))}var Rl=null,Ri=0;function Gr(e){var t=Ri;return Ri+=1,Rl===null&&(Rl=[]),mh(Rl,e,t)}function ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qr(e,t){throw t.$$typeof===N?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yh(e){function t(_,O){if(e){var L=_.deletions;L===null?(_.deletions=[O],_.flags|=16):L.push(O)}}function a(_,O){if(!e)return null;for(;O!==null;)t(_,O),O=O.sibling;return null}function l(_){for(var O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function o(_,O){return _=jn(_,O),_.index=0,_.sibling=null,_}function c(_,O,L){return _.index=L,e?(L=_.alternate,L!==null?(L=L.index,L<O?(_.flags|=67108866,O):L):(_.flags|=67108866,O)):(_.flags|=1048576,O)}function p(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function S(_,O,L,X){return O===null||O.tag!==6?(O=Jo(L,_.mode,X),O.return=_,O):(O=o(O,L),O.return=_,O)}function R(_,O,L,X){var ie=L.type;return ie===w?G(_,O,L.props.children,X,L.key):O!==null&&(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Q&&Va(ie)===O.type)?(O=o(O,L.props),ji(O,L),O.return=_,O):(O=Lr(L.type,L.key,L.props,null,_.mode,X),ji(O,L),O.return=_,O)}function U(_,O,L,X){return O===null||O.tag!==4||O.stateNode.containerInfo!==L.containerInfo||O.stateNode.implementation!==L.implementation?(O=$o(L,_.mode,X),O.return=_,O):(O=o(O,L.children||[]),O.return=_,O)}function G(_,O,L,X,ie){return O===null||O.tag!==7?(O=Ua(L,_.mode,X,ie),O.return=_,O):(O=o(O,L),O.return=_,O)}function K(_,O,L){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Jo(""+O,_.mode,L),O.return=_,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return L=Lr(O.type,O.key,O.props,null,_.mode,L),ji(L,O),L.return=_,L;case j:return O=$o(O,_.mode,L),O.return=_,O;case Q:return O=Va(O),K(_,O,L)}if(ve(O)||oe(O))return O=Ua(O,_.mode,L,null),O.return=_,O;if(typeof O.then=="function")return K(_,Gr(O),L);if(O.$$typeof===z)return K(_,Br(_,O),L);Qr(_,O)}return null}function H(_,O,L,X){var ie=O!==null?O.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ie!==null?null:S(_,O,""+L,X);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case E:return L.key===ie?R(_,O,L,X):null;case j:return L.key===ie?U(_,O,L,X):null;case Q:return L=Va(L),H(_,O,L,X)}if(ve(L)||oe(L))return ie!==null?null:G(_,O,L,X,null);if(typeof L.then=="function")return H(_,O,Gr(L),X);if(L.$$typeof===z)return H(_,O,Br(_,L),X);Qr(_,L)}return null}function k(_,O,L,X,ie){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return _=_.get(L)||null,S(O,_,""+X,ie);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case E:return _=_.get(X.key===null?L:X.key)||null,R(O,_,X,ie);case j:return _=_.get(X.key===null?L:X.key)||null,U(O,_,X,ie);case Q:return X=Va(X),k(_,O,L,X,ie)}if(ve(X)||oe(X))return _=_.get(L)||null,G(O,_,X,ie,null);if(typeof X.then=="function")return k(_,O,L,Gr(X),ie);if(X.$$typeof===z)return k(_,O,L,Br(O,X),ie);Qr(O,X)}return null}function ee(_,O,L,X){for(var ie=null,Ae=null,ae=O,xe=O=0,Re=null;ae!==null&&xe<L.length;xe++){ae.index>xe?(Re=ae,ae=null):Re=ae.sibling;var Oe=H(_,ae,L[xe],X);if(Oe===null){ae===null&&(ae=Re);break}e&&ae&&Oe.alternate===null&&t(_,ae),O=c(Oe,O,xe),Ae===null?ie=Oe:Ae.sibling=Oe,Ae=Oe,ae=Re}if(xe===L.length)return a(_,ae),je&&Tn(_,xe),ie;if(ae===null){for(;xe<L.length;xe++)ae=K(_,L[xe],X),ae!==null&&(O=c(ae,O,xe),Ae===null?ie=ae:Ae.sibling=ae,Ae=ae);return je&&Tn(_,xe),ie}for(ae=l(ae);xe<L.length;xe++)Re=k(ae,_,xe,L[xe],X),Re!==null&&(e&&Re.alternate!==null&&ae.delete(Re.key===null?xe:Re.key),O=c(Re,O,xe),Ae===null?ie=Re:Ae.sibling=Re,Ae=Re);return e&&ae.forEach(function(ga){return t(_,ga)}),je&&Tn(_,xe),ie}function ce(_,O,L,X){if(L==null)throw Error(s(151));for(var ie=null,Ae=null,ae=O,xe=O=0,Re=null,Oe=L.next();ae!==null&&!Oe.done;xe++,Oe=L.next()){ae.index>xe?(Re=ae,ae=null):Re=ae.sibling;var ga=H(_,ae,Oe.value,X);if(ga===null){ae===null&&(ae=Re);break}e&&ae&&ga.alternate===null&&t(_,ae),O=c(ga,O,xe),Ae===null?ie=ga:Ae.sibling=ga,Ae=ga,ae=Re}if(Oe.done)return a(_,ae),je&&Tn(_,xe),ie;if(ae===null){for(;!Oe.done;xe++,Oe=L.next())Oe=K(_,Oe.value,X),Oe!==null&&(O=c(Oe,O,xe),Ae===null?ie=Oe:Ae.sibling=Oe,Ae=Oe);return je&&Tn(_,xe),ie}for(ae=l(ae);!Oe.done;xe++,Oe=L.next())Oe=k(ae,_,xe,Oe.value,X),Oe!==null&&(e&&Oe.alternate!==null&&ae.delete(Oe.key===null?xe:Oe.key),O=c(Oe,O,xe),Ae===null?ie=Oe:Ae.sibling=Oe,Ae=Oe);return e&&ae.forEach(function(u1){return t(_,u1)}),je&&Tn(_,xe),ie}function Be(_,O,L,X){if(typeof L=="object"&&L!==null&&L.type===w&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case E:e:{for(var ie=L.key;O!==null;){if(O.key===ie){if(ie=L.type,ie===w){if(O.tag===7){a(_,O.sibling),X=o(O,L.props.children),X.return=_,_=X;break e}}else if(O.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Q&&Va(ie)===O.type){a(_,O.sibling),X=o(O,L.props),ji(X,L),X.return=_,_=X;break e}a(_,O);break}else t(_,O);O=O.sibling}L.type===w?(X=Ua(L.props.children,_.mode,X,L.key),X.return=_,_=X):(X=Lr(L.type,L.key,L.props,null,_.mode,X),ji(X,L),X.return=_,_=X)}return p(_);case j:e:{for(ie=L.key;O!==null;){if(O.key===ie)if(O.tag===4&&O.stateNode.containerInfo===L.containerInfo&&O.stateNode.implementation===L.implementation){a(_,O.sibling),X=o(O,L.children||[]),X.return=_,_=X;break e}else{a(_,O);break}else t(_,O);O=O.sibling}X=$o(L,_.mode,X),X.return=_,_=X}return p(_);case Q:return L=Va(L),Be(_,O,L,X)}if(ve(L))return ee(_,O,L,X);if(oe(L)){if(ie=oe(L),typeof ie!="function")throw Error(s(150));return L=ie.call(L),ce(_,O,L,X)}if(typeof L.then=="function")return Be(_,O,Gr(L),X);if(L.$$typeof===z)return Be(_,O,Br(_,L),X);Qr(_,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,O!==null&&O.tag===6?(a(_,O.sibling),X=o(O,L),X.return=_,_=X):(a(_,O),X=Jo(L,_.mode,X),X.return=_,_=X),p(_)):a(_,O)}return function(_,O,L,X){try{Ri=0;var ie=Be(_,O,L,X);return Rl=null,ie}catch(ae){if(ae===Nl||ae===qr)throw ae;var Ae=Ht(29,ae,null,_.mode);return Ae.lanes=X,Ae.return=_,Ae}}}var Qa=yh(!0),gh=yh(!1),ta=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function aa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(_e&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Dr(e),th(e,null,a),t}return zr(e,l,t,a),Dr(e)}function Ti(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,cd(e,a)}}function fc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var dc=!1;function Ai(){if(dc){var e=Cl;if(e!==null)throw e}}function Oi(e,t,a,l){dc=!1;var o=e.updateQueue;ta=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var R=S,U=R.next;R.next=null,p===null?c=U:p.next=U,p=R;var G=e.alternate;G!==null&&(G=G.updateQueue,S=G.lastBaseUpdate,S!==p&&(S===null?G.firstBaseUpdate=U:S.next=U,G.lastBaseUpdate=R))}if(c!==null){var K=o.baseState;p=0,G=U=R=null,S=c;do{var H=S.lane&-536870913,k=H!==S.lane;if(k?(Ne&H)===H:(l&H)===H){H!==0&&H===El&&(dc=!0),G!==null&&(G=G.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var ee=e,ce=S;H=t;var Be=a;switch(ce.tag){case 1:if(ee=ce.payload,typeof ee=="function"){K=ee.call(Be,K,H);break e}K=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ce.payload,H=typeof ee=="function"?ee.call(Be,K,H):ee,H==null)break e;K=x({},K,H);break e;case 2:ta=!0}}H=S.callback,H!==null&&(e.flags|=64,k&&(e.flags|=8192),k=o.callbacks,k===null?o.callbacks=[H]:k.push(H))}else k={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},G===null?(U=G=k,R=K):G=G.next=k,p|=H;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;k=S,S=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}}while(!0);G===null&&(R=K),o.baseState=R,o.firstBaseUpdate=U,o.lastBaseUpdate=G,c===null&&(o.shared.lanes=0),oa|=p,e.lanes=p,e.memoizedState=K}}function bh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function xh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)bh(a[e],t)}var jl=T(null),Yr=T(0);function Sh(e,t){e=kn,J(Yr,e),J(jl,t),kn=e|t.baseLanes}function hc(){J(Yr,kn),J(jl,jl.current)}function mc(){kn=Yr.current,Y(jl),Y(Yr)}var Bt=T(null),It=null;function la(e){var t=e.alternate;J(Ze,Ze.current&1),J(Bt,e),It===null&&(t===null||jl.current!==null||t.memoizedState!==null)&&(It=e)}function pc(e){J(Ze,Ze.current),J(Bt,e),It===null&&(It=e)}function wh(e){e.tag===22?(J(Ze,Ze.current),J(Bt,e),It===null&&(It=e)):ia()}function ia(){J(Ze,Ze.current),J(Bt,Bt.current)}function kt(e){Y(Bt),It===e&&(It=null),Y(Ze)}var Ze=T(0);function Xr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Su(a)||wu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mn=0,ge=null,Ue=null,We=null,Kr=!1,Tl=!1,Ya=!1,Pr=0,Mi=0,Al=null,ex=0;function Xe(){throw Error(s(321))}function vc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ut(e[a],t[a]))return!1;return!0}function yc(e,t,a,l,o,c){return Mn=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?im:_c,Ya=!1,c=a(l,o),Ya=!1,Tl&&(c=Ch(t,a,l,o)),Eh(e),c}function Eh(e){D.H=Di;var t=Ue!==null&&Ue.next!==null;if(Mn=0,We=Ue=ge=null,Kr=!1,Mi=0,Al=null,t)throw Error(s(300));e===null||Ie||(e=e.dependencies,e!==null&&Hr(e)&&(Ie=!0))}function Ch(e,t,a,l){ge=e;var o=0;do{if(Tl&&(Al=null),Mi=0,Tl=!1,25<=o)throw Error(s(301));if(o+=1,We=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=rm,c=t(a,l)}while(Tl);return c}function tx(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?_i(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(ge.flags|=1024),t}function gc(){var e=Pr!==0;return Pr=0,e}function bc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function xc(e){if(Kr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kr=!1}Mn=0,We=Ue=ge=null,Tl=!1,Mi=Pr=0,Al=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ge.memoizedState=We=e:We=We.next=e,We}function Fe(){if(Ue===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=We===null?ge.memoizedState:We.next;if(t!==null)We=t,Ue=e;else{if(e===null)throw ge.alternate===null?Error(s(467)):Error(s(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},We===null?ge.memoizedState=We=e:We=We.next=e}return We}function Zr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _i(e){var t=Mi;return Mi+=1,Al===null&&(Al=[]),e=mh(Al,e,t),t=ge,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?im:_c),e}function Fr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _i(e);if(e.$$typeof===z)return ht(e)}throw Error(s(438,String(e)))}function Sc(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Zr(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=se;return t.index++,a}function _n(e,t){return typeof t=="function"?t(e):t}function Jr(e){var t=Fe();return wc(t,Ue,e)}function wc(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var p=o.next;o.next=c.next,c.next=p}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var S=p=null,R=null,U=t,G=!1;do{var K=U.lane&-536870913;if(K!==U.lane?(Ne&K)===K:(Mn&K)===K){var H=U.revertLane;if(H===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),K===El&&(G=!0);else if((Mn&H)===H){U=U.next,H===El&&(G=!0);continue}else K={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=K,p=c):R=R.next=K,ge.lanes|=H,oa|=H;K=U.action,Ya&&a(c,K),c=U.hasEagerState?U.eagerState:a(c,K)}else H={lane:K,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?(S=R=H,p=c):R=R.next=H,ge.lanes|=K,oa|=K;U=U.next}while(U!==null&&U!==t);if(R===null?p=c:R.next=S,!Ut(c,e.memoizedState)&&(Ie=!0,G&&(a=Cl,a!==null)))throw a;e.memoizedState=c,e.baseState=p,e.baseQueue=R,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ec(e){var t=Fe(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do c=e(c,p.action),p=p.next;while(p!==o);Ut(c,t.memoizedState)||(Ie=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Nh(e,t,a){var l=ge,o=Fe(),c=je;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var p=!Ut((Ue||o).memoizedState,a);if(p&&(o.memoizedState=a,Ie=!0),o=o.queue,Rc(Th.bind(null,l,o,e),[e]),o.getSnapshot!==t||p||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,Ol(9,{destroy:void 0},jh.bind(null,l,o,a,t),null),ke===null)throw Error(s(349));c||(Mn&127)!==0||Rh(l,t,a)}return a}function Rh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Zr(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function jh(e,t,a,l){t.value=a,t.getSnapshot=l,Ah(t)&&Oh(e)}function Th(e,t,a){return a(function(){Ah(t)&&Oh(e)})}function Ah(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ut(e,a)}catch{return!0}}function Oh(e){var t=La(e,2);t!==null&&Ot(t,e,2)}function Cc(e){var t=wt();if(typeof e=="function"){var a=e;if(e=a(),Ya){Zn(!0);try{a()}finally{Zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:e},t}function Mh(e,t,a,l){return e.baseState=a,wc(e,Ue,typeof l=="function"?l:_n)}function nx(e,t,a,l,o){if(Ir(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){c.listeners.push(p)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,_h(t,c)):(c.next=a.next,t.pending=a.next=c)}}function _h(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=D.T,p={};D.T=p;try{var S=a(o,l),R=D.S;R!==null&&R(p,S),zh(e,t,S)}catch(U){Nc(e,t,U)}finally{c!==null&&p.types!==null&&(c.types=p.types),D.T=c}}else try{c=a(o,l),zh(e,t,c)}catch(U){Nc(e,t,U)}}function zh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Dh(e,t,l)},function(l){return Nc(e,t,l)}):Dh(e,t,a)}function Dh(e,t,a){t.status="fulfilled",t.value=a,Lh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,_h(e,a)))}function Nc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Lh(t),t=t.next;while(t!==l)}e.action=null}function Lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Uh(e,t){return t}function Hh(e,t){if(je){var a=ke.formState;if(a!==null){e:{var l=ge;if(je){if(qe){t:{for(var o=qe,c=Wt;o.nodeType!==8;){if(!c){o=null;break t}if(o=en(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){qe=en(o.nextSibling),l=o.data==="F!";break e}}In(l)}l=!1}l&&(t=a[0])}}return a=wt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uh,lastRenderedState:t},a.queue=l,a=nm.bind(null,ge,l),l.dispatch=a,l=Cc(!1),c=Mc.bind(null,ge,!1,l.queue),l=wt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=nx.bind(null,ge,o,c,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function Bh(e){var t=Fe();return kh(t,Ue,e)}function kh(e,t,a){if(t=wc(e,t,Uh)[0],e=Jr(_n)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=_i(t)}catch(p){throw p===Nl?qr:p}else l=t;t=Fe();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ol(9,{destroy:void 0},ax.bind(null,o,a),null)),[l,c,e]}function ax(e,t){e.action=t}function qh(e){var t=Fe(),a=Ue;if(a!==null)return kh(t,a,e);Fe(),t=t.memoizedState,a=Fe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ol(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Zr(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Vh(){return Fe().memoizedState}function $r(e,t,a,l){var o=wt();ge.flags|=e,o.memoizedState=Ol(1|t,{destroy:void 0},a,l===void 0?null:l)}function Wr(e,t,a,l){var o=Fe();l=l===void 0?null:l;var c=o.memoizedState.inst;Ue!==null&&l!==null&&vc(l,Ue.memoizedState.deps)?o.memoizedState=Ol(t,c,a,l):(ge.flags|=e,o.memoizedState=Ol(1|t,c,a,l))}function Gh(e,t){$r(8390656,8,e,t)}function Rc(e,t){Wr(2048,8,e,t)}function lx(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Zr(),ge.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Qh(e){var t=Fe().memoizedState;return lx({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Yh(e,t){return Wr(4,2,e,t)}function Xh(e,t){return Wr(4,4,e,t)}function Kh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ph(e,t,a){a=a!=null?a.concat([e]):null,Wr(4,4,Kh.bind(null,t,e),a)}function jc(){}function Zh(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&vc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Fh(e,t){var a=Fe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&vc(t,l[1]))return l[0];if(l=e(),Ya){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[l,t],l}function Tc(e,t,a){return a===void 0||(Mn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Jm(),ge.lanes|=e,oa|=e,a)}function Jh(e,t,a,l){return Ut(a,t)?a:jl.current!==null?(e=Tc(e,a,l),Ut(e,t)||(Ie=!0),e):(Mn&42)===0||(Mn&1073741824)!==0&&(Ne&261930)===0?(Ie=!0,e.memoizedState=a):(e=Jm(),ge.lanes|=e,oa|=e,t)}function $h(e,t,a,l,o){var c=P.p;P.p=c!==0&&8>c?c:8;var p=D.T,S={};D.T=S,Mc(e,!1,t,a);try{var R=o(),U=D.S;if(U!==null&&U(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var G=Ib(R,l);zi(e,t,G,Gt(e))}else zi(e,t,l,Gt(e))}catch(K){zi(e,t,{then:function(){},status:"rejected",reason:K},Gt())}finally{P.p=c,p!==null&&S.types!==null&&(p.types=S.types),D.T=p}}function ix(){}function Ac(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=Wh(e).queue;$h(e,o,t,B,a===null?ix:function(){return Ih(e),a(l)})}function Wh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ih(e){var t=Wh(e);t.next===null&&(t=e.alternate.memoizedState),zi(e,t.next.queue,{},Gt())}function Oc(){return ht(Ji)}function em(){return Fe().memoizedState}function tm(){return Fe().memoizedState}function rx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Gt();e=na(a);var l=aa(t,e,a);l!==null&&(Ot(l,t,a),Ti(l,t,a)),t={cache:ic()},e.payload=t;return}t=t.return}}function sx(e,t,a){var l=Gt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ir(e)?am(t,a):(a=Zo(e,t,a,l),a!==null&&(Ot(a,e,l),lm(a,t,l)))}function nm(e,t,a){var l=Gt();zi(e,t,a,l)}function zi(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ir(e))am(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,S=c(p,a);if(o.hasEagerState=!0,o.eagerState=S,Ut(S,p))return zr(e,t,o,0),ke===null&&_r(),!1}catch{}if(a=Zo(e,t,o,l),a!==null)return Ot(a,e,l),lm(a,t,l),!0}return!1}function Mc(e,t,a,l){if(l={lane:2,revertLane:cu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ir(e)){if(t)throw Error(s(479))}else t=Zo(e,a,l,2),t!==null&&Ot(t,e,2)}function Ir(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function am(e,t){Tl=Kr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function lm(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,cd(e,a)}}var Di={readContext:ht,use:Fr,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Di.useEffectEvent=Xe;var im={readContext:ht,use:Fr,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Gh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$r(4194308,4,Kh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var a=wt();t=t===void 0?null:t;var l=e();if(Ya){Zn(!0);try{e()}finally{Zn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=wt();if(a!==void 0){var o=a(t);if(Ya){Zn(!0);try{a(t)}finally{Zn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=sx.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,a=nm.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:jc,useDeferredValue:function(e,t){var a=wt();return Tc(a,e,t)},useTransition:function(){var e=Cc(!1);return e=$h.bind(null,ge,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ge,o=wt();if(je){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),ke===null)throw Error(s(349));(Ne&127)!==0||Rh(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Gh(Th.bind(null,l,c,e),[e]),l.flags|=2048,Ol(9,{destroy:void 0},jh.bind(null,l,c,a,t),null),a},useId:function(){var e=wt(),t=ke.identifierPrefix;if(je){var a=pn,l=mn;a=(l&~(1<<32-Lt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Pr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ex++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Oc,useFormState:Hh,useActionState:Hh,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Mc.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Sc,useCacheRefresh:function(){return wt().memoizedState=rx.bind(null,ge)},useEffectEvent:function(e){var t=wt(),a={impl:e};return t.memoizedState=a,function(){if((_e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},_c={readContext:ht,use:Fr,useCallback:Zh,useContext:ht,useEffect:Rc,useImperativeHandle:Ph,useInsertionEffect:Yh,useLayoutEffect:Xh,useMemo:Fh,useReducer:Jr,useRef:Vh,useState:function(){return Jr(_n)},useDebugValue:jc,useDeferredValue:function(e,t){var a=Fe();return Jh(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Jr(_n)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:_i(e),t]},useSyncExternalStore:Nh,useId:em,useHostTransitionStatus:Oc,useFormState:Bh,useActionState:Bh,useOptimistic:function(e,t){var a=Fe();return Mh(a,Ue,e,t)},useMemoCache:Sc,useCacheRefresh:tm};_c.useEffectEvent=Qh;var rm={readContext:ht,use:Fr,useCallback:Zh,useContext:ht,useEffect:Rc,useImperativeHandle:Ph,useInsertionEffect:Yh,useLayoutEffect:Xh,useMemo:Fh,useReducer:Ec,useRef:Vh,useState:function(){return Ec(_n)},useDebugValue:jc,useDeferredValue:function(e,t){var a=Fe();return Ue===null?Tc(a,e,t):Jh(a,Ue.memoizedState,e,t)},useTransition:function(){var e=Ec(_n)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:_i(e),t]},useSyncExternalStore:Nh,useId:em,useHostTransitionStatus:Oc,useFormState:qh,useActionState:qh,useOptimistic:function(e,t){var a=Fe();return Ue!==null?Mh(a,Ue,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Sc,useCacheRefresh:tm};rm.useEffectEvent=Qh;function zc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Dc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Gt(),o=na(l);o.payload=t,a!=null&&(o.callback=a),t=aa(e,o,l),t!==null&&(Ot(t,e,l),Ti(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Gt(),o=na(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=aa(e,o,l),t!==null&&(Ot(t,e,l),Ti(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Gt(),l=na(a);l.tag=2,t!=null&&(l.callback=t),t=aa(e,l,a),t!==null&&(Ot(t,e,a),Ti(t,e,a))}};function sm(e,t,a,l,o,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,p):t.prototype&&t.prototype.isPureReactComponent?!xi(a,l)||!xi(o,c):!0}function om(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Dc.enqueueReplaceState(t,t.state,null)}function Xa(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function cm(e){Mr(e)}function um(e){console.error(e)}function fm(e){Mr(e)}function es(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function dm(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lc(e,t,a){return a=na(a),a.tag=3,a.payload={element:null},a.callback=function(){es(e,t)},a}function hm(e){return e=na(e),e.tag=3,e}function mm(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){dm(t,a,l)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){dm(t,a,l),typeof o!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function ox(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&wl(t,a,o,!0),a=Bt.current,a!==null){switch(a.tag){case 31:case 13:return It===null?ds():a.alternate===null&&Ke===0&&(Ke=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Vr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),ru(e,l,o)),!1;case 22:return a.flags|=65536,l===Vr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),ru(e,l,o)),!1}throw Error(s(435,a.tag))}return ru(e,l,o),ds(),!1}if(je)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==ec&&(e=Error(s(422),{cause:l}),Ei(Ft(e,a)))):(l!==ec&&(t=Error(s(423),{cause:l}),Ei(Ft(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Ft(l,a),o=Lc(e.stateNode,l,o),fc(e,o),Ke!==4&&(Ke=2)),!1;var c=Error(s(520),{cause:l});if(c=Ft(c,a),Gi===null?Gi=[c]:Gi.push(c),Ke!==4&&(Ke=2),t===null)return!0;l=Ft(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Lc(a.stateNode,l,e),fc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ca===null||!ca.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=hm(o),mm(o,e,a,l),fc(a,o),!1}a=a.return}while(a!==null);return!1}var Uc=Error(s(461)),Ie=!1;function mt(e,t,a,l){t.child=e===null?gh(t,null,a,l):Qa(t,e.child,a,l)}function pm(e,t,a,l,o){a=a.render;var c=t.ref;if("ref"in l){var p={};for(var S in l)S!=="ref"&&(p[S]=l[S])}else p=l;return ka(t),l=yc(e,t,a,p,c,o),S=gc(),e!==null&&!Ie?(bc(e,t,o),zn(e,t,o)):(je&&S&&Wo(t),t.flags|=1,mt(e,t,l,o),t.child)}function vm(e,t,a,l,o){if(e===null){var c=a.type;return typeof c=="function"&&!Fo(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,ym(e,t,c,l,o)):(e=Lr(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Yc(e,o)){var p=c.memoizedProps;if(a=a.compare,a=a!==null?a:xi,a(p,l)&&e.ref===t.ref)return zn(e,t,o)}return t.flags|=1,e=jn(c,l),e.ref=t.ref,e.return=t,t.child=e}function ym(e,t,a,l,o){if(e!==null){var c=e.memoizedProps;if(xi(c,l)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=l=c,Yc(e,o))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,zn(e,t,o)}return Hc(e,t,a,l,o)}function gm(e,t,a,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return bm(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kr(t,c!==null?c.cachePool:null),c!==null?Sh(t,c):hc(),wh(t);else return l=t.lanes=536870912,bm(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(kr(t,c.cachePool),Sh(t,c),ia(),t.memoizedState=null):(e!==null&&kr(t,null),hc(),ia());return mt(e,t,o,a),t.child}function Li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bm(e,t,a,l,o){var c=sc();return c=c===null?null:{parent:$e._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&kr(t,null),hc(),wh(t),e!==null&&wl(e,t,l,!0),t.childLanes=o,null}function ts(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xm(e,t,a){return Qa(t,e.child,null,a),e=ts(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function cx(e,t,a){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=ts(t,l),t.lanes=536870912,Li(null,e);if(pc(t),(e=qe)?(e=_p(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},a=ah(e),a.return=t,t.child=a,dt=t,qe=null)):e=null,e===null)throw In(t);return t.lanes=536870912,null}return ts(t,l)}var c=e.memoizedState;if(c!==null){var p=c.dehydrated;if(pc(t),o)if(t.flags&256)t.flags&=-257,t=xm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ie||wl(e,t,a,!1),o=(a&e.childLanes)!==0,Ie||o){if(l=ke,l!==null&&(p=ud(l,a),p!==0&&p!==c.retryLane))throw c.retryLane=p,La(e,p),Ot(l,e,p),Uc;ds(),t=xm(e,t,a)}else e=c.treeContext,qe=en(p.nextSibling),dt=t,je=!0,Wn=null,Wt=!1,e!==null&&rh(t,e),t=ts(t,l),t.flags|=4096;return t}return e=jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ns(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Hc(e,t,a,l,o){return ka(t),a=yc(e,t,a,l,void 0,o),l=gc(),e!==null&&!Ie?(bc(e,t,o),zn(e,t,o)):(je&&l&&Wo(t),t.flags|=1,mt(e,t,a,o),t.child)}function Sm(e,t,a,l,o,c){return ka(t),t.updateQueue=null,a=Ch(t,l,a,o),Eh(e),l=gc(),e!==null&&!Ie?(bc(e,t,c),zn(e,t,c)):(je&&l&&Wo(t),t.flags|=1,mt(e,t,a,c),t.child)}function wm(e,t,a,l,o){if(ka(t),t.stateNode===null){var c=gl,p=a.contextType;typeof p=="object"&&p!==null&&(c=ht(p)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Dc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},cc(t),p=a.contextType,c.context=typeof p=="object"&&p!==null?ht(p):gl,c.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(zc(t,a,p,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(p=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),p!==c.state&&Dc.enqueueReplaceState(c,c.state,null),Oi(t,l,c,o),Ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,R=Xa(a,S);c.props=R;var U=c.context,G=a.contextType;p=gl,typeof G=="object"&&G!==null&&(p=ht(G));var K=a.getDerivedStateFromProps;G=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||U!==p)&&om(t,c,l,p),ta=!1;var H=t.memoizedState;c.state=H,Oi(t,l,c,o),Ai(),U=t.memoizedState,S||H!==U||ta?(typeof K=="function"&&(zc(t,a,K,l),U=t.memoizedState),(R=ta||sm(t,a,R,l,H,U,p))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=U),c.props=l,c.state=U,c.context=p,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,uc(e,t),p=t.memoizedProps,G=Xa(a,p),c.props=G,K=t.pendingProps,H=c.context,U=a.contextType,R=gl,typeof U=="object"&&U!==null&&(R=ht(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p!==K||H!==R)&&om(t,c,l,R),ta=!1,H=t.memoizedState,c.state=H,Oi(t,l,c,o),Ai();var k=t.memoizedState;p!==K||H!==k||ta||e!==null&&e.dependencies!==null&&Hr(e.dependencies)?(typeof S=="function"&&(zc(t,a,S,l),k=t.memoizedState),(G=ta||sm(t,a,G,l,H,k,R)||e!==null&&e.dependencies!==null&&Hr(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,k,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,k,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=k),c.props=l,c.state=k,c.context=R,l=G):(typeof c.componentDidUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,ns(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Qa(t,e.child,null,o),t.child=Qa(t,null,a,o)):mt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=zn(e,t,o),e}function Em(e,t,a,l){return Ha(),t.flags|=256,mt(e,t,a,l),t.child}var Bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kc(e){return{baseLanes:e,cachePool:dh()}}function qc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Vt),e}function Cm(e,t,a){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,p;if((p=c)||(p=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(o?la(t):ia(),(e=qe)?(e=_p(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$n!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},a=ah(e),a.return=t,t.child=a,dt=t,qe=null)):e=null,e===null)throw In(t);return wu(e)?t.lanes=32:t.lanes=536870912,null}var S=l.children;return l=l.fallback,o?(ia(),o=t.mode,S=as({mode:"hidden",children:S},o),l=Ua(l,o,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=kc(a),l.childLanes=qc(e,p,a),t.memoizedState=Bc,Li(null,l)):(la(t),Vc(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(la(t),t.flags&=-257,t=Gc(e,t,a)):t.memoizedState!==null?(ia(),t.child=e.child,t.flags|=128,t=null):(ia(),S=l.fallback,o=t.mode,l=as({mode:"visible",children:l.children},o),S=Ua(S,o,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,Qa(t,e.child,null,a),l=t.child,l.memoizedState=kc(a),l.childLanes=qc(e,p,a),t.memoizedState=Bc,t=Li(null,l));else if(la(t),wu(S)){if(p=S.nextSibling&&S.nextSibling.dataset,p)var U=p.dgst;p=U,l=Error(s(419)),l.stack="",l.digest=p,Ei({value:l,source:null,stack:null}),t=Gc(e,t,a)}else if(Ie||wl(e,t,a,!1),p=(a&e.childLanes)!==0,Ie||p){if(p=ke,p!==null&&(l=ud(p,a),l!==0&&l!==R.retryLane))throw R.retryLane=l,La(e,l),Ot(p,e,l),Uc;Su(S)||ds(),t=Gc(e,t,a)}else Su(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,qe=en(S.nextSibling),dt=t,je=!0,Wn=null,Wt=!1,e!==null&&rh(t,e),t=Vc(t,l.children),t.flags|=4096);return t}return o?(ia(),S=l.fallback,o=t.mode,R=e.child,U=R.sibling,l=jn(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,U!==null?S=jn(U,S):(S=Ua(S,o,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,Li(null,l),l=t.child,S=e.child.memoizedState,S===null?S=kc(a):(o=S.cachePool,o!==null?(R=$e._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=dh(),S={baseLanes:S.baseLanes|a,cachePool:o}),l.memoizedState=S,l.childLanes=qc(e,p,a),t.memoizedState=Bc,Li(e.child,l)):(la(t),a=e.child,e=a.sibling,a=jn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Vc(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function Gc(e,t,a){return Qa(t,e.child,null,a),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nm(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ac(e.return,t,a)}function Qc(e,t,a,l,o,c){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:c}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=a,p.tailMode=o,p.treeForkCount=c)}function Rm(e,t,a){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var p=Ze.current,S=(p&2)!==0;if(S?(p=p&1|2,t.flags|=128):p&=1,J(Ze,p),mt(e,t,l,a),l=je?wi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nm(e,a,t);else if(e.tag===19)Nm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Xr(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Qc(t,!1,o,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xr(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Qc(t,!0,a,null,c,l);break;case"together":Qc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function zn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=jn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=jn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Hr(e)))}function ux(e,t,a){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),ea(t,$e,e.memoizedState.cache),Ha();break;case 27:case 5:Ce(t);break;case 4:be(t,t.stateNode.containerInfo);break;case 10:ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(la(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Cm(e,t,a):(la(t),e=zn(e,t,a),e!==null?e.sibling:null);la(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(wl(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return Rm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(Ze,Ze.current),l)break;return null;case 22:return t.lanes=0,gm(e,t,a,t.pendingProps);case 24:ea(t,$e,e.memoizedState.cache)}return zn(e,t,a)}function jm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Yc(e,a)&&(t.flags&128)===0)return Ie=!1,ux(e,t,a);Ie=(e.flags&131072)!==0}else Ie=!1,je&&(t.flags&1048576)!==0&&ih(t,wi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Va(t.elementType),t.type=e,typeof e=="function")Fo(e)?(l=Xa(e,l),t.tag=1,t=wm(null,t,e,l,a)):(t.tag=0,t=Hc(null,t,e,l,a));else{if(e!=null){var o=e.$$typeof;if(o===V){t.tag=11,t=pm(null,t,e,l,a);break e}else if(o===q){t.tag=14,t=vm(null,t,e,l,a);break e}}throw t=de(e)||e,Error(s(306,t,""))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Xa(l,t.pendingProps),wm(e,t,l,o,a);case 3:e:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,uc(e,t),Oi(t,l,null,a);var p=t.memoizedState;if(l=p.cache,ea(t,$e,l),l!==c.cache&&lc(t,[$e],a,!0),Ai(),l=p.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Em(e,t,l,a);break e}else if(l!==o){o=Ft(Error(s(424)),t),Ei(o),t=Em(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=en(e.firstChild),dt=t,je=!0,Wn=null,Wt=!0,a=gh(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ha(),l===o){t=zn(e,t,a);break e}mt(e,t,l,a)}t=t.child}return t;case 26:return ns(e,t),e===null?(a=Bp(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,l=bs(ue.current).createElement(a),l[ft]=t,l[Ct]=e,pt(l,a,e),ct(l),t.stateNode=l):t.memoizedState=Bp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&je&&(l=t.stateNode=Lp(t.type,t.pendingProps,ue.current),dt=t,Wt=!0,o=qe,ha(t.type)?(Eu=o,qe=en(l.firstChild)):qe=o),mt(e,t,t.pendingProps.children,a),ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((o=l=qe)&&(l=qx(l,t.type,t.pendingProps,Wt),l!==null?(t.stateNode=l,dt=t,qe=en(l.firstChild),Wt=!1,o=!0):o=!1),o||In(t)),Ce(t),o=t.type,c=t.pendingProps,p=e!==null?e.memoizedProps:null,l=c.children,gu(o,c)?l=null:p!==null&&gu(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=yc(e,t,tx,null,null,a),Ji._currentValue=o),ns(e,t),mt(e,t,l,a),t.child;case 6:return e===null&&je&&((e=a=qe)&&(a=Vx(a,t.pendingProps,Wt),a!==null?(t.stateNode=a,dt=t,qe=null,e=!0):e=!1),e||In(t)),null;case 13:return Cm(e,t,a);case 4:return be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Qa(t,null,l,a):mt(e,t,l,a),t.child;case 11:return pm(e,t,t.type,t.pendingProps,a);case 7:return mt(e,t,t.pendingProps,a),t.child;case 8:return mt(e,t,t.pendingProps.children,a),t.child;case 12:return mt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ea(t,t.type,l.value),mt(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,ka(t),o=ht(o),l=l(o),t.flags|=1,mt(e,t,l,a),t.child;case 14:return vm(e,t,t.type,t.pendingProps,a);case 15:return ym(e,t,t.type,t.pendingProps,a);case 19:return Rm(e,t,a);case 31:return cx(e,t,a);case 22:return gm(e,t,a,t.pendingProps);case 24:return ka(t),l=ht($e),e===null?(o=sc(),o===null&&(o=ke,c=ic(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:l,cache:o},cc(t),ea(t,$e,o)):((e.lanes&a)!==0&&(uc(e,t),Oi(t,null,null,a),Ai()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),ea(t,$e,l)):(l=c.cache,ea(t,$e,l),l!==o.cache&&lc(t,[$e],a,!0))),mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Dn(e){e.flags|=4}function Xc(e,t,a,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(ep())e.flags|=8192;else throw Ga=Vr,oc}else e.flags&=-16777217}function Tm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qp(t))if(ep())e.flags|=8192;else throw Ga=Vr,oc}function ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sd():536870912,e.lanes|=t,Dl|=t)}function Ui(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function fx(e,t,a){var l=t.pendingProps;switch(Io(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),On($e),ye(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Sl(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tc())),Ve(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Dn(t),c!==null?(Ve(t),Tm(t,c)):(Ve(t),Xc(t,o,null,l,a))):c?c!==e.memoizedState?(Dn(t),Ve(t),Tm(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Dn(t),Ve(t),Xc(t,o,e,l,a)),null;case 27:if(Te(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Dn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}e=W.current,Sl(t)?sh(t):(e=Lp(o,l,a),t.stateNode=e,Dn(t))}return Ve(t),null;case 5:if(Te(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Dn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(c=W.current,Sl(t))sh(t);else{var p=bs(ue.current);switch(c){case 1:c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=p.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?p.createElement(o,{is:l.is}):p.createElement(o)}}c[ft]=t,c[Ct]=l;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(pt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Dn(t)}}return Ve(t),Xc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Dn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,Sl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=dt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ft]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Cp(e.nodeValue,a)),e||In(t,!0)}else e=bs(e).createTextNode(l),e[ft]=t,t.stateNode=e}return Ve(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Sl(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ft]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else a=tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ve(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Sl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ft]=t}else Ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),o=!1}else o=tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ls(t,t.updateQueue),Ve(t),null);case 4:return ye(),e===null&&hu(t.stateNode.containerInfo),Ve(t),null;case 10:return On(t.type),Ve(t),null;case 19:if(Y(Ze),l=t.memoizedState,l===null)return Ve(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)Ui(l,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Xr(e),c!==null){for(t.flags|=128,Ui(l,!1),e=c.updateQueue,t.updateQueue=e,ls(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)nh(a,e),a=a.sibling;return J(Ze,Ze.current&1|2),je&&Tn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&zt()>cs&&(t.flags|=128,o=!0,Ui(l,!1),t.lanes=4194304)}else{if(!o)if(e=Xr(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,ls(t,e),Ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!je)return Ve(t),null}else 2*zt()-l.renderingStartTime>cs&&a!==536870912&&(t.flags|=128,o=!0,Ui(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=zt(),e.sibling=null,a=Ze.current,J(Ze,o?a&1|2:a&1),je&&Tn(t,l.treeForkCount),e):(Ve(t),null);case 22:case 23:return kt(t),mc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),a=t.updateQueue,a!==null&&ls(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Y(qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),On($e),Ve(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function dx(e,t){switch(Io(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On($e),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(s(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ze),null;case 4:return ye(),null;case 10:return On(t.type),null;case 22:case 23:return kt(t),mc(),e!==null&&Y(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return On($e),null;case 25:return null;default:return null}}function Am(e,t){switch(Io(t),t.tag){case 3:On($e),ye();break;case 26:case 27:case 5:Te(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:Y(Ze);break;case 10:On(t.type);break;case 22:case 23:kt(t),mc(),e!==null&&Y(qa);break;case 24:On($e)}}function Hi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,p=a.inst;l=c(),p.destroy=l}a=a.next}while(a!==o)}}catch(S){Le(t,t.return,S)}}function ra(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var p=l.inst,S=p.destroy;if(S!==void 0){p.destroy=void 0,o=t;var R=a,U=S;try{U()}catch(G){Le(o,R,G)}}}l=l.next}while(l!==c)}}catch(G){Le(t,t.return,G)}}function Om(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xh(t,a)}catch(l){Le(e,e.return,l)}}}function Mm(e,t,a){a.props=Xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Le(e,t,l)}}function Bi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){Le(e,t,o)}}function vn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Le(e,t,o)}else a.current=null}function _m(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Le(e,e.return,o)}}function Kc(e,t,a){try{var l=e.stateNode;Dx(l,e.type,a,t),l[Ct]=t}catch(o){Le(e,e.return,o)}}function zm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ha(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ha(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Nn));else if(l!==4&&(l===27&&ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,a),e=e.sibling;e!==null;)Zc(e,t,a),e=e.sibling}function is(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(is(e,t,a),e=e.sibling;e!==null;)is(e,t,a),e=e.sibling}function Dm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);pt(t,l,a),t[ft]=e,t[Ct]=a}catch(c){Le(e,e.return,c)}}var Ln=!1,et=!1,Fc=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,ut=null;function hx(e,t){if(e=e.containerInfo,vu=Rs,e=Pd(e),Go(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,S=-1,R=-1,U=0,G=0,K=e,H=null;t:for(;;){for(var k;K!==a||o!==0&&K.nodeType!==3||(S=p+o),K!==c||l!==0&&K.nodeType!==3||(R=p+l),K.nodeType===3&&(p+=K.nodeValue.length),(k=K.firstChild)!==null;)H=K,K=k;for(;;){if(K===e)break t;if(H===a&&++U===o&&(S=p),H===c&&++G===l&&(R=p),(k=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=k}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(yu={focusedElem:e,selectionRange:a},Rs=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var ee=Xa(a.type,o);e=l.getSnapshotBeforeUpdate(ee,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Le(a,a.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)xu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function Um(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Hn(e,a),l&4&&Hi(5,a);break;case 1:if(Hn(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Xa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}l&64&&Om(a),l&512&&Bi(a,a.return);break;case 3:if(Hn(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{xh(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&l&4&&Dm(a);case 26:case 5:Hn(e,a),t===null&&l&4&&_m(a),l&512&&Bi(a,a.return);break;case 12:Hn(e,a);break;case 31:Hn(e,a),l&4&&km(e,a);break;case 13:Hn(e,a),l&4&&qm(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=wx.bind(null,a),Gx(e,a))));break;case 22:if(l=a.memoizedState!==null||Ln,!l){t=t!==null&&t.memoizedState!==null||et,o=Ln;var c=et;Ln=l,(et=t)&&!c?Bn(e,a,(a.subtreeFlags&8772)!==0):Hn(e,a),Ln=o,et=c}break;case 30:break;default:Hn(e,a)}}function Hm(e){var t=e.alternate;t!==null&&(e.alternate=null,Hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&No(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,Rt=!1;function Un(e,t,a){for(a=a.child;a!==null;)Bm(e,t,a),a=a.sibling}function Bm(e,t,a){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(oi,a)}catch{}switch(a.tag){case 26:et||vn(a,t),Un(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||vn(a,t);var l=Ge,o=Rt;ha(a.type)&&(Ge=a.stateNode,Rt=!1),Un(e,t,a),Pi(a.stateNode),Ge=l,Rt=o;break;case 5:et||vn(a,t);case 6:if(l=Ge,o=Rt,Ge=null,Un(e,t,a),Ge=l,Rt=o,Ge!==null)if(Rt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(c){Le(a,t,c)}else try{Ge.removeChild(a.stateNode)}catch(c){Le(a,t,c)}break;case 18:Ge!==null&&(Rt?(e=Ge,Op(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Gl(e)):Op(Ge,a.stateNode));break;case 4:l=Ge,o=Rt,Ge=a.stateNode.containerInfo,Rt=!0,Un(e,t,a),Ge=l,Rt=o;break;case 0:case 11:case 14:case 15:ra(2,a,t),et||ra(4,a,t),Un(e,t,a);break;case 1:et||(vn(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Mm(a,t,l)),Un(e,t,a);break;case 21:Un(e,t,a);break;case 22:et=(l=et)||a.memoizedState!==null,Un(e,t,a),et=l;break;default:Un(e,t,a)}}function km(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gl(e)}catch(a){Le(t,t.return,a)}}}function qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gl(e)}catch(a){Le(t,t.return,a)}}function mx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lm),t;default:throw Error(s(435,e.tag))}}function rs(e,t){var a=mx(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var o=Ex.bind(null,e,l);l.then(o,o)}})}function jt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=e,p=t,S=p;e:for(;S!==null;){switch(S.tag){case 27:if(ha(S.type)){Ge=S.stateNode,Rt=!1;break e}break;case 5:Ge=S.stateNode,Rt=!1;break e;case 3:case 4:Ge=S.stateNode.containerInfo,Rt=!0;break e}S=S.return}if(Ge===null)throw Error(s(160));Bm(c,p,o),Ge=null,Rt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vm(t,e),t=t.sibling}var sn=null;function Vm(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Tt(e),l&4&&(ra(3,e,e.return),Hi(3,e),ra(5,e,e.return));break;case 1:jt(t,e),Tt(e),l&512&&(et||a===null||vn(a,a.return)),l&64&&Ln&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=sn;if(jt(t,e),Tt(e),l&512&&(et||a===null||vn(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[fi]||c[ft]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),pt(c,l,a),c[ft]=e,ct(c),l=c;break e;case"link":var p=Vp("link","href",o).get(l+(a.href||""));if(p){for(var S=0;S<p.length;S++)if(c=p[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(S,1);break t}}c=o.createElement(l),pt(c,l,a),o.head.appendChild(c);break;case"meta":if(p=Vp("meta","content",o).get(l+(a.content||""))){for(S=0;S<p.length;S++)if(c=p[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(S,1);break t}}c=o.createElement(l),pt(c,l,a),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[ft]=e,ct(c),l=c}e.stateNode=l}else Gp(o,e.type,e.stateNode);else e.stateNode=qp(o,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Gp(o,e.type,e.stateNode):qp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,a.memoizedProps)}break;case 27:jt(t,e),Tt(e),l&512&&(et||a===null||vn(a,a.return)),a!==null&&l&4&&Kc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(jt(t,e),Tt(e),l&512&&(et||a===null||vn(a,a.return)),e.flags&32){o=e.stateNode;try{fl(o,"")}catch(ee){Le(e,e.return,ee)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Kc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Fc=!0);break;case 6:if(jt(t,e),Tt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ee){Le(e,e.return,ee)}}break;case 3:if(ws=null,o=sn,sn=xs(t.containerInfo),jt(t,e),sn=o,Tt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Gl(t.containerInfo)}catch(ee){Le(e,e.return,ee)}Fc&&(Fc=!1,Gm(e));break;case 4:l=sn,sn=xs(e.stateNode.containerInfo),jt(t,e),Tt(e),sn=l;break;case 12:jt(t,e),Tt(e);break;case 31:jt(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rs(e,l)));break;case 13:jt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(os=zt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rs(e,l)));break;case 22:o=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=Ln,G=et;if(Ln=U||o,et=G||R,jt(t,e),et=G,Ln=U,Tt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||R||Ln||et||Ka(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,o)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{S=R.stateNode;var K=R.memoizedProps.style,H=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ee){Le(R,R.return,ee)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(ee){Le(R,R.return,ee)}}}else if(t.tag===18){if(a===null){R=t;try{var k=R.stateNode;o?Mp(k,!0):Mp(R.stateNode,!1)}catch(ee){Le(R,R.return,ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,rs(e,a))));break;case 19:jt(t,e),Tt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,rs(e,l)));break;case 30:break;case 21:break;default:jt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(zm(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=Pc(e);is(e,c,o);break;case 5:var p=a.stateNode;a.flags&32&&(fl(p,""),a.flags&=-33);var S=Pc(e);is(e,S,p);break;case 3:case 4:var R=a.stateNode.containerInfo,U=Pc(e);Zc(e,U,R);break;default:throw Error(s(161))}}catch(G){Le(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Um(e,t.alternate,t),t=t.sibling}function Ka(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ra(4,t,t.return),Ka(t);break;case 1:vn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Mm(t,t.return,a),Ka(t);break;case 27:Pi(t.stateNode);case 26:case 5:vn(t,t.return),Ka(t);break;case 22:t.memoizedState===null&&Ka(t);break;case 30:Ka(t);break;default:Ka(t)}e=e.sibling}}function Bn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,p=c.flags;switch(c.tag){case 0:case 11:case 15:Bn(o,c,a),Hi(4,c);break;case 1:if(Bn(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(U){Le(l,l.return,U)}if(l=c,o=l.updateQueue,o!==null){var S=l.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)bh(R[o],S)}catch(U){Le(l,l.return,U)}}a&&p&64&&Om(c),Bi(c,c.return);break;case 27:Dm(c);case 26:case 5:Bn(o,c,a),a&&l===null&&p&4&&_m(c),Bi(c,c.return);break;case 12:Bn(o,c,a);break;case 31:Bn(o,c,a),a&&p&4&&km(o,c);break;case 13:Bn(o,c,a),a&&p&4&&qm(o,c);break;case 22:c.memoizedState===null&&Bn(o,c,a),Bi(c,c.return);break;case 30:break;default:Bn(o,c,a)}t=t.sibling}}function Jc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ci(a))}function $c(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ci(e))}function on(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qm(e,t,a,l),t=t.sibling}function Qm(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,a,l),o&2048&&Hi(9,t);break;case 1:on(e,t,a,l);break;case 3:on(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ci(e)));break;case 12:if(o&2048){on(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,p=c.id,S=c.onPostCommit;typeof S=="function"&&S(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Le(t,t.return,R)}}else on(e,t,a,l);break;case 31:on(e,t,a,l);break;case 13:on(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,p=t.alternate,t.memoizedState!==null?c._visibility&2?on(e,t,a,l):ki(e,t):c._visibility&2?on(e,t,a,l):(c._visibility|=2,Ml(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Jc(p,t);break;case 24:on(e,t,a,l),o&2048&&$c(t.alternate,t);break;default:on(e,t,a,l)}}function Ml(e,t,a,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,p=t,S=a,R=l,U=p.flags;switch(p.tag){case 0:case 11:case 15:Ml(c,p,S,R,o),Hi(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?Ml(c,p,S,R,o):ki(c,p):(G._visibility|=2,Ml(c,p,S,R,o)),o&&U&2048&&Jc(p.alternate,p);break;case 24:Ml(c,p,S,R,o),o&&U&2048&&$c(p.alternate,p);break;default:Ml(c,p,S,R,o)}t=t.sibling}}function ki(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:ki(a,l),o&2048&&Jc(l.alternate,l);break;case 24:ki(a,l),o&2048&&$c(l.alternate,l);break;default:ki(a,l)}t=t.sibling}}var qi=8192;function _l(e,t,a){if(e.subtreeFlags&qi)for(e=e.child;e!==null;)Ym(e,t,a),e=e.sibling}function Ym(e,t,a){switch(e.tag){case 26:_l(e,t,a),e.flags&qi&&e.memoizedState!==null&&e1(a,sn,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,a);break;case 3:case 4:var l=sn;sn=xs(e.stateNode.containerInfo),_l(e,t,a),sn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=qi,qi=16777216,_l(e,t,a),qi=l):_l(e,t,a));break;default:_l(e,t,a)}}function Xm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];ut=l,Pm(l,e)}Xm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Km(e),e=e.sibling}function Km(e){switch(e.tag){case 0:case 11:case 15:Vi(e),e.flags&2048&&ra(9,e,e.return);break;case 3:Vi(e);break;case 12:Vi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ss(e)):Vi(e);break;default:Vi(e)}}function ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];ut=l,Pm(l,e)}Xm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ra(8,t,t.return),ss(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ss(t));break;default:ss(t)}e=e.sibling}}function Pm(e,t){for(;ut!==null;){var a=ut;switch(a.tag){case 0:case 11:case 15:ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ci(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ut=l;else e:for(a=e;ut!==null;){l=ut;var o=l.sibling,c=l.return;if(Hm(l),l===a){ut=null;break e}if(o!==null){o.return=c,ut=o;break e}ut=c}}}var px={getCacheForType:function(e){var t=ht($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ht($e).controller.signal}},vx=typeof WeakMap=="function"?WeakMap:Map,_e=0,ke=null,we=null,Ne=0,De=0,qt=null,sa=!1,zl=!1,Wc=!1,kn=0,Ke=0,oa=0,Pa=0,Ic=0,Vt=0,Dl=0,Gi=null,At=null,eu=!1,os=0,Zm=0,cs=1/0,us=null,ca=null,nt=0,ua=null,Ll=null,qn=0,tu=0,nu=null,Fm=null,Qi=0,au=null;function Gt(){return(_e&2)!==0&&Ne!==0?Ne&-Ne:D.T!==null?cu():fd()}function Jm(){if(Vt===0)if((Ne&536870912)===0||je){var e=gr;gr<<=1,(gr&3932160)===0&&(gr=262144),Vt=e}else Vt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Vt}function Ot(e,t,a){(e===ke&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Ul(e,0),fa(e,Ne,Vt,!1)),ui(e,a),((_e&2)===0||e!==ke)&&(e===ke&&((_e&2)===0&&(Pa|=a),Ke===4&&fa(e,Ne,Vt,!1)),yn(e))}function $m(e,t,a){if((_e&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ci(e,t),o=l?bx(e,t):iu(e,t,!0),c=l;do{if(o===0){zl&&!l&&fa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!yx(a)){o=iu(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var S=e;o=Gi;var R=S.current.memoizedState.isDehydrated;if(R&&(Ul(S,p).flags|=256),p=iu(S,p,!1),p!==2){if(Wc&&!R){S.errorRecoveryDisabledLanes|=c,Pa|=c,o=4;break e}c=At,At=o,c!==null&&(At===null?At=c:At.push.apply(At,c))}o=p}if(c=!1,o!==2)continue}}if(o===1){Ul(e,0),fa(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:fa(l,t,Vt,!sa);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=os+300-zt(),10<o)){if(fa(l,t,Vt,!sa),xr(l,0,!0)!==0)break e;qn=t,l.timeoutHandle=Tp(Wm.bind(null,l,a,At,us,eu,t,Vt,Pa,Dl,sa,c,"Throttled",-0,0),o);break e}Wm(l,a,At,us,eu,t,Vt,Pa,Dl,sa,c,null,-0,0)}}break}while(!0);yn(e)}function Wm(e,t,a,l,o,c,p,S,R,U,G,K,H,k){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nn},Ym(t,c,K);var ee=(c&62914560)===c?os-zt():(c&4194048)===c?Zm-zt():0;if(ee=t1(K,ee),ee!==null){qn=c,e.cancelPendingCommit=ee(rp.bind(null,e,t,c,a,l,o,p,S,R,G,K,null,H,k)),fa(e,c,p,!U);return}}rp(e,t,c,a,l,o,p,S,R)}function yx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!Ut(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fa(e,t,a,l){t&=~Ic,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-Lt(o),p=1<<c;l[c]=-1,o&=~p}a!==0&&od(e,a,t)}function fs(){return(_e&6)===0?(Yi(0),!1):!0}function lu(){if(we!==null){if(De===0)var e=we.return;else e=we,An=Ba=null,xc(e),Rl=null,Ri=0,e=we;for(;e!==null;)Am(e.alternate,e),e=e.return;we=null}}function Ul(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Hx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),qn=0,lu(),ke=e,we=a=jn(e.current,null),Ne=t,De=0,qt=null,sa=!1,zl=ci(e,t),Wc=!1,Dl=Vt=Ic=Pa=oa=Ke=0,At=Gi=null,eu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Lt(l),c=1<<o;t|=e[o],l&=~c}return kn=t,_r(),a}function Im(e,t){ge=null,D.H=Di,t===Nl||t===qr?(t=ph(),De=3):t===oc?(t=ph(),De=4):De=t===Uc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,we===null&&(Ke=1,es(e,Ft(t,e.current)))}function ep(){var e=Bt.current;return e===null?!0:(Ne&4194048)===Ne?It===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===It:!1}function tp(){var e=D.H;return D.H=Di,e===null?Di:e}function np(){var e=D.A;return D.A=px,e}function ds(){Ke=4,sa||(Ne&4194048)!==Ne&&Bt.current!==null||(zl=!0),(oa&134217727)===0&&(Pa&134217727)===0||ke===null||fa(ke,Ne,Vt,!1)}function iu(e,t,a){var l=_e;_e|=2;var o=tp(),c=np();(ke!==e||Ne!==t)&&(us=null,Ul(e,t)),t=!1;var p=Ke;e:do try{if(De!==0&&we!==null){var S=we,R=qt;switch(De){case 8:lu(),p=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var U=De;if(De=0,qt=null,Hl(e,S,R,U),a&&zl){p=0;break e}break;default:U=De,De=0,qt=null,Hl(e,S,R,U)}}gx(),p=Ke;break}catch(G){Im(e,G)}while(!0);return t&&e.shellSuspendCounter++,An=Ba=null,_e=l,D.H=o,D.A=c,we===null&&(ke=null,Ne=0,_r()),p}function gx(){for(;we!==null;)ap(we)}function bx(e,t){var a=_e;_e|=2;var l=tp(),o=np();ke!==e||Ne!==t?(us=null,cs=zt()+500,Ul(e,t)):zl=ci(e,t);e:do try{if(De!==0&&we!==null){t=we;var c=qt;t:switch(De){case 1:De=0,qt=null,Hl(e,t,c,1);break;case 2:case 9:if(hh(c)){De=0,qt=null,lp(t);break}t=function(){De!==2&&De!==9||ke!==e||(De=7),yn(e)},c.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:hh(c)?(De=0,qt=null,lp(t)):(De=0,qt=null,Hl(e,t,c,7));break;case 5:var p=null;switch(we.tag){case 26:p=we.memoizedState;case 5:case 27:var S=we;if(p?Qp(p):S.stateNode.complete){De=0,qt=null;var R=S.sibling;if(R!==null)we=R;else{var U=S.return;U!==null?(we=U,hs(U)):we=null}break t}}De=0,qt=null,Hl(e,t,c,5);break;case 6:De=0,qt=null,Hl(e,t,c,6);break;case 8:lu(),Ke=6;break e;default:throw Error(s(462))}}xx();break}catch(G){Im(e,G)}while(!0);return An=Ba=null,D.H=l,D.A=o,_e=a,we!==null?0:(ke=null,Ne=0,_r(),Ke)}function xx(){for(;we!==null&&!Q0();)ap(we)}function ap(e){var t=jm(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?hs(e):we=t}function lp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Sm(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Sm(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:xc(t);default:Am(a,t),t=we=nh(t,kn),t=jm(a,t,kn)}e.memoizedProps=e.pendingProps,t===null?hs(e):we=t}function Hl(e,t,a,l){An=Ba=null,xc(t),Rl=null,Ri=0;var o=t.return;try{if(ox(e,o,t,a,Ne)){Ke=1,es(e,Ft(a,e.current)),we=null;return}}catch(c){if(o!==null)throw we=o,c;Ke=1,es(e,Ft(a,e.current)),we=null;return}t.flags&32768?(je||l===1?e=!0:zl||(Ne&536870912)!==0?e=!1:(sa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Bt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ip(t,e)):hs(t)}function hs(e){var t=e;do{if((t.flags&32768)!==0){ip(t,sa);return}e=t.return;var a=fx(t.alternate,t,kn);if(a!==null){we=a;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Ke===0&&(Ke=5)}function ip(e,t){do{var a=dx(e.alternate,e);if(a!==null){a.flags&=32767,we=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=a}while(e!==null);Ke=6,we=null}function rp(e,t,a,l,o,c,p,S,R){e.cancelPendingCommit=null;do ms();while(nt!==0);if((_e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Po,I0(e,a,c,p,S,R),e===ke&&(we=ke=null,Ne=0),Ll=t,ua=e,qn=a,tu=c,nu=o,Fm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Cx(vr,function(){return fp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,o=P.p,P.p=2,p=_e,_e|=4;try{hx(e,t,a)}finally{_e=p,P.p=o,D.T=l}}nt=1,sp(),op(),cp()}}function sp(){if(nt===1){nt=0;var e=ua,t=Ll,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=P.p;P.p=2;var o=_e;_e|=4;try{Vm(t,e);var c=yu,p=Pd(e.containerInfo),S=c.focusedElem,R=c.selectionRange;if(p!==S&&S&&S.ownerDocument&&Kd(S.ownerDocument.documentElement,S)){if(R!==null&&Go(S)){var U=R.start,G=R.end;if(G===void 0&&(G=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(G,S.value.length);else{var K=S.ownerDocument||document,H=K&&K.defaultView||window;if(H.getSelection){var k=H.getSelection(),ee=S.textContent.length,ce=Math.min(R.start,ee),Be=R.end===void 0?ce:Math.min(R.end,ee);!k.extend&&ce>Be&&(p=Be,Be=ce,ce=p);var _=Xd(S,ce),O=Xd(S,Be);if(_&&O&&(k.rangeCount!==1||k.anchorNode!==_.node||k.anchorOffset!==_.offset||k.focusNode!==O.node||k.focusOffset!==O.offset)){var L=K.createRange();L.setStart(_.node,_.offset),k.removeAllRanges(),ce>Be?(k.addRange(L),k.extend(O.node,O.offset)):(L.setEnd(O.node,O.offset),k.addRange(L))}}}}for(K=[],k=S;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var X=K[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Rs=!!vu,yu=vu=null}finally{_e=o,P.p=l,D.T=a}}e.current=t,nt=2}}function op(){if(nt===2){nt=0;var e=ua,t=Ll,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=P.p;P.p=2;var o=_e;_e|=4;try{Um(e,t.alternate,t)}finally{_e=o,P.p=l,D.T=a}}nt=3}}function cp(){if(nt===4||nt===3){nt=0,Y0();var e=ua,t=Ll,a=qn,l=Fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Ll=ua=null,up(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ca=null),Eo(a),t=t.stateNode,Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(oi,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,o=P.p,P.p=2,D.T=null;try{for(var c=e.onRecoverableError,p=0;p<l.length;p++){var S=l[p];c(S.value,{componentStack:S.stack})}}finally{D.T=t,P.p=o}}(qn&3)!==0&&ms(),yn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===au?Qi++:(Qi=0,au=e):Qi=0,Yi(0)}}function up(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ci(t)))}function ms(){return sp(),op(),cp(),fp()}function fp(){if(nt!==5)return!1;var e=ua,t=tu;tu=0;var a=Eo(qn),l=D.T,o=P.p;try{P.p=32>a?32:a,D.T=null,a=nu,nu=null;var c=ua,p=qn;if(nt=0,Ll=ua=null,qn=0,(_e&6)!==0)throw Error(s(331));var S=_e;if(_e|=4,Km(c.current),Qm(c,c.current,p,a),_e=S,Yi(0,!1),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(oi,c)}catch{}return!0}finally{P.p=o,D.T=l,up(e,t)}}function dp(e,t,a){t=Ft(a,t),t=Lc(e.stateNode,t,2),e=aa(e,t,2),e!==null&&(ui(e,2),yn(e))}function Le(e,t,a){if(e.tag===3)dp(e,e,a);else for(;t!==null;){if(t.tag===3){dp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ca===null||!ca.has(l))){e=Ft(a,e),a=hm(2),l=aa(t,a,2),l!==null&&(mm(a,l,t,e),ui(l,2),yn(l));break}}t=t.return}}function ru(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new vx;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(Wc=!0,o.add(a),e=Sx.bind(null,e,t,a),t.then(e,e))}function Sx(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ke===e&&(Ne&a)===a&&(Ke===4||Ke===3&&(Ne&62914560)===Ne&&300>zt()-os?(_e&2)===0&&Ul(e,0):Ic|=a,Dl===Ne&&(Dl=0)),yn(e)}function hp(e,t){t===0&&(t=sd()),e=La(e,t),e!==null&&(ui(e,t),yn(e))}function wx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),hp(e,a)}function Ex(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),hp(e,a)}function Cx(e,t){return bo(e,t)}var ps=null,Bl=null,su=!1,vs=!1,ou=!1,da=0;function yn(e){e!==Bl&&e.next===null&&(Bl===null?ps=Bl=e:Bl=Bl.next=e),vs=!0,su||(su=!0,Rx())}function Yi(e,t){if(!ou&&vs){ou=!0;do for(var a=!1,l=ps;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var p=l.suspendedLanes,S=l.pingedLanes;c=(1<<31-Lt(42|e)+1)-1,c&=o&~(p&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,yp(l,c))}else c=Ne,c=xr(l,l===ke?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||ci(l,c)||(a=!0,yp(l,c));l=l.next}while(a);ou=!1}}function Nx(){mp()}function mp(){vs=su=!1;var e=0;da!==0&&Ux()&&(e=da);for(var t=zt(),a=null,l=ps;l!==null;){var o=l.next,c=pp(l,t);c===0?(l.next=null,a===null?ps=o:a.next=o,o===null&&(Bl=a)):(a=l,(e!==0||(c&3)!==0)&&(vs=!0)),l=o}nt!==0&&nt!==5||Yi(e),da!==0&&(da=0)}function pp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var p=31-Lt(c),S=1<<p,R=o[p];R===-1?((S&a)===0||(S&l)!==0)&&(o[p]=W0(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=ke,a=Ne,a=xr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xo(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ci(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&xo(l),Eo(a)){case 2:case 8:a=id;break;case 32:a=vr;break;case 268435456:a=rd;break;default:a=vr}return l=vp.bind(null,e),a=bo(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&xo(l),e.callbackPriority=2,e.callbackNode=null,2}function vp(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ms()&&e.callbackNode!==a)return null;var l=Ne;return l=xr(e,e===ke?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:($m(e,l,t),pp(e,zt()),e.callbackNode!=null&&e.callbackNode===a?vp.bind(null,e):null)}function yp(e,t){if(ms())return null;$m(e,t,!0)}function Rx(){Bx(function(){(_e&6)!==0?bo(ld,Nx):mp()})}function cu(){if(da===0){var e=El;e===0&&(e=yr,yr<<=1,(yr&261888)===0&&(yr=256)),da=e}return da}function gp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cr(""+e)}function bp(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function jx(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var c=gp((o[Ct]||null).action),p=l.submitter;p&&(t=(t=p[Ct]||null)?gp(t.formAction):p.getAttribute("formAction"),t!==null&&(c=t,p=null));var S=new Tr("action","action",null,l,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(da!==0){var R=p?bp(o,p):new FormData(o);Ac(a,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=p?bp(o,p):new FormData(o),Ac(a,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var uu=0;uu<Ko.length;uu++){var fu=Ko[uu],Tx=fu.toLowerCase(),Ax=fu[0].toUpperCase()+fu.slice(1);rn(Tx,"on"+Ax)}rn(Jd,"onAnimationEnd"),rn($d,"onAnimationIteration"),rn(Wd,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(Xb,"onTransitionRun"),rn(Kb,"onTransitionStart"),rn(Pb,"onTransitionCancel"),rn(Id,"onTransitionEnd"),cl("onMouseEnter",["mouseout","mouseover"]),cl("onMouseLeave",["mouseout","mouseover"]),cl("onPointerEnter",["pointerout","pointerover"]),cl("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="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(" "),Ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xi));function xp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var p=l.length-1;0<=p;p--){var S=l[p],R=S.instance,U=S.currentTarget;if(S=S.listener,R!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=U;try{c(o)}catch(G){Mr(G)}o.currentTarget=null,c=R}else for(p=0;p<l.length;p++){if(S=l[p],R=S.instance,U=S.currentTarget,S=S.listener,R!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=U;try{c(o)}catch(G){Mr(G)}o.currentTarget=null,c=R}}}}function Ee(e,t){var a=t[Co];a===void 0&&(a=t[Co]=new Set);var l=e+"__bubble";a.has(l)||(Sp(t,e,2,!1),a.add(l))}function du(e,t,a){var l=0;t&&(l|=4),Sp(a,e,l,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function hu(e){if(!e[ys]){e[ys]=!0,md.forEach(function(a){a!=="selectionchange"&&(Ox.has(a)||du(a,!1,e),du(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,du("selectionchange",!1,t))}}function Sp(e,t,a,l){switch(Jp(t)){case 2:var o=l1;break;case 8:o=i1;break;default:o=Tu}a=o.bind(null,t,a,e),o=void 0,!zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function mu(e,t,a,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var S=l.stateNode.containerInfo;if(S===o)break;if(p===4)for(p=l.return;p!==null;){var R=p.tag;if((R===3||R===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;S!==null;){if(p=rl(S),p===null)return;if(R=p.tag,R===5||R===6||R===26||R===27){l=c=p;continue e}S=S.parentNode}}l=l.return}Rd(function(){var U=c,G=Mo(a),K=[];e:{var H=eh.get(e);if(H!==void 0){var k=Tr,ee=e;switch(e){case"keypress":if(Rr(a)===0)break e;case"keydown":case"keyup":k=Eb;break;case"focusin":ee="focus",k=Ho;break;case"focusout":ee="blur",k=Ho;break;case"beforeblur":case"afterblur":k=Ho;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=fb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Rb;break;case Jd:case $d:case Wd:k=mb;break;case Id:k=Tb;break;case"scroll":case"scrollend":k=cb;break;case"wheel":k=Ob;break;case"copy":case"cut":case"paste":k=vb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Md;break;case"toggle":case"beforetoggle":k=_b}var ce=(t&4)!==0,Be=!ce&&(e==="scroll"||e==="scrollend"),_=ce?H!==null?H+"Capture":null:H;ce=[];for(var O=U,L;O!==null;){var X=O;if(L=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||L===null||_===null||(X=hi(O,_),X!=null&&ce.push(Ki(O,X,L))),Be)break;O=O.return}0<ce.length&&(H=new k(H,ee,null,a,G),K.push({event:H,listeners:ce}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",H&&a!==Oo&&(ee=a.relatedTarget||a.fromElement)&&(rl(ee)||ee[il]))break e;if((k||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,k?(ee=a.relatedTarget||a.toElement,k=U,ee=ee?rl(ee):null,ee!==null&&(Be=f(ee),ce=ee.tag,ee!==Be||ce!==5&&ce!==27&&ce!==6)&&(ee=null)):(k=null,ee=U),k!==ee)){if(ce=Ad,X="onMouseLeave",_="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Md,X="onPointerLeave",_="onPointerEnter",O="pointer"),Be=k==null?H:di(k),L=ee==null?H:di(ee),H=new ce(X,O+"leave",k,a,G),H.target=Be,H.relatedTarget=L,X=null,rl(G)===U&&(ce=new ce(_,O+"enter",ee,a,G),ce.target=L,ce.relatedTarget=Be,X=ce),Be=X,k&&ee)t:{for(ce=Mx,_=k,O=ee,L=0,X=_;X;X=ce(X))L++;X=0;for(var ie=O;ie;ie=ce(ie))X++;for(;0<L-X;)_=ce(_),L--;for(;0<X-L;)O=ce(O),X--;for(;L--;){if(_===O||O!==null&&_===O.alternate){ce=_;break t}_=ce(_),O=ce(O)}ce=null}else ce=null;k!==null&&wp(K,H,k,ce,!1),ee!==null&&Be!==null&&wp(K,Be,ee,ce,!0)}}e:{if(H=U?di(U):window,k=H.nodeName&&H.nodeName.toLowerCase(),k==="select"||k==="input"&&H.type==="file")var Ae=kd;else if(Hd(H))if(qd)Ae=Gb;else{Ae=qb;var ae=kb}else k=H.nodeName,!k||k.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Ao(U.elementType)&&(Ae=kd):Ae=Vb;if(Ae&&(Ae=Ae(e,U))){Bd(K,Ae,a,G);break e}ae&&ae(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&To(H,"number",H.value)}switch(ae=U?di(U):window,e){case"focusin":(Hd(ae)||ae.contentEditable==="true")&&(pl=ae,Qo=U,Si=null);break;case"focusout":Si=Qo=pl=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,Zd(K,a,G);break;case"selectionchange":if(Yb)break;case"keydown":case"keyup":Zd(K,a,G)}var xe;if(ko)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ml?Ld(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(_d&&a.locale!=="ko"&&(ml||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ml&&(xe=jd()):(Jn=G,Do="value"in Jn?Jn.value:Jn.textContent,ml=!0)),ae=gs(U,Re),0<ae.length&&(Re=new Od(Re,e,null,a,G),K.push({event:Re,listeners:ae}),xe?Re.data=xe:(xe=Ud(a),xe!==null&&(Re.data=xe)))),(xe=Db?Lb(e,a):Ub(e,a))&&(Re=gs(U,"onBeforeInput"),0<Re.length&&(ae=new Od("onBeforeInput","beforeinput",null,a,G),K.push({event:ae,listeners:Re}),ae.data=xe)),jx(K,e,U,a,G)}xp(K,t)})}function Ki(e,t,a){return{instance:e,listener:t,currentTarget:a}}function gs(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=hi(e,a),o!=null&&l.unshift(Ki(e,o,c)),o=hi(e,t),o!=null&&l.push(Ki(e,o,c))),e.tag===3)return l;e=e.return}return[]}function Mx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wp(e,t,a,l,o){for(var c=t._reactName,p=[];a!==null&&a!==l;){var S=a,R=S.alternate,U=S.stateNode;if(S=S.tag,R!==null&&R===l)break;S!==5&&S!==26&&S!==27||U===null||(R=U,o?(U=hi(a,c),U!=null&&p.unshift(Ki(a,U,R))):o||(U=hi(a,c),U!=null&&p.push(Ki(a,U,R)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var _x=/\r\n?/g,zx=/\u0000|\uFFFD/g;function Ep(e){return(typeof e=="string"?e:""+e).replace(_x,`
9
- `).replace(zx,"")}function Cp(e,t){return t=Ep(t),Ep(e)===t}function He(e,t,a,l,o,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||fl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&fl(e,""+l);break;case"className":wr(e,"class",l);break;case"tabIndex":wr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":wr(e,a,l);break;case"style":Cd(e,l,c);break;case"data":if(t!=="object"){wr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Cr(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 c=="function"&&(a==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Cr(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"onScroll":l!=null&&Ee("scroll",e);break;case"onScrollEnd":l!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Cr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Sr(e,"popover",l);break;case"xlinkActuate":Cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Cn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Cn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Cn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Cn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Sr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=sb.get(a)||a,Sr(e,a,l))}}function pu(e,t,a,l,o,c){switch(a){case"style":Cd(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?fl(e,l):(typeof l=="number"||typeof l=="bigint")&&fl(e,""+l);break;case"onScroll":l!=null&&Ee("scroll",e);break;case"onScrollEnd":l!=null&&Ee("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[Ct]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Sr(e,a,l)}}}function pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var p=a[c];if(p!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,c,p,a,null)}}o&&He(e,t,"srcSet",a.srcSet,a,null),l&&He(e,t,"src",a.src,a,null);return;case"input":Ee("invalid",e);var S=c=p=o=null,R=null,U=null;for(l in a)if(a.hasOwnProperty(l)){var G=a[l];if(G!=null)switch(l){case"name":o=G;break;case"type":p=G;break;case"checked":R=G;break;case"defaultChecked":U=G;break;case"value":c=G;break;case"defaultValue":S=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:He(e,t,l,G,a,null)}}xd(e,c,S,R,U,p,o,!1);return;case"select":Ee("invalid",e),l=p=c=null;for(o in a)if(a.hasOwnProperty(o)&&(S=a[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":p=S;break;case"multiple":l=S;default:He(e,t,o,S,a,null)}t=c,a=p,e.multiple=!!l,t!=null?ul(e,!!l,t,!1):a!=null&&ul(e,!!l,a,!0);return;case"textarea":Ee("invalid",e),c=o=l=null;for(p in a)if(a.hasOwnProperty(p)&&(S=a[p],S!=null))switch(p){case"value":l=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:He(e,t,p,S,a,null)}wd(e,l,o,c);return;case"option":for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!=null)&&(R==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":He(e,t,R,l,a,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(l=0;l<Xi.length;l++)Ee(Xi[l],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in a)if(a.hasOwnProperty(U)&&(l=a[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:He(e,t,U,l,a,null)}return;default:if(Ao(t)){for(G in a)a.hasOwnProperty(G)&&(l=a[G],l!==void 0&&pu(e,t,G,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&He(e,t,S,l,a,null))}function Dx(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,p=null,S=null,R=null,U=null,G=null;for(k in a){var K=a[k];if(a.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":R=K;default:l.hasOwnProperty(k)||He(e,t,k,null,l,K)}}for(var H in l){var k=l[H];if(K=a[H],l.hasOwnProperty(H)&&(k!=null||K!=null))switch(H){case"type":c=k;break;case"name":o=k;break;case"checked":U=k;break;case"defaultChecked":G=k;break;case"value":p=k;break;case"defaultValue":S=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:k!==K&&He(e,t,H,k,l,K)}}jo(e,p,S,R,U,G,c,o);return;case"select":k=p=S=H=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":k=R;default:l.hasOwnProperty(c)||He(e,t,c,null,l,R)}for(o in l)if(c=l[o],R=a[o],l.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":H=c;break;case"defaultValue":S=c;break;case"multiple":p=c;default:c!==R&&He(e,t,o,c,l,R)}t=S,a=p,l=k,H!=null?ul(e,!!a,H,!1):!!l!=!!a&&(t!=null?ul(e,!!a,t,!0):ul(e,!!a,a?[]:"",!1));return;case"textarea":k=H=null;for(S in a)if(o=a[S],a.hasOwnProperty(S)&&o!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:He(e,t,S,null,l,o)}for(p in l)if(o=l[p],c=a[p],l.hasOwnProperty(p)&&(o!=null||c!=null))switch(p){case"value":H=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&He(e,t,p,o,l,c)}Sd(e,H,k);return;case"option":for(var ee in a)H=a[ee],a.hasOwnProperty(ee)&&H!=null&&!l.hasOwnProperty(ee)&&(ee==="selected"?e.selected=!1:He(e,t,ee,null,l,H));for(R in l)H=l[R],k=a[R],l.hasOwnProperty(R)&&H!==k&&(H!=null||k!=null)&&(R==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":He(e,t,R,H,l,k));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 ce in a)H=a[ce],a.hasOwnProperty(ce)&&H!=null&&!l.hasOwnProperty(ce)&&He(e,t,ce,null,l,H);for(U in l)if(H=l[U],k=a[U],l.hasOwnProperty(U)&&H!==k&&(H!=null||k!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:He(e,t,U,H,l,k)}return;default:if(Ao(t)){for(var Be in a)H=a[Be],a.hasOwnProperty(Be)&&H!==void 0&&!l.hasOwnProperty(Be)&&pu(e,t,Be,void 0,l,H);for(G in l)H=l[G],k=a[G],!l.hasOwnProperty(G)||H===k||H===void 0&&k===void 0||pu(e,t,G,H,l,k);return}}for(var _ in a)H=a[_],a.hasOwnProperty(_)&&H!=null&&!l.hasOwnProperty(_)&&He(e,t,_,null,l,H);for(K in l)H=l[K],k=a[K],!l.hasOwnProperty(K)||H===k||H==null&&k==null||He(e,t,K,H,l,k)}function Np(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],c=o.transferSize,p=o.initiatorType,S=o.duration;if(c&&S&&Np(p)){for(p=0,S=o.responseEnd,l+=1;l<a.length;l++){var R=a[l],U=R.startTime;if(U>S)break;var G=R.transferSize,K=R.initiatorType;G&&Np(K)&&(R=R.responseEnd,p+=G*(R<S?1:(S-U)/(R-U)))}if(--l,t+=8*(c+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vu=null,yu=null;function bs(e){return e.nodeType===9?e:e.ownerDocument}function Rp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bu=null;function Ux(){var e=window.event;return e&&e.type==="popstate"?e===bu?!1:(bu=e,!0):(bu=null,!1)}var Tp=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,Ap=typeof Promise=="function"?Promise:void 0,Bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ap<"u"?function(e){return Ap.resolve(null).then(e).catch(kx)}:Tp;function kx(e){setTimeout(function(){throw e})}function ha(e){return e==="head"}function Op(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(o),Gl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Pi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Pi(a);for(var c=a.firstChild;c;){var p=c.nextSibling,S=c.nodeName;c[fi]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=p}}else a==="body"&&Pi(e.ownerDocument.body);a=o}while(a);Gl(t)}function Mp(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function xu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":xu(a),No(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function qx(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[fi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=en(e.nextSibling),e===null)break}return null}function Vx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=en(e.nextSibling),e===null))return null;return e}function _p(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=en(e.nextSibling),e===null))return null;return e}function Su(e){return e.data==="$?"||e.data==="$~"}function wu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Gx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function en(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Eu=null;function zp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return en(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Lp(e,t,a){switch(t=bs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);No(e)}var tn=new Map,Up=new Set;function xs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=P.d;P.d={f:Qx,r:Yx,D:Xx,C:Kx,L:Px,m:Zx,X:Jx,S:Fx,M:$x};function Qx(){var e=Vn.f(),t=fs();return e||t}function Yx(e){var t=sl(e);t!==null&&t.tag===5&&t.type==="form"?Ih(t):Vn.r(e)}var kl=typeof document>"u"?null:document;function Hp(e,t,a){var l=kl;if(l&&typeof t=="string"&&t){var o=Pt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Up.has(o)||(Up.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),pt(t,"link",e),ct(t),l.head.appendChild(t)))}}function Xx(e){Vn.D(e),Hp("dns-prefetch",e,null)}function Kx(e,t){Vn.C(e,t),Hp("preconnect",e,t)}function Px(e,t,a){Vn.L(e,t,a);var l=kl;if(l&&e&&t){var o='link[rel="preload"][as="'+Pt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Pt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Pt(a.imageSizes)+'"]')):o+='[href="'+Pt(e)+'"]';var c=o;switch(t){case"style":c=ql(e);break;case"script":c=Vl(e)}tn.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),tn.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Zi(c))||t==="script"&&l.querySelector(Fi(c))||(t=l.createElement("link"),pt(t,"link",e),ct(t),l.head.appendChild(t)))}}function Zx(e,t){Vn.m(e,t);var a=kl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Pt(l)+'"][href="'+Pt(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Vl(e)}if(!tn.has(c)&&(e=x({rel:"modulepreload",href:e},t),tn.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fi(c)))return}l=a.createElement("link"),pt(l,"link",e),ct(l),a.head.appendChild(l)}}}function Fx(e,t,a){Vn.S(e,t,a);var l=kl;if(l&&e){var o=ol(l).hoistableStyles,c=ql(e);t=t||"default";var p=o.get(c);if(!p){var S={loading:0,preload:null};if(p=l.querySelector(Zi(c)))S.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=tn.get(c))&&Cu(e,a);var R=p=l.createElement("link");ct(R),pt(R,"link",e),R._p=new Promise(function(U,G){R.onload=U,R.onerror=G}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ss(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:S},o.set(c,p)}}}function Jx(e,t){Vn.X(e,t);var a=kl;if(a&&e){var l=ol(a).hoistableScripts,o=Vl(e),c=l.get(o);c||(c=a.querySelector(Fi(o)),c||(e=x({src:e,async:!0},t),(t=tn.get(o))&&Nu(e,t),c=a.createElement("script"),ct(c),pt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function $x(e,t){Vn.M(e,t);var a=kl;if(a&&e){var l=ol(a).hoistableScripts,o=Vl(e),c=l.get(o);c||(c=a.querySelector(Fi(o)),c||(e=x({src:e,async:!0,type:"module"},t),(t=tn.get(o))&&Nu(e,t),c=a.createElement("script"),ct(c),pt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Bp(e,t,a,l){var o=(o=ue.current)?xs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=ql(a.href),a=ol(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=ql(a.href);var c=ol(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(Zi(e)))&&!c._p&&(p.instance=c,p.state.loading=5),tn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},tn.set(e,a),c||Wx(o,e,a,p.state))),t&&l===null)throw Error(s(528,""));return p}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Vl(a),a=ol(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ql(e){return'href="'+Pt(e)+'"'}function Zi(e){return'link[rel="stylesheet"]['+e+"]"}function kp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Wx(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),pt(t,"link",a),ct(t),e.head.appendChild(t))}function Vl(e){return'[src="'+Pt(e)+'"]'}function Fi(e){return"script[async]"+e}function qp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Pt(a.href)+'"]');if(l)return t.instance=l,ct(l),l;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),ct(l),pt(l,"style",o),Ss(l,a.precedence,e),t.instance=l;case"stylesheet":o=ql(a.href);var c=e.querySelector(Zi(o));if(c)return t.state.loading|=4,t.instance=c,ct(c),c;l=kp(a),(o=tn.get(o))&&Cu(l,o),c=(e.ownerDocument||e).createElement("link"),ct(c);var p=c;return p._p=new Promise(function(S,R){p.onload=S,p.onerror=R}),pt(c,"link",l),t.state.loading|=4,Ss(c,a.precedence,e),t.instance=c;case"script":return c=Vl(a.src),(o=e.querySelector(Fi(c)))?(t.instance=o,ct(o),o):(l=a,(o=tn.get(c))&&(l=x({},a),Nu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),ct(o),pt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ss(l,a.precedence,e));return t.instance}function Ss(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,p=0;p<l.length;p++){var S=l[p];if(S.dataset.precedence===t)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Cu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ws=null;function Vp(e,t,a){if(ws===null){var l=new Map,o=ws=new Map;o.set(a,l)}else o=ws,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[fi]||c[ft]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var p=c.getAttribute(t)||"";p=e+p;var S=l.get(p);S?S.push(c):l.set(p,[c])}}return l}function Gp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ix(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Qp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function e1(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ql(l.href),c=t.querySelector(Zi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Es.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,ct(c);return}c=t.ownerDocument||t,l=kp(l),(o=tn.get(o))&&Cu(l,o),c=c.createElement("link"),ct(c);var p=c;p._p=new Promise(function(S,R){p.onload=S,p.onerror=R}),pt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Es.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ru=0;function t1(e,t){return e.stylesheets&&e.count===0&&Ns(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ns(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ru===0&&(Ru=62500*Lx());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ns(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ru?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function Es(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ns(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cs=null;function Ns(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cs=new Map,t.forEach(n1,e),Cs=null,Es.call(e))}function n1(e,t){if(!(t.state.loading&4)){var a=Cs.get(e);if(a)var l=a.get(null);else{a=new Map,Cs.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var p=o[c];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),l=p)}l&&a.set(null,l)}o=t.instance,p=o.getAttribute("data-precedence"),c=a.get(p)||l,c===l&&a.set(null,o),a.set(p,o),this.count++,l=Es.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ji={$$typeof:z,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function a1(e,t,a,l,o,c,p,S,R){this.tag=1,this.containerInfo=e,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=So(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=So(0),this.hiddenUpdates=So(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Yp(e,t,a,l,o,c,p,S,R,U,G,K){return e=new a1(e,t,a,p,R,U,G,K,S),t=1,c===!0&&(t|=24),c=Ht(3,null,null,t),e.current=c,c.stateNode=e,t=ic(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},cc(c),e}function Xp(e){return e?(e=gl,e):gl}function Kp(e,t,a,l,o,c){o=Xp(o),l.context===null?l.context=o:l.pendingContext=o,l=na(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=aa(e,l,t),a!==null&&(Ot(a,e,t),Ti(a,e,t))}function Pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ju(e,t){Pp(e,t),(e=e.alternate)&&Pp(e,t)}function Zp(e){if(e.tag===13||e.tag===31){var t=La(e,67108864);t!==null&&Ot(t,e,67108864),ju(e,67108864)}}function Fp(e){if(e.tag===13||e.tag===31){var t=Gt();t=wo(t);var a=La(e,t);a!==null&&Ot(a,e,t),ju(e,t)}}var Rs=!0;function l1(e,t,a,l){var o=D.T;D.T=null;var c=P.p;try{P.p=2,Tu(e,t,a,l)}finally{P.p=c,D.T=o}}function i1(e,t,a,l){var o=D.T;D.T=null;var c=P.p;try{P.p=8,Tu(e,t,a,l)}finally{P.p=c,D.T=o}}function Tu(e,t,a,l){if(Rs){var o=Au(l);if(o===null)mu(e,t,l,js,a),$p(e,l);else if(s1(o,e,t,a,l))l.stopPropagation();else if($p(e,l),t&4&&-1<r1.indexOf(e)){for(;o!==null;){var c=sl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var p=Oa(c.pendingLanes);if(p!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;p;){var R=1<<31-Lt(p);S.entanglements[1]|=R,p&=~R}yn(c),(_e&6)===0&&(cs=zt()+500,Yi(0))}}break;case 31:case 13:S=La(c,2),S!==null&&Ot(S,c,2),fs(),ju(c,2)}if(c=Au(l),c===null&&mu(e,t,l,js,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else mu(e,t,l,null,a)}}function Au(e){return e=Mo(e),Ou(e)}var js=null;function Ou(e){if(js=null,e=rl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return js=e,null}function Jp(e){switch(e){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(X0()){case ld:return 2;case id:return 8;case vr:case K0:return 32;case rd:return 268435456;default:return 32}default:return 32}}var Mu=!1,ma=null,pa=null,va=null,$i=new Map,Wi=new Map,ya=[],r1="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 $p(e,t){switch(e){case"focusin":case"focusout":ma=null;break;case"dragenter":case"dragleave":pa=null;break;case"mouseover":case"mouseout":va=null;break;case"pointerover":case"pointerout":$i.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wi.delete(t.pointerId)}}function Ii(e,t,a,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=sl(t),t!==null&&Zp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function s1(e,t,a,l,o){switch(t){case"focusin":return ma=Ii(ma,e,t,a,l,o),!0;case"dragenter":return pa=Ii(pa,e,t,a,l,o),!0;case"mouseover":return va=Ii(va,e,t,a,l,o),!0;case"pointerover":var c=o.pointerId;return $i.set(c,Ii($i.get(c)||null,e,t,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Wi.set(c,Ii(Wi.get(c)||null,e,t,a,l,o)),!0}return!1}function Wp(e){var t=rl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,dd(e.priority,function(){Fp(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,dd(e.priority,function(){Fp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ts(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Au(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Oo=l,a.target.dispatchEvent(l),Oo=null}else return t=sl(a),t!==null&&Zp(t),e.blockedOn=a,!1;t.shift()}return!0}function Ip(e,t,a){Ts(e)&&a.delete(t)}function o1(){Mu=!1,ma!==null&&Ts(ma)&&(ma=null),pa!==null&&Ts(pa)&&(pa=null),va!==null&&Ts(va)&&(va=null),$i.forEach(Ip),Wi.forEach(Ip)}function As(e,t){e.blockedOn===t&&(e.blockedOn=null,Mu||(Mu=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,o1)))}var Os=null;function ev(e){Os!==e&&(Os=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Os===e&&(Os=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Ou(l||a)===null)continue;break}var c=sl(a);c!==null&&(e.splice(t,3),t-=3,Ac(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Gl(e){function t(R){return As(R,e)}ma!==null&&As(ma,e),pa!==null&&As(pa,e),va!==null&&As(va,e),$i.forEach(t),Wi.forEach(t);for(var a=0;a<ya.length;a++){var l=ya[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ya.length&&(a=ya[0],a.blockedOn===null);)Wp(a),a.blockedOn===null&&ya.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],p=o[Ct]||null;if(typeof c=="function")p||ev(a);else if(p){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,p=c[Ct]||null)S=p.formAction;else if(Ou(o)!==null)continue}else S=p.action;typeof S=="function"?a[l+1]=S:(a.splice(l,3),l-=3),ev(a)}}}function tv(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function _u(e){this._internalRoot=e}Ms.prototype.render=_u.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Gt();Kp(a,l,e,t,null,null)},Ms.prototype.unmount=_u.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kp(e.current,2,null,e,null,null),fs(),t[il]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=fd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ya.length&&t!==0&&t<ya[a].priority;a++);ya.splice(a,0,e),a===0&&Wp(e)}};var nv=i.version;if(nv!=="19.2.4")throw Error(s(527,nv,"19.2.4"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=y(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var c1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_s.isDisabled&&_s.supportsFiber)try{oi=_s.inject(c1),Dt=_s}catch{}}return tr.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=cm,c=um,p=fm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=Yp(e,1,!1,null,null,a,l,null,o,c,p,tv),e[il]=t.current,hu(e),new _u(t)},tr.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",c=cm,p=um,S=fm,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),t=Yp(e,1,!0,t,a??null,l,o,R,c,p,S,tv),t.context=Xp(null),a=t.current,l=Gt(),l=wo(l),o=na(l),o.callback=null,aa(a,o,l),a=l,t.current.lanes=a,ui(t,a),yn(t),e[il]=t.current,hu(e),new Ms(t)},tr.version="19.2.4",tr}var dv;function b1(){if(dv)return Lu.exports;dv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Lu.exports=g1(),Lu.exports}var x1=b1();var hv="popstate";function S1(n={}){function i(s,u){let{pathname:f,search:d,hash:m}=s.location;return tf("",{pathname:f,search:d,hash:m},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(s,u){return typeof u=="string"?u:or(u)}return E1(i,r,null,n)}function Qe(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function fn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function w1(){return Math.random().toString(36).substring(2,10)}function mv(n,i){return{usr:n.state,key:n.key,idx:i}}function tf(n,i,r=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?$l(i):i,state:r,key:i&&i.key||s||w1()}}function or({pathname:n="/",search:i="",hash:r=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function $l(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substring(r),n=n.substring(0,r));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function E1(n,i,r,s={}){let{window:u=document.defaultView,v5Compat:f=!1}=s,d=u.history,m="POP",v=null,y=b();y==null&&(y=0,d.replaceState({...d.state,idx:y},""));function b(){return(d.state||{idx:null}).idx}function x(){m="POP";let C=b(),A=C==null?null:C-y;y=C,v&&v({action:m,location:w.location,delta:A})}function N(C,A){m="PUSH";let M=tf(w.location,C,A);y=b()+1;let z=mv(M,y),V=w.createHref(M);try{d.pushState(z,"",V)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;u.location.assign(V)}f&&v&&v({action:m,location:w.location,delta:1})}function E(C,A){m="REPLACE";let M=tf(w.location,C,A);y=b();let z=mv(M,y),V=w.createHref(M);d.replaceState(z,"",V),f&&v&&v({action:m,location:w.location,delta:0})}function j(C){return C1(C)}let w={get action(){return m},get location(){return n(u,d)},listen(C){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener(hv,x),v=C,()=>{u.removeEventListener(hv,x),v=null}},createHref(C){return i(u,C)},createURL:j,encodeLocation(C){let A=j(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:N,replace:E,go(C){return d.go(C)}};return w}function C1(n,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(r,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:or(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function my(n,i,r="/"){return N1(n,i,r,!1)}function N1(n,i,r,s){let u=typeof i=="string"?$l(i):i,f=Yn(u.pathname||"/",r);if(f==null)return null;let d=py(n);R1(d);let m=null;for(let v=0;m==null&&v<d.length;++v){let y=H1(f);m=L1(d[v],y,s)}return m}function py(n,i=[],r=[],s="",u=!1){let f=(d,m,v=u,y)=>{let b={relativePath:y===void 0?d.path||"":y,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&v)return;Qe(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let x=Qn([s,b.relativePath]),N=r.concat(b);d.children&&d.children.length>0&&(Qe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),py(d.children,i,N,x,v)),!(d.path==null&&!d.index)&&i.push({path:x,score:z1(x,d.index),routesMeta:N})};return n.forEach((d,m)=>{if(d.path===""||!d.path?.includes("?"))f(d,m);else for(let v of vy(d.path))f(d,m,!0,v)}),i}function vy(n){let i=n.split("/");if(i.length===0)return[];let[r,...s]=i,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return u?[f,""]:[f];let d=vy(s.join("/")),m=[];return m.push(...d.map(v=>v===""?f:[f,v].join("/"))),u&&m.push(...d),m.map(v=>n.startsWith("/")&&v===""?"/":v)}function R1(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:D1(i.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var j1=/^:[\w-]+$/,T1=3,A1=2,O1=1,M1=10,_1=-2,pv=n=>n==="*";function z1(n,i){let r=n.split("/"),s=r.length;return r.some(pv)&&(s+=_1),i&&(s+=A1),r.filter(u=>!pv(u)).reduce((u,f)=>u+(j1.test(f)?T1:f===""?O1:M1),s)}function D1(n,i){return n.length===i.length&&n.slice(0,-1).every((s,u)=>s===i[u])?n[n.length-1]-i[i.length-1]:0}function L1(n,i,r=!1){let{routesMeta:s}=n,u={},f="/",d=[];for(let m=0;m<s.length;++m){let v=s[m],y=m===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",x=Zs({path:v.relativePath,caseSensitive:v.caseSensitive,end:y},b),N=v.route;if(!x&&y&&r&&!s[s.length-1].route.index&&(x=Zs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!x)return null;Object.assign(u,x.params),d.push({params:u,pathname:Qn([f,x.pathname]),pathnameBase:V1(Qn([f,x.pathnameBase])),route:N}),x.pathnameBase!=="/"&&(f=Qn([f,x.pathnameBase]))}return d}function Zs(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,s]=U1(n.path,n.caseSensitive,n.end),u=i.match(r);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),m=u.slice(1);return{params:s.reduce((y,{paramName:b,isOptional:x},N)=>{if(b==="*"){let j=m[N]||"";d=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const E=m[N];return x&&!E?y[b]=void 0:y[b]=(E||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:d,pattern:n}}function U1(n,i=!1,r=!0){fn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,v)=>(s.push({paramName:m,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),s]}function H1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return fn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Yn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,s=n.charAt(r);return s&&s!=="/"?null:n.slice(r)||"/"}var B1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function k1(n,i="/"){let{pathname:r,search:s="",hash:u=""}=typeof n=="string"?$l(n):n,f;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?f=vv(r.substring(1),"/"):f=vv(r,i)):f=i,{pathname:f,search:G1(s),hash:Q1(u)}}function vv(n,i){let r=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function ku(n,i,r,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function q1(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Tf(n){let i=q1(n);return i.map((r,s)=>s===i.length-1?r.pathname:r.pathnameBase)}function Af(n,i,r,s=!1){let u;typeof n=="string"?u=$l(n):(u={...n},Qe(!u.pathname||!u.pathname.includes("?"),ku("?","pathname","search",u)),Qe(!u.pathname||!u.pathname.includes("#"),ku("#","pathname","hash",u)),Qe(!u.search||!u.search.includes("#"),ku("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=r;else{let x=i.length-1;if(!s&&d.startsWith("..")){let N=d.split("/");for(;N[0]==="..";)N.shift(),x-=1;u.pathname=N.join("/")}m=x>=0?i[x]:"/"}let v=k1(u,m),y=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(y||b)&&(v.pathname+="/"),v}var Qn=n=>n.join("/").replace(/\/\/+/g,"/"),V1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),G1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Q1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Y1=class{constructor(n,i,r,s=!1){this.status=n,this.statusText=i||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function X1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function K1(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var yy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gy(n,i){let r=n;if(typeof r!="string"||!B1.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,u=!1;if(yy)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),m=Yn(d.pathname,i);d.origin===f.origin&&m!=null?r=m+d.search+d.hash:u=!0}catch{fn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var by=["POST","PUT","PATCH","DELETE"];new Set(by);var P1=["GET",...by];new Set(P1);var Wl=g.createContext(null);Wl.displayName="DataRouter";var ro=g.createContext(null);ro.displayName="DataRouterState";var Z1=g.createContext(!1),xy=g.createContext({isTransitioning:!1});xy.displayName="ViewTransition";var F1=g.createContext(new Map);F1.displayName="Fetchers";var J1=g.createContext(null);J1.displayName="Await";var Xt=g.createContext(null);Xt.displayName="Navigation";var dr=g.createContext(null);dr.displayName="Location";var wn=g.createContext({outlet:null,matches:[],isDataRoute:!1});wn.displayName="Route";var Of=g.createContext(null);Of.displayName="RouteError";var Sy="REACT_ROUTER_ERROR",$1="REDIRECT",W1="ROUTE_ERROR_RESPONSE";function I1(n){if(n.startsWith(`${Sy}:${$1}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function eS(n){if(n.startsWith(`${Sy}:${W1}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Y1(i.status,i.statusText,i.data)}catch{}}function tS(n,{relative:i}={}){Qe(Il(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=g.useContext(Xt),{hash:u,pathname:f,search:d}=hr(n,{relative:i}),m=f;return r!=="/"&&(m=f==="/"?r:Qn([r,f])),s.createHref({pathname:m,search:d,hash:u})}function Il(){return g.useContext(dr)!=null}function Pn(){return Qe(Il(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(dr).location}var wy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ey(n){g.useContext(Xt).static||g.useLayoutEffect(n)}function Mf(){let{isDataRoute:n}=g.useContext(wn);return n?mS():nS()}function nS(){Qe(Il(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Wl),{basename:i,navigator:r}=g.useContext(Xt),{matches:s}=g.useContext(wn),{pathname:u}=Pn(),f=JSON.stringify(Tf(s)),d=g.useRef(!1);return Ey(()=>{d.current=!0}),g.useCallback((v,y={})=>{if(fn(d.current,wy),!d.current)return;if(typeof v=="number"){r.go(v);return}let b=Af(v,JSON.parse(f),u,y.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Qn([i,b.pathname])),(y.replace?r.replace:r.push)(b,y.state,y)},[i,r,f,u,n])}g.createContext(null);function hr(n,{relative:i}={}){let{matches:r}=g.useContext(wn),{pathname:s}=Pn(),u=JSON.stringify(Tf(r));return g.useMemo(()=>Af(n,JSON.parse(u),s,i==="path"),[n,u,s,i])}function aS(n,i){return Cy(n,i)}function Cy(n,i,r,s,u){Qe(Il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=g.useContext(Xt),{matches:d}=g.useContext(wn),m=d[d.length-1],v=m?m.params:{},y=m?m.pathname:"/",b=m?m.pathnameBase:"/",x=m&&m.route;{let M=x&&x.path||"";Ry(y,!x||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
-
11
- Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let N=Pn(),E;if(i){let M=typeof i=="string"?$l(i):i;Qe(b==="/"||M.pathname?.startsWith(b),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${M.pathname}" was given in the \`location\` prop.`),E=M}else E=N;let j=E.pathname||"/",w=j;if(b!=="/"){let M=b.replace(/^\//,"").split("/");w="/"+j.replace(/^\//,"").split("/").slice(M.length).join("/")}let C=my(n,{pathname:w});fn(x||C!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),fn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=oS(C&&C.map(M=>Object.assign({},M,{params:Object.assign({},v,M.params),pathname:Qn([b,f.encodeLocation?f.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?b:Qn([b,f.encodeLocation?f.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),d,r,s,u);return i&&A?g.createElement(dr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},A):A}function lS(){let n=hS(),i=X1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:f},"ErrorBoundary")," or"," ",g.createElement("code",{style:f},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},i),r?g.createElement("pre",{style:u},r):null,d)}var iS=g.createElement(lS,null),Ny=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=eS(n.digest);r&&(n=r)}let i=n!==void 0?g.createElement(wn.Provider,{value:this.props.routeContext},g.createElement(Of.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(rS,{error:n},i):i}};Ny.contextType=Z1;var qu=new WeakMap;function rS({children:n,error:i}){let{basename:r}=g.useContext(Xt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=I1(i.digest);if(s){let u=qu.get(i);if(u)throw u;let f=gy(s.location,r);if(yy&&!qu.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw qu.set(i,d),d}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function sS({routeContext:n,match:i,children:r}){let s=g.useContext(Wl);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),g.createElement(wn.Provider,{value:n},r)}function oS(n,i=[],r=null,s=null,u=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let f=n,d=r?.errors;if(d!=null){let b=f.findIndex(x=>x.route.id&&d?.[x.route.id]!==void 0);Qe(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let m=!1,v=-1;if(r)for(let b=0;b<f.length;b++){let x=f[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(v=b),x.route.id){let{loaderData:N,errors:E}=r,j=x.route.loader&&!N.hasOwnProperty(x.route.id)&&(!E||E[x.route.id]===void 0);if(x.route.lazy||j){m=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}let y=r&&s?(b,x)=>{s(b,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:K1(r.matches),errorInfo:x})}:void 0;return f.reduceRight((b,x,N)=>{let E,j=!1,w=null,C=null;r&&(E=d&&x.route.id?d[x.route.id]:void 0,w=x.route.errorElement||iS,m&&(v<0&&N===0?(Ry("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,C=null):v===N&&(j=!0,C=x.route.hydrateFallbackElement||null)));let A=i.concat(f.slice(0,N+1)),M=()=>{let z;return E?z=w:j?z=C:x.route.Component?z=g.createElement(x.route.Component,null):x.route.element?z=x.route.element:z=b,g.createElement(sS,{match:x,routeContext:{outlet:b,matches:A,isDataRoute:r!=null},children:z})};return r&&(x.route.ErrorBoundary||x.route.errorElement||N===0)?g.createElement(Ny,{location:r.location,revalidation:r.revalidation,component:w,error:E,children:M(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:y}):M()},null)}function _f(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cS(n){let i=g.useContext(Wl);return Qe(i,_f(n)),i}function uS(n){let i=g.useContext(ro);return Qe(i,_f(n)),i}function fS(n){let i=g.useContext(wn);return Qe(i,_f(n)),i}function zf(n){let i=fS(n),r=i.matches[i.matches.length-1];return Qe(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function dS(){return zf("useRouteId")}function hS(){let n=g.useContext(Of),i=uS("useRouteError"),r=zf("useRouteError");return n!==void 0?n:i.errors?.[r]}function mS(){let{router:n}=cS("useNavigate"),i=zf("useNavigate"),r=g.useRef(!1);return Ey(()=>{r.current=!0}),g.useCallback(async(u,f={})=>{fn(r.current,wy),r.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var yv={};function Ry(n,i,r){!i&&!yv[n]&&(yv[n]=!0,fn(!1,r))}g.memo(pS);function pS({routes:n,future:i,state:r,onError:s}){return Cy(n,void 0,r,s,i)}function vS({to:n,replace:i,state:r,relative:s}){Qe(Il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=g.useContext(Xt);fn(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=g.useContext(wn),{pathname:d}=Pn(),m=Mf(),v=Af(n,Tf(f),d,s==="path"),y=JSON.stringify(v);return g.useEffect(()=>{m(JSON.parse(y),{replace:i,state:r,relative:s})},[m,y,s,i,r]),null}function Fa(n){Qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function yS({basename:n="/",children:i=null,location:r,navigationType:s="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Qe(!Il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),v=g.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[m,u,f,d]);typeof r=="string"&&(r=$l(r));let{pathname:y="/",search:b="",hash:x="",state:N=null,key:E="default"}=r,j=g.useMemo(()=>{let w=Yn(y,m);return w==null?null:{location:{pathname:w,search:b,hash:x,state:N,key:E},navigationType:s}},[m,y,b,x,N,E,s]);return fn(j!=null,`<Router basename="${m}"> is not able to match the URL "${y}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:g.createElement(Xt.Provider,{value:v},g.createElement(dr.Provider,{children:i,value:j}))}function gS({children:n,location:i}){return aS(nf(n),i)}function nf(n,i=[]){let r=[];return g.Children.forEach(n,(s,u)=>{if(!g.isValidElement(s))return;let f=[...i,u];if(s.type===g.Fragment){r.push.apply(r,nf(s.props.children,f));return}Qe(s.type===Fa,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=nf(s.props.children,f)),r.push(d)}),r}var Gs="get",Qs="application/x-www-form-urlencoded";function so(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function bS(n){return so(n)&&n.tagName.toLowerCase()==="button"}function xS(n){return so(n)&&n.tagName.toLowerCase()==="form"}function SS(n){return so(n)&&n.tagName.toLowerCase()==="input"}function wS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ES(n,i){return n.button===0&&(!i||i==="_self")&&!wS(n)}var zs=null;function CS(){if(zs===null)try{new FormData(document.createElement("form"),0),zs=!1}catch{zs=!0}return zs}var NS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vu(n){return n!=null&&!NS.has(n)?(fn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qs}"`),null):n}function RS(n,i){let r,s,u,f,d;if(xS(n)){let m=n.getAttribute("action");s=m?Yn(m,i):null,r=n.getAttribute("method")||Gs,u=Vu(n.getAttribute("enctype"))||Qs,f=new FormData(n)}else if(bS(n)||SS(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=n.getAttribute("formaction")||m.getAttribute("action");if(s=v?Yn(v,i):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Gs,u=Vu(n.getAttribute("formenctype"))||Vu(m.getAttribute("enctype"))||Qs,f=new FormData(m,n),!CS()){let{name:y,type:b,value:x}=n;if(b==="image"){let N=y?`${y}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else y&&f.append(y,x)}}else{if(so(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Gs,s=null,u=Qs,d=n}return f&&u==="text/plain"&&(d=f,f=void 0),{action:s,method:r.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Df(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function jS(n,i,r,s){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${s}`:u.pathname=`${u.pathname}.${s}`:u.pathname==="/"?u.pathname=`_root.${s}`:i&&Yn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${s}`,u}async function TS(n,i){if(n.id in i)return i[n.id];try{let r=await import(n.module);return i[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function AS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function OS(n,i,r){let s=await Promise.all(n.map(async u=>{let f=i.routes[u.route.id];if(f){let d=await TS(f,r);return d.links?d.links():[]}return[]}));return DS(s.flat(1).filter(AS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function gv(n,i,r,s,u,f){let d=(v,y)=>r[y]?v.route.id!==r[y].route.id:!0,m=(v,y)=>r[y].pathname!==v.pathname||r[y].route.path?.endsWith("*")&&r[y].params["*"]!==v.params["*"];return f==="assets"?i.filter((v,y)=>d(v,y)||m(v,y)):f==="data"?i.filter((v,y)=>{let b=s.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(d(v,y)||m(v,y))return!0;if(v.route.shouldRevalidate){let x=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function MS(n,i,{includeHydrateFallback:r}={}){return _S(n.map(s=>{let u=i.routes[s.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function _S(n){return[...new Set(n)]}function zS(n){let i={},r=Object.keys(n).sort();for(let s of r)i[s]=n[s];return i}function DS(n,i){let r=new Set;return new Set(i),n.reduce((s,u)=>{let f=JSON.stringify(zS(u));return r.has(f)||(r.add(f),s.push({key:f,link:u})),s},[])}function jy(){let n=g.useContext(Wl);return Df(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function LS(){let n=g.useContext(ro);return Df(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Lf=g.createContext(void 0);Lf.displayName="FrameworkContext";function Ty(){let n=g.useContext(Lf);return Df(n,"You must render this element inside a <HydratedRouter> element"),n}function US(n,i){let r=g.useContext(Lf),[s,u]=g.useState(!1),[f,d]=g.useState(!1),{onFocus:m,onBlur:v,onMouseEnter:y,onMouseLeave:b,onTouchStart:x}=i,N=g.useRef(null);g.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let w=A=>{A.forEach(M=>{d(M.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return N.current&&C.observe(N.current),()=>{C.disconnect()}}},[n]),g.useEffect(()=>{if(s){let w=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(w)}}},[s]);let E=()=>{u(!0)},j=()=>{u(!1),d(!1)};return r?n!=="intent"?[f,N,{}]:[f,N,{onFocus:nr(m,E),onBlur:nr(v,j),onMouseEnter:nr(y,E),onMouseLeave:nr(b,j),onTouchStart:nr(x,E)}]:[!1,N,{}]}function nr(n,i){return r=>{n&&n(r),r.defaultPrevented||i(r)}}function HS({page:n,...i}){let{router:r}=jy(),s=g.useMemo(()=>my(r.routes,n,r.basename),[r.routes,n,r.basename]);return s?g.createElement(kS,{page:n,matches:s,...i}):null}function BS(n){let{manifest:i,routeModules:r}=Ty(),[s,u]=g.useState([]);return g.useEffect(()=>{let f=!1;return OS(n,i,r).then(d=>{f||u(d)}),()=>{f=!0}},[n,i,r]),s}function kS({page:n,matches:i,...r}){let s=Pn(),{future:u,manifest:f,routeModules:d}=Ty(),{basename:m}=jy(),{loaderData:v,matches:y}=LS(),b=g.useMemo(()=>gv(n,i,y,f,s,"data"),[n,i,y,f,s]),x=g.useMemo(()=>gv(n,i,y,f,s,"assets"),[n,i,y,f,s]),N=g.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let w=new Set,C=!1;if(i.forEach(M=>{let z=f.routes[M.route.id];!z||!z.hasLoader||(!b.some(V=>V.route.id===M.route.id)&&M.route.id in v&&d[M.route.id]?.shouldRevalidate||z.hasClientLoader?C=!0:w.add(M.route.id))}),w.size===0)return[];let A=jS(n,m,u.unstable_trailingSlashAwareDataRequests,"data");return C&&w.size>0&&A.searchParams.set("_routes",i.filter(M=>w.has(M.route.id)).map(M=>M.route.id).join(",")),[A.pathname+A.search]},[m,u.unstable_trailingSlashAwareDataRequests,v,s,f,b,i,n,d]),E=g.useMemo(()=>MS(x,f),[x,f]),j=BS(x);return g.createElement(g.Fragment,null,N.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),E.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),j.map(({key:w,link:C})=>g.createElement("link",{key:w,nonce:r.nonce,...C,crossOrigin:C.crossOrigin??r.crossOrigin})))}function qS(...n){return i=>{n.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var VS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{VS&&(window.__reactRouterVersion="7.13.0")}catch{}function GS({basename:n,children:i,unstable_useTransitions:r,window:s}){let u=g.useRef();u.current==null&&(u.current=S1({window:s,v5Compat:!0}));let f=u.current,[d,m]=g.useState({action:f.action,location:f.location}),v=g.useCallback(y=>{r===!1?m(y):g.startTransition(()=>m(y))},[r]);return g.useLayoutEffect(()=>f.listen(v),[f,v]),g.createElement(yS,{basename:n,children:i,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:r})}var Ay=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Oy=g.forwardRef(function({onClick:i,discover:r="render",prefetch:s="none",relative:u,reloadDocument:f,replace:d,state:m,target:v,to:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:N,...E},j){let{basename:w,unstable_useTransitions:C}=g.useContext(Xt),A=typeof y=="string"&&Ay.test(y),M=gy(y,w);y=M.to;let z=tS(y,{relative:u}),[V,Z,$]=US(s,E),q=KS(y,{replace:d,state:m,target:v,preventScrollReset:b,relative:u,viewTransition:x,unstable_defaultShouldRevalidate:N,unstable_useTransitions:C});function Q(se){i&&i(se),se.defaultPrevented||q(se)}let I=g.createElement("a",{...E,...$,href:M.absoluteURL||z,onClick:M.isExternal||f?i:Q,ref:qS(j,Z),target:v,"data-discover":!A&&r==="render"?"true":void 0});return V&&!A?g.createElement(g.Fragment,null,I,g.createElement(HS,{page:z})):I});Oy.displayName="Link";var QS=g.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:s="",end:u=!1,style:f,to:d,viewTransition:m,children:v,...y},b){let x=hr(d,{relative:y.relative}),N=Pn(),E=g.useContext(ro),{navigator:j,basename:w}=g.useContext(Xt),C=E!=null&&$S(x)&&m===!0,A=j.encodeLocation?j.encodeLocation(x).pathname:x.pathname,M=N.pathname,z=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;r||(M=M.toLowerCase(),z=z?z.toLowerCase():null,A=A.toLowerCase()),z&&w&&(z=Yn(z,w)||z);const V=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Z=M===A||!u&&M.startsWith(A)&&M.charAt(V)==="/",$=z!=null&&(z===A||!u&&z.startsWith(A)&&z.charAt(A.length)==="/"),q={isActive:Z,isPending:$,isTransitioning:C},Q=Z?i:void 0,I;typeof s=="function"?I=s(q):I=[s,Z?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(q):f;return g.createElement(Oy,{...y,"aria-current":Q,className:I,ref:b,style:se,to:d,viewTransition:m},typeof v=="function"?v(q):v)});QS.displayName="NavLink";var YS=g.forwardRef(({discover:n="render",fetcherKey:i,navigate:r,reloadDocument:s,replace:u,state:f,method:d=Gs,action:m,onSubmit:v,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:N,...E},j)=>{let{unstable_useTransitions:w}=g.useContext(Xt),C=FS(),A=JS(m,{relative:y}),M=d.toLowerCase()==="get"?"get":"post",z=typeof m=="string"&&Ay.test(m),V=Z=>{if(v&&v(Z),Z.defaultPrevented)return;Z.preventDefault();let $=Z.nativeEvent.submitter,q=$?.getAttribute("formmethod")||d,Q=()=>C($||Z.currentTarget,{fetcherKey:i,method:q,navigate:r,replace:u,state:f,relative:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:N});w&&r!==!1?g.startTransition(()=>Q()):Q()};return g.createElement("form",{ref:j,method:M,action:A,onSubmit:s?v:V,...E,"data-discover":!z&&n==="render"?"true":void 0})});YS.displayName="Form";function XS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function My(n){let i=g.useContext(Wl);return Qe(i,XS(n)),i}function KS(n,{target:i,replace:r,state:s,preventScrollReset:u,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:v}={}){let y=Mf(),b=Pn(),x=hr(n,{relative:f});return g.useCallback(N=>{if(ES(N,i)){N.preventDefault();let E=r!==void 0?r:or(b)===or(x),j=()=>y(n,{replace:E,state:s,preventScrollReset:u,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:m});v?g.startTransition(()=>j()):j()}},[b,y,x,r,s,i,n,u,f,d,m,v])}var PS=0,ZS=()=>`__${String(++PS)}__`;function FS(){let{router:n}=My("useSubmit"),{basename:i}=g.useContext(Xt),r=dS(),s=n.fetch,u=n.navigate;return g.useCallback(async(f,d={})=>{let{action:m,method:v,encType:y,formData:b,body:x}=RS(f,i);if(d.navigate===!1){let N=d.fetcherKey||ZS();await s(N,r,d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:x,formMethod:d.method||v,formEncType:d.encType||y,flushSync:d.flushSync})}else await u(d.action||m,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:x,formMethod:d.method||v,formEncType:d.encType||y,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,u,i,r])}function JS(n,{relative:i}={}){let{basename:r}=g.useContext(Xt),s=g.useContext(wn);Qe(s,"useFormAction must be used inside a RouteContext");let[u]=s.matches.slice(-1),f={...hr(n||".",{relative:i})},d=Pn();if(n==null){f.search=d.search;let m=new URLSearchParams(f.search),v=m.getAll("index");if(v.some(b=>b==="")){m.delete("index"),v.filter(x=>x).forEach(x=>m.append("index",x));let b=m.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Qn([r,f.pathname])),or(f)}function $S(n,{relative:i}={}){let r=g.useContext(xy);Qe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=My("useViewTransitionState"),u=hr(n,{relative:i});if(!r.isTransitioning)return!1;let f=Yn(r.currentLocation.pathname,s)||r.currentLocation.pathname,d=Yn(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Zs(u.pathname,d)!=null||Zs(u.pathname,f)!=null}var mr=hy();const WS=dy(mr),Ja=[{id:"welcome",name:"欢迎",path:"/welcome"},{id:"hardware",name:"硬件配置",path:"/hardware"},{id:"config",name:"服务配置",path:"/config"},{id:"install",name:"安装下载",path:"/install"},{id:"server",name:"启动服务",path:"/server"}],_y=g.createContext(void 0),IS={installPath:"",region:"cn",serviceName:"lumen-server",port:50051,hardwarePreset:null,runtime:null,onnxProviders:null,rknnDevice:null,servicePreset:null,selectedServices:["ocr"],configGenerated:!1,configPath:void 0,installationComplete:!1,serverRunning:!1};function e2({children:n}){const i=Pn(),[r,s]=g.useState(IS),u=g.useMemo(()=>{const x=Ja.findIndex(N=>N.path===i.pathname);return x!==-1?x:0},[i.pathname]),f=g.useCallback(x=>{s(N=>({...N,...x}))},[]),d=()=>{},m=()=>{},v=()=>{},y=g.useCallback(()=>{switch(u){case 0:return r.installPath.trim()!=="";case 1:return r.hardwarePreset!==null;case 2:return r.selectedServices.length>0&&r.configGenerated;case 3:return r.installationComplete;case 4:return!0;default:return!0}},[u,r]),b=g.useCallback(()=>u>0,[u]);return h.jsx(_y.Provider,{value:{currentStep:u,wizardData:r,updateWizardData:f,goToStep:d,nextStep:m,prevStep:v,canGoNext:y,canGoPrev:b},children:n})}const zy=(...n)=>n.filter((i,r,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===r).join(" ").trim();const t2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const n2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,s)=>s?s.toUpperCase():r.toLowerCase());const bv=n=>{const i=n2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var a2={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 l2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const i2=g.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...m},v)=>g.createElement("svg",{ref:v,...a2,width:i,height:i,stroke:n,strokeWidth:s?Number(r)*24/Number(i):r,className:zy("lucide",u),...!f&&!l2(m)&&{"aria-hidden":"true"},...m},[...d.map(([y,b])=>g.createElement(y,b)),...Array.isArray(f)?f:[f]]));const Me=(n,i)=>{const r=g.forwardRef(({className:s,...u},f)=>g.createElement(i2,{ref:f,iconNode:i,className:zy(`lucide-${t2(bv(n))}`,`lucide-${n}`,s),...u}));return r.displayName=bv(n),r};const r2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Dy=Me("bot",r2);const s2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ly=Me("check",s2);const o2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uy=Me("chevron-down",o2);const c2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],u2=Me("chevron-left",c2);const f2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],d2=Me("chevron-right",f2);const h2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],m2=Me("chevron-up",h2);const p2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],un=Me("circle-alert",p2);const v2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],lr=Me("circle-check-big",v2);const y2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],af=Me("circle-check",y2);const g2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],b2=Me("circle",g2);const x2=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],lf=Me("cpu",x2);const S2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],w2=Me("download",S2);const E2=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],C2=Me("feather",E2);const N2=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],R2=Me("folder-open",N2);const j2=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],T2=Me("gamepad-2",j2);const A2=[["path",{d:"M21 16V8a2 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:"yt0hxn"}]],O2=Me("hexagon",A2);const M2=[["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"}]],_2=Me("image",M2);const z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cr=Me("info",z2);const D2=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],L2=Me("laptop",D2);const U2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],wa=Me("loader-circle",U2);const H2=[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]],B2=Me("mountain",H2);const k2=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Hy=Me("package",k2);const q2=[["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"}]],By=Me("play",q2);const V2=[["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"}]],G2=Me("refresh-cw",V2);const Q2=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],ky=Me("rocket",Q2);const Y2=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"M15 9h.01",key:"x1ddxp"}]],X2=Me("scan-face",Y2);const K2=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]],P2=Me("scan-text",K2);const Z2=[["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"}]],F2=Me("server",Z2);const J2=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],$2=Me("sparkles",J2);const W2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],I2=Me("square",W2);const ew=[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]],tw=Me("sticky-note",ew);const nw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],aw=Me("zap",nw);function qy(n){var i,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(r=qy(n[i]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function Vy(){for(var n,i,r=0,s="",u=arguments.length;r<u;r++)(n=arguments[r])&&(i=qy(n))&&(s&&(s+=" "),s+=i);return s}const lw=(n,i)=>{const r=new Array(n.length+i.length);for(let s=0;s<n.length;s++)r[s]=n[s];for(let s=0;s<i.length;s++)r[n.length+s]=i[s];return r},iw=(n,i)=>({classGroupId:n,validator:i}),Gy=(n=new Map,i=null,r)=>({nextPart:n,validators:i,classGroupId:r}),Fs="-",xv=[],rw="arbitrary..",sw=n=>{const i=cw(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return ow(d);const m=d.split(Fs),v=m[0]===""&&m.length>1?1:0;return Qy(m,v,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const v=s[d],y=r[d];return v?y?lw(y,v):v:y||xv}return r[d]||xv}}},Qy=(n,i,r)=>{if(n.length-i===0)return r.classGroupId;const u=n[i],f=r.nextPart.get(u);if(f){const y=Qy(n,i+1,f);if(y)return y}const d=r.validators;if(d===null)return;const m=i===0?n.join(Fs):n.slice(i).join(Fs),v=d.length;for(let y=0;y<v;y++){const b=d[y];if(b.validator(m))return b.classGroupId}},ow=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),r=i.indexOf(":"),s=i.slice(0,r);return s?rw+s:void 0})(),cw=n=>{const{theme:i,classGroups:r}=n;return uw(r,i)},uw=(n,i)=>{const r=Gy();for(const s in n){const u=n[s];Uf(u,r,s,i)}return r},Uf=(n,i,r,s)=>{const u=n.length;for(let f=0;f<u;f++){const d=n[f];fw(d,i,r,s)}},fw=(n,i,r,s)=>{if(typeof n=="string"){dw(n,i,r);return}if(typeof n=="function"){hw(n,i,r,s);return}mw(n,i,r,s)},dw=(n,i,r)=>{const s=n===""?i:Yy(i,n);s.classGroupId=r},hw=(n,i,r,s)=>{if(pw(n)){Uf(n(s),i,r,s);return}i.validators===null&&(i.validators=[]),i.validators.push(iw(r,n))},mw=(n,i,r,s)=>{const u=Object.entries(n),f=u.length;for(let d=0;d<f;d++){const[m,v]=u[d];Uf(v,Yy(i,m),r,s)}},Yy=(n,i)=>{let r=n;const s=i.split(Fs),u=s.length;for(let f=0;f<u;f++){const d=s[f];let m=r.nextPart.get(d);m||(m=Gy(),r.nextPart.set(d,m)),r=m}return r},pw=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,vw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),s=Object.create(null);const u=(f,d)=>{r[f]=d,i++,i>n&&(i=0,s=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return u(f,d),d},set(f,d){f in r?r[f]=d:u(f,d)}}},rf="!",Sv=":",yw=[],wv=(n,i,r,s,u)=>({modifiers:n,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:s,isExternal:u}),gw=n=>{const{prefix:i,experimentalParseClassName:r}=n;let s=u=>{const f=[];let d=0,m=0,v=0,y;const b=u.length;for(let w=0;w<b;w++){const C=u[w];if(d===0&&m===0){if(C===Sv){f.push(u.slice(v,w)),v=w+1;continue}if(C==="/"){y=w;continue}}C==="["?d++:C==="]"?d--:C==="("?m++:C===")"&&m--}const x=f.length===0?u:u.slice(v);let N=x,E=!1;x.endsWith(rf)?(N=x.slice(0,-1),E=!0):x.startsWith(rf)&&(N=x.slice(1),E=!0);const j=y&&y>v?y-v:void 0;return wv(f,E,N,j)};if(i){const u=i+Sv,f=s;s=d=>d.startsWith(u)?f(d.slice(u.length)):wv(yw,!1,d,void 0,!0)}if(r){const u=s;s=f=>r({className:f,parseClassName:u})}return s},bw=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((r,s)=>{i.set(r,1e6+s)}),r=>{const s=[];let u=[];for(let f=0;f<r.length;f++){const d=r[f],m=d[0]==="[",v=i.has(d);m||v?(u.length>0&&(u.sort(),s.push(...u),u=[]),s.push(d)):u.push(d)}return u.length>0&&(u.sort(),s.push(...u)),s}},xw=n=>({cache:vw(n.cacheSize),parseClassName:gw(n),sortModifiers:bw(n),...sw(n)}),Sw=/\s+/,ww=(n,i)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:u,sortModifiers:f}=i,d=[],m=n.trim().split(Sw);let v="";for(let y=m.length-1;y>=0;y-=1){const b=m[y],{isExternal:x,modifiers:N,hasImportantModifier:E,baseClassName:j,maybePostfixModifierPosition:w}=r(b);if(x){v=b+(v.length>0?" "+v:v);continue}let C=!!w,A=s(C?j.substring(0,w):j);if(!A){if(!C){v=b+(v.length>0?" "+v:v);continue}if(A=s(j),!A){v=b+(v.length>0?" "+v:v);continue}C=!1}const M=N.length===0?"":N.length===1?N[0]:f(N).join(":"),z=E?M+rf:M,V=z+A;if(d.indexOf(V)>-1)continue;d.push(V);const Z=u(A,C);for(let $=0;$<Z.length;++$){const q=Z[$];d.push(z+q)}v=b+(v.length>0?" "+v:v)}return v},Ew=(...n)=>{let i=0,r,s,u="";for(;i<n.length;)(r=n[i++])&&(s=Xy(r))&&(u&&(u+=" "),u+=s);return u},Xy=n=>{if(typeof n=="string")return n;let i,r="";for(let s=0;s<n.length;s++)n[s]&&(i=Xy(n[s]))&&(r&&(r+=" "),r+=i);return r},Cw=(n,...i)=>{let r,s,u,f;const d=v=>{const y=i.reduce((b,x)=>x(b),n());return r=xw(y),s=r.cache.get,u=r.cache.set,f=m,m(v)},m=v=>{const y=s(v);if(y)return y;const b=ww(v,r);return u(v,b),b};return f=d,(...v)=>f(Ew(...v))},Nw=[],at=n=>{const i=r=>r[n]||Nw;return i.isThemeGetter=!0,i},Ky=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Py=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Rw=/^\d+\/\d+$/,jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tw=/\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$/,Aw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ow=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ql=n=>Rw.test(n),Se=n=>!!n&&!Number.isNaN(Number(n)),ba=n=>!!n&&Number.isInteger(Number(n)),Gu=n=>n.endsWith("%")&&Se(n.slice(0,-1)),Gn=n=>jw.test(n),_w=()=>!0,zw=n=>Tw.test(n)&&!Aw.test(n),Zy=()=>!1,Dw=n=>Ow.test(n),Lw=n=>Mw.test(n),Uw=n=>!te(n)&&!ne(n),Hw=n=>ei(n,$y,Zy),te=n=>Ky.test(n),Za=n=>ei(n,Wy,zw),Qu=n=>ei(n,Gw,Se),Ev=n=>ei(n,Fy,Zy),Bw=n=>ei(n,Jy,Lw),Ds=n=>ei(n,Iy,Dw),ne=n=>Py.test(n),ar=n=>ti(n,Wy),kw=n=>ti(n,Qw),Cv=n=>ti(n,Fy),qw=n=>ti(n,$y),Vw=n=>ti(n,Jy),Ls=n=>ti(n,Iy,!0),ei=(n,i,r)=>{const s=Ky.exec(n);return s?s[1]?i(s[1]):r(s[2]):!1},ti=(n,i,r=!1)=>{const s=Py.exec(n);return s?s[1]?i(s[1]):r:!1},Fy=n=>n==="position"||n==="percentage",Jy=n=>n==="image"||n==="url",$y=n=>n==="length"||n==="size"||n==="bg-size",Wy=n=>n==="length",Gw=n=>n==="number",Qw=n=>n==="family-name",Iy=n=>n==="shadow",Yw=()=>{const n=at("color"),i=at("font"),r=at("text"),s=at("font-weight"),u=at("tracking"),f=at("leading"),d=at("breakpoint"),m=at("container"),v=at("spacing"),y=at("radius"),b=at("shadow"),x=at("inset-shadow"),N=at("text-shadow"),E=at("drop-shadow"),j=at("blur"),w=at("perspective"),C=at("aspect"),A=at("ease"),M=at("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...V(),ne,te],$=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],Q=()=>[ne,te,v],I=()=>[Ql,"full","auto",...Q()],se=()=>[ba,"none","subgrid",ne,te],fe=()=>["auto",{span:["full",ba,ne,te]},ba,ne,te],oe=()=>[ba,"auto",ne,te],me=()=>["auto","min","max","fr",ne,te],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...Q()],P=()=>[Ql,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Q()],B=()=>[n,ne,te],le=()=>[...V(),Cv,Ev,{position:[ne,te]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",qw,Hw,{size:[ne,te]}],Y=()=>[Gu,ar,Za],J=()=>["","none","full",y,ne,te],W=()=>["",Se,ar,Za],re=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[Se,Gu,Cv,Ev],be=()=>["","none",j,ne,te],ye=()=>["none",Se,ne,te],Ce=()=>["none",Se,ne,te],Te=()=>[Se,ne,te],ze=()=>[Ql,"full",...Q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[_w],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[Uw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",Se],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ql,te,ne,C]}],container:["container"],columns:[{columns:[Se,te,ne,m]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[ba,"auto",ne,te]}],basis:[{basis:[Ql,"full","auto",m,...Q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Ql,"auto","initial","none",te]}],grow:[{grow:["",Se,ne,te]}],shrink:[{shrink:["",Se,ne,te]}],order:[{order:[ba,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:Q()}],"gap-x":[{"gap-x":Q()}],"gap-y":[{"gap-y":Q()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:Q()}],px:[{px:Q()}],py:[{py:Q()}],ps:[{ps:Q()}],pe:[{pe:Q()}],pt:[{pt:Q()}],pr:[{pr:Q()}],pb:[{pb:Q()}],pl:[{pl:Q()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":Q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Q()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[m,"screen",...P()]}],"min-w":[{"min-w":[m,"screen","none",...P()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,ar,Za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ne,Qu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gu,te]}],"font-family":[{font:[kw,te,i]}],"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:[u,ne,te]}],"line-clamp":[{"line-clamp":[Se,"none",ne,Qu]}],leading:[{leading:[f,...Q()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ne,Za]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Se,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],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",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ba,ne,te],radial:["",ne,te],conic:[ba,ne,te]},Vw,Bw]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ne,te]}],"outline-w":[{outline:["",Se,ar,Za]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",b,Ls,Ds]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",x,Ls,Ds]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Se,Za]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",N,Ls,Ds]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Se,ne,te]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:be()}],brightness:[{brightness:[Se,ne,te]}],contrast:[{contrast:[Se,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",E,Ls,Ds]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Se,ne,te]}],"hue-rotate":[{"hue-rotate":[Se,ne,te]}],invert:[{invert:["",Se,ne,te]}],saturate:[{saturate:[Se,ne,te]}],sepia:[{sepia:["",Se,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",Se,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Q()}],"border-spacing-x":[{"border-spacing-x":Q()}],"border-spacing-y":[{"border-spacing-y":Q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ne,te]}],ease:[{ease:["linear","initial",A,ne,te]}],delay:[{delay:[Se,ne,te]}],animate:[{animate:["none",M,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ne,te]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"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",ne,te]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Se,ar,Za,Qu]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Xw=Cw(Yw);function Pe(...n){return Xw(Vy(n))}const it=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("rounded-xl border bg-card text-card-foreground shadow",n),...i}));it.displayName="Card";const rt=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("flex flex-col space-y-1.5 p-6",n),...i}));rt.displayName="CardHeader";const st=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("font-semibold leading-none tracking-tight",n),...i}));st.displayName="CardTitle";const Mt=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("text-sm text-muted-foreground",n),...i}));Mt.displayName="CardDescription";const ot=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("p-6 pt-0",n),...i}));ot.displayName="CardContent";const Kw=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("flex items-center p-6 pt-0",n),...i}));Kw.displayName="CardFooter";const Ys=g.forwardRef(({className:n,type:i,...r},s)=>h.jsx("input",{type:i,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r}));Ys.displayName="Input";function Nv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Hf(...n){return i=>{let r=!1;const s=n.map(u=>{const f=Nv(u,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let u=0;u<s.length;u++){const f=s[u];typeof f=="function"?f():Nv(n[u],null)}}}}function gt(...n){return g.useCallback(Hf(...n),n)}var Pw=Symbol.for("react.lazy"),Js=jf[" use ".trim().toString()];function Zw(n){return typeof n=="object"&&n!==null&&"then"in n}function eg(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===Pw&&"_payload"in n&&Zw(n._payload)}function tg(n){const i=Jw(n),r=g.forwardRef((s,u)=>{let{children:f,...d}=s;eg(f)&&typeof Js=="function"&&(f=Js(f._payload));const m=g.Children.toArray(f),v=m.find(Ww);if(v){const y=v.props.children,b=m.map(x=>x===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:x);return h.jsx(i,{...d,ref:u,children:g.isValidElement(y)?g.cloneElement(y,void 0,b):null})}return h.jsx(i,{...d,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}var Fw=tg("Slot");function Jw(n){const i=g.forwardRef((r,s)=>{let{children:u,...f}=r;if(eg(u)&&typeof Js=="function"&&(u=Js(u._payload)),g.isValidElement(u)){const d=eE(u),m=Iw(f,u.props);return u.type!==g.Fragment&&(m.ref=s?Hf(s,d):d),g.cloneElement(u,m)}return g.Children.count(u)>1?g.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var $w=Symbol("radix.slottable");function Ww(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===$w}function Iw(n,i){const r={...i};for(const s in i){const u=n[s],f=i[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function eE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var tE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bf=tE.reduce((n,i)=>{const r=tg(`Primitive.${i}`),s=g.forwardRef((u,f)=>{const{asChild:d,...m}=u,v=d?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{}),nE="Label",ng=g.forwardRef((n,i)=>h.jsx(Bf.label,{...n,ref:i,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(n.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ng.displayName=nE;var ag=ng;const Rv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,jv=Vy,oo=(n,i)=>r=>{var s;if(i?.variants==null)return jv(n,r?.class,r?.className);const{variants:u,defaultVariants:f}=i,d=Object.keys(u).map(y=>{const b=r?.[y],x=f?.[y];if(b===null)return null;const N=Rv(b)||Rv(x);return u[y][N]}),m=r&&Object.entries(r).reduce((y,b)=>{let[x,N]=b;return N===void 0||(y[x]=N),y},{}),v=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((y,b)=>{let{class:x,className:N,...E}=b;return Object.entries(E).every(j=>{let[w,C]=j;return Array.isArray(C)?C.includes({...f,...m}[w]):{...f,...m}[w]===C})?[...y,x,N]:y},[]);return jv(n,d,v,r?.class,r?.className)},aE=oo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ir=g.forwardRef(({className:n,...i},r)=>h.jsx(ag,{ref:r,className:Pe(aE(),n),...i}));ir.displayName=ag.displayName;function Tv(n,[i,r]){return Math.min(r,Math.max(i,n))}function tt(n,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(n?.(u),r===!1||!u.defaultPrevented)return i?.(u)}}function kf(n,i=[]){let r=[];function s(f,d){const m=g.createContext(d),v=r.length;r=[...r,d];const y=x=>{const{scope:N,children:E,...j}=x,w=N?.[n]?.[v]||m,C=g.useMemo(()=>j,Object.values(j));return h.jsx(w.Provider,{value:C,children:E})};y.displayName=f+"Provider";function b(x,N){const E=N?.[n]?.[v]||m,j=g.useContext(E);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[y,b]}const u=()=>{const f=r.map(d=>g.createContext(d));return function(m){const v=m?.[n]||f;return g.useMemo(()=>({[`__scope${n}`]:{...m,[n]:v}}),[m,v])}};return u.scopeName=n,[s,lE(u,...i)]}function lE(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=s.reduce((m,{useScope:v,scopeName:y})=>{const x=v(f)[`__scope${y}`];return{...m,...x}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return r.scopeName=i.scopeName,r}function $s(n){const i=iE(n),r=g.forwardRef((s,u)=>{const{children:f,...d}=s,m=g.Children.toArray(f),v=m.find(sE);if(v){const y=v.props.children,b=m.map(x=>x===v?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:x);return h.jsx(i,{...d,ref:u,children:g.isValidElement(y)?g.cloneElement(y,void 0,b):null})}return h.jsx(i,{...d,ref:u,children:f})});return r.displayName=`${n}.Slot`,r}function iE(n){const i=g.forwardRef((r,s)=>{const{children:u,...f}=r;if(g.isValidElement(u)){const d=cE(u),m=oE(f,u.props);return u.type!==g.Fragment&&(m.ref=s?Hf(s,d):d),g.cloneElement(u,m)}return g.Children.count(u)>1?g.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var rE=Symbol("radix.slottable");function sE(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===rE}function oE(n,i){const r={...i};for(const s in i){const u=n[s],f=i[s];/^on[A-Z]/.test(s)?u&&f?r[s]=(...m)=>{const v=f(...m);return u(...m),v}:u&&(r[s]=u):s==="style"?r[s]={...u,...f}:s==="className"&&(r[s]=[u,f].filter(Boolean).join(" "))}return{...n,...r}}function cE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}function uE(n){const i=n+"CollectionProvider",[r,s]=kf(i),[u,f]=r(i,{collectionRef:{current:null},itemMap:new Map}),d=w=>{const{scope:C,children:A}=w,M=xa.useRef(null),z=xa.useRef(new Map).current;return h.jsx(u,{scope:C,itemMap:z,collectionRef:M,children:A})};d.displayName=i;const m=n+"CollectionSlot",v=$s(m),y=xa.forwardRef((w,C)=>{const{scope:A,children:M}=w,z=f(m,A),V=gt(C,z.collectionRef);return h.jsx(v,{ref:V,children:M})});y.displayName=m;const b=n+"CollectionItemSlot",x="data-radix-collection-item",N=$s(b),E=xa.forwardRef((w,C)=>{const{scope:A,children:M,...z}=w,V=xa.useRef(null),Z=gt(C,V),$=f(b,A);return xa.useEffect(()=>($.itemMap.set(V,{ref:V,...z}),()=>{$.itemMap.delete(V)})),h.jsx(N,{[x]:"",ref:Z,children:M})});E.displayName=b;function j(w){const C=f(n+"CollectionConsumer",w);return xa.useCallback(()=>{const M=C.collectionRef.current;if(!M)return[];const z=Array.from(M.querySelectorAll(`[${x}]`));return Array.from(C.itemMap.values()).sort(($,q)=>z.indexOf($.ref.current)-z.indexOf(q.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:y,ItemSlot:E},j,s]}var fE=g.createContext(void 0);function dE(n){const i=g.useContext(fE);return n||i||"ltr"}var hE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=hE.reduce((n,i)=>{const r=$s(`Primitive.${i}`),s=g.forwardRef((u,f)=>{const{asChild:d,...m}=u,v=d?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(v,{...m,ref:f})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{});function mE(n,i){n&&mr.flushSync(()=>n.dispatchEvent(i))}function Ia(n){const i=g.useRef(n);return g.useEffect(()=>{i.current=n}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function pE(n,i=globalThis?.document){const r=Ia(n);g.useEffect(()=>{const s=u=>{u.key==="Escape"&&r(u)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var vE="DismissableLayer",sf="dismissableLayer.update",yE="dismissableLayer.pointerDownOutside",gE="dismissableLayer.focusOutside",Av,lg=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ig=g.forwardRef((n,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:m,...v}=n,y=g.useContext(lg),[b,x]=g.useState(null),N=b?.ownerDocument??globalThis?.document,[,E]=g.useState({}),j=gt(i,q=>x(q)),w=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),A=w.indexOf(C),M=b?w.indexOf(b):-1,z=y.layersWithOutsidePointerEventsDisabled.size>0,V=M>=A,Z=SE(q=>{const Q=q.target,I=[...y.branches].some(se=>se.contains(Q));!V||I||(u?.(q),d?.(q),q.defaultPrevented||m?.())},N),$=wE(q=>{const Q=q.target;[...y.branches].some(se=>se.contains(Q))||(f?.(q),d?.(q),q.defaultPrevented||m?.())},N);return pE(q=>{M===y.layers.size-1&&(s?.(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},N),g.useEffect(()=>{if(b)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Av=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),Ov(),()=>{r&&y.layersWithOutsidePointerEventsDisabled.size===1&&(N.body.style.pointerEvents=Av)}},[b,N,r,y]),g.useEffect(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),Ov())},[b,y]),g.useEffect(()=>{const q=()=>E({});return document.addEventListener(sf,q),()=>document.removeEventListener(sf,q)},[]),h.jsx(Je.div,{...v,ref:j,style:{pointerEvents:z?V?"auto":"none":void 0,...n.style},onFocusCapture:tt(n.onFocusCapture,$.onFocusCapture),onBlurCapture:tt(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:tt(n.onPointerDownCapture,Z.onPointerDownCapture)})});ig.displayName=vE;var bE="DismissableLayerBranch",xE=g.forwardRef((n,i)=>{const r=g.useContext(lg),s=g.useRef(null),u=gt(i,s);return g.useEffect(()=>{const f=s.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),h.jsx(Je.div,{...n,ref:u})});xE.displayName=bE;function SE(n,i=globalThis?.document){const r=Ia(n),s=g.useRef(!1),u=g.useRef(()=>{});return g.useEffect(()=>{const f=m=>{if(m.target&&!s.current){let v=function(){rg(yE,r,y,{discrete:!0})};const y={originalEvent:m};m.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=v,i.addEventListener("click",u.current,{once:!0})):v()}else i.removeEventListener("click",u.current);s.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",u.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function wE(n,i=globalThis?.document){const r=Ia(n),s=g.useRef(!1);return g.useEffect(()=>{const u=f=>{f.target&&!s.current&&rg(gE,r,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ov(){const n=new CustomEvent(sf);document.dispatchEvent(n)}function rg(n,i,r,{discrete:s}){const u=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});i&&u.addEventListener(n,i,{once:!0}),s?mE(u,f):u.dispatchEvent(f)}var Yu=0;function EE(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Mv()),document.body.insertAdjacentElement("beforeend",n[1]??Mv()),Yu++,()=>{Yu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Yu--}},[])}function Mv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Xu="focusScope.autoFocusOnMount",Ku="focusScope.autoFocusOnUnmount",_v={bubbles:!1,cancelable:!0},CE="FocusScope",sg=g.forwardRef((n,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=n,[m,v]=g.useState(null),y=Ia(u),b=Ia(f),x=g.useRef(null),N=gt(i,w=>v(w)),E=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(s){let w=function(z){if(E.paused||!m)return;const V=z.target;m.contains(V)?x.current=V:Sa(x.current,{select:!0})},C=function(z){if(E.paused||!m)return;const V=z.relatedTarget;V!==null&&(m.contains(V)||Sa(x.current,{select:!0}))},A=function(z){if(document.activeElement===document.body)for(const Z of z)Z.removedNodes.length>0&&Sa(m)};document.addEventListener("focusin",w),document.addEventListener("focusout",C);const M=new MutationObserver(A);return m&&M.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),M.disconnect()}}},[s,m,E.paused]),g.useEffect(()=>{if(m){Dv.add(E);const w=document.activeElement;if(!m.contains(w)){const A=new CustomEvent(Xu,_v);m.addEventListener(Xu,y),m.dispatchEvent(A),A.defaultPrevented||(NE(OE(og(m)),{select:!0}),document.activeElement===w&&Sa(m))}return()=>{m.removeEventListener(Xu,y),setTimeout(()=>{const A=new CustomEvent(Ku,_v);m.addEventListener(Ku,b),m.dispatchEvent(A),A.defaultPrevented||Sa(w??document.body,{select:!0}),m.removeEventListener(Ku,b),Dv.remove(E)},0)}}},[m,y,b,E]);const j=g.useCallback(w=>{if(!r&&!s||E.paused)return;const C=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,A=document.activeElement;if(C&&A){const M=w.currentTarget,[z,V]=RE(M);z&&V?!w.shiftKey&&A===V?(w.preventDefault(),r&&Sa(z,{select:!0})):w.shiftKey&&A===z&&(w.preventDefault(),r&&Sa(V,{select:!0})):A===M&&w.preventDefault()}},[r,s,E.paused]);return h.jsx(Je.div,{tabIndex:-1,...d,ref:N,onKeyDown:j})});sg.displayName=CE;function NE(n,{select:i=!1}={}){const r=document.activeElement;for(const s of n)if(Sa(s,{select:i}),document.activeElement!==r)return}function RE(n){const i=og(n),r=zv(i,n),s=zv(i.reverse(),n);return[r,s]}function og(n){const i=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function zv(n,i){for(const r of n)if(!jE(r,{upTo:i}))return r}function jE(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function TE(n){return n instanceof HTMLInputElement&&"select"in n}function Sa(n,{select:i=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&TE(n)&&i&&n.select()}}var Dv=AE();function AE(){let n=[];return{add(i){const r=n[0];i!==r&&r?.pause(),n=Lv(n,i),n.unshift(i)},remove(i){n=Lv(n,i),n[0]?.resume()}}}function Lv(n,i){const r=[...n],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function OE(n){return n.filter(i=>i.tagName!=="A")}var _t=globalThis?.document?g.useLayoutEffect:()=>{},ME=jf[" useId ".trim().toString()]||(()=>{}),_E=0;function qf(n){const[i,r]=g.useState(ME());return _t(()=>{r(s=>s??String(_E++))},[n]),i?`radix-${i}`:""}const zE=["top","right","bottom","left"],Ca=Math.min,Qt=Math.max,Ws=Math.round,Us=Math.floor,xn=n=>({x:n,y:n}),DE={left:"right",right:"left",bottom:"top",top:"bottom"},LE={start:"end",end:"start"};function of(n,i,r){return Qt(n,Ca(i,r))}function Xn(n,i){return typeof n=="function"?n(i):n}function Kn(n){return n.split("-")[0]}function ni(n){return n.split("-")[1]}function Vf(n){return n==="x"?"y":"x"}function Gf(n){return n==="y"?"height":"width"}const UE=new Set(["top","bottom"]);function bn(n){return UE.has(Kn(n))?"y":"x"}function Qf(n){return Vf(bn(n))}function HE(n,i,r){r===void 0&&(r=!1);const s=ni(n),u=Qf(n),f=Gf(u);let d=u==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=Is(d)),[d,Is(d)]}function BE(n){const i=Is(n);return[cf(n),i,cf(i)]}function cf(n){return n.replace(/start|end/g,i=>LE[i])}const Uv=["left","right"],Hv=["right","left"],kE=["top","bottom"],qE=["bottom","top"];function VE(n,i,r){switch(n){case"top":case"bottom":return r?i?Hv:Uv:i?Uv:Hv;case"left":case"right":return i?kE:qE;default:return[]}}function GE(n,i,r,s){const u=ni(n);let f=VE(Kn(n),r==="start",s);return u&&(f=f.map(d=>d+"-"+u),i&&(f=f.concat(f.map(cf)))),f}function Is(n){return n.replace(/left|right|bottom|top/g,i=>DE[i])}function QE(n){return{top:0,right:0,bottom:0,left:0,...n}}function cg(n){return typeof n!="number"?QE(n):{top:n,right:n,bottom:n,left:n}}function eo(n){const{x:i,y:r,width:s,height:u}=n;return{width:s,height:u,top:r,left:i,right:i+s,bottom:r+u,x:i,y:r}}function Bv(n,i,r){let{reference:s,floating:u}=n;const f=bn(i),d=Qf(i),m=Gf(d),v=Kn(i),y=f==="y",b=s.x+s.width/2-u.width/2,x=s.y+s.height/2-u.height/2,N=s[m]/2-u[m]/2;let E;switch(v){case"top":E={x:b,y:s.y-u.height};break;case"bottom":E={x:b,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:x};break;case"left":E={x:s.x-u.width,y:x};break;default:E={x:s.x,y:s.y}}switch(ni(i)){case"start":E[d]-=N*(r&&y?-1:1);break;case"end":E[d]+=N*(r&&y?-1:1);break}return E}async function YE(n,i){var r;i===void 0&&(i={});const{x:s,y:u,platform:f,rects:d,elements:m,strategy:v}=n,{boundary:y="clippingAncestors",rootBoundary:b="viewport",elementContext:x="floating",altBoundary:N=!1,padding:E=0}=Xn(i,n),j=cg(E),C=m[N?x==="floating"?"reference":"floating":x],A=eo(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(C)))==null||r?C:C.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:y,rootBoundary:b,strategy:v})),M=x==="floating"?{x:s,y:u,width:d.floating.width,height:d.floating.height}:d.reference,z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),V=await(f.isElement==null?void 0:f.isElement(z))?await(f.getScale==null?void 0:f.getScale(z))||{x:1,y:1}:{x:1,y:1},Z=eo(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:M,offsetParent:z,strategy:v}):M);return{top:(A.top-Z.top+j.top)/V.y,bottom:(Z.bottom-A.bottom+j.bottom)/V.y,left:(A.left-Z.left+j.left)/V.x,right:(Z.right-A.right+j.right)/V.x}}const XE=async(n,i,r)=>{const{placement:s="bottom",strategy:u="absolute",middleware:f=[],platform:d}=r,m=f.filter(Boolean),v=await(d.isRTL==null?void 0:d.isRTL(i));let y=await d.getElementRects({reference:n,floating:i,strategy:u}),{x:b,y:x}=Bv(y,s,v),N=s,E={},j=0;for(let C=0;C<m.length;C++){var w;const{name:A,fn:M}=m[C],{x:z,y:V,data:Z,reset:$}=await M({x:b,y:x,initialPlacement:s,placement:N,strategy:u,middlewareData:E,rects:y,platform:{...d,detectOverflow:(w=d.detectOverflow)!=null?w:YE},elements:{reference:n,floating:i}});b=z??b,x=V??x,E={...E,[A]:{...E[A],...Z}},$&&j<=50&&(j++,typeof $=="object"&&($.placement&&(N=$.placement),$.rects&&(y=$.rects===!0?await d.getElementRects({reference:n,floating:i,strategy:u}):$.rects),{x:b,y:x}=Bv(y,N,v)),C=-1)}return{x:b,y:x,placement:N,strategy:u,middlewareData:E}},KE=n=>({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:u,rects:f,platform:d,elements:m,middlewareData:v}=i,{element:y,padding:b=0}=Xn(n,i)||{};if(y==null)return{};const x=cg(b),N={x:r,y:s},E=Qf(u),j=Gf(E),w=await d.getDimensions(y),C=E==="y",A=C?"top":"left",M=C?"bottom":"right",z=C?"clientHeight":"clientWidth",V=f.reference[j]+f.reference[E]-N[E]-f.floating[j],Z=N[E]-f.reference[E],$=await(d.getOffsetParent==null?void 0:d.getOffsetParent(y));let q=$?$[z]:0;(!q||!await(d.isElement==null?void 0:d.isElement($)))&&(q=m.floating[z]||f.floating[j]);const Q=V/2-Z/2,I=q/2-w[j]/2-1,se=Ca(x[A],I),fe=Ca(x[M],I),oe=se,me=q-w[j]-fe,de=q/2-w[j]/2+Q,ve=of(oe,de,me),D=!v.arrow&&ni(u)!=null&&de!==ve&&f.reference[j]/2-(de<oe?se:fe)-w[j]/2<0,P=D?de<oe?de-oe:de-me:0;return{[E]:N[E]+P,data:{[E]:ve,centerOffset:de-ve-P,...D&&{alignmentOffset:P}},reset:D}}}),PE=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,s;const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:v,elements:y}=i,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:N,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:w=!0,...C}=Xn(n,i);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const A=Kn(u),M=bn(m),z=Kn(m)===m,V=await(v.isRTL==null?void 0:v.isRTL(y.floating)),Z=N||(z||!w?[Is(m)]:BE(m)),$=j!=="none";!N&&$&&Z.push(...GE(m,w,j,V));const q=[m,...Z],Q=await v.detectOverflow(i,C),I=[];let se=((s=f.flip)==null?void 0:s.overflows)||[];if(b&&I.push(Q[A]),x){const de=HE(u,d,V);I.push(Q[de[0]],Q[de[1]])}if(se=[...se,{placement:u,overflows:I}],!I.every(de=>de<=0)){var fe,oe;const de=(((fe=f.flip)==null?void 0:fe.index)||0)+1,ve=q[de];if(ve&&(!(x==="alignment"?M!==bn(ve):!1)||se.every(B=>bn(B.placement)===M?B.overflows[0]>0:!0)))return{data:{index:de,overflows:se},reset:{placement:ve}};let D=(oe=se.filter(P=>P.overflows[0]<=0).sort((P,B)=>P.overflows[1]-B.overflows[1])[0])==null?void 0:oe.placement;if(!D)switch(E){case"bestFit":{var me;const P=(me=se.filter(B=>{if($){const le=bn(B.placement);return le===M||le==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(le=>le>0).reduce((le,he)=>le+he,0)]).sort((B,le)=>B[1]-le[1])[0])==null?void 0:me[0];P&&(D=P);break}case"initialPlacement":D=m;break}if(u!==D)return{reset:{placement:D}}}return{}}}};function kv(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function qv(n){return zE.some(i=>n[i]>=0)}const ZE=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r,platform:s}=i,{strategy:u="referenceHidden",...f}=Xn(n,i);switch(u){case"referenceHidden":{const d=await s.detectOverflow(i,{...f,elementContext:"reference"}),m=kv(d,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:qv(m)}}}case"escaped":{const d=await s.detectOverflow(i,{...f,altBoundary:!0}),m=kv(d,r.floating);return{data:{escapedOffsets:m,escaped:qv(m)}}}default:return{}}}}},ug=new Set(["left","top"]);async function FE(n,i){const{placement:r,platform:s,elements:u}=n,f=await(s.isRTL==null?void 0:s.isRTL(u.floating)),d=Kn(r),m=ni(r),v=bn(r)==="y",y=ug.has(d)?-1:1,b=f&&v?-1:1,x=Xn(i,n);let{mainAxis:N,crossAxis:E,alignmentAxis:j}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof j=="number"&&(E=m==="end"?j*-1:j),v?{x:E*b,y:N*y}:{x:N*y,y:E*b}}const JE=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,s;const{x:u,y:f,placement:d,middlewareData:m}=i,v=await FE(i,n);return d===((r=m.offset)==null?void 0:r.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:d}}}}},$E=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:s,placement:u,platform:f}=i,{mainAxis:d=!0,crossAxis:m=!1,limiter:v={fn:A=>{let{x:M,y:z}=A;return{x:M,y:z}}},...y}=Xn(n,i),b={x:r,y:s},x=await f.detectOverflow(i,y),N=bn(Kn(u)),E=Vf(N);let j=b[E],w=b[N];if(d){const A=E==="y"?"top":"left",M=E==="y"?"bottom":"right",z=j+x[A],V=j-x[M];j=of(z,j,V)}if(m){const A=N==="y"?"top":"left",M=N==="y"?"bottom":"right",z=w+x[A],V=w-x[M];w=of(z,w,V)}const C=v.fn({...i,[E]:j,[N]:w});return{...C,data:{x:C.x-r,y:C.y-s,enabled:{[E]:d,[N]:m}}}}}},WE=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:r,y:s,placement:u,rects:f,middlewareData:d}=i,{offset:m=0,mainAxis:v=!0,crossAxis:y=!0}=Xn(n,i),b={x:r,y:s},x=bn(u),N=Vf(x);let E=b[N],j=b[x];const w=Xn(m,i),C=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(v){const z=N==="y"?"height":"width",V=f.reference[N]-f.floating[z]+C.mainAxis,Z=f.reference[N]+f.reference[z]-C.mainAxis;E<V?E=V:E>Z&&(E=Z)}if(y){var A,M;const z=N==="y"?"width":"height",V=ug.has(Kn(u)),Z=f.reference[x]-f.floating[z]+(V&&((A=d.offset)==null?void 0:A[x])||0)+(V?0:C.crossAxis),$=f.reference[x]+f.reference[z]+(V?0:((M=d.offset)==null?void 0:M[x])||0)-(V?C.crossAxis:0);j<Z?j=Z:j>$&&(j=$)}return{[N]:E,[x]:j}}}},IE=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var r,s;const{placement:u,rects:f,platform:d,elements:m}=i,{apply:v=()=>{},...y}=Xn(n,i),b=await d.detectOverflow(i,y),x=Kn(u),N=ni(u),E=bn(u)==="y",{width:j,height:w}=f.floating;let C,A;x==="top"||x==="bottom"?(C=x,A=N===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(A=x,C=N==="end"?"top":"bottom");const M=w-b.top-b.bottom,z=j-b.left-b.right,V=Ca(w-b[C],M),Z=Ca(j-b[A],z),$=!i.middlewareData.shift;let q=V,Q=Z;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(Q=z),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(q=M),$&&!N){const se=Qt(b.left,0),fe=Qt(b.right,0),oe=Qt(b.top,0),me=Qt(b.bottom,0);E?Q=j-2*(se!==0||fe!==0?se+fe:Qt(b.left,b.right)):q=w-2*(oe!==0||me!==0?oe+me:Qt(b.top,b.bottom))}await v({...i,availableWidth:Q,availableHeight:q});const I=await d.getDimensions(m.floating);return j!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function co(){return typeof window<"u"}function ai(n){return fg(n)?(n.nodeName||"").toLowerCase():"#document"}function Yt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function En(n){var i;return(i=(fg(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function fg(n){return co()?n instanceof Node||n instanceof Yt(n).Node:!1}function dn(n){return co()?n instanceof Element||n instanceof Yt(n).Element:!1}function Sn(n){return co()?n instanceof HTMLElement||n instanceof Yt(n).HTMLElement:!1}function Vv(n){return!co()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Yt(n).ShadowRoot}const eC=new Set(["inline","contents"]);function pr(n){const{overflow:i,overflowX:r,overflowY:s,display:u}=hn(n);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!eC.has(u)}const tC=new Set(["table","td","th"]);function nC(n){return tC.has(ai(n))}const aC=[":popover-open",":modal"];function uo(n){return aC.some(i=>{try{return n.matches(i)}catch{return!1}})}const lC=["transform","translate","scale","rotate","perspective"],iC=["transform","translate","scale","rotate","perspective","filter"],rC=["paint","layout","strict","content"];function Yf(n){const i=Xf(),r=dn(n)?hn(n):n;return lC.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||iC.some(s=>(r.willChange||"").includes(s))||rC.some(s=>(r.contain||"").includes(s))}function sC(n){let i=Na(n);for(;Sn(i)&&!Jl(i);){if(Yf(i))return i;if(uo(i))return null;i=Na(i)}return null}function Xf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oC=new Set(["html","body","#document"]);function Jl(n){return oC.has(ai(n))}function hn(n){return Yt(n).getComputedStyle(n)}function fo(n){return dn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Na(n){if(ai(n)==="html")return n;const i=n.assignedSlot||n.parentNode||Vv(n)&&n.host||En(n);return Vv(i)?i.host:i}function dg(n){const i=Na(n);return Jl(i)?n.ownerDocument?n.ownerDocument.body:n.body:Sn(i)&&pr(i)?i:dg(i)}function ur(n,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const u=dg(n),f=u===((s=n.ownerDocument)==null?void 0:s.body),d=Yt(u);if(f){const m=uf(d);return i.concat(d,d.visualViewport||[],pr(u)?u:[],m&&r?ur(m):[])}return i.concat(u,ur(u,[],r))}function uf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function hg(n){const i=hn(n);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const u=Sn(n),f=u?n.offsetWidth:r,d=u?n.offsetHeight:s,m=Ws(r)!==f||Ws(s)!==d;return m&&(r=f,s=d),{width:r,height:s,$:m}}function Kf(n){return dn(n)?n:n.contextElement}function Pl(n){const i=Kf(n);if(!Sn(i))return xn(1);const r=i.getBoundingClientRect(),{width:s,height:u,$:f}=hg(i);let d=(f?Ws(r.width):r.width)/s,m=(f?Ws(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const cC=xn(0);function mg(n){const i=Yt(n);return!Xf()||!i.visualViewport?cC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function uC(n,i,r){return i===void 0&&(i=!1),!r||i&&r!==Yt(n)?!1:i}function el(n,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),f=Kf(n);let d=xn(1);i&&(s?dn(s)&&(d=Pl(s)):d=Pl(n));const m=uC(f,r,s)?mg(f):xn(0);let v=(u.left+m.x)/d.x,y=(u.top+m.y)/d.y,b=u.width/d.x,x=u.height/d.y;if(f){const N=Yt(f),E=s&&dn(s)?Yt(s):s;let j=N,w=uf(j);for(;w&&s&&E!==j;){const C=Pl(w),A=w.getBoundingClientRect(),M=hn(w),z=A.left+(w.clientLeft+parseFloat(M.paddingLeft))*C.x,V=A.top+(w.clientTop+parseFloat(M.paddingTop))*C.y;v*=C.x,y*=C.y,b*=C.x,x*=C.y,v+=z,y+=V,j=Yt(w),w=uf(j)}}return eo({width:b,height:x,x:v,y})}function ho(n,i){const r=fo(n).scrollLeft;return i?i.left+r:el(En(n)).left+r}function pg(n,i){const r=n.getBoundingClientRect(),s=r.left+i.scrollLeft-ho(n,r),u=r.top+i.scrollTop;return{x:s,y:u}}function fC(n){let{elements:i,rect:r,offsetParent:s,strategy:u}=n;const f=u==="fixed",d=En(s),m=i?uo(i.floating):!1;if(s===d||m&&f)return r;let v={scrollLeft:0,scrollTop:0},y=xn(1);const b=xn(0),x=Sn(s);if((x||!x&&!f)&&((ai(s)!=="body"||pr(d))&&(v=fo(s)),Sn(s))){const E=el(s);y=Pl(s),b.x=E.x+s.clientLeft,b.y=E.y+s.clientTop}const N=d&&!x&&!f?pg(d,v):xn(0);return{width:r.width*y.x,height:r.height*y.y,x:r.x*y.x-v.scrollLeft*y.x+b.x+N.x,y:r.y*y.y-v.scrollTop*y.y+b.y+N.y}}function dC(n){return Array.from(n.getClientRects())}function hC(n){const i=En(n),r=fo(n),s=n.ownerDocument.body,u=Qt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),f=Qt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let d=-r.scrollLeft+ho(n);const m=-r.scrollTop;return hn(s).direction==="rtl"&&(d+=Qt(i.clientWidth,s.clientWidth)-u),{width:u,height:f,x:d,y:m}}const Gv=25;function mC(n,i){const r=Yt(n),s=En(n),u=r.visualViewport;let f=s.clientWidth,d=s.clientHeight,m=0,v=0;if(u){f=u.width,d=u.height;const b=Xf();(!b||b&&i==="fixed")&&(m=u.offsetLeft,v=u.offsetTop)}const y=ho(s);if(y<=0){const b=s.ownerDocument,x=b.body,N=getComputedStyle(x),E=b.compatMode==="CSS1Compat"&&parseFloat(N.marginLeft)+parseFloat(N.marginRight)||0,j=Math.abs(s.clientWidth-x.clientWidth-E);j<=Gv&&(f-=j)}else y<=Gv&&(f+=y);return{width:f,height:d,x:m,y:v}}const pC=new Set(["absolute","fixed"]);function vC(n,i){const r=el(n,!0,i==="fixed"),s=r.top+n.clientTop,u=r.left+n.clientLeft,f=Sn(n)?Pl(n):xn(1),d=n.clientWidth*f.x,m=n.clientHeight*f.y,v=u*f.x,y=s*f.y;return{width:d,height:m,x:v,y}}function Qv(n,i,r){let s;if(i==="viewport")s=mC(n,r);else if(i==="document")s=hC(En(n));else if(dn(i))s=vC(i,r);else{const u=mg(n);s={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return eo(s)}function vg(n,i){const r=Na(n);return r===i||!dn(r)||Jl(r)?!1:hn(r).position==="fixed"||vg(r,i)}function yC(n,i){const r=i.get(n);if(r)return r;let s=ur(n,[],!1).filter(m=>dn(m)&&ai(m)!=="body"),u=null;const f=hn(n).position==="fixed";let d=f?Na(n):n;for(;dn(d)&&!Jl(d);){const m=hn(d),v=Yf(d);!v&&m.position==="fixed"&&(u=null),(f?!v&&!u:!v&&m.position==="static"&&!!u&&pC.has(u.position)||pr(d)&&!v&&vg(n,d))?s=s.filter(b=>b!==d):u=m,d=Na(d)}return i.set(n,s),s}function gC(n){let{element:i,boundary:r,rootBoundary:s,strategy:u}=n;const d=[...r==="clippingAncestors"?uo(i)?[]:yC(i,this._c):[].concat(r),s],m=d[0],v=d.reduce((y,b)=>{const x=Qv(i,b,u);return y.top=Qt(x.top,y.top),y.right=Ca(x.right,y.right),y.bottom=Ca(x.bottom,y.bottom),y.left=Qt(x.left,y.left),y},Qv(i,m,u));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function bC(n){const{width:i,height:r}=hg(n);return{width:i,height:r}}function xC(n,i,r){const s=Sn(i),u=En(i),f=r==="fixed",d=el(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const v=xn(0);function y(){v.x=ho(u)}if(s||!s&&!f)if((ai(i)!=="body"||pr(u))&&(m=fo(i)),s){const E=el(i,!0,f,i);v.x=E.x+i.clientLeft,v.y=E.y+i.clientTop}else u&&y();f&&!s&&u&&y();const b=u&&!s&&!f?pg(u,m):xn(0),x=d.left+m.scrollLeft-v.x-b.x,N=d.top+m.scrollTop-v.y-b.y;return{x,y:N,width:d.width,height:d.height}}function Pu(n){return hn(n).position==="static"}function Yv(n,i){if(!Sn(n)||hn(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return En(n)===r&&(r=r.ownerDocument.body),r}function yg(n,i){const r=Yt(n);if(uo(n))return r;if(!Sn(n)){let u=Na(n);for(;u&&!Jl(u);){if(dn(u)&&!Pu(u))return u;u=Na(u)}return r}let s=Yv(n,i);for(;s&&nC(s)&&Pu(s);)s=Yv(s,i);return s&&Jl(s)&&Pu(s)&&!Yf(s)?r:s||sC(n)||r}const SC=async function(n){const i=this.getOffsetParent||yg,r=this.getDimensions,s=await r(n.floating);return{reference:xC(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function wC(n){return hn(n).direction==="rtl"}const EC={convertOffsetParentRelativeRectToViewportRelativeRect:fC,getDocumentElement:En,getClippingRect:gC,getOffsetParent:yg,getElementRects:SC,getClientRects:dC,getDimensions:bC,getScale:Pl,isElement:dn,isRTL:wC};function gg(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function CC(n,i){let r=null,s;const u=En(n);function f(){var m;clearTimeout(s),(m=r)==null||m.disconnect(),r=null}function d(m,v){m===void 0&&(m=!1),v===void 0&&(v=1),f();const y=n.getBoundingClientRect(),{left:b,top:x,width:N,height:E}=y;if(m||i(),!N||!E)return;const j=Us(x),w=Us(u.clientWidth-(b+N)),C=Us(u.clientHeight-(x+E)),A=Us(b),z={rootMargin:-j+"px "+-w+"px "+-C+"px "+-A+"px",threshold:Qt(0,Ca(1,v))||1};let V=!0;function Z($){const q=$[0].intersectionRatio;if(q!==v){if(!V)return d();q?d(!1,q):s=setTimeout(()=>{d(!1,1e-7)},1e3)}q===1&&!gg(y,n.getBoundingClientRect())&&d(),V=!1}try{r=new IntersectionObserver(Z,{...z,root:u.ownerDocument})}catch{r=new IntersectionObserver(Z,z)}r.observe(n)}return d(!0),f}function NC(n,i,r,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:v=!1}=s,y=Kf(n),b=u||f?[...y?ur(y):[],...ur(i)]:[];b.forEach(A=>{u&&A.addEventListener("scroll",r,{passive:!0}),f&&A.addEventListener("resize",r)});const x=y&&m?CC(y,r):null;let N=-1,E=null;d&&(E=new ResizeObserver(A=>{let[M]=A;M&&M.target===y&&E&&(E.unobserve(i),cancelAnimationFrame(N),N=requestAnimationFrame(()=>{var z;(z=E)==null||z.observe(i)})),r()}),y&&!v&&E.observe(y),E.observe(i));let j,w=v?el(n):null;v&&C();function C(){const A=el(n);w&&!gg(w,A)&&r(),w=A,j=requestAnimationFrame(C)}return r(),()=>{var A;b.forEach(M=>{u&&M.removeEventListener("scroll",r),f&&M.removeEventListener("resize",r)}),x?.(),(A=E)==null||A.disconnect(),E=null,v&&cancelAnimationFrame(j)}}const RC=JE,jC=$E,TC=PE,AC=IE,OC=ZE,Xv=KE,MC=WE,_C=(n,i,r)=>{const s=new Map,u={platform:EC,...r},f={...u.platform,_c:s};return XE(n,i,{...u,platform:f})};var zC=typeof document<"u",DC=function(){},Xs=zC?g.useLayoutEffect:DC;function to(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,s,u;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!to(n[s],i[s]))return!1;return!0}if(u=Object.keys(n),r=u.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,u[s]))return!1;for(s=r;s--!==0;){const f=u[s];if(!(f==="_owner"&&n.$$typeof)&&!to(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function bg(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Kv(n,i){const r=bg(n);return Math.round(i*r)/r}function Zu(n){const i=g.useRef(n);return Xs(()=>{i.current=n}),i}function LC(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:v,open:y}=n,[b,x]=g.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[N,E]=g.useState(s);to(N,s)||E(s);const[j,w]=g.useState(null),[C,A]=g.useState(null),M=g.useCallback(B=>{B!==$.current&&($.current=B,w(B))},[]),z=g.useCallback(B=>{B!==q.current&&(q.current=B,A(B))},[]),V=f||j,Z=d||C,$=g.useRef(null),q=g.useRef(null),Q=g.useRef(b),I=v!=null,se=Zu(v),fe=Zu(u),oe=Zu(y),me=g.useCallback(()=>{if(!$.current||!q.current)return;const B={placement:i,strategy:r,middleware:N};fe.current&&(B.platform=fe.current),_C($.current,q.current,B).then(le=>{const he={...le,isPositioned:oe.current!==!1};de.current&&!to(Q.current,he)&&(Q.current=he,mr.flushSync(()=>{x(he)}))})},[N,i,r,fe,oe]);Xs(()=>{y===!1&&Q.current.isPositioned&&(Q.current.isPositioned=!1,x(B=>({...B,isPositioned:!1})))},[y]);const de=g.useRef(!1);Xs(()=>(de.current=!0,()=>{de.current=!1}),[]),Xs(()=>{if(V&&($.current=V),Z&&(q.current=Z),V&&Z){if(se.current)return se.current(V,Z,me);me()}},[V,Z,me,se,I]);const ve=g.useMemo(()=>({reference:$,floating:q,setReference:M,setFloating:z}),[M,z]),D=g.useMemo(()=>({reference:V,floating:Z}),[V,Z]),P=g.useMemo(()=>{const B={position:r,left:0,top:0};if(!D.floating)return B;const le=Kv(D.floating,b.x),he=Kv(D.floating,b.y);return m?{...B,transform:"translate("+le+"px, "+he+"px)",...bg(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:le,top:he}},[r,m,D.floating,b.x,b.y]);return g.useMemo(()=>({...b,update:me,refs:ve,elements:D,floatingStyles:P}),[b,me,ve,D,P])}const UC=n=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:u}=typeof n=="function"?n(r):n;return s&&i(s)?s.current!=null?Xv({element:s.current,padding:u}).fn(r):{}:s?Xv({element:s,padding:u}).fn(r):{}}}},HC=(n,i)=>({...RC(n),options:[n,i]}),BC=(n,i)=>({...jC(n),options:[n,i]}),kC=(n,i)=>({...MC(n),options:[n,i]}),qC=(n,i)=>({...TC(n),options:[n,i]}),VC=(n,i)=>({...AC(n),options:[n,i]}),GC=(n,i)=>({...OC(n),options:[n,i]}),QC=(n,i)=>({...UC(n),options:[n,i]});var YC="Arrow",xg=g.forwardRef((n,i)=>{const{children:r,width:s=10,height:u=5,...f}=n;return h.jsx(Je.svg,{...f,ref:i,width:s,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});xg.displayName=YC;var XC=xg;function KC(n){const[i,r]=g.useState(void 0);return _t(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,m;if("borderBoxSize"in f){const v=f.borderBoxSize,y=Array.isArray(v)?v[0]:v;d=y.inlineSize,m=y.blockSize}else d=n.offsetWidth,m=n.offsetHeight;r({width:d,height:m})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),i}var Pf="Popper",[Sg,wg]=kf(Pf),[PC,Eg]=Sg(Pf),Cg=n=>{const{__scopePopper:i,children:r}=n,[s,u]=g.useState(null);return h.jsx(PC,{scope:i,anchor:s,onAnchorChange:u,children:r})};Cg.displayName=Pf;var Ng="PopperAnchor",Rg=g.forwardRef((n,i)=>{const{__scopePopper:r,virtualRef:s,...u}=n,f=Eg(Ng,r),d=g.useRef(null),m=gt(i,d),v=g.useRef(null);return g.useEffect(()=>{const y=v.current;v.current=s?.current||d.current,y!==v.current&&f.onAnchorChange(v.current)}),s?null:h.jsx(Je.div,{...u,ref:m})});Rg.displayName=Ng;var Zf="PopperContent",[ZC,FC]=Sg(Zf),jg=g.forwardRef((n,i)=>{const{__scopePopper:r,side:s="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:N=!1,updatePositionStrategy:E="optimized",onPlaced:j,...w}=n,C=Eg(Zf,r),[A,M]=g.useState(null),z=gt(i,F=>M(F)),[V,Z]=g.useState(null),$=KC(V),q=$?.width??0,Q=$?.height??0,I=s+(f!=="center"?"-"+f:""),se=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},fe=Array.isArray(y)?y:[y],oe=fe.length>0,me={padding:se,boundary:fe.filter($C),altBoundary:oe},{refs:de,floatingStyles:ve,placement:D,isPositioned:P,middlewareData:B}=LC({strategy:"fixed",placement:I,whileElementsMounted:(...F)=>NC(...F,{animationFrame:E==="always"}),elements:{reference:C.anchor},middleware:[HC({mainAxis:u+Q,alignmentAxis:d}),v&&BC({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?kC():void 0,...me}),v&&qC({...me}),VC({...me,apply:({elements:F,rects:be,availableWidth:ye,availableHeight:Ce})=>{const{width:Te,height:ze}=be.reference,xt=F.floating.style;xt.setProperty("--radix-popper-available-width",`${ye}px`),xt.setProperty("--radix-popper-available-height",`${Ce}px`),xt.setProperty("--radix-popper-anchor-width",`${Te}px`),xt.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),V&&QC({element:V,padding:m}),WC({arrowWidth:q,arrowHeight:Q}),N&&GC({strategy:"referenceHidden",...me})]}),[le,he]=Og(D),T=Ia(j);_t(()=>{P&&T?.()},[P,T]);const Y=B.arrow?.x,J=B.arrow?.y,W=B.arrow?.centerOffset!==0,[re,ue]=g.useState();return _t(()=>{A&&ue(window.getComputedStyle(A).zIndex)},[A]),h.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...ve,transform:P?ve.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:h.jsx(ZC,{scope:r,placedSide:le,onArrowChange:Z,arrowX:Y,arrowY:J,shouldHideArrow:W,children:h.jsx(Je.div,{"data-side":le,"data-align":he,...w,ref:z,style:{...w.style,animation:P?void 0:"none"}})})})});jg.displayName=Zf;var Tg="PopperArrow",JC={top:"bottom",right:"left",bottom:"top",left:"right"},Ag=g.forwardRef(function(i,r){const{__scopePopper:s,...u}=i,f=FC(Tg,s),d=JC[f.placedSide];return h.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:h.jsx(XC,{...u,ref:r,style:{...u.style,display:"block"}})})});Ag.displayName=Tg;function $C(n){return n!==null}var WC=n=>({name:"transformOrigin",options:n,fn(i){const{placement:r,rects:s,middlewareData:u}=i,d=u.arrow?.centerOffset!==0,m=d?0:n.arrowWidth,v=d?0:n.arrowHeight,[y,b]=Og(r),x={start:"0%",center:"50%",end:"100%"}[b],N=(u.arrow?.x??0)+m/2,E=(u.arrow?.y??0)+v/2;let j="",w="";return y==="bottom"?(j=d?x:`${N}px`,w=`${-v}px`):y==="top"?(j=d?x:`${N}px`,w=`${s.floating.height+v}px`):y==="right"?(j=`${-v}px`,w=d?x:`${E}px`):y==="left"&&(j=`${s.floating.width+v}px`,w=d?x:`${E}px`),{data:{x:j,y:w}}}});function Og(n){const[i,r="center"]=n.split("-");return[i,r]}var IC=Cg,eN=Rg,tN=jg,nN=Ag,aN="Portal",Mg=g.forwardRef((n,i)=>{const{container:r,...s}=n,[u,f]=g.useState(!1);_t(()=>f(!0),[]);const d=r||u&&globalThis?.document?.body;return d?WS.createPortal(h.jsx(Je.div,{...s,ref:i}),d):null});Mg.displayName=aN;var lN=jf[" useInsertionEffect ".trim().toString()]||_t;function Pv({prop:n,defaultProp:i,onChange:r=()=>{},caller:s}){const[u,f,d]=iN({defaultProp:i,onChange:r}),m=n!==void 0,v=m?n:u;{const b=g.useRef(n!==void 0);g.useEffect(()=>{const x=b.current;x!==m&&console.warn(`${s} is changing from ${x?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=m},[m,s])}const y=g.useCallback(b=>{if(m){const x=rN(b)?b(n):b;x!==n&&d.current?.(x)}else f(b)},[m,n,f,d]);return[v,y]}function iN({defaultProp:n,onChange:i}){const[r,s]=g.useState(n),u=g.useRef(r),f=g.useRef(i);return lN(()=>{f.current=i},[i]),g.useEffect(()=>{u.current!==r&&(f.current?.(r),u.current=r)},[r,u]),[r,s,f]}function rN(n){return typeof n=="function"}function sN(n){const i=g.useRef({value:n,previous:n});return g.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}var _g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oN="VisuallyHidden",cN=g.forwardRef((n,i)=>h.jsx(Je.span,{...n,ref:i,style:{..._g,...n.style}}));cN.displayName=oN;var uN=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Yl=new WeakMap,Hs=new WeakMap,Bs={},Fu=0,zg=function(n){return n&&(n.host||zg(n.parentNode))},fN=function(n,i){return i.map(function(r){if(n.contains(r))return r;var s=zg(r);return s&&n.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},dN=function(n,i,r,s){var u=fN(i,Array.isArray(n)?n:[n]);Bs[r]||(Bs[r]=new WeakMap);var f=Bs[r],d=[],m=new Set,v=new Set(u),y=function(x){!x||m.has(x)||(m.add(x),y(x.parentNode))};u.forEach(y);var b=function(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,function(N){if(m.has(N))b(N);else try{var E=N.getAttribute(s),j=E!==null&&E!=="false",w=(Yl.get(N)||0)+1,C=(f.get(N)||0)+1;Yl.set(N,w),f.set(N,C),d.push(N),w===1&&j&&Hs.set(N,!0),C===1&&N.setAttribute(r,"true"),j||N.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",N,A)}})};return b(i),m.clear(),Fu++,function(){d.forEach(function(x){var N=Yl.get(x)-1,E=f.get(x)-1;Yl.set(x,N),f.set(x,E),N||(Hs.has(x)||x.removeAttribute(s),Hs.delete(x)),E||x.removeAttribute(r)}),Fu--,Fu||(Yl=new WeakMap,Yl=new WeakMap,Hs=new WeakMap,Bs={})}},hN=function(n,i,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),u=uN(n);return u?(s.push.apply(s,Array.from(u.querySelectorAll("[aria-live], script"))),dN(s,u,r,"aria-hidden")):function(){return null}},gn=function(){return gn=Object.assign||function(i){for(var r,s=1,u=arguments.length;s<u;s++){r=arguments[s];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(i[f]=r[f])}return i},gn.apply(this,arguments)};function Dg(n,i){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(n);u<s.length;u++)i.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(n,s[u])&&(r[s[u]]=n[s[u]]);return r}function mN(n,i,r){if(r||arguments.length===2)for(var s=0,u=i.length,f;s<u;s++)(f||!(s in i))&&(f||(f=Array.prototype.slice.call(i,0,s)),f[s]=i[s]);return n.concat(f||Array.prototype.slice.call(i))}var Ks="right-scroll-bar-position",Ps="width-before-scroll-bar",pN="with-scroll-bars-hidden",vN="--removed-body-scroll-bar-size";function Ju(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function yN(n,i){var r=g.useState(function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(s){var u=r.value;u!==s&&(r.value=s,r.callback(s,u))}}}})[0];return r.callback=i,r.facade}var gN=typeof window<"u"?g.useLayoutEffect:g.useEffect,Zv=new WeakMap;function bN(n,i){var r=yN(null,function(s){return n.forEach(function(u){return Ju(u,s)})});return gN(function(){var s=Zv.get(r);if(s){var u=new Set(s),f=new Set(n),d=r.current;u.forEach(function(m){f.has(m)||Ju(m,null)}),f.forEach(function(m){u.has(m)||Ju(m,d)})}Zv.set(r,n)},[n]),r}function xN(n){return n}function SN(n,i){i===void 0&&(i=xN);var r=[],s=!1,u={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(f){var d=i(f,s);return r.push(d),function(){r=r.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(s=!0;r.length;){var d=r;r=[],d.forEach(f)}r={push:function(m){return f(m)},filter:function(){return r}}},assignMedium:function(f){s=!0;var d=[];if(r.length){var m=r;r=[],m.forEach(f),d=r}var v=function(){var b=d;d=[],b.forEach(f)},y=function(){return Promise.resolve().then(v)};y(),r={push:function(b){d.push(b),y()},filter:function(b){return d=d.filter(b),r}}}};return u}function wN(n){n===void 0&&(n={});var i=SN(null);return i.options=gn({async:!0,ssr:!1},n),i}var Lg=function(n){var i=n.sideCar,r=Dg(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return g.createElement(s,gn({},r))};Lg.isSideCarExport=!0;function EN(n,i){return n.useMedium(i),Lg}var Ug=wN(),$u=function(){},mo=g.forwardRef(function(n,i){var r=g.useRef(null),s=g.useState({onScrollCapture:$u,onWheelCapture:$u,onTouchMoveCapture:$u}),u=s[0],f=s[1],d=n.forwardProps,m=n.children,v=n.className,y=n.removeScrollBar,b=n.enabled,x=n.shards,N=n.sideCar,E=n.noRelative,j=n.noIsolation,w=n.inert,C=n.allowPinchZoom,A=n.as,M=A===void 0?"div":A,z=n.gapMode,V=Dg(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Z=N,$=bN([r,i]),q=gn(gn({},V),u);return g.createElement(g.Fragment,null,b&&g.createElement(Z,{sideCar:Ug,removeScrollBar:y,shards:x,noRelative:E,noIsolation:j,inert:w,setCallbacks:f,allowPinchZoom:!!C,lockRef:r,gapMode:z}),d?g.cloneElement(g.Children.only(m),gn(gn({},q),{ref:$})):g.createElement(M,gn({},q,{className:v,ref:$}),m))});mo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mo.classNames={fullWidth:Ps,zeroRight:Ks};var CN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NN(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=CN();return i&&n.setAttribute("nonce",i),n}function RN(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function jN(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var TN=function(){var n=0,i=null;return{add:function(r){n==0&&(i=NN())&&(RN(i,r),jN(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},AN=function(){var n=TN();return function(i,r){g.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&r])}},Hg=function(){var n=AN(),i=function(r){var s=r.styles,u=r.dynamic;return n(s,u),null};return i},ON={left:0,top:0,right:0,gap:0},Wu=function(n){return parseInt(n||"",10)||0},MN=function(n){var i=window.getComputedStyle(document.body),r=i[n==="padding"?"paddingLeft":"marginLeft"],s=i[n==="padding"?"paddingTop":"marginTop"],u=i[n==="padding"?"paddingRight":"marginRight"];return[Wu(r),Wu(s),Wu(u)]},_N=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ON;var i=MN(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},zN=Hg(),Zl="data-scroll-locked",DN=function(n,i,r,s){var u=n.left,f=n.top,d=n.right,m=n.gap;return r===void 0&&(r="margin"),`
12
- .`.concat(pN,` {
13
- overflow: hidden `).concat(s,`;
14
- padding-right: `).concat(m,"px ").concat(s,`;
15
- }
16
- body[`).concat(Zl,`] {
17
- overflow: hidden `).concat(s,`;
18
- overscroll-behavior: contain;
19
- `).concat([i&&"position: relative ".concat(s,";"),r==="margin"&&`
20
- padding-left: `.concat(u,`px;
21
- padding-top: `).concat(f,`px;
22
- padding-right: `).concat(d,`px;
23
- margin-left:0;
24
- margin-top:0;
25
- margin-right: `).concat(m,"px ").concat(s,`;
26
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
27
- }
28
-
29
- .`).concat(Ks,` {
30
- right: `).concat(m,"px ").concat(s,`;
31
- }
32
-
33
- .`).concat(Ps,` {
34
- margin-right: `).concat(m,"px ").concat(s,`;
35
- }
36
-
37
- .`).concat(Ks," .").concat(Ks,` {
38
- right: 0 `).concat(s,`;
39
- }
40
-
41
- .`).concat(Ps," .").concat(Ps,` {
42
- margin-right: 0 `).concat(s,`;
43
- }
44
-
45
- body[`).concat(Zl,`] {
46
- `).concat(vN,": ").concat(m,`px;
47
- }
48
- `)},Fv=function(){var n=parseInt(document.body.getAttribute(Zl)||"0",10);return isFinite(n)?n:0},LN=function(){g.useEffect(function(){return document.body.setAttribute(Zl,(Fv()+1).toString()),function(){var n=Fv()-1;n<=0?document.body.removeAttribute(Zl):document.body.setAttribute(Zl,n.toString())}},[])},UN=function(n){var i=n.noRelative,r=n.noImportant,s=n.gapMode,u=s===void 0?"margin":s;LN();var f=g.useMemo(function(){return _N(u)},[u]);return g.createElement(zN,{styles:DN(f,!i,u,r?"":"!important")})},ff=!1;if(typeof window<"u")try{var ks=Object.defineProperty({},"passive",{get:function(){return ff=!0,!0}});window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{ff=!1}var Xl=ff?{passive:!1}:!1,HN=function(n){return n.tagName==="TEXTAREA"},Bg=function(n,i){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!HN(n)&&r[i]==="visible")},BN=function(n){return Bg(n,"overflowY")},kN=function(n){return Bg(n,"overflowX")},Jv=function(n,i){var r=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var u=kg(n,s);if(u){var f=qg(n,s),d=f[1],m=f[2];if(d>m)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},qN=function(n){var i=n.scrollTop,r=n.scrollHeight,s=n.clientHeight;return[i,r,s]},VN=function(n){var i=n.scrollLeft,r=n.scrollWidth,s=n.clientWidth;return[i,r,s]},kg=function(n,i){return n==="v"?BN(i):kN(i)},qg=function(n,i){return n==="v"?qN(i):VN(i)},GN=function(n,i){return n==="h"&&i==="rtl"?-1:1},QN=function(n,i,r,s,u){var f=GN(n,window.getComputedStyle(i).direction),d=f*s,m=r.target,v=i.contains(m),y=!1,b=d>0,x=0,N=0;do{if(!m)break;var E=qg(n,m),j=E[0],w=E[1],C=E[2],A=w-C-f*j;(j||A)&&kg(n,m)&&(x+=A,N+=j);var M=m.parentNode;m=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!v&&m!==document.body||v&&(i.contains(m)||i===m));return(b&&Math.abs(x)<1||!b&&Math.abs(N)<1)&&(y=!0),y},qs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},$v=function(n){return[n.deltaX,n.deltaY]},Wv=function(n){return n&&"current"in n?n.current:n},YN=function(n,i){return n[0]===i[0]&&n[1]===i[1]},XN=function(n){return`
49
- .block-interactivity-`.concat(n,` {pointer-events: none;}
50
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
51
- `)},KN=0,Kl=[];function PN(n){var i=g.useRef([]),r=g.useRef([0,0]),s=g.useRef(),u=g.useState(KN++)[0],f=g.useState(Hg)[0],d=g.useRef(n);g.useEffect(function(){d.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var w=mN([n.lockRef.current],(n.shards||[]).map(Wv),!0).filter(Boolean);return w.forEach(function(C){return C.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var m=g.useCallback(function(w,C){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!d.current.allowPinchZoom;var A=qs(w),M=r.current,z="deltaX"in w?w.deltaX:M[0]-A[0],V="deltaY"in w?w.deltaY:M[1]-A[1],Z,$=w.target,q=Math.abs(z)>Math.abs(V)?"h":"v";if("touches"in w&&q==="h"&&$.type==="range")return!1;var Q=window.getSelection(),I=Q&&Q.anchorNode,se=I?I===$||I.contains($):!1;if(se)return!1;var fe=Jv(q,$);if(!fe)return!0;if(fe?Z=q:(Z=q==="v"?"h":"v",fe=Jv(q,$)),!fe)return!1;if(!s.current&&"changedTouches"in w&&(z||V)&&(s.current=Z),!Z)return!0;var oe=s.current||Z;return QN(oe,C,w,oe==="h"?z:V)},[]),v=g.useCallback(function(w){var C=w;if(!(!Kl.length||Kl[Kl.length-1]!==f)){var A="deltaY"in C?$v(C):qs(C),M=i.current.filter(function(Z){return Z.name===C.type&&(Z.target===C.target||C.target===Z.shadowParent)&&YN(Z.delta,A)})[0];if(M&&M.should){C.cancelable&&C.preventDefault();return}if(!M){var z=(d.current.shards||[]).map(Wv).filter(Boolean).filter(function(Z){return Z.contains(C.target)}),V=z.length>0?m(C,z[0]):!d.current.noIsolation;V&&C.cancelable&&C.preventDefault()}}},[]),y=g.useCallback(function(w,C,A,M){var z={name:w,delta:C,target:A,should:M,shadowParent:ZN(A)};i.current.push(z),setTimeout(function(){i.current=i.current.filter(function(V){return V!==z})},1)},[]),b=g.useCallback(function(w){r.current=qs(w),s.current=void 0},[]),x=g.useCallback(function(w){y(w.type,$v(w),w.target,m(w,n.lockRef.current))},[]),N=g.useCallback(function(w){y(w.type,qs(w),w.target,m(w,n.lockRef.current))},[]);g.useEffect(function(){return Kl.push(f),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:N}),document.addEventListener("wheel",v,Xl),document.addEventListener("touchmove",v,Xl),document.addEventListener("touchstart",b,Xl),function(){Kl=Kl.filter(function(w){return w!==f}),document.removeEventListener("wheel",v,Xl),document.removeEventListener("touchmove",v,Xl),document.removeEventListener("touchstart",b,Xl)}},[]);var E=n.removeScrollBar,j=n.inert;return g.createElement(g.Fragment,null,j?g.createElement(f,{styles:XN(u)}):null,E?g.createElement(UN,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ZN(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const FN=EN(Ug,PN);var Vg=g.forwardRef(function(n,i){return g.createElement(mo,gn({},n,{ref:i,sideCar:FN}))});Vg.classNames=mo.classNames;var JN=[" ","Enter","ArrowUp","ArrowDown"],$N=[" ","Enter"],tl="Select",[po,vo,WN]=uE(tl),[li]=kf(tl,[WN,wg]),yo=wg(),[IN,Ra]=li(tl),[eR,tR]=li(tl),Gg=n=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:u,onOpenChange:f,value:d,defaultValue:m,onValueChange:v,dir:y,name:b,autoComplete:x,disabled:N,required:E,form:j}=n,w=yo(i),[C,A]=g.useState(null),[M,z]=g.useState(null),[V,Z]=g.useState(!1),$=dE(y),[q,Q]=Pv({prop:s,defaultProp:u??!1,onChange:f,caller:tl}),[I,se]=Pv({prop:d,defaultProp:m,onChange:v,caller:tl}),fe=g.useRef(null),oe=C?j||!!C.closest("form"):!0,[me,de]=g.useState(new Set),ve=Array.from(me).map(D=>D.props.value).join(";");return h.jsx(IC,{...w,children:h.jsxs(IN,{required:E,scope:i,trigger:C,onTriggerChange:A,valueNode:M,onValueNodeChange:z,valueNodeHasChildren:V,onValueNodeHasChildrenChange:Z,contentId:qf(),value:I,onValueChange:se,open:q,onOpenChange:Q,dir:$,triggerPointerDownPosRef:fe,disabled:N,children:[h.jsx(po.Provider,{scope:i,children:h.jsx(eR,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{de(P=>new Set(P).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{de(P=>{const B=new Set(P);return B.delete(D),B})},[]),children:r})}),oe?h.jsxs(d0,{"aria-hidden":!0,required:E,tabIndex:-1,name:b,autoComplete:x,value:I,onChange:D=>se(D.target.value),disabled:N,form:j,children:[I===void 0?h.jsx("option",{value:""}):null,Array.from(me)]},ve):null]})})};Gg.displayName=tl;var Qg="SelectTrigger",Yg=g.forwardRef((n,i)=>{const{__scopeSelect:r,disabled:s=!1,...u}=n,f=yo(r),d=Ra(Qg,r),m=d.disabled||s,v=gt(i,d.onTriggerChange),y=vo(r),b=g.useRef("touch"),[x,N,E]=m0(w=>{const C=y().filter(z=>!z.disabled),A=C.find(z=>z.value===d.value),M=p0(C,w,A);M!==void 0&&d.onValueChange(M.value)}),j=w=>{m||(d.onOpenChange(!0),E()),w&&(d.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return h.jsx(eN,{asChild:!0,...f,children:h.jsx(Je.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":h0(d.value)?"":void 0,...u,ref:v,onClick:tt(u.onClick,w=>{w.currentTarget.focus(),b.current!=="mouse"&&j(w)}),onPointerDown:tt(u.onPointerDown,w=>{b.current=w.pointerType;const C=w.target;C.hasPointerCapture(w.pointerId)&&C.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(j(w),w.preventDefault())}),onKeyDown:tt(u.onKeyDown,w=>{const C=x.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&N(w.key),!(C&&w.key===" ")&&JN.includes(w.key)&&(j(),w.preventDefault())})})})});Yg.displayName=Qg;var Xg="SelectValue",Kg=g.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:u,children:f,placeholder:d="",...m}=n,v=Ra(Xg,r),{onValueNodeHasChildrenChange:y}=v,b=f!==void 0,x=gt(i,v.onValueNodeChange);return _t(()=>{y(b)},[y,b]),h.jsx(Je.span,{...m,ref:x,style:{pointerEvents:"none"},children:h0(v.value)?h.jsx(h.Fragment,{children:d}):f})});Kg.displayName=Xg;var nR="SelectIcon",Pg=g.forwardRef((n,i)=>{const{__scopeSelect:r,children:s,...u}=n;return h.jsx(Je.span,{"aria-hidden":!0,...u,ref:i,children:s||"▼"})});Pg.displayName=nR;var aR="SelectPortal",Zg=n=>h.jsx(Mg,{asChild:!0,...n});Zg.displayName=aR;var nl="SelectContent",Fg=g.forwardRef((n,i)=>{const r=Ra(nl,n.__scopeSelect),[s,u]=g.useState();if(_t(()=>{u(new DocumentFragment)},[]),!r.open){const f=s;return f?mr.createPortal(h.jsx(Jg,{scope:n.__scopeSelect,children:h.jsx(po.Slot,{scope:n.__scopeSelect,children:h.jsx("div",{children:n.children})})}),f):null}return h.jsx($g,{...n,ref:i})});Fg.displayName=nl;var cn=10,[Jg,ja]=li(nl),lR="SelectContentImpl",iR=$s("SelectContent.RemoveScroll"),$g=g.forwardRef((n,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:m,sideOffset:v,align:y,alignOffset:b,arrowPadding:x,collisionBoundary:N,collisionPadding:E,sticky:j,hideWhenDetached:w,avoidCollisions:C,...A}=n,M=Ra(nl,r),[z,V]=g.useState(null),[Z,$]=g.useState(null),q=gt(i,F=>V(F)),[Q,I]=g.useState(null),[se,fe]=g.useState(null),oe=vo(r),[me,de]=g.useState(!1),ve=g.useRef(!1);g.useEffect(()=>{if(z)return hN(z)},[z]),EE();const D=g.useCallback(F=>{const[be,...ye]=oe().map(ze=>ze.ref.current),[Ce]=ye.slice(-1),Te=document.activeElement;for(const ze of F)if(ze===Te||(ze?.scrollIntoView({block:"nearest"}),ze===be&&Z&&(Z.scrollTop=0),ze===Ce&&Z&&(Z.scrollTop=Z.scrollHeight),ze?.focus(),document.activeElement!==Te))return},[oe,Z]),P=g.useCallback(()=>D([Q,z]),[D,Q,z]);g.useEffect(()=>{me&&P()},[me,P]);const{onOpenChange:B,triggerPointerDownPosRef:le}=M;g.useEffect(()=>{if(z){let F={x:0,y:0};const be=Ce=>{F={x:Math.abs(Math.round(Ce.pageX)-(le.current?.x??0)),y:Math.abs(Math.round(Ce.pageY)-(le.current?.y??0))}},ye=Ce=>{F.x<=10&&F.y<=10?Ce.preventDefault():z.contains(Ce.target)||B(!1),document.removeEventListener("pointermove",be),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",ye,{capture:!0})}}},[z,B,le]),g.useEffect(()=>{const F=()=>B(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[B]);const[he,T]=m0(F=>{const be=oe().filter(Te=>!Te.disabled),ye=be.find(Te=>Te.ref.current===document.activeElement),Ce=p0(be,F,ye);Ce&&setTimeout(()=>Ce.ref.current.focus())}),Y=g.useCallback((F,be,ye)=>{const Ce=!ve.current&&!ye;(M.value!==void 0&&M.value===be||Ce)&&(I(F),Ce&&(ve.current=!0))},[M.value]),J=g.useCallback(()=>z?.focus(),[z]),W=g.useCallback((F,be,ye)=>{const Ce=!ve.current&&!ye;(M.value!==void 0&&M.value===be||Ce)&&fe(F)},[M.value]),re=s==="popper"?df:Wg,ue=re===df?{side:m,sideOffset:v,align:y,alignOffset:b,arrowPadding:x,collisionBoundary:N,collisionPadding:E,sticky:j,hideWhenDetached:w,avoidCollisions:C}:{};return h.jsx(Jg,{scope:r,content:z,viewport:Z,onViewportChange:$,itemRefCallback:Y,selectedItem:Q,onItemLeave:J,itemTextRefCallback:W,focusSelectedItem:P,selectedItemText:se,position:s,isPositioned:me,searchRef:he,children:h.jsx(Vg,{as:iR,allowPinchZoom:!0,children:h.jsx(sg,{asChild:!0,trapped:M.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:tt(u,F=>{M.trigger?.focus({preventScroll:!0}),F.preventDefault()}),children:h.jsx(ig,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:h.jsx(re,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:F=>F.preventDefault(),...A,...ue,onPlaced:()=>de(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:tt(A.onKeyDown,F=>{const be=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!be&&F.key.length===1&&T(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let Ce=oe().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(F.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const Te=F.target,ze=Ce.indexOf(Te);Ce=Ce.slice(ze+1)}setTimeout(()=>D(Ce)),F.preventDefault()}})})})})})})});$g.displayName=lR;var rR="SelectItemAlignedPosition",Wg=g.forwardRef((n,i)=>{const{__scopeSelect:r,onPlaced:s,...u}=n,f=Ra(nl,r),d=ja(nl,r),[m,v]=g.useState(null),[y,b]=g.useState(null),x=gt(i,q=>b(q)),N=vo(r),E=g.useRef(!1),j=g.useRef(!0),{viewport:w,selectedItem:C,selectedItemText:A,focusSelectedItem:M}=d,z=g.useCallback(()=>{if(f.trigger&&f.valueNode&&m&&y&&w&&C&&A){const q=f.trigger.getBoundingClientRect(),Q=y.getBoundingClientRect(),I=f.valueNode.getBoundingClientRect(),se=A.getBoundingClientRect();if(f.dir!=="rtl"){const Te=se.left-Q.left,ze=I.left-Te,xt=q.left-ze,St=q.width+xt,Ta=Math.max(St,Q.width),Aa=window.innerWidth-cn,si=Tv(ze,[cn,Math.max(cn,Aa-Ta)]);m.style.minWidth=St+"px",m.style.left=si+"px"}else{const Te=Q.right-se.right,ze=window.innerWidth-I.right-Te,xt=window.innerWidth-q.right-ze,St=q.width+xt,Ta=Math.max(St,Q.width),Aa=window.innerWidth-cn,si=Tv(ze,[cn,Math.max(cn,Aa-Ta)]);m.style.minWidth=St+"px",m.style.right=si+"px"}const fe=N(),oe=window.innerHeight-cn*2,me=w.scrollHeight,de=window.getComputedStyle(y),ve=parseInt(de.borderTopWidth,10),D=parseInt(de.paddingTop,10),P=parseInt(de.borderBottomWidth,10),B=parseInt(de.paddingBottom,10),le=ve+D+me+B+P,he=Math.min(C.offsetHeight*5,le),T=window.getComputedStyle(w),Y=parseInt(T.paddingTop,10),J=parseInt(T.paddingBottom,10),W=q.top+q.height/2-cn,re=oe-W,ue=C.offsetHeight/2,F=C.offsetTop+ue,be=ve+D+F,ye=le-be;if(be<=W){const Te=fe.length>0&&C===fe[fe.length-1].ref.current;m.style.bottom="0px";const ze=y.clientHeight-w.offsetTop-w.offsetHeight,xt=Math.max(re,ue+(Te?J:0)+ze+P),St=be+xt;m.style.height=St+"px"}else{const Te=fe.length>0&&C===fe[0].ref.current;m.style.top="0px";const xt=Math.max(W,ve+w.offsetTop+(Te?Y:0)+ue)+ye;m.style.height=xt+"px",w.scrollTop=be-W+w.offsetTop}m.style.margin=`${cn}px 0`,m.style.minHeight=he+"px",m.style.maxHeight=oe+"px",s?.(),requestAnimationFrame(()=>E.current=!0)}},[N,f.trigger,f.valueNode,m,y,w,C,A,f.dir,s]);_t(()=>z(),[z]);const[V,Z]=g.useState();_t(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]);const $=g.useCallback(q=>{q&&j.current===!0&&(z(),M?.(),j.current=!1)},[z,M]);return h.jsx(oR,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:$,children:h.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:h.jsx(Je.div,{...u,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Wg.displayName=rR;var sR="SelectPopperPosition",df=g.forwardRef((n,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:u=cn,...f}=n,d=yo(r);return h.jsx(tN,{...d,...f,ref:i,align:s,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});df.displayName=sR;var[oR,Ff]=li(nl,{}),hf="SelectViewport",Ig=g.forwardRef((n,i)=>{const{__scopeSelect:r,nonce:s,...u}=n,f=ja(hf,r),d=Ff(hf,r),m=gt(i,f.onViewportChange),v=g.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),h.jsx(po.Slot,{scope:r,children:h.jsx(Je.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:tt(u.onScroll,y=>{const b=y.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:N}=d;if(N?.current&&x){const E=Math.abs(v.current-b.scrollTop);if(E>0){const j=window.innerHeight-cn*2,w=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),A=Math.max(w,C);if(A<j){const M=A+E,z=Math.min(j,M),V=M-z;x.style.height=z+"px",x.style.bottom==="0px"&&(b.scrollTop=V>0?V:0,x.style.justifyContent="flex-end")}}}v.current=b.scrollTop})})})]})});Ig.displayName=hf;var e0="SelectGroup",[cR,uR]=li(e0),fR=g.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=qf();return h.jsx(cR,{scope:r,id:u,children:h.jsx(Je.div,{role:"group","aria-labelledby":u,...s,ref:i})})});fR.displayName=e0;var t0="SelectLabel",n0=g.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=uR(t0,r);return h.jsx(Je.div,{id:u.id,...s,ref:i})});n0.displayName=t0;var no="SelectItem",[dR,a0]=li(no),l0=g.forwardRef((n,i)=>{const{__scopeSelect:r,value:s,disabled:u=!1,textValue:f,...d}=n,m=Ra(no,r),v=ja(no,r),y=m.value===s,[b,x]=g.useState(f??""),[N,E]=g.useState(!1),j=gt(i,M=>v.itemRefCallback?.(M,s,u)),w=qf(),C=g.useRef("touch"),A=()=>{u||(m.onValueChange(s),m.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(dR,{scope:r,value:s,disabled:u,textId:w,isSelected:y,onItemTextChange:g.useCallback(M=>{x(z=>z||(M?.textContent??"").trim())},[]),children:h.jsx(po.ItemSlot,{scope:r,value:s,disabled:u,textValue:b,children:h.jsx(Je.div,{role:"option","aria-labelledby":w,"data-highlighted":N?"":void 0,"aria-selected":y&&N,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:j,onFocus:tt(d.onFocus,()=>E(!0)),onBlur:tt(d.onBlur,()=>E(!1)),onClick:tt(d.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:tt(d.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:tt(d.onPointerDown,M=>{C.current=M.pointerType}),onPointerMove:tt(d.onPointerMove,M=>{C.current=M.pointerType,u?v.onItemLeave?.():C.current==="mouse"&&M.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(d.onPointerLeave,M=>{M.currentTarget===document.activeElement&&v.onItemLeave?.()}),onKeyDown:tt(d.onKeyDown,M=>{v.searchRef?.current!==""&&M.key===" "||($N.includes(M.key)&&A(),M.key===" "&&M.preventDefault())})})})})});l0.displayName=no;var rr="SelectItemText",i0=g.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:u,...f}=n,d=Ra(rr,r),m=ja(rr,r),v=a0(rr,r),y=tR(rr,r),[b,x]=g.useState(null),N=gt(i,A=>x(A),v.onItemTextChange,A=>m.itemTextRefCallback?.(A,v.value,v.disabled)),E=b?.textContent,j=g.useMemo(()=>h.jsx("option",{value:v.value,disabled:v.disabled,children:E},v.value),[v.disabled,v.value,E]),{onNativeOptionAdd:w,onNativeOptionRemove:C}=y;return _t(()=>(w(j),()=>C(j)),[w,C,j]),h.jsxs(h.Fragment,{children:[h.jsx(Je.span,{id:v.textId,...f,ref:N}),v.isSelected&&d.valueNode&&!d.valueNodeHasChildren?mr.createPortal(f.children,d.valueNode):null]})});i0.displayName=rr;var r0="SelectItemIndicator",s0=g.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return a0(r0,r).isSelected?h.jsx(Je.span,{"aria-hidden":!0,...s,ref:i}):null});s0.displayName=r0;var mf="SelectScrollUpButton",o0=g.forwardRef((n,i)=>{const r=ja(mf,n.__scopeSelect),s=Ff(mf,n.__scopeSelect),[u,f]=g.useState(!1),d=gt(i,s.onScrollButtonChange);return _t(()=>{if(r.viewport&&r.isPositioned){let m=function(){const y=v.scrollTop>0;f(y)};const v=r.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?h.jsx(u0,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=r;m&&v&&(m.scrollTop=m.scrollTop-v.offsetHeight)}}):null});o0.displayName=mf;var pf="SelectScrollDownButton",c0=g.forwardRef((n,i)=>{const r=ja(pf,n.__scopeSelect),s=Ff(pf,n.__scopeSelect),[u,f]=g.useState(!1),d=gt(i,s.onScrollButtonChange);return _t(()=>{if(r.viewport&&r.isPositioned){let m=function(){const y=v.scrollHeight-v.clientHeight,b=Math.ceil(v.scrollTop)<y;f(b)};const v=r.viewport;return m(),v.addEventListener("scroll",m),()=>v.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),u?h.jsx(u0,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:v}=r;m&&v&&(m.scrollTop=m.scrollTop+v.offsetHeight)}}):null});c0.displayName=pf;var u0=g.forwardRef((n,i)=>{const{__scopeSelect:r,onAutoScroll:s,...u}=n,f=ja("SelectScrollButton",r),d=g.useRef(null),m=vo(r),v=g.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return g.useEffect(()=>()=>v(),[v]),_t(()=>{m().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),h.jsx(Je.div,{"aria-hidden":!0,...u,ref:i,style:{flexShrink:0,...u.style},onPointerDown:tt(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:tt(u.onPointerMove,()=>{f.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:tt(u.onPointerLeave,()=>{v()})})}),hR="SelectSeparator",f0=g.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return h.jsx(Je.div,{"aria-hidden":!0,...s,ref:i})});f0.displayName=hR;var vf="SelectArrow",mR=g.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,u=yo(r),f=Ra(vf,r),d=ja(vf,r);return f.open&&d.position==="popper"?h.jsx(nN,{...u,...s,ref:i}):null});mR.displayName=vf;var pR="SelectBubbleInput",d0=g.forwardRef(({__scopeSelect:n,value:i,...r},s)=>{const u=g.useRef(null),f=gt(s,u),d=sN(i);return g.useEffect(()=>{const m=u.current;if(!m)return;const v=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(v,"value").set;if(d!==i&&b){const x=new Event("change",{bubbles:!0});b.call(m,i),m.dispatchEvent(x)}},[d,i]),h.jsx(Je.select,{...r,style:{..._g,...r.style},ref:f,defaultValue:i})});d0.displayName=pR;function h0(n){return n===""||n===void 0}function m0(n){const i=Ia(n),r=g.useRef(""),s=g.useRef(0),u=g.useCallback(d=>{const m=r.current+d;i(m),(function v(y){r.current=y,window.clearTimeout(s.current),y!==""&&(s.current=window.setTimeout(()=>v(""),1e3))})(m)},[i]),f=g.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,u,f]}function p0(n,i,r){const u=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,f=r?n.indexOf(r):-1;let d=vR(n,Math.max(f,0));u.length===1&&(d=d.filter(y=>y!==r));const v=d.find(y=>y.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==r?v:void 0}function vR(n,i){return n.map((r,s)=>n[(i+s)%n.length])}var yR=Gg,v0=Yg,gR=Kg,bR=Pg,xR=Zg,y0=Fg,SR=Ig,g0=n0,b0=l0,wR=i0,ER=s0,x0=o0,S0=c0,w0=f0;const CR=yR,NR=gR,E0=g.forwardRef(({className:n,children:i,...r},s)=>h.jsxs(v0,{ref:s,className:Pe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...r,children:[i,h.jsx(bR,{asChild:!0,children:h.jsx(Uy,{className:"h-4 w-4 opacity-50"})})]}));E0.displayName=v0.displayName;const C0=g.forwardRef(({className:n,...i},r)=>h.jsx(x0,{ref:r,className:Pe("flex cursor-default items-center justify-center py-1",n),...i,children:h.jsx(m2,{className:"h-4 w-4"})}));C0.displayName=x0.displayName;const N0=g.forwardRef(({className:n,...i},r)=>h.jsx(S0,{ref:r,className:Pe("flex cursor-default items-center justify-center py-1",n),...i,children:h.jsx(Uy,{className:"h-4 w-4"})}));N0.displayName=S0.displayName;const R0=g.forwardRef(({className:n,children:i,position:r="popper",...s},u)=>h.jsx(xR,{children:h.jsxs(y0,{ref:u,className:Pe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:r,...s,children:[h.jsx(C0,{}),h.jsx(SR,{className:Pe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),h.jsx(N0,{})]})}));R0.displayName=y0.displayName;const RR=g.forwardRef(({className:n,...i},r)=>h.jsx(g0,{ref:r,className:Pe("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...i}));RR.displayName=g0.displayName;const yf=g.forwardRef(({className:n,children:i,...r},s)=>h.jsxs(b0,{ref:s,className:Pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(ER,{children:h.jsx(Ly,{className:"h-4 w-4"})})}),h.jsx(wR,{children:i})]}));yf.displayName=b0.displayName;const jR=g.forwardRef(({className:n,...i},r)=>h.jsx(w0,{ref:r,className:Pe("-mx-1 my-1 h-px bg-muted",n),...i}));jR.displayName=w0.displayName;const TR=oo("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),vt=g.forwardRef(({className:n,variant:i,...r},s)=>h.jsx("div",{ref:s,role:"alert",className:Pe(TR({variant:i}),n),...r}));vt.displayName="Alert";const AR=g.forwardRef(({className:n,...i},r)=>h.jsx("h5",{ref:r,className:Pe("mb-1 font-medium leading-none tracking-tight",n),...i}));AR.displayName="AlertTitle";const yt=g.forwardRef(({className:n,...i},r)=>h.jsx("div",{ref:r,className:Pe("text-sm [&_p]:leading-relaxed",n),...i}));yt.displayName="AlertDescription";const OR=oo("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),gf=g.forwardRef(({className:n,variant:i,size:r,asChild:s=!1,...u},f)=>{const d=s?Fw:"button";return h.jsx(d,{className:Pe(OR({variant:i,size:r,className:n})),ref:f,...u})});gf.displayName="Button";function MR({currentStep:n}){return h.jsx("div",{className:"w-full py-8",children:h.jsx("div",{className:"flex items-center justify-between max-w-4xl mx-auto",children:Ja.map((i,r)=>h.jsxs("div",{className:"flex items-center flex-1",children:[h.jsxs("div",{className:"flex flex-col items-center",children:[h.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-full border-2 font-semibold transition-colors ${r<n?"bg-primary border-primary text-primary-foreground":r===n?"border-primary bg-primary text-primary-foreground":"border-muted bg-background text-muted-foreground"}`,children:r<n?h.jsx(Ly,{className:"h-5 w-5"}):h.jsx("span",{children:r+1})}),h.jsx("span",{className:`mt-2 text-xs font-medium ${r<=n?"text-foreground":"text-muted-foreground"}`,children:i.name})]}),r<Ja.length-1&&h.jsx("div",{className:"flex-1 mx-2",children:h.jsx("div",{className:`h-0.5 transition-colors ${r<n?"bg-primary":"bg-muted"}`})})]},i.id))})})}function ii(){const n=g.useContext(_y);if(n===void 0)throw new Error("useWizard must be used within a WizardProvider");return n}function Wa({children:n,title:i,description:r,onNext:s,onPrev:u,hideNextButton:f=!1,hidePrevButton:d=!1,nextButtonText:m="下一步",nextButtonDisabled:v=!1}){const{currentStep:y,nextStep:b,prevStep:x,canGoNext:N,canGoPrev:E}=ii(),j=Mf(),w=async()=>{s&&await s(),y<Ja.length-1&&(b(),j(Ja[y+1].path))},C=async()=>{u&&await u(),y>0&&(x(),j(Ja[y-1].path))},A=y===Ja.length-1;return h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx("div",{className:"border-b bg-card",children:h.jsxs("div",{className:"container mx-auto px-4",children:[h.jsxs("div",{className:"py-6",children:[h.jsx("h1",{className:"text-2xl font-bold",children:"Lumen 配置向导"}),h.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"分布式推理系统配置工具"})]}),h.jsx(MR,{currentStep:y})]})}),h.jsx("div",{className:"container mx-auto px-4 py-8",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-3xl font-bold",children:i}),r&&h.jsx("p",{className:"text-muted-foreground mt-2",children:r})]}),h.jsx("div",{className:"mb-8",children:n}),h.jsxs("div",{className:"flex justify-between items-center pt-6 border-t",children:[h.jsx("div",{children:!d&&E()&&h.jsxs(gf,{variant:"outline",onClick:C,children:[h.jsx(u2,{className:"mr-2 h-4 w-4"}),"上一步"]})}),h.jsx("div",{children:!f&&h.jsxs(gf,{onClick:w,disabled:!N()||v,children:[A?"完成":m,!A&&h.jsx(d2,{className:"ml-2 h-4 w-4"})]})})]})]})})]})}function _R(n,i){const[r,s]=g.useState(n);return g.useEffect(()=>{const u=setTimeout(()=>{s(n)},i);return()=>{clearTimeout(u)}},[n,i]),r}var ri=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zR={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},DR=class{#e=zR;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},$a=new DR;function LR(n){setTimeout(n,0)}var al=typeof window>"u"||"Deno"in globalThis;function Et(){}function UR(n,i){return typeof n=="function"?n(i):n}function bf(n){return typeof n=="number"&&n>=0&&n!==1/0}function j0(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Ea(n,i){return typeof n=="function"?n(i):n}function nn(n,i){return typeof n=="function"?n(i):n}function Iv(n,i){const{type:r="all",exact:s,fetchStatus:u,predicate:f,queryKey:d,stale:m}=n;if(d){if(s){if(i.queryHash!==Jf(d,i.options))return!1}else if(!fr(i.queryKey,d))return!1}if(r!=="all"){const v=i.isActive();if(r==="active"&&!v||r==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||u&&u!==i.state.fetchStatus||f&&!f(i))}function ey(n,i){const{exact:r,status:s,predicate:u,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(r){if(ll(i.options.mutationKey)!==ll(f))return!1}else if(!fr(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||u&&!u(i))}function Jf(n,i){return(i?.queryKeyHashFn||ll)(n)}function ll(n){return JSON.stringify(n,(i,r)=>xf(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function fr(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>fr(n[r],i[r])):!1}var HR=Object.prototype.hasOwnProperty;function T0(n,i,r=0){if(n===i)return n;if(r>500)return i;const s=ty(n)&&ty(i);if(!s&&!(xf(n)&&xf(i)))return i;const f=(s?n:Object.keys(n)).length,d=s?i:Object.keys(i),m=d.length,v=s?new Array(m):{};let y=0;for(let b=0;b<m;b++){const x=s?b:d[b],N=n[x],E=i[x];if(N===E){v[x]=N,(s?b<f:HR.call(n,x))&&y++;continue}if(N===null||E===null||typeof N!="object"||typeof E!="object"){v[x]=E;continue}const j=T0(N,E,r+1);v[x]=j,j===N&&y++}return f===m&&y===f?n:v}function ao(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function ty(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function xf(n){if(!ny(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!ny(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function ny(n){return Object.prototype.toString.call(n)==="[object Object]"}function BR(n){return new Promise(i=>{$a.setTimeout(i,n)})}function Sf(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?T0(n,i):i}function kR(n,i,r=0){const s=[...n,i];return r&&s.length>r?s.slice(1):s}function qR(n,i,r=0){const s=[i,...n];return r&&s.length>r?s.slice(0,-1):s}var $f=Symbol();function A0(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===$f?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Wf(n,i){return typeof n=="function"?n(...i):!!n}function VR(n,i,r){let s=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=i(),s||(s=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),n}var GR=class extends ri{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!al&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},If=new GR;function wf(){let n,i;const r=new Promise((u,f)=>{n=u,i=f});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),n(u)},r.reject=u=>{s({status:"rejected",reason:u}),i(u)},r}var QR=LR;function YR(){let n=[],i=0,r=m=>{m()},s=m=>{m()},u=QR;const f=m=>{i?n.push(m):u(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&u(()=>{s(()=>{m.forEach(v=>{r(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||d()}return v},batchCalls:m=>(...v)=>{f(()=>{m(...v)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{u=m}}}var lt=YR(),XR=class extends ri{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!al&&window.addEventListener){const i=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#e}},lo=new XR;function KR(n){return Math.min(1e3*2**n,3e4)}function O0(n){return(n??"online")==="online"?lo.isOnline():!0}var Ef=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function M0(n){let i=!1,r=0,s;const u=wf(),f=()=>u.status!=="pending",d=w=>{if(!f()){const C=new Ef(w);N(C),n.onCancel?.(C)}},m=()=>{i=!0},v=()=>{i=!1},y=()=>If.isFocused()&&(n.networkMode==="always"||lo.isOnline())&&n.canRun(),b=()=>O0(n.networkMode)&&n.canRun(),x=w=>{f()||(s?.(),u.resolve(w))},N=w=>{f()||(s?.(),u.reject(w))},E=()=>new Promise(w=>{s=C=>{(f()||y())&&w(C)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),j=()=>{if(f())return;let w;const C=r===0?n.initialPromise:void 0;try{w=C??n.fn()}catch(A){w=Promise.reject(A)}Promise.resolve(w).then(x).catch(A=>{if(f())return;const M=n.retry??(al?0:3),z=n.retryDelay??KR,V=typeof z=="function"?z(r,A):z,Z=M===!0||typeof M=="number"&&r<M||typeof M=="function"&&M(r,A);if(i||!Z){N(A);return}r++,n.onFail?.(r,A),BR(V).then(()=>y()?void 0:E()).then(()=>{i?N(A):j()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(s?.(),u),cancelRetry:m,continueRetry:v,canStart:b,start:()=>(b()?j():E().then(j),u)}}var _0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bf(this.gcTime)&&(this.#e=$a.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(al?1/0:300*1e3))}clearGcTimeout(){this.#e&&($a.clearTimeout(this.#e),this.#e=void 0)}},PR=class extends _0{#e;#t;#n;#l;#a;#r;#s;constructor(n){super(),this.#s=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#n=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ly(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ly(this.options);i.data!==void 0&&(this.setState(ay(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const r=Sf(this.state.data,n,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(Et).catch(Et):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>nn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$f||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Ea(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!j0(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},u=()=>{const m=A0(this.options,i),y=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(m,y,this):m(y)},d=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:u};return s(m),m})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=M0({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:m=>{m instanceof Ef&&m.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(m,v)=>{this.#i({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof Ef){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(n){const i=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...z0(r.data,this.options),fetchMeta:n.meta??null};case"success":const s={...r,...ay(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const u=n.error;return{...r,error:u,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=i(this.state),lt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function z0(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O0(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ay(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ly(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,s=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ZR=class extends ri{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#s=wf(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#l=void 0;#a;#r;#s;#i;#p;#d;#h;#c;#u;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),iy(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Cf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Cf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),i._defaulted&&!ao(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&ry(this.#t,r,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(i.enabled,this.#t)||Ea(this.options.staleTime,this.#t)!==Ea(i.staleTime,this.#t))&&this.#v();const u=this.#y();s&&(this.#t!==r||nn(this.options.enabled,this.#t)!==nn(i.enabled,this.#t)||u!==this.#o)&&this.#g(u)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),r=this.createResult(i,n);return JR(this,r)&&(this.#l=r,this.#r=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(r,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),r=this.#e.getQueryCache().build(this.#e,i);return r.fetch().then(()=>this.createResult(r,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(n){this.#w();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(Et)),i}#v(){this.#x();const n=Ea(this.options.staleTime,this.#t);if(al||this.#l.isStale||!bf(n))return;const r=j0(this.#l.dataUpdatedAt,n)+1;this.#c=$a.setTimeout(()=>{this.#l.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#o=n,!(al||nn(this.options.enabled,this.#t)===!1||!bf(this.#o)||this.#o===0)&&(this.#u=$a.setInterval(()=>{(this.options.refetchIntervalInBackground||If.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#g(this.#y())}#x(){this.#c&&($a.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&($a.clearInterval(this.#u),this.#u=void 0)}createResult(n,i){const r=this.#t,s=this.options,u=this.#l,f=this.#a,d=this.#r,v=n!==r?n.state:this.#n,{state:y}=n;let b={...y},x=!1,N;if(i._optimisticResults){const Q=this.hasListeners(),I=!Q&&iy(n,i),se=Q&&ry(n,r,i,s);(I||se)&&(b={...b,...z0(y.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:w}=b;N=b.data;let C=!1;if(i.placeholderData!==void 0&&N===void 0&&w==="pending"){let Q;u?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Q=u.data,C=!0):Q=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,Q!==void 0&&(w="success",N=Sf(u?.data,Q,i),x=!0)}if(i.select&&N!==void 0&&!C)if(u&&N===f?.data&&i.select===this.#p)N=this.#d;else try{this.#p=i.select,N=i.select(N),N=Sf(u?.data,N,i),this.#d=N,this.#i=null}catch(Q){this.#i=Q}this.#i&&(E=this.#i,N=this.#d,j=Date.now(),w="error");const A=b.fetchStatus==="fetching",M=w==="pending",z=w==="error",V=M&&A,Z=N!==void 0,q={status:w,fetchStatus:b.fetchStatus,isPending:M,isSuccess:w==="success",isError:z,isInitialLoading:V,isLoading:V,data:N,dataUpdatedAt:b.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:A,isRefetching:A&&!M,isLoadingError:z&&!Z,isPaused:b.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:z&&Z,isStale:ed(n,i),refetch:this.refetch,promise:this.#s,isEnabled:nn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Q=q.data!==void 0,I=q.status==="error"&&!Q,se=me=>{I?me.reject(q.error):Q&&me.resolve(q.data)},fe=()=>{const me=this.#s=q.promise=wf();se(me)},oe=this.#s;switch(oe.status){case"pending":n.queryHash===r.queryHash&&se(oe);break;case"fulfilled":(I||q.data!==oe.value)&&fe();break;case"rejected":(!I||q.error!==oe.reason)&&fe();break}}return q}updateResult(){const n=this.#l,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ao(i,n))return;this.#l=i;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#m.size)return!0;const f=new Set(u??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#l).some(d=>{const m=d;return this.#l[m]!==n[m]&&f.has(m)})};this.#E({listeners:r()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(n){lt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function FR(n,i){return nn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function iy(n,i){return FR(n,i)||n.state.data!==void 0&&Cf(n,i,i.refetchOnMount)}function Cf(n,i,r){if(nn(i.enabled,n)!==!1&&Ea(i.staleTime,n)!=="static"){const s=typeof r=="function"?r(n):r;return s==="always"||s!==!1&&ed(n,i)}return!1}function ry(n,i,r,s){return(n!==i||nn(s.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&ed(n,r)}function ed(n,i){return nn(i.enabled,n)!==!1&&n.isStaleByTime(Ea(i.staleTime,n))}function JR(n,i){return!ao(n.getCurrentResult(),i)}function sy(n){return{onFetch:(i,r)=>{const s=i.options,u=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const y=async()=>{let b=!1;const x=j=>{VR(j,()=>i.signal,()=>b=!0)},N=A0(i.options,i.fetchOptions),E=async(j,w,C)=>{if(b)return Promise.reject();if(w==null&&j.pages.length)return Promise.resolve(j);const M=(()=>{const $={client:i.client,queryKey:i.queryKey,pageParam:w,direction:C?"backward":"forward",meta:i.options.meta};return x($),$})(),z=await N(M),{maxPages:V}=i.options,Z=C?qR:kR;return{pages:Z(j.pages,z,V),pageParams:Z(j.pageParams,w,V)}};if(u&&f.length){const j=u==="backward",w=j?$R:oy,C={pages:f,pageParams:d},A=w(s,C);m=await E(C,A,j)}else{const j=n??f.length;do{const w=v===0?d[0]??s.initialPageParam:oy(s,m);if(v>0&&w==null)break;m=await E(m,w),v++}while(v<j)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=y}}}function oy(n,{pages:i,pageParams:r}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,r[s],r):void 0}function $R(n,{pages:i,pageParams:r}){return i.length>0?n.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var WR=class extends _0{#e;#t;#n;#l;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||D0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=M0({fn:()=>this.options.mutationFn?this.options.mutationFn(n,r):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",u=!this.#l.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,r);const d=await this.options.onMutate?.(n,r);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:u})}const f=await this.#l.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,r),await this.options.onSuccess?.(f,n,this.state.context,r),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(f,null,n,this.state.context,r),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),lt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function D0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var IR=class extends ri{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,r){const s=new WR({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:r});return this.add(s),s}add(n){this.#e.add(n);const i=Vs(n);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Vs(n);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const s=r.indexOf(n);s!==-1&&r.splice(s,1)}else r[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Vs(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(u=>u.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=Vs(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){lt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(r=>ey(i,r))}findAll(n={}){return this.getAll().filter(i=>ey(n,i))}notify(n){lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return lt.batch(()=>Promise.all(n.map(i=>i.continue().catch(Et))))}};function Vs(n){return n.options.scope?.id}var ej=class extends ri{#e;#t=void 0;#n;#l;constructor(i,r){super(),this.#e=i,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const r=this.options;this.options=this.#e.defaultMutationOptions(i),ao(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&ll(r.mutationKey)!==ll(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#r(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#r()}mutate(i,r){return this.#l=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??D0();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#r(i){lt.batch(()=>{if(this.#l&&this.hasListeners()){const r=this.#t.variables,s=this.#t.context,u={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#l.onSuccess?.(i.data,r,s,u)}catch(f){Promise.reject(f)}try{this.#l.onSettled?.(i.data,null,r,s,u)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#l.onError?.(i.error,r,s,u)}catch(f){Promise.reject(f)}try{this.#l.onSettled?.(void 0,i.error,r,s,u)}catch(f){Promise.reject(f)}}}this.listeners.forEach(r=>{r(this.#t)})})}},tj=class extends ri{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,r){const s=i.queryKey,u=i.queryHash??Jf(s,i);let f=this.get(u);return f||(f=new PR({client:n,queryKey:s,queryHash:u,options:n.defaultQueryOptions(i),state:r,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){lt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(r=>Iv(i,r))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(r=>Iv(n,r)):i}notify(n){lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},nj=class{#e;#t;#n;#l;#a;#r;#s;#i;constructor(n={}){this.#e=n.queryCache||new tj,this.#t=n.mutationCache||new IR,this.#n=n.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#s=If.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=lo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=this.#e.build(this,i),s=r.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Ea(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:r})=>{const s=r.data;return[i,s]})}setQueryData(n,i,r){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=UR(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...r,manual:!0})}setQueriesData(n,i,r){return lt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,r)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;lt.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=this.#e;return lt.batch(()=>(r.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},s=lt.batch(()=>this.#e.findAll(n).map(u=>u.cancel(r)));return Promise.all(s).then(Et).catch(Et)}invalidateQueries(n,i={}){return lt.batch(()=>(this.#e.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},s=lt.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,r);return r.throwOnError||(f=f.catch(Et)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(Et)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(Ea(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Et).catch(Et)}fetchInfiniteQuery(n){return n.behavior=sy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Et).catch(Et)}ensureInfiniteQueryData(n){return n.behavior=sy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return lo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#l.set(ll(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#l.values()],r={};return i.forEach(s=>{fr(n,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(n,i){this.#a.set(ll(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],r={};return i.forEach(s=>{fr(n,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Jf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===$f&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},L0=g.createContext(void 0),U0=n=>{const i=g.useContext(L0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},aj=({client:n,children:i})=>(g.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(L0.Provider,{value:n,children:i})),H0=g.createContext(!1),lj=()=>g.useContext(H0);H0.Provider;function ij(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var rj=g.createContext(ij()),sj=()=>g.useContext(rj),oj=(n,i,r)=>{const s=r?.state.error&&typeof n.throwOnError=="function"?Wf(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},cj=n=>{g.useEffect(()=>{n.clearReset()},[n])},uj=({result:n,errorResetBoundary:i,throwOnError:r,query:s,suspense:u})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(u&&n.data===void 0||Wf(r,[n.error,s])),fj=n=>{if(n.suspense){const r=u=>u==="static"?u:Math.max(u??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...u)=>r(s(...u)):r(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},dj=(n,i)=>n.isLoading&&n.isFetching&&!i,hj=(n,i)=>n?.suspense&&i.isPending,cy=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function mj(n,i,r){const s=lj(),u=sj(),f=U0(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const m=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",fj(d),oj(d,u,m),cj(u);const v=!f.getQueryCache().get(d.queryHash),[y]=g.useState(()=>new i(f,d)),b=y.getOptimisticResult(d),x=!s&&n.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(N=>{const E=x?y.subscribe(lt.batchCalls(N)):Et;return y.updateResult(),E},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),g.useEffect(()=>{y.setOptions(d)},[d,y]),hj(d,b))throw cy(d,y,u);if(uj({result:b,errorResetBoundary:u,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,b),d.experimental_prefetchInRender&&!al&&dj(b,s)&&(v?cy(d,y,u):m?.promise)?.catch(Et).finally(()=>{y.updateResult()}),d.notifyOnChangeProps?b:y.trackResult(b)}function sr(n,i){return mj(n,ZR)}function Fl(n,i){const r=U0(),[s]=g.useState(()=>new ej(r,n));g.useEffect(()=>{s.setOptions(n)},[s,n]);const u=g.useSyncExternalStore(g.useCallback(d=>s.subscribe(lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=g.useCallback((d,m)=>{s.mutate(d,m).catch(Et)},[s]);if(u.error&&Wf(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}const pj="http://localhost:8000";function an(n,i){const r=new URL(n,pj);return i&&Object.entries(i).forEach(([s,u])=>{u!=null&&r.searchParams.set(s,String(u))}),r.toString()}async function ln(n,i){const r=await fetch(n,{headers:{"Content-Type":"application/json",...i?.headers},...i});if(!r.ok){const s=await r.json().catch(()=>({message:`HTTP ${r.status}: ${r.statusText}`}));throw new Error(s.message||`HTTP ${r.status}`)}if(r.status!==204)return r.json()}async function vj(n){return ln(an("/api/v1/config/generate"),{method:"POST",body:JSON.stringify(n)})}async function yj(n){return ln(an("/api/v1/config/validate-path"),{method:"POST",body:JSON.stringify(n)})}async function gj(){return ln(an("/api/v1/hardware/info"),{method:"GET"})}async function bj(){return ln(an("/api/v1/install/status"),{method:"GET"})}async function xj(n){return ln(an("/api/v1/install/setup"),{method:"POST",body:JSON.stringify(n)})}async function Sj(n){return ln(an(`/api/v1/install/tasks/${encodeURIComponent(n)}`),{method:"GET"})}async function wj(n,i){return ln(an(`/api/v1/install/tasks/${encodeURIComponent(n)}/logs`,i),{method:"GET"})}async function Ej(){return ln(an("/api/v1/server/status"),{method:"GET"})}async function Cj(n){return ln(an("/api/v1/server/start"),{method:"POST",body:JSON.stringify(n)})}async function Nj(n){return ln(an("/api/v1/server/stop"),{method:"POST",body:JSON.stringify(n)})}async function Rj(n){return ln(an("/api/v1/server/restart"),{method:"POST",body:JSON.stringify(n)})}async function jj(n){return ln(an("/api/v1/server/logs",n),{method:"GET"})}function Tj(){const{wizardData:n,updateWizardData:i}=ii(),[r,s]=g.useState(n.installPath),[u,f]=g.useState(n.region),[d,m]=g.useState(n.serviceName),[v,y]=g.useState(n.port.toString()),{mutate:b,data:x,isPending:N}=Fl({mutationFn:yj}),E=_R(r,500);return g.useEffect(()=>{!E||E.trim()===""||b({path:E})},[E,b]),g.useEffect(()=>{i({installPath:r,region:u,serviceName:d,port:parseInt(v)||50051})},[r,u,d,v,i]),h.jsx(Wa,{title:"欢迎使用 Lumen",description:"让我们开始配置您的分布式推理系统",hidePrevButton:!0,children:h.jsxs("div",{className:"space-y-6",children:[h.jsxs(vt,{children:[h.jsx(cr,{className:"h-4 w-4"}),h.jsx(yt,{children:"请填写服务器上的安装路径。Lumen 将在此目录下创建环境并下载模型文件。"})]}),h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsxs(st,{className:"flex items-center gap-2",children:[h.jsx(R2,{className:"h-5 w-5"}),"安装路径"]}),h.jsx(Mt,{children:"指定 Lumen 的工作目录,用于存储模型、缓存和配置文件"})]}),h.jsx(ot,{className:"space-y-4",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(ir,{htmlFor:"installPath",children:"安装路径 *"}),h.jsxs("div",{className:"relative",children:[h.jsx(Ys,{id:"installPath",placeholder:"~/.lumen 或 /opt/lumen",value:r,onChange:j=>s(j.target.value),className:`font-mono ${x?.valid?"border-green-500":x?.error?"border-red-500":""}`}),N&&h.jsx(wa,{className:"absolute right-3 top-3 h-4 w-4 animate-spin text-muted-foreground"}),!N&&x?.valid&&h.jsx(af,{className:"absolute right-3 top-3 h-4 w-4 text-green-500"}),!N&&x?.error&&h.jsx(un,{className:"absolute right-3 top-3 h-4 w-4 text-red-500"})]}),x?.error&&h.jsxs(vt,{variant:"destructive",className:"mt-2",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:x.error})]}),x?.warning&&h.jsxs(vt,{className:"mt-2 border-yellow-500 bg-yellow-50",children:[h.jsx(cr,{className:"h-4 w-4 text-yellow-600"}),h.jsx(yt,{className:"text-yellow-800",children:x.warning})]}),x?.valid&&h.jsxs(vt,{className:"mt-2 border-green-500 bg-green-50",children:[h.jsx(af,{className:"h-4 w-4 text-green-600"}),h.jsxs(yt,{className:"text-green-800",children:["路径有效 • 可用空间:"," ",x.free_space_gb?.toFixed(1)," GB",x.exists?" • 目录已存在":" • 将创建新目录"]})]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"建议使用绝对路径,确保有足够的磁盘空间(至少 10GB)"})]})})]}),h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"服务器配置"}),h.jsx(Mt,{children:"配置 gRPC 服务器的基本参数"})]}),h.jsxs(ot,{className:"space-y-4",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(ir,{htmlFor:"region",children:"区域 *"}),h.jsxs(CR,{value:u,onValueChange:j=>f(j),children:[h.jsx(E0,{id:"region",children:h.jsx(NR,{})}),h.jsxs(R0,{children:[h.jsx(yf,{value:"cn",children:"中国 (CN)"}),h.jsx(yf,{value:"other",children:"国际 (International)"})]})]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"影响模型下载源和优化策略"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(ir,{htmlFor:"port",children:"端口号 *"}),h.jsx(Ys,{id:"port",type:"number",min:"1024",max:"65535",value:v,onChange:j=>y(j.target.value)}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"gRPC 服务监听端口(默认 50051)"})]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(ir,{htmlFor:"serviceName",children:"服务名称 *"}),h.jsx(Ys,{id:"serviceName",placeholder:"lumen-server",value:d,onChange:j=>m(j.target.value)}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"用于 mDNS 服务发现的名称"})]})]})]}),h.jsxs(it,{className:"bg-muted/50",children:[h.jsx(rt,{children:h.jsx(st,{className:"text-base",children:"配置摘要"})}),h.jsx(ot,{children:h.jsxs("dl",{className:"space-y-2 text-sm",children:[h.jsxs("div",{className:"flex justify-between",children:[h.jsx("dt",{className:"text-muted-foreground",children:"安装路径:"}),h.jsx("dd",{className:"font-mono font-medium",children:r||"未设置"})]}),h.jsxs("div",{className:"flex justify-between",children:[h.jsx("dt",{className:"text-muted-foreground",children:"区域:"}),h.jsx("dd",{className:"font-medium",children:u==="cn"?"中国 (CN)":"国际 (International)"})]}),h.jsxs("div",{className:"flex justify-between",children:[h.jsx("dt",{className:"text-muted-foreground",children:"服务地址:"}),h.jsxs("dd",{className:"font-mono font-medium",children:["0.0.0.0:",v]})]}),h.jsxs("div",{className:"flex justify-between",children:[h.jsx("dt",{className:"text-muted-foreground",children:"服务名称:"}),h.jsx("dd",{className:"font-medium",children:d})]})]})})]})]})})}const Aj=oo("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ye({className:n,variant:i,...r}){return h.jsx("div",{className:Pe(Aj({variant:i}),n),...r})}const Oj={cpu:h.jsx(lf,{}),apple_silicon:h.jsx(L2,{}),nvidia_gpu:h.jsx(T2,{}),nvidia_gpu_high:h.jsx(ky,{}),nvidia_jetson:h.jsx(Dy,{}),nvidia_jetson_high:h.jsx($2,{}),intel_gpu:h.jsx(O2,{}),amd_gpu_win:h.jsx(b2,{}),amd_npu:h.jsx(aw,{}),rockchip_rk3588:h.jsx(B2,{})};function Mj(){const{wizardData:n,updateWizardData:i}=ii(),[r,s]=g.useState(n.hardwarePreset),[u,f]=g.useState(null),[d,m]=g.useState([]),[v,y]=g.useState(!0),[b,x]=g.useState(null);g.useEffect(()=>{(async()=>{try{y(!0),x(null);const C=await gj();f(C);const A=(C.presets||[]).map(M=>({...M,icon:Oj[M.name]||h.jsx(lf,{}),recommended:M.name===C.recommended_preset}));m(A),!r&&C.recommended_preset&&s(C.recommended_preset)}catch(C){console.error("Failed to fetch hardware info:",C),x(C instanceof Error?C.message:"Failed to load hardware information")}finally{y(!1)}})()},[]),g.useEffect(()=>{if(r){const w=d.find(C=>C.name===r);w&&i({hardwarePreset:w.name,runtime:w.runtime,onnxProviders:w.providers&&w.providers.length>0?w.providers:null,rknnDevice:w.runtime==="rknn"?"rk3588":null})}},[r,d]);const N=w=>{s(w)},E=d.filter(w=>w.recommended),j=d.filter(w=>!w.recommended);return v?h.jsx(Wa,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:h.jsx("div",{className:"flex items-center justify-center py-12",children:h.jsxs("div",{className:"text-center space-y-4",children:[h.jsx(wa,{className:"h-8 w-8 animate-spin mx-auto text-primary"}),h.jsx("p",{className:"text-muted-foreground",children:"正在检测硬件配置..."})]})})}):b?h.jsx(Wa,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:h.jsxs(vt,{variant:"destructive",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:b})]})}):h.jsx(Wa,{title:"选择硬件配置",description:"根据您的硬件选择最适合的推理加速方案",children:h.jsxs("div",{className:"space-y-6",children:[u&&h.jsxs(it,{children:[h.jsx(rt,{children:h.jsxs(st,{className:"text-base flex items-center gap-2",children:[h.jsx(cr,{className:"h-4 w-4"}),"系统信息"]})}),h.jsxs(ot,{children:[h.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"平台"}),h.jsx("p",{className:"font-medium",children:u.platform})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"架构"}),h.jsx("p",{className:"font-medium",children:u.machine})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"处理器"}),h.jsx("p",{className:"font-medium",children:u.processor||"N/A"})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"Python版本"}),h.jsx("p",{className:"font-medium",children:u.python_version})]})]}),u.recommended_preset&&h.jsx("div",{className:"mt-4 pt-4 border-t",children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ye,{variant:"default",className:"bg-green-500",children:"推荐配置"}),h.jsx("span",{className:"text-sm font-medium",children:d.find(w=>w.name===u.recommended_preset)?.name||u.recommended_preset}),u.all_drivers_available&&h.jsx(Ye,{variant:"outline",className:"text-xs text-green-600 border-green-600",children:"✓ 驱动就绪"})]})})]})]}),h.jsxs(vt,{children:[h.jsx(cr,{className:"h-4 w-4"}),h.jsx(yt,{children:"选择与您的硬件匹配的配置预设。推荐配置已针对性能和兼容性进行优化。"})]}),E.length>0&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"推荐配置"}),h.jsx(Ye,{variant:"default",children:"优化推荐"})]}),h.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:E.map(w=>h.jsxs(it,{className:`cursor-pointer transition-all hover:shadow-md ${r===w.name?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>N(w.name),children:[h.jsxs(rt,{children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsx("div",{className:"text-4xl mb-2",children:w.icon}),r===w.name&&h.jsx(Ye,{variant:"default",className:"bg-primary",children:"已选择"})]}),h.jsx(st,{className:"text-lg",children:w.name}),h.jsx(Mt,{className:"text-sm",children:w.description})]}),h.jsx(ot,{children:h.jsxs("div",{className:"space-y-2 text-xs",children:[h.jsx("div",{className:"flex items-center gap-2",children:h.jsx(Ye,{variant:"outline",className:"text-xs",children:w.runtime.toUpperCase()})}),h.jsxs("div",{className:"text-muted-foreground",children:[h.jsx("p",{className:"font-medium mb-1",children:"提供商:"}),h.jsx("ul",{className:"space-y-0.5",children:w.providers&&w.providers.length>0?w.providers.map((C,A)=>h.jsxs("li",{children:["• ",C]},A)):h.jsx("li",{children:"• 默认配置"})})]})]})})]},w.name))})]}),j.length>0&&h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"其他配置"}),h.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:j.map(w=>h.jsxs(it,{className:`cursor-pointer transition-all hover:shadow-md ${r===w.name?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>N(w.name),children:[h.jsxs(rt,{children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsx("div",{className:"text-4xl mb-2",children:w.icon}),r===w.name&&h.jsx(Ye,{variant:"default",className:"bg-primary",children:"已选择"})]}),h.jsx(st,{className:"text-lg",children:w.name}),h.jsx(Mt,{className:"text-sm",children:w.description})]}),h.jsx(ot,{children:h.jsxs("div",{className:"space-y-2 text-xs",children:[h.jsx("div",{className:"flex items-center gap-2",children:h.jsx(Ye,{variant:"outline",className:"text-xs",children:w.runtime.toUpperCase()})}),h.jsxs("div",{className:"text-muted-foreground",children:[h.jsx("p",{className:"font-medium mb-1",children:"提供商:"}),h.jsx("ul",{className:"space-y-0.5",children:w.providers&&w.providers.length>0?w.providers.map((C,A)=>h.jsxs("li",{children:["• ",C]},A)):h.jsx("li",{children:"• 默认配置"})})]})]})})]},w.name))})]}),r&&h.jsxs(it,{className:"bg-muted/50",children:[h.jsx(rt,{children:h.jsxs(st,{className:"text-base flex items-center gap-2",children:[h.jsx(lf,{className:"h-4 w-4"}),"当前选择"]})}),h.jsx(ot,{children:h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("div",{className:"text-3xl",children:d.find(w=>w.name===r)?.icon}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"font-semibold",children:d.find(w=>w.name===r)?.name}),h.jsx("p",{className:"text-sm text-muted-foreground",children:d.find(w=>w.name===r)?.description})]})]})})]})]})})}const Iu=[{id:"minimal",name:"最小化",description:"仅包含 OCR 服务",icon:h.jsx(tw,{}),services:["ocr"],recommended:!1,requirements:"最小资源占用,适合轻量级部署"},{id:"light_weight",name:"轻量级",description:"OCR + CLIP + Face",icon:h.jsx(C2,{}),services:["ocr","clip","face"],recommended:!0,requirements:"平衡性能和资源,适合大多数场景"},{id:"basic",name:"基础版",description:"OCR + CLIP + Face + VLM",icon:h.jsx(Hy,{}),services:["ocr","clip","face","vlm"],recommended:!0,requirements:"完整功能,推荐用于生产环境"},{id:"brave",name:"完整版",description:"所有服务 + 高性能模型",icon:h.jsx(ky,{}),services:["ocr","clip","face","vlm"],recommended:!1,requirements:"高性能配置,需要强大硬件支持"}],ef=[{id:"ocr",name:"OCR",description:"文字识别服务 (PP-OCRv5)",package:"lumen-ocr",icon:h.jsx(P2,{}),required:!0},{id:"clip",name:"CLIP",description:"视觉-语言理解 (MobileCLIP/CN-CLIP)",package:"lumen-clip",icon:h.jsx(_2,{}),required:!1},{id:"face",name:"Face",description:"人脸检测与识别 (Buffalo/Antelope)",package:"lumen-face",icon:h.jsx(X2,{}),required:!1},{id:"vlm",name:"VLM",description:"视觉语言模型 (FastVLM-0.5B)",package:"lumen-vlm",icon:h.jsx(Dy,{}),required:!1}];function _j(){const{wizardData:n,updateWizardData:i}=ii(),[r,s]=g.useState(n.servicePreset),u=g.useRef(null),{mutate:f,data:d,isPending:m,error:v}=Fl({mutationFn:vj,onSuccess:E=>{i({configGenerated:!0,configPath:E.config_path||void 0})},onError:()=>{i({configGenerated:!1})}}),y=v?.message||(d&&!d.success?d.message:null);g.useEffect(()=>{if(!r)return;const E=Iu.find(w=>w.id===r);if(!E||!n.hardwarePreset)return;const j=[r,n.hardwarePreset,n.installPath||"~/.lumen",n.region,String(n.port),n.serviceName].join("|");j===u.current||m||(u.current=j,i({servicePreset:E.id,selectedServices:E.services,configGenerated:!1}),f({preset:n.hardwarePreset,region:n.region,cache_dir:n.installPath||"~/.lumen",port:n.port,service_name:n.serviceName,config_type:E.id,clip_model:null}))},[r,n.hardwarePreset,n.installPath,n.region,n.port,n.serviceName,f,i,m]);const b=E=>{s(E)},x=Iu.filter(E=>E.recommended),N=Iu.filter(E=>!E.recommended);return h.jsx(Wa,{title:"配置服务",description:"选择您需要启用的 AI 服务",children:h.jsxs("div",{className:"space-y-6",children:[h.jsxs(vt,{children:[h.jsx(cr,{className:"h-4 w-4"}),h.jsxs(yt,{children:["选择适合您需求的服务预设配置。配置将基于您选择的硬件预设(",n.hardwarePreset||"未选择",")自动生成。"]})]}),m&&h.jsxs(vt,{children:[h.jsx(wa,{className:"h-4 w-4 animate-spin"}),h.jsx(yt,{children:"正在生成配置文件..."})]}),d&&d.success&&h.jsxs(vt,{className:"border-green-500 bg-green-50",children:[h.jsx(af,{className:"h-4 w-4 text-green-600"}),h.jsxs(yt,{className:"text-green-800",children:["配置生成成功!路径: ",d.config_path]})]}),y&&h.jsxs(vt,{variant:"destructive",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:y})]}),h.jsxs("div",{className:"space-y-6",children:[x.length>0&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"推荐配置"}),h.jsx(Ye,{variant:"default",children:"优化推荐"})]}),h.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:x.map(E=>h.jsxs(it,{className:`cursor-pointer transition-all hover:shadow-md ${r===E.id?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>b(E.id),children:[h.jsxs(rt,{children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsx("div",{className:"text-4xl mb-2",children:E.icon}),r===E.id&&h.jsx(Ye,{variant:"default",className:"bg-primary",children:"已选择"})]}),h.jsx(st,{className:"text-lg",children:E.name}),h.jsx(Mt,{className:"text-sm",children:E.description})]}),h.jsx(ot,{children:h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"包含服务:"}),h.jsx("div",{className:"flex flex-wrap gap-1",children:E.services.map(j=>{const w=ef.find(C=>C.id===j);return h.jsxs(Ye,{variant:"secondary",className:"flex text-xs gap-2",children:[w?.icon," ",w?.name]},j)})})]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:E.requirements})]})})]},E.id))})]}),N.length>0&&h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-lg font-semibold",children:"其他配置"}),h.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:N.map(E=>h.jsxs(it,{className:`cursor-pointer transition-all hover:shadow-md ${r===E.id?"border-primary bg-primary/5 shadow-md":"hover:border-primary/50"}`,onClick:()=>b(E.id),children:[h.jsxs(rt,{children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsx("div",{className:"text-4xl mb-2",children:E.icon}),r===E.id&&h.jsx(Ye,{variant:"default",className:"bg-primary",children:"已选择"})]}),h.jsx(st,{className:"text-lg",children:E.name}),h.jsx(Mt,{className:"text-sm",children:E.description})]}),h.jsx(ot,{children:h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"包含服务:"}),h.jsx("div",{className:"flex flex-wrap gap-1",children:E.services.map(j=>{const w=ef.find(C=>C.id===j);return h.jsxs(Ye,{variant:"secondary",className:"flex text-xs gap-2",children:[w?.icon," ",w?.name]},j)})})]}),h.jsx("p",{className:"text-xs text-muted-foreground",children:E.requirements})]})})]},E.id))})]})]}),h.jsxs(it,{className:"bg-muted/50",children:[h.jsx(rt,{children:h.jsxs(st,{className:"text-base flex items-center gap-2",children:[h.jsx(Hy,{className:"h-4 w-4"}),"已选择的服务"]})}),h.jsx(ot,{children:n.selectedServices.length>0?h.jsx("div",{className:"flex flex-wrap gap-2",children:n.selectedServices.map(E=>{const j=ef.find(w=>w.id===E);return h.jsxs(Ye,{variant:"secondary",className:"flex text-xs gap-2",children:[j?.icon," ",j?.name]},E)})}):h.jsx("p",{className:"text-sm text-muted-foreground",children:"尚未选择任何服务"})})]})]})})}function zj(n,i=[]){let r=[];function s(f,d){const m=g.createContext(d);m.displayName=f+"Context";const v=r.length;r=[...r,d];const y=x=>{const{scope:N,children:E,...j}=x,w=N?.[n]?.[v]||m,C=g.useMemo(()=>j,Object.values(j));return h.jsx(w.Provider,{value:C,children:E})};y.displayName=f+"Provider";function b(x,N){const E=N?.[n]?.[v]||m,j=g.useContext(E);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${x}\` must be used within \`${f}\``)}return[y,b]}const u=()=>{const f=r.map(d=>g.createContext(d));return function(m){const v=m?.[n]||f;return g.useMemo(()=>({[`__scope${n}`]:{...m,[n]:v}}),[m,v])}};return u.scopeName=n,[s,Dj(u,...i)]}function Dj(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=s.reduce((m,{useScope:v,scopeName:y})=>{const x=v(f)[`__scope${y}`];return{...m,...x}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return r.scopeName=i.scopeName,r}var td="Progress",nd=100,[Lj]=zj(td),[Uj,Hj]=Lj(td),B0=g.forwardRef((n,i)=>{const{__scopeProgress:r,value:s=null,max:u,getValueLabel:f=Bj,...d}=n;(u||u===0)&&!uy(u)&&console.error(kj(`${u}`,"Progress"));const m=uy(u)?u:nd;s!==null&&!fy(s,m)&&console.error(qj(`${s}`,"Progress"));const v=fy(s,m)?s:null,y=io(v)?f(v,m):void 0;return h.jsx(Uj,{scope:r,value:v,max:m,children:h.jsx(Bf.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":io(v)?v:void 0,"aria-valuetext":y,role:"progressbar","data-state":V0(v,m),"data-value":v??void 0,"data-max":m,...d,ref:i})})});B0.displayName=td;var k0="ProgressIndicator",q0=g.forwardRef((n,i)=>{const{__scopeProgress:r,...s}=n,u=Hj(k0,r);return h.jsx(Bf.div,{"data-state":V0(u.value,u.max),"data-value":u.value??void 0,"data-max":u.max,...s,ref:i})});q0.displayName=k0;function Bj(n,i){return`${Math.round(n/i*100)}%`}function V0(n,i){return n==null?"indeterminate":n===i?"complete":"loading"}function io(n){return typeof n=="number"}function uy(n){return io(n)&&!isNaN(n)&&n>0}function fy(n,i){return io(n)&&!isNaN(n)&&n<=i&&n>=0}function kj(n,i){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${i}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${nd}\`.`}function qj(n,i){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${i}\`. The \`value\` prop must be:
52
- - a positive number
53
- - less than the value passed to \`max\` (or ${nd} if no \`max\` prop is set)
54
- - \`null\` or \`undefined\` if the progress is indeterminate.
55
-
56
- Defaulting to \`null\`.`}var G0=B0,Vj=q0;const Nf=g.forwardRef(({className:n,value:i,...r},s)=>h.jsx(G0,{ref:s,className:Pe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",n),...r,children:h.jsx(Vj,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(i||0)}%)`}})}));Nf.displayName=G0.displayName;function Gj(){const{wizardData:n,updateWizardData:i}=ii(),[r,s]=g.useState(null),{data:u}=sr({queryKey:["installStatus"],queryFn:bj}),{mutate:f,isPending:d,error:m}=Fl({mutationFn:xj,onSuccess:C=>{s(C.task_id)}}),{data:v}=sr({queryKey:["installTask",r],queryFn:()=>Sj(r),enabled:r!==null,refetchInterval:C=>{const A=C.state.data;return A?.status==="completed"||A?.status==="failed"?!1:1e3}}),{data:y}=sr({queryKey:["installLogs",r],queryFn:()=>wj(r,{tail:100}),enabled:r!==null&&(v?.status==="running"||v?.status==="pending"),refetchInterval:2e3});g.useEffect(()=>{v?.status==="completed"&&i({installationComplete:!0})},[v?.status,i]);const b=()=>{n.hardwarePreset&&f({preset:n.hardwarePreset,cache_dir:n.installPath||"~/.lumen",environment_name:"lumen_env",force_reinstall:!1})},x=C=>{switch(C){case"completed":return h.jsx(lr,{className:"h-5 w-5 text-green-500"});case"running":return h.jsx(wa,{className:"h-5 w-5 text-blue-500 animate-spin"});case"failed":return h.jsx(un,{className:"h-5 w-5 text-red-500"});case"skipped":return h.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted-foreground"});default:return h.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-muted"})}},N=C=>{switch(C){case"completed":return h.jsx(Ye,{variant:"default",className:"bg-green-500",children:"完成"});case"running":return h.jsx(Ye,{variant:"secondary",children:"进行中"});case"failed":return h.jsx(Ye,{variant:"destructive",children:"错误"});case"skipped":return h.jsx(Ye,{variant:"outline",children:"跳过"});default:return h.jsx(Ye,{variant:"outline",children:"等待"})}},E=v?.status==="completed",j=v?.status==="failed",w=v?.status==="running"||d;return h.jsx(Wa,{title:"安装依赖",description:"下载并安装所需的运行环境和模型文件",children:h.jsxs("div",{className:"space-y-6",children:[h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsxs(st,{className:"flex items-center gap-2",children:[h.jsx(w2,{className:"h-5 w-5"}),"安装进度"]}),h.jsx(Mt,{children:w?"正在安装,请稍候...":E?"所有任务已完成!":j?"安装失败,请查看错误信息":"点击开始按钮开始安装"})]}),h.jsxs(ot,{className:"space-y-4",children:[v&&h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex justify-between text-sm",children:[h.jsx("span",{className:"font-medium",children:"总体进度"}),h.jsxs("span",{className:"text-muted-foreground",children:[v.progress,"%"]})]}),h.jsx(Nf,{value:v.progress,className:"h-2"}),v.current_step&&h.jsxs("p",{className:"text-sm text-muted-foreground",children:["当前步骤: ",v.current_step]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"安装路径"}),h.jsx("p",{className:"font-mono font-medium truncate",children:n.installPath})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"硬件预设"}),h.jsx("p",{className:"font-medium",children:n.hardwarePreset||"未选择"})]})]}),u&&h.jsxs("div",{className:"rounded-lg border p-3 bg-muted/50",children:[h.jsx("p",{className:"text-sm font-medium mb-2",children:"系统状态"}),h.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[u.micromamba_installed?h.jsx(lr,{className:"h-3 w-3 text-green-500"}):h.jsx(un,{className:"h-3 w-3 text-yellow-500"}),h.jsx("span",{children:"Micromamba"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[u.environment_exists?h.jsx(lr,{className:"h-3 w-3 text-green-500"}):h.jsx(un,{className:"h-3 w-3 text-yellow-500"}),h.jsx("span",{children:"Python 环境"})]})]}),u.missing_components&&u.missing_components.length>0&&h.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["缺少组件: ",u.missing_components.join(", ")]})]}),!w&&!E&&!j&&h.jsxs("button",{onClick:b,disabled:!n.hardwarePreset,className:"w-full mt-4 flex items-center justify-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[h.jsx(By,{className:"h-4 w-4"}),"开始安装"]}),(m||j)&&h.jsxs(vt,{variant:"destructive",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:m?.message||v?.error||"安装失败"})]}),E&&h.jsxs(vt,{className:"bg-green-50 border-green-200",children:[h.jsx(lr,{className:"h-4 w-4 text-green-600"}),h.jsx(yt,{className:"text-green-800",children:"安装成功!您可以继续下一步启动服务。"})]})]})]}),v?.steps&&v.steps.length>0&&h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"安装任务"}),h.jsx(Mt,{children:"各项安装任务的详细状态"})]}),h.jsx(ot,{className:"space-y-3",children:v.steps.map((C,A)=>h.jsx("div",{className:"flex items-center justify-between rounded-lg border p-4",children:h.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[x(C.status),h.jsxs("div",{className:"flex-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("p",{className:"font-medium",children:C.name}),N(C.status)]}),h.jsx("p",{className:"text-sm text-muted-foreground",children:C.message}),C.status==="running"&&C.progress>0&&h.jsx("div",{className:"mt-2",children:h.jsx(Nf,{value:C.progress,className:"h-1"})})]})]})},A))})]}),y&&y.logs&&y.logs.length>0&&h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"安装日志"}),h.jsxs(Mt,{children:["实时安装过程输出 (最近 ",y.logs.length," 行 / 共"," ",y.total_lines," 行)"]})]}),h.jsx(ot,{children:h.jsx("div",{className:"rounded-md bg-muted p-4 font-mono text-xs max-h-64 overflow-y-auto",children:y.logs.map((C,A)=>h.jsx("div",{className:"text-muted-foreground",children:C},A))})})]})]})})}function Qj(){const{wizardData:n,updateWizardData:i}=ii(),[r,s]=g.useState(!1),{data:u,refetch:f,isLoading:d}=sr({queryKey:["serverStatus"],queryFn:Ej,refetchInterval:r?2e3:!1}),{data:m,refetch:v}=sr({queryKey:["serverLogs"],queryFn:()=>jj({lines:100}),enabled:u?.running||!1,refetchInterval:r&&u?.running?2e3:!1}),{mutate:y,isPending:b,error:x}=Fl({mutationFn:Cj,onSuccess:()=>{s(!0),i({serverRunning:!0}),f(),setTimeout(()=>v(),1e3)}}),{mutate:N,isPending:E,error:j}=Fl({mutationFn:Nj,onSuccess:()=>{i({serverRunning:!1}),f()}}),{mutate:w,isPending:C,error:A}=Fl({mutationFn:Rj,onSuccess:()=>{s(!0),f(),setTimeout(()=>v(),1e3)}});g.useEffect(()=>{u&&i({serverRunning:u.running})},[u,i]);const M=()=>{y({config_path:n.configPath,port:n.port,host:"0.0.0.0",environment:"lumen_env"})},z=()=>{N({force:!1,timeout:30})},V=()=>{w({config_path:n.configPath,port:n.port,host:"0.0.0.0",environment:"lumen_env",force:!1,timeout:30})},Z=Q=>{switch(Q){case"healthy":return h.jsx(Ye,{variant:"default",className:"bg-green-500",children:"健康"});case"unhealthy":return h.jsx(Ye,{variant:"destructive",children:"异常"});default:return h.jsx(Ye,{variant:"secondary",children:"未知"})}},$=b||E||C,q=x||j||A;return h.jsx(Wa,{title:"启动服务",description:"配置完成,现在可以启动 Lumen 推理服务器",hideNextButton:!0,children:h.jsxs("div",{className:"space-y-6",children:[n.installationComplete&&h.jsxs(vt,{className:"bg-green-50 border-green-200",children:[h.jsx(lr,{className:"h-4 w-4 text-green-600"}),h.jsx(yt,{className:"text-green-800",children:"所有配置已完成!您可以随时启动或停止服务器。"})]}),h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsxs(st,{className:"flex items-center gap-2",children:[h.jsx(F2,{className:"h-5 w-5"}),"配置摘要"]}),h.jsx(Mt,{children:"查看您的完整配置信息"})]}),h.jsx(ot,{children:h.jsxs("dl",{className:"space-y-3 text-sm",children:[h.jsxs("div",{className:"flex justify-between border-b pb-2",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"安装路径"}),h.jsx("dd",{className:"font-mono font-semibold",children:n.installPath})]}),h.jsxs("div",{className:"flex justify-between border-b pb-2",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"区域"}),h.jsx("dd",{className:"font-semibold",children:n.region==="cn"?"中国 (CN)":"国际 (International)"})]}),h.jsxs("div",{className:"flex justify-between border-b pb-2",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"服务地址"}),h.jsxs("dd",{className:"font-mono font-semibold",children:["0.0.0.0:",n.port]})]}),h.jsxs("div",{className:"flex justify-between border-b pb-2",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"服务名称"}),h.jsx("dd",{className:"font-semibold",children:n.serviceName})]}),h.jsxs("div",{className:"flex justify-between border-b pb-2",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"硬件预设"}),h.jsx("dd",{className:"font-semibold",children:n.hardwarePreset})]}),h.jsxs("div",{className:"flex justify-between items-start",children:[h.jsx("dt",{className:"text-muted-foreground font-medium",children:"启用服务"}),h.jsx("dd",{className:"flex flex-wrap gap-1 justify-end max-w-xs",children:n.selectedServices.map(Q=>h.jsx(Ye,{variant:"secondary",className:"text-xs",children:Q.toUpperCase()},Q))})]})]})})]}),h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"服务器状态"}),h.jsx(Mt,{children:d?"正在获取状态...":"查看服务器实时运行状态"})]}),h.jsx(ot,{className:"space-y-4",children:d?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(wa,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):u?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border bg-muted/50",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-3 w-3 rounded-full ${u.running?"bg-green-500 animate-pulse":"bg-red-500"}`}),h.jsxs("div",{children:[h.jsx("p",{className:"font-medium",children:u.running?"运行中":"已停止"}),h.jsx("p",{className:"text-xs text-muted-foreground",children:u.running?`PID: ${u.pid} • 运行时间: ${Math.floor((u.uptime_seconds||0)/60)} 分钟`:"服务器未运行"})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[Z(u.health),h.jsx(Ye,{variant:u.running?"default":"secondary",className:u.running?"bg-green-500":"",children:u.running?"运行中":"已停止"})]})]}),u.running&&h.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"监听地址"}),h.jsxs("p",{className:"font-mono font-medium",children:[u.host,":",u.port]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"服务名称"}),h.jsx("p",{className:"font-medium",children:u.service_name})]}),u.config_path&&h.jsxs("div",{className:"col-span-2",children:[h.jsx("p",{className:"text-muted-foreground",children:"配置文件"}),h.jsx("p",{className:"font-mono text-xs truncate",children:u.config_path})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-muted-foreground",children:"环境"}),h.jsx("p",{className:"font-medium",children:u.environment})]})]}),u.last_error&&h.jsxs(vt,{variant:"destructive",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:u.last_error})]})]}):h.jsxs(vt,{children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:"无法获取服务器状态"})]})})]}),h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"服务器控制"}),h.jsx(Mt,{children:"启动、停止或重启 Lumen 推理服务器"})]}),h.jsxs(ot,{className:"space-y-4",children:[q&&h.jsxs(vt,{variant:"destructive",children:[h.jsx(un,{className:"h-4 w-4"}),h.jsx(yt,{children:q.message||"操作失败"})]}),h.jsx("div",{className:"flex gap-3",children:u?.running?h.jsxs(h.Fragment,{children:[h.jsxs("button",{onClick:z,disabled:$,className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed",children:[E?h.jsx(wa,{className:"h-4 w-4 animate-spin"}):h.jsx(I2,{className:"h-4 w-4"}),E?"停止中...":"停止服务器"]}),h.jsxs("button",{onClick:V,disabled:$,className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 bg-orange-500 text-white rounded-md hover:bg-orange-600 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed",children:[C?h.jsx(wa,{className:"h-4 w-4 animate-spin"}):h.jsx(G2,{className:"h-4 w-4"}),C?"重启中...":"重启服务器"]})]}):h.jsxs("button",{onClick:M,disabled:$||!n.installationComplete,className:"flex-1 flex items-center justify-center gap-2 px-4 py-3 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed",children:[b?h.jsx(wa,{className:"h-4 w-4 animate-spin"}):h.jsx(By,{className:"h-4 w-4"}),b?"启动中...":"启动服务器"]})}),h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border bg-muted/50",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium",children:"自动刷新"}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"每 2 秒更新状态和日志"})]}),h.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[h.jsx("input",{type:"checkbox",checked:r,onChange:Q=>s(Q.target.checked),className:"sr-only peer"}),h.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary/20 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"})]})]})]})]}),u?.running&&m&&m.logs&&h.jsxs(it,{children:[h.jsxs(rt,{children:[h.jsx(st,{children:"服务器日志"}),h.jsxs(Mt,{children:["实时服务器输出 (最近 ",m.logs.length," 行 / 共"," ",m.total_lines," 行)"]})]}),h.jsx(ot,{children:h.jsx("div",{className:"rounded-md bg-muted p-4 font-mono text-xs max-h-96 overflow-y-auto",children:m.logs.length>0?m.logs.map((Q,I)=>h.jsx("div",{className:"text-muted-foreground",children:Q},I)):h.jsx("div",{className:"text-muted-foreground text-center py-4",children:"暂无日志"})})})]}),h.jsxs(it,{className:"bg-blue-50 border-blue-200",children:[h.jsx(rt,{children:h.jsx(st,{className:"text-blue-900",children:"使用指南"})}),h.jsxs(ot,{className:"text-sm text-blue-800 space-y-2",children:[h.jsx("p",{children:"服务器启动后,您可以:"}),h.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[h.jsxs("li",{children:["使用 gRPC 客户端连接到"," ",h.jsxs("code",{className:"bg-blue-100 px-1 py-0.5 rounded",children:["0.0.0.0:",n.port]})]}),h.jsxs("li",{children:["通过 mDNS 服务发现查找服务"," ",h.jsx("code",{className:"bg-blue-100 px-1 py-0.5 rounded",children:n.serviceName})]}),h.jsx("li",{children:"调用已启用的 AI 服务接口进行推理"}),h.jsx("li",{children:"查看实时日志监控服务状态"}),h.jsx("li",{children:"使用重启功能更新配置而无需停止服务"})]})]})]})]})})}const Yj=new nj;function Xj(){return h.jsx(aj,{client:Yj,children:h.jsx(e2,{children:h.jsxs(gS,{children:[h.jsx(Fa,{path:"/",element:h.jsx(vS,{to:"/welcome",replace:!0})}),h.jsx(Fa,{path:"/welcome",element:h.jsx(Tj,{})}),h.jsx(Fa,{path:"/hardware",element:h.jsx(Mj,{})}),h.jsx(Fa,{path:"/config",element:h.jsx(_j,{})}),h.jsx(Fa,{path:"/install",element:h.jsx(Gj,{})}),h.jsx(Fa,{path:"/server",element:h.jsx(Qj,{})})]})})})}function Kj({children:n}){return h.jsx(h.Fragment,{children:n})}x1.createRoot(document.getElementById("root")).render(h.jsx(g.StrictMode,{children:h.jsx(GS,{children:h.jsx(Kj,{children:h.jsx(Xj,{})})})}));