Files
mission-control-v2/frontend/dist/assets/index-CmIKN_Pq.js
T

336 lines
310 KiB
JavaScript

function Lm(o,u){for(var a=0;a<u.length;a++){const c=u[a];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in o)){const p=Object.getOwnPropertyDescriptor(c,f);p&&Object.defineProperty(o,f,p.get?p:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function a(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function c(f){if(f.ep)return;f.ep=!0;const p=a(f);fetch(f.href,p)}})();function zd(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var _a={exports:{}},Xn={},Pa={exports:{}},ge={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var od;function Tm(){if(od)return ge;od=1;var o=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;function P(k){return k===null||typeof k!="object"?null:(k=E&&k[E]||k["@@iterator"],typeof k=="function"?k:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,j={};function L(k,b,V){this.props=k,this.context=b,this.refs=j,this.updater=V||M}L.prototype.isReactComponent={},L.prototype.setState=function(k,b){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,b,"setState")},L.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function $(){}$.prototype=L.prototype;function O(k,b,V){this.props=k,this.context=b,this.refs=j,this.updater=V||M}var G=O.prototype=new $;G.constructor=O,T(G,L.prototype),G.isPureReactComponent=!0;var X=Array.isArray,F=Object.prototype.hasOwnProperty,re={current:null},de={key:!0,ref:!0,__self:!0,__source:!0};function we(k,b,V){var K,B={},J=null,le=null;if(b!=null)for(K in b.ref!==void 0&&(le=b.ref),b.key!==void 0&&(J=""+b.key),b)F.call(b,K)&&!de.hasOwnProperty(K)&&(B[K]=b[K]);var fe=arguments.length-2;if(fe===1)B.children=V;else if(1<fe){for(var he=Array(fe),Ue=0;Ue<fe;Ue++)he[Ue]=arguments[Ue+2];B.children=he}if(k&&k.defaultProps)for(K in fe=k.defaultProps,fe)B[K]===void 0&&(B[K]=fe[K]);return{$$typeof:o,type:k,key:J,ref:le,props:B,_owner:re.current}}function I(k,b){return{$$typeof:o,type:k.type,key:b,ref:k.ref,props:k.props,_owner:k._owner}}function ue(k){return typeof k=="object"&&k!==null&&k.$$typeof===o}function Ce(k){var b={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return b[V]})}var ce=/\/+/g;function ze(k,b){return typeof k=="object"&&k!==null&&k.key!=null?Ce(""+k.key):b.toString(36)}function _e(k,b,V,K,B){var J=typeof k;(J==="undefined"||J==="boolean")&&(k=null);var le=!1;if(k===null)le=!0;else switch(J){case"string":case"number":le=!0;break;case"object":switch(k.$$typeof){case o:case u:le=!0}}if(le)return le=k,B=B(le),k=K===""?"."+ze(le,0):K,X(B)?(V="",k!=null&&(V=k.replace(ce,"$&/")+"/"),_e(B,b,V,"",function(Ue){return Ue})):B!=null&&(ue(B)&&(B=I(B,V+(!B.key||le&&le.key===B.key?"":(""+B.key).replace(ce,"$&/")+"/")+k)),b.push(B)),1;if(le=0,K=K===""?".":K+":",X(k))for(var fe=0;fe<k.length;fe++){J=k[fe];var he=K+ze(J,fe);le+=_e(J,b,V,he,B)}else if(he=P(k),typeof he=="function")for(k=he.call(k),fe=0;!(J=k.next()).done;)J=J.value,he=K+ze(J,fe++),le+=_e(J,b,V,he,B);else if(J==="object")throw b=String(k),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return le}function Ie(k,b,V){if(k==null)return k;var K=[],B=0;return _e(k,K,"","",function(J){return b.call(V,J,B++)}),K}function Pe(k){if(k._status===-1){var b=k._result;b=b(),b.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=b)}if(k._status===1)return k._result.default;throw k._result}var ye={current:null},H={transition:null},te={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:H,ReactCurrentOwner:re};function W(){throw Error("act(...) is not supported in production builds of React.")}return ge.Children={map:Ie,forEach:function(k,b,V){Ie(k,function(){b.apply(this,arguments)},V)},count:function(k){var b=0;return Ie(k,function(){b++}),b},toArray:function(k){return Ie(k,function(b){return b})||[]},only:function(k){if(!ue(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},ge.Component=L,ge.Fragment=a,ge.Profiler=f,ge.PureComponent=O,ge.StrictMode=c,ge.Suspense=N,ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,ge.act=W,ge.cloneElement=function(k,b,V){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var K=T({},k.props),B=k.key,J=k.ref,le=k._owner;if(b!=null){if(b.ref!==void 0&&(J=b.ref,le=re.current),b.key!==void 0&&(B=""+b.key),k.type&&k.type.defaultProps)var fe=k.type.defaultProps;for(he in b)F.call(b,he)&&!de.hasOwnProperty(he)&&(K[he]=b[he]===void 0&&fe!==void 0?fe[he]:b[he])}var he=arguments.length-2;if(he===1)K.children=V;else if(1<he){fe=Array(he);for(var Ue=0;Ue<he;Ue++)fe[Ue]=arguments[Ue+2];K.children=fe}return{$$typeof:o,type:k.type,key:B,ref:J,props:K,_owner:le}},ge.createContext=function(k){return k={$$typeof:m,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},ge.createElement=we,ge.createFactory=function(k){var b=we.bind(null,k);return b.type=k,b},ge.createRef=function(){return{current:null}},ge.forwardRef=function(k){return{$$typeof:g,render:k}},ge.isValidElement=ue,ge.lazy=function(k){return{$$typeof:w,_payload:{_status:-1,_result:k},_init:Pe}},ge.memo=function(k,b){return{$$typeof:S,type:k,compare:b===void 0?null:b}},ge.startTransition=function(k){var b=H.transition;H.transition={};try{k()}finally{H.transition=b}},ge.unstable_act=W,ge.useCallback=function(k,b){return ye.current.useCallback(k,b)},ge.useContext=function(k){return ye.current.useContext(k)},ge.useDebugValue=function(){},ge.useDeferredValue=function(k){return ye.current.useDeferredValue(k)},ge.useEffect=function(k,b){return ye.current.useEffect(k,b)},ge.useId=function(){return ye.current.useId()},ge.useImperativeHandle=function(k,b,V){return ye.current.useImperativeHandle(k,b,V)},ge.useInsertionEffect=function(k,b){return ye.current.useInsertionEffect(k,b)},ge.useLayoutEffect=function(k,b){return ye.current.useLayoutEffect(k,b)},ge.useMemo=function(k,b){return ye.current.useMemo(k,b)},ge.useReducer=function(k,b,V){return ye.current.useReducer(k,b,V)},ge.useRef=function(k){return ye.current.useRef(k)},ge.useState=function(k){return ye.current.useState(k)},ge.useSyncExternalStore=function(k,b,V){return ye.current.useSyncExternalStore(k,b,V)},ge.useTransition=function(){return ye.current.useTransition()},ge.version="18.3.1",ge}var ld;function ei(){return ld||(ld=1,Pa.exports=Tm()),Pa.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sd;function Om(){if(sd)return Xn;sd=1;var o=ei(),u=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function m(g,N,S){var w,E={},P=null,M=null;S!==void 0&&(P=""+S),N.key!==void 0&&(P=""+N.key),N.ref!==void 0&&(M=N.ref);for(w in N)c.call(N,w)&&!p.hasOwnProperty(w)&&(E[w]=N[w]);if(g&&g.defaultProps)for(w in N=g.defaultProps,N)E[w]===void 0&&(E[w]=N[w]);return{$$typeof:u,type:g,key:P,ref:M,props:E,_owner:f.current}}return Xn.Fragment=a,Xn.jsx=m,Xn.jsxs=m,Xn}var ad;function Dm(){return ad||(ad=1,_a.exports=Om()),_a.exports}var s=Dm(),h=ei();const Id=zd(h),ti=Lm({__proto__:null,default:Id},[h]);var hl={},Ra={exports:{}},ot={},Ma={exports:{}},La={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var id;function zm(){return id||(id=1,(function(o){function u(H,te){var W=H.length;H.push(te);e:for(;0<W;){var k=W-1>>>1,b=H[k];if(0<f(b,te))H[k]=te,H[W]=b,W=k;else break e}}function a(H){return H.length===0?null:H[0]}function c(H){if(H.length===0)return null;var te=H[0],W=H.pop();if(W!==te){H[0]=W;e:for(var k=0,b=H.length,V=b>>>1;k<V;){var K=2*(k+1)-1,B=H[K],J=K+1,le=H[J];if(0>f(B,W))J<b&&0>f(le,B)?(H[k]=le,H[J]=W,k=J):(H[k]=B,H[K]=W,k=K);else if(J<b&&0>f(le,W))H[k]=le,H[J]=W,k=J;else break e}}return te}function f(H,te){var W=H.sortIndex-te.sortIndex;return W!==0?W:H.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var m=Date,g=m.now();o.unstable_now=function(){return m.now()-g}}var N=[],S=[],w=1,E=null,P=3,M=!1,T=!1,j=!1,L=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(H){for(var te=a(S);te!==null;){if(te.callback===null)c(S);else if(te.startTime<=H)c(S),te.sortIndex=te.expirationTime,u(N,te);else break;te=a(S)}}function X(H){if(j=!1,G(H),!T)if(a(N)!==null)T=!0,Pe(F);else{var te=a(S);te!==null&&ye(X,te.startTime-H)}}function F(H,te){T=!1,j&&(j=!1,$(we),we=-1),M=!0;var W=P;try{for(G(te),E=a(N);E!==null&&(!(E.expirationTime>te)||H&&!Ce());){var k=E.callback;if(typeof k=="function"){E.callback=null,P=E.priorityLevel;var b=k(E.expirationTime<=te);te=o.unstable_now(),typeof b=="function"?E.callback=b:E===a(N)&&c(N),G(te)}else c(N);E=a(N)}if(E!==null)var V=!0;else{var K=a(S);K!==null&&ye(X,K.startTime-te),V=!1}return V}finally{E=null,P=W,M=!1}}var re=!1,de=null,we=-1,I=5,ue=-1;function Ce(){return!(o.unstable_now()-ue<I)}function ce(){if(de!==null){var H=o.unstable_now();ue=H;var te=!0;try{te=de(!0,H)}finally{te?ze():(re=!1,de=null)}}else re=!1}var ze;if(typeof O=="function")ze=function(){O(ce)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,Ie=_e.port2;_e.port1.onmessage=ce,ze=function(){Ie.postMessage(null)}}else ze=function(){L(ce,0)};function Pe(H){de=H,re||(re=!0,ze())}function ye(H,te){we=L(function(){H(o.unstable_now())},te)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(H){H.callback=null},o.unstable_continueExecution=function(){T||M||(T=!0,Pe(F))},o.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<H?Math.floor(1e3/H):5},o.unstable_getCurrentPriorityLevel=function(){return P},o.unstable_getFirstCallbackNode=function(){return a(N)},o.unstable_next=function(H){switch(P){case 1:case 2:case 3:var te=3;break;default:te=P}var W=P;P=te;try{return H()}finally{P=W}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var W=P;P=H;try{return te()}finally{P=W}},o.unstable_scheduleCallback=function(H,te,W){var k=o.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,H){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=W+b,H={id:w++,callback:te,priorityLevel:H,startTime:W,expirationTime:b,sortIndex:-1},W>k?(H.sortIndex=W,u(S,H),a(N)===null&&H===a(S)&&(j?($(we),we=-1):j=!0,ye(X,W-k))):(H.sortIndex=b,u(N,H),T||M||(T=!0,Pe(F))),H},o.unstable_shouldYield=Ce,o.unstable_wrapCallback=function(H){var te=P;return function(){var W=P;P=te;try{return H.apply(this,arguments)}finally{P=W}}}})(La)),La}var ud;function Im(){return ud||(ud=1,Ma.exports=zm()),Ma.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cd;function Am(){if(cd)return ot;cd=1;var o=ei(),u=Im();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var c=new Set,f={};function p(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N=Object.prototype.hasOwnProperty,S=/^[: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]*$/,w={},E={};function P(e){return N.call(E,e)?!0:N.call(w,e)?!1:S.test(e)?E[e]=!0:(w[e]=!0,!1)}function M(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function T(e,t,r,n){if(t===null||typeof t>"u"||M(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function j(e,t,r,n,l,i,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=d}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];L[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){L[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){L[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){L[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){L[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){L[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){L[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function O(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($,O);L[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($,O);L[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($,O);L[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){L[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),L.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){L[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function G(e,t,r,n){var l=L.hasOwnProperty(t)?L[t]:null;(l!==null?l.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(T(t,r,l,n)&&(r=null),n||l===null?P(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):l.mustUseProperty?e[l.propertyName]=r===null?l.type===3?!1:"":r:(t=l.attributeName,n=l.attributeNamespace,r===null?e.removeAttribute(t):(l=l.type,r=l===3||l===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var X=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),re=Symbol.for("react.portal"),de=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),ue=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),ze=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),H=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,k;function b(e){if(k===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
`+k+e}var V=!1;function K(e,t){if(!e||V)return"";V=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(R){var n=R}Reflect.construct(e,[],t)}else{try{t.call()}catch(R){n=R}e.call(t.prototype)}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var l=R.stack.split(`
`),i=n.stack.split(`
`),d=l.length-1,x=i.length-1;1<=d&&0<=x&&l[d]!==i[x];)x--;for(;1<=d&&0<=x;d--,x--)if(l[d]!==i[x]){if(d!==1||x!==1)do if(d--,x--,0>x||l[d]!==i[x]){var v=`
`+l[d].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=d&&0<=x);break}}}finally{V=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?b(e):""}function B(e){switch(e.tag){case 5:return b(e.type);case 16:return b("Lazy");case 13:return b("Suspense");case 19:return b("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1),e;case 11:return e=K(e.type.render,!1),e;case 1:return e=K(e.type,!0),e;default:return""}}function J(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case de:return"Fragment";case re:return"Portal";case I:return"Profiler";case we:return"StrictMode";case ze:return"Suspense";case _e:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case ue:return(e._context.displayName||"Context")+".Provider";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ie:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case Pe:t=e._payload,e=e._init;try{return J(e(t))}catch{}}return null}function le(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(t);case 8:return t===we?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ue(e){var t=he(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var l=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){n=""+d,i.call(this,d)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oo(e){e._valueTracker||(e._valueTracker=Ue(e))}function ci(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=he(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function lo(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}}function Dl(e,t){var r=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function di(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=fe(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fi(e,t){t=t.checked,t!=null&&G(e,"checked",t,!1)}function zl(e,t){fi(e,t);var r=fe(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Il(e,t.type,r):t.hasOwnProperty("defaultValue")&&Il(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pi(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Il(e,t,r){(t!=="number"||lo(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var fn=Array.isArray;function _r(e,t,r,n){if(e=e.options,t){t={};for(var l=0;l<r.length;l++)t["$"+r[l]]=!0;for(r=0;r<e.length;r++)l=t.hasOwnProperty("$"+e[r].value),e[r].selected!==l&&(e[r].selected=l),l&&n&&(e[r].defaultSelected=!0)}else{for(r=""+fe(r),t=null,l=0;l<e.length;l++){if(e[l].value===r){e[l].selected=!0,n&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Al(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mi(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(a(92));if(fn(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fe(r)}}function hi(e,t){var r=fe(t.value),n=fe(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function gi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var so,vi=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,l){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(so=so||document.createElement("div"),so.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=so.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pn(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var mn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zf=["Webkit","ms","Moz","O"];Object.keys(mn).forEach(function(e){zf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mn[t]=mn[e]})});function yi(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||mn.hasOwnProperty(e)&&mn[e]?(""+t).trim():t+"px"}function bi(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,l=yi(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,l):e[r]=l}}var If=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ul(e,t){if(t){if(If[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function $l(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Bl=null;function Vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,Pr=null,Rr=null;function wi(e){if(e=zn(e)){if(typeof Hl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=Ro(t),Hl(e.stateNode,e.type,t))}}function ki(e){Pr?Rr?Rr.push(e):Rr=[e]:Pr=e}function Si(){if(Pr){var e=Pr,t=Rr;if(Rr=Pr=null,wi(e),t)for(e=0;e<t.length;e++)wi(t[e])}}function Ni(e,t){return e(t)}function ji(){}var Wl=!1;function Ei(e,t,r){if(Wl)return e(t,r);Wl=!0;try{return Ni(e,t,r)}finally{Wl=!1,(Pr!==null||Rr!==null)&&(ji(),Si())}}function hn(e,t){var r=e.stateNode;if(r===null)return null;var n=Ro(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(a(231,t,typeof r));return r}var Gl=!1;if(g)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){Gl=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{Gl=!1}function Af(e,t,r,n,l,i,d,x,v){var R=Array.prototype.slice.call(arguments,3);try{t.apply(r,R)}catch(z){this.onError(z)}}var xn=!1,ao=null,io=!1,Kl=null,Ff={onError:function(e){xn=!0,ao=e}};function Uf(e,t,r,n,l,i,d,x,v){xn=!1,ao=null,Af.apply(Ff,arguments)}function $f(e,t,r,n,l,i,d,x,v){if(Uf.apply(this,arguments),xn){if(xn){var R=ao;xn=!1,ao=null}else throw Error(a(198));io||(io=!0,Kl=R)}}function dr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Ci(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 _i(e){if(dr(e)!==e)throw Error(a(188))}function Bf(e){var t=e.alternate;if(!t){if(t=dr(e),t===null)throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var l=r.return;if(l===null)break;var i=l.alternate;if(i===null){if(n=l.return,n!==null){r=n;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===r)return _i(l),e;if(i===n)return _i(l),t;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=l,n=i;else{for(var d=!1,x=l.child;x;){if(x===r){d=!0,r=l,n=i;break}if(x===n){d=!0,n=l,r=i;break}x=x.sibling}if(!d){for(x=i.child;x;){if(x===r){d=!0,r=i,n=l;break}if(x===n){d=!0,n=i,r=l;break}x=x.sibling}if(!d)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(r.tag!==3)throw Error(a(188));return r.stateNode.current===r?e:t}function Pi(e){return e=Bf(e),e!==null?Ri(e):null}function Ri(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ri(e);if(t!==null)return t;e=e.sibling}return null}var Mi=u.unstable_scheduleCallback,Li=u.unstable_cancelCallback,Vf=u.unstable_shouldYield,Hf=u.unstable_requestPaint,Te=u.unstable_now,Wf=u.unstable_getCurrentPriorityLevel,Ql=u.unstable_ImmediatePriority,Ti=u.unstable_UserBlockingPriority,uo=u.unstable_NormalPriority,Gf=u.unstable_LowPriority,Oi=u.unstable_IdlePriority,co=null,St=null;function Kf(e){if(St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(co,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:Yf,Qf=Math.log,qf=Math.LN2;function Yf(e){return e>>>=0,e===0?32:31-(Qf(e)/qf|0)|0}var fo=64,po=4194304;function vn(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mo(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,l=e.suspendedLanes,i=e.pingedLanes,d=r&268435455;if(d!==0){var x=d&~l;x!==0?n=vn(x):(i&=d,i!==0&&(n=vn(i)))}else d=r&~l,d!==0?n=vn(d):i!==0&&(n=vn(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&l)===0&&(l=n&-n,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ht(t),l=1<<r,n|=e[r],t&=~l;return n}function Xf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zf(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var d=31-ht(i),x=1<<d,v=l[d];v===-1?((x&r)===0||(x&n)!==0)&&(l[d]=Xf(x,t)):v<=t&&(e.expiredLanes|=x),i&=~x}}function ql(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Di(){var e=fo;return fo<<=1,(fo&4194240)===0&&(fo=64),e}function Yl(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function yn(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=r}function Jf(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var l=31-ht(r),i=1<<l;t[l]=0,n[l]=-1,e[l]=-1,r&=~i}}function Xl(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ht(r),l=1<<n;l&t|e[n]&t&&(e[n]|=t),r&=~l}}var be=0;function zi(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ii,Zl,Ai,Fi,Ui,Jl=!1,ho=[],Ut=null,$t=null,Bt=null,bn=new Map,wn=new Map,Vt=[],ep="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 submit".split(" ");function $i(e,t){switch(e){case"focusin":case"focusout":Ut=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wn.delete(t.pointerId)}}function kn(e,t,r,n,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[l]},t!==null&&(t=zn(t),t!==null&&Zl(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function tp(e,t,r,n,l){switch(t){case"focusin":return Ut=kn(Ut,e,t,r,n,l),!0;case"dragenter":return $t=kn($t,e,t,r,n,l),!0;case"mouseover":return Bt=kn(Bt,e,t,r,n,l),!0;case"pointerover":var i=l.pointerId;return bn.set(i,kn(bn.get(i)||null,e,t,r,n,l)),!0;case"gotpointercapture":return i=l.pointerId,wn.set(i,kn(wn.get(i)||null,e,t,r,n,l)),!0}return!1}function Bi(e){var t=fr(e.target);if(t!==null){var r=dr(t);if(r!==null){if(t=r.tag,t===13){if(t=Ci(r),t!==null){e.blockedOn=t,Ui(e.priority,function(){Ai(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function go(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=ts(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Bl=n,r.target.dispatchEvent(n),Bl=null}else return t=zn(r),t!==null&&Zl(t),e.blockedOn=r,!1;t.shift()}return!0}function Vi(e,t,r){go(e)&&r.delete(t)}function rp(){Jl=!1,Ut!==null&&go(Ut)&&(Ut=null),$t!==null&&go($t)&&($t=null),Bt!==null&&go(Bt)&&(Bt=null),bn.forEach(Vi),wn.forEach(Vi)}function Sn(e,t){e.blockedOn===t&&(e.blockedOn=null,Jl||(Jl=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,rp)))}function Nn(e){function t(l){return Sn(l,e)}if(0<ho.length){Sn(ho[0],e);for(var r=1;r<ho.length;r++){var n=ho[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Ut!==null&&Sn(Ut,e),$t!==null&&Sn($t,e),Bt!==null&&Sn(Bt,e),bn.forEach(t),wn.forEach(t),r=0;r<Vt.length;r++)n=Vt[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Vt.length&&(r=Vt[0],r.blockedOn===null);)Bi(r),r.blockedOn===null&&Vt.shift()}var Mr=X.ReactCurrentBatchConfig,xo=!0;function np(e,t,r,n){var l=be,i=Mr.transition;Mr.transition=null;try{be=1,es(e,t,r,n)}finally{be=l,Mr.transition=i}}function op(e,t,r,n){var l=be,i=Mr.transition;Mr.transition=null;try{be=4,es(e,t,r,n)}finally{be=l,Mr.transition=i}}function es(e,t,r,n){if(xo){var l=ts(e,t,r,n);if(l===null)vs(e,t,n,vo,r),$i(e,n);else if(tp(l,e,t,r,n))n.stopPropagation();else if($i(e,n),t&4&&-1<ep.indexOf(e)){for(;l!==null;){var i=zn(l);if(i!==null&&Ii(i),i=ts(e,t,r,n),i===null&&vs(e,t,n,vo,r),i===l)break;l=i}l!==null&&n.stopPropagation()}else vs(e,t,n,null,r)}}var vo=null;function ts(e,t,r,n){if(vo=null,e=Vl(n),e=fr(e),e!==null)if(t=dr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ci(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vo=e,null}function Hi(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wf()){case Ql:return 1;case Ti:return 4;case uo:case Gf:return 16;case Oi:return 536870912;default:return 16}default:return 16}}var Ht=null,rs=null,yo=null;function Wi(){if(yo)return yo;var e,t=rs,r=t.length,n,l="value"in Ht?Ht.value:Ht.textContent,i=l.length;for(e=0;e<r&&t[e]===l[e];e++);var d=r-e;for(n=1;n<=d&&t[r-n]===l[i-n];n++);return yo=l.slice(e,1<n?1-n:void 0)}function bo(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 wo(){return!0}function Gi(){return!1}function lt(e){function t(r,n,l,i,d){this._reactName=r,this._targetInst=l,this.type=n,this.nativeEvent=i,this.target=d,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(r=e[x],this[x]=r?r(i):i[x]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?wo:Gi,this.isPropagationStopped=Gi,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=wo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wo)},persist:function(){},isPersistent:wo}),t}var Lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ns=lt(Lr),jn=W({},Lr,{view:0,detail:0}),lp=lt(jn),os,ls,En,ko=W({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,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!==En&&(En&&e.type==="mousemove"?(os=e.screenX-En.screenX,ls=e.screenY-En.screenY):ls=os=0,En=e),os)},movementY:function(e){return"movementY"in e?e.movementY:ls}}),Ki=lt(ko),sp=W({},ko,{dataTransfer:0}),ap=lt(sp),ip=W({},jn,{relatedTarget:0}),ss=lt(ip),up=W({},Lr,{animationName:0,elapsedTime:0,pseudoElement:0}),cp=lt(up),dp=W({},Lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fp=lt(dp),pp=W({},Lr,{data:0}),Qi=lt(pp),mp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hp={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"},gp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gp[e])?!!t[e]:!1}function as(){return xp}var vp=W({},jn,{key:function(e){if(e.key){var t=mp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?bo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yp=lt(vp),bp=W({},ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qi=lt(bp),wp=W({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),kp=lt(wp),Sp=W({},Lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Np=lt(Sp),jp=W({},ko,{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}),Ep=lt(jp),Cp=[9,13,27,32],is=g&&"CompositionEvent"in window,Cn=null;g&&"documentMode"in document&&(Cn=document.documentMode);var _p=g&&"TextEvent"in window&&!Cn,Yi=g&&(!is||Cn&&8<Cn&&11>=Cn),Xi=" ",Zi=!1;function Ji(e,t){switch(e){case"keyup":return Cp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tr=!1;function Pp(e,t){switch(e){case"compositionend":return eu(t);case"keypress":return t.which!==32?null:(Zi=!0,Xi);case"textInput":return e=t.data,e===Xi&&Zi?null:e;default:return null}}function Rp(e,t){if(Tr)return e==="compositionend"||!is&&Ji(e,t)?(e=Wi(),yo=rs=Ht=null,Tr=!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 Yi&&t.locale!=="ko"?null:t.data;default:return null}}var Mp={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 tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mp[e.type]:t==="textarea"}function ru(e,t,r,n){ki(n),t=Co(t,"onChange"),0<t.length&&(r=new ns("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var _n=null,Pn=null;function Lp(e){bu(e,0)}function So(e){var t=Ar(e);if(ci(t))return e}function Tp(e,t){if(e==="change")return t}var nu=!1;if(g){var us;if(g){var cs="oninput"in document;if(!cs){var ou=document.createElement("div");ou.setAttribute("oninput","return;"),cs=typeof ou.oninput=="function"}us=cs}else us=!1;nu=us&&(!document.documentMode||9<document.documentMode)}function lu(){_n&&(_n.detachEvent("onpropertychange",su),Pn=_n=null)}function su(e){if(e.propertyName==="value"&&So(Pn)){var t=[];ru(t,Pn,e,Vl(e)),Ei(Lp,t)}}function Op(e,t,r){e==="focusin"?(lu(),_n=t,Pn=r,_n.attachEvent("onpropertychange",su)):e==="focusout"&&lu()}function Dp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return So(Pn)}function zp(e,t){if(e==="click")return So(t)}function Ip(e,t){if(e==="input"||e==="change")return So(t)}function Ap(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:Ap;function Rn(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var l=r[n];if(!N.call(t,l)||!gt(e[l],t[l]))return!1}return!0}function au(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iu(e,t){var r=au(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=au(r)}}function uu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cu(){for(var e=window,t=lo();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=lo(e.document)}return t}function ds(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")}function Fp(e){var t=cu(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&uu(r.ownerDocument.documentElement,r)){if(n!==null&&ds(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=r.textContent.length,i=Math.min(n.start,l);n=n.end===void 0?i:Math.min(n.end,l),!e.extend&&i>n&&(l=n,n=i,i=l),l=iu(r,i);var d=iu(r,n);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Up=g&&"documentMode"in document&&11>=document.documentMode,Or=null,fs=null,Mn=null,ps=!1;function du(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ps||Or==null||Or!==lo(n)||(n=Or,"selectionStart"in n&&ds(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mn&&Rn(Mn,n)||(Mn=n,n=Co(fs,"onSelect"),0<n.length&&(t=new ns("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Or)))}function No(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Dr={animationend:No("Animation","AnimationEnd"),animationiteration:No("Animation","AnimationIteration"),animationstart:No("Animation","AnimationStart"),transitionend:No("Transition","TransitionEnd")},ms={},fu={};g&&(fu=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function jo(e){if(ms[e])return ms[e];if(!Dr[e])return e;var t=Dr[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in fu)return ms[e]=t[r];return e}var pu=jo("animationend"),mu=jo("animationiteration"),hu=jo("animationstart"),gu=jo("transitionend"),xu=new Map,vu="abort auxClick 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(" ");function Wt(e,t){xu.set(e,t),p(t,[e])}for(var hs=0;hs<vu.length;hs++){var gs=vu[hs],$p=gs.toLowerCase(),Bp=gs[0].toUpperCase()+gs.slice(1);Wt($p,"on"+Bp)}Wt(pu,"onAnimationEnd"),Wt(mu,"onAnimationIteration"),Wt(hu,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(gu,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="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(" "),Vp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ln));function yu(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,$f(n,t,void 0,e),e.currentTarget=null}function bu(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],l=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var d=n.length-1;0<=d;d--){var x=n[d],v=x.instance,R=x.currentTarget;if(x=x.listener,v!==i&&l.isPropagationStopped())break e;yu(l,x,R),i=v}else for(d=0;d<n.length;d++){if(x=n[d],v=x.instance,R=x.currentTarget,x=x.listener,v!==i&&l.isPropagationStopped())break e;yu(l,x,R),i=v}}}if(io)throw e=Kl,io=!1,Kl=null,e}function Se(e,t){var r=t[Ns];r===void 0&&(r=t[Ns]=new Set);var n=e+"__bubble";r.has(n)||(wu(t,e,2,!1),r.add(n))}function xs(e,t,r){var n=0;t&&(n|=4),wu(r,e,n,t)}var Eo="_reactListening"+Math.random().toString(36).slice(2);function Tn(e){if(!e[Eo]){e[Eo]=!0,c.forEach(function(r){r!=="selectionchange"&&(Vp.has(r)||xs(r,!1,e),xs(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eo]||(t[Eo]=!0,xs("selectionchange",!1,t))}}function wu(e,t,r,n){switch(Hi(t)){case 1:var l=np;break;case 4:l=op;break;default:l=es}r=l.bind(null,t,r,e),l=void 0,!Gl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),n?l!==void 0?e.addEventListener(t,r,{capture:!0,passive:l}):e.addEventListener(t,r,!0):l!==void 0?e.addEventListener(t,r,{passive:l}):e.addEventListener(t,r,!1)}function vs(e,t,r,n,l){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var x=n.stateNode.containerInfo;if(x===l||x.nodeType===8&&x.parentNode===l)break;if(d===4)for(d=n.return;d!==null;){var v=d.tag;if((v===3||v===4)&&(v=d.stateNode.containerInfo,v===l||v.nodeType===8&&v.parentNode===l))return;d=d.return}for(;x!==null;){if(d=fr(x),d===null)return;if(v=d.tag,v===5||v===6){n=i=d;continue e}x=x.parentNode}}n=n.return}Ei(function(){var R=i,z=Vl(r),A=[];e:{var D=xu.get(e);if(D!==void 0){var Q=ns,Y=e;switch(e){case"keypress":if(bo(r)===0)break e;case"keydown":case"keyup":Q=yp;break;case"focusin":Y="focus",Q=ss;break;case"focusout":Y="blur",Q=ss;break;case"beforeblur":case"afterblur":Q=ss;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=ap;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=kp;break;case pu:case mu:case hu:Q=cp;break;case gu:Q=Np;break;case"scroll":Q=lp;break;case"wheel":Q=Ep;break;case"copy":case"cut":case"paste":Q=fp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=qi}var Z=(t&4)!==0,Oe=!Z&&e==="scroll",C=Z?D!==null?D+"Capture":null:D;Z=[];for(var y=R,_;y!==null;){_=y;var U=_.stateNode;if(_.tag===5&&U!==null&&(_=U,C!==null&&(U=hn(y,C),U!=null&&Z.push(On(y,U,_)))),Oe)break;y=y.return}0<Z.length&&(D=new Q(D,Y,null,r,z),A.push({event:D,listeners:Z}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",D&&r!==Bl&&(Y=r.relatedTarget||r.fromElement)&&(fr(Y)||Y[Rt]))break e;if((Q||D)&&(D=z.window===z?z:(D=z.ownerDocument)?D.defaultView||D.parentWindow:window,Q?(Y=r.relatedTarget||r.toElement,Q=R,Y=Y?fr(Y):null,Y!==null&&(Oe=dr(Y),Y!==Oe||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(Q=null,Y=R),Q!==Y)){if(Z=Ki,U="onMouseLeave",C="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(Z=qi,U="onPointerLeave",C="onPointerEnter",y="pointer"),Oe=Q==null?D:Ar(Q),_=Y==null?D:Ar(Y),D=new Z(U,y+"leave",Q,r,z),D.target=Oe,D.relatedTarget=_,U=null,fr(z)===R&&(Z=new Z(C,y+"enter",Y,r,z),Z.target=_,Z.relatedTarget=Oe,U=Z),Oe=U,Q&&Y)t:{for(Z=Q,C=Y,y=0,_=Z;_;_=zr(_))y++;for(_=0,U=C;U;U=zr(U))_++;for(;0<y-_;)Z=zr(Z),y--;for(;0<_-y;)C=zr(C),_--;for(;y--;){if(Z===C||C!==null&&Z===C.alternate)break t;Z=zr(Z),C=zr(C)}Z=null}else Z=null;Q!==null&&ku(A,D,Q,Z,!1),Y!==null&&Oe!==null&&ku(A,Oe,Y,Z,!0)}}e:{if(D=R?Ar(R):window,Q=D.nodeName&&D.nodeName.toLowerCase(),Q==="select"||Q==="input"&&D.type==="file")var ee=Tp;else if(tu(D))if(nu)ee=Ip;else{ee=Dp;var ne=Op}else(Q=D.nodeName)&&Q.toLowerCase()==="input"&&(D.type==="checkbox"||D.type==="radio")&&(ee=zp);if(ee&&(ee=ee(e,R))){ru(A,ee,r,z);break e}ne&&ne(e,D,R),e==="focusout"&&(ne=D._wrapperState)&&ne.controlled&&D.type==="number"&&Il(D,"number",D.value)}switch(ne=R?Ar(R):window,e){case"focusin":(tu(ne)||ne.contentEditable==="true")&&(Or=ne,fs=R,Mn=null);break;case"focusout":Mn=fs=Or=null;break;case"mousedown":ps=!0;break;case"contextmenu":case"mouseup":case"dragend":ps=!1,du(A,r,z);break;case"selectionchange":if(Up)break;case"keydown":case"keyup":du(A,r,z)}var oe;if(is)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else Tr?Ji(e,r)&&(se="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(se="onCompositionStart");se&&(Yi&&r.locale!=="ko"&&(Tr||se!=="onCompositionStart"?se==="onCompositionEnd"&&Tr&&(oe=Wi()):(Ht=z,rs="value"in Ht?Ht.value:Ht.textContent,Tr=!0)),ne=Co(R,se),0<ne.length&&(se=new Qi(se,e,null,r,z),A.push({event:se,listeners:ne}),oe?se.data=oe:(oe=eu(r),oe!==null&&(se.data=oe)))),(oe=_p?Pp(e,r):Rp(e,r))&&(R=Co(R,"onBeforeInput"),0<R.length&&(z=new Qi("onBeforeInput","beforeinput",null,r,z),A.push({event:z,listeners:R}),z.data=oe))}bu(A,t)})}function On(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Co(e,t){for(var r=t+"Capture",n=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=hn(e,r),i!=null&&n.unshift(On(e,i,l)),i=hn(e,t),i!=null&&n.push(On(e,i,l))),e=e.return}return n}function zr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ku(e,t,r,n,l){for(var i=t._reactName,d=[];r!==null&&r!==n;){var x=r,v=x.alternate,R=x.stateNode;if(v!==null&&v===n)break;x.tag===5&&R!==null&&(x=R,l?(v=hn(r,i),v!=null&&d.unshift(On(r,v,x))):l||(v=hn(r,i),v!=null&&d.push(On(r,v,x)))),r=r.return}d.length!==0&&e.push({event:t,listeners:d})}var Hp=/\r\n?/g,Wp=/\u0000|\uFFFD/g;function Su(e){return(typeof e=="string"?e:""+e).replace(Hp,`
`).replace(Wp,"")}function _o(e,t,r){if(t=Su(t),Su(e)!==t&&r)throw Error(a(425))}function Po(){}var ys=null,bs=null;function ws(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ks=typeof setTimeout=="function"?setTimeout:void 0,Gp=typeof clearTimeout=="function"?clearTimeout:void 0,Nu=typeof Promise=="function"?Promise:void 0,Kp=typeof queueMicrotask=="function"?queueMicrotask:typeof Nu<"u"?function(e){return Nu.resolve(null).then(e).catch(Qp)}:ks;function Qp(e){setTimeout(function(){throw e})}function Ss(e,t){var r=t,n=0;do{var l=r.nextSibling;if(e.removeChild(r),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(n===0){e.removeChild(l),Nn(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=l}while(r);Nn(t)}function Gt(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==="$?")break;if(t==="/$")return null}}return e}function ju(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Ir=Math.random().toString(36).slice(2),Nt="__reactFiber$"+Ir,Dn="__reactProps$"+Ir,Rt="__reactContainer$"+Ir,Ns="__reactEvents$"+Ir,qp="__reactListeners$"+Ir,Yp="__reactHandles$"+Ir;function fr(e){var t=e[Nt];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Rt]||r[Nt]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ju(e);e!==null;){if(r=e[Nt])return r;e=ju(e)}return t}e=r,r=e.parentNode}return null}function zn(e){return e=e[Nt]||e[Rt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ar(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function Ro(e){return e[Dn]||null}var js=[],Fr=-1;function Kt(e){return{current:e}}function Ne(e){0>Fr||(e.current=js[Fr],js[Fr]=null,Fr--)}function ke(e,t){Fr++,js[Fr]=e.current,e.current=t}var Qt={},Ke=Kt(Qt),Je=Kt(!1),pr=Qt;function Ur(e,t){var r=e.type.contextTypes;if(!r)return Qt;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in r)l[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function et(e){return e=e.childContextTypes,e!=null}function Mo(){Ne(Je),Ne(Ke)}function Eu(e,t,r){if(Ke.current!==Qt)throw Error(a(168));ke(Ke,t),ke(Je,r)}function Cu(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var l in n)if(!(l in t))throw Error(a(108,le(e)||"Unknown",l));return W({},r,n)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,pr=Ke.current,ke(Ke,e),ke(Je,Je.current),!0}function _u(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Cu(e,t,pr),n.__reactInternalMemoizedMergedChildContext=e,Ne(Je),Ne(Ke),ke(Ke,e)):Ne(Je),ke(Je,r)}var Mt=null,To=!1,Es=!1;function Pu(e){Mt===null?Mt=[e]:Mt.push(e)}function Xp(e){To=!0,Pu(e)}function qt(){if(!Es&&Mt!==null){Es=!0;var e=0,t=be;try{var r=Mt;for(be=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Mt=null,To=!1}catch(l){throw Mt!==null&&(Mt=Mt.slice(e+1)),Mi(Ql,qt),l}finally{be=t,Es=!1}}return null}var $r=[],Br=0,Oo=null,Do=0,ut=[],ct=0,mr=null,Lt=1,Tt="";function hr(e,t){$r[Br++]=Do,$r[Br++]=Oo,Oo=e,Do=t}function Ru(e,t,r){ut[ct++]=Lt,ut[ct++]=Tt,ut[ct++]=mr,mr=e;var n=Lt;e=Tt;var l=32-ht(n)-1;n&=~(1<<l),r+=1;var i=32-ht(t)+l;if(30<i){var d=l-l%5;i=(n&(1<<d)-1).toString(32),n>>=d,l-=d,Lt=1<<32-ht(t)+l|r<<l|n,Tt=i+e}else Lt=1<<i|r<<l|n,Tt=e}function Cs(e){e.return!==null&&(hr(e,1),Ru(e,1,0))}function _s(e){for(;e===Oo;)Oo=$r[--Br],$r[Br]=null,Do=$r[--Br],$r[Br]=null;for(;e===mr;)mr=ut[--ct],ut[ct]=null,Tt=ut[--ct],ut[ct]=null,Lt=ut[--ct],ut[ct]=null}var st=null,at=null,Ee=!1,xt=null;function Mu(e,t){var r=mt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lu(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,at=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,at=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=mr!==null?{id:Lt,overflow:Tt}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=mt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,st=e,at=null,!0):!1;default:return!1}}function Ps(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Rs(e){if(Ee){var t=at;if(t){var r=t;if(!Lu(e,t)){if(Ps(e))throw Error(a(418));t=Gt(r.nextSibling);var n=st;t&&Lu(e,t)?Mu(n,r):(e.flags=e.flags&-4097|2,Ee=!1,st=e)}}else{if(Ps(e))throw Error(a(418));e.flags=e.flags&-4097|2,Ee=!1,st=e}}}function Tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function zo(e){if(e!==st)return!1;if(!Ee)return Tu(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ws(e.type,e.memoizedProps)),t&&(t=at)){if(Ps(e))throw Ou(),Error(a(418));for(;t;)Mu(e,t),t=Gt(t.nextSibling)}if(Tu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){at=Gt(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}at=null}}else at=st?Gt(e.stateNode.nextSibling):null;return!0}function Ou(){for(var e=at;e;)e=Gt(e.nextSibling)}function Vr(){at=st=null,Ee=!1}function Ms(e){xt===null?xt=[e]:xt.push(e)}var Zp=X.ReactCurrentBatchConfig;function In(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var l=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(d){var x=l.refs;d===null?delete x[i]:x[i]=d},t._stringRef=i,t)}if(typeof e!="string")throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Io(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Du(e){var t=e._init;return t(e._payload)}function zu(e){function t(C,y){if(e){var _=C.deletions;_===null?(C.deletions=[y],C.flags|=16):_.push(y)}}function r(C,y){if(!e)return null;for(;y!==null;)t(C,y),y=y.sibling;return null}function n(C,y){for(C=new Map;y!==null;)y.key!==null?C.set(y.key,y):C.set(y.index,y),y=y.sibling;return C}function l(C,y){return C=nr(C,y),C.index=0,C.sibling=null,C}function i(C,y,_){return C.index=_,e?(_=C.alternate,_!==null?(_=_.index,_<y?(C.flags|=2,y):_):(C.flags|=2,y)):(C.flags|=1048576,y)}function d(C){return e&&C.alternate===null&&(C.flags|=2),C}function x(C,y,_,U){return y===null||y.tag!==6?(y=ka(_,C.mode,U),y.return=C,y):(y=l(y,_),y.return=C,y)}function v(C,y,_,U){var ee=_.type;return ee===de?z(C,y,_.props.children,U,_.key):y!==null&&(y.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Pe&&Du(ee)===y.type)?(U=l(y,_.props),U.ref=In(C,y,_),U.return=C,U):(U=al(_.type,_.key,_.props,null,C.mode,U),U.ref=In(C,y,_),U.return=C,U)}function R(C,y,_,U){return y===null||y.tag!==4||y.stateNode.containerInfo!==_.containerInfo||y.stateNode.implementation!==_.implementation?(y=Sa(_,C.mode,U),y.return=C,y):(y=l(y,_.children||[]),y.return=C,y)}function z(C,y,_,U,ee){return y===null||y.tag!==7?(y=Sr(_,C.mode,U,ee),y.return=C,y):(y=l(y,_),y.return=C,y)}function A(C,y,_){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ka(""+y,C.mode,_),y.return=C,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case F:return _=al(y.type,y.key,y.props,null,C.mode,_),_.ref=In(C,null,y),_.return=C,_;case re:return y=Sa(y,C.mode,_),y.return=C,y;case Pe:var U=y._init;return A(C,U(y._payload),_)}if(fn(y)||te(y))return y=Sr(y,C.mode,_,null),y.return=C,y;Io(C,y)}return null}function D(C,y,_,U){var ee=y!==null?y.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return ee!==null?null:x(C,y,""+_,U);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case F:return _.key===ee?v(C,y,_,U):null;case re:return _.key===ee?R(C,y,_,U):null;case Pe:return ee=_._init,D(C,y,ee(_._payload),U)}if(fn(_)||te(_))return ee!==null?null:z(C,y,_,U,null);Io(C,_)}return null}function Q(C,y,_,U,ee){if(typeof U=="string"&&U!==""||typeof U=="number")return C=C.get(_)||null,x(y,C,""+U,ee);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case F:return C=C.get(U.key===null?_:U.key)||null,v(y,C,U,ee);case re:return C=C.get(U.key===null?_:U.key)||null,R(y,C,U,ee);case Pe:var ne=U._init;return Q(C,y,_,ne(U._payload),ee)}if(fn(U)||te(U))return C=C.get(_)||null,z(y,C,U,ee,null);Io(y,U)}return null}function Y(C,y,_,U){for(var ee=null,ne=null,oe=y,se=y=0,Ve=null;oe!==null&&se<_.length;se++){oe.index>se?(Ve=oe,oe=null):Ve=oe.sibling;var ve=D(C,oe,_[se],U);if(ve===null){oe===null&&(oe=Ve);break}e&&oe&&ve.alternate===null&&t(C,oe),y=i(ve,y,se),ne===null?ee=ve:ne.sibling=ve,ne=ve,oe=Ve}if(se===_.length)return r(C,oe),Ee&&hr(C,se),ee;if(oe===null){for(;se<_.length;se++)oe=A(C,_[se],U),oe!==null&&(y=i(oe,y,se),ne===null?ee=oe:ne.sibling=oe,ne=oe);return Ee&&hr(C,se),ee}for(oe=n(C,oe);se<_.length;se++)Ve=Q(oe,C,se,_[se],U),Ve!==null&&(e&&Ve.alternate!==null&&oe.delete(Ve.key===null?se:Ve.key),y=i(Ve,y,se),ne===null?ee=Ve:ne.sibling=Ve,ne=Ve);return e&&oe.forEach(function(or){return t(C,or)}),Ee&&hr(C,se),ee}function Z(C,y,_,U){var ee=te(_);if(typeof ee!="function")throw Error(a(150));if(_=ee.call(_),_==null)throw Error(a(151));for(var ne=ee=null,oe=y,se=y=0,Ve=null,ve=_.next();oe!==null&&!ve.done;se++,ve=_.next()){oe.index>se?(Ve=oe,oe=null):Ve=oe.sibling;var or=D(C,oe,ve.value,U);if(or===null){oe===null&&(oe=Ve);break}e&&oe&&or.alternate===null&&t(C,oe),y=i(or,y,se),ne===null?ee=or:ne.sibling=or,ne=or,oe=Ve}if(ve.done)return r(C,oe),Ee&&hr(C,se),ee;if(oe===null){for(;!ve.done;se++,ve=_.next())ve=A(C,ve.value,U),ve!==null&&(y=i(ve,y,se),ne===null?ee=ve:ne.sibling=ve,ne=ve);return Ee&&hr(C,se),ee}for(oe=n(C,oe);!ve.done;se++,ve=_.next())ve=Q(oe,C,se,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&oe.delete(ve.key===null?se:ve.key),y=i(ve,y,se),ne===null?ee=ve:ne.sibling=ve,ne=ve);return e&&oe.forEach(function(Mm){return t(C,Mm)}),Ee&&hr(C,se),ee}function Oe(C,y,_,U){if(typeof _=="object"&&_!==null&&_.type===de&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case F:e:{for(var ee=_.key,ne=y;ne!==null;){if(ne.key===ee){if(ee=_.type,ee===de){if(ne.tag===7){r(C,ne.sibling),y=l(ne,_.props.children),y.return=C,C=y;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Pe&&Du(ee)===ne.type){r(C,ne.sibling),y=l(ne,_.props),y.ref=In(C,ne,_),y.return=C,C=y;break e}r(C,ne);break}else t(C,ne);ne=ne.sibling}_.type===de?(y=Sr(_.props.children,C.mode,U,_.key),y.return=C,C=y):(U=al(_.type,_.key,_.props,null,C.mode,U),U.ref=In(C,y,_),U.return=C,C=U)}return d(C);case re:e:{for(ne=_.key;y!==null;){if(y.key===ne)if(y.tag===4&&y.stateNode.containerInfo===_.containerInfo&&y.stateNode.implementation===_.implementation){r(C,y.sibling),y=l(y,_.children||[]),y.return=C,C=y;break e}else{r(C,y);break}else t(C,y);y=y.sibling}y=Sa(_,C.mode,U),y.return=C,C=y}return d(C);case Pe:return ne=_._init,Oe(C,y,ne(_._payload),U)}if(fn(_))return Y(C,y,_,U);if(te(_))return Z(C,y,_,U);Io(C,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,y!==null&&y.tag===6?(r(C,y.sibling),y=l(y,_),y.return=C,C=y):(r(C,y),y=ka(_,C.mode,U),y.return=C,C=y),d(C)):r(C,y)}return Oe}var Hr=zu(!0),Iu=zu(!1),Ao=Kt(null),Fo=null,Wr=null,Ls=null;function Ts(){Ls=Wr=Fo=null}function Os(e){var t=Ao.current;Ne(Ao),e._currentValue=t}function Ds(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gr(e,t){Fo=e,Ls=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tt=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Ls!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Fo===null)throw Error(a(308));Wr=e,Fo.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var gr=null;function zs(e){gr===null?gr=[e]:gr.push(e)}function Au(e,t,r,n){var l=t.interleaved;return l===null?(r.next=r,zs(t)):(r.next=l.next,l.next=r),t.interleaved=r,Ot(e,n)}function Ot(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Yt=!1;function Is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(xe&2)!==0){var l=n.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),n.pending=t,Ot(e,r)}return l=n.interleaved,l===null?(t.next=t,zs(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ot(e,r)}function Uo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xl(e,r)}}function Uu(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var l=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var d={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?l=i=d:i=i.next=d,r=r.next}while(r!==null);i===null?l=i=t:i=i.next=t}else l=i=t;r={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function $o(e,t,r,n){var l=e.updateQueue;Yt=!1;var i=l.firstBaseUpdate,d=l.lastBaseUpdate,x=l.shared.pending;if(x!==null){l.shared.pending=null;var v=x,R=v.next;v.next=null,d===null?i=R:d.next=R,d=v;var z=e.alternate;z!==null&&(z=z.updateQueue,x=z.lastBaseUpdate,x!==d&&(x===null?z.firstBaseUpdate=R:x.next=R,z.lastBaseUpdate=v))}if(i!==null){var A=l.baseState;d=0,z=R=v=null,x=i;do{var D=x.lane,Q=x.eventTime;if((n&D)===D){z!==null&&(z=z.next={eventTime:Q,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var Y=e,Z=x;switch(D=t,Q=r,Z.tag){case 1:if(Y=Z.payload,typeof Y=="function"){A=Y.call(Q,A,D);break e}A=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Z.payload,D=typeof Y=="function"?Y.call(Q,A,D):Y,D==null)break e;A=W({},A,D);break e;case 2:Yt=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,D=l.effects,D===null?l.effects=[x]:D.push(x))}else Q={eventTime:Q,lane:D,tag:x.tag,payload:x.payload,callback:x.callback,next:null},z===null?(R=z=Q,v=A):z=z.next=Q,d|=D;if(x=x.next,x===null){if(x=l.shared.pending,x===null)break;D=x,x=D.next,D.next=null,l.lastBaseUpdate=D,l.shared.pending=null}}while(!0);if(z===null&&(v=A),l.baseState=v,l.firstBaseUpdate=R,l.lastBaseUpdate=z,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);yr|=d,e.lanes=d,e.memoizedState=A}}function $u(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],l=n.callback;if(l!==null){if(n.callback=null,n=r,typeof l!="function")throw Error(a(191,l));l.call(n)}}}var An={},jt=Kt(An),Fn=Kt(An),Un=Kt(An);function xr(e){if(e===An)throw Error(a(174));return e}function As(e,t){switch(ke(Un,t),ke(Fn,e),ke(jt,An),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fl(t,e)}Ne(jt),ke(jt,t)}function Kr(){Ne(jt),Ne(Fn),Ne(Un)}function Bu(e){xr(Un.current);var t=xr(jt.current),r=Fl(t,e.type);t!==r&&(ke(Fn,e),ke(jt,r))}function Fs(e){Fn.current===e&&(Ne(jt),Ne(Fn))}var Re=Kt(0);function Bo(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 Us=[];function $s(){for(var e=0;e<Us.length;e++)Us[e]._workInProgressVersionPrimary=null;Us.length=0}var Vo=X.ReactCurrentDispatcher,Bs=X.ReactCurrentBatchConfig,vr=0,Me=null,Ae=null,$e=null,Ho=!1,$n=!1,Bn=0,Jp=0;function Qe(){throw Error(a(321))}function Vs(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!gt(e[r],t[r]))return!1;return!0}function Hs(e,t,r,n,l,i){if(vr=i,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vo.current=e===null||e.memoizedState===null?nm:om,e=r(n,l),$n){i=0;do{if($n=!1,Bn=0,25<=i)throw Error(a(301));i+=1,$e=Ae=null,t.updateQueue=null,Vo.current=lm,e=r(n,l)}while($n)}if(Vo.current=Ko,t=Ae!==null&&Ae.next!==null,vr=0,$e=Ae=Me=null,Ho=!1,t)throw Error(a(300));return e}function Ws(){var e=Bn!==0;return Bn=0,e}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Me.memoizedState=$e=e:$e=$e.next=e,$e}function ft(){if(Ae===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=$e===null?Me.memoizedState:$e.next;if(t!==null)$e=t,Ae=e;else{if(e===null)throw Error(a(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},$e===null?Me.memoizedState=$e=e:$e=$e.next=e}return $e}function Vn(e,t){return typeof t=="function"?t(e):t}function Gs(e){var t=ft(),r=t.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var n=Ae,l=n.baseQueue,i=r.pending;if(i!==null){if(l!==null){var d=l.next;l.next=i.next,i.next=d}n.baseQueue=l=i,r.pending=null}if(l!==null){i=l.next,n=n.baseState;var x=d=null,v=null,R=i;do{var z=R.lane;if((vr&z)===z)v!==null&&(v=v.next={lane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),n=R.hasEagerState?R.eagerState:e(n,R.action);else{var A={lane:z,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null};v===null?(x=v=A,d=n):v=v.next=A,Me.lanes|=z,yr|=z}R=R.next}while(R!==null&&R!==i);v===null?d=n:v.next=x,gt(n,t.memoizedState)||(tt=!0),t.memoizedState=n,t.baseState=d,t.baseQueue=v,r.lastRenderedState=n}if(e=r.interleaved,e!==null){l=e;do i=l.lane,Me.lanes|=i,yr|=i,l=l.next;while(l!==e)}else l===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ks(e){var t=ft(),r=t.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,l=r.pending,i=t.memoizedState;if(l!==null){r.pending=null;var d=l=l.next;do i=e(i,d.action),d=d.next;while(d!==l);gt(i,t.memoizedState)||(tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Vu(){}function Hu(e,t){var r=Me,n=ft(),l=t(),i=!gt(n.memoizedState,l);if(i&&(n.memoizedState=l,tt=!0),n=n.queue,Qs(Ku.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||$e!==null&&$e.memoizedState.tag&1){if(r.flags|=2048,Hn(9,Gu.bind(null,r,n,l,t),void 0,null),Be===null)throw Error(a(349));(vr&30)!==0||Wu(r,t,l)}return l}function Wu(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Gu(e,t,r,n){t.value=r,t.getSnapshot=n,Qu(t)&&qu(e)}function Ku(e,t,r){return r(function(){Qu(t)&&qu(e)})}function Qu(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!gt(e,r)}catch{return!0}}function qu(e){var t=Ot(e,1);t!==null&&wt(t,e,1,-1)}function Yu(e){var t=Et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t.queue=e,e=e.dispatch=rm.bind(null,Me,e),[t.memoizedState,e]}function Hn(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Me.updateQueue,t===null?(t={lastEffect:null,stores:null},Me.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Xu(){return ft().memoizedState}function Wo(e,t,r,n){var l=Et();Me.flags|=e,l.memoizedState=Hn(1|t,r,void 0,n===void 0?null:n)}function Go(e,t,r,n){var l=ft();n=n===void 0?null:n;var i=void 0;if(Ae!==null){var d=Ae.memoizedState;if(i=d.destroy,n!==null&&Vs(n,d.deps)){l.memoizedState=Hn(t,r,i,n);return}}Me.flags|=e,l.memoizedState=Hn(1|t,r,i,n)}function Zu(e,t){return Wo(8390656,8,e,t)}function Qs(e,t){return Go(2048,8,e,t)}function Ju(e,t){return Go(4,2,e,t)}function ec(e,t){return Go(4,4,e,t)}function tc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rc(e,t,r){return r=r!=null?r.concat([e]):null,Go(4,4,tc.bind(null,t,e),r)}function qs(){}function nc(e,t){var r=ft();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vs(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function oc(e,t){var r=ft();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Vs(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function lc(e,t,r){return(vr&21)===0?(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=r):(gt(r,t)||(r=Di(),Me.lanes|=r,yr|=r,e.baseState=!0),t)}function em(e,t){var r=be;be=r!==0&&4>r?r:4,e(!0);var n=Bs.transition;Bs.transition={};try{e(!1),t()}finally{be=r,Bs.transition=n}}function sc(){return ft().memoizedState}function tm(e,t,r){var n=tr(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ac(e))ic(t,r);else if(r=Au(e,t,r,n),r!==null){var l=Ze();wt(r,e,n,l),uc(r,t,n)}}function rm(e,t,r){var n=tr(e),l={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ac(e))ic(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var d=t.lastRenderedState,x=i(d,r);if(l.hasEagerState=!0,l.eagerState=x,gt(x,d)){var v=t.interleaved;v===null?(l.next=l,zs(t)):(l.next=v.next,v.next=l),t.interleaved=l;return}}catch{}finally{}r=Au(e,t,l,n),r!==null&&(l=Ze(),wt(r,e,n,l),uc(r,t,n))}}function ac(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function ic(e,t){$n=Ho=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function uc(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Xl(e,r)}}var Ko={readContext:dt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},nm={readContext:dt,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Zu,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Wo(4194308,4,tc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Wo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wo(4,2,e,t)},useMemo:function(e,t){var r=Et();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Et();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=tm.bind(null,Me,e),[n.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:qs,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=em.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Me,l=Et();if(Ee){if(r===void 0)throw Error(a(407));r=r()}else{if(r=t(),Be===null)throw Error(a(349));(vr&30)!==0||Wu(n,t,r)}l.memoizedState=r;var i={value:r,getSnapshot:t};return l.queue=i,Zu(Ku.bind(null,n,i,e),[e]),n.flags|=2048,Hn(9,Gu.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Et(),t=Be.identifierPrefix;if(Ee){var r=Tt,n=Lt;r=(n&~(1<<32-ht(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Bn++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Jp++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},om={readContext:dt,useCallback:nc,useContext:dt,useEffect:Qs,useImperativeHandle:rc,useInsertionEffect:Ju,useLayoutEffect:ec,useMemo:oc,useReducer:Gs,useRef:Xu,useState:function(){return Gs(Vn)},useDebugValue:qs,useDeferredValue:function(e){var t=ft();return lc(t,Ae.memoizedState,e)},useTransition:function(){var e=Gs(Vn)[0],t=ft().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Hu,useId:sc,unstable_isNewReconciler:!1},lm={readContext:dt,useCallback:nc,useContext:dt,useEffect:Qs,useImperativeHandle:rc,useInsertionEffect:Ju,useLayoutEffect:ec,useMemo:oc,useReducer:Ks,useRef:Xu,useState:function(){return Ks(Vn)},useDebugValue:qs,useDeferredValue:function(e){var t=ft();return Ae===null?t.memoizedState=e:lc(t,Ae.memoizedState,e)},useTransition:function(){var e=Ks(Vn)[0],t=ft().memoizedState;return[e,t]},useMutableSource:Vu,useSyncExternalStore:Hu,useId:sc,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ys(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:W({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Qo={isMounted:function(e){return(e=e._reactInternals)?dr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ze(),l=tr(e),i=Dt(n,l);i.payload=t,r!=null&&(i.callback=r),t=Xt(e,i,l),t!==null&&(wt(t,e,l,n),Uo(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ze(),l=tr(e),i=Dt(n,l);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Xt(e,i,l),t!==null&&(wt(t,e,l,n),Uo(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ze(),n=tr(e),l=Dt(r,n);l.tag=2,t!=null&&(l.callback=t),t=Xt(e,l,n),t!==null&&(wt(t,e,n,r),Uo(t,e,n))}};function cc(e,t,r,n,l,i,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,d):t.prototype&&t.prototype.isPureReactComponent?!Rn(r,n)||!Rn(l,i):!0}function dc(e,t,r){var n=!1,l=Qt,i=t.contextType;return typeof i=="object"&&i!==null?i=dt(i):(l=et(t)?pr:Ke.current,n=t.contextTypes,i=(n=n!=null)?Ur(e,l):Qt),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qo,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function fc(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function Xs(e,t,r,n){var l=e.stateNode;l.props=r,l.state=e.memoizedState,l.refs={},Is(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=dt(i):(i=et(t)?pr:Ke.current,l.context=Ur(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ys(e,t,i,r),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Qo.enqueueReplaceState(l,l.state,null),$o(e,r,l,n),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Qr(e,t){try{var r="",n=t;do r+=B(n),n=n.return;while(n);var l=r}catch(i){l=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Zs(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Js(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var sm=typeof WeakMap=="function"?WeakMap:Map;function pc(e,t,r){r=Dt(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){tl||(tl=!0,ma=n),Js(e,t)},r}function mc(e,t,r){r=Dt(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var l=t.value;r.payload=function(){return n(l)},r.callback=function(){Js(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Js(e,t),typeof n!="function"&&(Jt===null?Jt=new Set([this]):Jt.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),r}function hc(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new sm;var l=new Set;n.set(t,l)}else l=n.get(t),l===void 0&&(l=new Set,n.set(t,l));l.has(r)||(l.add(r),e=bm.bind(null,e,t,r),t.then(e,e))}function gc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xc(e,t,r,n,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Dt(-1,1),t.tag=2,Xt(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var am=X.ReactCurrentOwner,tt=!1;function Xe(e,t,r,n){t.child=e===null?Iu(t,null,r,n):Hr(t,e.child,r,n)}function vc(e,t,r,n,l){r=r.render;var i=t.ref;return Gr(t,l),n=Hs(e,t,r,n,i,l),r=Ws(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,zt(e,t,l)):(Ee&&r&&Cs(t),t.flags|=1,Xe(e,t,n,l),t.child)}function yc(e,t,r,n,l){if(e===null){var i=r.type;return typeof i=="function"&&!wa(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,bc(e,t,i,n,l)):(e=al(r.type,null,n,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var d=i.memoizedProps;if(r=r.compare,r=r!==null?r:Rn,r(d,n)&&e.ref===t.ref)return zt(e,t,l)}return t.flags|=1,e=nr(i,n),e.ref=t.ref,e.return=t,t.child=e}function bc(e,t,r,n,l){if(e!==null){var i=e.memoizedProps;if(Rn(i,n)&&e.ref===t.ref)if(tt=!1,t.pendingProps=n=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,zt(e,t,l)}return ea(e,t,r,n,l)}function wc(e,t,r){var n=t.pendingProps,l=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(Yr,it),it|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(Yr,it),it|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ke(Yr,it),it|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ke(Yr,it),it|=n;return Xe(e,t,l,r),t.child}function kc(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ea(e,t,r,n,l){var i=et(r)?pr:Ke.current;return i=Ur(t,i),Gr(t,l),r=Hs(e,t,r,n,i,l),n=Ws(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,zt(e,t,l)):(Ee&&n&&Cs(t),t.flags|=1,Xe(e,t,r,l),t.child)}function Sc(e,t,r,n,l){if(et(r)){var i=!0;Lo(t)}else i=!1;if(Gr(t,l),t.stateNode===null)Yo(e,t),dc(t,r,n),Xs(t,r,n,l),n=!0;else if(e===null){var d=t.stateNode,x=t.memoizedProps;d.props=x;var v=d.context,R=r.contextType;typeof R=="object"&&R!==null?R=dt(R):(R=et(r)?pr:Ke.current,R=Ur(t,R));var z=r.getDerivedStateFromProps,A=typeof z=="function"||typeof d.getSnapshotBeforeUpdate=="function";A||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==n||v!==R)&&fc(t,d,n,R),Yt=!1;var D=t.memoizedState;d.state=D,$o(t,n,d,l),v=t.memoizedState,x!==n||D!==v||Je.current||Yt?(typeof z=="function"&&(Ys(t,r,z,n),v=t.memoizedState),(x=Yt||cc(t,r,x,n,D,v,R))?(A||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=v),d.props=n,d.state=v,d.context=R,n=x):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{d=t.stateNode,Fu(e,t),x=t.memoizedProps,R=t.type===t.elementType?x:vt(t.type,x),d.props=R,A=t.pendingProps,D=d.context,v=r.contextType,typeof v=="object"&&v!==null?v=dt(v):(v=et(r)?pr:Ke.current,v=Ur(t,v));var Q=r.getDerivedStateFromProps;(z=typeof Q=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==A||D!==v)&&fc(t,d,n,v),Yt=!1,D=t.memoizedState,d.state=D,$o(t,n,d,l);var Y=t.memoizedState;x!==A||D!==Y||Je.current||Yt?(typeof Q=="function"&&(Ys(t,r,Q,n),Y=t.memoizedState),(R=Yt||cc(t,r,R,n,D,Y,v)||!1)?(z||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(n,Y,v),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(n,Y,v)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=Y),d.props=n,d.state=Y,d.context=v,n=R):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),n=!1)}return ta(e,t,r,n,i,l)}function ta(e,t,r,n,l,i){kc(e,t);var d=(t.flags&128)!==0;if(!n&&!d)return l&&_u(t,r,!1),zt(e,t,i);n=t.stateNode,am.current=t;var x=d&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&d?(t.child=Hr(t,e.child,null,i),t.child=Hr(t,null,x,i)):Xe(e,t,x,i),t.memoizedState=n.state,l&&_u(t,r,!0),t.child}function Nc(e){var t=e.stateNode;t.pendingContext?Eu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Eu(e,t.context,!1),As(e,t.containerInfo)}function jc(e,t,r,n,l){return Vr(),Ms(l),t.flags|=256,Xe(e,t,r,n),t.child}var ra={dehydrated:null,treeContext:null,retryLane:0};function na(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ec(e,t,r){var n=t.pendingProps,l=Re.current,i=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(l&2)!==0),x?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ke(Re,l&1),e===null)return Rs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=n.children,e=n.fallback,i?(n=t.mode,i=t.child,d={mode:"hidden",children:d},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=d):i=il(d,n,0,null),e=Sr(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=na(r),t.memoizedState=ra,e):oa(t,d));if(l=e.memoizedState,l!==null&&(x=l.dehydrated,x!==null))return im(e,t,d,n,x,l,r);if(i){i=n.fallback,d=t.mode,l=e.child,x=l.sibling;var v={mode:"hidden",children:n.children};return(d&1)===0&&t.child!==l?(n=t.child,n.childLanes=0,n.pendingProps=v,t.deletions=null):(n=nr(l,v),n.subtreeFlags=l.subtreeFlags&14680064),x!==null?i=nr(x,i):(i=Sr(i,d,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,d=e.child.memoizedState,d=d===null?na(r):{baseLanes:d.baseLanes|r,cachePool:null,transitions:d.transitions},i.memoizedState=d,i.childLanes=e.childLanes&~r,t.memoizedState=ra,n}return i=e.child,e=i.sibling,n=nr(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function oa(e,t){return t=il({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qo(e,t,r,n){return n!==null&&Ms(n),Hr(t,e.child,null,r),e=oa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function im(e,t,r,n,l,i,d){if(r)return t.flags&256?(t.flags&=-257,n=Zs(Error(a(422))),qo(e,t,d,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,l=t.mode,n=il({mode:"visible",children:n.children},l,0,null),i=Sr(i,l,d,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Hr(t,e.child,null,d),t.child.memoizedState=na(d),t.memoizedState=ra,i);if((t.mode&1)===0)return qo(e,t,d,null);if(l.data==="$!"){if(n=l.nextSibling&&l.nextSibling.dataset,n)var x=n.dgst;return n=x,i=Error(a(419)),n=Zs(i,n,void 0),qo(e,t,d,n)}if(x=(d&e.childLanes)!==0,tt||x){if(n=Be,n!==null){switch(d&-d){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(n.suspendedLanes|d))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Ot(e,l),wt(n,e,l,-1))}return ba(),n=Zs(Error(a(421))),qo(e,t,d,n)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=wm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,at=Gt(l.nextSibling),st=t,Ee=!0,xt=null,e!==null&&(ut[ct++]=Lt,ut[ct++]=Tt,ut[ct++]=mr,Lt=e.id,Tt=e.overflow,mr=t),t=oa(t,n.children),t.flags|=4096,t)}function Cc(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ds(e.return,t,r)}function la(e,t,r,n,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=l)}function _c(e,t,r){var n=t.pendingProps,l=n.revealOrder,i=n.tail;if(Xe(e,t,n.children,r),n=Re.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cc(e,r,t);else if(e.tag===19)Cc(e,r,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}n&=1}if(ke(Re,n),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(r=t.child,l=null;r!==null;)e=r.alternate,e!==null&&Bo(e)===null&&(l=r),r=r.sibling;r=l,r===null?(l=t.child,t.child=null):(l=r.sibling,r.sibling=null),la(t,!1,l,r,i);break;case"backwards":for(r=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Bo(e)===null){t.child=l;break}e=l.sibling,l.sibling=r,r=l,l=e}la(t,!0,r,null,i);break;case"together":la(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zt(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),yr|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,r=nr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=nr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function um(e,t,r){switch(t.tag){case 3:Nc(t),Vr();break;case 5:Bu(t);break;case 1:et(t.type)&&Lo(t);break;case 4:As(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,l=t.memoizedProps.value;ke(Ao,n._currentValue),n._currentValue=l;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(Re,Re.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Ec(e,t,r):(ke(Re,Re.current&1),e=zt(e,t,r),e!==null?e.sibling:null);ke(Re,Re.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return _c(e,t,r);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ke(Re,Re.current),n)break;return null;case 22:case 23:return t.lanes=0,wc(e,t,r)}return zt(e,t,r)}var Pc,sa,Rc,Mc;Pc=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},sa=function(){},Rc=function(e,t,r,n){var l=e.memoizedProps;if(l!==n){e=t.stateNode,xr(jt.current);var i=null;switch(r){case"input":l=Dl(e,l),n=Dl(e,n),i=[];break;case"select":l=W({},l,{value:void 0}),n=W({},n,{value:void 0}),i=[];break;case"textarea":l=Al(e,l),n=Al(e,n),i=[];break;default:typeof l.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Po)}Ul(r,n);var d;r=null;for(R in l)if(!n.hasOwnProperty(R)&&l.hasOwnProperty(R)&&l[R]!=null)if(R==="style"){var x=l[R];for(d in x)x.hasOwnProperty(d)&&(r||(r={}),r[d]="")}else R!=="dangerouslySetInnerHTML"&&R!=="children"&&R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(f.hasOwnProperty(R)?i||(i=[]):(i=i||[]).push(R,null));for(R in n){var v=n[R];if(x=l!=null?l[R]:void 0,n.hasOwnProperty(R)&&v!==x&&(v!=null||x!=null))if(R==="style")if(x){for(d in x)!x.hasOwnProperty(d)||v&&v.hasOwnProperty(d)||(r||(r={}),r[d]="");for(d in v)v.hasOwnProperty(d)&&x[d]!==v[d]&&(r||(r={}),r[d]=v[d])}else r||(i||(i=[]),i.push(R,r)),r=v;else R==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,x=x?x.__html:void 0,v!=null&&x!==v&&(i=i||[]).push(R,v)):R==="children"?typeof v!="string"&&typeof v!="number"||(i=i||[]).push(R,""+v):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&(f.hasOwnProperty(R)?(v!=null&&R==="onScroll"&&Se("scroll",e),i||x===v||(i=[])):(i=i||[]).push(R,v))}r&&(i=i||[]).push("style",r);var R=i;(t.updateQueue=R)&&(t.flags|=4)}},Mc=function(e,t,r,n){r!==n&&(t.flags|=4)};function Wn(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var l=e.child;l!==null;)r|=l.lanes|l.childLanes,n|=l.subtreeFlags&14680064,n|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)r|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function cm(e,t,r){var n=t.pendingProps;switch(_s(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return et(t.type)&&Mo(),qe(t),null;case 3:return n=t.stateNode,Kr(),Ne(Je),Ne(Ke),$s(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xt!==null&&(xa(xt),xt=null))),sa(e,t),qe(t),null;case 5:Fs(t);var l=xr(Un.current);if(r=t.type,e!==null&&t.stateNode!=null)Rc(e,t,r,n,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(a(166));return qe(t),null}if(e=xr(jt.current),zo(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Nt]=t,n[Dn]=i,e=(t.mode&1)!==0,r){case"dialog":Se("cancel",n),Se("close",n);break;case"iframe":case"object":case"embed":Se("load",n);break;case"video":case"audio":for(l=0;l<Ln.length;l++)Se(Ln[l],n);break;case"source":Se("error",n);break;case"img":case"image":case"link":Se("error",n),Se("load",n);break;case"details":Se("toggle",n);break;case"input":di(n,i),Se("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Se("invalid",n);break;case"textarea":mi(n,i),Se("invalid",n)}Ul(r,i),l=null;for(var d in i)if(i.hasOwnProperty(d)){var x=i[d];d==="children"?typeof x=="string"?n.textContent!==x&&(i.suppressHydrationWarning!==!0&&_o(n.textContent,x,e),l=["children",x]):typeof x=="number"&&n.textContent!==""+x&&(i.suppressHydrationWarning!==!0&&_o(n.textContent,x,e),l=["children",""+x]):f.hasOwnProperty(d)&&x!=null&&d==="onScroll"&&Se("scroll",n)}switch(r){case"input":oo(n),pi(n,i,!0);break;case"textarea":oo(n),gi(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Po)}n=l,t.updateQueue=n,n!==null&&(t.flags|=4)}else{d=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xi(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=d.createElement(r,{is:n.is}):(e=d.createElement(r),r==="select"&&(d=e,n.multiple?d.multiple=!0:n.size&&(d.size=n.size))):e=d.createElementNS(e,r),e[Nt]=t,e[Dn]=n,Pc(e,t,!1,!1),t.stateNode=e;e:{switch(d=$l(r,n),r){case"dialog":Se("cancel",e),Se("close",e),l=n;break;case"iframe":case"object":case"embed":Se("load",e),l=n;break;case"video":case"audio":for(l=0;l<Ln.length;l++)Se(Ln[l],e);l=n;break;case"source":Se("error",e),l=n;break;case"img":case"image":case"link":Se("error",e),Se("load",e),l=n;break;case"details":Se("toggle",e),l=n;break;case"input":di(e,n),l=Dl(e,n),Se("invalid",e);break;case"option":l=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},l=W({},n,{value:void 0}),Se("invalid",e);break;case"textarea":mi(e,n),l=Al(e,n),Se("invalid",e);break;default:l=n}Ul(r,l),x=l;for(i in x)if(x.hasOwnProperty(i)){var v=x[i];i==="style"?bi(e,v):i==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&vi(e,v)):i==="children"?typeof v=="string"?(r!=="textarea"||v!=="")&&pn(e,v):typeof v=="number"&&pn(e,""+v):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?v!=null&&i==="onScroll"&&Se("scroll",e):v!=null&&G(e,i,v,d))}switch(r){case"input":oo(e),pi(e,n,!1);break;case"textarea":oo(e),gi(e);break;case"option":n.value!=null&&e.setAttribute("value",""+fe(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?_r(e,!!n.multiple,i,!1):n.defaultValue!=null&&_r(e,!!n.multiple,n.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Po)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Mc(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(a(166));if(r=xr(Un.current),xr(jt.current),zo(t)){if(n=t.stateNode,r=t.memoizedProps,n[Nt]=t,(i=n.nodeValue!==r)&&(e=st,e!==null))switch(e.tag){case 3:_o(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_o(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Nt]=t,t.stateNode=n}return qe(t),null;case 13:if(Ne(Re),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&at!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ou(),Vr(),t.flags|=98560,i=!1;else if(i=zo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));i[Nt]=t}else Vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else xt!==null&&(xa(xt),xt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Fe===0&&(Fe=3):ba())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Kr(),sa(e,t),e===null&&Tn(t.stateNode.containerInfo),qe(t),null;case 10:return Os(t.type._context),qe(t),null;case 17:return et(t.type)&&Mo(),qe(t),null;case 19:if(Ne(Re),i=t.memoizedState,i===null)return qe(t),null;if(n=(t.flags&128)!==0,d=i.rendering,d===null)if(n)Wn(i,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Bo(e),d!==null){for(t.flags|=128,Wn(i,!1),n=d.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,d=i.alternate,d===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=d.childLanes,i.lanes=d.lanes,i.child=d.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=d.memoizedProps,i.memoizedState=d.memoizedState,i.updateQueue=d.updateQueue,i.type=d.type,e=d.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(Re,Re.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>Xr&&(t.flags|=128,n=!0,Wn(i,!1),t.lanes=4194304)}else{if(!n)if(e=Bo(d),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Wn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ee)return qe(t),null}else 2*Te()-i.renderingStartTime>Xr&&r!==1073741824&&(t.flags|=128,n=!0,Wn(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(r=i.last,r!==null?r.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,r=Re.current,ke(Re,n?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return ya(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(it&1073741824)!==0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function dm(e,t){switch(_s(t),t.tag){case 1:return et(t.type)&&Mo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kr(),Ne(Je),Ne(Ke),$s(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Fs(t),null;case 13:if(Ne(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(Re),null;case 4:return Kr(),null;case 10:return Os(t.type._context),null;case 22:case 23:return ya(),null;case 24:return null;default:return null}}var Xo=!1,Ye=!1,fm=typeof WeakSet=="function"?WeakSet:Set,q=null;function qr(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Le(e,t,n)}else r.current=null}function aa(e,t,r){try{r()}catch(n){Le(e,t,n)}}var Lc=!1;function pm(e,t){if(ys=xo,e=cu(),ds(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var l=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var d=0,x=-1,v=-1,R=0,z=0,A=e,D=null;t:for(;;){for(var Q;A!==r||l!==0&&A.nodeType!==3||(x=d+l),A!==i||n!==0&&A.nodeType!==3||(v=d+n),A.nodeType===3&&(d+=A.nodeValue.length),(Q=A.firstChild)!==null;)D=A,A=Q;for(;;){if(A===e)break t;if(D===r&&++R===l&&(x=d),D===i&&++z===n&&(v=d),(Q=A.nextSibling)!==null)break;A=D,D=A.parentNode}A=Q}r=x===-1||v===-1?null:{start:x,end:v}}else r=null}r=r||{start:0,end:0}}else r=null;for(bs={focusedElem:e,selectionRange:r},xo=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var Y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var Z=Y.memoizedProps,Oe=Y.memoizedState,C=t.stateNode,y=C.getSnapshotBeforeUpdate(t.elementType===t.type?Z:vt(t.type,Z),Oe);C.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(U){Le(t,t.return,U)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return Y=Lc,Lc=!1,Y}function Gn(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var l=n=n.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&aa(t,r,i)}l=l.next}while(l!==n)}}function Zo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ia(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Tc(e){var t=e.alternate;t!==null&&(e.alternate=null,Tc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[Dn],delete t[Ns],delete t[qp],delete t[Yp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function Dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(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.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 ua(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Po));else if(n!==4&&(e=e.child,e!==null))for(ua(e,t,r),e=e.sibling;e!==null;)ua(e,t,r),e=e.sibling}function ca(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ca(e,t,r),e=e.sibling;e!==null;)ca(e,t,r),e=e.sibling}var He=null,yt=!1;function Zt(e,t,r){for(r=r.child;r!==null;)zc(e,t,r),r=r.sibling}function zc(e,t,r){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(co,r)}catch{}switch(r.tag){case 5:Ye||qr(r,t);case 6:var n=He,l=yt;He=null,Zt(e,t,r),He=n,yt=l,He!==null&&(yt?(e=He,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):He.removeChild(r.stateNode));break;case 18:He!==null&&(yt?(e=He,r=r.stateNode,e.nodeType===8?Ss(e.parentNode,r):e.nodeType===1&&Ss(e,r),Nn(e)):Ss(He,r.stateNode));break;case 4:n=He,l=yt,He=r.stateNode.containerInfo,yt=!0,Zt(e,t,r),He=n,yt=l;break;case 0:case 11:case 14:case 15:if(!Ye&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){l=n=n.next;do{var i=l,d=i.destroy;i=i.tag,d!==void 0&&((i&2)!==0||(i&4)!==0)&&aa(r,t,d),l=l.next}while(l!==n)}Zt(e,t,r);break;case 1:if(!Ye&&(qr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(x){Le(r,t,x)}Zt(e,t,r);break;case 21:Zt(e,t,r);break;case 22:r.mode&1?(Ye=(n=Ye)||r.memoizedState!==null,Zt(e,t,r),Ye=n):Zt(e,t,r);break;default:Zt(e,t,r)}}function Ic(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new fm),t.forEach(function(n){var l=km.bind(null,e,n);r.has(n)||(r.add(n),n.then(l,l))})}}function bt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var l=r[n];try{var i=e,d=t,x=d;e:for(;x!==null;){switch(x.tag){case 5:He=x.stateNode,yt=!1;break e;case 3:He=x.stateNode.containerInfo,yt=!0;break e;case 4:He=x.stateNode.containerInfo,yt=!0;break e}x=x.return}if(He===null)throw Error(a(160));zc(i,d,l),He=null,yt=!1;var v=l.alternate;v!==null&&(v.return=null),l.return=null}catch(R){Le(l,t,R)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ac(t,e),t=t.sibling}function Ac(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),Ct(e),n&4){try{Gn(3,e,e.return),Zo(3,e)}catch(Z){Le(e,e.return,Z)}try{Gn(5,e,e.return)}catch(Z){Le(e,e.return,Z)}}break;case 1:bt(t,e),Ct(e),n&512&&r!==null&&qr(r,r.return);break;case 5:if(bt(t,e),Ct(e),n&512&&r!==null&&qr(r,r.return),e.flags&32){var l=e.stateNode;try{pn(l,"")}catch(Z){Le(e,e.return,Z)}}if(n&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,d=r!==null?r.memoizedProps:i,x=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{x==="input"&&i.type==="radio"&&i.name!=null&&fi(l,i),$l(x,d);var R=$l(x,i);for(d=0;d<v.length;d+=2){var z=v[d],A=v[d+1];z==="style"?bi(l,A):z==="dangerouslySetInnerHTML"?vi(l,A):z==="children"?pn(l,A):G(l,z,A,R)}switch(x){case"input":zl(l,i);break;case"textarea":hi(l,i);break;case"select":var D=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var Q=i.value;Q!=null?_r(l,!!i.multiple,Q,!1):D!==!!i.multiple&&(i.defaultValue!=null?_r(l,!!i.multiple,i.defaultValue,!0):_r(l,!!i.multiple,i.multiple?[]:"",!1))}l[Dn]=i}catch(Z){Le(e,e.return,Z)}}break;case 6:if(bt(t,e),Ct(e),n&4){if(e.stateNode===null)throw Error(a(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(Z){Le(e,e.return,Z)}}break;case 3:if(bt(t,e),Ct(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Nn(t.containerInfo)}catch(Z){Le(e,e.return,Z)}break;case 4:bt(t,e),Ct(e);break;case 13:bt(t,e),Ct(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(pa=Te())),n&4&&Ic(e);break;case 22:if(z=r!==null&&r.memoizedState!==null,e.mode&1?(Ye=(R=Ye)||z,bt(t,e),Ye=R):bt(t,e),Ct(e),n&8192){if(R=e.memoizedState!==null,(e.stateNode.isHidden=R)&&!z&&(e.mode&1)!==0)for(q=e,z=e.child;z!==null;){for(A=q=z;q!==null;){switch(D=q,Q=D.child,D.tag){case 0:case 11:case 14:case 15:Gn(4,D,D.return);break;case 1:qr(D,D.return);var Y=D.stateNode;if(typeof Y.componentWillUnmount=="function"){n=D,r=D.return;try{t=n,Y.props=t.memoizedProps,Y.state=t.memoizedState,Y.componentWillUnmount()}catch(Z){Le(n,r,Z)}}break;case 5:qr(D,D.return);break;case 22:if(D.memoizedState!==null){$c(A);continue}}Q!==null?(Q.return=D,q=Q):$c(A)}z=z.sibling}e:for(z=null,A=e;;){if(A.tag===5){if(z===null){z=A;try{l=A.stateNode,R?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(x=A.stateNode,v=A.memoizedProps.style,d=v!=null&&v.hasOwnProperty("display")?v.display:null,x.style.display=yi("display",d))}catch(Z){Le(e,e.return,Z)}}}else if(A.tag===6){if(z===null)try{A.stateNode.nodeValue=R?"":A.memoizedProps}catch(Z){Le(e,e.return,Z)}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===e)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===e)break e;for(;A.sibling===null;){if(A.return===null||A.return===e)break e;z===A&&(z=null),A=A.return}z===A&&(z=null),A.sibling.return=A.return,A=A.sibling}}break;case 19:bt(t,e),Ct(e),n&4&&Ic(e);break;case 21:break;default:bt(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Oc(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var l=n.stateNode;n.flags&32&&(pn(l,""),n.flags&=-33);var i=Dc(e);ca(e,i,l);break;case 3:case 4:var d=n.stateNode.containerInfo,x=Dc(e);ua(e,x,d);break;default:throw Error(a(161))}}catch(v){Le(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mm(e,t,r){q=e,Fc(e)}function Fc(e,t,r){for(var n=(e.mode&1)!==0;q!==null;){var l=q,i=l.child;if(l.tag===22&&n){var d=l.memoizedState!==null||Xo;if(!d){var x=l.alternate,v=x!==null&&x.memoizedState!==null||Ye;x=Xo;var R=Ye;if(Xo=d,(Ye=v)&&!R)for(q=l;q!==null;)d=q,v=d.child,d.tag===22&&d.memoizedState!==null?Bc(l):v!==null?(v.return=d,q=v):Bc(l);for(;i!==null;)q=i,Fc(i),i=i.sibling;q=l,Xo=x,Ye=R}Uc(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,q=i):Uc(e)}}function Uc(e){for(;q!==null;){var t=q;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||Zo(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ye)if(r===null)n.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:vt(t.type,r.memoizedProps);n.componentDidUpdate(l,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&$u(t,i,n);break;case 3:var d=t.updateQueue;if(d!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}$u(t,d,r)}break;case 5:var x=t.stateNode;if(r===null&&t.flags&4){r=x;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&r.focus();break;case"img":v.src&&(r.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var R=t.alternate;if(R!==null){var z=R.memoizedState;if(z!==null){var A=z.dehydrated;A!==null&&Nn(A)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Ye||t.flags&512&&ia(t)}catch(D){Le(t,t.return,D)}}if(t===e){q=null;break}if(r=t.sibling,r!==null){r.return=t.return,q=r;break}q=t.return}}function $c(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,q=r;break}q=t.return}}function Bc(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Zo(4,t)}catch(v){Le(t,r,v)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var l=t.return;try{n.componentDidMount()}catch(v){Le(t,l,v)}}var i=t.return;try{ia(t)}catch(v){Le(t,i,v)}break;case 5:var d=t.return;try{ia(t)}catch(v){Le(t,d,v)}}}catch(v){Le(t,t.return,v)}if(t===e){q=null;break}var x=t.sibling;if(x!==null){x.return=t.return,q=x;break}q=t.return}}var hm=Math.ceil,Jo=X.ReactCurrentDispatcher,da=X.ReactCurrentOwner,pt=X.ReactCurrentBatchConfig,xe=0,Be=null,De=null,We=0,it=0,Yr=Kt(0),Fe=0,Kn=null,yr=0,el=0,fa=0,Qn=null,rt=null,pa=0,Xr=1/0,It=null,tl=!1,ma=null,Jt=null,rl=!1,er=null,nl=0,qn=0,ha=null,ol=-1,ll=0;function Ze(){return(xe&6)!==0?Te():ol!==-1?ol:ol=Te()}function tr(e){return(e.mode&1)===0?1:(xe&2)!==0&&We!==0?We&-We:Zp.transition!==null?(ll===0&&(ll=Di()),ll):(e=be,e!==0||(e=window.event,e=e===void 0?16:Hi(e.type)),e)}function wt(e,t,r,n){if(50<qn)throw qn=0,ha=null,Error(a(185));yn(e,r,n),((xe&2)===0||e!==Be)&&(e===Be&&((xe&2)===0&&(el|=r),Fe===4&&rr(e,We)),nt(e,n),r===1&&xe===0&&(t.mode&1)===0&&(Xr=Te()+500,To&&qt()))}function nt(e,t){var r=e.callbackNode;Zf(e,t);var n=mo(e,e===Be?We:0);if(n===0)r!==null&&Li(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Li(r),t===1)e.tag===0?Xp(Hc.bind(null,e)):Pu(Hc.bind(null,e)),Kp(function(){(xe&6)===0&&qt()}),r=null;else{switch(zi(n)){case 1:r=Ql;break;case 4:r=Ti;break;case 16:r=uo;break;case 536870912:r=Oi;break;default:r=uo}r=Zc(r,Vc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Vc(e,t){if(ol=-1,ll=0,(xe&6)!==0)throw Error(a(327));var r=e.callbackNode;if(Zr()&&e.callbackNode!==r)return null;var n=mo(e,e===Be?We:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=sl(e,n);else{t=n;var l=xe;xe|=2;var i=Gc();(Be!==e||We!==t)&&(It=null,Xr=Te()+500,wr(e,t));do try{vm();break}catch(x){Wc(e,x)}while(!0);Ts(),Jo.current=i,xe=l,De!==null?t=0:(Be=null,We=0,t=Fe)}if(t!==0){if(t===2&&(l=ql(e),l!==0&&(n=l,t=ga(e,l))),t===1)throw r=Kn,wr(e,0),rr(e,n),nt(e,Te()),r;if(t===6)rr(e,n);else{if(l=e.current.alternate,(n&30)===0&&!gm(l)&&(t=sl(e,n),t===2&&(i=ql(e),i!==0&&(n=i,t=ga(e,i))),t===1))throw r=Kn,wr(e,0),rr(e,n),nt(e,Te()),r;switch(e.finishedWork=l,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:kr(e,rt,It);break;case 3:if(rr(e,n),(n&130023424)===n&&(t=pa+500-Te(),10<t)){if(mo(e,0)!==0)break;if(l=e.suspendedLanes,(l&n)!==n){Ze(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ks(kr.bind(null,e,rt,It),t);break}kr(e,rt,It);break;case 4:if(rr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,l=-1;0<n;){var d=31-ht(n);i=1<<d,d=t[d],d>l&&(l=d),n&=~i}if(n=l,n=Te()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*hm(n/1960))-n,10<n){e.timeoutHandle=ks(kr.bind(null,e,rt,It),n);break}kr(e,rt,It);break;case 5:kr(e,rt,It);break;default:throw Error(a(329))}}}return nt(e,Te()),e.callbackNode===r?Vc.bind(null,e):null}function ga(e,t){var r=Qn;return e.current.memoizedState.isDehydrated&&(wr(e,t).flags|=256),e=sl(e,t),e!==2&&(t=rt,rt=r,t!==null&&xa(t)),e}function xa(e){rt===null?rt=e:rt.push.apply(rt,e)}function gm(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var l=r[n],i=l.getSnapshot;l=l.value;try{if(!gt(i(),l))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 rr(e,t){for(t&=~fa,t&=~el,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ht(t),n=1<<r;e[r]=-1,t&=~n}}function Hc(e){if((xe&6)!==0)throw Error(a(327));Zr();var t=mo(e,0);if((t&1)===0)return nt(e,Te()),null;var r=sl(e,t);if(e.tag!==0&&r===2){var n=ql(e);n!==0&&(t=n,r=ga(e,n))}if(r===1)throw r=Kn,wr(e,0),rr(e,t),nt(e,Te()),r;if(r===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,rt,It),nt(e,Te()),null}function va(e,t){var r=xe;xe|=1;try{return e(t)}finally{xe=r,xe===0&&(Xr=Te()+500,To&&qt())}}function br(e){er!==null&&er.tag===0&&(xe&6)===0&&Zr();var t=xe;xe|=1;var r=pt.transition,n=be;try{if(pt.transition=null,be=1,e)return e()}finally{be=n,pt.transition=r,xe=t,(xe&6)===0&&qt()}}function ya(){it=Yr.current,Ne(Yr)}function wr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Gp(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(_s(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Mo();break;case 3:Kr(),Ne(Je),Ne(Ke),$s();break;case 5:Fs(n);break;case 4:Kr();break;case 13:Ne(Re);break;case 19:Ne(Re);break;case 10:Os(n.type._context);break;case 22:case 23:ya()}r=r.return}if(Be=e,De=e=nr(e.current,null),We=it=t,Fe=0,Kn=null,fa=el=yr=0,rt=Qn=null,gr!==null){for(t=0;t<gr.length;t++)if(r=gr[t],n=r.interleaved,n!==null){r.interleaved=null;var l=n.next,i=r.pending;if(i!==null){var d=i.next;i.next=l,n.next=d}r.pending=n}gr=null}return e}function Wc(e,t){do{var r=De;try{if(Ts(),Vo.current=Ko,Ho){for(var n=Me.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}Ho=!1}if(vr=0,$e=Ae=Me=null,$n=!1,Bn=0,da.current=null,r===null||r.return===null){Fe=1,Kn=t,De=null;break}e:{var i=e,d=r.return,x=r,v=t;if(t=We,x.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var R=v,z=x,A=z.tag;if((z.mode&1)===0&&(A===0||A===11||A===15)){var D=z.alternate;D?(z.updateQueue=D.updateQueue,z.memoizedState=D.memoizedState,z.lanes=D.lanes):(z.updateQueue=null,z.memoizedState=null)}var Q=gc(d);if(Q!==null){Q.flags&=-257,xc(Q,d,x,i,t),Q.mode&1&&hc(i,R,t),t=Q,v=R;var Y=t.updateQueue;if(Y===null){var Z=new Set;Z.add(v),t.updateQueue=Z}else Y.add(v);break e}else{if((t&1)===0){hc(i,R,t),ba();break e}v=Error(a(426))}}else if(Ee&&x.mode&1){var Oe=gc(d);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),xc(Oe,d,x,i,t),Ms(Qr(v,x));break e}}i=v=Qr(v,x),Fe!==4&&(Fe=2),Qn===null?Qn=[i]:Qn.push(i),i=d;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=pc(i,v,t);Uu(i,C);break e;case 1:x=v;var y=i.type,_=i.stateNode;if((i.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Jt===null||!Jt.has(_)))){i.flags|=65536,t&=-t,i.lanes|=t;var U=mc(i,x,t);Uu(i,U);break e}}i=i.return}while(i!==null)}Qc(r)}catch(ee){t=ee,De===r&&r!==null&&(De=r=r.return);continue}break}while(!0)}function Gc(){var e=Jo.current;return Jo.current=Ko,e===null?Ko:e}function ba(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),Be===null||(yr&268435455)===0&&(el&268435455)===0||rr(Be,We)}function sl(e,t){var r=xe;xe|=2;var n=Gc();(Be!==e||We!==t)&&(It=null,wr(e,t));do try{xm();break}catch(l){Wc(e,l)}while(!0);if(Ts(),xe=r,Jo.current=n,De!==null)throw Error(a(261));return Be=null,We=0,Fe}function xm(){for(;De!==null;)Kc(De)}function vm(){for(;De!==null&&!Vf();)Kc(De)}function Kc(e){var t=Xc(e.alternate,e,it);e.memoizedProps=e.pendingProps,t===null?Qc(e):De=t,da.current=null}function Qc(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=cm(r,t,it),r!==null){De=r;return}}else{if(r=dm(r,t),r!==null){r.flags&=32767,De=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,De=null;return}}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Fe===0&&(Fe=5)}function kr(e,t,r){var n=be,l=pt.transition;try{pt.transition=null,be=1,ym(e,t,r,n)}finally{pt.transition=l,be=n}return null}function ym(e,t,r,n){do Zr();while(er!==null);if((xe&6)!==0)throw Error(a(327));r=e.finishedWork;var l=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(Jf(e,i),e===Be&&(De=Be=null,We=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||rl||(rl=!0,Zc(uo,function(){return Zr(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=pt.transition,pt.transition=null;var d=be;be=1;var x=xe;xe|=4,da.current=null,pm(e,r),Ac(r,e),Fp(bs),xo=!!ys,bs=ys=null,e.current=r,mm(r),Hf(),xe=x,be=d,pt.transition=i}else e.current=r;if(rl&&(rl=!1,er=e,nl=l),i=e.pendingLanes,i===0&&(Jt=null),Kf(r.stateNode),nt(e,Te()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)l=t[r],n(l.value,{componentStack:l.stack,digest:l.digest});if(tl)throw tl=!1,e=ma,ma=null,e;return(nl&1)!==0&&e.tag!==0&&Zr(),i=e.pendingLanes,(i&1)!==0?e===ha?qn++:(qn=0,ha=e):qn=0,qt(),null}function Zr(){if(er!==null){var e=zi(nl),t=pt.transition,r=be;try{if(pt.transition=null,be=16>e?16:e,er===null)var n=!1;else{if(e=er,er=null,nl=0,(xe&6)!==0)throw Error(a(331));var l=xe;for(xe|=4,q=e.current;q!==null;){var i=q,d=i.child;if((q.flags&16)!==0){var x=i.deletions;if(x!==null){for(var v=0;v<x.length;v++){var R=x[v];for(q=R;q!==null;){var z=q;switch(z.tag){case 0:case 11:case 15:Gn(8,z,i)}var A=z.child;if(A!==null)A.return=z,q=A;else for(;q!==null;){z=q;var D=z.sibling,Q=z.return;if(Tc(z),z===R){q=null;break}if(D!==null){D.return=Q,q=D;break}q=Q}}}var Y=i.alternate;if(Y!==null){var Z=Y.child;if(Z!==null){Y.child=null;do{var Oe=Z.sibling;Z.sibling=null,Z=Oe}while(Z!==null)}}q=i}}if((i.subtreeFlags&2064)!==0&&d!==null)d.return=i,q=d;else e:for(;q!==null;){if(i=q,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Gn(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,q=C;break e}q=i.return}}var y=e.current;for(q=y;q!==null;){d=q;var _=d.child;if((d.subtreeFlags&2064)!==0&&_!==null)_.return=d,q=_;else e:for(d=y;q!==null;){if(x=q,(x.flags&2048)!==0)try{switch(x.tag){case 0:case 11:case 15:Zo(9,x)}}catch(ee){Le(x,x.return,ee)}if(x===d){q=null;break e}var U=x.sibling;if(U!==null){U.return=x.return,q=U;break e}q=x.return}}if(xe=l,qt(),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(co,e)}catch{}n=!0}return n}finally{be=r,pt.transition=t}}return!1}function qc(e,t,r){t=Qr(r,t),t=pc(e,t,1),e=Xt(e,t,1),t=Ze(),e!==null&&(yn(e,1,t),nt(e,t))}function Le(e,t,r){if(e.tag===3)qc(e,e,r);else for(;t!==null;){if(t.tag===3){qc(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Jt===null||!Jt.has(n))){e=Qr(r,e),e=mc(t,e,1),t=Xt(t,e,1),e=Ze(),t!==null&&(yn(t,1,e),nt(t,e));break}}t=t.return}}function bm(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&r,Be===e&&(We&r)===r&&(Fe===4||Fe===3&&(We&130023424)===We&&500>Te()-pa?wr(e,0):fa|=r),nt(e,t)}function Yc(e,t){t===0&&((e.mode&1)===0?t=1:(t=po,po<<=1,(po&130023424)===0&&(po=4194304)));var r=Ze();e=Ot(e,t),e!==null&&(yn(e,t,r),nt(e,r))}function wm(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Yc(e,r)}function km(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,l=e.memoizedState;l!==null&&(r=l.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}n!==null&&n.delete(t),Yc(e,r)}var Xc;Xc=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)tt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return tt=!1,um(e,t,r);tt=(e.flags&131072)!==0}else tt=!1,Ee&&(t.flags&1048576)!==0&&Ru(t,Do,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yo(e,t),e=t.pendingProps;var l=Ur(t,Ke.current);Gr(t,r),l=Hs(null,t,n,e,l,r);var i=Ws();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(n)?(i=!0,Lo(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Is(t),l.updater=Qo,t.stateNode=l,l._reactInternals=t,Xs(t,n,e,r),t=ta(null,t,n,!0,i,r)):(t.tag=0,Ee&&i&&Cs(t),Xe(null,t,l,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,l=n._init,n=l(n._payload),t.type=n,l=t.tag=Nm(n),e=vt(n,e),l){case 0:t=ea(null,t,n,e,r);break e;case 1:t=Sc(null,t,n,e,r);break e;case 11:t=vc(null,t,n,e,r);break e;case 14:t=yc(null,t,n,vt(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:vt(n,l),ea(e,t,n,l,r);case 1:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:vt(n,l),Sc(e,t,n,l,r);case 3:e:{if(Nc(t),e===null)throw Error(a(387));n=t.pendingProps,i=t.memoizedState,l=i.element,Fu(e,t),$o(t,n,null,r);var d=t.memoizedState;if(n=d.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qr(Error(a(423)),t),t=jc(e,t,n,r,l);break e}else if(n!==l){l=Qr(Error(a(424)),t),t=jc(e,t,n,r,l);break e}else for(at=Gt(t.stateNode.containerInfo.firstChild),st=t,Ee=!0,xt=null,r=Iu(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vr(),n===l){t=zt(e,t,r);break e}Xe(e,t,n,r)}t=t.child}return t;case 5:return Bu(t),e===null&&Rs(t),n=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,d=l.children,ws(n,l)?d=null:i!==null&&ws(n,i)&&(t.flags|=32),kc(e,t),Xe(e,t,d,r),t.child;case 6:return e===null&&Rs(t),null;case 13:return Ec(e,t,r);case 4:return As(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Hr(t,null,n,r):Xe(e,t,n,r),t.child;case 11:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:vt(n,l),vc(e,t,n,l,r);case 7:return Xe(e,t,t.pendingProps,r),t.child;case 8:return Xe(e,t,t.pendingProps.children,r),t.child;case 12:return Xe(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,l=t.pendingProps,i=t.memoizedProps,d=l.value,ke(Ao,n._currentValue),n._currentValue=d,i!==null)if(gt(i.value,d)){if(i.children===l.children&&!Je.current){t=zt(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var x=i.dependencies;if(x!==null){d=i.child;for(var v=x.firstContext;v!==null;){if(v.context===n){if(i.tag===1){v=Dt(-1,r&-r),v.tag=2;var R=i.updateQueue;if(R!==null){R=R.shared;var z=R.pending;z===null?v.next=v:(v.next=z.next,z.next=v),R.pending=v}}i.lanes|=r,v=i.alternate,v!==null&&(v.lanes|=r),Ds(i.return,r,t),x.lanes|=r;break}v=v.next}}else if(i.tag===10)d=i.type===t.type?null:i.child;else if(i.tag===18){if(d=i.return,d===null)throw Error(a(341));d.lanes|=r,x=d.alternate,x!==null&&(x.lanes|=r),Ds(d,r,t),d=i.sibling}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===t){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}Xe(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,n=t.pendingProps.children,Gr(t,r),l=dt(l),n=n(l),t.flags|=1,Xe(e,t,n,r),t.child;case 14:return n=t.type,l=vt(n,t.pendingProps),l=vt(n.type,l),yc(e,t,n,l,r);case 15:return bc(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,l=t.pendingProps,l=t.elementType===n?l:vt(n,l),Yo(e,t),t.tag=1,et(n)?(e=!0,Lo(t)):e=!1,Gr(t,r),dc(t,n,l),Xs(t,n,l,r),ta(null,t,n,!0,e,r);case 19:return _c(e,t,r);case 22:return wc(e,t,r)}throw Error(a(156,t.tag))};function Zc(e,t){return Mi(e,t)}function Sm(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,r,n){return new Sm(e,t,r,n)}function wa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nm(e){if(typeof e=="function")return wa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ce)return 11;if(e===Ie)return 14}return 2}function nr(e,t){var r=e.alternate;return r===null?(r=mt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function al(e,t,r,n,l,i){var d=2;if(n=e,typeof e=="function")wa(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case de:return Sr(r.children,l,i,t);case we:d=8,l|=8;break;case I:return e=mt(12,r,t,l|2),e.elementType=I,e.lanes=i,e;case ze:return e=mt(13,r,t,l),e.elementType=ze,e.lanes=i,e;case _e:return e=mt(19,r,t,l),e.elementType=_e,e.lanes=i,e;case ye:return il(r,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ue:d=10;break e;case Ce:d=9;break e;case ce:d=11;break e;case Ie:d=14;break e;case Pe:d=16,n=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=mt(d,r,t,l),t.elementType=e,t.type=n,t.lanes=i,t}function Sr(e,t,r,n){return e=mt(7,e,n,t),e.lanes=r,e}function il(e,t,r,n){return e=mt(22,e,n,t),e.elementType=ye,e.lanes=r,e.stateNode={isHidden:!1},e}function ka(e,t,r){return e=mt(6,e,null,t),e.lanes=r,e}function Sa(e,t,r){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jm(e,t,r,n,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yl(0),this.expirationTimes=Yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yl(0),this.identifierPrefix=n,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Na(e,t,r,n,l,i,d,x,v){return e=new jm(e,t,r,x,v),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Is(i),e}function Em(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:re,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Jc(e){if(!e)return Qt;e=e._reactInternals;e:{if(dr(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var r=e.type;if(et(r))return Cu(e,r,t)}return t}function ed(e,t,r,n,l,i,d,x,v){return e=Na(r,n,!0,e,l,i,d,x,v),e.context=Jc(null),r=e.current,n=Ze(),l=tr(r),i=Dt(n,l),i.callback=t??null,Xt(r,i,l),e.current.lanes=l,yn(e,l,n),nt(e,n),e}function ul(e,t,r,n){var l=t.current,i=Ze(),d=tr(l);return r=Jc(r),t.context===null?t.context=r:t.pendingContext=r,t=Dt(i,d),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Xt(l,t,d),e!==null&&(wt(e,l,d,i),Uo(e,l,d)),d}function cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function td(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ja(e,t){td(e,t),(e=e.alternate)&&td(e,t)}function Cm(){return null}var rd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ea(e){this._internalRoot=e}dl.prototype.render=Ea.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));ul(e,t,null,null)},dl.prototype.unmount=Ea.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;br(function(){ul(null,e,null,null)}),t[Rt]=null}};function dl(e){this._internalRoot=e}dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fi();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Vt.length&&t!==0&&t<Vt[r].priority;r++);Vt.splice(r,0,e),r===0&&Bi(e)}};function Ca(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function nd(){}function _m(e,t,r,n,l){if(l){if(typeof n=="function"){var i=n;n=function(){var R=cl(d);i.call(R)}}var d=ed(t,n,e,0,null,!1,!1,"",nd);return e._reactRootContainer=d,e[Rt]=d.current,Tn(e.nodeType===8?e.parentNode:e),br(),d}for(;l=e.lastChild;)e.removeChild(l);if(typeof n=="function"){var x=n;n=function(){var R=cl(v);x.call(R)}}var v=Na(e,0,!1,null,null,!1,!1,"",nd);return e._reactRootContainer=v,e[Rt]=v.current,Tn(e.nodeType===8?e.parentNode:e),br(function(){ul(t,v,r,n)}),v}function pl(e,t,r,n,l){var i=r._reactRootContainer;if(i){var d=i;if(typeof l=="function"){var x=l;l=function(){var v=cl(d);x.call(v)}}ul(t,d,e,l)}else d=_m(r,t,e,l,n);return cl(d)}Ii=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=vn(t.pendingLanes);r!==0&&(Xl(t,r|1),nt(t,Te()),(xe&6)===0&&(Xr=Te()+500,qt()))}break;case 13:br(function(){var n=Ot(e,1);if(n!==null){var l=Ze();wt(n,e,1,l)}}),ja(e,1)}},Zl=function(e){if(e.tag===13){var t=Ot(e,134217728);if(t!==null){var r=Ze();wt(t,e,134217728,r)}ja(e,134217728)}},Ai=function(e){if(e.tag===13){var t=tr(e),r=Ot(e,t);if(r!==null){var n=Ze();wt(r,e,t,n)}ja(e,t)}},Fi=function(){return be},Ui=function(e,t){var r=be;try{return be=e,t()}finally{be=r}},Hl=function(e,t,r){switch(t){case"input":if(zl(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var l=Ro(n);if(!l)throw Error(a(90));ci(n),zl(n,l)}}}break;case"textarea":hi(e,r);break;case"select":t=r.value,t!=null&&_r(e,!!r.multiple,t,!1)}},Ni=va,ji=br;var Pm={usingClientEntryPoint:!1,Events:[zn,Ar,Ro,ki,Si,va]},Yn={findFiberByHostInstance:fr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rm={bundleType:Yn.bundleType,version:Yn.version,rendererPackageName:Yn.rendererPackageName,rendererConfig:Yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Pi(e),e===null?null:e.stateNode},findFiberByHostInstance:Yn.findFiberByHostInstance||Cm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{co=ml.inject(Rm),St=ml}catch{}}return ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pm,ot.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ca(t))throw Error(a(200));return Em(e,t,null,r)},ot.createRoot=function(e,t){if(!Ca(e))throw Error(a(299));var r=!1,n="",l=rd;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Na(e,1,!1,null,null,r,!1,n,l),e[Rt]=t.current,Tn(e.nodeType===8?e.parentNode:e),new Ea(t)},ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Pi(t),e=e===null?null:e.stateNode,e},ot.flushSync=function(e){return br(e)},ot.hydrate=function(e,t,r){if(!fl(t))throw Error(a(200));return pl(null,e,t,!0,r)},ot.hydrateRoot=function(e,t,r){if(!Ca(e))throw Error(a(405));var n=r!=null&&r.hydratedSources||null,l=!1,i="",d=rd;if(r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),t=ed(t,null,e,1,r??null,l,!1,i,d),e[Rt]=t.current,Tn(e),n)for(e=0;e<n.length;e++)r=n[e],l=r._getVersion,l=l(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new dl(t)},ot.render=function(e,t,r){if(!fl(t))throw Error(a(200));return pl(null,e,t,!1,r)},ot.unmountComponentAtNode=function(e){if(!fl(e))throw Error(a(40));return e._reactRootContainer?(br(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[Rt]=null})}),!0):!1},ot.unstable_batchedUpdates=va,ot.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!fl(r))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return pl(e,t,r,!1,n)},ot.version="18.3.1-next-f1338f8080-20240426",ot}var dd;function Ad(){if(dd)return Ra.exports;dd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(u){console.error(u)}}return o(),Ra.exports=Am(),Ra.exports}var fd;function Fm(){if(fd)return hl;fd=1;var o=Ad();return hl.createRoot=o.createRoot,hl.hydrateRoot=o.hydrateRoot,hl}var Um=Fm();const $m=zd(Um);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bm=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fd=(...o)=>o.filter((u,a,c)=>!!u&&u.trim()!==""&&c.indexOf(u)===a).join(" ").trim();/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Vm={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"};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hm=h.forwardRef(({color:o="currentColor",size:u=24,strokeWidth:a=2,absoluteStrokeWidth:c,className:f="",children:p,iconNode:m,...g},N)=>h.createElement("svg",{ref:N,...Vm,width:u,height:u,stroke:o,strokeWidth:c?Number(a)*24/Number(u):a,className:Fd("lucide",f),...g},[...m.map(([S,w])=>h.createElement(S,w)),...Array.isArray(p)?p:[p]]));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ie=(o,u)=>{const a=h.forwardRef(({className:c,...f},p)=>h.createElement(Hm,{ref:p,iconNode:u,className:Fd(`lucide-${Bm(o)}`,c),...f}));return a.displayName=`${o}`,a};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ri=ie("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gl=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wm=ie("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ni=ie("Bot",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gm=ie("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ud=ie("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Km=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qm=ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qm=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ym=ie("CircleAlert",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xm=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zm=ie("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jm=ie("Construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eh=ie("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jr=ie("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wa=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pl=ie("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const th=ie("FolderOpen",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rh=ie("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nh=ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $d=ie("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oh=ie("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ga=ie("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lh=ie("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sh=ie("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ah=ie("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ih=ie("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bd=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uh=ie("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ka=ie("RefreshCw",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ch=ie("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dh=ie("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fh=ie("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vd=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ph=ie("Server",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mh=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hd=ie("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oi=ie("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hh=ie("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gh=ie("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xh=ie("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vh=ie("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wd=ie("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gd=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yh=ie("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bh=ie("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wh=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qa=[{id:"dashboard",label:"Zentrale",hint:"System- & Stack-Status",icon:lh},{id:"models",label:"Modell-Zentrale",hint:"Verwalten, laden & Gateway-Routing",icon:Gm},{id:"system",label:"Diagnose",hint:"Metriken, Dienste, Logs",icon:jr},{id:"memory",label:"Gedächtnis",hint:"Geteiltes Memory verwalten",icon:Ud},{id:"connect",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:ih},{id:"agent",label:"Hermes",hint:"Agent-Status & WebUI öffnen",icon:ni}];var pd=1,kh=.9,Sh=.8,Nh=.17,Ta=.1,Oa=.999,jh=.9999,Eh=.99,Ch=/[\\\/_+.#"@\[\(\{&]/,_h=/[\\\/_+.#"@\[\(\{&]/g,Ph=/[\s-]/,Kd=/[\s-]/g;function qa(o,u,a,c,f,p,m){if(p===u.length)return f===o.length?pd:Eh;var g=`${f},${p}`;if(m[g]!==void 0)return m[g];for(var N=c.charAt(p),S=a.indexOf(N,f),w=0,E,P,M,T;S>=0;)E=qa(o,u,a,c,S+1,p+1,m),E>w&&(S===f?E*=pd:Ch.test(o.charAt(S-1))?(E*=Sh,M=o.slice(f,S-1).match(_h),M&&f>0&&(E*=Math.pow(Oa,M.length))):Ph.test(o.charAt(S-1))?(E*=kh,T=o.slice(f,S-1).match(Kd),T&&f>0&&(E*=Math.pow(Oa,T.length))):(E*=Nh,f>0&&(E*=Math.pow(Oa,S-f))),o.charAt(S)!==u.charAt(p)&&(E*=jh)),(E<Ta&&a.charAt(S-1)===c.charAt(p+1)||c.charAt(p+1)===c.charAt(p)&&a.charAt(S-1)!==c.charAt(p))&&(P=qa(o,u,a,c,S+1,p+2,m),P*Ta>E&&(E=P*Ta)),E>w&&(w=E),S=a.indexOf(N,S+1);return m[g]=w,w}function md(o){return o.toLowerCase().replace(Kd," ")}function Rh(o,u,a){return o=a&&a.length>0?`${o+" "+a.join(" ")}`:o,qa(o,u,md(o),md(u),0,0,{})}function ur(o,u,{checkForDefaultPrevented:a=!0}={}){return function(f){if(o==null||o(f),a===!1||!f.defaultPrevented)return u==null?void 0:u(f)}}function hd(o,u){if(typeof o=="function")return o(u);o!=null&&(o.current=u)}function un(...o){return u=>{let a=!1;const c=o.map(f=>{const p=hd(f,u);return!a&&typeof p=="function"&&(a=!0),p});if(a)return()=>{for(let f=0;f<c.length;f++){const p=c[f];typeof p=="function"?p():hd(o[f],null)}}}}function Cr(...o){return h.useCallback(un(...o),o)}function Mh(o,u=[]){let a=[];function c(p,m){const g=h.createContext(m);g.displayName=p+"Context";const N=a.length;a=[...a,m];const S=E=>{var $;const{scope:P,children:M,...T}=E,j=(($=P==null?void 0:P[o])==null?void 0:$[N])||g,L=h.useMemo(()=>T,Object.values(T));return s.jsx(j.Provider,{value:L,children:M})};S.displayName=p+"Provider";function w(E,P){var j;const M=((j=P==null?void 0:P[o])==null?void 0:j[N])||g,T=h.useContext(M);if(T)return T;if(m!==void 0)return m;throw new Error(`\`${E}\` must be used within \`${p}\``)}return[S,w]}const f=()=>{const p=a.map(m=>h.createContext(m));return function(g){const N=(g==null?void 0:g[o])||p;return h.useMemo(()=>({[`__scope${o}`]:{...g,[o]:N}}),[g,N])}};return f.scopeName=o,[c,Lh(f,...u)]}function Lh(...o){const u=o[0];if(o.length===1)return u;const a=()=>{const c=o.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(p){const m=c.reduce((g,{useScope:N,scopeName:S})=>{const E=N(p)[`__scope${S}`];return{...g,...E}},{});return h.useMemo(()=>({[`__scope${u.scopeName}`]:m}),[m])}};return a.scopeName=u.scopeName,a}var to=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Th=ti[" useId ".trim().toString()]||(()=>{}),Oh=0;function Ft(o){const[u,a]=h.useState(Th());return to(()=>{a(c=>c??String(Oh++))},[o]),u?`radix-${u}`:""}var Dh=ti[" useInsertionEffect ".trim().toString()]||to;function zh({prop:o,defaultProp:u,onChange:a=()=>{},caller:c}){const[f,p,m]=Ih({defaultProp:u,onChange:a}),g=o!==void 0,N=g?o:f;{const w=h.useRef(o!==void 0);h.useEffect(()=>{const E=w.current;E!==g&&console.warn(`${c} is changing from ${E?"controlled":"uncontrolled"} to ${g?"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.`),w.current=g},[g,c])}const S=h.useCallback(w=>{var E;if(g){const P=Ah(w)?w(o):w;P!==o&&((E=m.current)==null||E.call(m,P))}else p(w)},[g,o,p,m]);return[N,S]}function Ih({defaultProp:o,onChange:u}){const[a,c]=h.useState(o),f=h.useRef(a),p=h.useRef(u);return Dh(()=>{p.current=u},[u]),h.useEffect(()=>{var m;f.current!==a&&((m=p.current)==null||m.call(p,a),f.current=a)},[a,f]),[a,c,p]}function Ah(o){return typeof o=="function"}var Qd=Ad();function qd(o){const u=h.forwardRef((a,c)=>{let{children:f,...p}=a,m=null,g=!1;const N=[];gd(f)&&typeof xl=="function"&&(f=xl(f._payload)),h.Children.forEach(f,P=>{var M;if(Vh(P)){g=!0;const T=P;let j="child"in T.props?T.props.child:T.props.children;gd(j)&&typeof xl=="function"&&(j=xl(j._payload)),m=Uh(T,j),N.push((M=m==null?void 0:m.props)==null?void 0:M.children)}else N.push(P)}),m?m=h.cloneElement(m,void 0,N):!g&&h.Children.count(f)===1&&h.isValidElement(f)&&(m=f);const S=m?Bh(m):void 0,w=Cr(c,S);if(!m){if(f||f===0)throw new Error(g?Kh(o):Gh(o));return f}const E=$h(p,m.props??{});return m.type!==h.Fragment&&(E.ref=c?w:S),h.cloneElement(m,E)});return u.displayName=`${o}.Slot`,u}var Fh=Symbol.for("radix.slottable"),Uh=(o,u)=>{if("child"in o.props){const a=o.props.child;return h.isValidElement(a)?h.cloneElement(a,void 0,o.props.children(a.props.children)):null}return h.isValidElement(u)?u:null};function $h(o,u){const a={...u};for(const c in u){const f=o[c],p=u[c];/^on[A-Z]/.test(c)?f&&p?a[c]=(...g)=>{const N=p(...g);return f(...g),N}:f&&(a[c]=f):c==="style"?a[c]={...f,...p}:c==="className"&&(a[c]=[f,p].filter(Boolean).join(" "))}return{...o,...a}}function Bh(o){var c,f;let u=(c=Object.getOwnPropertyDescriptor(o.props,"ref"))==null?void 0:c.get,a=u&&"isReactWarning"in u&&u.isReactWarning;return a?o.ref:(u=(f=Object.getOwnPropertyDescriptor(o,"ref"))==null?void 0:f.get,a=u&&"isReactWarning"in u&&u.isReactWarning,a?o.props.ref:o.props.ref||o.ref)}function Vh(o){return h.isValidElement(o)&&typeof o.type=="function"&&"__radixId"in o.type&&o.type.__radixId===Fh}var Hh=Symbol.for("react.lazy");function gd(o){return o!=null&&typeof o=="object"&&"$$typeof"in o&&o.$$typeof===Hh&&"_payload"in o&&Wh(o._payload)}function Wh(o){return typeof o=="object"&&o!==null&&"then"in o}var Gh=o=>`${o} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Kh=o=>`${o} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,xl=ti[" use ".trim().toString()],Qh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=Qh.reduce((o,u)=>{const a=qd(`Primitive.${u}`),c=h.forwardRef((f,p)=>{const{asChild:m,...g}=f,N=m?a:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(N,{...g,ref:p})});return c.displayName=`Primitive.${u}`,{...o,[u]:c}},{});function qh(o,u){o&&Qd.flushSync(()=>o.dispatchEvent(u))}function ro(o){const u=h.useRef(o);return h.useEffect(()=>{u.current=o}),h.useMemo(()=>((...a)=>{var c;return(c=u.current)==null?void 0:c.call(u,...a)}),[])}function Yh(o,u=globalThis==null?void 0:globalThis.document){const a=ro(o);h.useEffect(()=>{const c=f=>{f.key==="Escape"&&a(f)};return u.addEventListener("keydown",c,{capture:!0}),()=>u.removeEventListener("keydown",c,{capture:!0})},[a,u])}var Xh="DismissableLayer",Ya="dismissableLayer.update",Zh="dismissableLayer.pointerDownOutside",Jh="dismissableLayer.focusOutside",xd,li=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Yd=h.forwardRef((o,u)=>{const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:g,onDismiss:N,...S}=o,w=h.useContext(li),[E,P]=h.useState(null),M=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=h.useState({}),j=Cr(u,I=>P(I)),L=Array.from(w.layers),[$]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),O=L.indexOf($),G=E?L.indexOf(E):-1,X=w.layersWithOutsidePointerEventsDisabled.size>0,F=G>=O,re=h.useRef(!1),de=ng(I=>{const ue=I.target;if(!(ue instanceof Node))return;const Ce=[...w.branches].some(ce=>ce.contains(ue));!F||Ce||(p==null||p(I),g==null||g(I),I.defaultPrevented||N==null||N())},{ownerDocument:M,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:re,dismissableSurfaces:w.dismissableSurfaces}),we=og(I=>{if(c&&re.current)return;const ue=I.target;[...w.branches].some(ce=>ce.contains(ue))||(m==null||m(I),g==null||g(I),I.defaultPrevented||N==null||N())},M);return Yh(I=>{G===w.layers.size-1&&(f==null||f(I),!I.defaultPrevented&&N&&(I.preventDefault(),N()))},M),h.useEffect(()=>{if(E)return a&&(w.layersWithOutsidePointerEventsDisabled.size===0&&(xd=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),vd(),()=>{a&&(w.layersWithOutsidePointerEventsDisabled.delete(E),w.layersWithOutsidePointerEventsDisabled.size===0&&(M.body.style.pointerEvents=xd))}},[E,M,a,w]),h.useEffect(()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),vd())},[E,w]),h.useEffect(()=>{const I=()=>T({});return document.addEventListener(Ya,I),()=>document.removeEventListener(Ya,I)},[]),s.jsx(Ge.div,{...S,ref:j,style:{pointerEvents:X?F?"auto":"none":void 0,...o.style},onFocusCapture:ur(o.onFocusCapture,we.onFocusCapture),onBlurCapture:ur(o.onBlurCapture,we.onBlurCapture),onPointerDownCapture:ur(o.onPointerDownCapture,de.onPointerDownCapture)})});Yd.displayName=Xh;var eg="DismissableLayerBranch",tg=h.forwardRef((o,u)=>{const a=h.useContext(li),c=h.useRef(null),f=Cr(u,c);return h.useEffect(()=>{const p=c.current;if(p)return a.branches.add(p),()=>{a.branches.delete(p)}},[a.branches]),s.jsx(Ge.div,{...o,ref:f})});tg.displayName=eg;function rg(){const o=h.useContext(li),[u,a]=h.useState(null);return h.useEffect(()=>{if(u)return o.dismissableSurfaces.add(u),()=>{o.dismissableSurfaces.delete(u)}},[u,o.dismissableSurfaces]),a}function ng(o,u){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:c=!1,isDeferredPointerDownOutsideRef:f,dismissableSurfaces:p}=u,m=ro(o),g=h.useRef(!1),N=h.useRef(!1),S=h.useRef(new Map),w=h.useRef(()=>{});return h.useEffect(()=>{function E(){N.current=!1,f.current=!1,S.current.clear()}function P(){return Array.from(S.current.values()).some(Boolean)}function M(O){if(!N.current)return;const G=O.target;G instanceof Node&&[...p].some(F=>F.contains(G))||S.current.set(O.type,!0),O.type==="click"&&window.setTimeout(()=>{N.current&&w.current()},0)}function T(O){N.current&&S.current.set(O.type,!1)}const j=O=>{if(O.target&&!g.current){let G=function(){a.removeEventListener("click",w.current);const F=P();E(),F||Xd(Zh,m,X,{discrete:!0})};const X={originalEvent:O};N.current=!0,f.current=c&&O.button===0,S.current.clear(),!c||O.button!==0?G():(a.removeEventListener("click",w.current),w.current=G,a.addEventListener("click",w.current,{once:!0}))}else a.removeEventListener("click",w.current),E();g.current=!1},L=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const O of L)a.addEventListener(O,M,!0),a.addEventListener(O,T);const $=window.setTimeout(()=>{a.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout($),a.removeEventListener("pointerdown",j),a.removeEventListener("click",w.current);for(const O of L)a.removeEventListener(O,M,!0),a.removeEventListener(O,T)}},[a,m,c,f,p]),{onPointerDownCapture:()=>g.current=!0}}function og(o,u=globalThis==null?void 0:globalThis.document){const a=ro(o),c=h.useRef(!1);return h.useEffect(()=>{const f=p=>{p.target&&!c.current&&Xd(Jh,a,{originalEvent:p},{discrete:!1})};return u.addEventListener("focusin",f),()=>u.removeEventListener("focusin",f)},[u,a]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function vd(){const o=new CustomEvent(Ya);document.dispatchEvent(o)}function Xd(o,u,a,{discrete:c}){const f=a.originalEvent.target,p=new CustomEvent(o,{bubbles:!1,cancelable:!0,detail:a});u&&f.addEventListener(o,u,{once:!0}),c?qh(f,p):f.dispatchEvent(p)}var Da="focusScope.autoFocusOnMount",za="focusScope.autoFocusOnUnmount",yd={bubbles:!1,cancelable:!0},lg="FocusScope",Zd=h.forwardRef((o,u)=>{const{loop:a=!1,trapped:c=!1,onMountAutoFocus:f,onUnmountAutoFocus:p,...m}=o,[g,N]=h.useState(null),S=ro(f),w=ro(p),E=h.useRef(null),P=Cr(u,j=>N(j)),M=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(c){let j=function(G){if(M.paused||!g)return;const X=G.target;g.contains(X)?E.current=X:ir(E.current,{select:!0})},L=function(G){if(M.paused||!g)return;const X=G.relatedTarget;X!==null&&(g.contains(X)||ir(E.current,{select:!0}))},$=function(G){if(document.activeElement===document.body)for(const F of G)F.removedNodes.length>0&&ir(g)};document.addEventListener("focusin",j),document.addEventListener("focusout",L);const O=new MutationObserver($);return g&&O.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",L),O.disconnect()}}},[c,g,M.paused]),h.useEffect(()=>{if(g){wd.add(M);const j=document.activeElement;if(!g.contains(j)){const $=new CustomEvent(Da,yd);g.addEventListener(Da,S),g.dispatchEvent($),$.defaultPrevented||(sg(dg(Jd(g)),{select:!0}),document.activeElement===j&&ir(g))}return()=>{g.removeEventListener(Da,S),setTimeout(()=>{const $=new CustomEvent(za,yd);g.addEventListener(za,w),g.dispatchEvent($),$.defaultPrevented||ir(j??document.body,{select:!0}),g.removeEventListener(za,w),wd.remove(M)},0)}}},[g,S,w,M]);const T=h.useCallback(j=>{if(!a&&!c||M.paused)return;const L=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,$=document.activeElement;if(L&&$){const O=j.currentTarget,[G,X]=ag(O);G&&X?!j.shiftKey&&$===X?(j.preventDefault(),a&&ir(G,{select:!0})):j.shiftKey&&$===G&&(j.preventDefault(),a&&ir(X,{select:!0})):$===O&&j.preventDefault()}},[a,c,M.paused]);return s.jsx(Ge.div,{tabIndex:-1,...m,ref:P,onKeyDown:T})});Zd.displayName=lg;function sg(o,{select:u=!1}={}){const a=document.activeElement;for(const c of o)if(ir(c,{select:u}),document.activeElement!==a)return}function ag(o){const u=Jd(o),a=bd(u,o),c=bd(u.reverse(),o);return[a,c]}function Jd(o){const u=[],a=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const f=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||f?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)u.push(a.currentNode);return u}function bd(o,u){for(const a of o)if(!ig(a,{upTo:u}))return a}function ig(o,{upTo:u}){if(getComputedStyle(o).visibility==="hidden")return!0;for(;o;){if(u!==void 0&&o===u)return!1;if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}function ug(o){return o instanceof HTMLInputElement&&"select"in o}function ir(o,{select:u=!1}={}){if(o&&o.focus){const a=document.activeElement;o.focus({preventScroll:!0}),o!==a&&ug(o)&&u&&o.select()}}var wd=cg();function cg(){let o=[];return{add(u){const a=o[0];u!==a&&(a==null||a.pause()),o=kd(o,u),o.unshift(u)},remove(u){var a;o=kd(o,u),(a=o[0])==null||a.resume()}}}function kd(o,u){const a=[...o],c=a.indexOf(u);return c!==-1&&a.splice(c,1),a}function dg(o){return o.filter(u=>u.tagName!=="A")}var fg="Portal",ef=h.forwardRef((o,u)=>{var g;const{container:a,...c}=o,[f,p]=h.useState(!1);to(()=>p(!0),[]);const m=a||f&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return m?Qd.createPortal(s.jsx(Ge.div,{...c,ref:u}),m):null});ef.displayName=fg;function pg(o,u){return h.useReducer((a,c)=>u[a][c]??a,o)}var Ml=o=>{const{present:u,children:a}=o,c=mg(u),f=typeof a=="function"?a({present:c.isPresent}):h.Children.only(a),p=hg(c.ref,gg(f));return typeof a=="function"||c.isPresent?h.cloneElement(f,{ref:p}):null};Ml.displayName="Presence";function mg(o){const[u,a]=h.useState(),c=h.useRef(null),f=h.useRef(o),p=h.useRef("none"),m=o?"mounted":"unmounted",[g,N]=pg(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const S=vl(c.current);p.current=g==="mounted"?S:"none"},[g]),to(()=>{const S=c.current,w=f.current;if(w!==o){const P=p.current,M=vl(S);o?N("MOUNT"):M==="none"||(S==null?void 0:S.display)==="none"?N("UNMOUNT"):N(w&&P!==M?"ANIMATION_OUT":"UNMOUNT"),f.current=o}},[o,N]),to(()=>{if(u){let S;const w=u.ownerDocument.defaultView??window,E=M=>{const j=vl(c.current).includes(CSS.escape(M.animationName));if(M.target===u&&j&&(N("ANIMATION_END"),!f.current)){const L=u.style.animationFillMode;u.style.animationFillMode="forwards",S=w.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=L)})}},P=M=>{M.target===u&&(p.current=vl(c.current))};return u.addEventListener("animationstart",P),u.addEventListener("animationcancel",E),u.addEventListener("animationend",E),()=>{w.clearTimeout(S),u.removeEventListener("animationstart",P),u.removeEventListener("animationcancel",E),u.removeEventListener("animationend",E)}}else N("ANIMATION_END")},[u,N]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:h.useCallback(S=>{c.current=S?getComputedStyle(S):null,a(S)},[])}}function Sd(o,u){if(typeof o=="function")return o(u);o!=null&&(o.current=u)}function hg(...o){const u=h.useRef(o);return u.current=o,h.useCallback(a=>{const c=u.current;let f=!1;const p=c.map(m=>{const g=Sd(m,a);return!f&&typeof g=="function"&&(f=!0),g});if(f)return()=>{for(let m=0;m<p.length;m++){const g=p[m];typeof g=="function"?g():Sd(c[m],null)}}},[])}function vl(o){return(o==null?void 0:o.animationName)||"none"}function gg(o){var c,f;let u=(c=Object.getOwnPropertyDescriptor(o.props,"ref"))==null?void 0:c.get,a=u&&"isReactWarning"in u&&u.isReactWarning;return a?o.ref:(u=(f=Object.getOwnPropertyDescriptor(o,"ref"))==null?void 0:f.get,a=u&&"isReactWarning"in u&&u.isReactWarning,a?o.props.ref:o.props.ref||o.ref)}var yl=0,_t=null;function xg(){h.useEffect(()=>{_t||(_t={start:Nd(),end:Nd()});const{start:o,end:u}=_t;return document.body.firstElementChild!==o&&document.body.insertAdjacentElement("afterbegin",o),document.body.lastElementChild!==u&&document.body.insertAdjacentElement("beforeend",u),yl++,()=>{yl===1&&(_t==null||_t.start.remove(),_t==null||_t.end.remove(),_t=null),yl=Math.max(0,yl-1)}},[])}function Nd(){const o=document.createElement("span");return o.setAttribute("data-radix-focus-guard",""),o.tabIndex=0,o.style.outline="none",o.style.opacity="0",o.style.position="fixed",o.style.pointerEvents="none",o}var Pt=function(){return Pt=Object.assign||function(u){for(var a,c=1,f=arguments.length;c<f;c++){a=arguments[c];for(var p in a)Object.prototype.hasOwnProperty.call(a,p)&&(u[p]=a[p])}return u},Pt.apply(this,arguments)};function tf(o,u){var a={};for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&u.indexOf(c)<0&&(a[c]=o[c]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,c=Object.getOwnPropertySymbols(o);f<c.length;f++)u.indexOf(c[f])<0&&Object.prototype.propertyIsEnumerable.call(o,c[f])&&(a[c[f]]=o[c[f]]);return a}function vg(o,u,a){if(a||arguments.length===2)for(var c=0,f=u.length,p;c<f;c++)(p||!(c in u))&&(p||(p=Array.prototype.slice.call(u,0,c)),p[c]=u[c]);return o.concat(p||Array.prototype.slice.call(u))}var Cl="right-scroll-bar-position",_l="width-before-scroll-bar",yg="with-scroll-bars-hidden",bg="--removed-body-scroll-bar-size";function Ia(o,u){return typeof o=="function"?o(u):o&&(o.current=u),o}function wg(o,u){var a=h.useState(function(){return{value:o,callback:u,facade:{get current(){return a.value},set current(c){var f=a.value;f!==c&&(a.value=c,a.callback(c,f))}}}})[0];return a.callback=u,a.facade}var kg=typeof window<"u"?h.useLayoutEffect:h.useEffect,jd=new WeakMap;function Sg(o,u){var a=wg(null,function(c){return o.forEach(function(f){return Ia(f,c)})});return kg(function(){var c=jd.get(a);if(c){var f=new Set(c),p=new Set(o),m=a.current;f.forEach(function(g){p.has(g)||Ia(g,null)}),p.forEach(function(g){f.has(g)||Ia(g,m)})}jd.set(a,o)},[o]),a}function Ng(o){return o}function jg(o,u){u===void 0&&(u=Ng);var a=[],c=!1,f={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:o},useMedium:function(p){var m=u(p,c);return a.push(m),function(){a=a.filter(function(g){return g!==m})}},assignSyncMedium:function(p){for(c=!0;a.length;){var m=a;a=[],m.forEach(p)}a={push:function(g){return p(g)},filter:function(){return a}}},assignMedium:function(p){c=!0;var m=[];if(a.length){var g=a;a=[],g.forEach(p),m=a}var N=function(){var w=m;m=[],w.forEach(p)},S=function(){return Promise.resolve().then(N)};S(),a={push:function(w){m.push(w),S()},filter:function(w){return m=m.filter(w),a}}}};return f}function Eg(o){o===void 0&&(o={});var u=jg(null);return u.options=Pt({async:!0,ssr:!1},o),u}var rf=function(o){var u=o.sideCar,a=tf(o,["sideCar"]);if(!u)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=u.read();if(!c)throw new Error("Sidecar medium not found");return h.createElement(c,Pt({},a))};rf.isSideCarExport=!0;function Cg(o,u){return o.useMedium(u),rf}var nf=Eg(),Aa=function(){},Ll=h.forwardRef(function(o,u){var a=h.useRef(null),c=h.useState({onScrollCapture:Aa,onWheelCapture:Aa,onTouchMoveCapture:Aa}),f=c[0],p=c[1],m=o.forwardProps,g=o.children,N=o.className,S=o.removeScrollBar,w=o.enabled,E=o.shards,P=o.sideCar,M=o.noRelative,T=o.noIsolation,j=o.inert,L=o.allowPinchZoom,$=o.as,O=$===void 0?"div":$,G=o.gapMode,X=tf(o,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=P,re=Sg([a,u]),de=Pt(Pt({},X),f);return h.createElement(h.Fragment,null,w&&h.createElement(F,{sideCar:nf,removeScrollBar:S,shards:E,noRelative:M,noIsolation:T,inert:j,setCallbacks:p,allowPinchZoom:!!L,lockRef:a,gapMode:G}),m?h.cloneElement(h.Children.only(g),Pt(Pt({},de),{ref:re})):h.createElement(O,Pt({},de,{className:N,ref:re}),g))});Ll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ll.classNames={fullWidth:_l,zeroRight:Cl};var _g=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pg(){if(!document)return null;var o=document.createElement("style");o.type="text/css";var u=_g();return u&&o.setAttribute("nonce",u),o}function Rg(o,u){o.styleSheet?o.styleSheet.cssText=u:o.appendChild(document.createTextNode(u))}function Mg(o){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(o)}var Lg=function(){var o=0,u=null;return{add:function(a){o==0&&(u=Pg())&&(Rg(u,a),Mg(u)),o++},remove:function(){o--,!o&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},Tg=function(){var o=Lg();return function(u,a){h.useEffect(function(){return o.add(u),function(){o.remove()}},[u&&a])}},of=function(){var o=Tg(),u=function(a){var c=a.styles,f=a.dynamic;return o(c,f),null};return u},Og={left:0,top:0,right:0,gap:0},Fa=function(o){return parseInt(o||"",10)||0},Dg=function(o){var u=window.getComputedStyle(document.body),a=u[o==="padding"?"paddingLeft":"marginLeft"],c=u[o==="padding"?"paddingTop":"marginTop"],f=u[o==="padding"?"paddingRight":"marginRight"];return[Fa(a),Fa(c),Fa(f)]},zg=function(o){if(o===void 0&&(o="margin"),typeof window>"u")return Og;var u=Dg(o),a=document.documentElement.clientWidth,c=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,c-a+u[2]-u[0])}},Ig=of(),sn="data-scroll-locked",Ag=function(o,u,a,c){var f=o.left,p=o.top,m=o.right,g=o.gap;return a===void 0&&(a="margin"),`
.`.concat(yg,` {
overflow: hidden `).concat(c,`;
padding-right: `).concat(g,"px ").concat(c,`;
}
body[`).concat(sn,`] {
overflow: hidden `).concat(c,`;
overscroll-behavior: contain;
`).concat([u&&"position: relative ".concat(c,";"),a==="margin"&&`
padding-left: `.concat(f,`px;
padding-top: `).concat(p,`px;
padding-right: `).concat(m,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(g,"px ").concat(c,`;
`),a==="padding"&&"padding-right: ".concat(g,"px ").concat(c,";")].filter(Boolean).join(""),`
}
.`).concat(Cl,` {
right: `).concat(g,"px ").concat(c,`;
}
.`).concat(_l,` {
margin-right: `).concat(g,"px ").concat(c,`;
}
.`).concat(Cl," .").concat(Cl,` {
right: 0 `).concat(c,`;
}
.`).concat(_l," .").concat(_l,` {
margin-right: 0 `).concat(c,`;
}
body[`).concat(sn,`] {
`).concat(bg,": ").concat(g,`px;
}
`)},Ed=function(){var o=parseInt(document.body.getAttribute(sn)||"0",10);return isFinite(o)?o:0},Fg=function(){h.useEffect(function(){return document.body.setAttribute(sn,(Ed()+1).toString()),function(){var o=Ed()-1;o<=0?document.body.removeAttribute(sn):document.body.setAttribute(sn,o.toString())}},[])},Ug=function(o){var u=o.noRelative,a=o.noImportant,c=o.gapMode,f=c===void 0?"margin":c;Fg();var p=h.useMemo(function(){return zg(f)},[f]);return h.createElement(Ig,{styles:Ag(p,!u,f,a?"":"!important")})},Xa=!1;if(typeof window<"u")try{var bl=Object.defineProperty({},"passive",{get:function(){return Xa=!0,!0}});window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{Xa=!1}var Jr=Xa?{passive:!1}:!1,$g=function(o){return o.tagName==="TEXTAREA"},lf=function(o,u){if(!(o instanceof Element))return!1;var a=window.getComputedStyle(o);return a[u]!=="hidden"&&!(a.overflowY===a.overflowX&&!$g(o)&&a[u]==="visible")},Bg=function(o){return lf(o,"overflowY")},Vg=function(o){return lf(o,"overflowX")},Cd=function(o,u){var a=u.ownerDocument,c=u;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var f=sf(o,c);if(f){var p=af(o,c),m=p[1],g=p[2];if(m>g)return!0}c=c.parentNode}while(c&&c!==a.body);return!1},Hg=function(o){var u=o.scrollTop,a=o.scrollHeight,c=o.clientHeight;return[u,a,c]},Wg=function(o){var u=o.scrollLeft,a=o.scrollWidth,c=o.clientWidth;return[u,a,c]},sf=function(o,u){return o==="v"?Bg(u):Vg(u)},af=function(o,u){return o==="v"?Hg(u):Wg(u)},Gg=function(o,u){return o==="h"&&u==="rtl"?-1:1},Kg=function(o,u,a,c,f){var p=Gg(o,window.getComputedStyle(u).direction),m=p*c,g=a.target,N=u.contains(g),S=!1,w=m>0,E=0,P=0;do{if(!g)break;var M=af(o,g),T=M[0],j=M[1],L=M[2],$=j-L-p*T;(T||$)&&sf(o,g)&&(E+=$,P+=T);var O=g.parentNode;g=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!N&&g!==document.body||N&&(u.contains(g)||u===g));return(w&&Math.abs(E)<1||!w&&Math.abs(P)<1)&&(S=!0),S},wl=function(o){return"changedTouches"in o?[o.changedTouches[0].clientX,o.changedTouches[0].clientY]:[0,0]},_d=function(o){return[o.deltaX,o.deltaY]},Pd=function(o){return o&&"current"in o?o.current:o},Qg=function(o,u){return o[0]===u[0]&&o[1]===u[1]},qg=function(o){return`
.block-interactivity-`.concat(o,` {pointer-events: none;}
.allow-interactivity-`).concat(o,` {pointer-events: all;}
`)},Yg=0,en=[];function Xg(o){var u=h.useRef([]),a=h.useRef([0,0]),c=h.useRef(),f=h.useState(Yg++)[0],p=h.useState(of)[0],m=h.useRef(o);h.useEffect(function(){m.current=o},[o]),h.useEffect(function(){if(o.inert){document.body.classList.add("block-interactivity-".concat(f));var j=vg([o.lockRef.current],(o.shards||[]).map(Pd),!0).filter(Boolean);return j.forEach(function(L){return L.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),j.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(f))})}}},[o.inert,o.lockRef.current,o.shards]);var g=h.useCallback(function(j,L){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!m.current.allowPinchZoom;var $=wl(j),O=a.current,G="deltaX"in j?j.deltaX:O[0]-$[0],X="deltaY"in j?j.deltaY:O[1]-$[1],F,re=j.target,de=Math.abs(G)>Math.abs(X)?"h":"v";if("touches"in j&&de==="h"&&re.type==="range")return!1;var we=window.getSelection(),I=we&&we.anchorNode,ue=I?I===re||I.contains(re):!1;if(ue)return!1;var Ce=Cd(de,re);if(!Ce)return!0;if(Ce?F=de:(F=de==="v"?"h":"v",Ce=Cd(de,re)),!Ce)return!1;if(!c.current&&"changedTouches"in j&&(G||X)&&(c.current=F),!F)return!0;var ce=c.current||F;return Kg(ce,L,j,ce==="h"?G:X)},[]),N=h.useCallback(function(j){var L=j;if(!(!en.length||en[en.length-1]!==p)){var $="deltaY"in L?_d(L):wl(L),O=u.current.filter(function(F){return F.name===L.type&&(F.target===L.target||L.target===F.shadowParent)&&Qg(F.delta,$)})[0];if(O&&O.should){L.cancelable&&L.preventDefault();return}if(!O){var G=(m.current.shards||[]).map(Pd).filter(Boolean).filter(function(F){return F.contains(L.target)}),X=G.length>0?g(L,G[0]):!m.current.noIsolation;X&&L.cancelable&&L.preventDefault()}}},[]),S=h.useCallback(function(j,L,$,O){var G={name:j,delta:L,target:$,should:O,shadowParent:Zg($)};u.current.push(G),setTimeout(function(){u.current=u.current.filter(function(X){return X!==G})},1)},[]),w=h.useCallback(function(j){a.current=wl(j),c.current=void 0},[]),E=h.useCallback(function(j){S(j.type,_d(j),j.target,g(j,o.lockRef.current))},[]),P=h.useCallback(function(j){S(j.type,wl(j),j.target,g(j,o.lockRef.current))},[]);h.useEffect(function(){return en.push(p),o.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:P}),document.addEventListener("wheel",N,Jr),document.addEventListener("touchmove",N,Jr),document.addEventListener("touchstart",w,Jr),function(){en=en.filter(function(j){return j!==p}),document.removeEventListener("wheel",N,Jr),document.removeEventListener("touchmove",N,Jr),document.removeEventListener("touchstart",w,Jr)}},[]);var M=o.removeScrollBar,T=o.inert;return h.createElement(h.Fragment,null,T?h.createElement(p,{styles:qg(f)}):null,M?h.createElement(Ug,{noRelative:o.noRelative,gapMode:o.gapMode}):null)}function Zg(o){for(var u=null;o!==null;)o instanceof ShadowRoot&&(u=o.host,o=o.host),o=o.parentNode;return u}const Jg=Cg(nf,Xg);var uf=h.forwardRef(function(o,u){return h.createElement(Ll,Pt({},o,{ref:u,sideCar:Jg}))});uf.classNames=Ll.classNames;var ex=function(o){if(typeof document>"u")return null;var u=Array.isArray(o)?o[0]:o;return u.ownerDocument.body},tn=new WeakMap,kl=new WeakMap,Sl={},Ua=0,cf=function(o){return o&&(o.host||cf(o.parentNode))},tx=function(o,u){return u.map(function(a){if(o.contains(a))return a;var c=cf(a);return c&&o.contains(c)?c:(console.error("aria-hidden",a,"in not contained inside",o,". Doing nothing"),null)}).filter(function(a){return!!a})},rx=function(o,u,a,c){var f=tx(u,Array.isArray(o)?o:[o]);Sl[a]||(Sl[a]=new WeakMap);var p=Sl[a],m=[],g=new Set,N=new Set(f),S=function(E){!E||g.has(E)||(g.add(E),S(E.parentNode))};f.forEach(S);var w=function(E){!E||N.has(E)||Array.prototype.forEach.call(E.children,function(P){if(g.has(P))w(P);else try{var M=P.getAttribute(c),T=M!==null&&M!=="false",j=(tn.get(P)||0)+1,L=(p.get(P)||0)+1;tn.set(P,j),p.set(P,L),m.push(P),j===1&&T&&kl.set(P,!0),L===1&&P.setAttribute(a,"true"),T||P.setAttribute(c,"true")}catch($){console.error("aria-hidden: cannot operate on ",P,$)}})};return w(u),g.clear(),Ua++,function(){m.forEach(function(E){var P=tn.get(E)-1,M=p.get(E)-1;tn.set(E,P),p.set(E,M),P||(kl.has(E)||E.removeAttribute(c),kl.delete(E)),M||E.removeAttribute(a)}),Ua--,Ua||(tn=new WeakMap,tn=new WeakMap,kl=new WeakMap,Sl={})}},nx=function(o,u,a){a===void 0&&(a="data-aria-hidden");var c=Array.from(Array.isArray(o)?o:[o]),f=ex(o);return f?(c.push.apply(c,Array.from(f.querySelectorAll("[aria-live], script"))),rx(c,f,a,"aria-hidden")):function(){return null}},Tl="Dialog",[df]=Mh(Tl),[ox,kt]=df(Tl),ff=o=>{const{__scopeDialog:u,children:a,open:c,defaultOpen:f,onOpenChange:p,modal:m=!0}=o,g=h.useRef(null),N=h.useRef(null),[S,w]=zh({prop:c,defaultProp:f??!1,onChange:p,caller:Tl});return s.jsx(ox,{scope:u,triggerRef:g,contentRef:N,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:S,onOpenChange:w,onOpenToggle:h.useCallback(()=>w(E=>!E),[w]),modal:m,children:a})};ff.displayName=Tl;var pf="DialogTrigger",lx=h.forwardRef((o,u)=>{const{__scopeDialog:a,...c}=o,f=kt(pf,a),p=Cr(u,f.triggerRef);return s.jsx(Ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.open?f.contentId:void 0,"data-state":ai(f.open),...c,ref:p,onClick:ur(o.onClick,f.onOpenToggle)})});lx.displayName=pf;var si="DialogPortal",[sx,mf]=df(si,{forceMount:void 0}),hf=o=>{const{__scopeDialog:u,forceMount:a,children:c,container:f}=o,p=kt(si,u);return s.jsx(sx,{scope:u,forceMount:a,children:h.Children.map(c,m=>s.jsx(Ml,{present:a||p.open,children:s.jsx(ef,{asChild:!0,container:f,children:m})}))})};hf.displayName=si;var Rl="DialogOverlay",gf=h.forwardRef((o,u)=>{const a=mf(Rl,o.__scopeDialog),{forceMount:c=a.forceMount,...f}=o,p=kt(Rl,o.__scopeDialog);return p.modal?s.jsx(Ml,{present:c||p.open,children:s.jsx(ix,{...f,ref:u})}):null});gf.displayName=Rl;var ax=qd("DialogOverlay.RemoveScroll"),ix=h.forwardRef((o,u)=>{const{__scopeDialog:a,...c}=o,f=kt(Rl,a),p=rg(),m=Cr(u,p);return s.jsx(uf,{as:ax,allowPinchZoom:!0,shards:[f.contentRef],children:s.jsx(Ge.div,{"data-state":ai(f.open),...c,ref:m,style:{pointerEvents:"auto",...c.style}})})}),cn="DialogContent",xf=h.forwardRef((o,u)=>{const a=mf(cn,o.__scopeDialog),{forceMount:c=a.forceMount,...f}=o,p=kt(cn,o.__scopeDialog);return s.jsx(Ml,{present:c||p.open,children:p.modal?s.jsx(ux,{...f,ref:u}):s.jsx(cx,{...f,ref:u})})});xf.displayName=cn;var ux=h.forwardRef((o,u)=>{const a=kt(cn,o.__scopeDialog),c=h.useRef(null),f=Cr(u,a.contentRef,c);return h.useEffect(()=>{const p=c.current;if(p)return nx(p)},[]),s.jsx(vf,{...o,ref:f,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:ur(o.onCloseAutoFocus,p=>{var m;p.preventDefault(),(m=a.triggerRef.current)==null||m.focus()}),onPointerDownOutside:ur(o.onPointerDownOutside,p=>{const m=p.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0;(m.button===2||g)&&p.preventDefault()}),onFocusOutside:ur(o.onFocusOutside,p=>p.preventDefault())})}),cx=h.forwardRef((o,u)=>{const a=kt(cn,o.__scopeDialog),c=h.useRef(!1),f=h.useRef(!1);return s.jsx(vf,{...o,ref:u,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p=>{var m,g;(m=o.onCloseAutoFocus)==null||m.call(o,p),p.defaultPrevented||(c.current||(g=a.triggerRef.current)==null||g.focus(),p.preventDefault()),c.current=!1,f.current=!1},onInteractOutside:p=>{var N,S;(N=o.onInteractOutside)==null||N.call(o,p),p.defaultPrevented||(c.current=!0,p.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const m=p.target;((S=a.triggerRef.current)==null?void 0:S.contains(m))&&p.preventDefault(),p.detail.originalEvent.type==="focusin"&&f.current&&p.preventDefault()}})}),vf=h.forwardRef((o,u)=>{const{__scopeDialog:a,trapFocus:c,onOpenAutoFocus:f,onCloseAutoFocus:p,...m}=o,g=kt(cn,a);return xg(),s.jsx(s.Fragment,{children:s.jsx(Zd,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:f,onUnmountAutoFocus:p,children:s.jsx(Yd,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":ai(g.open),...m,ref:u,deferPointerDownOutside:!0,onDismiss:()=>g.onOpenChange(!1)})})})}),yf="DialogTitle",dx=h.forwardRef((o,u)=>{const{__scopeDialog:a,...c}=o,f=kt(yf,a);return s.jsx(Ge.h2,{id:f.titleId,...c,ref:u})});dx.displayName=yf;var bf="DialogDescription",fx=h.forwardRef((o,u)=>{const{__scopeDialog:a,...c}=o,f=kt(bf,a);return s.jsx(Ge.p,{id:f.descriptionId,...c,ref:u})});fx.displayName=bf;var wf="DialogClose",px=h.forwardRef((o,u)=>{const{__scopeDialog:a,...c}=o,f=kt(wf,a);return s.jsx(Ge.button,{type:"button",...c,ref:u,onClick:ur(o.onClick,()=>f.onOpenChange(!1))})});px.displayName=wf;function ai(o){return o?"open":"closed"}var Zn='[cmdk-group=""]',$a='[cmdk-group-items=""]',mx='[cmdk-group-heading=""]',kf='[cmdk-item=""]',Rd=`${kf}:not([aria-disabled="true"])`,Za="cmdk-item-select",on="data-value",hx=(o,u,a)=>Rh(o,u,a),Sf=h.createContext(void 0),no=()=>h.useContext(Sf),Nf=h.createContext(void 0),ii=()=>h.useContext(Nf),jf=h.createContext(void 0),Ef=h.forwardRef((o,u)=>{let a=ln(()=>{var b,V;return{search:"",value:(V=(b=o.value)!=null?b:o.defaultValue)!=null?V:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=ln(()=>new Set),f=ln(()=>new Map),p=ln(()=>new Map),m=ln(()=>new Set),g=Cf(o),{label:N,children:S,value:w,onValueChange:E,filter:P,shouldFilter:M,loop:T,disablePointerSelection:j=!1,vimBindings:L=!0,...$}=o,O=Ft(),G=Ft(),X=Ft(),F=h.useRef(null),re=Ex();Er(()=>{if(w!==void 0){let b=w.trim();a.current.value=b,de.emit()}},[w]),Er(()=>{re(6,ze)},[]);let de=h.useMemo(()=>({subscribe:b=>(m.current.add(b),()=>m.current.delete(b)),snapshot:()=>a.current,setState:(b,V,K)=>{var B,J,le,fe;if(!Object.is(a.current[b],V)){if(a.current[b]=V,b==="search")ce(),ue(),re(1,Ce);else if(b==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let he=document.getElementById(X);he?he.focus():(B=document.getElementById(O))==null||B.focus()}if(re(7,()=>{var he;a.current.selectedItemId=(he=_e())==null?void 0:he.id,de.emit()}),K||re(5,ze),((J=g.current)==null?void 0:J.value)!==void 0){let he=V??"";(fe=(le=g.current).onValueChange)==null||fe.call(le,he);return}}de.emit()}},emit:()=>{m.current.forEach(b=>b())}}),[]),we=h.useMemo(()=>({value:(b,V,K)=>{var B;V!==((B=p.current.get(b))==null?void 0:B.value)&&(p.current.set(b,{value:V,keywords:K}),a.current.filtered.items.set(b,I(V,K)),re(2,()=>{ue(),de.emit()}))},item:(b,V)=>(c.current.add(b),V&&(f.current.has(V)?f.current.get(V).add(b):f.current.set(V,new Set([b]))),re(3,()=>{ce(),ue(),a.current.value||Ce(),de.emit()}),()=>{p.current.delete(b),c.current.delete(b),a.current.filtered.items.delete(b);let K=_e();re(4,()=>{ce(),(K==null?void 0:K.getAttribute("id"))===b&&Ce(),de.emit()})}),group:b=>(f.current.has(b)||f.current.set(b,new Set),()=>{p.current.delete(b),f.current.delete(b)}),filter:()=>g.current.shouldFilter,label:N||o["aria-label"],getDisablePointerSelection:()=>g.current.disablePointerSelection,listId:O,inputId:X,labelId:G,listInnerRef:F}),[]);function I(b,V){var K,B;let J=(B=(K=g.current)==null?void 0:K.filter)!=null?B:hx;return b?J(b,a.current.search,V):0}function ue(){if(!a.current.search||g.current.shouldFilter===!1)return;let b=a.current.filtered.items,V=[];a.current.filtered.groups.forEach(B=>{let J=f.current.get(B),le=0;J.forEach(fe=>{let he=b.get(fe);le=Math.max(he,le)}),V.push([B,le])});let K=F.current;Ie().sort((B,J)=>{var le,fe;let he=B.getAttribute("id"),Ue=J.getAttribute("id");return((le=b.get(Ue))!=null?le:0)-((fe=b.get(he))!=null?fe:0)}).forEach(B=>{let J=B.closest($a);J?J.appendChild(B.parentElement===J?B:B.closest(`${$a} > *`)):K.appendChild(B.parentElement===K?B:B.closest(`${$a} > *`))}),V.sort((B,J)=>J[1]-B[1]).forEach(B=>{var J;let le=(J=F.current)==null?void 0:J.querySelector(`${Zn}[${on}="${encodeURIComponent(B[0])}"]`);le==null||le.parentElement.appendChild(le)})}function Ce(){let b=Ie().find(K=>K.getAttribute("aria-disabled")!=="true"),V=b==null?void 0:b.getAttribute(on);de.setState("value",V||void 0)}function ce(){var b,V,K,B;if(!a.current.search||g.current.shouldFilter===!1){a.current.filtered.count=c.current.size;return}a.current.filtered.groups=new Set;let J=0;for(let le of c.current){let fe=(V=(b=p.current.get(le))==null?void 0:b.value)!=null?V:"",he=(B=(K=p.current.get(le))==null?void 0:K.keywords)!=null?B:[],Ue=I(fe,he);a.current.filtered.items.set(le,Ue),Ue>0&&J++}for(let[le,fe]of f.current)for(let he of fe)if(a.current.filtered.items.get(he)>0){a.current.filtered.groups.add(le);break}a.current.filtered.count=J}function ze(){var b,V,K;let B=_e();B&&(((b=B.parentElement)==null?void 0:b.firstChild)===B&&((K=(V=B.closest(Zn))==null?void 0:V.querySelector(mx))==null||K.scrollIntoView({block:"nearest"})),B.scrollIntoView({block:"nearest"}))}function _e(){var b;return(b=F.current)==null?void 0:b.querySelector(`${kf}[aria-selected="true"]`)}function Ie(){var b;return Array.from(((b=F.current)==null?void 0:b.querySelectorAll(Rd))||[])}function Pe(b){let V=Ie()[b];V&&de.setState("value",V.getAttribute(on))}function ye(b){var V;let K=_e(),B=Ie(),J=B.findIndex(fe=>fe===K),le=B[J+b];(V=g.current)!=null&&V.loop&&(le=J+b<0?B[B.length-1]:J+b===B.length?B[0]:B[J+b]),le&&de.setState("value",le.getAttribute(on))}function H(b){let V=_e(),K=V==null?void 0:V.closest(Zn),B;for(;K&&!B;)K=b>0?Nx(K,Zn):jx(K,Zn),B=K==null?void 0:K.querySelector(Rd);B?de.setState("value",B.getAttribute(on)):ye(b)}let te=()=>Pe(Ie().length-1),W=b=>{b.preventDefault(),b.metaKey?te():b.altKey?H(1):ye(1)},k=b=>{b.preventDefault(),b.metaKey?Pe(0):b.altKey?H(-1):ye(-1)};return h.createElement(Ge.div,{ref:u,tabIndex:-1,...$,"cmdk-root":"",onKeyDown:b=>{var V;(V=$.onKeyDown)==null||V.call($,b);let K=b.nativeEvent.isComposing||b.keyCode===229;if(!(b.defaultPrevented||K))switch(b.key){case"n":case"j":{L&&b.ctrlKey&&W(b);break}case"ArrowDown":{W(b);break}case"p":case"k":{L&&b.ctrlKey&&k(b);break}case"ArrowUp":{k(b);break}case"Home":{b.preventDefault(),Pe(0);break}case"End":{b.preventDefault(),te();break}case"Enter":{b.preventDefault();let B=_e();if(B){let J=new Event(Za);B.dispatchEvent(J)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:we.inputId,id:we.labelId,style:_x},N),Ol(o,b=>h.createElement(Nf.Provider,{value:de},h.createElement(Sf.Provider,{value:we},b))))}),gx=h.forwardRef((o,u)=>{var a,c;let f=Ft(),p=h.useRef(null),m=h.useContext(jf),g=no(),N=Cf(o),S=(c=(a=N.current)==null?void 0:a.forceMount)!=null?c:m==null?void 0:m.forceMount;Er(()=>{if(!S)return g.item(f,m==null?void 0:m.id)},[S]);let w=_f(f,p,[o.value,o.children,p],o.keywords),E=ii(),P=cr(re=>re.value&&re.value===w.current),M=cr(re=>S||g.filter()===!1?!0:re.search?re.filtered.items.get(f)>0:!0);h.useEffect(()=>{let re=p.current;if(!(!re||o.disabled))return re.addEventListener(Za,T),()=>re.removeEventListener(Za,T)},[M,o.onSelect,o.disabled]);function T(){var re,de;j(),(de=(re=N.current).onSelect)==null||de.call(re,w.current)}function j(){E.setState("value",w.current,!0)}if(!M)return null;let{disabled:L,value:$,onSelect:O,forceMount:G,keywords:X,...F}=o;return h.createElement(Ge.div,{ref:un(p,u),...F,id:f,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!P,"data-disabled":!!L,"data-selected":!!P,onPointerMove:L||g.getDisablePointerSelection()?void 0:j,onClick:L?void 0:T},o.children)}),xx=h.forwardRef((o,u)=>{let{heading:a,children:c,forceMount:f,...p}=o,m=Ft(),g=h.useRef(null),N=h.useRef(null),S=Ft(),w=no(),E=cr(M=>f||w.filter()===!1?!0:M.search?M.filtered.groups.has(m):!0);Er(()=>w.group(m),[]),_f(m,g,[o.value,o.heading,N]);let P=h.useMemo(()=>({id:m,forceMount:f}),[f]);return h.createElement(Ge.div,{ref:un(g,u),...p,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},a&&h.createElement("div",{ref:N,"cmdk-group-heading":"","aria-hidden":!0,id:S},a),Ol(o,M=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":a?S:void 0},h.createElement(jf.Provider,{value:P},M))))}),vx=h.forwardRef((o,u)=>{let{alwaysRender:a,...c}=o,f=h.useRef(null),p=cr(m=>!m.search);return!a&&!p?null:h.createElement(Ge.div,{ref:un(f,u),...c,"cmdk-separator":"",role:"separator"})}),yx=h.forwardRef((o,u)=>{let{onValueChange:a,...c}=o,f=o.value!=null,p=ii(),m=cr(S=>S.search),g=cr(S=>S.selectedItemId),N=no();return h.useEffect(()=>{o.value!=null&&p.setState("search",o.value)},[o.value]),h.createElement(Ge.input,{ref:u,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":N.listId,"aria-labelledby":N.labelId,"aria-activedescendant":g,id:N.inputId,type:"text",value:f?o.value:m,onChange:S=>{f||p.setState("search",S.target.value),a==null||a(S.target.value)}})}),bx=h.forwardRef((o,u)=>{let{children:a,label:c="Suggestions",...f}=o,p=h.useRef(null),m=h.useRef(null),g=cr(S=>S.selectedItemId),N=no();return h.useEffect(()=>{if(m.current&&p.current){let S=m.current,w=p.current,E,P=new ResizeObserver(()=>{E=requestAnimationFrame(()=>{let M=S.offsetHeight;w.style.setProperty("--cmdk-list-height",M.toFixed(1)+"px")})});return P.observe(S),()=>{cancelAnimationFrame(E),P.unobserve(S)}}},[]),h.createElement(Ge.div,{ref:un(p,u),...f,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":g,"aria-label":c,id:N.listId},Ol(o,S=>h.createElement("div",{ref:un(m,N.listInnerRef),"cmdk-list-sizer":""},S)))}),wx=h.forwardRef((o,u)=>{let{open:a,onOpenChange:c,overlayClassName:f,contentClassName:p,container:m,...g}=o;return h.createElement(ff,{open:a,onOpenChange:c},h.createElement(hf,{container:m},h.createElement(gf,{"cmdk-overlay":"",className:f}),h.createElement(xf,{"aria-label":o.label,"cmdk-dialog":"",className:p},h.createElement(Ef,{ref:u,...g}))))}),kx=h.forwardRef((o,u)=>cr(a=>a.filtered.count===0)?h.createElement(Ge.div,{ref:u,...o,"cmdk-empty":"",role:"presentation"}):null),Sx=h.forwardRef((o,u)=>{let{progress:a,children:c,label:f="Loading...",...p}=o;return h.createElement(Ge.div,{ref:u,...p,"cmdk-loading":"",role:"progressbar","aria-valuenow":a,"aria-valuemin":0,"aria-valuemax":100,"aria-label":f},Ol(o,m=>h.createElement("div",{"aria-hidden":!0},m)))}),rn=Object.assign(Ef,{List:bx,Item:gx,Input:yx,Group:xx,Separator:vx,Dialog:wx,Empty:kx,Loading:Sx});function Nx(o,u){let a=o.nextElementSibling;for(;a;){if(a.matches(u))return a;a=a.nextElementSibling}}function jx(o,u){let a=o.previousElementSibling;for(;a;){if(a.matches(u))return a;a=a.previousElementSibling}}function Cf(o){let u=h.useRef(o);return Er(()=>{u.current=o}),u}var Er=typeof window>"u"?h.useEffect:h.useLayoutEffect;function ln(o){let u=h.useRef();return u.current===void 0&&(u.current=o()),u}function cr(o){let u=ii(),a=()=>o(u.snapshot());return h.useSyncExternalStore(u.subscribe,a,a)}function _f(o,u,a,c=[]){let f=h.useRef(),p=no();return Er(()=>{var m;let g=(()=>{var S;for(let w of a){if(typeof w=="string")return w.trim();if(typeof w=="object"&&"current"in w)return w.current?(S=w.current.textContent)==null?void 0:S.trim():f.current}})(),N=c.map(S=>S.trim());p.value(o,g,N),(m=u.current)==null||m.setAttribute(on,g),f.current=g}),f}var Ex=()=>{let[o,u]=h.useState(),a=ln(()=>new Map);return Er(()=>{a.current.forEach(c=>c()),a.current=new Map},[o]),(c,f)=>{a.current.set(c,f),u({})}};function Cx(o){let u=o.type;return typeof u=="function"?u(o.props):"render"in u?u.render(o.props):o}function Ol({asChild:o,children:u},a){return o&&h.isValidElement(u)?h.cloneElement(Cx(u),{ref:u.ref},a(u.props.children)):a(u)}var _x={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Px({onNavigate:o}){const[u,a]=h.useState(!1);return h.useEffect(()=>{const c=f=>{(f.metaKey||f.ctrlKey)&&f.key.toLowerCase()==="k"&&(f.preventDefault(),a(p=>!p))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),s.jsx(rn.Dialog,{open:u,onOpenChange:a,label:"Befehlspalette",className:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 p-4 pt-[12vh]",onClick:()=>a(!1),children:s.jsxs("div",{className:"w-full max-w-lg overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl",onClick:c=>c.stopPropagation(),children:[s.jsx(rn.Input,{autoFocus:!0,placeholder:"Springe zu… (Modelle, Routing, System …)",className:"w-full border-b border-border bg-transparent px-4 py-3 text-sm outline-none placeholder:text-muted-foreground"}),s.jsxs(rn.List,{className:"max-h-80 overflow-y-auto p-2",children:[s.jsx(rn.Empty,{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Nichts gefunden."}),s.jsx(rn.Group,{heading:"Bereiche",className:"px-1 py-1 text-xs text-muted-foreground",children:Qa.map(c=>s.jsxs(rn.Item,{value:`${c.label} ${c.hint}`,onSelect:()=>{o(c.id),a(!1)},className:"flex cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm text-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",children:[s.jsx(c.icon,{className:"h-4 w-4 text-primary"}),s.jsx("span",{children:c.label}),s.jsx("span",{className:"ml-auto truncate text-xs text-muted-foreground",children:c.hint})]},c.id))})]})]})})}async function pe(o,u){const a=await fetch(o,{headers:{"Content-Type":"application/json"},...u});if(!a.ok)throw new Error(`${a.status} ${a.statusText}`);return a.json()}function Pf(o){var u,a,c="";if(typeof o=="string"||typeof o=="number")c+=o;else if(typeof o=="object")if(Array.isArray(o)){var f=o.length;for(u=0;u<f;u++)o[u]&&(a=Pf(o[u]))&&(c&&(c+=" "),c+=a)}else for(a in o)o[a]&&(c&&(c+=" "),c+=a);return c}function Rx(){for(var o,u,a=0,c="",f=arguments.length;a<f;a++)(o=arguments[a])&&(u=Pf(o))&&(c&&(c+=" "),c+=u);return c}const ui="-",Mx=o=>{const u=Tx(o),{conflictingClassGroups:a,conflictingClassGroupModifiers:c}=o;return{getClassGroupId:m=>{const g=m.split(ui);return g[0]===""&&g.length!==1&&g.shift(),Rf(g,u)||Lx(m)},getConflictingClassGroupIds:(m,g)=>{const N=a[m]||[];return g&&c[m]?[...N,...c[m]]:N}}},Rf=(o,u)=>{var m;if(o.length===0)return u.classGroupId;const a=o[0],c=u.nextPart.get(a),f=c?Rf(o.slice(1),c):void 0;if(f)return f;if(u.validators.length===0)return;const p=o.join(ui);return(m=u.validators.find(({validator:g})=>g(p)))==null?void 0:m.classGroupId},Md=/^\[(.+)\]$/,Lx=o=>{if(Md.test(o)){const u=Md.exec(o)[1],a=u==null?void 0:u.substring(0,u.indexOf(":"));if(a)return"arbitrary.."+a}},Tx=o=>{const{theme:u,prefix:a}=o,c={nextPart:new Map,validators:[]};return Dx(Object.entries(o.classGroups),a).forEach(([p,m])=>{Ja(m,c,p,u)}),c},Ja=(o,u,a,c)=>{o.forEach(f=>{if(typeof f=="string"){const p=f===""?u:Ld(u,f);p.classGroupId=a;return}if(typeof f=="function"){if(Ox(f)){Ja(f(c),u,a,c);return}u.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,m])=>{Ja(m,Ld(u,p),a,c)})})},Ld=(o,u)=>{let a=o;return u.split(ui).forEach(c=>{a.nextPart.has(c)||a.nextPart.set(c,{nextPart:new Map,validators:[]}),a=a.nextPart.get(c)}),a},Ox=o=>o.isThemeGetter,Dx=(o,u)=>u?o.map(([a,c])=>{const f=c.map(p=>typeof p=="string"?u+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([m,g])=>[u+m,g])):p);return[a,f]}):o,zx=o=>{if(o<1)return{get:()=>{},set:()=>{}};let u=0,a=new Map,c=new Map;const f=(p,m)=>{a.set(p,m),u++,u>o&&(u=0,c=a,a=new Map)};return{get(p){let m=a.get(p);if(m!==void 0)return m;if((m=c.get(p))!==void 0)return f(p,m),m},set(p,m){a.has(p)?a.set(p,m):f(p,m)}}},Mf="!",Ix=o=>{const{separator:u,experimentalParseClassName:a}=o,c=u.length===1,f=u[0],p=u.length,m=g=>{const N=[];let S=0,w=0,E;for(let L=0;L<g.length;L++){let $=g[L];if(S===0){if($===f&&(c||g.slice(L,L+p)===u)){N.push(g.slice(w,L)),w=L+p;continue}if($==="/"){E=L;continue}}$==="["?S++:$==="]"&&S--}const P=N.length===0?g:g.substring(w),M=P.startsWith(Mf),T=M?P.substring(1):P,j=E&&E>w?E-w:void 0;return{modifiers:N,hasImportantModifier:M,baseClassName:T,maybePostfixModifierPosition:j}};return a?g=>a({className:g,parseClassName:m}):m},Ax=o=>{if(o.length<=1)return o;const u=[];let a=[];return o.forEach(c=>{c[0]==="["?(u.push(...a.sort(),c),a=[]):a.push(c)}),u.push(...a.sort()),u},Fx=o=>({cache:zx(o.cacheSize),parseClassName:Ix(o),...Mx(o)}),Ux=/\s+/,$x=(o,u)=>{const{parseClassName:a,getClassGroupId:c,getConflictingClassGroupIds:f}=u,p=[],m=o.trim().split(Ux);let g="";for(let N=m.length-1;N>=0;N-=1){const S=m[N],{modifiers:w,hasImportantModifier:E,baseClassName:P,maybePostfixModifierPosition:M}=a(S);let T=!!M,j=c(T?P.substring(0,M):P);if(!j){if(!T){g=S+(g.length>0?" "+g:g);continue}if(j=c(P),!j){g=S+(g.length>0?" "+g:g);continue}T=!1}const L=Ax(w).join(":"),$=E?L+Mf:L,O=$+j;if(p.includes(O))continue;p.push(O);const G=f(j,T);for(let X=0;X<G.length;++X){const F=G[X];p.push($+F)}g=S+(g.length>0?" "+g:g)}return g};function Bx(){let o=0,u,a,c="";for(;o<arguments.length;)(u=arguments[o++])&&(a=Lf(u))&&(c&&(c+=" "),c+=a);return c}const Lf=o=>{if(typeof o=="string")return o;let u,a="";for(let c=0;c<o.length;c++)o[c]&&(u=Lf(o[c]))&&(a&&(a+=" "),a+=u);return a};function Vx(o,...u){let a,c,f,p=m;function m(N){const S=u.reduce((w,E)=>E(w),o());return a=Fx(S),c=a.cache.get,f=a.cache.set,p=g,g(N)}function g(N){const S=c(N);if(S)return S;const w=$x(N,a);return f(N,w),w}return function(){return p(Bx.apply(null,arguments))}}const je=o=>{const u=a=>a[o]||[];return u.isThemeGetter=!0,u},Tf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hx=/^\d+\/\d+$/,Wx=new Set(["px","full","screen"]),Gx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kx=/\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$/,Qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=o=>an(o)||Wx.has(o)||Hx.test(o),lr=o=>dn(o,"length",o0),an=o=>!!o&&!Number.isNaN(Number(o)),Ba=o=>dn(o,"number",an),Jn=o=>!!o&&Number.isInteger(Number(o)),Xx=o=>o.endsWith("%")&&an(o.slice(0,-1)),me=o=>Tf.test(o),sr=o=>Gx.test(o),Zx=new Set(["length","size","percentage"]),Jx=o=>dn(o,Zx,Of),e0=o=>dn(o,"position",Of),t0=new Set(["image","url"]),r0=o=>dn(o,t0,s0),n0=o=>dn(o,"",l0),eo=()=>!0,dn=(o,u,a)=>{const c=Tf.exec(o);return c?c[1]?typeof u=="string"?c[1]===u:u.has(c[1]):a(c[2]):!1},o0=o=>Kx.test(o)&&!Qx.test(o),Of=()=>!1,l0=o=>qx.test(o),s0=o=>Yx.test(o),a0=()=>{const o=je("colors"),u=je("spacing"),a=je("blur"),c=je("brightness"),f=je("borderColor"),p=je("borderRadius"),m=je("borderSpacing"),g=je("borderWidth"),N=je("contrast"),S=je("grayscale"),w=je("hueRotate"),E=je("invert"),P=je("gap"),M=je("gradientColorStops"),T=je("gradientColorStopPositions"),j=je("inset"),L=je("margin"),$=je("opacity"),O=je("padding"),G=je("saturate"),X=je("scale"),F=je("sepia"),re=je("skew"),de=je("space"),we=je("translate"),I=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],Ce=()=>["auto",me,u],ce=()=>[me,u],ze=()=>["",At,lr],_e=()=>["auto",an,me],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Pe=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",me],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[an,me];return{cacheSize:500,separator:":",theme:{colors:[eo],spacing:[At,lr],blur:["none","",sr,me],brightness:k(),borderColor:[o],borderRadius:["none","","full",sr,me],borderSpacing:ce(),borderWidth:ze(),contrast:k(),grayscale:te(),hueRotate:k(),invert:te(),gap:ce(),gradientColorStops:[o],gradientColorStopPositions:[Xx,lr],inset:Ce(),margin:Ce(),opacity:k(),padding:ce(),saturate:k(),scale:k(),sepia:te(),skew:k(),space:ce(),translate:ce()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[sr]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"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"],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:[...Ie(),me]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jn,me]}],basis:[{basis:Ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Jn,me]}],"grid-cols":[{"grid-cols":[eo]}],"col-start-end":[{col:["auto",{span:["full",Jn,me]},me]}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":[eo]}],"row-start-end":[{row:["auto",{span:[Jn,me]},me]}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[L]}],mx:[{mx:[L]}],my:[{my:[L]}],ms:[{ms:[L]}],me:[{me:[L]}],mt:[{mt:[L]}],mr:[{mr:[L]}],mb:[{mb:[L]}],ml:[{ml:[L]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,u]}],"min-w":[{"min-w":[me,u,"min","max","fit"]}],"max-w":[{"max-w":[me,u,"none","full","min","max","fit","prose",{screen:[sr]},sr]}],h:[{h:[me,u,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,u,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,u,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,u,"auto","min","max","fit"]}],"font-size":[{text:["base",sr,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ba]}],"font-family":[{font:[eo]}],"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:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",an,Ba]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[o]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[o]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,lr]}],"underline-offset":[{"underline-offset":["auto",At,me]}],"text-decoration-color":[{decoration:[o]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ce()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),e0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},r0]}],"bg-color":[{bg:[o]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[...Pe(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:Pe()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...Pe()]}],"outline-offset":[{"outline-offset":[At,me]}],"outline-w":[{outline:[At,lr]}],"outline-color":[{outline:[o]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[o]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[At,lr]}],"ring-offset-color":[{"ring-offset":[o]}],shadow:[{shadow:["","inner","none",sr,n0]}],"shadow-color":[{shadow:[eo]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[c]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",sr,me]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[E]}],saturate:[{saturate:[G]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[E]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[X]}],"scale-x":[{"scale-x":[X]}],"scale-y":[{"scale-y":[X]}],rotate:[{rotate:[Jn,me]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",o]}],appearance:[{appearance:["none","auto"]}],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",me]}],"caret-color":[{caret:[o]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ce()}],"scroll-mx":[{"scroll-mx":ce()}],"scroll-my":[{"scroll-my":ce()}],"scroll-ms":[{"scroll-ms":ce()}],"scroll-me":[{"scroll-me":ce()}],"scroll-mt":[{"scroll-mt":ce()}],"scroll-mr":[{"scroll-mr":ce()}],"scroll-mb":[{"scroll-mb":ce()}],"scroll-ml":[{"scroll-ml":ce()}],"scroll-p":[{"scroll-p":ce()}],"scroll-px":[{"scroll-px":ce()}],"scroll-py":[{"scroll-py":ce()}],"scroll-ps":[{"scroll-ps":ce()}],"scroll-pe":[{"scroll-pe":ce()}],"scroll-pt":[{"scroll-pt":ce()}],"scroll-pr":[{"scroll-pr":ce()}],"scroll-pb":[{"scroll-pb":ce()}],"scroll-pl":[{"scroll-pl":ce()}],"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",me]}],fill:[{fill:[o,"none"]}],"stroke-w":[{stroke:[At,lr,Ba]}],stroke:[{stroke:[o,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},i0=Vx(a0);function ae(...o){return i0(Rx(o))}function nn(o){return(o/1024**3).toFixed(1)}function Nl({value:o,label:u,detail:a}){const f=2*Math.PI*24,p=f-Math.min(o,100)/100*f,m=o>90?"stroke-red-500":o>75?"stroke-amber-500":"stroke-primary";return s.jsxs("div",{className:"flex flex-col items-center gap-1.5 p-2 bg-background/20 rounded-xl border border-border/40",children:[s.jsxs("div",{className:"relative flex h-16 w-16 items-center justify-center",children:[s.jsxs("svg",{className:"absolute inset-0 h-full w-full -rotate-90",children:[s.jsx("circle",{cx:"32",cy:"32",r:24,className:"stroke-muted fill-none",strokeWidth:"4.5"}),s.jsx("circle",{cx:"32",cy:"32",r:24,className:ae("fill-none transition-all duration-700 ease-out",m),strokeWidth:"4.5",strokeDasharray:f,strokeDashoffset:p,strokeLinecap:"round"})]}),s.jsxs("span",{className:"text-xs font-mono font-bold tracking-tight text-foreground",children:[Math.round(o),"%"]})]}),s.jsx("span",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",children:u}),a&&s.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/80",children:a})]})}function u0(){const[o,u]=h.useState(null),[a,c]=h.useState(null),[f,p]=h.useState([]),[m,g]=h.useState([]),[N,S]=h.useState([]),[w,E]=h.useState(null),[P,M]=h.useState(""),[T,j]=h.useState("stable"),[L,$]=h.useState(!1);function O(){pe("/api/system/status").then(u).catch(()=>{}),pe("/api/agent/status").then(c).catch(()=>{}),pe("/api/models").then(F=>{p(F.models||[]),g(F.running||[])}).catch(()=>{}),pe("/api/memory?category=").then(F=>S(F.slice(0,3))).catch(()=>{}),pe("/api/maintenance/updates").then(E).catch(()=>{})}h.useEffect(()=>{O();const F=setInterval(O,3e3);return()=>clearInterval(F)},[]);async function G(){if(!(!P.trim()||L)){$(!0);try{await pe("/api/memory",{method:"POST",body:JSON.stringify({content:P,category:T,source:"dashboard"})}),M(""),pe("/api/memory?category=").then(F=>S(F.slice(0,3))).catch(()=>{})}catch(F){console.error(F)}finally{$(!1)}}}const X=f.filter(F=>F.role);return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Zentrale"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Aktueller Status von System, Modellen und Agent."})]}),s.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[s.jsxs("div",{className:"md:col-span-2 flex flex-col justify-between rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(jr,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"System-Status"})]}),o?s.jsxs("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[s.jsx(Nl,{value:o.cpu.percent,label:"CPU",detail:`${o.cpu.cores} Cores`}),s.jsx(Nl,{value:o.ram.percent,label:"RAM",detail:`${nn(o.ram.used)} / ${nn(o.ram.total)} GB`}),o.gpu&&o.gpu.busy_percent!=null&&o.gpu.gtt_used!=null&&o.gpu.gtt_total!=null&&s.jsx(Nl,{value:o.gpu.busy_percent,label:"GPU",detail:`${nn(o.gpu.gtt_used)} / ${nn(o.gpu.gtt_total)} GB`}),o.disk&&s.jsx(Nl,{value:o.disk.percent,label:"Disk",detail:`${nn(o.disk.used)} / ${nn(o.disk.total)} GB`})]}):s.jsx("div",{className:"h-28 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Systemdaten…"})]}),(o==null?void 0:o.temp)&&(o.temp.cpu||o.temp.gpu)&&s.jsxs("div",{className:"mt-4 flex gap-4 text-xs font-mono text-muted-foreground/80 border-t border-border/30 pt-3",children:[o.temp.cpu!=null&&s.jsxs("span",{children:["CPU Temp: ",o.temp.cpu," °C"]}),o.temp.gpu!=null&&s.jsxs("span",{children:["GPU Temp: ",o.temp.gpu," °C"]})]})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(Hd,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Updates & Pflege"})]}),w?s.jsxs("div",{className:"space-y-2.5",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:ae("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",w.os>0?"border-amber-500/30 bg-amber-500/5 text-amber-400 font-semibold":"border-border/30 bg-background/25 text-muted-foreground"),children:[s.jsx("span",{children:"OS-Pakete"}),s.jsx("span",{className:"font-mono",children:w.os>0?`${w.os} verfügbar`:"aktuell"})]}),s.jsxs("div",{className:ae("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",w.engine>0?"border-amber-500/30 bg-amber-500/5 text-amber-400 font-semibold":"border-border/30 bg-background/25 text-muted-foreground"),children:[s.jsx("span",{children:"Engine (llama.cpp)"}),s.jsx("span",{className:"font-mono",children:w.engine>0?"Update verfügbar":"aktuell"})]}),s.jsxs("div",{className:ae("flex items-center justify-between px-3 py-1.5 rounded-lg border text-xs",w.models>0?"border-primary/30 bg-primary/5 text-primary font-semibold animate-pulse":"border-border/30 bg-background/25 text-muted-foreground"),children:[s.jsx("span",{children:"Modell-Upgrades"}),s.jsx("span",{className:"font-mono",children:w.models>0?`${w.models} verfügbar`:"aktuell"})]})]}),w.model_list.length>0&&s.jsxs("div",{className:"mt-2 space-y-1",children:[s.jsx("div",{className:"text-[9px] uppercase font-bold text-muted-foreground/60 tracking-wider",children:"Upgrades:"}),s.jsx("div",{className:"max-h-20 overflow-y-auto space-y-1 pr-1 scrollbar-thin",children:w.model_list.map(F=>s.jsxs("div",{className:"text-[9px] bg-background/20 border border-border/20 rounded p-1.5 font-mono text-muted-foreground truncate",title:`${F.role}: ${F.repo}`,children:[s.jsx("span",{className:"text-primary font-semibold uppercase",children:F.role}),": ",F.repo.split("/").pop()]},F.repo))})]})]}):s.jsx("div",{className:"h-24 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Updates..."})]}),s.jsx("div",{className:"mt-4 border-t border-border/30 pt-3 shrink-0",children:s.jsx("button",{onClick:()=>window.dispatchEvent(new CustomEvent("open-system-drawer")),className:"w-full h-8 flex items-center justify-center gap-1.5 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all cursor-pointer shadow-md shadow-primary/10",children:"System-Zentrale öffnen"})})]})]}),s.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ni,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Hermes Agent"})]}),(a==null?void 0:a.webui_url)&&s.jsxs("a",{href:a.webui_url,target:"_blank",rel:"noopener",className:ae("flex items-center gap-1 px-3 py-1 rounded-lg text-xs font-medium transition-all",a.webui_reachable?"bg-primary text-primary-foreground hover:opacity-90 shadow-md shadow-primary/20":"border border-border text-muted-foreground"),children:[s.jsx(Pl,{className:"h-3 w-3"})," Hermes öffnen"]})]}),a?s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[s.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"Gateway"}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:ae("h-2 w-2 rounded-full",a.gateway_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500")}),s.jsx("span",{className:"text-xs font-medium",children:a.gateway_reachable?"Online":"Offline"})]})]}),s.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[s.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"WebUI"}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:ae("h-2 w-2 rounded-full",a.webui_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500")}),s.jsx("span",{className:"text-xs font-medium",children:a.webui_reachable?"Online":"Offline"})]})]})]}),s.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/40",children:[s.jsx("div",{className:"text-[10px] text-muted-foreground uppercase font-semibold",children:"Aktives Gehirn"}),s.jsxs("div",{className:"text-xs font-medium mt-1 font-mono text-primary flex items-center gap-1.5",children:[s.jsx(Ga,{className:"h-3.5 w-3.5"}),a.brain_model?`model: ${a.brain_model}`:"model: auto"]})]})]}):s.jsx("div",{className:"h-28 flex items-center justify-center text-xs text-muted-foreground",children:"Lade Agenten-Status…"})]}),s.jsx("div",{className:"mt-3 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Gedächtnis & Stack-Tools via MCP gekoppelt."})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(Ga,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Aktive Rollen"})]}),s.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto pr-1 scrollbar-thin",children:X.length===0?s.jsx("div",{className:"text-xs text-muted-foreground py-6 text-center",children:"Keine Modelle als Rollen zugewiesen."}):X.map(F=>{const re=m.includes(F.name);return s.jsxs("div",{className:ae("flex items-center justify-between p-2.5 rounded-xl border transition-all duration-300",re?"border-primary/50 bg-primary/5 shadow-md shadow-primary/5":"border-border/40 bg-background/20"),children:[s.jsxs("div",{className:"min-w-0 flex-1 mr-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:ae("text-[9px] font-semibold uppercase px-1.5 py-0.5 rounded font-mono",F.role==="fast"?"bg-cyan-500/15 text-cyan-400":F.role==="heavy"?"bg-amber-500/15 text-amber-400":F.role==="coder"?"bg-violet-500/15 text-violet-400":F.role==="vision"?"bg-pink-500/15 text-pink-400":"bg-muted text-muted-foreground"),children:F.role}),re&&s.jsxs("span",{className:"flex h-2 w-2 relative",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-emerald-500"})]})]}),s.jsx("div",{className:"text-[10px] font-medium mt-1 truncate",title:F.name,children:F.name})]}),s.jsx("div",{className:"text-[9px] font-mono text-muted-foreground shrink-0",children:re?"Warm":"Bereit"})]},F.name)})})]}),s.jsx("div",{className:"mt-4 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Laden erfolgt automatisch per Auto-Swap."})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/15 flex flex-col justify-between",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(Ud,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase text-foreground",children:"Gedächtnis"})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("textarea",{value:P,onChange:F=>M(F.target.value),placeholder:"Fakt / Regel im Pool speichern...",rows:2,className:"w-full resize-none rounded-xl border border-border/50 bg-background/30 p-2 text-[10px] outline-none focus:ring-1 focus:ring-primary transition-all leading-normal"}),s.jsxs("div",{className:"flex items-center gap-2 justify-between",children:[s.jsxs("select",{value:T,onChange:F=>j(F.target.value),className:"h-7 rounded-lg border border-border/50 bg-background/50 px-2 text-[10px] outline-none cursor-pointer",children:[s.jsx("option",{value:"stable",children:"🔵 Fakt"}),s.jsx("option",{value:"instruction",children:"📋 Regel"}),s.jsx("option",{value:"user",children:"👤 User"}),s.jsx("option",{value:"versioned",children:"🟡 Version"})]}),s.jsxs("button",{onClick:G,disabled:!P.trim()||L,className:"flex h-7 items-center gap-1 rounded-lg bg-primary px-3 text-[10px] font-semibold text-primary-foreground hover:opacity-90 disabled:opacity-50 transition-all cursor-pointer",children:[s.jsx(Bd,{className:"h-3.5 w-3.5"})," Speichern"]})]})]}),s.jsxs("div",{className:"mt-3.5 space-y-1.5",children:[s.jsx("div",{className:"text-[9px] text-muted-foreground uppercase font-bold tracking-wider",children:"Zuletzt gespeichert:"}),s.jsx("div",{className:"max-h-20 overflow-y-auto space-y-1 pr-1 scrollbar-thin",children:N.length===0?s.jsx("div",{className:"text-[10px] text-muted-foreground/75 py-1",children:"Keine Einträge vorhanden."}):N.map(F=>s.jsxs("div",{className:"text-[10px] bg-background/10 border border-border/30 rounded p-1.5 flex items-start gap-1.5",children:[s.jsx("span",{className:"shrink-0 text-[8px] font-mono text-muted-foreground/80 px-1 py-0.5 rounded bg-muted/20",children:F.category}),s.jsx("span",{className:"truncate flex-1 text-muted-foreground hover:text-foreground transition-colors",title:F.content,children:F.content})]},F.id))})]})]}),s.jsx("div",{className:"mt-4 text-[10px] text-muted-foreground/80 border-t border-border/30 pt-3",children:"Steht allen Clients per MCP zur Verfügung."})]})]})]})}function Nr({children:o,tone:u="muted"}){const a={muted:"bg-muted text-muted-foreground",primary:"bg-primary/15 text-primary",warn:"bg-amber-500/15 text-amber-500"};return s.jsx("span",{className:`rounded px-1.5 py-0.5 text-[11px] font-medium ${a[u]}`,children:o})}function Df({caps:o}){return o?s.jsxs("span",{className:"inline-flex flex-wrap gap-1",children:[o.coder&&s.jsx(Nr,{children:"💻 Code"}),o.vision&&s.jsx(Nr,{children:"👁 Bild"}),o.reasoning&&s.jsx(Nr,{children:"🧠 Reason"}),o.moe&&s.jsxs(Nr,{tone:"primary",children:["🧩 MoE",o.active_b?`·${o.active_b}b`:""]}),o.tools==="yes"&&s.jsx(Nr,{tone:"primary",children:"🛠 Tools"}),o.tools==="likely"&&s.jsx(Nr,{tone:"warn",children:"🛠 Tools?"}),o.embedding&&s.jsx(Nr,{children:"🔢 Embed"})]}):null}function c0(){const[o,u]=h.useState(null),[a,c]=h.useState("");return h.useEffect(()=>{pe("/api/routing").then(u).catch(f=>c(String(f)))},[]),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Gateway & Routing"}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Eingebauter OpenAI-Gateway für Vibe Coding & Hermes. Verwende den Endpunkt ",s.jsx("code",{children:"model: auto"}),", um je nach Komplexität automatisch zwischen ",s.jsx("code",{children:"fast"})," und ",s.jsx("code",{children:"heavy"})," zu routen."]})]}),a&&s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Gateway-Konfiguration nicht lesbar (",a,")."]}),o&&s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:ae("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",o.gateway_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500")}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-semibold uppercase tracking-wider text-foreground",children:"Gateway-Status"}),s.jsx("div",{className:"text-[10px] text-muted-foreground mt-0.5 font-mono",children:o.endpoint||"Lokaler Proxy"})]})]}),o.heavy_threshold_chars&&s.jsxs("div",{className:"p-3 bg-background/25 rounded-xl border border-border/30 text-right",children:[s.jsx("div",{className:"text-[9px] text-muted-foreground uppercase font-bold tracking-wider",children:"Auto-Routing-Schwelle"}),s.jsxs("div",{className:"text-xs font-semibold text-primary mt-0.5 font-mono",children:["> ",o.heavy_threshold_chars.toLocaleString()," Zeichen ➔ heavy"]})]})]}),s.jsxs("div",{className:"grid gap-6 md:grid-cols-3",children:[s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 flex flex-col justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(mh,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"1. API Ingress"})]}),s.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:["Deine IDE oder dein Agent sendet Anfragen mit ",s.jsx("code",{children:"model: auto"})," an den lokalen Gateway-Port."]})]}),s.jsxs("div",{className:"p-3 bg-background/20 rounded-xl border border-border/20 font-mono text-[10px]",children:[s.jsx("div",{className:"text-muted-foreground/60",children:"HEADER"}),s.jsx("div",{className:"text-primary truncate",children:"Authorization: Bearer key"}),s.jsx("div",{className:"text-muted-foreground/60 mt-1",children:"MODEL"}),s.jsx("div",{className:"text-foreground",children:'"auto"'})]})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 flex flex-col justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(ch,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"2. Analysator"})]}),s.jsxs("p",{className:"text-xs text-muted-foreground leading-relaxed",children:["Der Gateway misst die Länge des Prompts. Kurze Tasks landen bei ",s.jsx("code",{children:"fast"}),", anspruchsvolle Tasks werden an ",s.jsx("code",{children:"heavy"})," weitergeleitet."]})]}),s.jsxs("div",{className:"space-y-1.5 font-mono text-[9px] p-2 bg-background/10 rounded-xl border border-border/10",children:[s.jsxs("div",{className:"flex items-center justify-between text-cyan-400",children:[s.jsxs("span",{children:["Prompt < ",o.heavy_threshold_chars]}),s.jsxs("span",{className:"flex items-center gap-1",children:["Fast-Hirn ",s.jsx(gl,{className:"h-3 w-3"})]})]}),s.jsxs("div",{className:"flex items-center justify-between text-violet-400",children:[s.jsxs("span",{children:["Prompt >= ",o.heavy_threshold_chars]}),s.jsxs("span",{className:"flex items-center gap-1",children:["Heavy-Hirn ",s.jsx(gl,{className:"h-3 w-3"})]})]})]})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 flex flex-col justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(rh,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"3. Llama Swap"})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Llama Swap tauscht das Modell bei Bedarf vollautomatisch im VRAM aus (Auto-Swap). Keine manuelle Zuweisung nötig."})]}),s.jsx("div",{className:"p-3 bg-primary/5 rounded-xl border border-primary/20 text-center",children:s.jsx("span",{className:"text-[10px] font-bold text-primary animate-pulse",children:"Auto-Swap aktiv"})})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground px-1",children:"Gateway-Routen"}),s.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:o.routes.map(f=>s.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl border border-border/60 bg-card/45 backdrop-blur-md hover:border-primary/30 transition-colors",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("div",{className:"text-xs font-bold text-foreground font-mono",children:f.name}),s.jsx("div",{className:"text-[9px] text-muted-foreground uppercase",children:"Gateway-Alias"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(gl,{className:"h-3.5 w-3.5 text-muted-foreground/60"}),s.jsx("div",{className:"px-2.5 py-1 rounded-lg bg-background/40 border border-border/40 text-[10px] font-mono text-primary font-semibold truncate max-w-[160px] sm:max-w-[200px]",title:f.target,children:f.target})]})]},f.name))})]}),o.fallbacks.length>0&&s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-1",children:[s.jsx(Ym,{className:"h-4 w-4 text-amber-500"}),s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Eskalationspfad (Fallbacks)"})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-4 space-y-3",children:[s.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Sollte ein angefordertes Modell offline oder überlastet sein, eskaliert das Routing sequenziell entlang dieser vordefinierten Kette:"}),s.jsx("div",{className:"space-y-2",children:o.fallbacks.map((f,p)=>{const[m,g]=Object.entries(f)[0];return s.jsxs("div",{className:"flex flex-wrap items-center gap-2 p-2.5 bg-background/25 rounded-xl border border-border/20 font-mono text-xs",children:[s.jsx("span",{className:"font-semibold text-amber-400",children:m}),s.jsx(gl,{className:"h-3 w-3 text-muted-foreground/60"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.map((N,S)=>s.jsx("span",{className:ae("px-1.5 py-0.5 rounded text-[10px]",S===0?"bg-primary/10 text-primary border border-primary/20":"bg-muted text-muted-foreground"),children:N},S))})]},p)})})]})]})]})]})}function Td(o){return o?o>1024**3?`${(o/1024**3).toFixed(1)} GB`:`${(o/1024**2).toFixed(0)} MB`:""}function d0(o){if(!o)return"";const u=Math.floor(o/60);return u>0?`${u} min`:`${o} s`}function f0(){const[o,u]=h.useState([]);function a(){pe("/api/jobs").then(m=>u(m.jobs||[])).catch(()=>{})}h.useEffect(()=>{a();const m=setInterval(a,2e3);return()=>clearInterval(m)},[]);async function c(m){try{await pe(`/api/jobs/${m}/cancel`,{method:"POST"}),a()}catch(g){alert(`Fehler: ${g.message}`)}}const f=o.filter(m=>m.state==="running"||m.state==="queued"),p=o.filter(m=>m.state!=="running"&&m.state!=="queued").slice(-3);return f.length===0&&p.length===0?null:s.jsxs("div",{className:"space-y-3 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-4 shadow-lg shadow-black/10",children:[s.jsx("div",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider",children:"Aktive Downloads"}),f.map(m=>s.jsxs("div",{className:"space-y-1.5 p-3 rounded-xl bg-background/20 border border-border/40",children:[s.jsxs("div",{className:"flex justify-between items-center text-xs",children:[s.jsx("span",{className:"font-semibold truncate max-w-[250px]",children:m.label}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"text-muted-foreground font-mono",children:[m.progress??0,"% • ",Td(m.done_bytes),"/",Td(m.total_bytes),m.eta_s?` • ETA ${d0(m.eta_s)}`:""]}),s.jsx("button",{onClick:()=>c(m.id),className:"text-[10px] text-red-400 hover:text-red-300 font-semibold border border-red-500/25 bg-red-500/5 px-2 py-0.5 rounded transition-all",children:"Abbrechen"})]})]}),s.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:s.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-500",style:{width:`${m.progress??0}%`}})})]},m.id)),p.map(m=>s.jsxs("div",{className:"flex justify-between items-center text-xs text-muted-foreground px-1",children:[s.jsx("span",{className:"truncate",children:m.label}),s.jsx("span",{className:ae("font-semibold text-[10px] px-1.5 py-0.5 rounded uppercase font-mono",m.state==="done"?"bg-emerald-500/10 text-emerald-400":"bg-amber-500/10 text-amber-400"),children:m.state})]},m.id))]})}function p0(o){if(!o)return"—";const u=o/1024**3;return u>=1?`${u.toFixed(1)} GB`:`${(o/1024**2).toFixed(0)} MB`}function m0(o){return o?`${Math.round(o/1024)}k`:"—"}function h0({fit:o}){const u={perfect:"bg-emerald-500/15 text-emerald-400 border border-emerald-500/20",marginal:"bg-amber-500/15 text-amber-400 border border-amber-500/20",too_tight:"bg-red-500/15 text-red-400 border border-red-500/20"}[o.level];return s.jsxs("span",{className:ae("rounded px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider font-mono",u),children:[o.text," • ",o.req_gb," GB RAM"]})}const g0=["","fast","heavy","coder","reasoning","agent","vision","scout"];function x0(){const[o,u]=h.useState([]),[a,c]=h.useState([]),[f,p]=h.useState(""),[m,g]=h.useState(!0);function N(){pe("/api/models").then(P=>{u(P.models||[]),c(P.running||[])}).catch(P=>p(String(P))).finally(()=>g(!1))}h.useEffect(()=>{N();const P=setInterval(N,3e3);return()=>clearInterval(P)},[]);async function S(P,M){await pe(`/api/models/${encodeURIComponent(P)}/role`,{method:"POST",body:JSON.stringify({role:M||null})}),N()}async function w(P,M){const T=prompt("Kontextlänge (Tokens):",String(M||32768));T&&(await pe(`/api/models/${encodeURIComponent(P)}/ctx`,{method:"POST",body:JSON.stringify({ctx:parseInt(T,10)})}),N())}async function E(P){confirm(`Modell '${P}' aus der Config entfernen? (GGUF-Datei bleibt)`)&&(await pe(`/api/models/${encodeURIComponent(P)}`,{method:"DELETE"}),N())}return m?s.jsx("div",{className:"text-xs text-muted-foreground py-6 text-center",children:"Lade installierte Modelle…"}):f?s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Engine nicht erreichbar oder keine Config gefunden (",f,")."]}):s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:o.length===0?s.jsx("div",{className:"col-span-full text-xs text-muted-foreground border border-dashed border-border/60 rounded-2xl p-12 text-center",children:'Keine Modelle konfiguriert. Verwende den Tab "Modelle finden" zum Herunterladen.'}):o.map(P=>{const M=a.includes(P.name);return s.jsxs("div",{className:ae("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-4 transition-all duration-300 hover:border-primary/40 group",M?"border-primary/45 shadow-primary/5":"border-border/60"),children:[s.jsxs("div",{className:"space-y-3.5",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h3",{className:"text-xs font-bold tracking-tight text-foreground line-clamp-2 break-all",title:P.name,children:P.name}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-mono text-muted-foreground bg-background/40 px-1.5 py-0.5 rounded border border-border/30",children:P.quant||"GGUF"}),M&&s.jsxs("span",{className:"flex items-center gap-1 text-[9px] font-semibold text-emerald-400 uppercase tracking-wider",children:[s.jsx(ri,{className:"h-3 w-3 animate-pulse"})," Warm"]})]})]}),s.jsx("button",{onClick:()=>E(P.name),className:"h-7 w-7 rounded-lg flex items-center justify-center border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 transition-all opacity-0 group-hover:opacity-100 shrink-0",title:"Modell aus Config entfernen",children:s.jsx(Gd,{className:"h-3.5 w-3.5"})})]}),s.jsx("div",{className:"border-t border-border/30 pt-3 flex flex-wrap gap-1",children:s.jsx(Df,{caps:P.capabilities})})]}),s.jsxs("div",{className:"space-y-3 pt-2",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[10px] font-mono text-muted-foreground",children:[s.jsxs("div",{className:"flex items-center gap-1.5 p-2 bg-background/20 rounded-lg border border-border/20",children:[s.jsx($d,{className:"h-3.5 w-3.5 text-primary/80"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[8px] uppercase tracking-wider font-semibold text-muted-foreground/60",children:"Größe"}),s.jsx("div",{className:"text-foreground font-semibold",children:p0(P.size_bytes)})]})]}),s.jsxs("button",{onClick:()=>w(P.name,P.ctx),className:"flex items-center gap-1.5 p-2 bg-background/20 rounded-lg border border-border/20 hover:border-primary/40 text-left transition-colors",children:[s.jsx(ah,{className:"h-3.5 w-3.5 text-primary/80"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[8px] uppercase tracking-wider font-semibold text-muted-foreground/60",children:"Kontext"}),s.jsx("div",{className:"text-foreground font-semibold",children:m0(P.ctx)})]})]})]}),s.jsxs("div",{className:"flex items-center justify-between gap-2 border-t border-border/30 pt-3",children:[s.jsx("span",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider",children:"Rolle"}),s.jsx("select",{value:P.role||"",onChange:T=>S(P.name,T.target.value),className:"h-8 rounded-lg border border-border/60 bg-background/60 px-2 py-1 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground cursor-pointer font-semibold min-w-[120px]",title:"Weise diesem Modell eine Systemrolle zu",children:g0.map(T=>s.jsx("option",{value:T,className:"bg-popover text-foreground",children:T||"Keine Rolle"},T))})]})]})]},P.name)})})}function v0(){const[o,u]=h.useState(""),[a,c]=h.useState([]),[f,p]=h.useState("Q4_K_M"),[m,g]=h.useState(""),[N,S]=h.useState(""),[w,E]=h.useState([]);async function P(j){const L=j??o;if(L.trim()){g("Analysiere HuggingFace Repository...");try{const $=await pe(`/api/hf/quants?repo=${encodeURIComponent(L)}`);u($.repo),c($.quants),$.quants.length&&p($.quants.includes("Q4_K_M")?"Q4_K_M":$.quants[0]),g($.quants.length?"":"Keine GGUF-Dateien in diesem Repository gefunden.")}catch($){g(`Fehler: ${$}`)}}}async function M(){if(N.trim()){g("Durchsuche HuggingFace...");try{const j=await pe(`/api/hf/search?q=${encodeURIComponent(N)}`);E(j.results),g(j.results.length?"":"Keine Ergebnisse gefunden.")}catch(j){g(`Suche fehlgeschlagen: ${j}`)}}}async function T(){if(o.trim()){g("Download-Job wird initiiert...");try{await pe("/api/models/install",{method:"POST",body:JSON.stringify({repo:o,quant:f,jinja:!0})}),g(`Download gestartet: ${o} (${f}). Fortschritt wird oben angezeigt.`)}catch(j){g(`Download-Fehler: ${j}`)}}}return s.jsxs("div",{className:"space-y-4 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"HF Download & Suche"}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[s.jsx("input",{value:o,onChange:j=>u(j.target.value),placeholder:"HF-URL oder org/repo (z.B. unsloth/Qwen2.5-Coder-7B-Instruct-GGUF)",className:"flex-1 h-9 rounded-lg border border-border/60 bg-background/40 px-3 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{onClick:()=>P(),className:"h-9 px-4 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer whitespace-nowrap",children:"Quants laden"}),a.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("select",{value:f,onChange:j=>p(j.target.value),className:"h-9 rounded-lg border border-border/60 bg-background/40 px-3 text-xs outline-none text-foreground font-semibold",children:a.map(j=>s.jsx("option",{value:j,className:"bg-popover text-foreground",children:j},j))}),s.jsxs("button",{onClick:T,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all cursor-pointer flex items-center gap-1.5",children:[s.jsx(Wa,{className:"h-3.5 w-3.5"})," Herunterladen"]})]})]})]}),s.jsxs("div",{className:"flex gap-2 border-t border-border/20 pt-4",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx("input",{value:N,onChange:j=>S(j.target.value),onKeyDown:j=>j.key==="Enter"&&M(),placeholder:"HuggingFace durchsuchen (z.B. Llama-3.1)...",className:"w-full h-9 pl-9 pr-3 rounded-lg border border-border/60 bg-background/40 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),s.jsx(Vd,{className:"absolute left-3 top-2.5 h-3.5 w-3.5 text-muted-foreground"})]}),s.jsx("button",{onClick:M,className:"h-9 px-4 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer",children:"Suchen"})]}),w.length>0&&s.jsx("div",{className:"max-h-48 space-y-1.5 overflow-y-auto border border-border/40 bg-background/20 p-2 rounded-xl scrollbar-thin",children:w.map(j=>s.jsxs("button",{onClick:()=>{u(j.repo),E([]),S(""),P(j.repo)},className:"flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-xs bg-background/10 border border-border/10 hover:border-primary/30 hover:bg-background/30 transition-all",children:[s.jsx("span",{className:"font-semibold truncate",children:j.repo}),s.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground flex items-center gap-1 shrink-0",children:[s.jsx(Wa,{className:"h-3 w-3"})," ",j.downloads.toLocaleString()]})]},j.repo))}),m&&s.jsx("div",{className:"text-[10px] font-medium text-primary font-mono",children:m})]})}function y0(){const[o,u]=h.useState(null),[a,c]=h.useState(""),[f,p]=h.useState(!0),[m,g]=h.useState({});h.useEffect(()=>{pe("/api/discover").then(u).catch(S=>c(String(S))).finally(()=>p(!1))},[]);async function N(S,w,E,P){g(M=>({...M,[S]:"Starte..."}));try{await pe("/api/models/install",{method:"POST",body:JSON.stringify({repo:S,role:w,quant:E,jinja:P})}),g(M=>({...M,[S]:"Download läuft"}))}catch{g(T=>({...T,[S]:"Fehler"}))}}return f?s.jsx("div",{className:"text-xs text-muted-foreground py-12 text-center",children:"Analysiere Hardware und suche passende GGUF-Empfehlungen…"}):a||!o?s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Empfehlungsdienst temporär nicht erreichbar (",a,")."]}):s.jsxs("div",{className:"space-y-6",children:[s.jsx(v0,{}),s.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground bg-background/25 border border-border/40 p-3 rounded-xl",children:["Modell-Registry geladen für ",o.sys_ram_gb," GB System-RAM • ⭐ markiert die empfohlene Standard-Rolle."]}),o.categories.map(S=>s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 px-1",children:[s.jsx(Ga,{className:"h-4 w-4 text-primary"}),s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:S.title})]}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:S.models.map(w=>{const E=S.recommended===w.repo;return s.jsxs("div",{className:ae("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-4 transition-all duration-300 hover:border-primary/40",E?"border-primary/30":"border-border/60"),children:[s.jsxs("div",{className:"space-y-3.5",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[E&&s.jsx("span",{title:"Empfohlen für diese Rolle",children:s.jsx(gh,{className:"h-3.5 w-3.5 text-amber-400 fill-amber-400"})}),s.jsx("h4",{className:"text-xs font-bold text-foreground truncate max-w-[200px]",title:w.name,children:w.name})]}),s.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:w.author})]}),s.jsx("div",{className:"text-[10px] font-mono bg-background/40 px-1.5 py-0.5 rounded border border-border/30 text-muted-foreground",children:w.quant})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 border-t border-border/30 pt-3",children:[s.jsx(Df,{caps:w.caps}),s.jsx(h0,{fit:w.fit})]})]}),w.fit.level!=="too_tight"&&s.jsxs("button",{onClick:()=>N(w.repo,w.role,w.quant,w.caps.tools!=="no"),disabled:!!m[w.repo],className:ae("mt-2 h-8 w-full flex items-center justify-center gap-1.5 rounded-lg text-xs font-semibold transition-all cursor-pointer border border-border/60 bg-background/20 hover:border-primary/50 disabled:opacity-50",m[w.repo]&&"border-primary/40 bg-primary/5 text-primary"),children:[s.jsx(Wa,{className:ae("h-3.5 w-3.5",!m[w.repo]&&"text-primary")}),m[w.repo]||"Modell laden"]})]},w.repo)})})]},S.role))]})}function b0(){const[o,u]=h.useState("installed");return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Modell-Zentrale"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Verwalte installierte GGUFs, weise Systemrollen zu, lade neue Modelle oder konfiguriere das Gateway-Routing."})]}),s.jsx("div",{className:"flex rounded-xl border border-border/60 bg-card/45 backdrop-blur-md p-1 self-start",children:["installed","discover","routing"].map(a=>s.jsx("button",{onClick:()=>u(a),className:ae("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",o===a?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:a==="installed"?"Bibliothek":a==="discover"?"Modelle finden":"Gateway-Routing"},a))})]}),s.jsx(f0,{}),s.jsx("div",{className:"transition-all duration-300",children:o==="installed"?s.jsx(x0,{}):o==="discover"?s.jsx(y0,{}):s.jsx(c0,{})})]})}function ar(o){return(o/1024**3).toFixed(1)}function jl({label:o,percent:u,detail:a,icon:c}){const f=u>90?"bg-red-500 shadow-md shadow-red-500/20":u>75?"bg-amber-500 shadow-md shadow-amber-500/20":"bg-primary shadow-md shadow-primary/20";return s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-3 hover:border-primary/30 transition-all duration-300",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(c,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-foreground",children:o})]}),s.jsxs("span",{className:"text-xs font-mono font-bold text-foreground",children:[Math.round(u),"%"]})]}),s.jsx("div",{className:"w-full h-2 bg-background/40 rounded-full overflow-hidden border border-border/20",children:s.jsx("div",{className:ae("h-full transition-all duration-700 ease-out",f),style:{width:`${Math.min(u,100)}%`}})}),a&&s.jsx("div",{className:"text-[10px] font-mono text-muted-foreground/80",children:a})]})}function w0(){const[o,u]=h.useState(null),[a,c]=h.useState(""),[f,p]=h.useState(!1);function m(){pe("/api/maintenance/updates").then(u).catch(()=>{})}h.useEffect(m,[]);async function g(S,w){c(`${w} wird ausgeführt...`),p(!0);try{const E=await pe(S,{method:"POST"});c(E.job_id?`${w} gestartet (Job-ID: ${E.job_id})`:E.ok?`${w} erfolgreich ausgeführt.`:`Fehler: ${E.err||"Unbekannt"}`)}catch(E){c(`Fehler bei ${w}: ${E.message}`)}finally{p(!1)}}async function N(S,w){c(`Upgrade für ${S} wird gestartet...`);try{await pe("/api/models/install",{method:"POST",body:JSON.stringify({repo:S,role:w,quant:"Q4_K_M",jinja:!0})}),c("Upgrade-Download gestartet.")}catch(E){c(`Upgrade fehlgeschlagen: ${E.message}`)}}return s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Wartung & Updates"}),o&&s.jsxs("div",{className:"flex gap-1.5 text-[9px] font-mono font-bold uppercase tracking-wider",children:[s.jsxs("span",{className:ae("px-1.5 py-0.5 rounded",o.os?"bg-amber-500/10 text-amber-400 border border-amber-500/20":"bg-background/40 text-muted-foreground border border-border/20"),children:["OS: ",o.os]}),s.jsxs("span",{className:ae("px-1.5 py-0.5 rounded",o.engine?"bg-amber-500/10 text-amber-400 border border-amber-500/20":"bg-background/40 text-muted-foreground border border-border/20"),children:["Engine: ",o.engine?"neu":"aktuell"]}),s.jsxs("span",{className:ae("px-1.5 py-0.5 rounded",o.models?"bg-primary/10 text-primary border border-primary/20":"bg-background/40 text-muted-foreground border border-border/20"),children:["Modelle: ",o.models]})]})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx("button",{onClick:()=>g("/api/maintenance/os-update","OS-Update"),disabled:f,className:"h-8 px-3 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer disabled:opacity-50",children:"OS (Apt) aktualisieren"}),s.jsx("button",{onClick:()=>g("/api/maintenance/engine-update","Engine-Update"),disabled:f,className:"h-8 px-3 rounded-lg border border-border/60 bg-background/20 text-xs font-semibold hover:border-primary/50 hover:bg-background/40 transition-all cursor-pointer disabled:opacity-50",children:"Engine aktualisieren"}),s.jsx("button",{onClick:()=>{confirm("Bist du sicher, dass du den Host neu starten willst?")&&g("/api/maintenance/reboot","Reboot")},disabled:f,className:"h-8 px-3 rounded-lg border border-red-500/30 bg-red-500/5 text-red-400 text-xs font-semibold hover:bg-red-500/10 transition-all cursor-pointer disabled:opacity-50",children:"Host Reboot"})]}),o&&o.model_list.length>0&&s.jsxs("div",{className:"mt-3 space-y-2 border-t border-border/20 pt-3",children:[s.jsx("div",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:"Verfügbare Modell-Updates:"}),s.jsx("div",{className:"space-y-1.5",children:o.model_list.map(S=>s.jsxs("div",{className:"flex items-center justify-between p-2.5 rounded-xl bg-background/20 border border-border/30 text-xs font-semibold",children:[s.jsxs("span",{className:"truncate",children:[s.jsx("span",{className:"text-primary uppercase font-mono text-[10px] mr-1.5",children:S.role})," ",S.repo]}),s.jsx("button",{onClick:()=>N(S.repo,S.role),className:"px-2.5 py-1 text-[10px] font-bold rounded-md bg-primary text-primary-foreground hover:opacity-90 transition-all cursor-pointer",children:"Laden"})]},S.repo))})]}),a&&s.jsx("div",{className:"text-[10px] font-mono text-primary font-medium",children:a}),s.jsxs("div",{className:"text-[9px] text-muted-foreground/60 leading-normal border-t border-border/10 pt-2 flex items-center gap-1",children:[s.jsx(Hd,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"OS-Update & Reboot benötigen NOPASSWD Berechtigungen in der sudoers Datei des Hosts."})]})]})}function k0(){const[o,u]=h.useState(null),[a,c]=h.useState(null),[f,p]=h.useState(""),[m,g]=h.useState(""),[N,S]=h.useState({});function w(){pe("/api/system/status").then(u).catch(M=>p(String(M))),pe("/api/system/services").then(c).catch(()=>{})}h.useEffect(()=>{w();const M=setInterval(w,3e3);return()=>clearInterval(M)},[]);async function E(){g("Backup snapshotted...");try{const M=await pe("/api/system/backup",{method:"POST"});g(M.ok?`Snapshot erzeugt: ${M.snapshot} (${M.files.length} Dateien)`:"Keine Änderungen zu sichern.")}catch(M){g(`Fehler: ${M.message}`)}}async function P(M){S(T=>({...T,[M]:!0}));try{const T=await pe("/api/maintenance/restart",{method:"POST",body:JSON.stringify({service:M})});T.ok?alert(`Dienst ${M} wurde erfolgreich neu gestartet.`):alert(`Fehler beim Neustart: ${T.err||"Unbekannter Fehler"}`)}catch(T){alert(`Fehler: ${T.message}`)}finally{S(T=>({...T,[M]:!1}))}}return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"System-Diagnose & Status"}),s.jsx("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:"Echtzeit-Ressourcen der Box, Dienst-Überwachung und Systempflege."})]}),f&&s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400 font-mono",children:["System-Status nicht lesbar (",f,")."]}),o&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[s.jsx(jl,{label:"CPU",percent:o.cpu.percent,detail:o.cpu.cores?`${o.cpu.cores} Cores`:void 0,icon:jr}),s.jsx(jl,{label:"RAM",percent:o.ram.percent,detail:`${ar(o.ram.used)} / ${ar(o.ram.total)} GB`,icon:ri}),o.gpu&&o.gpu.busy_percent!=null&&s.jsx(jl,{label:"GPU",percent:o.gpu.busy_percent,detail:o.gpu.gtt_used!=null&&o.gpu.gtt_total?`${ar(o.gpu.gtt_used)} / ${ar(o.gpu.gtt_total)} GB (GTT/unified)`:o.gpu.vram_used!=null&&o.gpu.vram_total?`${ar(o.gpu.vram_used)} / ${ar(o.gpu.vram_total)} GB VRAM`:void 0,icon:jr}),o.disk&&s.jsx(jl,{label:"Disk",percent:o.disk.percent,detail:`${ar(o.disk.used)} / ${ar(o.disk.total)} GB`,icon:$d})]}),o.temp&&(o.temp.cpu||o.temp.gpu)&&s.jsxs("div",{className:"flex gap-3 text-[10px] font-mono text-muted-foreground bg-background/25 border border-border/40 p-2.5 rounded-xl self-start w-fit",children:[o.temp.cpu!=null&&s.jsxs("span",{className:"flex items-center gap-1",children:["CPU-Temperatur: ",s.jsxs("span",{className:"text-foreground font-bold",children:[o.temp.cpu," °C"]})]}),o.temp.cpu!=null&&o.temp.gpu!=null&&s.jsx("span",{children:"|"}),o.temp.gpu!=null&&s.jsxs("span",{className:"flex items-center gap-1",children:["GPU-Temperatur: ",s.jsxs("span",{className:"text-foreground font-bold",children:[o.temp.gpu," °C"]})]})]})]}),a&&s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-4",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Homelab-Dienste"}),s.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:a.services.map(M=>s.jsxs("div",{className:"flex items-center justify-between p-3.5 rounded-xl bg-background/20 border border-border/30 hover:border-primary/20 transition-all group",children:[s.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[s.jsx("span",{className:ae("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",M.ok?"bg-emerald-500":"bg-amber-500")}),s.jsxs("div",{className:"truncate",children:[s.jsx("div",{className:"text-xs font-bold text-foreground truncate",children:M.name}),s.jsx("div",{className:"text-[9px] text-muted-foreground/60 font-mono mt-0.5 truncate",children:M.url})]})]}),s.jsx("button",{onClick:()=>P(M.name),disabled:N[M.name],className:"h-7 w-7 rounded-lg border border-border/40 text-muted-foreground hover:text-primary hover:bg-primary/5 flex items-center justify-center transition-all opacity-0 group-hover:opacity-100",title:"Dienst neu starten",children:s.jsx(Ka,{className:ae("h-3.5 w-3.5",N[M.name]&&"animate-spin")})})]},M.name))}),s.jsxs("div",{className:"flex flex-wrap gap-4 border-t border-border/20 pt-4 text-[10px] font-semibold text-muted-foreground",children:[s.jsxs("a",{href:a.links.engine_ui,target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:text-primary-foreground hover:bg-primary/10 px-2 py-1 rounded transition-colors",children:[s.jsx(Pl,{className:"h-3 w-3"})," Engine Dashboard (llama-swap)"]}),s.jsxs("a",{href:a.links.gateway,target:"_blank",rel:"noopener",className:"flex items-center gap-1 text-primary hover:text-primary-foreground hover:bg-primary/10 px-2 py-1 rounded transition-colors",children:[s.jsx(Pl,{className:"h-3 w-3"})," OpenAI Gateway"]})]})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-foreground",children:"System-Backup & Snapshot"}),s.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Erzeuge einen Git-Snapshot der aktuellen Konfigurationen und des System-Zustands."})]}),s.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto shrink-0",children:s.jsxs("button",{onClick:E,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all flex items-center gap-1.5 cursor-pointer shadow-md shadow-primary/10",children:[s.jsx(dh,{className:"h-4 w-4"})," Snapshot erstellen"]})})]}),m&&s.jsx("div",{className:"text-[10px] font-mono text-primary font-medium bg-primary/5 p-3 rounded-xl border border-primary/20",children:m}),s.jsx(w0,{})]})}function S0(){const[o,u]=h.useState(localStorage.getItem("mc_host")||"192.168.178.151"),[a,c]=h.useState(localStorage.getItem("mc_mcp_path")||""),[f,p]=h.useState(null),[m,g]=h.useState("cline"),[N,S]=h.useState(!1),[w,E]=h.useState("");h.useEffect(()=>{const L=new URLSearchParams;L.set("host",o),a&&L.set("mcp_path",a),pe(`/api/connect?${L}`).then(p).catch($=>E(String($)))},[o,a]);function P(L){u(L),L&&localStorage.setItem("mc_host",L)}function M(L){c(L),localStorage.setItem("mc_mcp_path",L)}const T=f==null?void 0:f.tools[m];async function j(){T&&(await navigator.clipboard.writeText(T.snippet),S(!0),setTimeout(()=>S(!1),1500))}return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Verbindung & Integration"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Kopiere vorgefertigte Konfigurationsdateien für deinen lokalen PC (IDEs, Cline, Roo Code, Cursor), um direkt auf das geteilte Gedächtnis und den Auto-Swap-Gateway der Box zuzugreifen."})]}),s.jsxs("div",{className:"grid gap-4 md:grid-cols-2 p-5 rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md shadow-lg shadow-black/10",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[s.jsx(nh,{className:"h-3.5 w-3.5 text-primary"})," Box LAN IP-Adresse"]}),s.jsx("input",{value:o,onChange:L=>P(L.target.value),placeholder:"z.B. 192.168.178.151",className:"w-full h-9 rounded-lg border border-border/60 bg-background/40 px-3 font-mono text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[s.jsx(th,{className:"h-3.5 w-3.5 text-primary"})," Lokaler MCP-Scriptpfad"]}),s.jsx("input",{value:a,onChange:L=>M(L.target.value),placeholder:"z.B. F:\\Coding Stuff\\mission-control-2\\mcp\\mcp_memory.py",className:"w-full h-9 rounded-lg border border-border/60 bg-background/40 px-3 font-mono text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"})]})]}),w&&s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Fehler beim Generieren der Snippets: ",w]}),f&&s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"flex flex-wrap gap-1 bg-card/20 p-1 border border-border/40 rounded-xl max-w-fit",children:Object.entries(f.tools).map(([L,$])=>s.jsx("button",{onClick:()=>g(L),className:ae("rounded-lg px-4 py-1.5 text-xs font-semibold tracking-wide uppercase transition-all cursor-pointer",m===L?"bg-primary text-primary-foreground shadow-md shadow-primary/10":"text-muted-foreground hover:text-foreground"),children:$.label},L))}),T&&s.jsxs("div",{className:"space-y-3",children:[T.note&&s.jsxs("div",{className:"flex items-start gap-2.5 p-3 rounded-xl bg-primary/5 border border-primary/20 text-xs text-muted-foreground leading-relaxed",children:[s.jsx(oh,{className:"h-4.5 w-4.5 text-primary shrink-0 mt-0.5"}),s.jsx("span",{children:T.note})]}),s.jsxs("div",{className:"flex flex-col border border-border/60 bg-black/60 rounded-2xl overflow-hidden shadow-2xl",children:[s.jsxs("div",{className:"flex h-11 items-center justify-between px-4 border-b border-border/40 bg-black/40 shrink-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"h-3 w-3 rounded-full bg-red-500/80 shadow-md shadow-red-500/10"}),s.jsx("span",{className:"h-3 w-3 rounded-full bg-amber-500/80 shadow-md shadow-amber-500/10"}),s.jsx("span",{className:"h-3 w-3 rounded-full bg-emerald-500/80 shadow-md shadow-emerald-500/10"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground/75 bg-background/30 px-3 py-1 rounded-md border border-border/20",children:[s.jsx(Wd,{className:"h-3.5 w-3.5 text-primary"}),s.jsx("span",{children:m==="cline"||m==="cursor"?"config.json":"settings.json"})]}),s.jsxs("button",{onClick:j,className:"flex h-7 px-2.5 items-center gap-1.5 rounded-lg border border-border/40 bg-background/30 text-[10px] font-semibold text-muted-foreground hover:text-foreground hover:bg-background/60 transition-all cursor-pointer",children:[N?s.jsx(Km,{className:"h-3.5 w-3.5 text-emerald-400"}):s.jsx(eh,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:N?"Kopiert":"Kopieren"})]})]}),s.jsx("pre",{className:"p-5 overflow-x-auto text-xs font-mono text-cyan-200/90 whitespace-pre leading-relaxed scrollbar-thin select-text bg-black/10",children:s.jsx("code",{children:T.snippet})})]})]})]})]})}const Od=["user","instruction","stable","versioned","ephemeral"],Va={user:{label:"User",icon:yh,color:"text-cyan-400",border:"border-cyan-500/30",bg:"bg-cyan-500/10",text:"text-cyan-400"},instruction:{label:"Regel",icon:fh,color:"text-violet-400",border:"border-violet-500/30",bg:"bg-violet-500/10",text:"text-violet-400"},stable:{label:"Fakt",icon:oi,color:"text-indigo-400",border:"border-indigo-500/30",bg:"bg-indigo-500/10",text:"text-indigo-400"},versioned:{label:"Version",icon:vh,color:"text-amber-400",border:"border-amber-500/30",bg:"bg-amber-500/10",text:"text-amber-400"},ephemeral:{label:"Temporär",icon:Xm,color:"text-pink-400",border:"border-pink-500/30",bg:"bg-pink-500/10",text:"text-pink-400"}},Dd={label:"Gedächtnis",icon:Wm,bg:"bg-muted/10",text:"text-muted-foreground"},N0={user:"border-l-cyan-500/80",instruction:"border-l-violet-500/80",stable:"border-l-indigo-500/80",versioned:"border-l-amber-500/80",ephemeral:"border-l-pink-500/80"};function j0(){const[o,u]=h.useState([]),[a,c]=h.useState(""),[f,p]=h.useState(""),[m,g]=h.useState(""),[N,S]=h.useState("stable"),[w,E]=h.useState(""),[P,M]=h.useState(!1);function T(){const O=new URLSearchParams;f&&O.set("q",f),a&&O.set("category",a),pe(`/api/memory?${O}`).then(u).catch(G=>E(String(G)))}h.useEffect(T,[f,a]);async function j(){m.trim()&&(await pe("/api/memory",{method:"POST",body:JSON.stringify({content:m,category:N,source:"ui"})}),g(""),T())}async function L(O){await pe(`/api/memory/${O}`,{method:"DELETE"}),T()}async function $(){M(!0);try{const O=await pe("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!1})});if(O.duplicate_count===0){alert("Keine Dubletten gefunden — alles sauber.");return}confirm(`${O.duplicate_count} Dublette(n) in ${O.groups.length} Gruppe(n) gefunden. Entfernen?`)&&(await pe("/api/memory/dedupe",{method:"POST",body:JSON.stringify({apply:!0})}),T())}catch(O){alert(`Fehler: ${O.message}`)}finally{M(!1)}}return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Gedächtnis-Pool (Memory)"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Die geteilte Konstitution des Systems. Alle Instanzen (Hermes, IDEs, Gateway) lesen und schreiben hierauf per MCP-Protokoll."})]}),s.jsxs("button",{onClick:$,disabled:P,className:"flex h-9 px-4 items-center gap-1.5 text-xs font-semibold rounded-lg border border-border/60 bg-card hover:border-primary/50 transition-all cursor-pointer shadow-md disabled:opacity-50 shrink-0 self-start",children:[s.jsx(hh,{className:"h-4 w-4 text-primary animate-pulse"}),s.jsx("span",{children:"Deduplizieren"})]})]}),s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 space-y-4",children:[s.jsx("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Neuen Eintrag anlegen"}),s.jsx("textarea",{value:m,onChange:O=>g(O.target.value),placeholder:"Füge eine neue Regel, eine Vorliebe oder einen stabilen Fakt über das Projekt oder dich hinzu...",rows:3,className:"w-full resize-none rounded-xl border border-border/60 bg-background/30 p-3.5 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground transition-all leading-relaxed"}),s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider",children:"Kategorie"}),s.jsx("select",{value:N,onChange:O=>S(O.target.value),className:"h-8 rounded-lg border border-border/60 bg-background/50 px-2 py-1 text-xs outline-none font-semibold text-foreground cursor-pointer",children:Od.map(O=>{var G;return s.jsx("option",{value:O,className:"bg-popover text-foreground",children:((G=Va[O])==null?void 0:G.label)||O},O)})})]}),s.jsxs("button",{onClick:j,className:"h-9 px-4 rounded-lg bg-primary text-primary-foreground text-xs font-semibold hover:opacity-90 transition-all flex items-center gap-1.5 cursor-pointer shadow-md shadow-primary/10",children:[s.jsx(Bd,{className:"h-4 w-4"})," Speichern"]})]})]}),s.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center gap-3",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx("input",{value:f,onChange:O=>p(O.target.value),placeholder:"Gedächtnis durchsuchen...",className:"w-full h-9 pl-9 pr-3 rounded-lg border border-border/60 bg-card/45 text-xs outline-none focus:ring-1 focus:ring-primary/50 text-foreground"}),s.jsx(Vd,{className:"absolute left-3 top-2.5 h-3.5 w-3.5 text-muted-foreground"})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 p-1 bg-card/30 border border-border/40 rounded-xl overflow-x-auto max-w-full",children:[s.jsx("button",{onClick:()=>c(""),className:ae("h-7 px-3 rounded-lg text-[10px] font-semibold uppercase tracking-wider transition-all cursor-pointer whitespace-nowrap",a?"text-muted-foreground hover:text-foreground":"bg-primary text-primary-foreground"),children:"Alle"}),Od.map(O=>{const G=Va[O]||Dd,X=G.icon;return s.jsxs("button",{onClick:()=>c(O),className:ae("h-7 px-2.5 rounded-lg text-[10px] font-semibold uppercase tracking-wider transition-all cursor-pointer flex items-center gap-1 whitespace-nowrap",a===O?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:[s.jsx(X,{className:"h-3 w-3"}),s.jsx("span",{children:G.label})]},O)})]})]}),w&&s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400",children:["Fehler beim Laden des Gedächtnisses: ",w]}),s.jsx("div",{className:"space-y-3",children:o.length===0?s.jsx("div",{className:"text-xs text-muted-foreground border border-dashed border-border/60 rounded-2xl p-12 text-center",children:"Keine Einträge für die aktuellen Filterkriterien gefunden."}):o.map(O=>{const G=Va[O.category]||Dd,X=G.icon;return s.jsxs("div",{className:ae("flex items-start justify-between gap-4 p-4 rounded-xl border border-l-4 bg-card/45 backdrop-blur-md border-border/60 shadow-md shadow-black/5 hover:border-primary/20 transition-all group",N0[O.category]||"border-l-muted"),children:[s.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[s.jsxs("span",{className:ae("flex items-center gap-1 px-2 py-0.5 rounded text-[9px] font-bold uppercase tracking-wider font-mono shrink-0",G.bg,G.text),children:[s.jsx(X,{className:"h-3 w-3"}),s.jsx("span",{className:"hidden sm:inline",children:G.label})]}),s.jsx("span",{className:"text-xs text-foreground leading-relaxed break-words whitespace-pre-wrap flex-1",children:O.content})]}),s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[s.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/60 bg-background/20 px-1.5 py-0.5 rounded uppercase tracking-wider",children:O.source}),s.jsx("button",{onClick:()=>L(O.id),className:"h-7 w-7 rounded-lg flex items-center justify-center border border-border/40 text-muted-foreground hover:text-red-400 hover:bg-red-500/5 transition-all opacity-0 group-hover:opacity-100",title:"Eintrag löschen",children:s.jsx(Gd,{className:"h-3.5 w-3.5"})})]})]},O.id)})})]})}function El({label:o,ok:u,detail:a,icon:c}){return s.jsxs("div",{className:ae("rounded-2xl border bg-card/45 backdrop-blur-md p-5 shadow-lg shadow-black/10 flex flex-col justify-between gap-3 hover:border-primary/40 transition-all duration-300",u?"border-border/60":"border-amber-500/30"),children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground",children:o}),s.jsx(c,{className:ae("h-4.5 w-4.5",u?"text-primary":"text-amber-500")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:ae("h-2 w-2 rounded-full ring-2 ring-black/40",u?"bg-emerald-500 animate-pulse":"bg-amber-500")}),s.jsx("span",{className:"text-xs font-semibold text-foreground",children:u?"Bereit / Online":"Offline / Inaktiv"})]}),a&&s.jsx("div",{className:"text-[10px] font-mono text-muted-foreground truncate max-w-[200px]",title:a,children:a})]})]})}function E0(){const[o,u]=h.useState(null),[a,c]=h.useState("");return h.useEffect(()=>{const f=()=>pe("/api/agent/status").then(u).catch(m=>c(String(m)));f();const p=setInterval(f,5e3);return()=>clearInterval(p)},[]),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-space font-bold tracking-tight bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text text-transparent",children:"Hermes Agenten-Cockpit"}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Hermes ist ein autonomer Agent, der im Hintergrund der Box läuft (Port ",s.jsx("code",{children:":8642"}),") und seine eigene UI besitzt."]})]}),(o==null?void 0:o.webui_url)&&s.jsxs("a",{href:o.webui_url,target:"_blank",rel:"noopener",className:ae("flex h-9 px-4 items-center gap-1.5 text-xs font-semibold rounded-lg transition-all cursor-pointer shadow-md shrink-0 self-start",o.webui_reachable?"bg-primary text-primary-foreground hover:opacity-90 shadow-primary/10":"border border-border/60 text-muted-foreground bg-background/20"),children:[s.jsx(Pl,{className:"h-4 w-4"}),s.jsx("span",{children:"Hermes WebUI öffnen"})]})]}),a&&s.jsxs("div",{className:"rounded-xl border border-red-500/20 bg-red-500/5 p-4 text-xs text-red-400 font-mono",children:["Status nicht lesbar (",a,")."]}),o&&s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[s.jsx(El,{label:"Agent Gateway",ok:o.gateway_reachable,detail:"Port :8642 (REST API)",icon:ni}),s.jsx(El,{label:"Agent WebUI",ok:o.webui_reachable,detail:"Port :8787 (Chat UI)",icon:ri}),s.jsx(El,{label:"Aktives Gehirn",ok:o.gateway_reachable,detail:o.brain_model?`Model: ${o.brain_model}`:"Model: auto",icon:jr}),s.jsx(El,{label:"Verdrahtung",ok:o.has_config,detail:`Config: ${o.has_config?"✓":"—"} · Skills: ${o.has_skills?"✓":"—"} · Memory: ${o.has_memories?"✓":"—"}`,icon:bh})]}),!o.gateway_reachable&&s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card/45 backdrop-blur-md p-6 space-y-4 shadow-lg shadow-black/10",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(oi,{className:"h-5 w-5 text-amber-500"}),s.jsx("h3",{className:"text-sm font-bold uppercase tracking-wider text-foreground",children:"Hermes-Agent Diagnostics"})]}),s.jsxs("div",{className:"text-xs text-muted-foreground space-y-3 leading-relaxed",children:[s.jsx("p",{children:"Der Hermes-Dienst ist auf der Box derzeit offline oder kann sich nicht mit dem lokalen llama-swap verbinden."}),s.jsxs("p",{children:["Stelle sicher, dass die systemd-Dienste auf der Box laufen. Du kannst den Status im ",s.jsx("strong",{children:"OS & Updates Drawer"})," prüfen und die Dienste bei Bedarf neu starten."]}),s.jsxs("div",{className:"p-3.5 bg-background/25 rounded-xl border border-border/30 font-mono text-[10px] space-y-1",children:[s.jsx("div",{className:"text-muted-foreground/60",children:"# Dienste manuell auf der Box prüfen:"}),s.jsx("div",{className:"text-primary",children:"systemctl --user status hermes-gateway"}),s.jsx("div",{className:"text-primary",children:"systemctl --user status hermes-webui"})]}),s.jsxs("p",{children:["Weitere Einrichtungsdetails (Brain-Konfiguration, MCP-Kopplungen, SSH-Tunneling und Such-Engines) findest du in der Dokumentationsdatei:",s.jsx("code",{className:"ml-1 px-1.5 py-0.5 rounded bg-muted/40 text-foreground border border-border/30",children:"docs/HERMES_SETUP.md"}),"."]})]})]})]})]})}function C0({title:o,hint:u}){return s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold",children:o}),s.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),s.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border bg-card/50 py-20 text-center",children:[s.jsx(Jm,{className:"h-8 w-8 text-muted-foreground"}),s.jsx("div",{className:"text-sm text-muted-foreground",children:"Kommt in einer späteren Phase."})]})]})}const _0=[{id:"llama-swap",label:"Llama Swap",type:"system"},{id:"mission-control-2",label:"Mission Control 2",type:"user"},{id:"hermes-gateway",label:"Hermes Gateway",type:"user"},{id:"hermes-dashboard",label:"Hermes Dashboard",type:"user"},{id:"hermes-webui",label:"Hermes WebUI",type:"user"}];function Ha(o){return o==null?"":o>1024**3?`${(o/1024**3).toFixed(2)} GB`:`${(o/1024**2).toFixed(1)} MB`}function P0({open:o,onClose:u}){const[a,c]=h.useState(null),[f,p]=h.useState([]),[m,g]=h.useState("llama-swap"),[N,S]=h.useState(""),[w,E]=h.useState(!1),[P,M]=h.useState({}),[T,j]=h.useState("maintenance"),L=h.useRef(null);function $(){pe("/api/maintenance/updates").then(c).catch(I=>console.error("Error loading updates",I))}function O(){pe("/api/jobs").then(I=>p(I.jobs||[])).catch(I=>console.error("Error loading jobs",I))}function G(I){E(!0),pe(`/api/maintenance/logs?service=${I}&lines=150`).then(ue=>{ue.ok?S(ue.text):S(`Fehler beim Laden der Logs: ${ue.err||"Unbekannter Fehler"}`)}).catch(ue=>S(`Fehler: ${ue.message}`)).finally(()=>{E(!1),setTimeout(()=>{L.current&&(L.current.scrollTop=L.current.scrollHeight)},50)})}h.useEffect(()=>{if(!o)return;$(),O();const I=setInterval(()=>{O(),$()},3e3);return()=>clearInterval(I)},[o]),h.useEffect(()=>{!o||T!=="logs"||G(m)},[o,T,m]);async function X(){try{await pe("/api/maintenance/os-update",{method:"POST"}),O(),j("maintenance")}catch(I){alert(`Fehler beim Starten des OS-Updates: ${I.message}`)}}async function F(){try{await pe("/api/maintenance/engine-update",{method:"POST"}),O(),j("maintenance")}catch(I){alert(`Fehler: ${I.message}`)}}async function re(){if(confirm("Bist du sicher, dass du das gesamte Host-System neu starten willst?"))try{await pe("/api/maintenance/reboot",{method:"POST"}),alert("Reboot ausgelöst. System startet neu..."),u()}catch(I){alert(`Fehler: ${I.message}`)}}async function de(I){M(ue=>({...ue,[I]:!0}));try{const ue=await pe("/api/maintenance/restart",{method:"POST",body:JSON.stringify({service:I})});ue.ok?(alert(`Dienst ${I} wurde erfolgreich neu gestartet.`),T==="logs"&&m===I&&G(I)):alert(`Fehler beim Neustart: ${ue.err||"Unbekannter Fehler"}`)}catch(ue){alert(`Fehler: ${ue.message}`)}finally{M(ue=>({...ue,[I]:!1}))}}async function we(I){try{await pe(`/api/jobs/${I}/cancel`,{method:"POST"}),O()}catch(ue){alert(`Fehler beim Abbrechen: ${ue.message}`)}}return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ae("fixed inset-0 bg-black/60 backdrop-blur-sm z-50 transition-opacity duration-300",o?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:u}),s.jsxs("div",{className:ae("fixed inset-y-0 right-0 w-full sm:w-[500px] bg-card/85 backdrop-blur-xl border-l border-border/60 shadow-2xl z-50 flex flex-col transform transition-transform duration-300 ease-in-out font-sans text-foreground",o?"translate-x-0":"translate-x-full"),children:[s.jsxs("div",{className:"flex h-16 shrink-0 items-center justify-between border-b border-border/40 px-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(jr,{className:"h-4.5 w-4.5 text-primary"}),s.jsx("h2",{className:"text-sm font-semibold tracking-wide uppercase font-space",children:"OS-Zentrale & Pflege"})]}),s.jsx("button",{onClick:u,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border/40 text-muted-foreground hover:bg-accent transition-colors",children:s.jsx(wh,{className:"h-4 w-4"})})]}),s.jsxs("div",{className:"flex border-b border-border/40 px-6",children:[s.jsx("button",{onClick:()=>j("maintenance"),className:ae("flex-1 py-3 text-xs font-semibold uppercase tracking-wider border-b-2 text-center transition-all",T==="maintenance"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),children:"System-Wartung"}),s.jsx("button",{onClick:()=>j("logs"),className:ae("flex-1 py-3 text-xs font-semibold uppercase tracking-wider border-b-2 text-center transition-all",T==="logs"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"),children:"System-Logs"})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:T==="maintenance"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Wartungsaktionen"}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("button",{onClick:X,className:"flex flex-col items-start gap-1 p-4 rounded-xl border border-border/60 bg-background/20 hover:border-primary/50 transition-all text-left group",children:[s.jsx(oi,{className:"h-5 w-5 text-cyan-400 mb-1 group-hover:scale-105 transition-transform"}),s.jsx("span",{className:"text-xs font-semibold",children:"OS Update (apt)"}),s.jsx("span",{className:"text-[10px] text-muted-foreground",children:a!=null&&a.os?`${a.os} Updates verfügbar`:"Auf neuestem Stand"})]}),s.jsxs("button",{onClick:F,className:"flex flex-col items-start gap-1 p-4 rounded-xl border border-border/60 bg-background/20 hover:border-primary/50 transition-all text-left group",children:[s.jsx(ph,{className:"h-5 w-5 text-violet-400 mb-1 group-hover:scale-105 transition-transform"}),s.jsx("span",{className:"text-xs font-semibold",children:"Engine Update"}),s.jsx("span",{className:"text-[10px] text-muted-foreground",children:a!=null&&a.engine?"Update verfügbar":"Auf neuestem Stand"})]})]}),s.jsxs("button",{onClick:re,className:"flex w-full items-center gap-3 p-3 rounded-xl border border-red-500/20 bg-red-500/5 hover:bg-red-500/10 text-red-400 transition-all text-left text-xs font-semibold",children:[s.jsx(uh,{className:"h-4.5 w-4.5"}),s.jsxs("div",{children:[s.jsx("div",{children:"Host-System neu starten (Reboot)"}),s.jsx("div",{className:"text-[10px] text-red-400/80 font-normal",children:"Startet das gesamte Betriebssystem des Homelabs neu"})]})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:"Hintergrund-Aufgaben"}),s.jsxs("span",{className:"text-[10px] font-mono bg-primary/10 text-primary px-1.5 py-0.5 rounded-full",children:[f.filter(I=>I.state==="running"||I.state==="queued").length," Aktiv"]})]}),s.jsx("div",{className:"space-y-3",children:f.length===0?s.jsx("div",{className:"text-xs text-muted-foreground border border-dashed border-border/60 rounded-xl p-6 text-center",children:"Aktuell keine aktiven Hintergrund-Jobs."}):f.map(I=>{const ue=I.state==="running"||I.state==="queued";return s.jsxs("div",{className:ae("p-3 rounded-xl border transition-all duration-300",ue?"border-primary/40 bg-primary/5 shadow-md shadow-primary/5":"border-border/40 bg-background/20 opacity-80"),children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"text-xs font-semibold flex items-center gap-1.5",children:[ue&&s.jsxs("span",{className:"flex h-2 w-2 relative",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]}),I.label]}),s.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground uppercase flex items-center gap-2",children:[s.jsxs("span",{children:["ID: ",I.id]}),s.jsx("span",{children:"•"}),s.jsx("span",{className:ae(I.state==="done"&&"text-emerald-400",I.state==="failed"&&"text-red-400",I.state==="running"&&"text-primary",I.state==="queued"&&"text-amber-400",I.state==="canceled"&&"text-muted-foreground"),children:I.state})]})]}),ue&&s.jsx("button",{onClick:()=>we(I.id),className:"text-[10px] font-semibold text-red-400 hover:text-red-300 border border-red-500/20 bg-red-500/5 hover:bg-red-500/10 px-2 py-0.5 rounded transition-colors",children:"Abbrechen"})]}),I.state==="running"&&s.jsxs("div",{className:"mt-3 space-y-1",children:[s.jsx("div",{className:"w-full h-1.5 bg-muted rounded-full overflow-hidden",children:s.jsx("div",{className:"h-full bg-primary transition-all duration-500",style:{width:`${I.progress??0}%`}})}),s.jsxs("div",{className:"flex justify-between items-center text-[9px] font-mono text-muted-foreground",children:[s.jsxs("span",{children:[I.progress??0,"%"]}),I.done_bytes!=null&&I.total_bytes!=null&&s.jsxs("span",{children:[Ha(I.done_bytes)," / ",Ha(I.total_bytes),I.rate_bps!=null&&` (${Ha(I.rate_bps)}/s)`]}),I.eta_s!=null&&s.jsxs("span",{children:["ETA: ",I.eta_s,"s"]})]})]})]},I.id)})})]})]}):s.jsxs("div",{className:"flex flex-col h-full space-y-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("select",{value:m,onChange:I=>g(I.target.value),className:"flex-1 h-9 px-3 text-xs bg-background/40 border border-border/60 rounded-lg outline-none text-foreground font-semibold",children:_0.map(I=>s.jsxs("option",{value:I.id,children:[I.label," (",I.type==="system"?"systemd-root":"user",")"]},I.id))}),s.jsxs("button",{onClick:()=>de(m),disabled:P[m],className:"flex h-9 px-3 items-center gap-1.5 text-xs font-semibold rounded-lg border border-border/60 bg-background/20 hover:border-primary/50 transition-colors disabled:opacity-50",title:"Dienst neu starten",children:[s.jsx(Ka,{className:ae("h-3.5 w-3.5",P[m]&&"animate-spin")}),"Restart"]})]}),s.jsxs("div",{className:"flex-1 flex flex-col min-h-[300px] border border-border/60 bg-black/50 rounded-xl overflow-hidden shadow-inner",children:[s.jsxs("div",{className:"flex h-9 items-center justify-between px-4 border-b border-border/40 bg-black/30 shrink-0",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-muted-foreground",children:[s.jsx(Wd,{className:"h-3 w-3 text-primary"}),s.jsxs("span",{children:["stdout/stderr - ",m]})]}),s.jsx("button",{onClick:()=>G(m),disabled:w,className:"text-muted-foreground hover:text-foreground transition-colors",children:s.jsx(Ka,{className:ae("h-3 w-3",w&&"animate-spin")})})]}),s.jsx("pre",{ref:L,className:"flex-1 p-4 overflow-y-auto text-[10px] font-mono text-cyan-300/90 whitespace-pre-wrap select-text leading-relaxed scrollbar-thin",children:w&&!N?s.jsx("span",{className:"text-muted-foreground",children:"Lade Logs..."}):N||s.jsx("span",{className:"text-muted-foreground",children:"Keine Logeinträge vorhanden."})})]})]})})]})]})}function R0(){const[o,u]=h.useState("dashboard"),[a,c]=h.useState(null),[f,p]=h.useState(()=>localStorage.getItem("mc_theme")!=="light"),[m,g]=h.useState(()=>localStorage.getItem("mc_sidebar_collapsed")==="true"),[N,S]=h.useState(null),[w,E]=h.useState(!1);h.useEffect(()=>{const T=()=>pe("/api/health").then(c).catch(()=>c(null));T();const j=setInterval(T,1e4);return()=>clearInterval(j)},[]),h.useEffect(()=>{const T=()=>pe("/api/maintenance/updates").then(S).catch(()=>{});T();const j=setInterval(T,2e4);return()=>clearInterval(j)},[]),h.useEffect(()=>{document.documentElement.classList.toggle("dark",f),localStorage.setItem("mc_theme",f?"dark":"light")},[f]),h.useEffect(()=>{const T=()=>E(!0);return window.addEventListener("open-system-drawer",T),()=>window.removeEventListener("open-system-drawer",T)},[]);const P=Qa.find(T=>T.id===o),M=N?N.os+N.engine+N.models:0;return s.jsxs("div",{className:"flex h-full relative",children:[s.jsx("div",{className:"fixed inset-0 -z-50 pointer-events-none overflow-hidden bg-[hsl(222,24%,7%)]",children:s.jsx("div",{className:"absolute inset-0 opacity-25 animate-aurora bg-gradient-to-tr from-teal-500/15 via-indigo-500/10 to-purple-500/15 blur-[120px]"})}),s.jsx(Px,{onNavigate:u}),s.jsx(P0,{open:w,onClose:()=>E(!1)}),s.jsxs("aside",{className:ae("flex shrink-0 flex-col border-r border-border/40 bg-card/45 backdrop-blur-md transition-all duration-300 ease-in-out",m?"w-16":"w-60"),children:[s.jsxs("div",{className:ae("flex items-center py-4 border-b border-border/40 shrink-0",m?"flex-col gap-3 px-2":"justify-between px-5"),children:[s.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[s.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary shadow-md shadow-primary/20 shrink-0"}),!m&&s.jsxs("div",{className:"leading-tight",children:[s.jsx("div",{className:"text-sm font-semibold tracking-wide font-space",children:"Mission Control"}),s.jsx("div",{className:"text-xs text-muted-foreground",children:"2.0"})]})]}),s.jsx("button",{onClick:()=>{g(T=>{const j=!T;return localStorage.setItem("mc_sidebar_collapsed",j.toString()),j})},className:"p-1 rounded-md hover:bg-accent text-muted-foreground transition-colors cursor-pointer",title:m?"Maximieren":"Minimieren",children:m?s.jsx(qm,{className:"h-4 w-4"}):s.jsx(Qm,{className:"h-4 w-4"})})]}),s.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4 overflow-y-auto",children:Qa.map(T=>s.jsxs("button",{onClick:()=>u(T.id),className:ae("flex w-full items-center rounded-md text-sm transition-all cursor-pointer",m?"justify-center p-2.5":"gap-3 px-3 py-2",o===T.id?"bg-primary/15 text-primary shadow-sm shadow-primary/5":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),title:m?T.label:void 0,children:[s.jsx(T.icon,{className:"h-4.5 w-4.5 shrink-0"}),!m&&s.jsx("span",{className:"truncate",children:T.label})]},T.id))}),s.jsx("div",{className:ae("py-3 text-xs text-muted-foreground border-t border-border/40 shrink-0",m?"px-2 text-center":"px-5"),children:m?s.jsx("div",{className:"flex justify-center",children:s.jsx("span",{className:ae("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",a?a.engine_reachable?"bg-emerald-500 animate-pulse":"bg-amber-500":"bg-red-500"),title:a?`Engine ${a.engine_reachable?"online":"offline"}`:"Backend offline"})}):a?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:ae("h-2 w-2 rounded-full",a.engine_reachable?"bg-emerald-500":"bg-amber-500")}),s.jsxs("span",{className:"truncate",children:["Engine ",a.engine_reachable?"online":"offline"," · v",a.version]})]}):s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"})," ",s.jsx("span",{className:"truncate",children:"Backend offline"})]})})]}),s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border/40 px-6 bg-card/20 backdrop-blur-sm",children:[s.jsx("div",{className:"text-xs font-medium text-muted-foreground tracking-wide uppercase font-sans",children:P.hint}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>E(!0),className:"relative flex h-8 items-center rounded-md border border-border/40 bg-background/40 px-3 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground gap-1.5 transition-all cursor-pointer font-semibold",title:"System-Pflege öffnen",children:[s.jsx(jr,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"OS & Updates"}),M>0&&s.jsxs("span",{className:"flex h-1.5 w-1.5 relative",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5 bg-amber-500"})]})]}),s.jsx("a",{href:"https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/mission-control-v2/src/branch/main/docs/BEDIENUNG.md",target:"_blank",rel:"noopener",className:"flex h-8 items-center rounded-md border border-border/40 bg-background/40 px-2.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer font-semibold",title:"Bedien-Anleitung",children:"Hilfe"}),s.jsx("button",{onClick:()=>p(T=>!T),className:"flex h-8 w-8 items-center justify-center rounded-md border border-border/40 bg-background/40 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer",title:"Hell/Dunkel",children:f?s.jsx(xh,{className:"h-3.5 w-3.5"}):s.jsx(sh,{className:"h-3.5 w-3.5"})}),s.jsxs("button",{onClick:()=>{const T=new KeyboardEvent("keydown",{key:"k",metaKey:!0});document.dispatchEvent(T)},className:"flex items-center gap-2 rounded-md border border-border/40 bg-background/40 px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer",children:[s.jsx(Zm,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"Suchen"}),s.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[9px]",children:"⌘K"})]})]})]}),s.jsxs("main",{className:"flex-1 overflow-y-auto p-6 scrollbar-thin",children:[o==="dashboard"&&s.jsx(u0,{}),o==="models"&&s.jsx(b0,{}),o==="system"&&s.jsx(k0,{}),o==="connect"&&s.jsx(S0,{}),o==="memory"&&s.jsx(j0,{}),o==="agent"&&s.jsx(E0,{}),!["dashboard","models","system","connect","memory","agent"].includes(o)&&s.jsx(C0,{title:P.label,hint:P.hint})]})]})]})}$m.createRoot(document.getElementById("root")).render(s.jsx(Id.StrictMode,{children:s.jsx(R0,{})}));