');function ur(){Dt(()=>{Hn()});const e=Ae(()=>Pe(()=>import("./Config-B-Lp_aW1.js"),[])),t=Ae(()=>Pe(()=>import("./History-DlXapsnh.js"),__vite__mapDeps([0,1]))),n=Ae(()=>Pe(()=>import("./HostPage-CWNBClYI.js"),__vite__mapDeps([2,1])));return[I(ar,{}),(()=>{var r=cr(),s=r.firstChild,o=s.firstChild;return O(o,I(Pn,{get children(){return[I(ue,{path:"/",component:ir}),I(ue,{path:"/config",component:e}),I(ue,{path:"/history",component:t}),I(ue,{path:"/host/:id",component:n})]}})),r})()]}const fr=document.getElementById("root");Jt(()=>I(ur,{}),fr);export{pt as F,ve as S,mr as a,X as b,L as c,W as d,I as e,Y as f,br as g,te as h,O as i,R as j,Jn as k,le as l,Qe as m,yr as n,Dt as o,vr as p,Sr as q,wr as r,me as s,D as t,gr as u,pr as v,$r as w};
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["fs/public/assets/History.js","fs/public/assets/MacHistory.js","fs/public/assets/HostPage.js"])))=>i.map(i=>d[i]);
+(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const b={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return qe(this.context.count)},getNextContextId(){return qe(this.context.count++)}};function qe(e){const t=String(e),n=t.length-1;return b.context.id+(n?String.fromCharCode(96+n):"")+t}function re(e){b.context=e}const rt=!1,Pt=(e,t)=>e===t,Le=Symbol("solid-proxy"),kt=typeof Proxy=="function",Et=Symbol("solid-track"),de={equals:Pt};let st=dt;const q=1,he=2,ot={owned:null,cleanups:null,context:null,owner:null},xe={};var v=null;let _e=null,It=null,$=null,N=null,V=null,we=0;function se(e,t){const n=$,r=v,s=e.length===0,o=t===void 0?r:t,i=s?ot:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=s?e:()=>e(()=>j(()=>ie(i)));v=i,$=null;try{return K(l,!0)}finally{$=n,v=r}}function L(e,t){t=t?Object.assign({},de,t):de;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),ft(n,s));return[ut.bind(n),r]}function Lt(e,t,n){const r=ye(e,t,!0,q);ee(r)}function X(e,t,n){const r=ye(e,t,!1,q);ee(r)}function Rt(e,t,n){st=Bt;const r=ye(e,t,!1,q);r.user=!0,V?V.push(r):ee(r)}function R(e,t,n){n=n?Object.assign({},de,n):de;const r=ye(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ee(r),ut.bind(r)}function Ot(e){return e&&typeof e=="object"&&"then"in e}function Nt(e,t,n){let r,s,o;r=!0,s=e,o={};let i=null,l=xe,a=null,c=!1,f="initialValue"in o,u=typeof r=="function"&&R(r);const p=new Set,[h,w]=(o.storage||L)(o.initialValue),[d,g]=L(void 0),[y,m]=L(void 0,{equals:!1}),[S,x]=L(f?"ready":"unresolved");b.context&&(a=b.getNextContextId(),o.ssrLoadFrom==="initial"?l=o.initialValue:b.load&&b.has(a)&&(l=b.load(a)));function _(k,A,E,G){return i===k&&(i=null,G!==void 0&&(f=!0),(k===l||A===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(G,{value:A})),l=xe,T(A,E)),A}function T(k,A){K(()=>{A===void 0&&w(()=>k),x(A!==void 0?"errored":f?"ready":"unresolved"),g(A);for(const E of p.keys())E.decrement();p.clear()},!1)}function H(){const k=Ft,A=h(),E=d();if(E!==void 0&&!i)throw E;return $&&$.user,A}function U(k=!0){if(k!==!1&&c)return;c=!1;const A=u?u():r;if(A==null||A===!1){_(i,j(h));return}const E=l!==xe?l:j(()=>s(A,{value:h(),refetching:k}));return Ot(E)?(i=E,"value"in E?(E.status==="success"?_(i,E.value,void 0,A):_(i,void 0,Re(E.value),A),E):(c=!0,queueMicrotask(()=>c=!1),K(()=>{x(f?"refreshing":"pending"),m()},!1),E.then(G=>_(E,G,void 0,A),G=>_(E,void 0,Re(G),A)))):(_(i,E,void 0,A),E)}return Object.defineProperties(H,{state:{get:()=>S()},error:{get:()=>d()},loading:{get(){const k=S();return k==="pending"||k==="refreshing"}},latest:{get(){if(!f)return H();const k=d();if(k&&!i)throw k;return h()}}}),u?Lt(()=>U(!1)):U(!1),[H,{refetch:U,mutate:w}]}function Tt(e){return K(e,!1)}function j(e){if($===null)return e();const t=$;$=null;try{return e()}finally{$=t}}function je(e,t,n){const r=Array.isArray(e);let s,o=n&&n.defer;return i=>{let l;if(r){l=Array(e.length);for(let c=0;c
t(l,s,i));return s=l,a}}function Dt(e){Rt(()=>j(e))}function Fe(e){return v===null||(v.cleanups===null?v.cleanups=[e]:v.cleanups.push(e)),e}function it(){return v}function lt(e,t){const n=v,r=$;v=e,$=null;try{return K(t,!0)}catch(s){Ue(s)}finally{v=n,$=r}}function jt(e){const t=$,n=v;return Promise.resolve().then(()=>{$=t,v=n;let r;return K(e,!1),$=v=null,r?r.done:void 0})}const[dr,hr]=L(!1);function at(e,t){const n=Symbol("context");return{id:n,Provider:Kt(n),defaultValue:e}}function ct(e){let t;return v&&v.context&&(t=v.context[e.id])!==void 0?t:e.defaultValue}function He(e){const t=R(e),n=R(()=>Oe(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Ft;function ut(){if(this.sources&&this.state)if(this.state===q)ee(this);else{const e=N;N=null,K(()=>ge(this),!1),N=e}if($){const e=this.observers?this.observers.length:0;$.sources?($.sources.push(this),$.sourceSlots.push(e)):($.sources=[this],$.sourceSlots=[e]),this.observers?(this.observers.push($),this.observerSlots.push($.sources.length-1)):(this.observers=[$],this.observerSlots=[$.sources.length-1])}return this.value}function ft(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&K(()=>{for(let s=0;s1e6)throw N=[],new Error},!1)),t}function ee(e){if(!e.fn)return;ie(e);const t=we;Ht(e,e.value,t)}function Ht(e,t,n){let r;const s=v,o=$;$=v=e;try{r=e.fn(t)}catch(i){return e.pure&&(e.state=q,e.owned&&e.owned.forEach(ie),e.owned=null),e.updatedAt=n+1,Ue(i)}finally{$=o,v=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?ft(e,r):e.value=r,e.updatedAt=n)}function ye(e,t,n,r=q,s){const o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:v,context:v?v.context:null,pure:n};return v===null||v!==ot&&(v.owned?v.owned.push(o):v.owned=[o]),o}function pe(e){if(e.state===0)return;if(e.state===he)return ge(e);if(e.suspense&&j(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;n--)if(e=t[n],e.state===q)ee(e);else if(e.state===he){const r=N;N=null,K(()=>ge(e,t[0]),!1),N=r}}function K(e,t){if(N)return e();let n=!1;t||(N=[]),V?n=!0:V=[],we++;try{const r=e();return Ut(n),r}catch(r){n||(V=null),N=null,Ue(r)}}function Ut(e){if(N&&(dt(N),N=null),e)return;const t=V;V=null,t.length&&K(()=>st(t),!1)}function dt(e){for(let t=0;t=0;t--)ie(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ie(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Re(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Ue(e,t=v){throw Re(e)}function Oe(e){if(typeof e=="function"&&!e.length)return Oe(e());if(Array.isArray(e)){const t=[];for(let n=0;ns=j(()=>(v.context={...v.context,[e]:r.value},He(()=>r.children))),void 0),s}}const Mt=Symbol("fallback");function We(e){for(let t=0;t1?[]:null;return Fe(()=>We(o)),()=>{let a=e()||[],c=a.length,f,u;return a[Et],j(()=>{let h,w,d,g,y,m,S,x,_;if(c===0)i!==0&&(We(o),o=[],r=[],s=[],i=0,l&&(l=[])),n.fallback&&(r=[Mt],s[0]=se(T=>(o[0]=T,n.fallback())),i=1);else if(i===0){for(s=new Array(c),u=0;u=m&&x>=m&&r[S]===a[x];S--,x--)d[x]=s[S],g[x]=o[S],l&&(y[x]=l[S]);for(h=new Map,w=new Array(x+1),u=x;u>=m;u--)_=a[u],f=h.get(_),w[u]=f===void 0?-1:f,h.set(_,u);for(f=m;f<=S;f++)_=r[f],u=h.get(_),u!==void 0&&u!==-1?(d[u]=s[f],g[u]=o[f],l&&(y[u]=l[f]),u=w[u],h.set(_,u)):o[f]();for(u=m;ue(t||{}))}function ce(){return!0}const qt={get(e,t,n){return t===Le?n:e.get(t)},has(e,t){return t===Le?!0:e.has(t)},set:ce,deleteProperty:ce,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ce,deleteProperty:ce}},ownKeys(e){return e.keys()}};function Ce(e){return(e=typeof e=="function"?e():e)?e:{}}function Wt(){for(let e=0,t=this.length;e=0;l--){const a=Ce(e[l])[i];if(a!==void 0)return a}},has(i){for(let l=e.length-1;l>=0;l--)if(i in Ce(e[l]))return!0;return!1},keys(){const i=[];for(let l=0;l=0;i--){const l=e[i];if(!l)continue;const a=Object.getOwnPropertyNames(l);for(let c=a.length-1;c>=0;c--){const f=a[c];if(f==="__proto__"||f==="constructor")continue;const u=Object.getOwnPropertyDescriptor(l,f);if(!r[f])r[f]=u.get?{enumerable:!0,configurable:!0,get:Wt.bind(n[f]=[u.get.bind(l)])}:u.value!==void 0?u:void 0;else{const p=n[f];p&&(u.get?p.push(u.get.bind(l)):u.value!==void 0&&p.push(()=>u.value))}}}const s={},o=Object.keys(r);for(let i=o.length-1;i>=0;i--){const l=o[i],a=r[l];a&&a.get?Object.defineProperty(s,l,a):s[l]=a?a.value:void 0}return s}function Ae(e){let t,n;const r=s=>{const o=b.context;if(o){const[l,a]=L();b.count||(b.count=0),b.count++,(n||(n=e())).then(c=>{!b.done&&re(o),b.count--,a(()=>c.default),re()}),t=l}else if(!t){const[l]=Nt(()=>(n||(n=e())).then(a=>a.default));t=l}let i;return R(()=>(i=t())?j(()=>{if(!o||b.done)return i(s);const l=b.context;re(o);const a=i(s);return re(l),a}):"")};return r.preload=()=>n||((n=e()).then(s=>t=()=>s.default),n),r}const Xt=e=>`Stale read from <${e}>.`;function pt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return R(Vt(()=>e.each,e.children,t||void 0))}function ve(e){const t=e.keyed,n=R(()=>e.when,void 0,void 0),r=t?n:R(n,void 0,{equals:(s,o)=>!s==!o});return R(()=>{const s=r();if(s){const o=e.children;return typeof o=="function"&&o.length>0?j(()=>o(t?s:()=>{if(!j(r))throw Xt("Show");return n()})):o}return e.fallback},void 0,void 0)}function Yt(e,t,n){let r=n.length,s=t.length,o=r,i=0,l=0,a=t[s-1].nextSibling,c=null;for(;if-l){const w=t[i];for(;l{s=o,t===document?e():O(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{s(),t.textContent=""}}function D(e,t,n,r){let s;const o=()=>{const l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},i=()=>(s||(s=o())).cloneNode(!0);return i.cloneNode=i,i}function te(e,t=window.document){const n=t[Ge]||(t[Ge]=new Set);for(let r=0,s=e.length;rbe(e,t(),s,n),r)}function Be(e){return!!b.context&&!b.done&&(!e||e.isConnected)}function Qt(e){if(b.registry&&b.events&&b.events.find(([a,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,o=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),i=()=>{const a=t[n];if(a&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?a.call(t,c,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},l=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),b.registry&&!b.done&&(b.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();o(a[0]);for(let c=0;c{let a=t();for(;typeof a=="function";)a=a();n=be(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],c=n&&Array.isArray(n);if(Ne(a,t,n,s))return X(()=>n=be(e,a,n,r,!0)),()=>n;if(o){if(!a.length)return n;if(r===void 0)return n=[...e.childNodes];let f=a[0];if(f.parentNode!==e)return n;const u=[f];for(;(f=f.nextSibling)!==r;)u.push(f);return n=u}if(a.length===0){if(n=z(e,n,r),l)return n}else c?n.length===0?Xe(e,a,r):Yt(e,n,a):(n&&z(e),Xe(e,a));n=a}else if(t.nodeType){if(o&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=z(e,n,r,t);z(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Ne(e,t,n,r){let s=!1;for(let o=0,i=t.length;o=0;i--){const l=t[i];if(s!==l){const a=l.parentNode===e;!o&&!i?a?e.replaceChild(s,l):e.insertBefore(s,n):a&&l.remove()}else o=!0}}else e.insertBefore(s,n);return[s]}const Zt=!1,zt="modulepreload",en=function(e){return"/"+e},Ye={},Pe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=en(a),a in Ye)return;Ye[a]=!0;const c=a.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${f}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":zt,c||(u.as="script"),u.crossOrigin="",u.href=a,l&&u.setAttribute("nonce",l),document.head.appendChild(u),c)return new Promise((p,h)=>{u.addEventListener("load",p),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function gt(){let e=new Set;function t(s){return e.add(s),()=>e.delete(s)}let n=!1;function r(s,o){if(n)return!(n=!1);const i={to:s,options:o,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(const l of e)l.listener({...i,from:l.location,retry:a=>{a&&(n=!0),l.navigate(s,{...o,resolve:!1})}});return!i.defaultPrevented}return{subscribe:t,confirm:r}}let Te;function Ke(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Te=window.history.state._depth}Ke();function tn(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function nn(e,t){let n=!1;return()=>{const r=Te;Ke();const s=r==null?null:Te-r;if(n){n=!1;return}s&&t(s)?(n=!0,window.history.go(-s)):e()}}const rn=/^(?:[a-z0-9]+:)?\/\//i,sn=/^\/+|(\/)\/+$/g,mt="http://sr";function oe(e,t=!1){const n=e.replace(sn,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function fe(e,t,n){if(rn.test(t))return;const r=oe(e),s=n&&oe(n);let o="";return!s||t.startsWith("/")?o=r:s.toLowerCase().indexOf(r.toLowerCase())!==0?o=r+s:o=s,(o||"/")+oe(t,!o)}function on(e,t){if(e==null)throw new Error(t);return e}function ln(e,t){return oe(e).replace(/\/*(\*.*)?$/g,"")+oe(t)}function bt(e){const t={};return e.searchParams.forEach((n,r)=>{r in t?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n}),t}function an(e,t,n){const[r,s]=e.split("/*",2),o=r.split("/").filter(Boolean),i=o.length;return l=>{const a=l.split("/").filter(Boolean),c=a.length-i;if(c<0||c>0&&s===void 0&&!t)return null;const f={path:i?"":"/",params:{}},u=p=>n===void 0?void 0:n[p];for(let p=0;pr===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function cn(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((s,o)=>s+(o.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function wt(e){const t=new Map,n=it();return new Proxy({},{get(r,s){return t.has(s)||lt(n,()=>t.set(s,R(()=>e()[s]))),t.get(s)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function yt(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const s=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)s.push(n+=t[1]),r=r.slice(t[0].length);return yt(r).reduce((o,i)=>[...o,...s.map(l=>l+i)],[])}const un=100,vt=at(),$t=at(),fn=()=>on(ct(vt)," and 'use' router primitives can be only used inside a Route."),gr=()=>fn().params;function dn(e,t=""){const{component:n,preload:r,load:s,children:o,info:i}=e,l=!o||Array.isArray(o)&&!o.length,a={key:e,component:n,preload:r||s,info:i};return St(e.path).reduce((c,f)=>{for(const u of yt(f)){const p=ln(t,u);let h=l?p:p.split("/*",1)[0];h=h.split("/").map(w=>w.startsWith(":")||w.startsWith("*")?w:encodeURIComponent(w)).join("/"),c.push({...a,originalPath:f,pattern:h,matcher:an(h,!l,e.matchFilters)})}return c},[])}function hn(e,t=0){return{routes:e,score:cn(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let s=e.length-1;s>=0;s--){const o=e[s],i=o.matcher(n);if(!i)return null;r.unshift({...i,route:o})}return r}}}function St(e){return Array.isArray(e)?e:[e]}function xt(e,t="",n=[],r=[]){const s=St(e);for(let o=0,i=s.length;oi.score-o.score)}function Ee(e,t){for(let n=0,r=e.length;n{const u=e();try{return new URL(u,r)}catch{return console.error(`Invalid path ${u}`),f}},r,{equals:(f,u)=>f.href===u.href}),o=R(()=>s().pathname),i=R(()=>s().search,!0),l=R(()=>s().hash),a=()=>"",c=je(i,()=>bt(s()));return{get pathname(){return o()},get search(){return i()},get hash(){return l()},get state(){return t()},get key(){return a()},query:n?n(c):wt(c)}}let J;function gn(){return J}function mn(e,t,n,r={}){const{signal:[s,o],utils:i={}}=e,l=i.parsePath||(C=>C),a=i.renderPath||(C=>C),c=i.beforeLeave||gt(),f=fe("",r.base||"");if(f===void 0)throw new Error(`${f} is not a valid base path`);f&&!s().value&&o({value:f,replace:!0,scroll:!1});const[u,p]=L(!1);let h;const w=(C,P)=>{P.value===d()&&P.state===y()||(h===void 0&&p(!0),J=C,h=P,jt(()=>{h===P&&(g(h.value),m(h.state),_[1](F=>F.filter(Q=>Q.pending)))}).finally(()=>{h===P&&Tt(()=>{J=void 0,C==="navigate"&&G(h),p(!1),h=void 0})}))},[d,g]=L(s().value),[y,m]=L(s().state),S=pn(d,y,i.queryWrapper),x=[],_=L([]),T=R(()=>typeof r.transformUrl=="function"?Ee(t(),r.transformUrl(S.pathname)):Ee(t(),S.pathname)),H=()=>{const C=T(),P={};for(let F=0;Ff,outlet:()=>null,resolvePath(C){return fe(f,C)}};return X(je(s,C=>w("native",C),{defer:!0})),{base:k,location:S,params:U,isRouting:u,renderPath:a,parsePath:l,navigatorFactory:E,matches:T,beforeLeave:c,preloadRoute:At,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:_};function A(C,P,F){j(()=>{if(typeof P=="number"){P&&(i.go?i.go(P):console.warn("Router integration does not support relative routing"));return}const Q=!P||P[0]==="?",{replace:$e,resolve:Z,scroll:Se,state:ne}={replace:!1,resolve:!Q,scroll:!0,...F},ae=Z?C.resolvePath(P):fe(Q&&S.pathname||"",P);if(ae===void 0)throw new Error(`Path '${P}' is not a routable path`);if(x.length>=un)throw new Error("Too many redirects");const Ve=d();(ae!==Ve||ne!==y())&&(Zt||c.confirm(ae,F)&&(x.push({value:Ve,replace:$e,scroll:Se,state:y()}),w("navigate",{value:ae,state:ne})))})}function E(C){return C=C||ct($t)||k,(P,F)=>A(C,P,F)}function G(C){const P=x[0];P&&(o({...C,replace:P.replace,scroll:P.scroll}),x.length=0)}function At(C,P){const F=Ee(t(),C.pathname),Q=J;J="preload";for(let $e in F){const{route:Z,params:Se}=F[$e];Z.component&&Z.component.preload&&Z.component.preload();const{preload:ne}=Z;P&&ne&<(n(),()=>ne({params:Se,location:{pathname:C.pathname,search:C.search,hash:C.hash,query:bt(C),state:null,key:""},intent:"preload"}))}J=Q}}function bn(e,t,n,r){const{base:s,location:o,params:i}=e,{pattern:l,component:a,preload:c}=r().route,f=R(()=>r().path);a&&a.preload&&a.preload();const u=c?c({params:i,location:o,intent:J||"initial"}):void 0;return{parent:t,pattern:l,path:f,outlet:()=>a?I(a,{params:i,location:o,data:u,get children(){return n()}}):n(),resolvePath(h){return fe(s.path(),h,f())}}}const wn=e=>t=>{const{base:n}=t,r=He(()=>t.children),s=R(()=>xt(r(),t.base||""));let o;const i=mn(e,s,()=>o,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(i),I(vt.Provider,{value:i,get children(){return I(yn,{routerState:i,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[R(()=>(o=it())&&null),I(vn,{routerState:i,get branches(){return s()}})]}})}})};function yn(e){const t=e.routerState.location,n=e.routerState.params,r=R(()=>e.preload&&j(()=>{e.preload({params:n,location:t,intent:gn()||"initial"})}));return I(ve,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:s=>I(s,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function vn(e){const t=[];let n;const r=R(je(e.routerState.matches,(s,o,i)=>{let l=o&&s.length===o.length;const a=[];for(let c=0,f=s.length;c{t[c]=h,a[c]=bn(e.routerState,a[c-1]||e.routerState.base,Je(()=>r()[c+1]),()=>e.routerState.matches()[c])}))}return t.splice(s.length).forEach(c=>c()),i&&l?i:(n=a[0],a)}));return Je(()=>r()&&n)()}const Je=e=>()=>I(ve,{get when(){return e()},keyed:!0,children:t=>I($t.Provider,{value:t,get children(){return t.outlet()}})}),ue=e=>{const t=He(()=>e.children);return Gt(e,{get children(){return t()}})};function $n([e,t],n,r){return[e,r?s=>t(r(s)):t]}function Sn(e){let t=!1;const n=s=>typeof s=="string"?{value:s}:s,r=$n(L(n(e.get()),{equals:(s,o)=>s.value===o.value&&s.state===o.state}),void 0,s=>(!t&&e.set(s),b.registry&&!b.done&&(b.done=!0),s));return e.init&&Fe(e.init((s=e.get())=>{t=!0,r[1](n(s)),t=!1})),wn({signal:r,create:e.create,utils:e.utils})}function xn(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function _n(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const Cn=new Map;function An(e=!0,t=!1,n="/_server",r){return s=>{const o=s.base.path(),i=s.navigatorFactory(s.base);let l,a;function c(d){return d.namespaceURI==="http://www.w3.org/2000/svg"}function f(d){if(d.defaultPrevented||d.button!==0||d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)return;const g=d.composedPath().find(T=>T instanceof Node&&T.nodeName.toUpperCase()==="A");if(!g||t&&!g.hasAttribute("link"))return;const y=c(g),m=y?g.href.baseVal:g.href;if((y?g.target.baseVal:g.target)||!m&&!g.hasAttribute("state"))return;const x=(g.getAttribute("rel")||"").split(/\s+/);if(g.hasAttribute("download")||x&&x.includes("external"))return;const _=y?new URL(m,document.baseURI):new URL(m);if(!(_.origin!==window.location.origin||o&&_.pathname&&!_.pathname.toLowerCase().startsWith(o.toLowerCase())))return[g,_]}function u(d){const g=f(d);if(!g)return;const[y,m]=g,S=s.parsePath(m.pathname+m.search+m.hash),x=y.getAttribute("state");d.preventDefault(),i(S,{resolve:!1,replace:y.hasAttribute("replace"),scroll:!y.hasAttribute("noscroll"),state:x?JSON.parse(x):void 0})}function p(d){const g=f(d);if(!g)return;const[y,m]=g;r&&(m.pathname=r(m.pathname)),s.preloadRoute(m,y.getAttribute("preload")!=="false")}function h(d){clearTimeout(l);const g=f(d);if(!g)return a=null;const[y,m]=g;a!==y&&(r&&(m.pathname=r(m.pathname)),l=setTimeout(()=>{s.preloadRoute(m,y.getAttribute("preload")!=="false"),a=y},20))}function w(d){if(d.defaultPrevented)return;let g=d.submitter&&d.submitter.hasAttribute("formaction")?d.submitter.getAttribute("formaction"):d.target.getAttribute("action");if(!g)return;if(!g.startsWith("https://action/")){const m=new URL(g,mt);if(g=s.parsePath(m.pathname+m.search),!g.startsWith(n))return}if(d.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const y=Cn.get(g);if(y){d.preventDefault();const m=new FormData(d.target,d.submitter);y.call({r:s,f:d.target},d.target.enctype==="multipart/form-data"?m:new URLSearchParams(m))}}te(["click","submit"]),document.addEventListener("click",u),e&&(document.addEventListener("mousemove",h,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",w),Fe(()=>{document.removeEventListener("click",u),e&&(document.removeEventListener("mousemove",h),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",w)})}}function Pn(e){const t=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,s=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:r+window.location.hash,state:s}},n=gt();return Sn({get:t,set({value:r,replace:s,scroll:o,state:i}){s?window.history.replaceState(tn(i),"",r):window.history.pushState(i,"",r),_n(decodeURIComponent(window.location.hash.slice(1)),o),Ke()},init:r=>xn(window,"popstate",nn(r,s=>{if(s&&s<0)return!n.confirm(s);{const o=t();return!n.confirm(o.value,{state:o.state})}})),create:An(e.preload,e.explicitLinks,e.actionBase,e.transformUrl),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}const W="",kn=async()=>{const e=W+"/api/all";return await(await fetch(e)).json()},En=async()=>{const e=W+"/api/config/";return await(await fetch(e)).json()},mr=async()=>{const e=W+"/api/version";return await(await fetch(e)).json()},br=async()=>{const e=W+"/api/notify_test";await fetch(e)},Qe=async(e,t,n)=>{const r=W+"/api/edit/"+e+"/"+t+"/"+n;return await(await fetch(r)).json()},wr=async e=>{const t=W+"/api/host/"+e;return await(await fetch(t)).json()},yr=async e=>{const t=W+"/api/host/del/"+e;return await(await fetch(t)).json()},vr=async(e,t)=>{const n=W+"/api/port/"+e+"/"+t;return await(await fetch(n)).json()},$r=async e=>{const t=W+"/api/history/"+e;return await(await fetch(t)).json()},Sr={ID:0,Name:"",DNS:"",Iface:"",IP:"",Mac:"",Hw:"",Date:"",Known:0,Now:0},In={Host:"",Port:"",Theme:"",Color:"",DirPath:"",Timeout:120,NodePath:"",LogLevel:"",Ifaces:"",ArpArgs:"",ArpStrs:[],TrimHist:48,HistInDB:!1,ShoutURL:"",UseDB:"",PGConnect:"",InfluxEnable:!1,InfluxAddr:"",InfluxToken:"",InfluxOrg:"",InfluxBucket:"",InfluxSkipTLS:!1,PrometheusEnable:!1},[le,M]=L([]),[De,Ln]=L([]),[Rn,On]=L([]),[Y,Nn]=L(In),[_t,Ze]=L(!1);let ze="ID";function Tn(){const e=localStorage.getItem("filterField"),t=localStorage.getItem("filterValue");Me(e,t)}function Me(e,t){let n=le();switch(ze==e&&(n=De()),ze=e,localStorage.setItem("filterField",e),localStorage.setItem("filterValue",t),e){case"Iface":n=n.filter(r=>r.Iface==t);break;case"Known":n=n.filter(r=>r.Known==t);break;case"Now":n=n.filter(r=>r.Now==t);break;default:n=De()}M([]),M(n)}let B=!1,Ie="";function Dn(){const e=localStorage.getItem("sortField");B=JSON.parse(localStorage.getItem("sortDown")),B=!B,Ct(e)}function Ct(e){e!=Ie?(Ie=e,B=!B):(Ie="",B=!B),localStorage.setItem("sortDown",B.toString()),localStorage.setItem("sortField",e);let t=le();e=="IP"?t.sort((n,r)=>Fn(n,r,B)):t.sort((n,r)=>jn(n,r,e,B)),M([]),M(t)}function jn(e,t,n,r){return e[n]>t[n]?r?1:-1:r?-1:1}function Fn(e,t,n){const r=et(e),s=et(t);return n?r-s:s-r}function et(e){return Number(e.IP.split(".").map(t=>`000${t}`.slice(-3)).join(""))}function Hn(){tt(),Me("ID",0),setInterval(()=>{tt()},6e4)}async function tt(){const e=await kn();M(e),Ln(e),Dn(),Tn(),Un()}function Un(){let e=[];for(let t of le())e.includes(t.Iface)||e.push(t.Iface);On(e)}var Bn=D(''),Kn=D(''),Mn=D(" "),Vn=D('.
');function qn(e){const[t,n]=L(e.host.Name),r="http://"+e.host.IP,s="/host/"+e.host.ID;let o=Bn();e.host.Now==1&&(o=Kn());let i=!1;e.host.Known==1&&(i=!0);const l=async c=>{n(c),await Qe(e.host.ID,t(),"")},a=async()=>{await Qe(e.host.ID,t(),"toggle")};return(()=>{var c=Vn(),f=c.firstChild,u=f.firstChild,p=f.nextSibling,h=p.nextSibling,w=h.nextSibling,d=w.firstChild,g=w.nextSibling,y=g.nextSibling,m=y.nextSibling,S=m.nextSibling,x=S.firstChild,_=x.firstChild,T=S.nextSibling,H=T.nextSibling,U=H.firstChild;return O(f,()=>e.index,u),O(p,I(ve,{get when(){return _t()},get fallback(){return t()},get children(){var k=Mn();return k.$$input=A=>l(A.target.value),X(()=>k.value=t()),k}})),O(h,()=>e.host.Iface),me(d,"href",r),O(d,()=>e.host.IP),O(g,()=>e.host.Mac),O(y,()=>e.host.Hw),O(m,()=>e.host.Date),_.$$click=a,_.checked=i,O(T,o),me(U,"href",s),c})()}te(["input","click"]);var Wn=D('Name Iface IP MAC Hardware Date Known Online ');function Gn(){const e=t=>{Ct(t)};return(()=>{var t=Wn(),n=t.firstChild,r=n.firstChild,s=r.nextSibling,o=s.firstChild,i=o.nextSibling,l=s.nextSibling,a=l.firstChild,c=a.nextSibling,f=l.nextSibling,u=f.firstChild,p=u.nextSibling,h=f.nextSibling,w=h.firstChild,d=w.nextSibling,g=h.nextSibling,y=g.firstChild,m=y.nextSibling,S=g.nextSibling,x=S.firstChild,_=x.nextSibling,T=S.nextSibling,H=T.firstChild,U=H.nextSibling,k=T.nextSibling,A=k.firstChild,E=A.nextSibling;return i.$$click=e,i.$$clickData="Name",c.$$click=e,c.$$clickData="Iface",p.$$click=e,p.$$clickData="IP",d.$$click=e,d.$$clickData="Mac",m.$$click=e,m.$$clickData="Hw",_.$$click=e,_.$$clickData="Date",U.$$click=e,U.$$clickData="Known",E.$$click=e,E.$$clickData="Now",t})()}te(["click"]);var Xn=D('