const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MenueSchublade-dfaMfvPR.js","assets/dist-aE7UmubC.js","assets/sheet-Bcuh2-nz.js","assets/button-DwYvdWVr.js","assets/dist-DSmV4Srg.js","assets/Start-DREQTawa.js","assets/Panel-uT1S5ZGr.js","assets/Lagekopf-PcUY5KZI.js","assets/Updates-BT3dF9QL.js","assets/chevron-right-DF8ikrVh.js","assets/Bestaetigen-DNJdB_zl.js","assets/Auftraege-yNI8sNrj.js","assets/Modelle-_bMeyIzl.js","assets/useSelector-DBNxxw17.js","assets/useMatch-DDVpPKJI.js","assets/search-RXhRizww.js","assets/breite-k-QN6GPl.js","assets/Monitoring-DuLD6OPr.js","assets/Dienste-BzHBz7yc.js","assets/Homelab-UeAs6wHb.js","assets/undo-2-B8COJmAr.js","assets/HomelabSnapshots-CocdJ9DQ.js","assets/HomelabProtokoll-DtbEOAHL.js","assets/Einstellungen-FJlJNgdq.js"])))=>i.map(i=>d[i]); import{a as e,c as t,i as n,n as r,o as i,r as a,t as o}from"./dist-aE7UmubC.js";import{_ as s,a as c,c as l,d as u,f as d,g as f,h as p,i as m,l as h,m as g,n as _,o as v,p as y,r as b,s as x,t as S,u as C,v as w,y as T}from"./useSelector-DBNxxw17.js";import{i as E,n as D,r as O,t as k}from"./useMatch-DDVpPKJI.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ee=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),A=i(((e,t)=>{t.exports=ee()})),te=i((t=>{var n=e();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=te()})),re=i((t=>{var n=A(),r=e(),i=ne();function a(e){var t=`https://react.dev/errors/`+e;if(1ye||(e.current=ve[ye],ve[ye]=null,ye--)}function I(e,t){ye++,ve[ye]=e.current,e.current=t}var Se=be(null),Ce=be(null),we=be(null),Te=be(null);function Ee(e,t){switch(I(we,t),I(Ce,e),I(Se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}xe(Se),I(Se,e)}function De(){xe(Se),xe(Ce),xe(we)}function Oe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,I(Te,e)),t=Se.current;var n=dp(t,e.type);t!==n&&(I(Ce,e),I(Se,n))}function ke(e){Ce.current===e&&(xe(Se),xe(Ce)),Te.current===e&&(xe(Te),sh._currentValue=_e)}var Ae,je;function Me(e){if(Ae===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||``,je=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ne=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Me(n):``}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return Me(e.type);case 16:return Me(`Lazy`);case 13:return e.child!==t&&t!==null?Me(`Suspense Fallback`):Me(`Suspense`);case 19:return Me(`SuspenseList`);case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return Me(`Activity`);case 30:return Me(`ViewTransition`);default:return``}}function Ie(e){try{var t=``,n=null;do t+=Fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var Le=Object.prototype.hasOwnProperty,Re=n.unstable_scheduleCallback,ze=n.unstable_cancelCallback,Be=n.unstable_shouldYield,Ve=n.unstable_requestPaint,He=n.unstable_now,Ue=n.unstable_getCurrentPriorityLevel,We=n.unstable_ImmediatePriority,Ge=n.unstable_UserBlockingPriority,Ke=n.unstable_NormalPriority,qe=n.unstable_LowPriority,Je=n.unstable_IdlePriority,Ye=n.log,Xe=n.unstable_setDisableYieldValue,Ze=null,Qe=null;function $e(e){if(typeof Ye==`function`&&Xe(e),Qe&&typeof Qe.setStrictMode==`function`)try{Qe.setStrictMode(Ze,e)}catch{}}var et=Math.clz32?Math.clz32:rt,tt=Math.log,nt=Math.LN2;function rt(e){return e>>>=0,e===0?32:31-(tt(e)/nt|0)|0}var it=256,at=262144,ot=4194304;function st(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ct(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=st(n))):i=st(o):i=st(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=st(n))):i=st(o)):i=st(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function lt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ut(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function mt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ht(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=pr),gr=` `,_r=!1;function vr(e,t){switch(e){case`keyup`:return dr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var br=!1;function xr(e,t){switch(e){case`compositionend`:return yr(t);case`keypress`:return t.which===32?(_r=!0,gr):null;case`textInput`:return e=t.data,e===gr&&_r?null:e;default:return null}}function Sr(e,t){if(br)return e===`compositionend`||!fr&&vr(e,t)?(e=Pn(),Nn=Mn=jn=null,br=!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)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Gr(n)}}function qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wr(e.document)}return t}function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Xr=On&&`documentMode`in document&&11>=document.documentMode,Zr=null,Qr=null,$r=null,ei=!1;function ti(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ei||Zr==null||Zr!==Wr(r)||(r=Zr,`selectionStart`in r&&Yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$r&&Ur($r,r)||($r=r,r=Jf(Qr,`onSelect`),0>=o,i-=o,Zi=1<<32-et(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),z&&$i(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),z&&$i(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return z&&$i(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),z&&$i(i,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),co(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===se&&to(l)===r.type){n(e,r.sibling),c=i(r,o.props),co(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=Ri(o.props.children,e.mode,c,o.key),co(c,o),c.return=e,e=c):(c=Li(o.type,o.key,o.props,null,e.mode,c),co(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Vi(o,e.mode,c),c.return=e,e=c}return s(e);case se:return o=to(o),_(e,r,o,c)}if(ge(o))return h(e,r,o,c);if(me(o)){if(l=me(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,so(o),c);if(o.$$typeof===ie)return _(e,r,Da(e,o),c);lo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=zi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{oo=0;var i=_(e,t,n,r);return ao=null,i}catch(t){if(t===Ya||t===Za)throw t;var a=Ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var fo=uo(!0),po=uo(!1),mo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function go(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _o(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ai(e),ki(e,null,n),t}return Ei(e,r,t,n),Ai(e)}function yo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}function bo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function So(){if(xo){var e=Ba;if(e!==null)throw e}}function Co(e,t,n,r){xo=!1;var i=e.updateQueue;mo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===za&&(xo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:mo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function wo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function To(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=P.T,s={};s.types=o===null?null:o.types,P.T=s,uc(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?lc(e,t,Ua(c,r),jd(e)):lc(e,t,r,jd(e))}catch(n){lc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function $s(){}function ec(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=tc(e).queue;Qs(e,i,t,_e,n===null?$s:function(){return nc(e),n(r)})}function tc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_e,baseState:_e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:_e},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function nc(e){var t=tc(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},jd())}function rc(){return Ea(sh)}function ic(){return os().memoizedState}function ac(){return os().memoizedState}function oc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=_o(n);var r=vo(t,e,n);r!==null&&(Pd(r,t,n),yo(r,t,n)),t={cache:Ma()},e.payload=t;return}t=t.return}}function sc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e)?fc(t,n):(n=Di(e,t,n,r),n!==null&&(Pd(n,e,r),pc(n,t,r)))}function cc(e,t,n){lc(e,t,n,jd())}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Hr(s,o))return Ei(e,t,i,0),q===null&&Ti(),!1}catch{}if(n=Di(e,t,i,r),n!==null)return Pd(n,e,r),pc(n,t,r),!0}return!1}function uc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},dc(e)){if(t)throw Error(a(479))}else t=Di(e,n,r,2),t!==null&&Pd(t,e,2)}function dc(e){var t=e.alternate;return e===V||t!==null&&t===V}function fc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_t(e,n)}}var mc={readContext:Ea,use:ls,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},hc={readContext:Ea,use:ls,useCallback:function(e,t){return U().memoizedState=[e,t===void 0?null:t],e},useContext:Ea,useEffect:zs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Ls(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var n=U();t=t===void 0?null:t;var r=e();if(Ko){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=U();if(n!==void 0){var i=n(t);if(Ko){$e(!0);try{n(t)}finally{$e(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=sc.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=U();return e={current:e},t.memoizedState=e},useState:function(e){e=xs(e);var t=e.queue,n=cc.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qs,useDeferredValue:function(e,t){return Xs(U(),e,t)},useTransition:function(){var e=xs(!1);return e=Qs.bind(null,V,e.queue,!0,!1),U().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,i=U();if(z){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),q===null)throw Error(a(349));Y&127||gs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,zs(vs.bind(null,r,o,e),[e]),r.flags|=2048,Fs(9,{destroy:void 0},_s.bind(null,r,o,n,t),null),n},useId:function(){var e=U(),t=q.identifierPrefix;if(z){var n=Qi,r=Zi;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[wt]=t,o[Tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&pl(t)}}return W(t),t.subtreeFlags&=-33554433,ml(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=we.current,fa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ia,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[wt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||la(t,!0)}else e=lp(e).createTextNode(r),e[wt]=t,t.stateNode=e}return W(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=fa(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[wt]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),e=!1}else n=ma(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lo(t),t):(Lo(t),null);if(t.flags&128)throw Error(a(558))}return W(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=fa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[wt]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;W(t),i=!1}else i=ma(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Lo(t),t):(Lo(t),null)}return Lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gl(t,t.updateQueue),W(t),null);case 4:return De(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,W(t),null;case 10:return ba(t.type),W(t),null;case 19:if(Bo(t),r=t.memoizedState,r===null)return W(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)_l(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Vo(e),o!==null){for(t.flags|=128,_l(r,!1),e=o.updateQueue,t.updateQueue=e,gl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ii(n,e),n=n.sibling;return zo(t,Ro.current&1|2),z&&$i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&He()>gd&&(t.flags|=128,i=!0,_l(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Vo(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,gl(t,e),_l(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!z)return W(t),null}else 2*He()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,i=!0,_l(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=He(),e.sibling=null,o=Ro.current,o=i?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||z?zo(t,o):(n=o,I(jo,t),I(Ro,n),Mo===null&&(Mo=t)),z&&$i(t,r.treeForkCount),e}return W(t),null;case 22:case 23:return Lo(t),Ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(W(t),t.subtreeFlags&6&&(t.flags|=8192)):W(t),n=t.updateQueue,n!==null&&gl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&xe(Ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ba(ja),W(t),null;case 25:return null;case 30:return t.flags|=33554432,W(t),null}throw Error(a(156,t.tag))}function yl(e,t){switch(na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(ja),De(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ke(t),null;case 31:if(t.memoizedState!==null){if(Lo(t),t.alternate===null)throw Error(a(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Bo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return De(),null;case 10:return ba(t.type),null;case 22:case 23:return Lo(t),Ao(),e!==null&&xe(Ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ba(ja),null;case 25:return null;default:return null}}function bl(e,t){switch(na(t),t.tag){case 3:ba(ja),De();break;case 26:case 27:case 5:ke(t);break;case 4:De();break;case 31:t.memoizedState!==null&&Lo(t);break;case 13:Lo(t);break;case 19:Bo(t);break;case 10:ba(t.type);break;case 22:case 23:Lo(t),Ao(),e!==null&&xe(Ga);break;case 24:ba(ja)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{To(t,n)}catch(t){Z(e,e.return,t)}}}function wl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=vi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);p(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),np(r,t,n),r[wt]=e,Lt(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,i).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Kr(s,h),v=Kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,P.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,K&6)throw Error(a(331));var c=K;if(K|=4,Yu(o.current),Vu(o,o.current,s,n),K=c,Df(0,!1),Qe&&typeof Qe.onPostCommitFiberRoot==`function`)try{Qe.onPostCommitFiberRoot(Ze,o)}catch{}return!0}finally{F.p=i,P.T=r,uf(e,t)}}function pf(e,t,n){t=Ui(n,t),t=Oc(e.stateNode,t,2),e=vo(e,t,2),e!==null&&(mt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Ui(n,e),n=kc(2),r=vo(t,n,2),r!==null&&(Ac(n,r,t,e),mt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $u;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(ad===4||ad===3&&(Y&62914560)===Y&&300>He()-md?K&2?cd|=n:Vd(e,0):cd|=n,ud===Y&&(ud=0)),Ef(e)}function gf(e,t){t===0&&(t=ft()),e=Oi(e,t),e!==null&&(mt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Re(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-et(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Y,a=ct(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||lt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=He(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}yd!==0&&yd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=rn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Lt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+rn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+rn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+rn(n.imageSizes)+`"]`)):i+=`[href="`+rn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[jt]=!0,o.onload=o.onerror=function(){Rt(o)}),Lt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+rn(r)+`"][href="`+rn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Lt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=It(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Lt(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=It(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Lt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=we.current)?bm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=It(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=It(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=It(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Pm(e){return`href="`+rn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[jt]){r.loading=1;return}}else t=e.createElement(`link`),t[jt]=!0,t.onload=t.onerror=Rt.bind(null,t),np(t,`link`,n),Lt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+rn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+rn(n.href)+`"]`);if(r)return t.instance=r,Lt(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Lt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var o=e.querySelector(Fm(i));if(o)return t.state.loading|=4,t.instance=o,Lt(o),o;r=Im(n),(i=vm.get(i))&&Hm(r,i),o=(e.ownerDocument||e).createElement(`link`),Lt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(i=e.querySelector(zm(o)))?(t.instance=i,Lt(i),i):(r=n,(i=vm.get(o))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Lt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Lt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=re()})),j=t(e(),1),M=n(),ae=j.createContext(void 0),oe=e=>{let t=j.useContext(ae);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},se=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,M.jsx)(ae.Provider,{value:e,children:t})),ce={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},le=new class{#e=ce;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ue(e){setTimeout(e,0)}var de=typeof window>`u`||`Deno`in globalThis;function fe(){}function pe(e,t){return typeof e==`function`?e(t):e}function me(e){return typeof e==`number`&&e>=0&&e!==1/0}function he(e,t){return Math.max(e+(t||0)-Date.now(),0)}function N(e,t){return typeof e==`function`?e(t):e}function ge(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==F(o,t.options))return!1}else if(!ve(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function P(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(_e(t.options.mutationKey)!==_e(a))return!1}else if(!ve(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function F(e,t){return(t?.queryKeyHashFn||_e)(e)}function _e(e){return JSON.stringify(e,(e,t)=>Se(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ve(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n500)return t;let r=I(e)&&I(t);if(!r&&!(Se(e)&&Se(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{le.setTimeout(t,e)})}function Te(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:be(e,t)}function Ee(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function De(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Oe=Symbol();function ke(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Oe?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ae(e,t){return typeof e==`function`?e(...t):!!e}function je(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Me=()=>de,Ne=()=>Me(),Pe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fe=new class extends Pe{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Ie=ue;function Le(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ie,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Re=Le(),ze=new class extends Pe{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Be(e){return Math.min(1e3*2**e,3e4)}function Ve(e){return(e??`online`)!==`online`||ze.isOnline()}var He=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ue(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(fe);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new He(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Fe.isFocused()&&(e.networkMode===`always`||ze.isOnline())&&e.canRun(),p=()=>Ve(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(Ne()?0:3),a=e.retryDelay??Be,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&nf()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var We=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),me(this.gcTime)&&(this.#e=le.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ne()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(le.clearTimeout(this.#e),this.#e=void 0)}};function Ge(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{je(e,()=>t.signal,()=>n=!0)},u=ke(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?De:Ee;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?qe:Ke,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ke(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Ke(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function qe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Je=class extends We{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ze(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ze(this.options);e.data!==void 0&&(this.setState(Xe(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Te(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(fe).catch(fe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>N(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Oe||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>N(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!he(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ke(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ge(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Ue({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof He&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof He){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ye(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Xe(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Re.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ye(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ve(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Xe(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ze(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Qe=class extends Pe{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),et(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tt(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tt(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof N(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!xe(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&nt(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||N(this.options.enabled,this.#t)!==N(t.enabled,this.#t)||N(this.options.staleTime,this.#t)!==N(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||N(this.options.enabled,this.#t)!==N(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return xe(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(fe)),t}#h(e){return!Ne()&&N(this.options.enabled,this.#t)!==!1&&me(e)}#g(){this.#b();let e=N(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=he(this.#r.dataUpdatedAt,e)+1;this.#u=le.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return N(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=le.setInterval(()=>{(this.options.refetchIntervalInBackground||Fe.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(le.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(le.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&et(e,t),o=i&&nt(e,n,t,r);(a||o)&&(l={...l,...Ye(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Te(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Te(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:rt(e,t),refetch:this.refetch,isEnabled:N(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),xe(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();Re.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function $e(e,t){return N(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||N(t.retryOnMount,e)!==!1)}function et(e,t){return $e(e,t)||e.state.data!==void 0&&tt(e,t,t.refetchOnMount)}function tt(e,t,n){if(N(t.enabled,e)!==!1&&N(t.staleTime,e)!==`static`){let r=N(n,e);return r===`always`||r!==!1&&rt(e,t)}return!1}function nt(e,t,n,r){return(e!==t||N(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&rt(e,n)}function rt(e,t){return N(t.enabled,e)!==!1&&e.isStaleByTime(N(t.staleTime,e))}var it=class extends We{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||at(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ue({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Re.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function at(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ot=class extends Pe{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new it({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=st(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=st(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=st(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=st(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Re.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>P(t,e))}findAll(e={}){return this.getAll().filter(t=>P(e,t))}notify(e){Re.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Re.batch(()=>Promise.all(e.map(e=>e.continue().catch(fe))))}};function st(e){return e.options.scope?.id}var ct=class extends Pe{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),xe(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&_e(t.mutationKey)!==_e(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??at();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Re.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function lt(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var ut=class extends Pe{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Re.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!xe(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(lt(e,n).forEach(e=>{e.destroy()}),lt(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=be(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Qe(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&Re.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},dt=class extends Pe{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??F(r,t),a=this.get(i);return a||(a=new Je({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Re.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ge(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ge(e,t)):t}notify(e){Re.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Re.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Re.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ft=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new dt,this.#t=e.mutationCache||new ot,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Fe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ze.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(N(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=pe(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Re.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Re.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Re.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=Re.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(e,t={}){return Re.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Re.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(fe)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(fe)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(N(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(N(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fe).catch(fe)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fe).catch(fe)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ze.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(_e(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ve(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(_e(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ve(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=F(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Oe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},pt=j.createContext(!1),mt=()=>j.useContext(pt);pt.Provider;function ht(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var gt=j.createContext(ht()),_t=()=>j.useContext(gt),vt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Ae(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},yt=e=>{j.useEffect(()=>{e.clearReset()},[e])},bt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Ae(n,[e.error,r])),xt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},St=(e,t)=>e?.suspense&&t.isPending,Ct=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function wt({queries:e,...t},n){let r=oe(n),i=mt(),a=_t(),o=t.subscribed!==!1,s=j.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{xt(e);let t=r.getQueryCache().get(e.queryHash);vt(e,a,t)}),yt(a);let[c]=j.useState(()=>new ut(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&o;j.useSyncExternalStore(j.useCallback(e=>f?c.subscribe(Re.batchCalls(e)):fe,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),j.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let p=l.some((e,t)=>St(s[t],e))?l.flatMap((e,t)=>{let n=s[t];return n&&St(n,e)?Ct(n,new Qe(r,n),a):[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&bt({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m)throw m.error;return u(d())}function Tt(e,t,n){let r=mt(),i=_t(),a=oe(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,xt(o),vt(o,i,s),yt(i);let[l]=j.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(j.useSyncExternalStore(j.useCallback(e=>{let t=d?l.subscribe(Re.batchCalls(e)):fe;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),j.useEffect(()=>{l.setOptions(o)},[o,l]),St(o,u))throw Ct(o,l,i);if(bt({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function L(e,t){return Tt(e,Qe,t)}function Et(e,t){let n=oe(t),[r]=j.useState(()=>new ct(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);let i=j.useSyncExternalStore(j.useCallback(e=>r.subscribe(Re.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=j.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(fe)},[r]);if(i.error&&Ae(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Dt=j.use,Ot=j.useLayoutEffect;function kt(e){return e.replace(/\/{2,}/g,`/`)}function At(e){return e===`/`?e:e.replace(/^\/+/,``)}function jt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Mt(e){return jt(At(e))}function Nt(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Pt(e,t,n=`never`,r){if(t.includes(`//`)&&(t=kt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=kt(e)),o=e.split(`/`);o.length>1&&f(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(f(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?kt(s):s)||`/`;return a&&r&&r.set(a,c),c}function Ft(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function It(e){return e==null||e===``}function Lt(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function Rt(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&It(f)){if(c===`/`&&!d)continue;f=``}o+=c+Lt(s,f,r)+(d||``)}}return o+a||`/`}function zt(e){return e?.isNotFound===!0}function Bt(){try{return sessionStorage}catch{return}}var Vt=`tsr-scroll-restoration-v1_3`,Ht=Bt();function Ut(){try{return JSON.parse(Ht?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Wt(){try{Ht?.setItem(Vt,JSON.stringify(Gt))}catch{}}var Gt=Ut(),Kt=`data-scroll-restoration-id`,R=e=>e.state.__TSR_key||e.href;function qt(e){let t=e.getAttribute(Kt);if(t)return`[${Kt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Jt=!1,Yt=`window`;function Xt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Zt(e){let t=new Set;for(let n of e){if(n===Yt)continue;let e=Xt(n);e&&t.add(e)}return t}function Qt(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||R,a=new Set,o=e=>{let t=Gt[e]||={};for(let e of a)e===document?t[Yt]={scrollX,scrollY}:e.isConnected&&(t[qt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,Jt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Jt||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Wt()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=Gt[d];if(e){let t=Gt[u];for(let n in e){if(n===Yt){if(s)continue}else{let e=Xt(n);if(!e||s&&o&&(l??=Zt(o),l.has(e)))continue}t||=Gt[u]={},t[n]??=e[n]}}}Jt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Zt(o));let t=e&&i&&c,s=r.restoring?Gt[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Yt){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Xt(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Jt=!1}}))}function $t(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function en(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function tn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=en(r):Array.isArray(t)?t.push(en(r)):n[e]=[t,en(r)]}return n}var nn=/^(?:\s|["[{\d-]|fa|nu|tr)/,rn=on(JSON.parse),an=sn(JSON.stringify,JSON.parse);function on(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=tn(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!nn.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function sn(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!nn.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=$t(e,r);return t?`?${t}`:``}}var cn=`__root__`;function ln(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function un(e){return e instanceof Response&&!!e.options}function dn(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var fn=4,pn=5;function mn(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function hn(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s!e.parse&&e.caseSensitive===_&&e.prefix===f&&e.suffix===g);if(y)c=y;else{let e=vn(r,t,_,f,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}m&&h=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===fn)>(e.node.kind===fn)||t.node.kind===fn==(e.node.kind===fn)&&t.node.depth>e.node.depth)))}function Nn(e,t,n){let r=Mt(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=kt(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Pn(n,s.input({url:e})),output:({url:e})=>s.output({url:Fn(n,e)})}:s}function Pn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Fn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function In(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),l=n(void 0),u=n([]),d=r(()=>u.get().map(e=>a.get(e).get())),f=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:d.get(),location:s.get(),resolvedLocation:l.get()}));function p(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let m={status:o,location:s,resolvedLocation:l,ids:u,matches:d,byRoute:a,__store:f,getMatchStore:p,setMatches:h};function h(e){let t=u.get(),n=e.map(e=>e.routeId);i(()=>{c(t,n)||u.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=p(t.routeId);e.get()!==t&&e.set(t)}})}return m}var Ln=`__TSR_index`,Rn=`popstate`,zn=`beforeunload`,Bn=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Vn(e){let t=Bn.exec(e);return t?`/`+e.slice(t[0].length):e}function Hn(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>` \r`.includes(e)?``:encodeURIComponent(e))),Vn(e)}function Un(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Kn(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Ln];i=Wn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Ln];i=Wn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Ln]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Wn(e,t){let n=qn();return{...t,key:n,__TSR_key:n,[Ln]:e}}function Gn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>Hn(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Kn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=qn();t.history.replaceState({[Ln]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Kn(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Ln]-l.state[Ln],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Un({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(zn,x,{capture:!0}),t.removeEventListener(Rn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(zn,x,{capture:!0}),t.addEventListener(Rn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Kn(e,t){let n=Hn(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=qn();t={[Ln]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function qn(){return(Math.random()+1).toString(36).substring(7)}function Jn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Yn(e){return e.pathname+e.search+e.hash}function Xn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Zn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Qn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function $n(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function er(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var tr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Gn()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&Mt(n)?Nn(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=In(this.latestLocation,e),Qt(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Cn(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&yn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:dn(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:x(e),external:!1,searchStr:o,search:s(t?.search,i),hash:x(r.slice(1)),state:T(t?.state,a)}}let o=Pn(this.rewrite,new URL(i,this.origin)),c=this.options.parseSearch(o.search),l=this.options.stringifySearch(c);return o.search=l,{href:o.href.replace(o.origin,``),publicHref:i,pathname:x(Vn(o.pathname)),external:!!this.rewrite&&Jn(o,this.origin),searchStr:l,search:s(t?.search,c),hash:x(o.hash.slice(1)),state:T(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Sn(jt(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Kn(n.href,{});n={...n,to:Pn(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r)),s=n.to?`${n.to}`:`.`,c=Pt(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[jt(c)],u=c.includes(`$`),f;if(l)f=l._branch??=En(l);else if(u)f=[];else{let[e,t,n]=this.getMatchedRoutes(c);f=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(f=[...f,this.options.notFoundRoute])}let p=u?l?._interpolation??gn(!1,{fullPath:c},0):void 0,m;for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(m??=or(n.params,e),!d(m))break;m===e&&(m=Object.assign(v(),m));try{Object.assign(m,t(m))}catch{}}}m??=or(n.params,sr(n.params,p)?o()[3]:cr);let g=e.leaveParams?c:Vn(x(p?Rt(c,p,m,this.pathParamsDecoder):c)),_=lr(f,e._includeValidateSearch),y=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,ar(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},b=_.length?ur(_,y(),n):n.search===!0?y():typeof n.search==`function`?n.search(y()):n.search||cr,S=this.options.stringifySearch(b),C=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,w=C?`#${C}`:``,T=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:cr,E=`${g}${S}${w}`,D,O,k=!1;if(this.rewrite){let e=new URL(E,this.origin),t=e.origin,n=Fn(this.rewrite,e);D=Yn(e),Jn(n,t)?(O=n.href,k=!0):O=Vn(Yn(n))}else D=h(E),O=D;return{publicHref:O,href:D,pathname:g,search:b,searchStr:S,state:T,hash:C??``,external:k,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=bn(r.pathname,this.processedTree);if(t){let i=Object.assign(v(),t.rawParams),{from:a,params:o,...s}=t.route,c=or(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return nr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=jt(this.latestLocation.href)===jt(n.href)&&l(Qn(n.state),Qn(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?u(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return nr(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await ni(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Zn(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Xn(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(w.test(n)||(r=u(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Jn(e,this.origin)||(n=Yn(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=hr,this.preloadRoute=e=>ri(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?Pt(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=xn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!l(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?l(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Ft(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??an,parseSearch:e.parseSearch??rn,protocolAllowlist:e.protocolAllowlist??m}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=gn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:jt(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let c=o?dr(this.options.notFoundMode,a):void 0,l=Array(a.length),u=this._committed,d=(e,t)=>{let n=u[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?u.find(t=>t.routeId===e.id):void 0},f;for(let n=0;ntypeof t!=`string`&&!y.call(e,t[1]))}var cr=Object.freeze({});function lr(e,t){let n=[];for(let r=0;r{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=ar(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function ur(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=C(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function dr(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return cn}function fr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function pr(e,t){return e.options[t]?.preload?.()}function mr(e,t){let n=pr(e,`component`),r=pr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function hr(e,t,n){let r=()=>t===!1?void 0:t?pr(e,t):mr(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function gr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function wr(e,t){return e.routesById[t.routeId]}function Tr(e,t,n){return un(e)?[br,e]:zt(e)?(e.routeId||=n,[yr,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[vr,e]):[_r,e]}function Er(e,t){let n=Tr(t,!0,e.id);if(n[0]!==vr)return n;try{e.options.onError?.(n[1])}catch(t){n=Tr(t,!0,e.id)}return n}function Dr(e,t,n,r,i){return i[0].signal.aborted?xr:Ur(e,t,n,Er(n,r),i)}async function Or(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;ie.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Ar(e,r),[i,Dr(e,t,u,a,n)]}if(c.aborted)return[i,xr];let p=r.paramsError??r.searchError;if(p!==void 0)return Ar(e,r),[i,Dr(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Nr(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Cr(a,c):a);if(c.aborted)return[i,xr];let s=Ur(e,t,u,Tr(o,!1,u.id),n);if(s[0]!==_r)return Ar(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Ar(e,r),[i,Dr(e,t,u,a,n)]}finally{r.status=h,Nr(e,r,!1,n[0])}}i()}function kr(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Ar(e,t){let n=t._flight;t._flight=void 0,kr(e,t,n)?.abort()}function jr(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=kr(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Mr(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Nr(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Pr(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Fr(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return xr;if(!i)return[_r,void 0];let l=n._flight;Nr(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Pr(e,t,n,r,s,a,!!o[3]))).then(e=>Tr(e,!1,r.id),e=>Tr(e,!0,r.id)).then(t=>(t[0]!==_r&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===vr&&l[2]?Er(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Ur(e,t,r,await Cr(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Ar(e,n),xr}finally{Nr(e,n,!1,s)}}function Ir(e,t,n){t[0]!==br&&(e.status=`success`,e.error=void 0,t[0]===_r?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Lr(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Ar(e,r)}function Rr(e,t){return t[0]===vr||t[0]===yr?{...e,status:t[0]===vr?`error`:`notFound`,error:t[1],_flight:void 0}:e}function zr(e,t,n,r,i,a,o){let s=t[1][n],c=wr(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Pr(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=xr)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,Ar(e,s),p=Dr(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,kr(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Fr(e,t,s,c,g,i,a).then(t=>(Ir(s,t,l),t[0]===_r&&(m&&!a[0].signal.aborted&&Lr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[_r,s.loaderData]),T=(async()=>{try{let e=hr(c,void 0,C);e&&await Cr(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Dr(e,t,c,r,a)]}let r=await w;x&&r[0]===_r&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Rr(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Fr(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ir(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Rr(E,e))}async function Br(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=wr(e,t[n]);try{let e=hr(i,!1);e&&await Cr(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Vr(e,t){t[2]&&=(jr(e,t[2].map(e=>e[3])),void 0)}async function Hr(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=br)throw[a,t];!i&&t[0]!==_r&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===br)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Ur(e,t,n,r,i,a){for(;r[0]===br;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[br,t]:[br,t,a]}return[br,o,n]}catch(e){r=a?[vr,e]:Er(n,e),a=!0}}return r}async function Wr(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===yr?Br(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=br)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==_r&&t[0]=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=br){let n=s[1];if(n[0]!==br||n[1].options.reloadDocument||n[2])return Vr(e,t),n;c=!0,s=[0,[vr,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===vr?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=wr(e,u);try{await Cr(i?Promise.resolve().then(()=>hr(m,l===vr?`errorComponent`:`notFoundComponent`)):Promise.all([hr(m),hr(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Vr(e,t),xr}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Vr(e,t),jr(e,o),p()):u.status=`success`}return t}async function Gr(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;te._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await Br(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l{for(let t=d;t=br&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Wr(e,i,u,r[0],Hr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Hr(i[2],void 0,void 0,h.then(e=>Sr(e)?0:gr(n).length,()=>0))),o=await h}catch(t){if(Vr(e,i),t===a&&a.aborted)return xr;throw t}return Sr(o)?o:Gr(e,o,a,r[6]===n.length?r[6]:0)}function qr(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a0){i[3]=setTimeout(()=>qr(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Jr(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Yr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!gr(t[3]).some(e=>e.id===n[1]))return;let i;try{await Cr(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Xr(e,t){e._committed=t,e.stores.setMatches(t)}function Zr(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=gr(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=$n(n);Xr(e,n),jr(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),er(e,i,n,a,l,t)}async function Qr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function $r(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function ei(e,t,n,r,i){let a=n.map(e=>({...e}));Mr(a);for(let t of r)Ar(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Wr(e,o,r,t[0],i)}catch(t){throw jr(e,a),t}if(Sr(s)){jr(e,a),s[0]===br&&e._tx===t&&e._committed===n&&await $r(e,t,s);return}if(await Gr(e,s,t[0].signal),e._tx!==t||e._committed!==n){jr(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Ar(e,n))}Xr(e,a),jr(e,n,a)}async function ti(e,t,n,r,i,a){let o=await Kr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Sr(o)){let n=o[0]===br&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Jr(e,t),jr(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Jr(e,t);return}await $r(e,t,o);return}let s=o[1];if(e._tx===t&&await Yr(e,t),e._tx!==t){Jr(e,t),jr(e,s),Vr(e,o);return}let c=t[2],l=Zn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Yr(e,t),e._tx!==t){Jr(e,t),jr(e,s),Vr(e,o);return}let n=await e.startTransition(()=>{Jr(e,t),Zr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){Vr(e,o);return}u?.length&&ei(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function ni(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=Zn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Qr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Mr(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){jr(e,m),await Qr(e,n);return}e._preflight=void 0;let g,_=()=>ti(e,y,f,()=>qr(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Qr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Nr(e,t,!1)}n[0].abort(),jr(e,n[3],y[3],!0)}if(e._tx!==y){jr(e,y[3]),y[3]=[],g?.(),await Qr(e,y);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&qr(e,y),g?.(_()),await y[5]}async function ri(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Mr(a),o=(e._preloads??=new Map).set(i,a),s=await Kr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),jr(e,a)),i.abort()}if(!Sr(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){zt(e)||console.error(e);return}}}var ii=`Error preloading route! ☝️`,ai=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=cn:this.parentRoute||E();let r=n?cn:t?.path;r&&r!==`/`&&(r=At(r));let i=t?.id||r,a=n?cn:kt((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:kt(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=jt(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>ln({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},oi=class extends ai{constructor(e){super(e)}},si=class extends j.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?j.createElement(this.props.errorComponent??ci,{error:e[0],reset:this.reset}):this.props.children}};function ci({error:e}){let[t,n]=j.useState(!1);return(0,M.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,M.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,M.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,M.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,M.jsx)(`div`,{children:(0,M.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,M.jsx)(`code`,{children:e.message}):null})}):null]})}var li=()=>!0,ui=()=>!1;function di({children:e,fallback:t=null}){return(0,M.jsx)(j.Fragment,{children:fi()?e:t})}function fi(e=!0){return j.useSyncExternalStore(pi,li,e?ui:li)}function pi(){return()=>{}}function mi({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function hi(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var gi=[],_i=0,{link:vi,unlink:yi,propagate:bi,checkDirty:xi,shallowPropagate:Si}=mi({update(e){return e._update()},notify(e){gi[wi++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Oi(e))}}),Ci=0,wi=0,Ti,Ei=0;function Di(e){try{++Ei,e()}finally{--Ei||ki()}}function Oi(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=yi(n,e)}function ki(){if(!(Ei>0)){for(;Ci{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ti,o=t?.compare??Object.is;if(n)Ti=i,++_i,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Ti=a,n&&(i.flags&=-5),Oi(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&xi(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Si(e)}}else e&32&&(i.flags=e&-33);return Ti!==void 0&&vi(i,Ti,_i),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(bi(e),Si(e),ki())}},i}function ji(e){let t=()=>{let t=Ti;Ti=n,++_i,n.depsTail=void 0,n.flags=6;try{return e()}finally{Ti=t,n.flags&=-5,Oi(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&xi(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Oi(this)}};return t(),n}function Mi(e){return k({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ni(e){let{select:t,...n}=e;return k({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Pi(e){return k({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Fi(e){return k({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ii(e){let t=_();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Li(e){let t=_(),n=Ii(),r=j.useRef(null);return Ot(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function Ri(e){return k({...e,select:t=>e.select?e.select(t.context):t.context})}function zi(...e){let t=j.useRef(e),n=t.current;return e.forEach((e,t)=>{l(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Bi(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(ii)})}var Vi={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function Hi(e,t){let n=typeof e==`string`&&u(e);if(n)return t.has(n)?e:null}function Ui(e,t,n,r,i){let a=Nt(e.pathname,r),o=Nt(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!l(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||i&&e.hash===t.hash}function Wi(e,t,n){let r=_(),i=j.useRef(null),a=j.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,ignoreBlocker:g,disabled:v,target:y,onClick:b,onBlur:x,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:E}=e,D=fi(!!o?.includeHash),[O,k,ee]=zi(e.search,e.params,o),[A,te]=j.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,O,k,e.state,e.mask,e.unsafeRelative]),ne=j.useCallback(e=>{let t=Hi(s,r.protocolAllowlist);if(t!==void 0)return[t??void 0];A._fromLocation||(te._fromLocation=e);let n=r.buildLocation(te),i=$i(n,r,v);return[i,!v&&(!i||u(i))?void 0:Ui(e,n,ee,r.basepath,D)]},[ee,v,D,A,te,r,s]),[re,ie]=S(r.stores.location,ne,Vi),M=ie===void 0?re:void 0,ae=v||re===void 0,oe=j.useRef(!1),se=e.reloadDocument||M||ae?!1:c??r.options.defaultPreload,ce=l??r.options.defaultPreloadDelay??0,le=j.useCallback(e=>{let t=e?.isIntersecting;if(!(t??se===`intent`)){t===!1&&Zi(i);return}if(!ce){Bi(r,A);return}Xi.has(i)||Xi.set(i,setTimeout(()=>{Xi.delete(i),Bi(r,A)},ce))},[r,A,i,se,ce]);j.useEffect(()=>{se===`render`&&!oe.current&&(oe.current=!0,Bi(r,A));let e;return se===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(e=new IntersectionObserver(e=>le(e.pop()),{rootMargin:`100px`}),e.observe(i.current)),()=>{e?.disconnect(),Zi(i)}},[r,A,se,le,i]);let ue=Ji(e,n);if(ue.ref=t?a:i,M)return ue.href=M,ue;let de=e=>{let t=y??e.currentTarget.getAttribute(`target`);!ae&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),r.navigate({...A,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:g}))},fe=()=>{se===`intent`&&Bi(r,A)},pe=()=>{se===`intent`&&Zi(i)};return ue.onClick=Qi(b,de),ue.onBlur=Qi(x,pe),ue.onFocus=Qi(C,le),ue.onMouseEnter=Qi(w,le),ue.onMouseLeave=Qi(T,pe),ue.onTouchStart=Qi(E,fe),Yi(ue,e,ie,re,ae,n)}var Gi={},Ki={className:`active`},qi=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Ji(e,t){let n={};for(let r in e)qi.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Yi(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=C(n?o:s,{})??(n?Ki:Gi);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Xi=new WeakMap,Zi=e=>{clearTimeout(Xi.get(e)),Xi.delete(e)},Qi=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function $i(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!g(i,t.protocolAllowlist))return i}var ea=j.memo(j.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Wi(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return j.createElement(n,r,i)}),ta);function ta(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!qi.has(r)||!l(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var na=class extends ai{constructor(e){super(e),this.useMatch=e=>k({...e,from:this.id}),this.useRouteContext=e=>Ri({...e,from:this.id}),this.useSearch=e=>Fi({...e,from:this.id}),this.useParams=e=>Pi({...e,from:this.id}),this.useLoaderDeps=e=>Ni({...e,from:this.id}),this.useLoaderData=e=>Mi({...e,from:this.id}),this.useNavigate=()=>Ii({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(ea,{ref:t,from:this.fullPath,...e}))}};function ra(e){return new na(e)}var ia=class extends oi{constructor(e){super(e),this.useMatch=e=>k({...e,from:this.id}),this.useRouteContext=e=>Ri({...e,from:this.id}),this.useSearch=e=>Fi({...e,from:this.id}),this.useParams=e=>Pi({...e,from:this.id}),this.useLoaderDeps=e=>Ni({...e,from:this.id}),this.useLoaderData=e=>Mi({...e,from:this.id}),this.useNavigate=()=>Ii({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(ea,{ref:t,from:this.fullPath,...e}))}};function aa(e){return new ia(e)}function z(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(p(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(Dt)Dt(a());else throw a()}return j.createElement(r,e)};return o.preload=a,o}function oa(e){let t=_(),n=`not-found-${S(t.stores.location,e=>e.pathname)}-${S(t.stores.status)}`;return(0,M.jsx)(si,{getResetKey:()=>n,onCatch:(t,n)=>{if(zt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(zt(t))return e.fallback?.(t);throw t},children:e.children})}function sa(){return(0,M.jsx)(`p`,{children:`Not Found`})}function ca(e){return(0,M.jsx)(M.Fragment,{children:e.children})}function la(e,t,n){return t.options.notFoundComponent?(0,M.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,M.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,M.jsx)(sa,{})}function ua(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,M.jsx)(n,{}):null}var da=(e,t)=>e[0]===t[0]&&e[1]===t[1],fa=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,pa=j.memo(function({routeId:e}){let t=_();return(0,M.jsx)(ma,{router:t,match:S(t.stores.getMatchStore(e))})});function ma({router:e,match:t}){let n=e.routesById[t.routeId],r=ua(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=fa(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s))?j.Suspense:ca,l=i?si:ca,u=o?oa:ca;return(0,M.jsxs)(n.isRoot?n.options.shellComponent??ca:ca,{children:[(0,M.jsx)(O.Provider,{value:t.routeId,children:(0,M.jsx)(c,{fallback:r,children:(0,M.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(zt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:(0,M.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return j.createElement(o,e)},children:s?(0,M.jsx)(di,{fallback:r,children:(0,M.jsx)(ha,{match:t})}):(0,M.jsx)(ha,{match:t})})})})}),null]})}var ha=j.memo(function({match:e}){let t=_(),n=e.routeId,r=t.routesById[n],i=j.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=j.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,M.jsx)(e,{},i):(0,M.jsx)(ga,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!fa(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return ua(t,r)}if(e.status===`notFound`)return la(t,r,e.error);if(e.status===`error`)throw e.error;return a}),ga=j.memo(function(){let e=_(),t=j.useContext(O),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=S(a,e=>[!!e._notFound,e.error],{compare:da}),i=S(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return la(e,e.routesById[t],r);if(!i)return null;let a=(0,M.jsx)(pa,{routeId:i});return t===`__root__`?(0,M.jsx)(j.Suspense,{fallback:ua(e),children:a}):a});function _a(e,t){let n=e[1];e.length=0,n?.(t)}function va({t:e}){let t=_(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{_a(n,!1),n.push(i,a),e(t),j.startTransition(r)}),Ot(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(jt(r.publicHref)!==jt(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Zn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function ya(){let e=_(),t=e.routesById[cn],n=ua(e,t),r=e.ssr?ca:j.Suspense,i=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(va,{t:j.useState()[1]}),(0,M.jsx)(r,{fallback:n,children:(0,M.jsx)(ba,{})})]});return e.options.InnerWrap?(0,M.jsx)(e.options.InnerWrap,{children:i}):i}function ba(){let e=_(),t=e._rendered,n=S(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;Ot(()=>{t[0]===n&&_a(t,!0)},[t,n]);let a=i?(0,M.jsx)(pa,{routeId:i}):null;return(0,M.jsx)(O.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,M.jsx)(si,{getResetKey:()=>r,onCatch:void 0,children:a})})}var xa=e=>({createMutableStore:Ai,createReadonlyStore:Ai,batch:Di}),Sa=e=>new Ca(e),Ca=class extends tr{constructor(e){super(e,xa)}};function wa({router:e,children:t,...n}){d(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,M.jsx)(b.Provider,{value:e,children:t});return e.options.Wrap?(0,M.jsx)(e.options.Wrap,{children:r}):r}function Ta({router:e,...t}){return(0,M.jsx)(wa,{router:e,...t,children:(0,M.jsx)(ya,{})})}function Ea(e){let t=_({warn:e?.router===void 0}),n=e?.router||t;return S(n.stores.__store,D(e,n))}var Da=ie(),B=a();function Oa(e){let t=(0,B.c)(6),{error:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,M.jsx)(`p`,{className:`text-lg font-semibold text-rot-text`,children:`Diese Ansicht ist abgestürzt`}),t[0]=r):r=t[0];let i=n instanceof Error?n.message:String(n),a;t[1]===i?a=t[2]:(a=(0,M.jsx)(`p`,{className:`text-[15px]`,children:i}),t[1]=i,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,M.jsx)(`button`,{type:`button`,onClick:ka,className:`h-11 rounded-xl border border-rot/40 bg-rot/10 px-5 text-sm font-semibold text-rot-text hover:bg-rot/[0.18]`,children:`Neu laden`}),t[3]=o):o=t[3];let s;return t[4]===a?s=t[5]:(s=(0,M.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-2xl border border-rot-rand bg-rot-grund p-6 text-rot-text`,children:[r,a,o]}),t[4]=a,t[5]=s),s}function ka(){return window.location.reload()}var Aa={name:`activity`,size:24,node:[[`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`}]]};Aa.node;var ja=r(Aa),Ma={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Ma.node;var Na=r(Ma),Pa={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};Pa.node;var Fa=r(Pa),Ia={name:`bird`,size:24,node:[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]};Ia.node;var La=r(Ia),Ra={name:`bot`,size:24,node:[[`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`}]]};Ra.node;var za=r(Ra),Ba={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};Ba.node;var Va=r(Ba),Ha={name:`brain-circuit`,size:24,node:[[`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:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`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:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]};Ha.node;var Ua=r(Ha),Wa={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};Wa.node;var Ga=r(Wa),Ka={name:`circle-alert`,size:24,node:[[`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`}]],aliases:[`alert-circle`]};Ka.node;var qa=r(Ka),Ja={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Ja.node;var Ya=r(Ja),Xa={name:`clapperboard`,size:24,node:[[`path`,{d:`m12.296 3.464 3.02 3.956`,key:`qash78`}],[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z`,key:`1h7j8b`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`4lm6w1`}],[`path`,{d:`m6.18 5.276 3.1 3.899`,key:`zjj9t3`}]]};Xa.node;var Za=r(Xa),Qa={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Qa.node;var $a=r(Qa),eo={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};eo.node;var to=r(eo),no={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};no.node;var ro=r(no),io={name:`database-backup`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 12a9 3 0 0 0 5 2.69`,key:`1ui2ym`}],[`path`,{d:`M21 9.3V5`,key:`6k6cib`}],[`path`,{d:`M3 5v14a9 3 0 0 0 6.47 2.88`,key:`i62tjy`}],[`path`,{d:`M12 12v4h4`,key:`1bxaet`}],[`path`,{d:`M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16`,key:`1f4ei9`}]]};io.node;var ao=r(io),oo={name:`external-link`,size:24,node:[[`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`}]]};oo.node;var so=r(oo),co={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};co.node;var lo=r(co),uo={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};uo.node;var fo=r(uo),po={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};po.node;var mo=r(po),ho={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};ho.node;var go=r(ho),_o={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};_o.node;var vo=r(_o),yo={name:`layers`,size:24,node:[[`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:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};yo.node;var bo=r(yo),xo={name:`layout-dashboard`,size:24,node:[[`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`}]]};xo.node;var So=r(xo),Co={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};Co.node;var wo=r(Co),To={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};To.node;var Eo=r(To),Do={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};Do.node;var Oo=r(Do),ko={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};ko.node;var Ao=r(ko),jo={name:`refresh-cw`,size:24,node:[[`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`}]]};jo.node;var Mo=r(jo),No={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};No.node;var Po=r(No),Fo={name:`route`,size:24,node:[[`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`}]]};Fo.node;var Io=r(Fo),Lo={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`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`}]]};Lo.node;var Ro=r(Lo),zo={name:`server`,size:24,node:[[`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`}]]};zo.node;var Bo=r(zo),Vo={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Vo.node;var Ho=r(Vo),V={name:`shield-check`,size:24,node:[[`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:`m9 12 2 2 4-4`,key:`dzmm74`}]]};V.node;var H=r(V),Uo={name:`shuffle`,size:24,node:[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]};Uo.node;var Wo=r(Uo),Go={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Go.node;var Ko=r(Go),qo={name:`workflow`,size:24,node:[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]};qo.node;var Jo=r(qo),Yo={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Yo.node;var Xo=r(Yo),Zo={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Zo.node;var Qo=r(Zo),$o=[`/api/instanz`,`/api/partner`,`/api/health`],es=(e,t)=>e===t||e.startsWith(`${t}/`)||e.startsWith(`${t}?`);function ts(e,t){return!e.startsWith(`/api/`)||$o.some(t=>es(e,t))||(es(e,`/api/homelab`)?`homelab`:`box`)===t?e:`/api/partner${e.slice(4)}`}var ns=null;function rs(){return ns??=fetch(`/api/instanz`,{headers:{Accept:`application/json`}}).then(e=>e.ok?e.json():Promise.reject(Error(String(e.status)))).then(e=>e.rolle===`homelab`?`homelab`:`box`).catch(()=>(ns=null,`box`)),ns}var is=class extends Error{status;detail;constructor(e,t){super(t),this.status=e,this.detail=t,this.name=`ApiFehler`}};function as(e,t){if(e&&typeof e==`object`&&`detail`in e){let t=e.detail;if(typeof t==`string`)return t;if(Array.isArray(t))return t.map(e=>e.msg??String(e)).join(`; `)}return`Die Box antwortet mit Fehler ${t}.`}async function U(e,t={}){let n=ts(e,await rs()),r;try{r=await fetch(n,{...t,headers:{"Content-Type":`application/json`,Accept:`application/json`,...t.headers}})}catch{throw new is(0,`MC2 ist nicht erreichbar. Läuft die Box?`)}let i=await r.text(),a=i?os(i):null;if(!r.ok)throw new is(r.status,as(a,r.status));if(typeof a==`string`)throw new is(r.status,`Die Box antwortet nicht mit Daten.`);return a}function os(e){try{return JSON.parse(e)}catch{return e}}var ss=(e,t)=>U(e,{method:`POST`,body:t===void 0?void 0:JSON.stringify(t)}),cs=100,ls=95,us=210,ds=240;function fs(e,t){let n=e*Math.PI/180;return[cs+t*Math.cos(n),ls-t*Math.sin(n)]}var ps=e=>Math.round(e*100)/100;function ms(e,t,n){let r=Math.max(0,Math.min(1,e)),i=Math.max(r,Math.min(1,t)),[a,o]=fs(us-ds*r,n),[s,c]=fs(us-ds*i,n),l=+((i-r)*ds>180);return`M ${ps(a)} ${ps(o)} A ${n} ${n} 0 ${l} 1 ${ps(s)} ${ps(c)}`}function hs(e){return e==null?`var(--text-3)`:e>=85?`var(--rot)`:e>=70?`var(--bernstein)`:`var(--box)`}function gs(e){if(!e.waechter_wach)return{art:`stumm`,oben:`Wächter`,mitte:`Schweigt`,unten:`Seit über 5 Minuten kein Prüflauf`};if(e.update_laeuft)return{art:`info`,oben:`Wartung`,mitte:`Update läuft`,unten:`Hinweise ruhen bis zum Ende`};if(e.anzahl===0)return{art:`ok`,oben:`Alles`,mitte:`In Ordnung`,unten:`Keine offenen Hinweise`};let t=`${e.anzahl} Hinweis${e.anzahl===1?``:`e`}`;return e.stufe===`rot`?{art:`rot`,oben:`Störung`,mitte:t,unten:`Drücken zum Ansehen`}:{art:`gelb`,oben:`Achtung`,mitte:t,unten:`Drücken zum Ansehen`}}function _s(e,t){let n=`„${e.titel}“:`;switch(t.id){case`protokoll`:return null;case`neustart`:return e.id.startsWith(`timer:`)?{titel:`${t.label}?`,text:`${n} Der Dienst läuft sofort noch einmal.`,knopf:t.label}:{titel:`${t.label}?`,text:`${n} Der Dienst wird ${/^starten/i.test(t.label)?`gestartet`:`neu gestartet`} und ist dabei kurz nicht erreichbar.`,knopf:t.label};case`job-wiederholen`:return{titel:`Job erneut ausführen?`,text:`${n} Hermes führt den Job sofort noch einmal aus, mit allem, was er sonst auch tut — etwa Nachrichten verschicken.`,knopf:t.label};case`freigeben`:return{titel:`Update freigeben?`,text:`${n} Nach dem Freigeben versucht der nächste Sonntags-Lauf das Update wieder.`,knopf:t.label};default:return{titel:`${t.label}?`,text:`${n} ${t.label}.`,knopf:t.label}}}function vs(e){return e?.status===`busy`?e.running?`Es läuft schon ein Update („${e.running}“). Warte, bis es fertig ist.`:`Es läuft schon ein Update. Warte, bis es fertig ist.`:e?.detail||e?.err||e?.error||e?.text||`Das hat nicht geklappt.`}var ys=e=>e.state===`running`||e.state===`queued`;function bs(e){let t=e.aliases.map(e=>e.toLowerCase());return t.includes(`hermes`)||t.includes(`fast`)?`hirn`:t.includes(`coder`)?`coder`:null}var xs={neu:`Neu`,wartet:`Wartet`,getestet:`Gemessen`,bestanden:`Bestanden`,durchgefallen:`Durchgefallen`,uebernommen:`Übernommen`,verworfen:`Verworfen`};function Ss(e,t=``){if(e==null||e===``)return`–`;let n=typeof e==`number`?e.toLocaleString(`de-DE`,{maximumFractionDigits:+(e<10)}):String(e);return t?`${n} ${t}`:n}var Cs=[],ws=1,Ts=new Set,Es=()=>Ts.forEach(e=>e());function Ds(e,t){let n=ws++;Cs=[...Cs,{id:n,art:e,text:t}].slice(-4),Es(),e!==`fehler`&&window.setTimeout(()=>Os(n),6e3)}function Os(e){Cs=Cs.filter(t=>t.id!==e),Es()}var ks=()=>(0,j.useSyncExternalStore)(As,js);function As(e){return Ts.add(e),()=>{Ts.delete(e)}}function js(){return Cs}var Ms=2e3,Ns=3e4,Ps=2e4,Fs=`verbinde`,Is=null,Ls=new Set,Rs=()=>Ls.forEach(e=>e());function zs(e){return Ls.add(e),()=>{Ls.delete(e)}}var Bs=()=>Fs===`live`,Vs=()=>(0,j.useSyncExternalStore)(zs,Gs),Hs=()=>(0,j.useSyncExternalStore)(zs,Ks);function Us(e){e!==Fs&&(Fs=e,Rs())}function Ws(){let e=oe();(0,j.useEffect)(()=>{let t=null,n,r,i=Date.now(),a=Ms,o=!1;function s(){o||(window.clearTimeout(n),n=window.setTimeout(l,a),a=Math.min(a*2,Ns))}function c(){i=Date.now(),window.clearTimeout(r),r=window.setTimeout(()=>{t?.close(),Us(`getrennt`),s()},Ps)}function l(){window.clearTimeout(n),window.clearTimeout(r),t?.close();let i=new EventSource(`/api/stream`);t=i,i.onopen=()=>{a=Ms,Us(`live`),c(),e.invalidateQueries()},i.onerror=()=>{Us(`getrennt`),i.readyState===EventSource.CLOSED&&(window.clearTimeout(r),s())},i.addEventListener(`invalidate`,t=>{c();try{let n=JSON.parse(t.data)?.keys??[];for(let t of n)e.invalidateQueries({queryKey:[t]})}catch{}}),i.addEventListener(`metrik`,e=>{c();try{Is=JSON.parse(e.data),Rs()}catch{}})}let u=()=>{o||document.visibilityState!==`visible`||(t?.readyState===EventSource.CLOSED||Date.now()-i>5e3)&&(a=Ms,l())};return l(),window.addEventListener(`online`,u),document.addEventListener(`visibilitychange`,u),()=>{o=!0,window.clearTimeout(n),window.clearTimeout(r),window.removeEventListener(`online`,u),document.removeEventListener(`visibilitychange`,u),t?.close(),Us(`getrennt`)}},[e])}function Gs(){return Fs}function Ks(){return Is}var qs=`Europe/Berlin`,Js=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,timeZone:qs}),Ys=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,timeZone:qs}),Xs=new Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,timeZone:qs}),Zs=new Intl.DateTimeFormat(`en-CA`,{timeZone:qs});function Qs(e){return Zs.format(e)}function $s(e,t=new Date){let n=new Date(e);if(Number.isNaN(n.getTime()))return`–`;let r=Qs(t),i=Qs(new Date(t.getTime()-864e5)),a=Qs(new Date(t.getTime()+864e5)),o=Qs(n),s=Js.format(n);return o===r?`HEUTE ${s}`:o===i?`GESTERN ${s}`:o===a?`MORGEN ${s}`:Math.abs(n.getTime()-t.getTime())<5616e5?`${Ys.format(n).replace(`.`,``).toUpperCase()} ${s}`:`${Xs.format(n)} ${s}`}function ec(e,t=new Date){let n=new Date(e*1e3);return Qs(n)===Qs(t)?`seit heute ${Js.format(n)}`:`seit ${Xs.format(n)}, ${Js.format(n)}`}function tc(e,t=Date.now()){let n=Math.max(0,Math.round(t/1e3-e));if(n<60)return`vor ${n} s`;if(n<3600)return`vor ${Math.round(n/60)} min`;if(n<86400)return`vor ${Math.round(n/3600)} h`;let r=Math.round(n/86400);return`vor ${r} ${r===1?`Tag`:`Tagen`}`}function nc(e){return e==null||e<0?null:[Math.floor(e/86400),Math.floor(e%86400/3600)]}var rc=e=>e==null?null:e/1024**3;function ic(e,t=0){let n=rc(e);return n==null?`–`:n>=1e3?`${(n/1024).toFixed(1).replace(`.`,`,`)} TB`:`${n.toFixed(t).replace(`.`,`,`)} GB`}var ac=e=>e.toLocaleString(`de-DE`),oc=e=>()=>Bs()?e*5:e;function sc(e,t){let n=e.getQueryData([`jobs`])?.jobs??[],r=t.filter(e=>!ys(e)&&n.some(t=>t.id===e.id&&ys(t)));if(r.length===0)return;let i=new Set([`start`]);for(let e of r){let t=e.group===`download`||/^download\s/i.test(e.label);for(let e of t?[`models`,`aufraeumen`]:[`update-details`,`updates-verlauf`,`sicherungen`])i.add(e)}for(let t of i)e.invalidateQueries({queryKey:[t]})}var cc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`start`],queryFn:ll,refetchInterval:ul},e[0]=t):t=e[0],L(t)},lc=()=>{let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[`models`],e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n={queryKey:t,queryFn:dl,refetchInterval:oc(3e4)},e[1]=n):n=e[1],L(n)},uc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`nutzung`],queryFn:fl,refetchInterval:6e5},e[0]=t):t=e[0],L(t)},dc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`radar`],queryFn:pl,retry:!1,refetchInterval:3e5},e[0]=t):t=e[0],L(t)},fc=()=>{let e=(0,B.c)(3),t=oe(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`jobs`],e[0]=n):n=e[0];let r;return e[1]===t?r=e[2]:(r={queryKey:n,queryFn:async()=>{let e=await U(`/api/jobs`);return sc(t,e.jobs),e},refetchInterval:ml},e[1]=t,e[2]=r),L(r)},pc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`sicherungen`],queryFn:hl},e[0]=t):t=e[0],L(t)},mc=e=>{let t=(0,B.c)(4),n;t[0]===e?n=t[1]:(n=e.map(gl),t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r={queries:n},t[2]=n,t[3]=r),wt(r)},hc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`updates-verlauf`],queryFn:_l},e[0]=t):t=e[0],L(t)},gc=e=>{let t=(0,B.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):(n=[`protokoll`,e],r=()=>U(`/api/maintenance/logs?service=${encodeURIComponent(e??``)}&lines=200`),t[0]=e,t[1]=n,t[2]=r);let i=!!e,a;return t[3]!==n||t[4]!==r||t[5]!==i?(a={queryKey:n,queryFn:r,enabled:i},t[3]=n,t[4]=r,t[5]=i,t[6]=a):a=t[6],L(a)},_c=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`dienste`],queryFn:W,refetchInterval:1e4},e[0]=t):t=e[0],L(t)};function vc(e,t){let n=(0,B.c)(6),r=oe(),i;n[0]!==t||n[1]!==r?(i=(e,n)=>{let i=e;i&&i.ok===!1?Ds(`fehler`,t.fehler?.(n,i)??vs(i)):t.erfolg(n,e)&&Ds(`erfolg`,t.erfolg(n,e));for(let e of t.neuLaden)r.invalidateQueries({queryKey:[e]})},n[0]=t,n[1]=r,n[2]=i):i=n[2];let a;return n[3]!==e||n[4]!==i?(a={mutationFn:e,onSuccess:i,onError:yc},n[3]=e,n[4]=i,n[5]=a):a=n[5],Et(a)}function yc(e){return Ds(`fehler`,e.message)}var bc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:yl,neuLaden:[`start`]},e[0]=t):t=e[0],vc(vl,t)},xc={alle:`/api/maintenance/update-all`,pruefen:`/api/maintenance/check-updates`,os:`/api/maintenance/os-update`,engine:`/api/maintenance/engine-update`,swap:`/api/maintenance/swap-update`,hermes:`/api/maintenance/hermes-update`},Sc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:xl,neuLaden:[`jobs`,`start`]},e[0]=t):t=e[0],vc(bl,t)},Cc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Cl,fehler:wl,neuLaden:[`jobs`]},e[0]=t):t=e[0],vc(Sl,t)},wc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:El,neuLaden:[`jobs`]},e[0]=t):t=e[0],vc(Tl,t)},Tc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Ol,neuLaden:[`jobs`,`models`]},e[0]=t):t=e[0],vc(Dl,t)},Ec=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`aufraeumen`],queryFn:kl,staleTime:6e4},e[0]=t):t=e[0],L(t)},Dc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:jl,neuLaden:[`aufraeumen`,`models`,`start`]},e[0]=t):t=e[0],vc(Al,t)},Oc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Nl,neuLaden:[`start`]},e[0]=t):t=e[0],vc(Ml,t)},kc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Fl,fehler:Il,neuLaden:[`sicherungen`,`start`]},e[0]=t):t=e[0],vc(Pl,t)},Ac=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Rl,neuLaden:[`sicherungen`]},e[0]=t):t=e[0],vc(Ll,t)},jc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Bl,neuLaden:[`models`,`start`]},e[0]=t):t=e[0],vc(zl,t)},Mc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Hl,neuLaden:[`radar`,`models`,`start`]},e[0]=t):t=e[0],vc(Vl,t)},Nc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Wl,neuLaden:[`radar`,`jobs`]},e[0]=t):t=e[0],vc(Ul,t)},Pc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Kl,neuLaden:[`jobs`]},e[0]=t):t=e[0],vc(Gl,t)},Fc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`instanz`],queryFn:ql,staleTime:1/0},e[0]=t):t=e[0],L(t)},Ic=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`partner`],queryFn:Jl,refetchInterval:3e4},e[0]=t):t=e[0],L(t)},Lc=()=>{let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[`ziele-box`],e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n={queryKey:t,queryFn:Yl,refetchInterval:oc(3e4)},e[1]=n):n=e[1],L(n)},Rc=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:Xl,enabled:e,refetchInterval:3e4},t[1]=e,t[2]=r),L(r)},zc=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-laeufe`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:Zl,enabled:e,refetchInterval:$l},t[1]=e,t[2]=r),L(r)},Bc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:tu,neuLaden:[`homelab`,`homelab-laeufe`,`ziele-box`,`jobs`,`start`]},e[0]=t):t=e[0],vc(eu,t)},Vc=e=>{let t=(0,B.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-hinweise`],t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=oc(6e4),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i={queryKey:n,queryFn:nu,enabled:e,refetchInterval:r},t[2]=e,t[3]=i),L(i)},Hc=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`einstellungen`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:ru,enabled:e,retry:!1},t[1]=e,t[2]=r),L(r)},Uc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:G,neuLaden:[`einstellungen`,`start`]},e[0]=t):t=e[0],vc(iu,t)},Wc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:ou,neuLaden:[`einstellungen`,`start`,`radar`]},e[0]=t):t=e[0],vc(au,t)},Gc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:cu,neuLaden:[]},e[0]=t):t=e[0],vc(su,t)},Kc=(e,t)=>{let n=(0,B.c)(9),r;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[`stand`,`hier`],n[0]=r):r=n[0];let i;n[1]===e?i=n[2]:(i={queryKey:r,queryFn:lu,enabled:e},n[1]=e,n[2]=i);let a;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=[`stand`,`partner`],n[3]=a):a=n[3];let o=e&&t,s;n[4]===o?s=n[5]:(s={queryKey:a,queryFn:uu,enabled:o,retry:!1},n[4]=o,n[5]=s);let c;return n[6]!==i||n[7]!==s?(c={queries:[i,s]},n[6]=i,n[7]=s,n[8]=c):c=n[8],wt(c)},qc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`altreste`],queryFn:du,staleTime:6e4},e[0]=t):t=e[0],L(t)},Jc=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:pu,neuLaden:[`altreste`,`start`]},e[0]=t):t=e[0],vc(fu,t)},Yc={"1h":6e4,"24h":3e5,"7d":9e5},Xc=(e,t)=>{let n=(0,B.c)(8),r=t===void 0||t,i,a;n[0]===e?(i=n[1],a=n[2]):(i=[`messwerte`,`box`,e],a=()=>U(`/api/messwerte?zeitraum=${e}`),n[0]=e,n[1]=i,n[2]=a);let o=Yc[e],s;return n[3]!==r||n[4]!==i||n[5]!==a||n[6]!==o?(s={queryKey:i,queryFn:a,enabled:r,refetchInterval:o,placeholderData:mu,retry:!1},n[3]=r,n[4]=i,n[5]=a,n[6]=o,n[7]=s):s=n[7],L(s)},Zc=(e,t)=>{let n=(0,B.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):(r=[`messwerte`,`homelab`,e],i=()=>U(`/api/homelab/messwerte?zeitraum=${e}`),n[0]=e,n[1]=r,n[2]=i);let a=Yc[e],o;return n[3]!==t||n[4]!==r||n[5]!==i||n[6]!==a?(o={queryKey:r,queryFn:i,enabled:t,refetchInterval:a,placeholderData:hu,retry:!1},n[3]=t,n[4]=r,n[5]=i,n[6]=a,n[7]=o):o=n[7],L(o)},Qc=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-sammelplan`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:gu,enabled:e,retry:!1},t[1]=e,t[2]=r),L(r)},$c=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-sammellauf`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:_u,enabled:e,refetchInterval:vu,retry:!1},t[1]=e,t[2]=r),L(r)},el=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:bu,neuLaden:[`homelab-sammellauf`,`homelab-laeufe`,`homelab`]},e[0]=t):t=e[0],vc(yu,t)},tl=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Su,neuLaden:[`homelab-sammellauf`]},e[0]=t):t=e[0],vc(xu,t)},nl=(e,t)=>{let n=(0,B.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):(r=[`homelab-protokoll`,t],i=()=>U(`/api/homelab/protokoll?grenze=300&berichte=${+!!t}`),n[0]=t,n[1]=r,n[2]=i);let a;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=oc(3e4),n[3]=a):a=n[3];let o;return n[4]!==e||n[5]!==r||n[6]!==i?(o={queryKey:r,queryFn:i,enabled:e,refetchInterval:a,retry:!1},n[4]=e,n[5]=r,n[6]=i,n[7]=o):o=n[7],L(o)},rl=e=>{let t=(0,B.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-speicher`],t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=oc(6e4),t[1]=r):r=t[1];let i;return t[2]===e?i=t[3]:(i={queryKey:n,queryFn:Cu,enabled:e,refetchInterval:r,retry:!1},t[2]=e,t[3]=i),L(i)},il=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab`,`snapshots`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:wu,enabled:e,refetchInterval:Eu,retry:!1},t[1]=e,t[2]=r),L(r)},al=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Ou,neuLaden:[`homelab`,`homelab-laeufe`]},e[0]=t):t=e[0],vc(Du,t)},ol=e=>{let t=(0,B.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[`homelab-einstellungen`],t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r={queryKey:n,queryFn:ku,enabled:e,retry:!1},t[1]=e,t[2]=r),L(r)},sl=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:ju,neuLaden:[`homelab-einstellungen`,`homelab`]},e[0]=t):t=e[0],vc(Au,t)},cl=()=>{let e=(0,B.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={erfolg:Nu,neuLaden:[`homelab-einstellungen`,`homelab`]},e[0]=t):t=e[0],vc(Mu,t)};function ll(){return U(`/api/start`)}function ul(e){return e.state.data&&!e.state.data.updates.gelesen?4e3:oc(2e4)()}function dl(){return U(`/api/models`)}function fl(){return U(`/api/modelle/nutzung`)}function pl(){return U(`/api/radar`)}function ml(e){return e.state.data?.jobs.some(ys)?2e3:oc(3e4)()}function hl(){return U(`/api/zeitmaschine`)}function gl(e){return{queryKey:[`update-details`,e],queryFn:()=>U(`/api/maintenance/update-details?kind=${encodeURIComponent(e)}`),staleTime:6e5}}function _l(){return U(`/api/updates/verlauf`)}function W(){return U(`/api/system/services`)}function vl(e){let{hinweis:t,aktion:n}=e;return ss(`/api/hinweise/${encodeURIComponent(t)}/aktion/${n}`)}function yl(e,t){return e.aktion===`freigeben`&&t.text?t.text:`${e.label}: erledigt. Der Wächter prüft in einer Minute nach.`}function bl(e){return ss(xc[e])}function xl(e){return e===`pruefen`?`Die Suche nach Neuem läuft. Den Fortschritt siehst du unten bei den Aufträgen.`:`Das Update läuft. Den Fortschritt siehst du unten bei den Aufträgen.`}function Sl(e){let{id:t}=e;return ss(`/api/jobs/${encodeURIComponent(t)}/cancel`)}function Cl(e){return`${e.titel}: wird abgebrochen.`}function wl(e){return`${e.titel} lief schon nicht mehr.`}function Tl(e){return ss(`/api/jobs/${encodeURIComponent(e)}/quittieren`)}function El(){return``}function Dl(e){let{repo:t,quant:n,rolle:r}=e;return ss(`/api/models/install`,{repo:t,quant:n,role:r})}function Ol(e,t){return`${e.repo} (${e.quant}) wird heruntergeladen${t.total_bytes?`, ${ic(t.total_bytes,1)}`:``}. Den Fortschritt siehst du unter Aufträge.`}function kl(){return U(`/api/modelle/aufraeumen`)}function Al(e){return ss(`/api/modelle/aufraeumen/loeschen`,{art:e.art,name:e.name})}function jl(e,t){return t.text??`Gelöscht.`}function Ml(e){return ss(`/api/updates/festgehalten/${encodeURIComponent(e)}/freigeben`)}function Nl(e,t){return t.text??`Freigegeben.`}function Pl(){return ss(`/api/system/backup`)}function Fl(e,t){return t.size_mb==null?`Sicherung erstellt.`:`Sicherung erstellt (${t.size_mb.toLocaleString(`de-DE`)} MB).`}function Il(e,t){return`Die Sicherung ging nicht: ${vs(t)}`}function Ll(e){return ss(`/api/zeitmaschine/restore`,{file:e})}function Rl(){return`Zurückspielen läuft. Die Dienste starten gleich neu.`}function zl(e){return ss(`/api/models/${encodeURIComponent(e)}/load`)}function Bl(e){return`${e} wird geladen.`}function Vl(e){let{id:t,aktion:n}=e;return ss(`/api/radar/${encodeURIComponent(t)}/${n}`)}function Hl(e){return e.aktion===`uebernehmen`?`${e.name} übernommen.`:`${e.name} verworfen.`}function Ul(e){let{id:t}=e;return ss(`/api/radar/${encodeURIComponent(t)}/testen`)}function Wl(e,t){return t.text??`Der Test von ${e.name} läuft.`}function Gl(){return ss(`/api/radar/suche`)}function Kl(e,t){return t.text??`Das Radar sucht jetzt nach neuen Modellen.`}function ql(){return U(`/api/instanz`)}function Jl(){return U(`/api/partner`)}function Yl(){return U(`/api/ziele`)}function Xl(){return U(`/api/homelab/ziele`)}function Zl(){return U(`/api/homelab/laeufe`)}function Ql(e){return e.status===`laeuft`}function $l(e){return e.state.data?.laeufe.some(Ql)?3e3:3e4}function eu(e){return U(e.pfad,{method:e.methode})}function tu(e){return`${e.label}: gestartet. Das Ergebnis kommt als Meldung.`}function nu(){return U(`/api/homelab/hinweise`)}function ru(){return U(`/api/einstellungen`)}function iu(e){return ss(`/api/einstellungen/update-fenster`,e)}function G(e,t){return t.text??`Gespeichert.`}function au(e){return ss(`/api/einstellungen/radar`,{an:e})}function ou(e,t){return t.text??`Geschaltet.`}function su(e){return ss(e===`homelab`?`/api/homelab/einstellungen/telegram-test`:`/api/einstellungen/telegram-test`)}function cu(e,t){return t.text??`Die Testmeldung ist raus.`}function lu(){return U(`/api/instanz`)}function uu(){return U(`/api/partner/instanz`)}function du(){return U(`/api/aufraeumen/altreste`)}function fu(e){return ss(`/api/aufraeumen/altreste/loeschen`,{id:e.id})}function pu(e,t){return t.text??`Gelöscht.`}function mu(e){return e}function hu(e){return e}function gu(){return U(`/api/homelab/alle/plan`)}function _u(){return U(`/api/homelab/sammellauf`)}function vu(e){return e.state.data?.sammellauf?.status===`laeuft`?5e3:6e4}function yu(){return ss(`/api/homelab/alle`)}function bu(){return`Alle aktualisieren: gestartet. Die Schritte laufen nacheinander; das Ergebnis kommt als Meldung.`}function xu(e){return ss(`/api/homelab/sammellauf/${encodeURIComponent(e)}/quittieren`)}function Su(){return``}function Cu(){return U(`/api/homelab/speicher`)}function wu(){return U(`/api/homelab/snapshots`)}function Tu(e){return e.laeuft}function Eu(e){return e.state.data?.geraete.some(Tu)?3e3:3e4}function Du(e){return U(e.pfad,{method:e.methode})}function Ou(e){return`${e.label}: gestartet. Das Ergebnis steht gleich beim Gerät.`}function ku(){return U(`/api/homelab/einstellungen`)}function Au(e){return e===null?U(`/api/homelab/einstellungen/arcane-schluessel`,{method:`DELETE`}):ss(`/api/homelab/einstellungen/arcane-schluessel`,{schluessel:e})}function ju(e,t){return t.text??(e===null?`Arcane-Schlüssel entfernt.`:`Arcane-Schlüssel gespeichert.`)}function Mu(e){return ss(`/api/homelab/einstellungen/arcane-echt`,{an:e})}function Nu(e){return e?`Docker-Updates über Arcane laufen jetzt echt.`:`Docker-Updates über Arcane sind wieder nur ein Probelauf.`}var Pu={"ki-box":`KI-Box`,"proxmox-host":`Proxmox-Host`,container:`Container`,vm:`VM`};function Fu(e){let t=e.id.match(/-(\d+)$/)?.[1],n=Pu[e.art]??e.art;return t?`${n} ${t}`:n}var Iu={"Proxmox-Host":`Proxmox`,"AdGuard Home":`AdGuard`,"PVE Scripts Local":`PVE Scripts`,"Proxmox Backup Server":`PBS`,"Arcane (Docker)":`Arcane`},Lu=e=>Iu[e.name]??e.name,Ru=new Set([`app`,`arcane`]),zu=e=>e.bausteine.find(e=>Ru.has(e.id))??null,Bu=e=>e.bausteine.find(e=>!Ru.has(e.id))??null;function Vu(e){let t=e.flatMap(e=>e.bausteine.filter(e=>e.zustand===`neu`).map(t=>({ziel:e,baustein:t})));return[...t.filter(e=>e.baustein.aktion),...t.filter(e=>!e.baustein.aktion)]}function Hu(e){let t=e.bausteine.filter(e=>e.zustand===`neu`);return t.some(e=>e.aktion)?0:t.length>0?1:e.bausteine.some(e=>e.zustand===`unbekannt`)?2:3}function Uu(e){let t=e.rueckweg_art??Wu(e.rueckweg);return t===`snapshot`?`Snapshot vorher, bei Rot zurück`:t===`sicherung`?`Sicherung vorher, bei Rot zurück`:e.art===`proxmox-host`?`Kein Rückweg, Neustart getrennt`:`Kein automatischer Rückweg`}function Wu(e){let t=(e??``).toLowerCase();return t.startsWith(`snapshot vor`)?`snapshot`:t.startsWith(`sicherung`)?`sicherung`:`keiner`}var Gu=e=>Ru.has(e.id),Ku=e=>e.replace(/^Image vom /,``);function qu(e){return Gu(e)&&e.verfuegbar?e.verfuegbar:e.kurz||e.verfuegbar||`neu`}function Ju(e){let t=e.platte;return t&&t.gesamt>0?t.belegt/t.gesamt:null}function Yu(e,t){let n=Lu(e),r=Ju(e);if(e.erreichbar===!1)return{id:e.id,label:n,zustand:`fehler`,wert:`antwortet nicht`};if(r!==null&&r>=.9)return{id:e.id,label:n,zustand:`fehler`,wert:`Platte voll`};if(t)return{id:e.id,label:n,zustand:`info`,wert:`Update läuft`};if(r!==null&&r>=.8)return{id:e.id,label:n,zustand:`warn`,wert:`Platte ${Math.round(r*100)} %`};let i=e.bausteine.filter(e=>e.zustand===`neu`);if(i.length>0){let t=i.find(e=>Ru.has(e.id))??i[0];return{id:e.id,label:n,zustand:`info`,wert:Ru.has(t.id)&&t.verfuegbar?`→ ${t.verfuegbar}`:qu(t)}}let a=zu(e);return{id:e.id,label:n,zustand:`ok`,wert:a?.installiert?Ku(a.installiert):`aktuell`}}var Xu=e=>`${e} Hinweis${e===1?``:`e`}`;function Zu(e,t,n,r){let i=e.ziele.filter(e=>e.erreichbar===!1);if(i.length>0)return{art:`rot`,oben:`Störung`,mitte:i.length===1?`1 Gerät stumm`:`${i.length} Geräte stumm`,unten:i.map(Lu).join(`, `),ziel:`geraete`};if(t.some(e=>e.stufe===`rot`))return{art:`rot`,oben:`Störung`,mitte:Xu(t.length),unten:`Drücken zum Ansehen`,ziel:`hinweise`};if(!e.ausfuehrer.verbunden)return{art:`gelb`,oben:`Achtung`,mitte:`Ausführer stumm`,unten:`Die Geräte zeigen den letzten Stand`,ziel:null};if(t.length>0)return{art:`gelb`,oben:`Achtung`,mitte:Xu(t.length),unten:`Drücken zum Ansehen`,ziel:`hinweise`};if(n>0)return{art:`info`,oben:`Wartung`,mitte:`Update läuft`,unten:`Das Ergebnis kommt als Meldung`,ziel:`updates`};let a=Vu(e.ziele).filter(e=>e.baustein.aktion).length;return a>0?{art:`info`,oben:`Homelab`,mitte:`${a} Update${a===1?``:`s`}`,unten:`Drücken zum Ansehen`,ziel:`updates`}:{art:`ok`,oben:`Homelab`,mitte:`Alles aktuell`,unten:r?`Stand ${r}`:`Keine offenen Updates`,ziel:null}}function Qu(e){return e?.match(/vom (\d{2}\.\d{2}\.\d{4})/)?.[1]??null}var $u=[{id:`box`,name:`KI-Box`},{id:`homelab`,name:`Homelab`}],K=[{to:`/`,label:`Übersicht`,Icon:wo,ort:`uebersicht`},{to:`/box`,label:`Cockpit`,Icon:fo,ort:`box`},{to:`/box/updates`,label:`Updates`,Icon:Mo,ort:`box`,zaehlt:!0},{to:`/box/modelle`,label:`Modelle`,Icon:ro,ort:`box`},{to:`/box/monitoring`,label:`Monitoring`,Icon:ja,ort:`box`},{to:`/box/dienste`,label:`Dienste und Protokolle`,Icon:Ro,ort:`box`},{to:`/homelab`,label:`Cockpit`,Icon:fo,ort:`homelab`},{to:`/homelab/updates`,label:`Updates`,Icon:Mo,ort:`homelab`,zaehlt:!0},{to:`/homelab/snapshots`,label:`Snapshots`,Icon:Po,ort:`homelab`},{to:`/homelab/monitoring`,label:`Monitoring`,Icon:ja,ort:`homelab`},{to:`/homelab/protokoll`,label:`Protokoll`,Icon:Ro,ort:`homelab`},{to:`/einstellungen`,label:`Einstellungen`,Icon:Ho,ort:`system`}],q={uebersicht:`Auf einen Blick`,box:`KI-Box`,homelab:`Homelab`,system:`Beide Instanzen`};function J(){let e=(0,B.c)(2),t=Ea({select:Y}).replace(/\/+$/,``)||`/`,n;return e[0]===t?n=e[1]:(n=K.find(e=>e.to===t)??K[0],e[0]=t,e[1]=n),n}function Y(e){return e.location.pathname}function X(){let e=(0,B.c)(19),t=Fc(),n=Ic(),r=Vs(),i=t.data?.rolle===`homelab`?`homelab`:`box`,a=r===`live`?`online`:r,o=n.data,s=o?o.eingerichtet?o.erreichbar?`online`:`getrennt`:`fehlt`:`verbinde`,c;e[0]!==a||e[1]!==s||e[2]!==i?(c=i===`box`?{box:a,homelab:s}:{box:s,homelab:a},e[0]=a,e[1]=s,e[2]=i,e[3]=c):c=e[3];let l=c,u=Lc(),d=Rc(l.homelab===`online`),f;e[4]===u.data?.ziele?f=e[5]:(f=u.data?.ziele??[],e[4]=u.data?.ziele,e[5]=f);let p;e[6]===f?p=e[7]:(p=f.reduce(td,0),e[6]=f,e[7]=p);let m=p,h;e[8]===d.data?.ziele?h=e[9]:(h=Vu(d.data?.ziele??[]).filter(ed),e[8]=d.data?.ziele,e[9]=h);let g=h.length,_;e[10]!==m||e[11]!==l.box?(_={verbindung:l.box,updates:m},e[10]=m,e[11]=l.box,e[12]=_):_=e[12];let v;e[13]!==g||e[14]!==l.homelab?(v={verbindung:l.homelab,updates:g},e[13]=g,e[14]=l.homelab,e[15]=v):v=e[15];let y;return e[16]!==_||e[17]!==v?(y={box:_,homelab:v},e[16]=_,e[17]=v,e[18]=y):y=e[18],y}function ed(e){return e.baustein.aktion}function td(e,t){return e+t.bausteine.filter(nd).length}function nd(e){return e.zustand===`neu`&&e.aktion}var rd={erfolg:`border-gruen-rand bg-gruen-grund text-gruen-text`,fehler:`border-rot-rand bg-rot-grund text-rot-text`,info:`border-cyan-rand bg-cyan-grund text-cyan-text`};function id(){let e=(0,B.c)(4),t=ks(),n;e[0]===t?n=e[1]:(n=t.map(ad),e[0]=t,e[1]=n);let r;return e[2]===n?r=e[3]:(r=(0,M.jsx)(`div`,{"aria-live":`polite`,className:`pointer-events-none fixed right-4 bottom-24 left-4 z-50 flex flex-col items-end gap-2 md:left-auto md:w-[420px] lg:bottom-6`,children:n}),e[2]=n,e[3]=r),r}function ad(e){return(0,M.jsxs)(`div`,{role:e.art===`fehler`?`alert`:`status`,className:o(`pointer-events-auto flex w-full items-start gap-3 rounded-xl border px-4 py-3 text-[15px] shadow-lg`,rd[e.art]),children:[(0,M.jsx)(`span`,{className:`min-w-0 flex-1`,children:e.text}),(0,M.jsx)(`button`,{type:`button`,onClick:()=>Os(e.id),"aria-label":`Meldung schließen`,className:`-m-2 p-2 opacity-70 hover:opacity-100`,children:(0,M.jsx)(Xo,{className:`size-4`})})]},e.id)}var od={online:{punkt:`bg-gruen shadow-[0_0_8px_var(--gruen)]`,text:`online`},verbinde:{punkt:`bg-bernstein`,text:`verbinde`},getrennt:{punkt:`bg-rot shadow-[0_0_8px_var(--rot)]`,text:`getrennt`},fehlt:{punkt:`bg-text-3`,text:`nicht eingerichtet`}},sd={uebersicht:`data-[status=active]:from-bernstein/[0.16] before:bg-bernstein before:shadow-[0_0_12px_var(--bernstein)] data-[status=active]:[&>svg]:text-bernstein`,box:`data-[status=active]:from-box/[0.2] before:bg-box before:shadow-[0_0_12px_var(--box)] data-[status=active]:[&>svg]:text-box`,homelab:`data-[status=active]:from-lab/[0.2] before:bg-lab before:shadow-[0_0_12px_var(--lab)] data-[status=active]:[&>svg]:text-lab`,system:`data-[status=active]:from-white/[0.08] before:bg-text-2 data-[status=active]:[&>svg]:text-foreground`},cd={box:{text:`text-box-text`,kachel:`from-box/30 to-box/[0.05] ring-box/35 text-box`,Icon:Ua},homelab:{text:`text-lab-text`,kachel:`from-lab/30 to-lab/[0.05] ring-lab/35 text-lab`,Icon:Bo}},ld=`group relative flex h-10 items-center gap-3 rounded-xl pr-3 pl-3.5 text-[14.5px] text-text-2 transition-colors hover:bg-white/[0.045] hover:text-foreground bg-gradient-to-r to-transparent data-[status=active]:text-foreground before:absolute before:top-2.5 before:bottom-2.5 before:left-0 before:w-[3px] before:rounded-full before:opacity-0 before:transition-opacity data-[status=active]:before:opacity-100`;function ud(){let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,M.jsxs)(`span`,{className:`relative shrink-0`,children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:`absolute inset-1 rounded-xl bg-bernstein/35 blur-xl`}),(0,M.jsx)(`img`,{src:`/favicon.svg`,alt:``,width:40,height:40,className:`relative size-10`})]}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,M.jsxs)(`div`,{className:`flex items-center gap-3 px-1.5`,children:[t,(0,M.jsxs)(`span`,{className:`flex flex-col leading-none`,children:[(0,M.jsx)(`span`,{className:`text-[19px] font-semibold tracking-[0.01em]`,children:`Homelab`}),(0,M.jsx)(`span`,{className:`etikett mt-1.5 text-[10.5px] tracking-[0.32em] text-text-3`,children:`Orchestrator`})]})]}),e[1]=n):n=e[1],n}function dd(e){let t=(0,B.c)(16),{s:n,zahl:r,onGewaehlt:i}=e,a=n.to,s=sd[n.ort],c;t[0]===s?c=t[1]:(c=o(ld,s),t[0]=s,t[1]=c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l={exact:!0},t[2]=l):l=t[2];let u;t[3]===n.Icon?u=t[4]:(u=(0,M.jsx)(n.Icon,{className:`size-[18px] shrink-0 text-text-3 transition-colors group-hover:text-text-2`,"aria-hidden":!0}),t[3]=n.Icon,t[4]=u);let d;t[5]===n.label?d=t[6]:(d=(0,M.jsx)(`span`,{className:`flex-1`,children:n.label}),t[5]=n.label,t[6]=d);let f;t[7]===r?f=t[8]:(f=!!r&&(0,M.jsxs)(`span`,{className:`ziffern rounded-full bg-cyan/12 px-2 text-[11.5px] leading-5 font-medium text-cyan-text ring-1 ring-cyan/30 ring-inset`,children:[r,(0,M.jsxs)(`span`,{className:`sr-only`,children:[` `,r===1?`Update`:`Updates`,` bereit`]})]}),t[7]=r,t[8]=f);let p;return t[9]!==i||t[10]!==n.to||t[11]!==c||t[12]!==u||t[13]!==d||t[14]!==f?(p=(0,M.jsxs)(ea,{to:a,onClick:i,className:c,activeOptions:l,children:[u,d,f]}),t[9]=i,t[10]=n.to,t[11]=c,t[12]=u,t[13]=d,t[14]=f,t[15]=p):p=t[15],p}function fd(e){let t=(0,B.c)(14),{onGewaehlt:n}=e,r=X(),i=Fc().data?.rolle!==`homelab`,a=pd,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=a(`/`),t[0]=s):s=t[0];let c;t[1]===n?c=t[2]:(c=(0,M.jsx)(dd,{s,onGewaehlt:n}),t[1]=n,t[2]=c);let l;t[3]!==i||t[4]!==n||t[5]!==r?(l=$u.map(e=>{let t=od[r[e.id].verbindung],a=cd[e.id];return(0,M.jsxs)(`section`,{"aria-label":e.name,className:`flex flex-col gap-0.5`,children:[(0,M.jsxs)(`div`,{className:`flex items-center justify-between gap-2 pr-2 pb-2 pl-1`,children:[(0,M.jsxs)(`h2`,{className:o(`etikett flex items-center gap-2.5 text-[12px] tracking-[0.16em]`,a.text),children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`flex size-6 items-center justify-center rounded-lg bg-gradient-to-br ring-1 ring-inset`,a.kachel),children:(0,M.jsx)(a.Icon,{className:`size-3.5`,strokeWidth:2})}),e.name]}),(0,M.jsxs)(`span`,{className:`flex items-center gap-1.5 text-[12px] text-text-3`,children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`size-1.5 rounded-full`,t.punkt)}),t.text]})]}),K.filter(t=>t.ort===e.id).map(t=>(0,M.jsx)(dd,{s:t,zahl:t.zaehlt?r[e.id].updates:0,onGewaehlt:n},t.to)),e.id===`box`&&i&&(0,M.jsxs)(`a`,{href:`/hermes-ui/`,target:`_blank`,rel:`noopener`,className:ld,children:[(0,M.jsx)(so,{className:`size-[18px] shrink-0 text-text-3`,"aria-hidden":!0}),`Hermes-Dashboard`]})]},e.id)}),t[3]=i,t[4]=n,t[5]=r,t[6]=l):l=t[6];let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=a(`/einstellungen`),t[7]=u):u=t[7];let d;t[8]===n?d=t[9]:(d=(0,M.jsx)(`div`,{className:`mt-auto border-t border-white/[0.06] pt-4`,children:(0,M.jsx)(dd,{s:u,onGewaehlt:n})}),t[8]=n,t[9]=d);let f;return t[10]!==c||t[11]!==l||t[12]!==d?(f=(0,M.jsxs)(`nav`,{"aria-label":`Hauptnavigation`,className:`flex flex-1 flex-col gap-7`,children:[c,l,d]}),t[10]=c,t[11]=l,t[12]=d,t[13]=f):f=t[13],f}function pd(e){return K.find(t=>t.to===e)}var md=`modulepreload`,hd=function(e){return`/`+e},gd={},_d=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=hd(t,n),t=s(t),t in gd)return;gd[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:md,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vd=(0,j.lazy)(()=>_d(()=>import(`./MenueSchublade-dfaMfvPR.js`).then(e=>({default:e.MenueSchublade})),__vite__mapDeps([0,1,2,3,4]))),yd=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,timeZone:`Europe/Berlin`}),bd=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,timeZone:`Europe/Berlin`}),xd=new Intl.DateTimeFormat(`de-DE`,{day:`2-digit`,month:`2-digit`,timeZone:`Europe/Berlin`});function Sd(){let e=(0,B.c)(21),[t,n]=(0,j.useState)(Cd),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=window.setInterval(()=>n(new Date),2e4);return()=>window.clearInterval(e)},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,j.useEffect)(r,i);let a;e[2]===t?a=e[3]:(a=yd.format(t),e[2]=t,e[3]=a);let o;e[4]===a?o=e[5]:(o=(0,M.jsx)(`span`,{className:`ziffern text-[20px] leading-none font-medium sm:text-[22px]`,children:a}),e[4]=a,e[5]=o);let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,M.jsx)(`span`,{"aria-hidden":!0,className:`hidden h-7 w-px bg-white/10 sm:block`}),e[6]=s):s=e[6];let c;e[7]===t?c=e[8]:(c=bd.format(t).replace(`.`,``),e[7]=t,e[8]=c);let l;e[9]===c?l=e[10]:(l=(0,M.jsx)(`span`,{children:c}),e[9]=c,e[10]=l);let u;e[11]===t?u=e[12]:(u=xd.format(t),e[11]=t,e[12]=u);let d;e[13]===u?d=e[14]:(d=(0,M.jsx)(`span`,{className:`ziffern tracking-normal`,children:u}),e[13]=u,e[14]=d);let f;e[15]!==l||e[16]!==d?(f=(0,M.jsxs)(`span`,{className:`etikett hidden flex-col text-[10.5px] leading-[1.35] text-text-3 sm:flex`,children:[l,d]}),e[15]=l,e[16]=d,e[17]=f):f=e[17];let p;return e[18]!==o||e[19]!==f?(p=(0,M.jsxs)(`div`,{className:`flaeche flex items-center gap-3 rounded-2xl px-3 py-2 sm:px-4`,children:[o,s,f]}),e[18]=o,e[19]=f,e[20]=p):p=e[20],p}function Cd(){return new Date}function wd(){let e=(0,B.c)(14),t=Vs(),n=t===`live`,r=n?`Verbunden`:t===`verbinde`?`Verbinde`:`Getrennt`,i=n?`text-text-3`:`text-bernstein`,a;e[0]===i?a=e[1]:(a=o(`etikett flex items-center gap-1.5 text-[11px] tracking-[0.12em]`,i),e[0]=i,e[1]=a);let s=n?`bg-gruen shadow-[0_0_8px_var(--gruen)]`:`bg-bernstein`,c;e[2]===s?c=e[3]:(c=o(`size-2 rounded-full`,s),e[2]=s,e[3]=c);let l;e[4]===c?l=e[5]:(l=(0,M.jsx)(`span`,{"aria-hidden":!0,className:c}),e[4]=c,e[5]=l);let u=n?`sr-only`:void 0,d=n?`Verbunden`:t===`verbinde`?`Verbinde`:`Getrennt`,f;e[6]!==u||e[7]!==d?(f=(0,M.jsx)(`span`,{className:u,children:d}),e[6]=u,e[7]=d,e[8]=f):f=e[8];let p;return e[9]!==r||e[10]!==a||e[11]!==l||e[12]!==f?(p=(0,M.jsxs)(`span`,{role:`status`,title:r,className:a,children:[l,f]}),e[9]=r,e[10]=a,e[11]=l,e[12]=f,e[13]=p):p=e[13],p}var Td={uebersicht:`text-bernstein`,box:`text-box-text`,homelab:`text-lab-text`,system:`text-text-3`};function Ed(){let e=(0,B.c)(27);Ws();let[t,n]=(0,j.useState)(!1),r=J(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,M.jsxs)(`aside`,{className:`sticky top-0 hidden h-dvh flex-col gap-9 overflow-y-auto border-r border-white/[0.06] bg-[rgb(8_11_17/0.72)] px-4 py-7 backdrop-blur-xl lg:flex`,children:[(0,M.jsx)(ud,{}),(0,M.jsx)(fd,{})]}),e[0]=i):i=e[0];let a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>n(!0),e[1]=a):a=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,M.jsx)(`button`,{type:`button`,onClick:a,className:`-ml-2 flex size-11 shrink-0 items-center justify-center rounded-lg text-text-2 hover:bg-white/[0.06] hover:text-foreground lg:hidden`,"aria-label":`Menü öffnen`,children:(0,M.jsx)(Eo,{className:`size-6`})}),e[2]=s):s=e[2];let c=Td[r.ort],l;e[3]===c?l=e[4]:(l=o(`etikett truncate text-[11.5px] tracking-[0.22em] whitespace-nowrap`,c),e[3]=c,e[4]=l);let u=q[r.ort],d;e[5]!==l||e[6]!==u?(d=(0,M.jsx)(`span`,{className:l,children:u}),e[5]=l,e[6]=u,e[7]=d):d=e[7];let f;e[8]===r.label?f=e[9]:(f=(0,M.jsx)(`h1`,{className:`truncate text-[26px] leading-none font-semibold tracking-[-0.01em] md:text-[32px]`,children:r.label}),e[8]=r.label,e[9]=f);let p;e[10]!==d||e[11]!==f?(p=(0,M.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[s,(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[d,f]})]}),e[10]=d,e[11]=f,e[12]=p):p=e[12];let m;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,M.jsxs)(`div`,{className:`flex items-center gap-3 sm:gap-4`,children:[(0,M.jsx)(`span`,{className:`lg:hidden`,children:(0,M.jsx)(wd,{})}),(0,M.jsx)(Sd,{})]}),e[13]=m):m=e[13];let h;e[14]===p?h=e[15]:(h=(0,M.jsxs)(`header`,{className:`flex items-center justify-between gap-4 md:pb-1`,children:[p,m]}),e[14]=p,e[15]=h);let g;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,M.jsx)(`main`,{className:`flex min-w-0 flex-col gap-5 md:gap-6`,children:(0,M.jsx)(ga,{})}),e[16]=g):g=e[16];let _;e[17]===h?_=e[18]:(_=(0,M.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[1360px] min-w-0 flex-col gap-5 px-4 pt-4 pb-12 sm:px-6 md:gap-6 md:px-10 md:pt-8`,children:[h,g]}),e[17]=h,e[18]=_);let v;e[19]===t?v=e[20]:(v=t&&(0,M.jsx)(vd,{onSchliessen:()=>n(!1)}),e[19]=t,e[20]=v);let y;e[21]===v?y=e[22]:(y=(0,M.jsx)(j.Suspense,{fallback:null,children:v}),e[21]=v,e[22]=y);let b;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,M.jsx)(id,{}),e[23]=b):b=e[23];let x;return e[24]!==_||e[25]!==y?(x=(0,M.jsxs)(`div`,{className:`min-h-dvh lg:grid lg:grid-cols-[272px_minmax(0,1fr)]`,children:[i,_,y,b]}),e[24]=_,e[25]=y,e[26]=x):x=e[26],x}var Dd={gruen:`bg-gruen/10 text-gruen ring-gruen/30`,bernstein:`bg-bernstein/10 text-bernstein ring-bernstein/35`,cyan:`bg-cyan/10 text-cyan-text ring-cyan/30`,rot:`bg-rot/12 text-rot-text ring-rot/40`,grau:`bg-white/[0.04] text-text-2 ring-white/12`};function Od(e){let t=(0,B.c)(6),{art:n,children:r}=e,i=Dd[n===void 0?`grau`:n],a;t[0]===i?a=t[1]:(a=o(`etikett inline-flex h-6 items-center gap-1.5 rounded-full px-2.5 text-[11px] tracking-[0.08em] whitespace-nowrap ring-1 ring-inset`,i),t[0]=i,t[1]=a);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,M.jsx)(`span`,{"aria-hidden":!0,className:`size-1.5 shrink-0 rounded-full bg-current opacity-90`}),t[2]=s):s=t[2];let c;return t[3]!==r||t[4]!==a?(c=(0,M.jsxs)(`span`,{className:a,children:[s,r]}),t[3]=r,t[4]=a,t[5]=c):c=t[5],c}function kd(e){let t=(0,B.c)(6),{fehler:n,text:r}=e,i=n?`alert`:`status`,a=n?`border border-rot-rand bg-rot-grund text-rot-text`:`flaeche text-text-2`,s;t[0]===a?s=t[1]:(s=o(`rounded-2xl px-5 py-8 text-center text-[15px]`,a),t[0]=a,t[1]=s);let c;return t[2]!==i||t[3]!==s||t[4]!==r?(c=(0,M.jsx)(`div`,{role:i,className:s,children:r}),t[2]=i,t[3]=s,t[4]=r,t[5]=c):c=t[5],c}var Ad=new Set(`actual-budget.adguard-home.affine.alpine-linux.ansible.appflowy.apprise.arcane.audiobookshelf.authelia.authentik.baserow.bazarr.beszel.bitwarden.bookstack.borgmatic.caddy.calibre-web.changedetection.checkmk.claude.cloudflare.cockpit.comfyui.crafty-controller.crowdsec.debian.deluge.docker.dockge.docmost.dozzle.draw-io.duplicati.elasticsearch.element.emby.esphome.excalidraw.firefly-iii.flatnotes.forgejo.freshrss.frigate.gatus.gitea.github.gitlab.glance.glances.go2rtc.gotify.grafana.grocy.harbor.headscale.healthchecks.hedgedoc.heimdall.hermes-agent.homarr.home-assistant.homebridge.homepage.immich.immich-kiosk.influxdb.it-tools.jellyfin.jellyseerr.jenkins.jitsi-meet.joplin.kavita.keycloak.komga.komodo.kopia.kubernetes.librenms.librespeed.lidarr.linkding.linux.linux-containers-lxc.linuxserver-io.llama-cpp.logseq.loki.mariadb.matomo.matrix.mattermost.mealie.minecraft.miniflux.minio.mongodb.mosquitto.n8n.navidrome.netbird.netdata.nextcloud.nginx.nginx-proxy-manager.nocodb.node-red.ntfy.nzbget.obsidian.ollama.onlyoffice.open-webui.openai.openmediavault.openwrt.opnsense.outline.overseerr.paperless-ngx.penpot.pfsense.photoprism.pi-hole.pingvin-share.piwigo.planka.plausible.plex.portainer.postgresql.privatebin.prometheus.prowlarr.proxmox.proxmox-helper-scripts.pterodactyl.qbittorrent.qnap.rabbitmq.radarr.rancher.rclone.readarr.redis.rocket-chat.rustdesk.sabnzbd.scrutiny.scrypted.seafile.searxng.semaphore.sonarr.speedtest-tracker.stirling-pdf.syncthing.synology.tailscale.tautulli.telegram.traefik.transmission.ubuntu.umami.unraid.uptime-kuma.vaultwarden.vikunja.wallabag.watchtower.webmin.wekan.wiki-js.wireguard.woodpecker-ci.wordpress.zabbix.zigbee2mqtt`.split(`.`)),jd={ok:`bg-gruen shadow-[0_0_8px_var(--gruen)]`,warn:`bg-bernstein shadow-[0_0_8px_var(--bernstein)]`,rot:`bg-rot shadow-[0_0_8px_var(--rot)]`,info:`bg-cyan shadow-[0_0_8px_var(--cyan)]`,aus:`bg-text-3`},Md=[[/adguard|pi-?hole/i,H],[/npm|nginx proxy/i,Io,`nginx-proxy-manager`],[/traefik|caddy/i,Io],[/netbird|wireguard|tailscale/i,La],[/gitea|forgejo|gitlab/i,mo],[/backup server|\bpbs\b/i,ao,`proxmox`],[/arcane|docker|portainer|dockge|komodo/i,to],[/pve scripts|helper.?scripts|community.?scripts/i,lo,`proxmox-helper-scripts`],[/scripts/i,lo],[/home ?assistant/i,vo],[/jellyfin|plex|emby/i,Za],[/\bnas\b|qnap|truenas|synology/i,go]];function Nd(e){return e.toLowerCase().replace(/\(.*?\)/g,``).trim().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``)}function Pd(e,t){if(t&&Ad.has(t))return t;let n=Nd(e);if(Ad.has(n))return n;let r=n.split(`-`)[0];return r.length>2&&Ad.has(r)?r:void 0}function Fd(e){if(e.art===`ki-box`)return{Icon:Ua,bereich:`box`};if(e.art===`proxmox-host`)return{Icon:Bo,bereich:`homelab`,logo:Pd(`proxmox`)};let t=Md.find(([t])=>t.test(e.name));return{Icon:t?.[1]??(e.art===`vm`?Ao:Va),bereich:`homelab`,logo:Pd(e.name,t?.[2])}}var Id={os:[bo,`ubuntu`],engine:[Qo,`llama-cpp`],motor:[Qo,`llama-cpp`],swap:[Wo],hermes:[za,`hermes-agent`],hirn:[Ua],coder:[$a],jobs:[Jo],sicherung:[ao],platte:[go],updates:[Mo]},Ld=[[/^hermes/,za,`hermes-agent`],[/^llama-swap/,Wo],[/^mc2-gateway/,Io],[/^mc2-steward/,H],[/^mission-control/,So],[/^voice/,Oo],[/^lucy-stimme/,Fa]];function Rd(e){let t=Ld.find(([t])=>t.test(e)),n=t?.[2];return{Icon:t?.[1]??Va,bereich:`box`,logo:n&&Ad.has(n)?n:void 0}}function zd(e){let[t,n]=Id[e]??[Va];return{Icon:t,bereich:`box`,logo:n&&Ad.has(n)?n:void 0}}var Bd={box:`from-box/30 to-box/[0.05] ring-box/35 text-box-text`,homelab:`from-lab/30 to-lab/[0.05] ring-lab/35 text-lab-text`},Vd={box:`from-white/[0.1] to-white/[0.03] ring-box/30`,homelab:`from-white/[0.1] to-white/[0.03] ring-lab/30`},Hd={box:`shadow-[0_0_28px_-6px_var(--box)]`,homelab:`shadow-[0_0_28px_-6px_var(--lab)]`},Ud={sm:{kachel:`size-8 rounded-[10px]`,icon:`size-4`,logo:`size-5`,punkt:`size-2.5`},md:{kachel:`size-10 rounded-xl`,icon:`size-5`,logo:`size-6`,punkt:`size-2.5`},lg:{kachel:`size-12 rounded-2xl`,icon:`size-6`,logo:`size-7`,punkt:`size-3`}};function Wd(e){let t=(0,B.c)(17),{bild:n,groesse:r,punkt:i,leuchtet:a,className:s}=e,c=r===void 0?`md`:r,l=a!==void 0&&a,u=Ud[c],d=n.logo?Vd[n.bereich]:Bd[n.bereich],f=l&&Hd[n.bereich],p;t[0]!==s||t[1]!==u.kachel||t[2]!==d||t[3]!==f?(p=o(`relative inline-flex shrink-0 items-center justify-center bg-gradient-to-br ring-1 ring-inset`,d,u.kachel,f,s),t[0]=s,t[1]=u.kachel,t[2]=d,t[3]=f,t[4]=p):p=t[4];let m;t[5]!==n.Icon||t[6]!==n.logo||t[7]!==u.icon||t[8]!==u.logo?(m=n.logo?(0,M.jsx)(`img`,{src:`/logos/${n.logo}.svg`,alt:``,className:o(`object-contain`,u.logo),loading:`lazy`,draggable:!1}):(0,M.jsx)(n.Icon,{className:u.icon,strokeWidth:1.75}),t[5]=n.Icon,t[6]=n.logo,t[7]=u.icon,t[8]=u.logo,t[9]=m):m=t[9];let h;t[10]!==u.punkt||t[11]!==i?(h=i&&(0,M.jsx)(`span`,{className:o(`absolute -right-0.5 -bottom-0.5 rounded-full ring-2 ring-[#0b0f16]`,u.punkt,jd[i])}),t[10]=u.punkt,t[11]=i,t[12]=h):h=t[12];let g;return t[13]!==p||t[14]!==m||t[15]!==h?(g=(0,M.jsxs)(`span`,{"aria-hidden":!0,className:p,children:[m,h]}),t[13]=p,t[14]=m,t[15]=h,t[16]=g):g=t[16],g}var Gd=new Intl.NumberFormat(`de-DE`,{maximumFractionDigits:1}),Kd=new Intl.NumberFormat(`de-DE`,{maximumFractionDigits:0});function qd(e){return e<1e3?`${Kd.format(e)} B/s`:e<1e6?`${Gd.format(e/1e3)} KB/s`:e<1e9?`${Gd.format(e/1e6)} MB/s`:`${Gd.format(e/1e9)} GB/s`}function Jd(e,t){return e==null||Number.isNaN(e)?`–`:t===`prozent`?`${Kd.format(e)} %`:t===`grad`?`${Kd.format(e)} °C`:t===`bytes_s`?qd(e):Kd.format(e)}function Yd(e){if(!e)return null;for(let t=e.length-1;t>=0;t--){let n=e[t][1];if(n!==null)return n}return null}function Xd(e,t){if(t===`prozent`)return 100;let n=0;for(let t of e)for(let[,e]of t??[])e!==null&&e>n&&(n=e);if(t===`grad`)return Math.max(60,Math.ceil((n+5)/10)*10);if(n<=0)return 1;let r=10**Math.floor(Math.log10(n));for(let e of[1,2,2.5,5,10])if(e*r>=n)return e*r;return 10*r}function Zd(e,t,n){return e===null?`ruhig`:e>=n?`rot`:e>=t?`gelb`:`ruhig`}var Qd=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,timeZone:`Europe/Berlin`}),$d=new Intl.DateTimeFormat(`de-DE`,{weekday:`short`,hour:`2-digit`,minute:`2-digit`,timeZone:`Europe/Berlin`});function ef(e,t){let n=new Date(e*1e3);return(t?$d:Qd).format(n).replace(`,`,``)}function tf(e){if(!e||e<0)return`–`;let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60);return t>0?`${t} T ${n} h`:n>0?`${n} h ${r} min`:`${r} min`}function nf(e,t,n){let r=``,i=!1;for(let[a,o]of e){if(o===null){i=!1;continue}r+=`${i?`L`:`M`}${t(a).toFixed(1)},${n(o).toFixed(1)}`,i=!0}return r}function rf(e,t,n,r){let i=``,a=[],o=()=>{a.length>1&&(i+=`M${a[0][0].toFixed(1)},${r}`+a.map(([e,t])=>`L${e.toFixed(1)},${t.toFixed(1)}`).join(``)+`L${a[a.length-1][0].toFixed(1)},${r}Z`),a=[]};for(let[r,i]of e)i===null?o():a.push([t(r),n(i)]);return o(),i}function af(e){if(!Number.isFinite(e)||e<=0)return[0,1];for(let t=0;;t++)for(let n of[1,2,2.5,5]){let r=n*10**t;if(!Number.isInteger(r))continue;let i=Math.ceil(e/r);if(i<=4)return Array.from({length:i+1},(e,t)=>t*r)}}var of=e=>Number(e.toFixed(1));function sf(e,t,n,r,i=4){let a=Math.max(0,Math.min(i,n/2,r));return`M${of(e)},${of(t+r)}V${of(t+a)}Q${of(e)},${of(t)} ${of(e+a)},${of(t)}H${of(e+n-a)}Q${of(e+n)},${of(t)} ${of(e+n)},${of(t+a)}V${of(t+r)}Z`}function cf(e,t,n=2){let r=[],i=0;e.forEach((e,a)=>{if(!(e>0))return;let o=t(i);i+=e;let s=t(i);r.push({index:a,y:s,hoehe:Math.max(0,o-s-(r.length?n:0)),oben:!1})});let a=r.filter(e=>e.hoehe>=1).at(-1);return a&&(a.oben=!0),r}function lf(e){let t=(0,B.c)(26),{punkte:n,max:r,farbe:i,hoehe:a,beschriftung:o}=e,s=i===void 0?`var(--reihe-1)`:i,c=a===void 0?36:a,l=n[0]?.[0]??0,u=n[n.length-1]?.[0]??1,d;t[0]!==l||t[1]!==u?(d=e=>u>l?(e-l)/(u-l)*100:0,t[0]=l,t[1]=u,t[2]=d):d=t[2];let f=d,p;t[3]!==c||t[4]!==r?(p=e=>c-2-Math.min(e,r)/(r||1)*(c-4),t[3]=c,t[4]=r,t[5]=p):p=t[5];let m=p,h;t[6]===n?h=t[7]:(h=n.some(uf),t[6]=n,t[7]=h);let g=h,_=(0,j.useId)(),v;if(t[8]!==_){let e;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(e=/[^a-zA-Z0-9_-]/g,t[10]=e):e=t[10],v=_.replace(e,``),t[8]=_,t[9]=v}else v=t[9];let y=`sl${v}`,b=`0 0 100 ${c}`,x;t[11]===c?x=t[12]:(x={height:c},t[11]=c,t[12]=x);let S;t[13]!==s||t[14]!==g||t[15]!==c||t[16]!==n||t[17]!==y||t[18]!==f||t[19]!==m?(S=g&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`defs`,{children:(0,M.jsxs)(`linearGradient`,{id:y,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,M.jsx)(`stop`,{offset:`0`,stopColor:s,stopOpacity:.3}),(0,M.jsx)(`stop`,{offset:`1`,stopColor:s,stopOpacity:0})]})}),(0,M.jsx)(`path`,{d:rf(n,f,m,c),fill:`url(#${y})`}),(0,M.jsx)(`path`,{d:nf(n,f,m),fill:`none`,stroke:s,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})]}),t[13]=s,t[14]=g,t[15]=c,t[16]=n,t[17]=y,t[18]=f,t[19]=m,t[20]=S):S=t[20];let C;return t[21]!==o||t[22]!==S||t[23]!==b||t[24]!==x?(C=(0,M.jsx)(`svg`,{role:`img`,"aria-label":o,viewBox:b,preserveAspectRatio:`none`,className:`block w-full`,style:x,children:S}),t[21]=o,t[22]=S,t[23]=b,t[24]=x,t[25]=C):C=t[25],C}function uf(e){let[,t]=e;return t!==null}var df={ruhig:{wert:`text-foreground`,marke:null},gelb:{wert:`text-bernstein`,marke:`hoch`},rot:{wert:`text-rot-text`,marke:`kritisch`}},ff=48,pf=37,Z=2*Math.PI*pf,mf=Z*.75;function hf(e,t){let n=(135+270*e)*Math.PI/180;return{x:ff+t*Math.cos(n),y:ff+t*Math.sin(n)}}function gf(e){let t=(0,B.c)(46),{label:n,wert:r,einheit:i,punkte:a,zustand:s,bereich:c,grenzen:l,max:u,zeitraumText:d,i:f}=e,p=s===void 0?`ruhig`:s,m=u===void 0?100:u,h=f===void 0?0:f,g=df[p],_=p===`rot`?`var(--rot)`:p===`gelb`?`var(--bernstein)`:c===`box`?`var(--box)`:`var(--lab)`,v=r==null?0:Math.min(Math.max(r/m,0),1),y;t[0]!==i||t[1]!==r?(y=Jd(r,i).split(` `),t[0]=i,t[1]=r,t[2]=y):y=t[2];let[b,x]=y,S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,M.jsx)(`circle`,{cx:ff,cy:ff,r:pf,fill:`none`,stroke:`rgb(255 255 255 / 0.07)`,strokeWidth:7,strokeLinecap:`round`,strokeDasharray:`${mf} ${Z}`,transform:`rotate(135 ${ff} ${ff})`}),t[3]=S):S=t[3];let C;if(t[4]!==l||t[5]!==m){let e;t[7]===m?e=t[8]:(e=(e,t)=>{let n=hf(Math.min(e/m,1),43),r=hf(Math.min(e/m,1),46.5);return(0,M.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,strokeWidth:1.5,strokeLinecap:`round`,stroke:t===0?`var(--bernstein)`:`var(--rot)`,opacity:.55},e)},t[7]=m,t[8]=e),C=l.map(e),t[4]=l,t[5]=m,t[6]=C}else C=t[6];let w;t[9]!==v||t[10]!==_||t[11]!==h||t[12]!==r?(w=r!=null&&v>0&&(0,M.jsx)(`circle`,{cx:ff,cy:ff,r:pf,fill:`none`,stroke:_,strokeWidth:7,strokeLinecap:`round`,strokeDasharray:`${Math.max(mf*v,.5)} ${Z}`,transform:`rotate(135 ${ff} ${ff})`,className:`ring-fuellt transition-[stroke-dasharray] duration-700`,style:{"--i":h,filter:`drop-shadow(0 0 5px color-mix(in srgb, ${_} 65%, transparent))`}}),t[9]=v,t[10]=_,t[11]=h,t[12]=r,t[13]=w):w=t[13];let T;t[14]!==C||t[15]!==w?(T=(0,M.jsxs)(`svg`,{viewBox:`0 0 96 96`,className:`size-full`,"aria-hidden":!0,children:[S,C,w]}),t[14]=C,t[15]=w,t[16]=T):T=t[16];let E;t[17]===g.wert?E=t[18]:(E=o(`font-anzeige text-[26px] leading-none font-semibold tabular-nums`,g.wert),t[17]=g.wert,t[18]=E);let D;t[19]!==E||t[20]!==b?(D=(0,M.jsx)(`span`,{className:E,children:b}),t[19]=E,t[20]=b,t[21]=D):D=t[21];let O;t[22]===x?O=t[23]:(O=x&&(0,M.jsx)(`span`,{className:`ml-0.5 self-center pt-1.5 text-[12px] font-medium text-text-3`,children:x}),t[22]=x,t[23]=O);let k;t[24]!==D||t[25]!==O?(k=(0,M.jsxs)(`span`,{className:`absolute inset-0 flex items-center justify-center pt-1`,children:[D,O]}),t[24]=D,t[25]=O,t[26]=k):k=t[26];let ee;t[27]!==k||t[28]!==T?(ee=(0,M.jsxs)(`div`,{className:`relative size-[88px]`,children:[T,k]}),t[27]=k,t[28]=T,t[29]=ee):ee=t[29];let A;t[30]!==g.marke||t[31]!==g.wert?(A=g.marke&&(0,M.jsxs)(`span`,{className:g.wert,children:[`· `,g.marke]}),t[30]=g.marke,t[31]=g.wert,t[32]=A):A=t[32];let te;t[33]!==n||t[34]!==A?(te=(0,M.jsxs)(`span`,{className:`etikett -mt-1 flex items-center gap-1.5 text-[10.5px] text-text-3`,children:[n,A]}),t[33]=n,t[34]=A,t[35]=te):te=t[35];let ne;t[36]!==_||t[37]!==n||t[38]!==m||t[39]!==a||t[40]!==d?(ne=(0,M.jsx)(`div`,{className:`w-full px-1`,children:a&&a.length>1?(0,M.jsx)(lf,{punkte:a,max:m,farbe:_,hoehe:20,beschriftung:`${n}, ${d}`}):(0,M.jsx)(`span`,{className:`block h-5`,"aria-hidden":!0})}),t[36]=_,t[37]=n,t[38]=m,t[39]=a,t[40]=d,t[41]=ne):ne=t[41];let re;return t[42]!==ee||t[43]!==te||t[44]!==ne?(re=(0,M.jsxs)(`div`,{className:`flaeche-innen flex min-w-0 flex-col items-center gap-1 rounded-2xl px-2 pt-2.5 pb-2`,children:[ee,te,ne]}),t[42]=ee,t[43]=te,t[44]=ne,t[45]=re):re=t[45],re}var _f={ok:`var(--gruen)`,rot:`var(--rot)`,aus:`rgb(135 146 164 / 0.45)`},vf={ok:`erreichbar`,rot:`antwortet nicht`,aus:`kein Stand`},yf=90,bf=72,xf=9,Sf=2*Math.PI*bf;function Cf(e){let t=(0,B.c)(32),{segmente:n,glut:r}=e,i=Math.max(n.length,1),a=Sf/i,o=i>1?14:0,s=Math.max(a-o,.5),c;t[0]===n?c=t[1]:(c=n.filter(wf),t[0]=n,t[1]=c);let l=c.length,u=`drop-shadow(0 0 14px color-mix(in srgb, ${r} 40%, transparent))`,d;t[2]===u?d=t[3]:(d={filter:u},t[2]=u,t[3]=d);let f,p,m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,M.jsx)(`g`,{className:`kreist`,children:(0,M.jsx)(`circle`,{cx:yf,cy:yf,r:86,fill:`none`,stroke:`rgb(255 255 255 / 0.13)`,strokeWidth:1,strokeDasharray:`1.2 5.6`})}),p=(0,M.jsx)(`circle`,{cx:yf,cy:yf,r:bf,fill:`none`,stroke:`rgb(255 255 255 / 0.05)`,strokeWidth:xf}),m=(0,M.jsx)(`circle`,{cx:yf,cy:yf,r:58,fill:`none`,stroke:`rgb(255 255 255 / 0.06)`,strokeWidth:1}),t[4]=f,t[5]=p,t[6]=m):(f=t[4],p=t[5],m=t[6]);let h;if(t[7]!==s||t[8]!==o||t[9]!==n||t[10]!==a){let e;t[12]!==s||t[13]!==o||t[14]!==a?(e=(e,t)=>(0,M.jsx)(`circle`,{cx:yf,cy:yf,r:bf,fill:`none`,stroke:_f[e.zustand],strokeWidth:xf,strokeLinecap:`round`,strokeDasharray:`${s} ${Sf-s}`,strokeDashoffset:-(t*a+o/2),className:`ring-fuellt`,style:{"--i":t},children:(0,M.jsx)(`title`,{children:`${e.name}: ${vf[e.zustand]}`})},e.id),t[12]=s,t[13]=o,t[14]=a,t[15]=e):e=t[15],h=n.map(e),t[7]=s,t[8]=o,t[9]=n,t[10]=a,t[11]=h}else h=t[11];let g;t[16]===h?g=t[17]:(g=(0,M.jsx)(`g`,{transform:`rotate(-90 ${yf} ${yf})`,children:h}),t[16]=h,t[17]=g);let _;t[18]!==d||t[19]!==g?(_=(0,M.jsxs)(`svg`,{viewBox:`0 0 180 180`,className:`size-full`,"aria-hidden":!0,style:d,children:[f,p,m,g]}),t[18]=d,t[19]=g,t[20]=_):_=t[20];let v;t[21]===n.length?v=t[22]:(v=(0,M.jsxs)(`span`,{className:`text-text-3`,children:[`/`,n.length]}),t[21]=n.length,t[22]=v);let y;t[23]!==l||t[24]!==v?(y=(0,M.jsxs)(`span`,{className:`font-anzeige text-[38px] leading-none font-semibold tabular-nums sm:text-[46px]`,children:[l,v]}),t[23]=l,t[24]=v,t[25]=y):y=t[25];let b;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,M.jsxs)(`span`,{className:`etikett mt-1.5 flex flex-col items-center text-[9.5px] leading-[1.35] text-text-3 sm:text-[10px]`,children:[(0,M.jsx)(`span`,{children:`Geräte`}),(0,M.jsx)(`span`,{children:`erreichbar`})]}),t[26]=b):b=t[26];let x;t[27]===y?x=t[28]:(x=(0,M.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center`,children:[y,b]}),t[27]=y,t[28]=x);let S;return t[29]!==x||t[30]!==_?(S=(0,M.jsxs)(`div`,{className:`relative size-[132px] shrink-0 sm:size-[168px]`,children:[_,x]}),t[29]=x,t[30]=_,t[31]=S):S=t[31],S}function wf(e){return e.zustand===`ok`}var Tf=new Set([`snapshot-anlegen`,`snapshot-loeschen`,`snapshot-zurueck`,`sicherung-loeschen`]),Ef=e=>Tf.has(e.baustein),Df={update:{chip:`vor Update`,text:`Rückweg vor einem Update`},knopf:{chip:`per Knopf`,text:`Hier per Knopf angelegt`},proxmox:{chip:`von Hand`,text:`Von Hand in Proxmox angelegt`}};function Of(e,t){return e===null?`Zeitpunkt unbekannt`:$s(new Date(e*1e3).toISOString(),new Date(t*1e3))}function kf(e,t){return e===null?``:tc(e,t*1e3)}function Af(e){return e===null||e<=0?null:e<1e9?`${Math.round(e/1e6)} MB`:`${(e/1e9).toFixed(1).replace(`.`,`,`)} GB`}function jf(e,t){let n=e.startsWith(`${t}: `)?e.slice(t.length+2):e;return n.charAt(0).toUpperCase()+n.slice(1)}function Mf(e){let t=[`${e.snapshots} ${e.snapshots===1?`Snapshot`:`Snapshots`}`];return e.sicherungen>0&&t.push(`${e.sicherungen} ${e.sicherungen===1?`Sicherung`:`Sicherungen`}`),t.join(` · `)}var Nf=(e,t=1)=>e.toFixed(t).replace(`.`,`,`);function Pf(e){return e==null?`–`:e>=0xe8d4a51000?`${Nf(e/0xe8d4a51000)} TB`:e>=1e10?`${Math.round(e/1e9)} GB`:`${Nf(e/1e9)} GB`}function Ff(e){return e?/^\s*\d{1,2}:\d{2}\s*$/.test(e)?`täglich ${e.trim()}`:`Zeitplan „${e}“`:`ohne Zeitplan`}function If(e){return e.jobs.length===0?`Kein Sicherungsauftrag in Proxmox`:e.jobs.map(e=>`${Ff(e.zeitplan)} auf ${e.speicher??`?`}`).join(`, `)}var Lf={ok:`in Ordnung`,gelb:`wird knapp`,rot:`fast voll`};function Rf(e){if(e.aktion)return null;let t=e.grund??``,n=t.match(/erst ab (\d{2}\.\d{2}\.(?:\d{4})? ?\d{2}:\d{2})/)?.[1];return n?`ab ${n}`:/eigene Oberfläche|eigenen Oberfläche|eigenes Update/i.test(t)?`über die App`:null}function zf(e){let t=e.bausteine.filter(e=>e.zustand===`neu`);if(t.length===0)return null;let n=[],r=zu(e);if(r?.zustand===`neu`){let e=Rf(r);n.push(`App → ${r.verfuegbar??`neu`}${e?` (${e})`:``}`)}let i=Bu(e);i?.zustand===`neu`&&n.push(i.kurz||(i.id===`docker`?`Images`:`Pakete`));for(let e of t)e!==r&&e!==i&&n.push(`${e.name}${e.kurz?` · ${e.kurz}`:``}`);return{id:e.id,name:e.name,teile:n,knopf:t.some(e=>!!e.aktion)}}function Bf(e){return e.getrennt.length>0?{stufe:`rot`,titel:`Verbindung weg`,text:`${e.getrennt.join(` und `)} antwortet nicht.`}:e.stumm.length>0||e.hinweiseRot>0?{stufe:`rot`,titel:`Störung`,text:`${e.stumm.length>0?`${e.stumm.join(`, `)} antwortet nicht`:`Ein roter Hinweis wartet`}.`}:e.hinweise>0?{stufe:`gelb`,titel:e.hinweise===1?`1 Hinweis`:`${e.hinweise} Hinweise`,text:`Bei Gelegenheit ansehen.`}:e.updates>0?{stufe:`info`,titel:`Alles läuft`,text:`${e.updates} ${e.updates===1?`Update steht`:`Updates stehen`} bereit.`}:{stufe:`ok`,titel:`Alles läuft`,text:`Keine Hinweise, keine offenen Updates.`}}var Vf={ok:{glut:`var(--gruen)`,titel:`text-foreground`,symbol:`text-gruen`,Symbol:Ya},info:{glut:`var(--gruen)`,titel:`text-foreground`,symbol:`text-gruen`,Symbol:Ya},gelb:{glut:`var(--bernstein)`,titel:`text-bernstein`,symbol:`text-bernstein`,Symbol:qa},rot:{glut:`var(--rot)`,titel:`text-rot-text`,symbol:`text-rot`,Symbol:Ko}},Q={online:{punkt:`ok`,text:`online`},verbinde:{punkt:`warn`,text:`verbinde`},getrennt:{punkt:`rot`,text:`getrennt`},fehlt:{punkt:`aus`,text:`nicht eingerichtet`}},Hf={box:{name:`KI-Box`,rand:`[--rand:color-mix(in_srgb,var(--box)_32%,transparent)]`,text:`text-box-text`,pille:`bg-box/10 text-box-text ring-box/30 hover:bg-box/20`,glut:`var(--box)`,cockpit:`/box`},homelab:{name:`Homelab`,rand:`[--rand:color-mix(in_srgb,var(--lab)_32%,transparent)]`,text:`text-lab-text`,pille:`bg-lab/10 text-lab-text ring-lab/30 hover:bg-lab/20`,glut:`var(--lab)`,cockpit:`/homelab`}},Uf=new Intl.DateTimeFormat(`de-DE`,{hour:`2-digit`,minute:`2-digit`,timeZone:`Europe/Berlin`}),Wf=e=>({"--i":e}),Gf={cyan:{kachel:`bg-cyan/10 text-cyan ring-cyan/25`,wert:`text-cyan`},gruen:{kachel:`bg-gruen/10 text-gruen ring-gruen/25`,wert:`text-gruen`},bernstein:{kachel:`bg-bernstein/10 text-bernstein ring-bernstein/30`,wert:`text-bernstein`},rot:{kachel:`bg-rot/12 text-rot ring-rot/35`,wert:`text-rot-text`},grau:{kachel:`bg-white/[0.05] text-text-2 ring-white/12`,wert:`text-foreground`}};function Kf(e){let t=(0,B.c)(23),{Icon:n,label:r,wert:i,art:a,children:s}=e,c=Gf[a],l;t[0]===c.kachel?l=t[1]:(l=o(`flex size-10 shrink-0 items-center justify-center rounded-xl ring-1 ring-inset`,c.kachel),t[0]=c.kachel,t[1]=l);let u;t[2]===n?u=t[3]:(u=(0,M.jsx)(n,{className:`size-[18px]`}),t[2]=n,t[3]=u);let d;t[4]!==l||t[5]!==u?(d=(0,M.jsx)(`span`,{"aria-hidden":!0,className:l,children:u}),t[4]=l,t[5]=u,t[6]=d):d=t[6];let f;t[7]===r?f=t[8]:(f=(0,M.jsx)(`span`,{className:`etikett text-[10.5px] text-text-3`,children:r}),t[7]=r,t[8]=f);let p;t[9]===s?p=t[10]:(p=(0,M.jsx)(`span`,{className:`truncate text-[13px] text-text-2`,children:s}),t[9]=s,t[10]=p);let m;t[11]!==f||t[12]!==p?(m=(0,M.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[f,p]}),t[11]=f,t[12]=p,t[13]=m):m=t[13];let h;t[14]===c.wert?h=t[15]:(h=o(`font-anzeige text-[30px] leading-none font-semibold tabular-nums`,c.wert),t[14]=c.wert,t[15]=h);let g;t[16]!==h||t[17]!==i?(g=(0,M.jsx)(`span`,{className:h,children:i}),t[16]=h,t[17]=i,t[18]=g):g=t[18];let _;return t[19]!==d||t[20]!==m||t[21]!==g?(_=(0,M.jsxs)(`div`,{className:`flaeche-innen flex min-w-0 items-center gap-3.5 rounded-2xl px-4 py-3`,children:[d,m,g]}),t[19]=d,t[20]=m,t[21]=g,t[22]=_):_=t[22],_}function qf(e){let t=(0,B.c)(12),{bereich:n,verbindung:r}=e,i=Hf[n],a=Q[r],s=i.cockpit,c;t[0]===i.pille?c=t[1]:(c=o(`inline-flex h-8 items-center gap-2 rounded-full px-3 text-[13px] ring-1 ring-inset transition-colors`,i.pille),t[0]=i.pille,t[1]=c);let l=jd[a.punkt],u;t[2]===l?u=t[3]:(u=o(`size-2 rounded-full`,l),t[2]=l,t[3]=u);let d;t[4]===u?d=t[5]:(d=(0,M.jsx)(`span`,{"aria-hidden":!0,className:u}),t[4]=u,t[5]=d);let f;return t[6]!==i.cockpit||t[7]!==i.name||t[8]!==c||t[9]!==d||t[10]!==a.text?(f=(0,M.jsxs)(ea,{to:s,className:c,children:[d,i.name,` `,a.text]}),t[6]=i.cockpit,t[7]=i.name,t[8]=c,t[9]=d,t[10]=a.text,t[11]=f):f=t[11],f}function Jf(e){let t=(0,B.c)(22),{bereich:n,titel:r,unterzeile:i,werte:a,basis:s}=e,c=Hf[n],l;t[0]===c.text?l=t[1]:(l=o(`etikett text-[11.5px] tracking-[0.16em]`,c.text),t[0]=c.text,t[1]=l);let u;t[2]!==l||t[3]!==r?(u=(0,M.jsx)(`h3`,{className:l,children:r}),t[2]=l,t[3]=r,t[4]=u):u=t[4];let d;t[5]===i?d=t[6]:(d=i&&(0,M.jsx)(`span`,{className:`truncate text-[12.5px] text-text-3`,children:i}),t[5]=i,t[6]=d);let f;t[7]!==u||t[8]!==d?(f=(0,M.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 px-0.5`,children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9];let p;if(t[10]!==s||t[11]!==n||t[12]!==a){let e;t[14]!==s||t[15]!==n?(e=(e,t)=>(0,M.jsx)(gf,{label:e.label,wert:e.wert,einheit:e.einheit,punkte:e.punkte,bereich:n,grenzen:[e.gelb,e.rot],zustand:Zd(e.wert??null,e.gelb,e.rot),zeitraumText:`letzte Stunde`,i:s+t},e.label),t[14]=s,t[15]=n,t[16]=e):e=t[16],p=a.map(e),t[10]=s,t[11]=n,t[12]=a,t[13]=p}else p=t[13];let m;t[17]===p?m=t[18]:(m=(0,M.jsx)(`div`,{className:`grid grid-cols-2 gap-2 sm:grid-cols-4`,children:p}),t[17]=p,t[18]=m);let h;return t[19]!==f||t[20]!==m?(h=(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[f,m]}),t[19]=f,t[20]=m,t[21]=h):h=t[21],h}function Yf(e){let t=(0,B.c)(36),{homelabAktiv:n}=e,r=cc(),i=Xc(`1h`),a=Hs(),o=Zc(`1h`,n),s=i.data?.reihen,c=r.data?.box,l=a?.ram??(c?.ram_used&&c.ram_total?c.ram_used/c.ram_total*100:null),u;if(t[0]!==c||t[1]!==n||t[2]!==o.data?.geraete||t[3]!==a?.cpu||t[4]!==a?.disk||t[5]!==a?.temp_cpu||t[6]!==i.data?.aktuell||t[7]!==s?.cpu||t[8]!==s?.platte||t[9]!==s?.ram||t[10]!==s?.temp_cpu||t[11]!==l){let e=o.data?.geraete.find(Xf),r;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(r=Wf(1),t[13]=r):r=t[13];let d;t[14]===c?d=t[15]:(d=c?.uptime_s?`läuft seit ${tf(c.uptime_s)}`:null,t[14]=c,t[15]=d);let f=a?.cpu??i.data?.aktuell.cpu,p=s?.cpu,m;t[16]!==f||t[17]!==p?(m={label:`CPU`,wert:f,einheit:`prozent`,punkte:p,gelb:85,rot:95},t[16]=f,t[17]=p,t[18]=m):m=t[18];let h=s?.ram,g;t[19]!==l||t[20]!==h?(g={label:`Speicher`,wert:l,einheit:`prozent`,punkte:h,gelb:85,rot:95},t[19]=l,t[20]=h,t[21]=g):g=t[21];let _=a?.temp_cpu??c?.temp_cpu,v=s?.temp_cpu,y;t[22]!==v||t[23]!==_?(y={label:`Temp.`,wert:_,einheit:`grad`,punkte:v,gelb:80,rot:90},t[22]=v,t[23]=_,t[24]=y):y=t[24];let b=a?.disk??c?.platte?.percent,x=s?.platte,S;t[25]!==b||t[26]!==x?(S={label:`Platte`,wert:b,einheit:`prozent`,punkte:x,gelb:80,rot:90},t[25]=b,t[26]=x,t[27]=S):S=t[27];let C;t[28]!==y||t[29]!==S||t[30]!==m||t[31]!==g?(C=[m,g,y,S],t[28]=y,t[29]=S,t[30]=m,t[31]=g,t[32]=C):C=t[32];let w;t[33]!==C||t[34]!==d?(w=(0,M.jsx)(Jf,{bereich:`box`,titel:`KI-Box`,basis:0,unterzeile:d,werte:C}),t[33]=C,t[34]=d,t[35]=w):w=t[35],u=(0,M.jsxs)(`section`,{"aria-label":`Instrumente`,className:`auftauchen flaeche grid gap-6 rounded-3xl p-5 sm:p-6 xl:grid-cols-2 xl:gap-8`,style:r,children:[w,n?(0,M.jsx)(Jf,{bereich:`homelab`,titel:`Proxmox-Host`,basis:4,unterzeile:e?.aktuell.uptime_s?`läuft seit ${tf(e.aktuell.uptime_s)}`:null,werte:[{label:`CPU`,wert:e?.aktuell.cpu,einheit:`prozent`,punkte:e?.reihen.cpu,gelb:85,rot:95},{label:`Speicher`,wert:e?.aktuell.ram,einheit:`prozent`,punkte:e?.reihen.ram,gelb:90,rot:95},{label:`Temp.`,wert:e?.aktuell.temp_cpu,einheit:`grad`,punkte:e?.reihen.temp_cpu,gelb:80,rot:90},{label:`Platte`,wert:e?.aktuell.platte,einheit:`prozent`,punkte:e?.reihen.platte,gelb:80,rot:90}]}):(0,M.jsx)(`p`,{className:`self-center text-sm text-text-2`,children:`Der Homelab-Teil antwortet gerade nicht; hier steht nichts Veraltetes.`})]}),t[0]=c,t[1]=n,t[2]=o.data?.geraete,t[3]=a?.cpu,t[4]=a?.disk,t[5]=a?.temp_cpu,t[6]=i.data?.aktuell,t[7]=s?.cpu,t[8]=s?.platte,t[9]=s?.ram,t[10]=s?.temp_cpu,t[11]=l,t[12]=u}else u=t[12];return u}function Xf(e){return e.art===`proxmox-host`}function Zf(e){let t=(0,B.c)(5),{titel:n,rechts:r}=e,i;t[0]===n?i=t[1]:(i=(0,M.jsx)(`h3`,{className:`etikett text-[11.5px] tracking-[0.16em] text-text-3`,children:n}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,M.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function Qf(e){let t=(0,B.c)(42),{bereich:n,verbindung:r,unterzeile:i,i:a,children:s}=e,c=Hf[n],l=Q[r],u=n===`box`?`ki-box`:`proxmox-host`,d;t[0]!==c.name||t[1]!==u?(d=Fd({art:u,name:c.name}),t[0]=c.name,t[1]=u,t[2]=d):d=t[2];let f;t[3]===d?f=t[4]:(f={...d,logo:void 0},t[3]=d,t[4]=f);let p=f,m=c.name,h;t[5]===c.rand?h=t[6]:(h=o(`auftauchen flaeche relative flex min-w-0 flex-col overflow-hidden rounded-3xl`,c.rand),t[5]=c.rand,t[6]=h);let g;t[7]===a?g=t[8]:(g=Wf(a),t[7]=a,t[8]=g);let _=`radial-gradient(closest-side, color-mix(in srgb, ${c.glut} 20%, transparent), transparent)`,v;t[9]===_?v=t[10]:(v=(0,M.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute -top-44 -left-36 size-[460px] rounded-full`,style:{background:_}}),t[9]=_,t[10]=v);let y=c.cockpit,b;t[11]===p?b=t[12]:(b=(0,M.jsx)(Wd,{bild:p,groesse:`lg`,leuchtet:!0}),t[11]=p,t[12]=b);let x;t[13]===c.name?x=t[14]:(x=(0,M.jsx)(`span`,{className:`text-[21px] leading-none font-semibold`,children:c.name}),t[13]=c.name,t[14]=x);let S=jd[l.punkt],C;t[15]===S?C=t[16]:(C=o(`size-2 shrink-0 rounded-full`,S),t[15]=S,t[16]=C);let w;t[17]===C?w=t[18]:(w=(0,M.jsx)(`span`,{"aria-hidden":!0,className:C}),t[17]=C,t[18]=w);let T;t[19]!==w||t[20]!==i||t[21]!==l.text?(T=(0,M.jsxs)(`span`,{className:`flex items-center gap-2 truncate text-[13px] text-text-3`,children:[w,l.text,` · `,i]}),t[19]=w,t[20]=i,t[21]=l.text,t[22]=T):T=t[22];let E;t[23]!==x||t[24]!==T?(E=(0,M.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-1`,children:[x,T]}),t[23]=x,t[24]=T,t[25]=E):E=t[25];let D;t[26]!==b||t[27]!==E?(D=(0,M.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3.5`,children:[b,E]}),t[26]=b,t[27]=E,t[28]=D):D=t[28];let O;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,M.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1.5 rounded-full px-3 py-1.5 text-[13px] text-text-2 ring-1 ring-white/10 transition-colors ring-inset group-hover:bg-white/[0.06] group-hover:text-foreground`,children:[`Cockpit `,(0,M.jsx)(Na,{className:`size-3.5 transition-transform group-hover:translate-x-0.5`,"aria-hidden":!0})]}),t[29]=O):O=t[29];let k;t[30]!==c.cockpit||t[31]!==D?(k=(0,M.jsxs)(ea,{to:y,className:`group relative flex items-center justify-between gap-3 px-5 pt-5 pb-4 sm:px-6 sm:pt-6`,children:[D,O]}),t[30]=c.cockpit,t[31]=D,t[32]=k):k=t[32];let ee;t[33]===s?ee=t[34]:(ee=(0,M.jsx)(`div`,{className:`relative flex flex-1 flex-col gap-6 px-5 pb-6 sm:px-6`,children:s}),t[33]=s,t[34]=ee);let A;return t[35]!==c.name||t[36]!==k||t[37]!==ee||t[38]!==h||t[39]!==g||t[40]!==v?(A=(0,M.jsxs)(`section`,{"aria-label":m,className:h,style:g,children:[v,k,ee]}),t[35]=c.name,t[36]=k,t[37]=ee,t[38]=h,t[39]=g,t[40]=v,t[41]=A):A=t[41],A}function $f(e){let t=(0,B.c)(11),{hinweise:n,ziel:r}=e;if(n.length===0)return null;let i,a,s;if(t[0]!==n||t[1]!==r){let e=[...n].sort(ep);i=`Hinweise`,a=`m-0 flex list-none flex-col gap-1.5 p-0`;let c;t[5]===r?c=t[6]:(c=e=>{let t=e.stufe===`rot`,n=t?Ko:qa;return(0,M.jsx)(`li`,{children:(0,M.jsxs)(ea,{to:r,className:o(`flex items-start gap-2.5 rounded-xl px-3 py-2.5 text-[14px] ring-1 ring-inset transition-colors`,t?`bg-rot/10 text-rot-text ring-rot/35 hover:bg-rot/15`:`bg-bernstein/[0.08] text-bernstein ring-bernstein/30 hover:bg-bernstein/[0.13]`),children:[(0,M.jsx)(n,{className:`mt-0.5 size-4 shrink-0`,"aria-hidden":!0}),(0,M.jsx)(`span`,{className:`min-w-0 flex-1`,children:e.titel}),(0,M.jsx)(`span`,{className:`etikett shrink-0 pt-0.5 text-[10px] opacity-80`,children:t?`Störung`:`Hinweis`})]})},e.id)},t[5]=r,t[6]=c),s=e.slice(0,3).map(c),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=s}else i=t[2],a=t[3],s=t[4];let c;return t[7]!==i||t[8]!==a||t[9]!==s?(c=(0,M.jsx)(`ul`,{"aria-label":i,className:a,children:s}),t[7]=i,t[8]=a,t[9]=s,t[10]=c):c=t[10],c}function ep(e,t){return Number(t.stufe===`rot`)-Number(e.stufe===`rot`)}var $=e=>/\((ab |über die App)/.test(e);function tp(e){let t=(0,B.c)(27),{to:n,bild:r,name:i,unter:a,punkt:s,zustandText:c,rechts:l,updates:u,knopf:d}=e,f;t[0]===u?f=t[1]:(f=u===void 0?[]:u,t[0]=u,t[1]=f);let p=f,m=d!==void 0&&d,h;t[2]!==r||t[3]!==s?(h=(0,M.jsx)(Wd,{bild:r,punkt:s}),t[2]=r,t[3]=s,t[4]=h):h=t[4];let g;t[5]!==l||t[6]!==c?(g=c&&!l&&(0,M.jsxs)(`span`,{className:`sr-only`,children:[`, `,c]}),t[5]=l,t[6]=c,t[7]=g):g=t[7];let _;t[8]!==i||t[9]!==g?(_=(0,M.jsxs)(`span`,{className:`truncate text-[14.5px] leading-snug font-medium`,children:[i,g]}),t[8]=i,t[9]=g,t[10]=_):_=t[10];let v;t[11]===l?v=t[12]:(v=l&&(0,M.jsx)(`span`,{className:`shrink-0 text-[12px]`,children:l}),t[11]=l,t[12]=v);let y;t[13]!==_||t[14]!==v?(y=(0,M.jsxs)(`span`,{className:`flex min-w-0 items-baseline justify-between gap-2`,children:[_,v]}),t[13]=_,t[14]=v,t[15]=y):y=t[15];let b;t[16]!==m||t[17]!==a||t[18]!==p?(b=p.length>0?(0,M.jsx)(`span`,{className:`flex min-w-0 flex-wrap gap-x-2 text-[12.5px] leading-snug`,children:p.map(e=>(0,M.jsxs)(`span`,{className:o(`truncate`,m&&!$(e)?`text-cyan-text`:`text-text-3`),children:[m&&!$(e)&&(0,M.jsx)(Mo,{className:`mr-1 inline size-3 -translate-y-px`,"aria-hidden":!0}),e]},e))}):(0,M.jsx)(`span`,{className:`truncate text-[12.5px] leading-snug text-text-3`,children:a}),t[16]=m,t[17]=a,t[18]=p,t[19]=b):b=t[19];let x;t[20]!==y||t[21]!==b?(x=(0,M.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[y,b]}),t[20]=y,t[21]=b,t[22]=x):x=t[22];let S;return t[23]!==x||t[24]!==h||t[25]!==n?(S=(0,M.jsxs)(ea,{to:n,className:`flaeche-innen group flex h-full min-w-0 items-center gap-3 rounded-xl px-3 py-2.5 transition-colors hover:border-white/20 hover:bg-white/[0.05]`,children:[h,x]}),t[23]=x,t[24]=h,t[25]=n,t[26]=S):S=t[26],S}var np={ok:`ok`,aus:`aus`,warn:`warn`,info:`info`,fehler:`rot`};function rp(e){return e.zustand===`neu`?{updates:[e.kurz||(e.verfuegbar?`→ ${e.verfuegbar}`:`neu`)],unter:``}:e.zustand===`festgehalten`?{updates:[],unter:`${e.installiert??`–`} · festgehalten`}:{updates:[],unter:e.installiert??`–`}}function ip(e){let t=(0,B.c)(6),{eintraege:n}=e;if(n.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,M.jsx)(`p`,{className:`text-sm text-text-3`,children:`Nichts geplant.`}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,M.jsx)(`span`,{"aria-hidden":!0,className:`absolute top-3 bottom-3 left-[5px] w-px bg-gradient-to-b from-white/20 to-white/0`}),t[1]=r):r=t[1];let i;t[2]===n?i=t[3]:(i=n.map(ap),t[2]=n,t[3]=i);let a;return t[4]===i?a=t[5]:(a=(0,M.jsxs)(`ol`,{className:`relative m-0 flex list-none flex-col p-0`,children:[r,i]}),t[4]=i,t[5]=a),a}function ap(e){let[t,n]=op($s(e.zeit)),r=/update/i.test(e.titel);return(0,M.jsxs)(`li`,{className:`relative grid grid-cols-[11px_minmax(0,1fr)_auto] items-center gap-x-3 py-1.5`,children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`size-[11px] rounded-full ring-[3px] ring-[#0d1119]`,r?`bg-cyan`:`bg-white/25`)}),(0,M.jsx)(`span`,{className:`truncate text-[14.5px]`,children:e.titel}),(0,M.jsxs)(`span`,{className:`ziffern text-[12.5px] whitespace-nowrap text-text-3`,children:[t&&(0,M.jsx)(`span`,{className:`etikett mr-1.5 text-[10px] tracking-[0.1em]`,children:t}),n]})]},`${e.titel}-${e.zeit}`)}function op(e){let t=e.match(/^(.*) (\d{2}:\d{2})$/);return t?[t[1].toLowerCase(),t[2]]:[``,e]}function sp(e){let t=(0,B.c)(85),{verbindung:n}=e,r=cc(),i=Lc(),a=lc(),o,s,c,l,u,d,f,p,m,h,g,_;if(t[0]!==a.data?.models||t[1]!==a.data?.running||t[2]!==r.data||t[3]!==n||t[4]!==i.data?.ziele){let e=i.data?.ziele.find(dp)?.bausteine??[],v=e.filter(up),y,b,x,S;if(t[17]!==a.data?.models||t[18]!==a.data?.running||t[19]!==r.data||t[20]!==n){let e=a.data?.models??[],i;t[32]===a.data?.running?i=t[33]:(i=a.data?.running??[],t[32]=a.data?.running,t[33]=i);let c=i,l=[`hirn`,`coder`].map(t=>({rolle:t,m:e.find(e=>bs(e)===t)})),u;t[34]===r.data?.lampen?u=t[35]:(u=r.data?.lampen??[],t[34]=r.data?.lampen,t[35]=u);let d=u,f;t[36]===d?f=t[37]:(f=e=>d.find(t=>t.id===e),t[36]=d,t[37]=f),s=f,o=Qf,p=`box`,m=n,h=2,t[38]===r.data?g=t[39]:(g=r.data?.box.ram_total?`${Math.round(r.data.box.ram_total/1073741824)} GB gemeinsamer Speicher`:`Strix Halo`,t[38]=r.data,t[39]=g);let v;t[40]===r.data?.hinweise?v=t[41]:(v=r.data?.hinweise??[],t[40]=r.data?.hinweise,t[41]=v),t[42]===v?_=t[43]:(_=(0,M.jsx)($f,{hinweise:v,ziel:`/box`}),t[42]=v,t[43]=_),x=`flex flex-col gap-2.5`,t[44]===c.length?S=t[45]:(S=(0,M.jsx)(Zf,{titel:`Modelle`,rechts:(0,M.jsxs)(`span`,{className:`text-[13px] text-text-3`,children:[c.length,` geladen`]})}),t[44]=c.length,t[45]=S),y=`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,b=l.map(e=>{let{rolle:t,m:n}=e,r=!!n&&c.includes(n.name);return(0,M.jsx)(`li`,{children:(0,M.jsx)(tp,{to:`/box/modelle`,bild:zd(t),name:t===`hirn`?`Hirn`:`Coder`,unter:n?.name??`nicht belegt`,punkt:r?`ok`:`aus`,rechts:(0,M.jsx)(`span`,{className:r?`text-gruen-text`:`text-text-3`,children:r?`geladen`:`auf Abruf`})})},t)}),t[17]=a.data?.models,t[18]=a.data?.running,t[19]=r.data,t[20]=n,t[21]=o,t[22]=s,t[23]=y,t[24]=b,t[25]=x,t[26]=S,t[27]=p,t[28]=m,t[29]=h,t[30]=g,t[31]=_}else o=t[21],s=t[22],y=t[23],b=t[24],x=t[25],S=t[26],p=t[27],m=t[28],h=t[29],g=t[30],_=t[31];let C;t[46]!==y||t[47]!==b?(C=(0,M.jsx)(`ul`,{className:y,children:b}),t[46]=y,t[47]=b,t[48]=C):C=t[48],t[49]!==x||t[50]!==S||t[51]!==C?(l=(0,M.jsxs)(`div`,{className:x,children:[S,C]}),t[49]=x,t[50]=S,t[51]=C,t[52]=l):l=t[52],d=`flex flex-col gap-2.5`;let w=v.length?(0,M.jsxs)(Od,{art:`cyan`,children:[v.length,` bereit`]}):(0,M.jsx)(Od,{children:`aktuell`});t[53]===w?f=t[54]:(f=(0,M.jsx)(Zf,{titel:`Bausteine`,rechts:w}),t[53]=w,t[54]=f),c=`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`;let T;t[55]===s?T=t[56]:(T=e=>{let t=rp(e),n=s(e.id===`engine`?`motor`:e.id);return(0,M.jsx)(`li`,{children:(0,M.jsx)(tp,{to:`/box/updates`,bild:zd(e.id),name:e.name.replace(/ \(llama\.cpp\)$/,``),unter:t.unter,updates:t.updates,knopf:!!e.aktion,punkt:n?np[n.zustand]:null,zustandText:n?.wert})},e.id)},t[55]=s,t[56]=T),u=e.map(T),t[0]=a.data?.models,t[1]=a.data?.running,t[2]=r.data,t[3]=n,t[4]=i.data?.ziele,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=g,t[16]=_}else o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],g=t[15],_=t[16];let v;t[57]!==c||t[58]!==u?(v=(0,M.jsx)(`ul`,{className:c,children:u}),t[57]=c,t[58]=u,t[59]=v):v=t[59];let y;t[60]!==v||t[61]!==d||t[62]!==f?(y=(0,M.jsxs)(`div`,{className:d,children:[f,v]}),t[60]=v,t[61]=d,t[62]=f,t[63]=y):y=t[63];let b;t[64]===s?b=t[65]:(b=(0,M.jsx)(Zf,{titel:`Als Nächstes`,rechts:[`jobs`,`sicherung`].map(e=>s(e)).filter(lp).map(cp)}),t[64]=s,t[65]=b);let x;t[66]===r.data?.flugplan.geplant?x=t[67]:(x=r.data?.flugplan.geplant??[],t[66]=r.data?.flugplan.geplant,t[67]=x);let S;t[68]===x?S=t[69]:(S=x.slice(0,4),t[68]=x,t[69]=S);let C;t[70]===S?C=t[71]:(C=(0,M.jsx)(ip,{eintraege:S}),t[70]=S,t[71]=C);let w;t[72]!==b||t[73]!==C?(w=(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[b,C]}),t[72]=b,t[73]=C,t[74]=w):w=t[74];let T;return t[75]!==o||t[76]!==l||t[77]!==y||t[78]!==w||t[79]!==p||t[80]!==m||t[81]!==h||t[82]!==g||t[83]!==_?(T=(0,M.jsxs)(o,{bereich:p,verbindung:m,i:h,unterzeile:g,children:[_,l,y,w]}),t[75]=o,t[76]=l,t[77]=y,t[78]=w,t[79]=p,t[80]=m,t[81]=h,t[82]=g,t[83]=_,t[84]=T):T=t[84],T}function cp(e){return(0,M.jsxs)(`span`,{className:`hidden items-center gap-1.5 text-[12.5px] text-text-3 sm:flex`,children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`size-1.5 rounded-full`,jd[np[e.zustand]])}),e.label,` `,e.wert]},e.id)}function lp(e){return!!e}function up(e){return e.zustand===`neu`}function dp(e){return e.art===`ki-box`}var fp={ok:`bg-lab`,gelb:`bg-bernstein`,rot:`bg-rot`,keine:`bg-text-3`};function pp(e){let t=(0,B.c)(31),{speicher:n}=e;if(!n)return null;let r;t[0]===n.pools?r=t[1]:(r=n.pools.find(hp)??n.pools[0],t[0]=n.pools,t[1]=r);let i=r,a=n.nas[0],o=n.sicherungen,s;if(t[2]!==a||t[3]!==i||t[4]!==o.stufe||t[5]!==o.zuletzt){if(s=[],i){let e=i.anteil,n;t[7]===i.anteil?n=t[8]:(n=Math.round(i.anteil*100),t[7]=i.anteil,t[8]=n);let r;t[9]===i.frei?r=t[10]:(r=Pf(i.frei),t[9]=i.frei,t[10]=r);let a=`${n} % · ${r} frei`,o;t[11]!==i.anteil||t[12]!==i.stufe||t[13]!==a?(o={label:`Speicherpool`,anteil:e,text:a,stufe:i.stufe},t[11]=i.anteil,t[12]=i.stufe,t[13]=a,t[14]=o):o=t[14],s.push(o)}if(a){let e=a.gesamt!=null&&a.belegt!=null?a.gesamt-a.belegt:null,n;t[15]!==e||t[16]!==a.anteil||t[17]!==a.problem?(n=a.anteil==null?a.problem??`kein Stand`:`${Math.round(a.anteil*100)} % · ${Pf(e)} frei`,t[15]=e,t[16]=a.anteil,t[17]=a.problem,t[18]=n):n=t[18];let r;t[19]!==a.anteil||t[20]!==a.stufe||t[21]!==n?(r={label:`NAS`,anteil:a.anteil,stufe:a.stufe,text:n},t[19]=a.anteil,t[20]=a.stufe,t[21]=n,t[22]=r):r=t[22],s.push(r)}let e;t[23]===o.zuletzt?e=t[24]:(e=o.zuletzt?$s(new Date(o.zuletzt*1e3).toISOString()).toLowerCase():`noch keine`,t[23]=o.zuletzt,t[24]=e);let n;t[25]!==o.stufe||t[26]!==e?(n={label:`Sicherungen`,anteil:null,stufe:o.stufe,text:e},t[25]=o.stufe,t[26]=e,t[27]=n):n=t[27],s.push(n),t[2]=a,t[3]=i,t[4]=o.stufe,t[5]=o.zuletzt,t[6]=s}else s=t[6];let c;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,M.jsx)(Zf,{titel:`Speicher und Sicherungen`}),t[28]=c):c=t[28];let l;return t[29]===s?l=t[30]:(l=(0,M.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[c,(0,M.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-3`,children:s.map(mp)})]}),t[29]=s,t[30]=l),l}function mp(e){return(0,M.jsx)(`li`,{children:(0,M.jsxs)(ea,{to:`/homelab`,className:`flaeche-innen flex h-full flex-col gap-2 rounded-xl px-3 py-2.5 transition-colors hover:border-white/20 hover:bg-white/[0.05]`,children:[(0,M.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,M.jsx)(`span`,{className:`text-[13.5px] font-medium`,children:e.label}),(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`size-1.5 rounded-full`,fp[e.stufe])})]}),(0,M.jsx)(`span`,{className:`truncate text-[12.5px] text-text-3`,children:e.text}),e.anteil!=null&&(0,M.jsx)(`span`,{"aria-hidden":!0,className:`h-1 overflow-hidden rounded-full bg-white/[0.08]`,children:(0,M.jsx)(`span`,{className:o(`block h-full rounded-full`,e.stufe===`ok`?`bg-lab/80`:fp[e.stufe]),style:{width:`${Math.max(2,Math.round(e.anteil*100))}%`}})})]})},e.label)}function hp(e){return e.aktiv}function gp(e){let t=(0,B.c)(17),{verbindung:n}=e,r=n===`online`,i=Rc(r),a=Vc(r),o=rl(r),s;t[0]===i.data?.ziele?s=t[1]:(s=i.data?.ziele??[],t[0]=i.data?.ziele,t[1]=s);let c=s,l;t[2]===c?l=t[3]:(l=c.filter(yp),t[2]=c,t[3]=l);let u=l.length,d;t[4]===c?d=t[5]:(d=c.filter(vp),t[4]=c,t[5]=d);let f=d.length,p=c.length?`Proxmox VE · ${f} Gäste`:`Proxmox VE`,m;t[6]!==r||t[7]!==u||t[8]!==a||t[9]!==i.isPending||t[10]!==o||t[11]!==c?(m=r?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)($f,{hinweise:a.data?.hinweise??[],ziel:`/homelab`}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,M.jsx)(Zf,{titel:`Geräte`,rechts:(0,M.jsxs)(`span`,{className:`text-[13px] text-text-3`,children:[u,` von `,c.length,` erreichbar`]})}),i.isPending&&c.length===0&&(0,M.jsx)(`p`,{className:`text-sm text-text-3`,children:`Wird gelesen …`}),(0,M.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:c.map(_p)})]}),(0,M.jsx)(pp,{speicher:o.data})]}):(0,M.jsx)(`p`,{className:`text-sm text-text-2`,children:`Der Homelab-Teil antwortet gerade nicht; die Karte zeigt nichts Veraltetes.`}),t[6]=r,t[7]=u,t[8]=a,t[9]=i.isPending,t[10]=o,t[11]=c,t[12]=m):m=t[12];let h;return t[13]!==p||t[14]!==m||t[15]!==n?(h=(0,M.jsx)(Qf,{bereich:`homelab`,verbindung:n,i:3,unterzeile:p,children:m}),t[13]=p,t[14]=m,t[15]=n,t[16]=h):h=t[16],h}function _p(e){let t=zf(e),n=e.erreichbar===!1?`rot`:e.erreichbar?`ok`:`aus`;return(0,M.jsx)(`li`,{children:(0,M.jsx)(tp,{to:t?`/homelab/updates`:`/homelab`,bild:Fd(e),name:Lu(e),unter:Fu(e),punkt:n,zustandText:e.erreichbar===!1?`antwortet nicht`:e.erreichbar?`erreichbar`:`kein Stand`,updates:t?.teile??[],knopf:t?.knopf??!1})},e.id)}function vp(e){return e.art!==`proxmox-host`}function yp(e){return e.erreichbar}var bp={eingespielt:`gruen`,gruen:`gruen`,zurueckgerollt:`bernstein`,gelb:`bernstein`,fehler:`rot`,rot:`rot`,neustart:`cyan`,info:`cyan`,aufgeraeumt:`gruen`},xp={zurueckgerollt:`zurückgerollt`,aufgeraeumt:`aufgeräumt`,neustart:`Neustart`,fehler:`Fehler`,zurueckgesetzt:`zurückgesetzt`,geloescht:`gelöscht`},Sp={gruen:`bg-gruen`,bernstein:`bg-bernstein`,rot:`bg-rot`,cyan:`bg-cyan`,grau:`bg-white/30`};function Cp(e){let t=(0,B.c)(5),{homelabAktiv:n}=e,r=hc(),i=zc(n),a;if(t[0]!==r.data?.laeufe||t[1]!==i.data?.laeufe){let e=[...(r.data?.laeufe??[]).slice(0,8).map(Dp),...(i.data?.laeufe??[]).filter(Ep).slice(0,8).map(Tp)].sort(wp).slice(0,8),n;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(n=Wf(4),t[3]=n):n=t[3];let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,M.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,M.jsx)(`h2`,{className:`text-[17px] leading-tight font-semibold`,children:`Zuletzt eingespielt`}),(0,M.jsx)(`span`,{className:`hidden text-[13px] text-text-3 sm:inline`,children:`beide Bereiche, neueste zuerst`})]}),t[4]=s):s=t[4],a=(0,M.jsxs)(`section`,{"aria-label":`Zuletzt eingespielt`,className:`auftauchen flaeche flex flex-col gap-4 rounded-3xl p-5 sm:p-6`,style:n,children:[s,e.length===0?(0,M.jsx)(`p`,{className:`text-[15px] text-text-2`,children:`Noch keine Updates aufgezeichnet.`}):(0,M.jsx)(`ol`,{className:`m-0 grid list-none gap-x-8 p-0 lg:grid-flow-col lg:grid-cols-2 lg:grid-rows-[repeat(var(--zeilen),auto)]`,style:{"--zeilen":Math.ceil(e.length/2)},children:e.map((t,n)=>(0,M.jsxs)(`li`,{className:o(`grid grid-cols-[10px_minmax(0,1fr)_auto] items-center gap-x-3 border-t border-white/[0.06] py-2.5`,n===0&&`border-t-0`,n===Math.ceil(e.length/2)&&`lg:border-t-0`),children:[(0,M.jsx)(`span`,{"aria-hidden":!0,className:o(`size-2.5 rounded-full`,Sp[t.art])}),(0,M.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,M.jsxs)(`span`,{className:`truncate text-[14.5px]`,children:[(0,M.jsx)(`span`,{className:o(`etikett mr-2 text-[10px] tracking-[0.12em]`,Hf[t.bereich].text),children:Hf[t.bereich].name}),t.titel]}),(0,M.jsx)(`span`,{className:`ziffern text-[12px] text-text-3`,children:$s(new Date(t.zeit).toISOString()).toLowerCase()})]}),(0,M.jsx)(Od,{art:t.art,children:t.chip})]},`${t.bereich}-${t.zeit}-${t.titel}`))})]}),t[0]=r.data?.laeufe,t[1]=i.data?.laeufe,t[2]=a}else a=t[2];return a}function wp(e,t){return t.zeit-e.zeit}function Tp(e){return{zeit:e.start*1e3,bereich:`homelab`,titel:e.name,chip:e.ergebnis?xp[e.ergebnis]??e.ergebnis:`unterbrochen`,art:(e.ergebnis?bp[e.ergebnis]:`grau`)??`grau`}}function Ep(e){return e.status!==`laeuft`&&!Ef(e)&&e.baustein!==`probe`}function Dp(e){return{zeit:new Date(e.start).getTime(),bereich:`box`,titel:e.anlass,chip:e.titel,art:bp[e.stufe]??`grau`}}function Op(){let e=(0,B.c)(120),t=X(),n=cc(),r=Lc(),i=t.homelab.verbindung===`online`,a=Rc(i),s=Vc(i);if(n.isPending&&!n.data){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,M.jsx)(kd,{text:`Die Übersicht sammelt sich gleich …`}),e[0]=t):t=e[0],t}let c,l,u,d,f,p,m,h,g,_;if(e[1]!==r.data?.ziele||e[2]!==a.data?.ziele||e[3]!==i||e[4]!==s.data?.hinweise||e[5]!==t.box.updates||e[6]!==t.box.verbindung||e[7]!==t.homelab.updates||e[8]!==t.homelab.verbindung||e[9]!==n.data||e[10]!==n.isError){let o=[...t.box.verbindung===`getrennt`&&n.isError?[`Die KI-Box`]:[],...t.homelab.verbindung===`getrennt`?[`Der Homelab-Teil`]:[]],v=a.data?.ziele??[],y=v.filter(Np).map(Mp),b;e[21]===n.data?.hinweise?b=e[22]:(b=n.data?.hinweise??[],e[21]=n.data?.hinweise,e[22]=b);let x;e[23]===s.data?.hinweise?x=e[24]:(x=s.data?.hinweise??[],e[23]=s.data?.hinweise,e[24]=x);let S;e[25]!==b||e[26]!==x?(S=[...b,...x],e[25]=b,e[26]=x,e[27]=S):S=e[27],c=S,h=c.some(jp),_=t.box.updates+t.homelab.updates;let C;e[28]===c?C=e[29]:(C=c.filter(Ap),e[28]=c,e[29]=C),d=Bf({getrennt:o,stumm:y,hinweiseRot:C.length,hinweise:c.length,updates:_}),u=Vf[d.stufe],p=n.data?.flugplan.geplant[0];let w;e[30]===p?w=e[31]:(w=p?op($s(p.zeit)):[``,`–`],e[30]=p,e[31]=w),[m,f]=w,l=n.data?.zustand.stand;let T;e[32]===r.data?.ziele?T=e[33]:(T=r.data?.ziele.find(kp),e[32]=r.data?.ziele,e[33]=T);let E=T?.name??`KI-Box`,D=n.isError?`rot`:n.data?`ok`:`aus`,O;e[34]!==E||e[35]!==D?(O={id:`ki-box`,name:E,zustand:D},e[34]=E,e[35]=D,e[36]=O):O=e[36];let k;e[37]===i?k=e[38]:(k=e=>({id:e.id,name:e.name,zustand:i?e.erreichbar===!1?`rot`:e.erreichbar?`ok`:`aus`:`aus`}),e[37]=i,e[38]=k),g=[O,...v.map(k)],e[1]=r.data?.ziele,e[2]=a.data?.ziele,e[3]=i,e[4]=s.data?.hinweise,e[5]=t.box.updates,e[6]=t.box.verbindung,e[7]=t.homelab.updates,e[8]=t.homelab.verbindung,e[9]=n.data,e[10]=n.isError,e[11]=c,e[12]=l,e[13]=u,e[14]=d,e[15]=f,e[16]=p,e[17]=m,e[18]=h,e[19]=g,e[20]=_}else c=e[11],l=e[12],u=e[13],d=e[14],f=e[15],p=e[16],m=e[17],h=e[18],g=e[19],_=e[20];let v=g,y;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(y=Wf(0),e[39]=y):y=e[39];let b=`radial-gradient(closest-side, color-mix(in srgb, ${u.glut} 20%, transparent), transparent)`,x;e[40]===b?x=e[41]:(x=(0,M.jsx)(`div`,{"aria-hidden":!0,className:`glut-atmet pointer-events-none absolute -top-48 -left-40 size-[560px] rounded-full`,style:{background:b}}),e[40]=b,e[41]=x);let S;e[42]!==u.glut||e[43]!==v?(S=(0,M.jsx)(Cf,{segmente:v,glut:u.glut}),e[42]=u.glut,e[43]=v,e[44]=S):S=e[44];let C=u.Symbol,w;e[45]===u.symbol?w=e[46]:(w=o(`size-4`,u.symbol),e[45]=u.symbol,e[46]=w);let T;e[47]!==u.Symbol||e[48]!==w?(T=(0,M.jsx)(C,{className:w,"aria-hidden":!0}),e[47]=u.Symbol,e[48]=w,e[49]=T):T=e[49];let E;e[50]===l?E=e[51]:(E=l?` · geprüft ${Uf.format(new Date(l*1e3))}`:``,e[50]=l,e[51]=E);let D;e[52]!==T||e[53]!==E?(D=(0,M.jsxs)(`span`,{className:`etikett flex items-center gap-2 text-[11px] text-text-3`,children:[T,`Gesamtlage`,E]}),e[52]=T,e[53]=E,e[54]=D):D=e[54];let O;e[55]===u.titel?O=e[56]:(O=o(`text-[32px] leading-[1.05] font-semibold tracking-[-0.015em] sm:text-[44px]`,u.titel),e[55]=u.titel,e[56]=O);let k;e[57]!==d.titel||e[58]!==O?(k=(0,M.jsx)(`h2`,{className:O,children:d.titel}),e[57]=d.titel,e[58]=O,e[59]=k):k=e[59];let ee;e[60]===d.text?ee=e[61]:(ee=(0,M.jsx)(`p`,{className:`text-[15px] text-text-2 sm:text-base`,children:d.text}),e[60]=d.text,e[61]=ee);let A;e[62]===t.box.verbindung?A=e[63]:(A=(0,M.jsx)(qf,{bereich:`box`,verbindung:t.box.verbindung}),e[62]=t.box.verbindung,e[63]=A);let te;e[64]===t.homelab.verbindung?te=e[65]:(te=(0,M.jsx)(qf,{bereich:`homelab`,verbindung:t.homelab.verbindung}),e[64]=t.homelab.verbindung,e[65]=te);let ne;e[66]!==A||e[67]!==te?(ne=(0,M.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-2`,children:[A,te]}),e[66]=A,e[67]=te,e[68]=ne):ne=e[68];let re;e[69]!==k||e[70]!==ee||e[71]!==ne||e[72]!==D?(re=(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2.5`,children:[D,k,ee,ne]}),e[69]=k,e[70]=ee,e[71]=ne,e[72]=D,e[73]=re):re=e[73];let ie;e[74]!==re||e[75]!==S?(ie=(0,M.jsxs)(`div`,{className:`flex min-w-0 items-center gap-5 sm:gap-8`,children:[S,re]}),e[74]=re,e[75]=S,e[76]=ie):ie=e[76];let j=String(_),ae=_?`cyan`:`grau`,oe;e[77]===t.box.updates?oe=e[78]:(oe=(0,M.jsxs)(ea,{to:`/box/updates`,className:`hover:text-foreground`,children:[`KI-Box `,t.box.updates]}),e[77]=t.box.updates,e[78]=oe);let se;e[79]===t.homelab.updates?se=e[80]:(se=(0,M.jsxs)(ea,{to:`/homelab/updates`,className:`hover:text-foreground`,children:[`Homelab `,t.homelab.updates]}),e[79]=t.homelab.updates,e[80]=se);let ce;e[81]!==j||e[82]!==ae||e[83]!==oe||e[84]!==se?(ce=(0,M.jsxs)(Kf,{Icon:Mo,label:`Updates bereit`,wert:j,art:ae,children:[oe,` · `,se]}),e[81]=j,e[82]=ae,e[83]=oe,e[84]=se,e[85]=ce):ce=e[85];let le=h?Ko:qa,ue=String(c.length),de=h?`rot`:c.length?`bernstein`:`grau`,fe=c.length?`stehen oben in den Karten`:`nichts offen`,pe;e[86]!==le||e[87]!==ue||e[88]!==de||e[89]!==fe?(pe=(0,M.jsx)(Kf,{Icon:le,label:`Hinweise`,wert:ue,art:de,children:fe}),e[86]=le,e[87]=ue,e[88]=de,e[89]=fe,e[90]=pe):pe=e[90];let me=p?`${p.titel}${m&&m!==`heute`?` · ${m}`:``}`:`nichts geplant`,he;e[91]!==f||e[92]!==me?(he=(0,M.jsx)(Kf,{Icon:Ga,label:`Als Nächstes`,wert:f,art:`grau`,children:me}),e[91]=f,e[92]=me,e[93]=he):he=e[93];let N;e[94]!==ce||e[95]!==pe||e[96]!==he?(N=(0,M.jsxs)(`div`,{className:`grid gap-2.5 sm:grid-cols-3 xl:grid-cols-1`,children:[ce,pe,he]}),e[94]=ce,e[95]=pe,e[96]=he,e[97]=N):N=e[97];let ge;e[98]!==ie||e[99]!==N?(ge=(0,M.jsxs)(`div`,{className:`relative grid gap-6 p-5 sm:p-7 xl:grid-cols-[minmax(0,1fr)_minmax(0,340px)] xl:items-center xl:gap-10`,children:[ie,N]}),e[98]=ie,e[99]=N,e[100]=ge):ge=e[100];let P;e[101]!==x||e[102]!==ge?(P=(0,M.jsxs)(`section`,{"aria-label":`Gesamtlage`,className:`auftauchen flaeche relative overflow-hidden rounded-3xl`,style:y,children:[x,ge]}),e[101]=x,e[102]=ge,e[103]=P):P=e[103];let F;e[104]===i?F=e[105]:(F=(0,M.jsx)(Yf,{homelabAktiv:i}),e[104]=i,e[105]=F);let _e;e[106]===t.box.verbindung?_e=e[107]:(_e=(0,M.jsx)(sp,{verbindung:t.box.verbindung}),e[106]=t.box.verbindung,e[107]=_e);let ve;e[108]===t.homelab.verbindung?ve=e[109]:(ve=(0,M.jsx)(gp,{verbindung:t.homelab.verbindung}),e[108]=t.homelab.verbindung,e[109]=ve);let ye;e[110]!==_e||e[111]!==ve?(ye=(0,M.jsxs)(`div`,{className:`grid gap-5 md:gap-6 xl:grid-cols-2`,children:[_e,ve]}),e[110]=_e,e[111]=ve,e[112]=ye):ye=e[112];let be;e[113]===i?be=e[114]:(be=(0,M.jsx)(Cp,{homelabAktiv:i}),e[113]=i,e[114]=be);let xe;return e[115]!==P||e[116]!==F||e[117]!==ye||e[118]!==be?(xe=(0,M.jsxs)(M.Fragment,{children:[P,F,ye,be]}),e[115]=P,e[116]=F,e[117]=ye,e[118]=be,e[119]=xe):xe=e[119],xe}function kp(e){return e.art===`ki-box`}function Ap(e){return e.stufe===`rot`}function jp(e){return e.stufe===`rot`}function Mp(e){return e.name}function Np(e){return e.erreichbar===!1}var Pp=aa({component:Ed,notFoundComponent:()=>(0,M.jsx)(Li,{to:`/`})}),Fp=ra({getParentRoute:()=>Pp,path:`/`,component:Op}),Ip=ra({getParentRoute:()=>Pp,path:`/box`,component:z(()=>_d(()=>import(`./Start-DREQTawa.js`),__vite__mapDeps([5,1,3,6,7])),`StartSeite`)}),Lp=ra({getParentRoute:()=>Pp,path:`/box/updates`,component:z(()=>_d(()=>import(`./Updates-BT3dF9QL.js`),__vite__mapDeps([8,1,9,3,10,4,6,11])),`UpdatesSeite`)}),Rp=ra({getParentRoute:()=>Pp,path:`/box/modelle`,component:z(()=>_d(()=>import(`./Modelle-_bMeyIzl.js`),__vite__mapDeps([12,1,13,14,9,15,3,2,4,10,6,11,16])),`ModelleSeite`)}),zp=ra({getParentRoute:()=>Pp,path:`/box/monitoring`,component:z(()=>_d(()=>import(`./Monitoring-DuLD6OPr.js`),__vite__mapDeps([17,1,6,16])),`BoxMonitoringSeite`)}),Bp=ra({getParentRoute:()=>Pp,path:`/box/dienste`,component:z(()=>_d(()=>import(`./Dienste-BzHBz7yc.js`),__vite__mapDeps([18,1,3,10,4,6])),`DiensteSeite`)}),Vp=ra({getParentRoute:()=>Pp,path:`/homelab`,component:z(()=>_d(()=>import(`./Homelab-UeAs6wHb.js`),__vite__mapDeps([19,1,9,20,15,3,10,4,6,7])),`HomelabSeite`)}),Hp=ra({getParentRoute:()=>Pp,path:`/homelab/updates`,component:z(()=>_d(()=>import(`./Homelab-UeAs6wHb.js`),__vite__mapDeps([19,1,9,20,15,3,10,4,6,7])),`HomelabUpdatesSeite`)}),Up=ra({getParentRoute:()=>Pp,path:`/homelab/snapshots`,component:z(()=>_d(()=>import(`./HomelabSnapshots-CocdJ9DQ.js`),__vite__mapDeps([21,1,20,3,10,4,6])),`HomelabSnapshotsSeite`)}),Wp=ra({getParentRoute:()=>Pp,path:`/homelab/monitoring`,component:z(()=>_d(()=>import(`./Monitoring-DuLD6OPr.js`),__vite__mapDeps([17,1,6,16])),`HomelabMonitoringSeite`)}),Gp=ra({getParentRoute:()=>Pp,path:`/homelab/protokoll`,component:z(()=>_d(()=>import(`./HomelabProtokoll-DtbEOAHL.js`),__vite__mapDeps([22,1,9,15,6])),`HomelabProtokollSeite`)}),Kp=ra({getParentRoute:()=>Pp,path:`/einstellungen`,component:z(()=>_d(()=>import(`./Einstellungen-FJlJNgdq.js`),__vite__mapDeps([23,1,3,10,4])),`EinstellungenSeite`)}),qp=ra({getParentRoute:()=>Pp,path:`/updates`,beforeLoad:()=>{throw ln({to:`/box/updates`})}}),Jp=ra({getParentRoute:()=>Pp,path:`/modelle`,beforeLoad:({location:e})=>{throw ln({to:`/box/modelle`,hash:e.hash||void 0})}}),Yp=Sa({routeTree:Pp.addChildren([Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Wp,Gp,Kp,qp,Jp,Up]),defaultPreload:`intent`,defaultErrorComponent:Oa}),Xp=`mc_neuladen_wegen_version`;function Zp(){window.addEventListener(`vite:preloadError`,e=>{sessionStorage.getItem(Xp)||(e.preventDefault(),sessionStorage.setItem(Xp,`1`),window.location.reload())}),window.addEventListener(`load`,()=>{window.setTimeout(()=>sessionStorage.removeItem(Xp),5e3)})}Zp();var Qp=new ft({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:5e3}}});(0,Da.createRoot)(document.getElementById(`root`)).render((0,M.jsx)(j.StrictMode,{children:(0,M.jsx)(se,{client:Qp,children:(0,M.jsx)(Ta,{router:Yp})})}));export{Hc as $,_s as $t,ud as A,al as At,Uu as B,$s as Bt,Wd as C,Wc as Ct,Od as D,$c as Dt,Fd as E,Qc as Et,Zu as F,Uc as Ft,Jc as G,tc as Gt,Hu as H,ic as Ht,Yu as I,Sc as It,sl as J,Ds as Jt,qc as K,ac as Kt,Qu as L,hc as Lt,zu as M,cc as Mt,Fu as N,Gc as Nt,kd as O,tl as Ot,Lu as P,mc as Pt,_c as Q,gs as Qt,Vu as R,Bc as Rt,Zd as S,Mc as St,Rd as T,Nc as Tt,Ku as U,nc as Ut,Bu as V,rc as Vt,el as W,ec as Wt,Dc as X,ms as Xt,Ec as Y,xs as Yt,Xc as Z,vs as Zt,tf as _,L as _n,lc as _t,kf as a,U as an,zc as at,Jd as b,gc as bt,Mf as c,Ko as cn,il as ct,lf as d,so as dn,Fc as dt,ys as en,Oc as et,rf as f,Ya as fn,kc as ft,af as g,Ii as gn,jc as gt,cf as h,ea as hn,fc as ht,Df as i,is as in,Vc as it,fd as j,Kc as jt,_d as k,pc as kt,Of as l,Po as ln,rl as lt,sf as m,Ea as mn,wc as mt,If as n,bs as nn,Rc as nt,Af as o,ss as on,Zc as ot,nf as p,Na as pn,Cc as pt,cl as q,Hs as qt,Pf as r,hs as rn,ol as rt,Ef as s,Xo as sn,nl as st,Lf as t,Ss as tn,bc as tt,jf as u,Mo as un,Tc as ut,Yd as v,oe as vn,uc as vt,zd as w,Pc as wt,ef as x,dc as xt,Xd as y,ne as yn,Ic as yt,Ju as z,Ac as zt};