@samyx/preview-stacks-ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-DUQBVs8T.js → ActionButton.vue_vue_type_script_setup_true_lang-B1iO-Hbs.js} +2 -2
- package/dist/assets/{ActionButton.vue_vue_type_script_setup_true_lang-DUQBVs8T.js.map → ActionButton.vue_vue_type_script_setup_true_lang-B1iO-Hbs.js.map} +1 -1
- package/dist/assets/{AxesTab-DU92FPX2.js → AxesTab-Cxy76M1f.js} +2 -2
- package/dist/assets/{AxesTab-DU92FPX2.js.map → AxesTab-Cxy76M1f.js.map} +1 -1
- package/dist/assets/{ConfigTab-CR9C6wOR.js → ConfigTab-ezI-u-MN.js} +2 -2
- package/dist/assets/{ConfigTab-CR9C6wOR.js.map → ConfigTab-ezI-u-MN.js.map} +1 -1
- package/dist/assets/{DangerTab-BUfuJ0MC.js → DangerTab-Cnr_8-Ba.js} +2 -2
- package/dist/assets/{DangerTab-BUfuJ0MC.js.map → DangerTab-Cnr_8-Ba.js.map} +1 -1
- package/dist/assets/{DashboardView-DHYQn3Mi.js → DashboardView-Dgqzqr0u.js} +2 -2
- package/dist/assets/{DashboardView-DHYQn3Mi.js.map → DashboardView-Dgqzqr0u.js.map} +1 -1
- package/dist/assets/{DeploymentDetailView-DXvZu_pa.js → DeploymentDetailView-CzNOnaAb.js} +2 -2
- package/dist/assets/{DeploymentDetailView-DXvZu_pa.js.map → DeploymentDetailView-CzNOnaAb.js.map} +1 -1
- package/dist/assets/{DeploymentsView-C0Z2RIx1.js → DeploymentsView-CDNBJ7JQ.js} +2 -2
- package/dist/assets/{DeploymentsView-C0Z2RIx1.js.map → DeploymentsView-CDNBJ7JQ.js.map} +1 -1
- package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-BmqVrFXt.js → ErrorNote.vue_vue_type_script_setup_true_lang-BJpi4S3s.js} +2 -2
- package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-BmqVrFXt.js.map → ErrorNote.vue_vue_type_script_setup_true_lang-BJpi4S3s.js.map} +1 -1
- package/dist/assets/{JobDetailView-UehfrAMm.js → JobDetailView-DB6cP2ka.js} +2 -2
- package/dist/assets/{JobDetailView-UehfrAMm.js.map → JobDetailView-DB6cP2ka.js.map} +1 -1
- package/dist/assets/{JobsView-Dlv1T547.js → JobsView-DeAdOUVq.js} +2 -2
- package/dist/assets/{JobsView-Dlv1T547.js.map → JobsView-DeAdOUVq.js.map} +1 -1
- package/dist/assets/LogsTab-BHYDWsWb.js +4 -0
- package/dist/assets/LogsTab-BHYDWsWb.js.map +1 -0
- package/dist/assets/{NotFoundView-D4P7ej9y.js → NotFoundView-ROlvmBTU.js} +2 -2
- package/dist/assets/{NotFoundView-D4P7ej9y.js.map → NotFoundView-ROlvmBTU.js.map} +1 -1
- package/dist/assets/OverviewTab-LKcYN5mk.js +2 -0
- package/dist/assets/OverviewTab-LKcYN5mk.js.map +1 -0
- package/dist/assets/{RegistriesView-r-FHyu2l.js → RegistriesView-Bvnq_VSn.js} +2 -2
- package/dist/assets/{RegistriesView-r-FHyu2l.js.map → RegistriesView-Bvnq_VSn.js.map} +1 -1
- package/dist/assets/{RequiresTab-Ca5DAPqS.js → RequiresTab-BeZeFQdv.js} +2 -2
- package/dist/assets/{RequiresTab-Ca5DAPqS.js.map → RequiresTab-BeZeFQdv.js.map} +1 -1
- package/dist/assets/{RoutingView-6KgROiI7.js → RoutingView-BjBTNG-z.js} +2 -2
- package/dist/assets/{RoutingView-6KgROiI7.js.map → RoutingView-BjBTNG-z.js.map} +1 -1
- package/dist/assets/{RuntimeTab-z5tBtP5a.js → RuntimeTab-CWjyUEnD.js} +2 -2
- package/dist/assets/RuntimeTab-CWjyUEnD.js.map +1 -0
- package/dist/assets/{SettingsView-DF18WFzT.js → SettingsView-D_roVhhz.js} +2 -2
- package/dist/assets/{SettingsView-DF18WFzT.js.map → SettingsView-D_roVhhz.js.map} +1 -1
- package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-CrqRcqcf.js → SkeletonList.vue_vue_type_script_setup_true_lang-B4p28Paq.js} +2 -2
- package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-CrqRcqcf.js.map → SkeletonList.vue_vue_type_script_setup_true_lang-B4p28Paq.js.map} +1 -1
- package/dist/assets/{SpecDetailView-QKk7yCjK.js → SpecDetailView-CDXuYT7k.js} +2 -2
- package/dist/assets/{SpecDetailView-QKk7yCjK.js.map → SpecDetailView-CDXuYT7k.js.map} +1 -1
- package/dist/assets/{SpecsView-BIQkHWcI.js → SpecsView-Bib418qu.js} +2 -2
- package/dist/assets/{SpecsView-BIQkHWcI.js.map → SpecsView-Bib418qu.js.map} +1 -1
- package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-DGyF-Maq.js → StateBadge.vue_vue_type_script_setup_true_lang-BBoSnS4z.js} +2 -2
- package/dist/assets/{StateBadge.vue_vue_type_script_setup_true_lang-DGyF-Maq.js.map → StateBadge.vue_vue_type_script_setup_true_lang-BBoSnS4z.js.map} +1 -1
- package/dist/assets/SubmitView-DoVltkUx.js +45 -0
- package/dist/assets/SubmitView-DoVltkUx.js.map +1 -0
- package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-D3_cdVoO.js → VarEditor.vue_vue_type_script_setup_true_lang-CjFu7uoM.js} +2 -2
- package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-D3_cdVoO.js.map → VarEditor.vue_vue_type_script_setup_true_lang-CjFu7uoM.js.map} +1 -1
- package/dist/assets/{index-DXW03q8i.js → index-B4C7uKN0.js} +4 -4
- package/dist/assets/{index-DXW03q8i.js.map → index-B4C7uKN0.js.map} +1 -1
- package/dist/assets/{useDeployment-B6jhAMSe.js → useDeployment-DKKVYXcr.js} +2 -2
- package/dist/assets/{useDeployment-B6jhAMSe.js.map → useDeployment-DKKVYXcr.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/LogsTab-CECPXx_O.js +0 -4
- package/dist/assets/LogsTab-CECPXx_O.js.map +0 -1
- package/dist/assets/OverviewTab-k0B5wCfH.js +0 -2
- package/dist/assets/OverviewTab-k0B5wCfH.js.map +0 -1
- package/dist/assets/RuntimeTab-z5tBtP5a.js.map +0 -1
- package/dist/assets/SubmitView-Cv_QCAe0.js +0 -45
- package/dist/assets/SubmitView-Cv_QCAe0.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardView-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardView-Dgqzqr0u.js","assets/useFormat-CKJxQp_i.js","assets/StateBadge.vue_vue_type_script_setup_true_lang-BBoSnS4z.js","assets/SkeletonList.vue_vue_type_script_setup_true_lang-B4p28Paq.js","assets/DeploymentsView-CDNBJ7JQ.js","assets/DeploymentDetailView-CzNOnaAb.js","assets/useDeployment-DKKVYXcr.js","assets/useVars-VN9gYdR6.js","assets/ErrorNote.vue_vue_type_script_setup_true_lang-BJpi4S3s.js","assets/OverviewTab-LKcYN5mk.js","assets/ConfigTab-ezI-u-MN.js","assets/VarEditor.vue_vue_type_script_setup_true_lang-CjFu7uoM.js","assets/RuntimeTab-CWjyUEnD.js","assets/AxesTab-Cxy76M1f.js","assets/RequiresTab-BeZeFQdv.js","assets/LogsTab-BHYDWsWb.js","assets/DangerTab-Cnr_8-Ba.js","assets/ActionButton.vue_vue_type_script_setup_true_lang-B1iO-Hbs.js","assets/RoutingView-BjBTNG-z.js","assets/RegistriesView-Bvnq_VSn.js","assets/SpecsView-Bib418qu.js","assets/SpecDetailView-CDXuYT7k.js","assets/SubmitView-DoVltkUx.js","assets/JobsView-DeAdOUVq.js","assets/JobDetailView-DB6cP2ka.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
3
3
|
* @vue/shared v3.5.40
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -23,7 +23,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardView-D
|
|
|
23
23
|
* vue-router v4.6.4
|
|
24
24
|
* (c) 2025 Eduardo San Martin Morote
|
|
25
25
|
* @license MIT
|
|
26
|
-
*/let Du=()=>location.protocol+"//"+location.host;function _l(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),wo(l,"")}return wo(n,e)+s+r}function Vu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=_l(e,location),S=n.value,w=t.value;let j=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}j=w?p.position-w.position:0}else s(m);r.forEach(D=>{D(n.value,S,{delta:j,type:rr.pop,direction:j?j>0?js.forward:js.back:js.unknown})})};function c(){i=n.value}function u(p){r.push(p);const m=()=>{const S=r.indexOf(p);S>-1&&r.splice(S,1)};return o.push(m),m}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(X({},p.state,{scroll:ws()}),"")}}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:d}}function Oo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ws():null}}function Fu(e){const{history:t,location:n}=window,s={value:_l(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Du()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function i(c,u){o(c,X({},t.state,Oo(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const a=X({},r.value,t.state,{forward:c,scroll:ws()});o(a.current,a,!0),o(c,X({},Oo(s.value,c,null),{position:a.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function ju(e){e=Au(e);const t=Fu(e),n=Vu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=X({location:"",base:e,go:s,createHref:wu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ut=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var _e=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(_e||{});const Bu={type:Ut.Static,value:""},Hu=/[a-zA-Z0-9_]/;function Uu(e){if(!e)return[[]];if(e==="/")return[[Bu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=_e.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===_e.Static?o.push({type:Ut.Static,value:u}):n===_e.Param||n===_e.ParamRegExp||n===_e.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ut.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==_e.ParamRegExp){s=n,n=_e.EscapeNext;continue}switch(n){case _e.Static:c==="/"?(u&&d(),i()):c===":"?(d(),n=_e.Param):p();break;case _e.EscapeNext:p(),n=s;break;case _e.Param:c==="("?n=_e.ParamRegExp:Hu.test(c)?p():(d(),n=_e.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case _e.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=_e.ParamRegExpEnd:a+=c;break;case _e.ParamRegExpEnd:d(),n=_e.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===_e.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),r}const Po="[^/]+?",$u={sensitive:!1,strict:!1,start:!0,end:!0};var ke=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ke||{});const Ku=/[.+*?^${}()[\]/\\]/g;function Gu(e,t){const n=X({},$u,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[ke.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const p=u[d];let m=ke.Segment+(n.sensitive?ke.BonusCaseSensitive:0);if(p.type===Ut.Static)d||(r+="/"),r+=p.value.replace(Ku,"\\$&"),m+=ke.Static;else if(p.type===Ut.Param){const{value:S,repeatable:w,optional:j,regexp:D}=p;o.push({name:S,repeatable:w,optional:j});const T=D||Po;if(T!==Po){m+=ke.BonusCustomRegExp;try{`${T}`}catch(P){throw new Error(`Invalid custom RegExp for param "${S}" (${T}): `+P.message)}}let N=w?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(N=j&&u.length<2?`(?:/${N})`:"/"+N),j&&(N+="?"),r+=N,m+=ke.Dynamic,j&&(m+=ke.BonusOptional),w&&(m+=ke.BonusRepeatable),T===".*"&&(m+=ke.BonusWildcard)}a.push(m)}s.push(a)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=ke.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const a=u.match(i),d={};if(!a)return null;for(let p=1;p<a.length;p++){const m=a[p]||"",S=o[p-1];d[S.name]=m&&S.repeatable?m.split("/"):m}return d}function c(u){let a="",d=!1;for(const p of e){(!d||!a.endsWith("/"))&&(a+="/"),d=!1;for(const m of p)if(m.type===Ut.Static)a+=m.value;else if(m.type===Ut.Param){const{value:S,repeatable:w,optional:j}=m,D=S in u?u[S]:"";if(Xe(D)&&!w)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const T=Xe(D)?D.join("/"):D;if(!T)if(j)p.length<2&&(a.endsWith("/")?a=a.slice(0,-1):d=!0);else throw new Error(`Missing required param "${S}"`);a+=T}}return a||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Wu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===ke.Static+ke.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ke.Static+ke.Segment?1:-1:0}function bl(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Wu(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Io(s))return 1;if(Io(r))return-1}return r.length-s.length}function Io(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qu={strict:!1,end:!0,sensitive:!1};function zu(e,t,n){const s=Gu(Uu(e.path),n),r=X(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ju(e,t){const n=[],s=new Map;t=Co(qu,t);function r(d){return s.get(d)}function o(d,p,m){const S=!m,w=No(d);w.aliasOf=m&&m.record;const j=Co(t,d),D=[w];if("alias"in d){const P=typeof d.alias=="string"?[d.alias]:d.alias;for(const K of P)D.push(No(X({},w,{components:m?m.record.components:w.components,path:K,aliasOf:m?m.record:w})))}let T,N;for(const P of D){const{path:K}=P;if(p&&K[0]!=="/"){const te=p.record.path,ne=te[te.length-1]==="/"?"":"/";P.path=p.record.path+(K&&ne+K)}if(T=zu(P,p,j),m?m.alias.push(T):(N=N||T,N!==T&&N.alias.push(T),S&&d.name&&!Lo(T)&&i(d.name)),El(T)&&c(T),w.children){const te=w.children;for(let ne=0;ne<te.length;ne++)o(te[ne],T,m&&m.children[ne])}m=m||T}return N?()=>{i(N)}:Nn}function i(d){if(yl(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=Xu(d,n);n.splice(p,0,d),d.record.name&&!Lo(d)&&s.set(d.record.name,d)}function u(d,p){let m,S={},w,j;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw gn(de.MATCHER_NOT_FOUND,{location:d});j=m.record.name,S=X(ko(p.params,m.keys.filter(N=>!N.optional).concat(m.parent?m.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),d.params&&ko(d.params,m.keys.map(N=>N.name))),w=m.stringify(S)}else if(d.path!=null)w=d.path,m=n.find(N=>N.re.test(w)),m&&(S=m.parse(w),j=m.record.name);else{if(m=p.name?s.get(p.name):n.find(N=>N.re.test(p.path)),!m)throw gn(de.MATCHER_NOT_FOUND,{location:d,currentLocation:p});j=m.record.name,S=X({},p.params,d.params),w=m.stringify(S)}const D=[];let T=m;for(;T;)D.unshift(T.record),T=T.parent;return{name:j,path:w,params:S,matched:D,meta:Qu(D)}}e.forEach(d=>o(d));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function ko(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function No(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Lo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qu(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Xu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;bl(e,t[o])<0?s=o:n=o+1}const r=Zu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Zu(e){let t=e;for(;t=t.parent;)if(El(t)&&bl(e,t)===0)return t}function El({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mo(e){const t=Je(xs),n=Je(Or),s=Me(()=>{const c=ie(e.to);return t.resolve(c)}),r=Me(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(pn.bind(null,a));if(p>-1)return p;const m=Do(c[u-2]);return u>1&&Do(a)===m&&d[d.length-1].path!==m?d.findIndex(pn.bind(null,c[u-2])):p}),o=Me(()=>r.value>-1&&rf(n.params,s.value.params)),i=Me(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function l(c={}){if(sf(c)){const u=t[ie(e.replace)?"replace":"push"](ie(e.to)).catch(Nn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Me(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function ef(e){return e.length===1?e[0]:e}const tf=yn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Mo,setup(e,{slots:t}){const n=Jt(Mo(e)),{options:s}=Je(xs),r=Me(()=>({[Vo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Vo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&ef(t.default(n));return e.custom?o:fn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),nf=tf;function sf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Xe(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Do(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vo=(e,t,n)=>e??t??n,of=yn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(ir),r=Me(()=>e.route||s.value),o=Je(To,0),i=Me(()=>{let u=ie(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=Me(()=>r.value.matched[i.value]);Yn(To,Me(()=>i.value+1)),Yn(Lu,l),Yn(ir,r);const c=Pn();return Gt(()=>[c.value,l.value,e.name],([u,a,d],[p,m,S])=>{a&&(a.instances[d]=u,m&&m!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!pn(a,m)||!p)&&(a.enterCallbacks[d]||[]).forEach(w=>w(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return Fo(n.default,{Component:p,route:u});const m=d.props[a],S=m?m===!0?u.params:typeof m=="function"?m(u):m:null,j=fn(p,X({},S,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return Fo(n.default,{Component:j,route:u})||j}}});function Fo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lf=of;function cf(e){const t=Ju(e.routes,e),n=e.parseQuery||ku,s=e.stringifyQuery||Ro,r=e.history,o=An(),i=An(),l=An(),c=sc(Rt);let u=Rt;en&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Vs.bind(null,_=>""+_),d=Vs.bind(null,gu),p=Vs.bind(null,Hn);function m(_,k){let R,L;return yl(_)?(R=t.getRecordMatcher(_),L=k):L=_,t.addRoute(L,R)}function S(_){const k=t.getRecordMatcher(_);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(_=>_.record)}function j(_){return!!t.getRecordMatcher(_)}function D(_,k){if(k=X({},k||c.value),typeof _=="string"){const g=Fs(n,_,k.path),v=t.resolve({path:g.path},k),b=r.createHref(g.fullPath);return X(g,v,{params:p(v.params),hash:Hn(g.hash),redirectedFrom:void 0,href:b})}let R;if(_.path!=null)R=X({},_,{path:Fs(n,_.path,k.path).path});else{const g=X({},_.params);for(const v in g)g[v]==null&&delete g[v];R=X({},_,{params:d(g)}),k.params=d(k.params)}const L=t.resolve(R,k),G=_.hash||"";L.params=a(p(L.params));const f=vu(s,X({},_,{hash:du(G),path:L.path})),h=r.createHref(f);return X({fullPath:f,hash:G,query:s===Ro?Nu(_.query):_.query||{}},L,{redirectedFrom:void 0,href:h})}function T(_){return typeof _=="string"?Fs(n,_,c.value.path):X({},_)}function N(_,k){if(u!==_)return gn(de.NAVIGATION_CANCELLED,{from:k,to:_})}function P(_){return ne(_)}function K(_){return P(X(T(_),{replace:!0}))}function te(_,k){const R=_.matched[_.matched.length-1];if(R&&R.redirect){const{redirect:L}=R;let G=typeof L=="function"?L(_,k):L;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=T(G):{path:G},G.params={}),X({query:_.query,hash:_.hash,params:G.path!=null?{}:_.params},G)}}function ne(_,k){const R=u=D(_),L=c.value,G=_.state,f=_.force,h=_.replace===!0,g=te(R,L);if(g)return ne(X(T(g),{state:typeof g=="object"?X({},G,g.state):G,force:f,replace:h}),k||R);const v=R;v.redirectedFrom=k;let b;return!f&&_u(s,L,R)&&(b=gn(de.NAVIGATION_DUPLICATED,{to:v,from:L}),Ze(L,L,!0,!1)),(b?Promise.resolve(b):J(v,L)).catch(y=>ht(y)?ht(y,de.NAVIGATION_GUARD_REDIRECT)?y:xt(y):Q(y,v,L)).then(y=>{if(y){if(ht(y,de.NAVIGATION_GUARD_REDIRECT))return ne(X({replace:h},T(y.to),{state:typeof y.to=="object"?X({},G,y.to.state):G,force:f}),k||v)}else y=I(v,L,!0,h,G);return ce(v,L,y),y})}function Se(_,k){const R=N(_,k);return R?Promise.reject(R):Promise.resolve()}function U(_){const k=Qt.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(_):_()}function J(_,k){let R;const[L,G,f]=Mu(_,k);R=Bs(L.reverse(),"beforeRouteLeave",_,k);for(const g of L)g.leaveGuards.forEach(v=>{R.push(Pt(v,_,k))});const h=Se.bind(null,_,k);return R.push(h),Ue(R).then(()=>{R=[];for(const g of o.list())R.push(Pt(g,_,k));return R.push(h),Ue(R)}).then(()=>{R=Bs(G,"beforeRouteUpdate",_,k);for(const g of G)g.updateGuards.forEach(v=>{R.push(Pt(v,_,k))});return R.push(h),Ue(R)}).then(()=>{R=[];for(const g of f)if(g.beforeEnter)if(Xe(g.beforeEnter))for(const v of g.beforeEnter)R.push(Pt(v,_,k));else R.push(Pt(g.beforeEnter,_,k));return R.push(h),Ue(R)}).then(()=>(_.matched.forEach(g=>g.enterCallbacks={}),R=Bs(f,"beforeRouteEnter",_,k,U),R.push(h),Ue(R))).then(()=>{R=[];for(const g of i.list())R.push(Pt(g,_,k));return R.push(h),Ue(R)}).catch(g=>ht(g,de.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function ce(_,k,R){l.list().forEach(L=>U(()=>L(_,k,R)))}function I(_,k,R,L,G){const f=N(_,k);if(f)return f;const h=k===Rt,g=en?history.state:{};R&&(L||h?r.replace(_.fullPath,X({scroll:h&&g&&g.scroll},G)):r.push(_.fullPath,G)),c.value=_,Ze(_,k,R,h),xt()}let Y;function be(){Y||(Y=r.listen((_,k,R)=>{if(!Mt.listening)return;const L=D(_),G=te(L,Mt.currentRoute.value);if(G){ne(X(G,{replace:!0,force:!0}),L).catch(Nn);return}u=L;const f=c.value;en&&Ru(So(f.fullPath,R.delta),ws()),J(L,f).catch(h=>ht(h,de.NAVIGATION_ABORTED|de.NAVIGATION_CANCELLED)?h:ht(h,de.NAVIGATION_GUARD_REDIRECT)?(ne(X(T(h.to),{force:!0}),L).then(g=>{ht(g,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&!R.delta&&R.type===rr.pop&&r.go(-1,!1)}).catch(Nn),Promise.reject()):(R.delta&&r.go(-R.delta,!1),Q(h,L,f))).then(h=>{h=h||I(L,f,!1),h&&(R.delta&&!ht(h,de.NAVIGATION_CANCELLED)?r.go(-R.delta,!1):R.type===rr.pop&&ht(h,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ce(L,f,h)}).catch(Nn)}))}let je=An(),he=An(),se;function Q(_,k,R){xt(_);const L=he.list();return L.length?L.forEach(G=>G(_,k,R)):console.error(_),Promise.reject(_)}function ft(){return se&&c.value!==Rt?Promise.resolve():new Promise((_,k)=>{je.add([_,k])})}function xt(_){return se||(se=!_,be(),je.list().forEach(([k,R])=>_?R(_):k()),je.reset()),_}function Ze(_,k,R,L){const{scrollBehavior:G}=e;if(!en||!G)return Promise.resolve();const f=!R&&Tu(So(_.fullPath,0))||(L||!R)&&history.state&&history.state.scroll||null;return _r().then(()=>G(_,k,f)).then(h=>h&&Su(h)).catch(h=>Q(h,_,k))}const Ve=_=>r.go(_);let Yt;const Qt=new Set,Mt={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:j,getRoutes:w,resolve:D,options:e,push:P,replace:K,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:he.add,isReady:ft,install(_){_.component("RouterLink",nf),_.component("RouterView",lf),_.config.globalProperties.$router=Mt,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>ie(c)}),en&&!Yt&&c.value===Rt&&(Yt=!0,P(r.location).catch(L=>{}));const k={};for(const L in Rt)Object.defineProperty(k,L,{get:()=>c.value[L],enumerable:!0});_.provide(xs,Mt),_.provide(Or,ui(k)),_.provide(ir,c);const R=_.unmount;Qt.add(_),_.unmount=function(){Qt.delete(_),Qt.size<1&&(u=Rt,Y&&Y(),Y=null,c.value=Rt,Yt=!1,se=!1),R()}}};function Ue(_){return _.reduce((k,R)=>k.then(()=>U(R)),Promise.resolve())}return Mt}function af(){return Je(xs)}function id(e){return Je(Or)}const uf=[{path:"/",name:"dashboard",component:()=>ve(()=>import("./DashboardView-DHYQn3Mi.js"),__vite__mapDeps([0,1,2,3]))},{path:"/deployments",name:"deployments",component:()=>ve(()=>import("./DeploymentsView-C0Z2RIx1.js"),__vite__mapDeps([4,1,3]))},{path:"/deployments/:id",component:()=>ve(()=>import("./DeploymentDetailView-DXvZu_pa.js"),__vite__mapDeps([5,6,7,8])),props:!0,children:[{path:"",name:"deployment",redirect:e=>`/deployments/${e.params.id}/overview`},{path:"overview",name:"d.overview",component:()=>ve(()=>import("./OverviewTab-k0B5wCfH.js"),__vite__mapDeps([9,6,7,1,3]))},{path:"config",name:"d.config",component:()=>ve(()=>import("./ConfigTab-CR9C6wOR.js"),__vite__mapDeps([10,6,7,11]))},{path:"runtime",name:"d.runtime",component:()=>ve(()=>import("./RuntimeTab-z5tBtP5a.js"),__vite__mapDeps([12,6,7,3,8]))},{path:"axes",name:"d.axes",component:()=>ve(()=>import("./AxesTab-DU92FPX2.js"),__vite__mapDeps([13,6,7]))},{path:"requires",name:"d.requires",component:()=>ve(()=>import("./RequiresTab-Ca5DAPqS.js"),__vite__mapDeps([14,6,7]))},{path:"logs",name:"d.logs",component:()=>ve(()=>import("./LogsTab-CECPXx_O.js"),__vite__mapDeps([15,6,7]))},{path:"danger",name:"d.danger",component:()=>ve(()=>import("./DangerTab-BUfuJ0MC.js"),__vite__mapDeps([16,6,7,1,17,8]))}]},{path:"/routing",name:"routing",component:()=>ve(()=>import("./RoutingView-6KgROiI7.js"),__vite__mapDeps([18,1,17,8,3]))},{path:"/registries",name:"registries",component:()=>ve(()=>import("./RegistriesView-r-FHyu2l.js"),__vite__mapDeps([19,17,8,3]))},{path:"/specs",name:"specs",component:()=>ve(()=>import("./SpecsView-BIQkHWcI.js"),__vite__mapDeps([20,1,3,8]))},{path:"/specs/:name",name:"spec",component:()=>ve(()=>import("./SpecDetailView-QKk7yCjK.js"),__vite__mapDeps([21,1,3,8])),props:!0},{path:"/submit/:id?",name:"submit",component:()=>ve(()=>import("./SubmitView-Cv_QCAe0.js"),__vite__mapDeps([22,7,17,8,11])),props:!0},{path:"/jobs",name:"jobs",component:()=>ve(()=>import("./JobsView-Dlv1T547.js"),__vite__mapDeps([23,1,2,3]))},{path:"/jobs/:jobId",name:"job",component:()=>ve(()=>import("./JobDetailView-UehfrAMm.js"),__vite__mapDeps([24,1,2,8])),props:!0},{path:"/settings",name:"settings",component:()=>ve(()=>import("./SettingsView-DF18WFzT.js"),[])},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>ve(()=>import("./NotFoundView-D4P7ej9y.js"),[])}],ff=cf({history:ju(),routes:uf,scrollBehavior:(e,t,n)=>n??{top:0}});let df=0;const ln=Jt([]);function Al(e){const t=ln.findIndex(n=>n.id===e);t>=0&&ln.splice(t,1)}function ld(e,t,n={}){const s=++df;ln.push({id:s,kind:e,text:t,to:n.to,toLabel:n.toLabel});const r=n.ms??(e==="error"?0:6e3);for(r>0&&setTimeout(()=>Al(s),r);ln.length>5;)ln.shift();return s}const hf={class:"toasts","aria-live":"polite","aria-atomic":"false"},pf=["aria-label","onClick"],gf=yn({__name:"ToastHost",setup(e){return(t,n)=>{const s=zs("RouterLink");return pe(),Le("div",hf,[$(Ba,{name:"toast"},{default:Ee(()=>[(pe(!0),Le(me,null,Js(ie(ln),r=>(pe(),Le("div",{key:r.id,class:cn(["toast",r.kind])},[W("div",null,[W("div",null,_t(r.text),1),r.to?(pe(),un(s,{key:0,to:r.to},{default:Ee(()=>[Ht(_t(r.toLabel??"Open")+" →",1)]),_:2},1032,["to"])):Wt("",!0)]),W("button",{class:"x","aria-label":`dismiss: ${r.text}`,onClick:o=>ie(Al)(r.id)},"✕",8,pf)],2))),128))]),_:1})])}}}),mf=900;function jo(e){const t=e;if(!t)return!1;const n=t.tagName;return n==="INPUT"||n==="TEXTAREA"||n==="SELECT"||t.isContentEditable===!0}function yf(){const e=af(),t=Pn(!1);let n=0,s="";const r=o=>{if(o.key==="Escape"){t.value&&(t.value=!1,o.preventDefault()),jo(o.target)&&o.target.blur();return}if(o.metaKey||o.ctrlKey||o.altKey||jo(o.target))return;const i=Date.now();if(s==="g"&&i-n<mf){s="";const l={d:"/deployments",j:"/jobs",h:"/",s:"/settings",n:"/submit"}[o.key];l&&(o.preventDefault(),e.push(l));return}if(o.key==="g"){s="g",n=i;return}if(s="",o.key==="?"){o.preventDefault(),t.value=!t.value;return}if(o.key==="/"){const l=document.querySelector("[data-search]");l&&(o.preventDefault(),l.focus(),l.select())}};return Kn(()=>document.addEventListener("keydown",r)),bs(()=>document.removeEventListener("keydown",r)),{sheetOpen:t}}const vf=[{keys:"?",what:"Open or close this sheet"},{keys:"g h",what:"Go to the dashboard"},{keys:"g d",what:"Go to deployments"},{keys:"g j",what:"Go to jobs"},{keys:"g n",what:"Go to submit"},{keys:"g s",what:"Go to settings"},{keys:"/",what:"Focus the search box on this view"},{keys:"Esc",what:"Close this sheet, or leave the field you are typing in"}],_f={class:"sheet"},bf={class:"row"},Ef=yn({__name:"ShortcutSheet",props:{open:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=t;return(s,r)=>(pe(),un(Rr,{name:"fade"},{default:Ee(()=>[e.open?(pe(),Le("div",{key:0,class:"scrim",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:r[1]||(r[1]=za(o=>n("close"),["self"]))},[W("div",_f,[W("div",bf,[r[2]||(r[2]=W("h2",{style:{"font-size":"var(--t-lg)","font-weight":"650"}},"Keyboard shortcuts",-1)),r[3]||(r[3]=W("span",{class:"grow"},null,-1)),W("button",{class:"ghost sm",onClick:r[0]||(r[0]=o=>n("close"))},"Close")]),W("dl",null,[(pe(!0),Le(me,null,Js(ie(vf),o=>(pe(),Le(me,{key:o.keys},[W("dt",null,[(pe(!0),Le(me,null,Js(o.keys.split(" "),i=>(pe(),Le("kbd",{key:i,style:{"margin-left":"4px"}},_t(i),1))),128))]),W("dd",null,_t(o.what),1)],64))),128))])])])):Wt("",!0)]),_:1}))}});function Af(e,t=6e3){let n;const s=()=>{n!==void 0&&clearInterval(n),n=void 0},r=()=>{s(),n=setInterval(e,t)},o=()=>{document.visibilityState==="visible"?(e(),r()):s()};Kn(()=>{e(),document.visibilityState==="visible"&&r(),document.addEventListener("visibilitychange",o)}),bs(()=>{s(),document.removeEventListener("visibilitychange",o)})}const Lt={token:"pstack.ui.token",apiBase:"pstack.ui.apiBase",theme:"pstack.ui.theme",motion:"pstack.ui.motion"};function cs(e,t){try{return localStorage.getItem(e)??t}catch{return t}}function as(e,t){try{t?localStorage.setItem(e,t):localStorage.removeItem(e)}catch{}}const Hs=cs(Lt.theme,"system"),Us=cs(Lt.motion,"system"),Ae=Jt({token:cs(Lt.token,""),apiBase:cs(Lt.apiBase,""),theme:Hs==="dark"||Hs==="light"?Hs:"system",motion:Us==="full"||Us==="none"?Us:"system"});function Cl(){const e=document.documentElement;Ae.theme==="system"?delete e.dataset.theme:e.dataset.theme=Ae.theme,Ae.motion==="system"?delete e.dataset.motion:e.dataset.motion=Ae.motion}Gt(()=>Ae.token,e=>as(Lt.token,e));Gt(()=>Ae.apiBase,e=>as(Lt.apiBase,e));Gt(()=>[Ae.theme,Ae.motion],()=>{as(Lt.theme,Ae.theme==="system"?"":Ae.theme),as(Lt.motion,Ae.motion==="system"?"":Ae.motion),Cl()});Cl();function cd(e,t={}){const n=new URLSearchParams;for(const r of e)r.k&&n.set(r.k,r.v??"");for(const[r,o]of Object.entries(t))n.set(r,String(o));const s=n.toString();return s?`?${s}`:""}function wl(e){const t=Ae.apiBase.replace(/\/$/,"");return t?t+e:e}async function Cn(e,t,n,s=!1){const r={};e!=="GET"?(r["content-type"]="application/json",Ae.token&&(r.authorization=`Bearer ${Ae.token}`)):s&&Ae.token&&(r.authorization=`Bearer ${Ae.token}`);try{const o=await fetch(wl(t),{method:e,headers:r,body:n===void 0?void 0:JSON.stringify(n)}),i=await o.text();let l=null;try{l=i?JSON.parse(i):null}catch{}return l===null&&i?{status:o.status,ok:o.ok,body:{},raw:i,notJson:!0}:{status:o.status,ok:o.ok,body:l??{},raw:i,notJson:!1}}catch(o){return{status:0,ok:!1,body:{error:`unreachable: ${o.message}`},raw:"",notJson:!1}}}const Pr={get:e=>Cn("GET",e),getAuthed:e=>Cn("GET",e,void 0,!0),post:(e,t)=>Cn("POST",e,t??{}),put:(e,t)=>Cn("PUT",e,t),del:e=>Cn("DELETE",e),url:wl};function Ir(e,t){if(e.status===0)return e.body.error??"unreachable";if(e.status===401)return`${t}: 401 unauthorized — set the bearer token in Settings.`;if(e.notJson)return`${t}: HTTP ${e.status}, and the response was not JSON. Something other than the pstack API answered — a proxy, or an error page.
|
|
26
|
+
*/let Du=()=>location.protocol+"//"+location.host;function _l(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),wo(l,"")}return wo(n,e)+s+r}function Vu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=_l(e,location),S=n.value,w=t.value;let j=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}j=w?p.position-w.position:0}else s(m);r.forEach(D=>{D(n.value,S,{delta:j,type:rr.pop,direction:j?j>0?js.forward:js.back:js.unknown})})};function c(){i=n.value}function u(p){r.push(p);const m=()=>{const S=r.indexOf(p);S>-1&&r.splice(S,1)};return o.push(m),m}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(X({},p.state,{scroll:ws()}),"")}}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:d}}function Oo(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ws():null}}function Fu(e){const{history:t,location:n}=window,s={value:_l(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:Du()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[a?"replace":"assign"](p)}}function i(c,u){o(c,X({},t.state,Oo(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const a=X({},r.value,t.state,{forward:c,scroll:ws()});o(a.current,a,!0),o(c,X({},Oo(s.value,c,null),{position:a.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function ju(e){e=Au(e);const t=Fu(e),n=Vu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=X({location:"",base:e,go:s,createHref:wu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ut=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var _e=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(_e||{});const Bu={type:Ut.Static,value:""},Hu=/[a-zA-Z0-9_]/;function Uu(e){if(!e)return[[]];if(e==="/")return[[Bu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=_e.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,u="",a="";function d(){u&&(n===_e.Static?o.push({type:Ut.Static,value:u}):n===_e.Param||n===_e.ParamRegExp||n===_e.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ut.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==_e.ParamRegExp){s=n,n=_e.EscapeNext;continue}switch(n){case _e.Static:c==="/"?(u&&d(),i()):c===":"?(d(),n=_e.Param):p();break;case _e.EscapeNext:p(),n=s;break;case _e.Param:c==="("?n=_e.ParamRegExp:Hu.test(c)?p():(d(),n=_e.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case _e.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:n=_e.ParamRegExpEnd:a+=c;break;case _e.ParamRegExpEnd:d(),n=_e.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return n===_e.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),i(),r}const Po="[^/]+?",$u={sensitive:!1,strict:!1,start:!0,end:!0};var ke=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ke||{});const Ku=/[.+*?^${}()[\]/\\]/g;function Gu(e,t){const n=X({},$u,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[ke.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const p=u[d];let m=ke.Segment+(n.sensitive?ke.BonusCaseSensitive:0);if(p.type===Ut.Static)d||(r+="/"),r+=p.value.replace(Ku,"\\$&"),m+=ke.Static;else if(p.type===Ut.Param){const{value:S,repeatable:w,optional:j,regexp:D}=p;o.push({name:S,repeatable:w,optional:j});const T=D||Po;if(T!==Po){m+=ke.BonusCustomRegExp;try{`${T}`}catch(P){throw new Error(`Invalid custom RegExp for param "${S}" (${T}): `+P.message)}}let N=w?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;d||(N=j&&u.length<2?`(?:/${N})`:"/"+N),j&&(N+="?"),r+=N,m+=ke.Dynamic,j&&(m+=ke.BonusOptional),w&&(m+=ke.BonusRepeatable),T===".*"&&(m+=ke.BonusWildcard)}a.push(m)}s.push(a)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=ke.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(u){const a=u.match(i),d={};if(!a)return null;for(let p=1;p<a.length;p++){const m=a[p]||"",S=o[p-1];d[S.name]=m&&S.repeatable?m.split("/"):m}return d}function c(u){let a="",d=!1;for(const p of e){(!d||!a.endsWith("/"))&&(a+="/"),d=!1;for(const m of p)if(m.type===Ut.Static)a+=m.value;else if(m.type===Ut.Param){const{value:S,repeatable:w,optional:j}=m,D=S in u?u[S]:"";if(Xe(D)&&!w)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const T=Xe(D)?D.join("/"):D;if(!T)if(j)p.length<2&&(a.endsWith("/")?a=a.slice(0,-1):d=!0);else throw new Error(`Missing required param "${S}"`);a+=T}}return a||"/"}return{re:i,score:s,keys:o,parse:l,stringify:c}}function Wu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===ke.Static+ke.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ke.Static+ke.Segment?1:-1:0}function bl(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Wu(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Io(s))return 1;if(Io(r))return-1}return r.length-s.length}function Io(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qu={strict:!1,end:!0,sensitive:!1};function zu(e,t,n){const s=Gu(Uu(e.path),n),r=X(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ju(e,t){const n=[],s=new Map;t=Co(qu,t);function r(d){return s.get(d)}function o(d,p,m){const S=!m,w=No(d);w.aliasOf=m&&m.record;const j=Co(t,d),D=[w];if("alias"in d){const P=typeof d.alias=="string"?[d.alias]:d.alias;for(const K of P)D.push(No(X({},w,{components:m?m.record.components:w.components,path:K,aliasOf:m?m.record:w})))}let T,N;for(const P of D){const{path:K}=P;if(p&&K[0]!=="/"){const te=p.record.path,ne=te[te.length-1]==="/"?"":"/";P.path=p.record.path+(K&&ne+K)}if(T=zu(P,p,j),m?m.alias.push(T):(N=N||T,N!==T&&N.alias.push(T),S&&d.name&&!Lo(T)&&i(d.name)),El(T)&&c(T),w.children){const te=w.children;for(let ne=0;ne<te.length;ne++)o(te[ne],T,m&&m.children[ne])}m=m||T}return N?()=>{i(N)}:Nn}function i(d){if(yl(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function c(d){const p=Xu(d,n);n.splice(p,0,d),d.record.name&&!Lo(d)&&s.set(d.record.name,d)}function u(d,p){let m,S={},w,j;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw gn(de.MATCHER_NOT_FOUND,{location:d});j=m.record.name,S=X(ko(p.params,m.keys.filter(N=>!N.optional).concat(m.parent?m.parent.keys.filter(N=>N.optional):[]).map(N=>N.name)),d.params&&ko(d.params,m.keys.map(N=>N.name))),w=m.stringify(S)}else if(d.path!=null)w=d.path,m=n.find(N=>N.re.test(w)),m&&(S=m.parse(w),j=m.record.name);else{if(m=p.name?s.get(p.name):n.find(N=>N.re.test(p.path)),!m)throw gn(de.MATCHER_NOT_FOUND,{location:d,currentLocation:p});j=m.record.name,S=X({},p.params,d.params),w=m.stringify(S)}const D=[];let T=m;for(;T;)D.unshift(T.record),T=T.parent;return{name:j,path:w,params:S,matched:D,meta:Qu(D)}}e.forEach(d=>o(d));function a(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function ko(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function No(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Lo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Qu(e){return e.reduce((t,n)=>X(t,n.meta),{})}function Xu(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;bl(e,t[o])<0?s=o:n=o+1}const r=Zu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Zu(e){let t=e;for(;t=t.parent;)if(El(t)&&bl(e,t)===0)return t}function El({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Mo(e){const t=Je(xs),n=Je(Or),s=Me(()=>{const c=ie(e.to);return t.resolve(c)}),r=Me(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],d=n.matched;if(!a||!d.length)return-1;const p=d.findIndex(pn.bind(null,a));if(p>-1)return p;const m=Do(c[u-2]);return u>1&&Do(a)===m&&d[d.length-1].path!==m?d.findIndex(pn.bind(null,c[u-2])):p}),o=Me(()=>r.value>-1&&rf(n.params,s.value.params)),i=Me(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function l(c={}){if(sf(c)){const u=t[ie(e.replace)?"replace":"push"](ie(e.to)).catch(Nn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Me(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function ef(e){return e.length===1?e[0]:e}const tf=yn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Mo,setup(e,{slots:t}){const n=Jt(Mo(e)),{options:s}=Je(xs),r=Me(()=>({[Vo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Vo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&ef(t.default(n));return e.custom?o:fn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),nf=tf;function sf(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rf(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Xe(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function Do(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vo=(e,t,n)=>e??t??n,of=yn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(ir),r=Me(()=>e.route||s.value),o=Je(To,0),i=Me(()=>{let u=ie(o);const{matched:a}=r.value;let d;for(;(d=a[u])&&!d.components;)u++;return u}),l=Me(()=>r.value.matched[i.value]);Yn(To,Me(()=>i.value+1)),Yn(Lu,l),Yn(ir,r);const c=Pn();return Gt(()=>[c.value,l.value,e.name],([u,a,d],[p,m,S])=>{a&&(a.instances[d]=u,m&&m!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=m.leaveGuards),a.updateGuards.size||(a.updateGuards=m.updateGuards))),u&&a&&(!m||!pn(a,m)||!p)&&(a.enterCallbacks[d]||[]).forEach(w=>w(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,d=l.value,p=d&&d.components[a];if(!p)return Fo(n.default,{Component:p,route:u});const m=d.props[a],S=m?m===!0?u.params:typeof m=="function"?m(u):m:null,j=fn(p,X({},S,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(d.instances[a]=null)},ref:c}));return Fo(n.default,{Component:j,route:u})||j}}});function Fo(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lf=of;function cf(e){const t=Ju(e.routes,e),n=e.parseQuery||ku,s=e.stringifyQuery||Ro,r=e.history,o=An(),i=An(),l=An(),c=sc(Rt);let u=Rt;en&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Vs.bind(null,_=>""+_),d=Vs.bind(null,gu),p=Vs.bind(null,Hn);function m(_,k){let R,L;return yl(_)?(R=t.getRecordMatcher(_),L=k):L=_,t.addRoute(L,R)}function S(_){const k=t.getRecordMatcher(_);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(_=>_.record)}function j(_){return!!t.getRecordMatcher(_)}function D(_,k){if(k=X({},k||c.value),typeof _=="string"){const g=Fs(n,_,k.path),v=t.resolve({path:g.path},k),b=r.createHref(g.fullPath);return X(g,v,{params:p(v.params),hash:Hn(g.hash),redirectedFrom:void 0,href:b})}let R;if(_.path!=null)R=X({},_,{path:Fs(n,_.path,k.path).path});else{const g=X({},_.params);for(const v in g)g[v]==null&&delete g[v];R=X({},_,{params:d(g)}),k.params=d(k.params)}const L=t.resolve(R,k),G=_.hash||"";L.params=a(p(L.params));const f=vu(s,X({},_,{hash:du(G),path:L.path})),h=r.createHref(f);return X({fullPath:f,hash:G,query:s===Ro?Nu(_.query):_.query||{}},L,{redirectedFrom:void 0,href:h})}function T(_){return typeof _=="string"?Fs(n,_,c.value.path):X({},_)}function N(_,k){if(u!==_)return gn(de.NAVIGATION_CANCELLED,{from:k,to:_})}function P(_){return ne(_)}function K(_){return P(X(T(_),{replace:!0}))}function te(_,k){const R=_.matched[_.matched.length-1];if(R&&R.redirect){const{redirect:L}=R;let G=typeof L=="function"?L(_,k):L;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=T(G):{path:G},G.params={}),X({query:_.query,hash:_.hash,params:G.path!=null?{}:_.params},G)}}function ne(_,k){const R=u=D(_),L=c.value,G=_.state,f=_.force,h=_.replace===!0,g=te(R,L);if(g)return ne(X(T(g),{state:typeof g=="object"?X({},G,g.state):G,force:f,replace:h}),k||R);const v=R;v.redirectedFrom=k;let b;return!f&&_u(s,L,R)&&(b=gn(de.NAVIGATION_DUPLICATED,{to:v,from:L}),Ze(L,L,!0,!1)),(b?Promise.resolve(b):J(v,L)).catch(y=>ht(y)?ht(y,de.NAVIGATION_GUARD_REDIRECT)?y:xt(y):Q(y,v,L)).then(y=>{if(y){if(ht(y,de.NAVIGATION_GUARD_REDIRECT))return ne(X({replace:h},T(y.to),{state:typeof y.to=="object"?X({},G,y.to.state):G,force:f}),k||v)}else y=I(v,L,!0,h,G);return ce(v,L,y),y})}function Se(_,k){const R=N(_,k);return R?Promise.reject(R):Promise.resolve()}function U(_){const k=Qt.values().next().value;return k&&typeof k.runWithContext=="function"?k.runWithContext(_):_()}function J(_,k){let R;const[L,G,f]=Mu(_,k);R=Bs(L.reverse(),"beforeRouteLeave",_,k);for(const g of L)g.leaveGuards.forEach(v=>{R.push(Pt(v,_,k))});const h=Se.bind(null,_,k);return R.push(h),Ue(R).then(()=>{R=[];for(const g of o.list())R.push(Pt(g,_,k));return R.push(h),Ue(R)}).then(()=>{R=Bs(G,"beforeRouteUpdate",_,k);for(const g of G)g.updateGuards.forEach(v=>{R.push(Pt(v,_,k))});return R.push(h),Ue(R)}).then(()=>{R=[];for(const g of f)if(g.beforeEnter)if(Xe(g.beforeEnter))for(const v of g.beforeEnter)R.push(Pt(v,_,k));else R.push(Pt(g.beforeEnter,_,k));return R.push(h),Ue(R)}).then(()=>(_.matched.forEach(g=>g.enterCallbacks={}),R=Bs(f,"beforeRouteEnter",_,k,U),R.push(h),Ue(R))).then(()=>{R=[];for(const g of i.list())R.push(Pt(g,_,k));return R.push(h),Ue(R)}).catch(g=>ht(g,de.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function ce(_,k,R){l.list().forEach(L=>U(()=>L(_,k,R)))}function I(_,k,R,L,G){const f=N(_,k);if(f)return f;const h=k===Rt,g=en?history.state:{};R&&(L||h?r.replace(_.fullPath,X({scroll:h&&g&&g.scroll},G)):r.push(_.fullPath,G)),c.value=_,Ze(_,k,R,h),xt()}let Y;function be(){Y||(Y=r.listen((_,k,R)=>{if(!Mt.listening)return;const L=D(_),G=te(L,Mt.currentRoute.value);if(G){ne(X(G,{replace:!0,force:!0}),L).catch(Nn);return}u=L;const f=c.value;en&&Ru(So(f.fullPath,R.delta),ws()),J(L,f).catch(h=>ht(h,de.NAVIGATION_ABORTED|de.NAVIGATION_CANCELLED)?h:ht(h,de.NAVIGATION_GUARD_REDIRECT)?(ne(X(T(h.to),{force:!0}),L).then(g=>{ht(g,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&!R.delta&&R.type===rr.pop&&r.go(-1,!1)}).catch(Nn),Promise.reject()):(R.delta&&r.go(-R.delta,!1),Q(h,L,f))).then(h=>{h=h||I(L,f,!1),h&&(R.delta&&!ht(h,de.NAVIGATION_CANCELLED)?r.go(-R.delta,!1):R.type===rr.pop&&ht(h,de.NAVIGATION_ABORTED|de.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ce(L,f,h)}).catch(Nn)}))}let je=An(),he=An(),se;function Q(_,k,R){xt(_);const L=he.list();return L.length?L.forEach(G=>G(_,k,R)):console.error(_),Promise.reject(_)}function ft(){return se&&c.value!==Rt?Promise.resolve():new Promise((_,k)=>{je.add([_,k])})}function xt(_){return se||(se=!_,be(),je.list().forEach(([k,R])=>_?R(_):k()),je.reset()),_}function Ze(_,k,R,L){const{scrollBehavior:G}=e;if(!en||!G)return Promise.resolve();const f=!R&&Tu(So(_.fullPath,0))||(L||!R)&&history.state&&history.state.scroll||null;return _r().then(()=>G(_,k,f)).then(h=>h&&Su(h)).catch(h=>Q(h,_,k))}const Ve=_=>r.go(_);let Yt;const Qt=new Set,Mt={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:j,getRoutes:w,resolve:D,options:e,push:P,replace:K,go:Ve,back:()=>Ve(-1),forward:()=>Ve(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:he.add,isReady:ft,install(_){_.component("RouterLink",nf),_.component("RouterView",lf),_.config.globalProperties.$router=Mt,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>ie(c)}),en&&!Yt&&c.value===Rt&&(Yt=!0,P(r.location).catch(L=>{}));const k={};for(const L in Rt)Object.defineProperty(k,L,{get:()=>c.value[L],enumerable:!0});_.provide(xs,Mt),_.provide(Or,ui(k)),_.provide(ir,c);const R=_.unmount;Qt.add(_),_.unmount=function(){Qt.delete(_),Qt.size<1&&(u=Rt,Y&&Y(),Y=null,c.value=Rt,Yt=!1,se=!1),R()}}};function Ue(_){return _.reduce((k,R)=>k.then(()=>U(R)),Promise.resolve())}return Mt}function af(){return Je(xs)}function id(e){return Je(Or)}const uf=[{path:"/",name:"dashboard",component:()=>ve(()=>import("./DashboardView-Dgqzqr0u.js"),__vite__mapDeps([0,1,2,3]))},{path:"/deployments",name:"deployments",component:()=>ve(()=>import("./DeploymentsView-CDNBJ7JQ.js"),__vite__mapDeps([4,1,3]))},{path:"/deployments/:id",component:()=>ve(()=>import("./DeploymentDetailView-CzNOnaAb.js"),__vite__mapDeps([5,6,7,8])),props:!0,children:[{path:"",name:"deployment",redirect:e=>`/deployments/${e.params.id}/overview`},{path:"overview",name:"d.overview",component:()=>ve(()=>import("./OverviewTab-LKcYN5mk.js"),__vite__mapDeps([9,6,7,1,3]))},{path:"config",name:"d.config",component:()=>ve(()=>import("./ConfigTab-ezI-u-MN.js"),__vite__mapDeps([10,6,7,11]))},{path:"runtime",name:"d.runtime",component:()=>ve(()=>import("./RuntimeTab-CWjyUEnD.js"),__vite__mapDeps([12,6,7,3,8]))},{path:"axes",name:"d.axes",component:()=>ve(()=>import("./AxesTab-Cxy76M1f.js"),__vite__mapDeps([13,6,7]))},{path:"requires",name:"d.requires",component:()=>ve(()=>import("./RequiresTab-BeZeFQdv.js"),__vite__mapDeps([14,6,7]))},{path:"logs",name:"d.logs",component:()=>ve(()=>import("./LogsTab-BHYDWsWb.js"),__vite__mapDeps([15,6,7]))},{path:"danger",name:"d.danger",component:()=>ve(()=>import("./DangerTab-Cnr_8-Ba.js"),__vite__mapDeps([16,6,7,1,17,8]))}]},{path:"/routing",name:"routing",component:()=>ve(()=>import("./RoutingView-BjBTNG-z.js"),__vite__mapDeps([18,1,17,8,3]))},{path:"/registries",name:"registries",component:()=>ve(()=>import("./RegistriesView-Bvnq_VSn.js"),__vite__mapDeps([19,17,8,3]))},{path:"/specs",name:"specs",component:()=>ve(()=>import("./SpecsView-Bib418qu.js"),__vite__mapDeps([20,1,3,8]))},{path:"/specs/:name",name:"spec",component:()=>ve(()=>import("./SpecDetailView-CDXuYT7k.js"),__vite__mapDeps([21,1,3,8])),props:!0},{path:"/submit/:id?",name:"submit",component:()=>ve(()=>import("./SubmitView-DoVltkUx.js"),__vite__mapDeps([22,7,17,8,11])),props:!0},{path:"/jobs",name:"jobs",component:()=>ve(()=>import("./JobsView-DeAdOUVq.js"),__vite__mapDeps([23,1,2,3]))},{path:"/jobs/:jobId",name:"job",component:()=>ve(()=>import("./JobDetailView-DB6cP2ka.js"),__vite__mapDeps([24,1,2,8])),props:!0},{path:"/settings",name:"settings",component:()=>ve(()=>import("./SettingsView-D_roVhhz.js"),[])},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>ve(()=>import("./NotFoundView-ROlvmBTU.js"),[])}],ff=cf({history:ju(),routes:uf,scrollBehavior:(e,t,n)=>n??{top:0}});let df=0;const ln=Jt([]);function Al(e){const t=ln.findIndex(n=>n.id===e);t>=0&&ln.splice(t,1)}function ld(e,t,n={}){const s=++df;ln.push({id:s,kind:e,text:t,to:n.to,toLabel:n.toLabel});const r=n.ms??(e==="error"?0:6e3);for(r>0&&setTimeout(()=>Al(s),r);ln.length>5;)ln.shift();return s}const hf={class:"toasts","aria-live":"polite","aria-atomic":"false"},pf=["aria-label","onClick"],gf=yn({__name:"ToastHost",setup(e){return(t,n)=>{const s=zs("RouterLink");return pe(),Le("div",hf,[$(Ba,{name:"toast"},{default:Ee(()=>[(pe(!0),Le(me,null,Js(ie(ln),r=>(pe(),Le("div",{key:r.id,class:cn(["toast",r.kind])},[W("div",null,[W("div",null,_t(r.text),1),r.to?(pe(),un(s,{key:0,to:r.to},{default:Ee(()=>[Ht(_t(r.toLabel??"Open")+" →",1)]),_:2},1032,["to"])):Wt("",!0)]),W("button",{class:"x","aria-label":`dismiss: ${r.text}`,onClick:o=>ie(Al)(r.id)},"✕",8,pf)],2))),128))]),_:1})])}}}),mf=900;function jo(e){const t=e;if(!t)return!1;const n=t.tagName;return n==="INPUT"||n==="TEXTAREA"||n==="SELECT"||t.isContentEditable===!0}function yf(){const e=af(),t=Pn(!1);let n=0,s="";const r=o=>{if(o.key==="Escape"){t.value&&(t.value=!1,o.preventDefault()),jo(o.target)&&o.target.blur();return}if(o.metaKey||o.ctrlKey||o.altKey||jo(o.target))return;const i=Date.now();if(s==="g"&&i-n<mf){s="";const l={d:"/deployments",j:"/jobs",h:"/",s:"/settings",n:"/submit"}[o.key];l&&(o.preventDefault(),e.push(l));return}if(o.key==="g"){s="g",n=i;return}if(s="",o.key==="?"){o.preventDefault(),t.value=!t.value;return}if(o.key==="/"){const l=document.querySelector("[data-search]");l&&(o.preventDefault(),l.focus(),l.select())}};return Kn(()=>document.addEventListener("keydown",r)),bs(()=>document.removeEventListener("keydown",r)),{sheetOpen:t}}const vf=[{keys:"?",what:"Open or close this sheet"},{keys:"g h",what:"Go to the dashboard"},{keys:"g d",what:"Go to deployments"},{keys:"g j",what:"Go to jobs"},{keys:"g n",what:"Go to submit"},{keys:"g s",what:"Go to settings"},{keys:"/",what:"Focus the search box on this view"},{keys:"Esc",what:"Close this sheet, or leave the field you are typing in"}],_f={class:"sheet"},bf={class:"row"},Ef=yn({__name:"ShortcutSheet",props:{open:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=t;return(s,r)=>(pe(),un(Rr,{name:"fade"},{default:Ee(()=>[e.open?(pe(),Le("div",{key:0,class:"scrim",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:r[1]||(r[1]=za(o=>n("close"),["self"]))},[W("div",_f,[W("div",bf,[r[2]||(r[2]=W("h2",{style:{"font-size":"var(--t-lg)","font-weight":"650"}},"Keyboard shortcuts",-1)),r[3]||(r[3]=W("span",{class:"grow"},null,-1)),W("button",{class:"ghost sm",onClick:r[0]||(r[0]=o=>n("close"))},"Close")]),W("dl",null,[(pe(!0),Le(me,null,Js(ie(vf),o=>(pe(),Le(me,{key:o.keys},[W("dt",null,[(pe(!0),Le(me,null,Js(o.keys.split(" "),i=>(pe(),Le("kbd",{key:i,style:{"margin-left":"4px"}},_t(i),1))),128))]),W("dd",null,_t(o.what),1)],64))),128))])])])):Wt("",!0)]),_:1}))}});function Af(e,t=6e3){let n;const s=()=>{n!==void 0&&clearInterval(n),n=void 0},r=()=>{s(),n=setInterval(e,t)},o=()=>{document.visibilityState==="visible"?(e(),r()):s()};Kn(()=>{e(),document.visibilityState==="visible"&&r(),document.addEventListener("visibilitychange",o)}),bs(()=>{s(),document.removeEventListener("visibilitychange",o)})}const Lt={token:"pstack.ui.token",apiBase:"pstack.ui.apiBase",theme:"pstack.ui.theme",motion:"pstack.ui.motion"};function cs(e,t){try{return localStorage.getItem(e)??t}catch{return t}}function as(e,t){try{t?localStorage.setItem(e,t):localStorage.removeItem(e)}catch{}}const Hs=cs(Lt.theme,"system"),Us=cs(Lt.motion,"system"),Ae=Jt({token:cs(Lt.token,""),apiBase:cs(Lt.apiBase,""),theme:Hs==="dark"||Hs==="light"?Hs:"system",motion:Us==="full"||Us==="none"?Us:"system"});function Cl(){const e=document.documentElement;Ae.theme==="system"?delete e.dataset.theme:e.dataset.theme=Ae.theme,Ae.motion==="system"?delete e.dataset.motion:e.dataset.motion=Ae.motion}Gt(()=>Ae.token,e=>as(Lt.token,e));Gt(()=>Ae.apiBase,e=>as(Lt.apiBase,e));Gt(()=>[Ae.theme,Ae.motion],()=>{as(Lt.theme,Ae.theme==="system"?"":Ae.theme),as(Lt.motion,Ae.motion==="system"?"":Ae.motion),Cl()});Cl();function cd(e,t={}){const n=new URLSearchParams;for(const r of e)r.k&&n.set(r.k,r.v??"");for(const[r,o]of Object.entries(t))n.set(r,String(o));const s=n.toString();return s?`?${s}`:""}function wl(e){const t=Ae.apiBase.replace(/\/$/,"");return t?t+e:e}async function Cn(e,t,n,s=!1){const r={};e!=="GET"?(r["content-type"]="application/json",Ae.token&&(r.authorization=`Bearer ${Ae.token}`)):s&&Ae.token&&(r.authorization=`Bearer ${Ae.token}`);try{const o=await fetch(wl(t),{method:e,headers:r,body:n===void 0?void 0:JSON.stringify(n)}),i=await o.text();let l=null;try{l=i?JSON.parse(i):null}catch{}return l===null&&i?{status:o.status,ok:o.ok,body:{},raw:i,notJson:!0}:{status:o.status,ok:o.ok,body:l??{},raw:i,notJson:!1}}catch(o){return{status:0,ok:!1,body:{error:`unreachable: ${o.message}`},raw:"",notJson:!1}}}const Pr={get:e=>Cn("GET",e),getAuthed:e=>Cn("GET",e,void 0,!0),post:(e,t)=>Cn("POST",e,t??{}),put:(e,t)=>Cn("PUT",e,t),del:e=>Cn("DELETE",e),url:wl};function Ir(e,t){if(e.status===0)return e.body.error??"unreachable";if(e.status===401)return`${t}: 401 unauthorized — set the bearer token in Settings.`;if(e.notJson)return`${t}: HTTP ${e.status}, and the response was not JSON. Something other than the pstack API answered — a proxy, or an error page.
|
|
27
27
|
|
|
28
28
|
${e.raw.slice(0,400)}`;const n=e.body.error;return e.status===404&&(!n||n==="not found")?`${t}: 404 — no such resource, or this build of the API has no such route yet.`:n?`${t}: ${n}`:`${t}: HTTP ${e.status}`}function ad(e){const t=e.error??"HTTP 409 (no message)",n=e.stack??"";return e.kind?{kind:"shared",text:t,stack:n,deployments:[]}:e.containers!==void 0?{kind:"containers",text:t,stack:n,deployments:[]}:e.deployments?{kind:"referenced",text:t,stack:n,deployments:e.deployments}:{kind:"other",text:t,stack:n,deployments:[]}}const ue=Jt({health:null,healthError:"",deployments:[],deploymentsError:"",deploymentsLoaded:!1,jobs:[],jobsError:"",jobsLoaded:!1});async function Cf(){const e=await Pr.get("/api/health");e.ok?(ue.health=e.body,ue.healthError=""):(ue.health=null,ue.healthError=Ir(e,"GET /api/health"))}async function wf(){const e=await Pr.get("/api/deployments");if(ue.deploymentsLoaded=!0,!e.ok){ue.deploymentsError=Ir(e,"GET /api/deployments");return}ue.deploymentsError="",ue.deployments=(e.body.deployments??[]).map(t=>({...t,kind:t.kind==="shared"?"shared":"isolated",busy:t.busy??null,running:t.running??null,stack:t.stack??null}))}async function xf(){const e=await Pr.get("/api/jobs");if(ue.jobsLoaded=!0,!e.ok){ue.jobsError=Ir(e,"GET /api/jobs");return}ue.jobsError="",ue.jobs=e.body.jobs??[]}const ud=Me(()=>{const e={total:0,isolated:0,shared:0,running:0,busy:0,unknown:0,unresolved:0};for(const t of ue.deployments)e.total++,t.kind==="shared"?e.shared++:e.isolated++,t.busy===!0&&e.busy++,t.running===!0&&e.running++,(t.busy===null||t.running===null)&&e.unknown++,t.unresolved&&e.unresolved++;return e}),fd=Me(()=>ue.jobs.filter(e=>e.state==="leaked"));function dd(e){return ue.deployments.find(t=>t.id===e)}/**
|
|
29
29
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
@@ -120,5 +120,5 @@ ${e.raw.slice(0,400)}`;const n=e.body.error;return e.status===404&&(!n||n==="not
|
|
|
120
120
|
*
|
|
121
121
|
* This source code is licensed under the ISC license.
|
|
122
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const Bf=ut("waypoints",[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]),Hf=["aria-label","aria-expanded"],Uf=yn({__name:"InfoHint",props:{label:{},align:{},side:{}},setup(e){const t=e,n=Pn(!1),s=Pn(!1),r=Pn(null);function o(l){n.value&&r.value&&!r.value.contains(l.target)&&(n.value=!1)}function i(l){l.key==="Escape"&&n.value&&(n.value=!1)}return Kn(()=>{document.addEventListener("pointerdown",o),document.addEventListener("keydown",i)}),Ar(()=>{document.removeEventListener("pointerdown",o),document.removeEventListener("keydown",i)}),(l,c)=>(pe(),Le("span",{ref_key:"root",ref:r,class:"hint-wrap"},[W("button",{type:"button",class:cn(["hint-btn",{on:n.value}]),"aria-label":t.label??"More information","aria-expanded":n.value||s.value,onClick:c[0]||(c[0]=u=>n.value=!n.value),onPointerenter:c[1]||(c[1]=u=>s.value=!0),onPointerleave:c[2]||(c[2]=u=>s.value=!1),onFocus:c[3]||(c[3]=u=>s.value=!0),onBlur:c[4]||(c[4]=u=>s.value=!1)},[$(ie(Lf),{size:15,"stroke-width":2,"aria-hidden":"true"})],42,Hf),$(Rr,{name:"hint"},{default:Ee(()=>[n.value||s.value?(pe(),Le("span",{key:0,class:cn(["hint-bub",[t.align==="end"?"to-end":"to-start",t.side==="top"?"above":"below"]]),role:"tooltip"},[Oc(l.$slots,"default")],2)):Wt("",!0)]),_:3})],512))}}),$f={class:"shell"},Kf={class:"rail"},Gf={"aria-label":"Sections"},Wf={class:"count"},qf={class:"count"},zf={class:"foot"},Jf={key:0},Yf={key:1,class:"s-failed"},Qf={key:2,class:"row",style:{gap:"2px"}},Xf={id:"main",class:"view"},Zf=yn({__name:"App",setup(e){const{sheetOpen:t}=yf();Af(()=>{wf(),xf()},7e3),Cf();const n=Me(()=>ue.jobs.filter(r=>r.state==="running").length),s=Me(()=>{var r;return((r=ue.health)==null?void 0:r.authEnforced)===!0&&!Ae.token});return(r,o)=>{const i=zs("RouterLink"),l=zs("RouterView");return pe(),Le(me,null,[o[14]||(o[14]=W("a",{class:"skip",href:"#main"},"Skip to content",-1)),W("div",$f,[W("aside",Kf,[$(i,{to:"/",class:"brand"},{default:Ee(()=>[$(ie(Vf),{size:20,"aria-hidden":"true"}),o[2]||(o[2]=Ht(" pstack ",-1))]),_:1}),W("nav",Gf,[$(i,{to:"/",class:"navlink",title:"g h"},{default:Ee(()=>[$(ie(Df),{size:17,"aria-hidden":"true"}),o[3]||(o[3]=W("span",null,"Dashboard",-1))]),_:1}),$(i,{to:"/deployments",class:"navlink",title:"g d"},{default:Ee(()=>[$(ie(If),{size:17,"aria-hidden":"true"}),o[4]||(o[4]=W("span",null,"Deployments",-1)),W("span",Wf,_t(ie(ue).deployments.length),1)]),_:1}),$(i,{to:"/specs",class:"navlink"},{default:Ee(()=>[$(ie(Nf),{size:17,"aria-hidden":"true"}),o[5]||(o[5]=W("span",null,"Specs",-1))]),_:1}),$(i,{to:"/routing",class:"navlink"},{default:Ee(()=>[$(ie(Bf),{size:17,"aria-hidden":"true"}),o[6]||(o[6]=W("span",null,"Routing",-1))]),_:1}),$(i,{to:"/registries",class:"navlink"},{default:Ee(()=>[$(ie(Mf),{size:17,"aria-hidden":"true"}),o[7]||(o[7]=W("span",null,"Registries",-1))]),_:1}),$(i,{to:"/jobs",class:"navlink",title:"g j"},{default:Ee(()=>[$(ie(kf),{size:17,"aria-hidden":"true"}),o[8]||(o[8]=W("span",null,"Jobs",-1)),W("span",qf,_t(n.value?`${n.value}▸`:ie(ue).jobs.length),1)]),_:1}),$(i,{to:"/submit",class:"navlink",title:"g n"},{default:Ee(()=>[$(ie(Ff),{size:17,"aria-hidden":"true"}),o[9]||(o[9]=W("span",null,"Submit",-1))]),_:1}),$(i,{to:"/settings",class:"navlink",title:"g s"},{default:Ee(()=>[$(ie(jf),{size:17,"aria-hidden":"true"}),o[10]||(o[10]=W("span",null,"Settings",-1))]),_:1})]),W("div",zf,[s.value?(pe(),Le("div",Jf,[$(i,{to:"/settings",class:"badge warn"},{default:Ee(()=>[...o[11]||(o[11]=[Ht("Token required",-1)])]),_:1})])):Wt("",!0),ie(ue).healthError?(pe(),Le("div",Yf,"Can't reach the server")):ie(ue).health?(pe(),Le("div",Qf,[W("span",null,"v"+_t(ie(ue).health.version),1),$(Uf,{label:"server details",side:"top"},{default:Ee(()=>[o[12]||(o[12]=Ht(" Data is stored in ",-1)),W("code",null,_t(ie(ue).health.dataDir),1),o[13]||(o[13]=Ht(" on the host. ",-1)),ie(ue).health.authEnforced===!1?(pe(),Le(me,{key:0},[Ht(" This server accepts connections from this machine only, so it does not ask for a token. ")],64)):Wt("",!0)]),_:1})])):Wt("",!0),W("div",null,[W("button",{class:"ghost sm",onClick:o[0]||(o[0]=c=>t.value=!0)},"Shortcuts")])])]),W("main",Xf,[$(l,null,{default:Ee(({Component:c})=>[$(Rr,{name:"view",mode:"out-in"},{default:Ee(()=>[(pe(),un(Tc(c)))]),_:2},1024)]),_:1})])]),$(gf),$(Ef,{open:ie(t),onClose:o[1]||(o[1]=c=>t.value=!1)},null,8,["open"])],64)}}});Qa(Zf).use(ff).mount("#app");export{sd as A,Gt as B,af as C,Tc as D,td as E,me as F,cd as G,ld as H,wf as I,ad as J,Ae as K,Jt as L,dd as M,rd as N,
|
|
124
|
-
//# sourceMappingURL=index-
|
|
123
|
+
*/const Bf=ut("waypoints",[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]]),Hf=["aria-label","aria-expanded"],Uf=yn({__name:"InfoHint",props:{label:{},align:{},side:{}},setup(e){const t=e,n=Pn(!1),s=Pn(!1),r=Pn(null);function o(l){n.value&&r.value&&!r.value.contains(l.target)&&(n.value=!1)}function i(l){l.key==="Escape"&&n.value&&(n.value=!1)}return Kn(()=>{document.addEventListener("pointerdown",o),document.addEventListener("keydown",i)}),Ar(()=>{document.removeEventListener("pointerdown",o),document.removeEventListener("keydown",i)}),(l,c)=>(pe(),Le("span",{ref_key:"root",ref:r,class:"hint-wrap"},[W("button",{type:"button",class:cn(["hint-btn",{on:n.value}]),"aria-label":t.label??"More information","aria-expanded":n.value||s.value,onClick:c[0]||(c[0]=u=>n.value=!n.value),onPointerenter:c[1]||(c[1]=u=>s.value=!0),onPointerleave:c[2]||(c[2]=u=>s.value=!1),onFocus:c[3]||(c[3]=u=>s.value=!0),onBlur:c[4]||(c[4]=u=>s.value=!1)},[$(ie(Lf),{size:15,"stroke-width":2,"aria-hidden":"true"})],42,Hf),$(Rr,{name:"hint"},{default:Ee(()=>[n.value||s.value?(pe(),Le("span",{key:0,class:cn(["hint-bub",[t.align==="end"?"to-end":"to-start",t.side==="top"?"above":"below"]]),role:"tooltip"},[Oc(l.$slots,"default")],2)):Wt("",!0)]),_:3})],512))}}),$f={class:"shell"},Kf={class:"rail"},Gf={"aria-label":"Sections"},Wf={class:"count"},qf={class:"count"},zf={class:"foot"},Jf={key:0},Yf={key:1,class:"s-failed"},Qf={key:2,class:"row",style:{gap:"2px"}},Xf={id:"main",class:"view"},Zf=yn({__name:"App",setup(e){const{sheetOpen:t}=yf();Af(()=>{wf(),xf()},7e3),Cf();const n=Me(()=>ue.jobs.filter(r=>r.state==="running").length),s=Me(()=>{var r;return((r=ue.health)==null?void 0:r.authEnforced)===!0&&!Ae.token});return(r,o)=>{const i=zs("RouterLink"),l=zs("RouterView");return pe(),Le(me,null,[o[14]||(o[14]=W("a",{class:"skip",href:"#main"},"Skip to content",-1)),W("div",$f,[W("aside",Kf,[$(i,{to:"/",class:"brand"},{default:Ee(()=>[$(ie(Vf),{size:20,"aria-hidden":"true"}),o[2]||(o[2]=Ht(" pstack ",-1))]),_:1}),W("nav",Gf,[$(i,{to:"/",class:"navlink",title:"g h"},{default:Ee(()=>[$(ie(Df),{size:17,"aria-hidden":"true"}),o[3]||(o[3]=W("span",null,"Dashboard",-1))]),_:1}),$(i,{to:"/deployments",class:"navlink",title:"g d"},{default:Ee(()=>[$(ie(If),{size:17,"aria-hidden":"true"}),o[4]||(o[4]=W("span",null,"Deployments",-1)),W("span",Wf,_t(ie(ue).deployments.length),1)]),_:1}),$(i,{to:"/specs",class:"navlink"},{default:Ee(()=>[$(ie(Nf),{size:17,"aria-hidden":"true"}),o[5]||(o[5]=W("span",null,"Specs",-1))]),_:1}),$(i,{to:"/routing",class:"navlink"},{default:Ee(()=>[$(ie(Bf),{size:17,"aria-hidden":"true"}),o[6]||(o[6]=W("span",null,"Routing",-1))]),_:1}),$(i,{to:"/registries",class:"navlink"},{default:Ee(()=>[$(ie(Mf),{size:17,"aria-hidden":"true"}),o[7]||(o[7]=W("span",null,"Registries",-1))]),_:1}),$(i,{to:"/jobs",class:"navlink",title:"g j"},{default:Ee(()=>[$(ie(kf),{size:17,"aria-hidden":"true"}),o[8]||(o[8]=W("span",null,"Jobs",-1)),W("span",qf,_t(n.value?`${n.value}▸`:ie(ue).jobs.length),1)]),_:1}),$(i,{to:"/submit",class:"navlink",title:"g n"},{default:Ee(()=>[$(ie(Ff),{size:17,"aria-hidden":"true"}),o[9]||(o[9]=W("span",null,"Submit",-1))]),_:1}),$(i,{to:"/settings",class:"navlink",title:"g s"},{default:Ee(()=>[$(ie(jf),{size:17,"aria-hidden":"true"}),o[10]||(o[10]=W("span",null,"Settings",-1))]),_:1})]),W("div",zf,[s.value?(pe(),Le("div",Jf,[$(i,{to:"/settings",class:"badge warn"},{default:Ee(()=>[...o[11]||(o[11]=[Ht("Token required",-1)])]),_:1})])):Wt("",!0),ie(ue).healthError?(pe(),Le("div",Yf,"Can't reach the server")):ie(ue).health?(pe(),Le("div",Qf,[W("span",null,"v"+_t(ie(ue).health.version),1),$(Uf,{label:"server details",side:"top"},{default:Ee(()=>[o[12]||(o[12]=Ht(" Data is stored in ",-1)),W("code",null,_t(ie(ue).health.dataDir),1),o[13]||(o[13]=Ht(" on the host. ",-1)),ie(ue).health.authEnforced===!1?(pe(),Le(me,{key:0},[Ht(" This server accepts connections from this machine only, so it does not ask for a token. ")],64)):Wt("",!0)]),_:1})])):Wt("",!0),W("div",null,[W("button",{class:"ghost sm",onClick:o[0]||(o[0]=c=>t.value=!0)},"Shortcuts")])])]),W("main",Xf,[$(l,null,{default:Ee(({Component:c})=>[$(Rr,{name:"view",mode:"out-in"},{default:Ee(()=>[(pe(),un(Tc(c)))]),_:2},1024)]),_:1})])]),$(gf),$(Ef,{open:ie(t),onClose:o[1]||(o[1]=c=>t.value=!1)},null,8,["open"])],64)}}});Qa(Zf).use(ff).mount("#app");export{sd as A,Gt as B,af as C,Tc as D,td as E,me as F,cd as G,ld as H,wf as I,ad as J,Ae as K,Jt as L,dd as M,rd as N,id as O,Oc as P,Ar as Q,Cf as R,Rr as T,Uf as _,W as a,ie as b,Le as c,yn as d,Ht as e,$ as f,Wt as g,un as h,ud as i,Pn as j,Pr as k,fd as l,Me as m,zs as n,pe as o,Ir as p,ur as q,Js as r,ue as s,_t as t,Af as u,cn as v,Ee as w,ed as x,nd as y,od as z};
|
|
124
|
+
//# sourceMappingURL=index-B4C7uKN0.js.map
|