From fa57d5a5ab28e490c743512d68bc29e96ba39c17 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 16 Nov 2024 17:05:11 +0100 Subject: [PATCH] Disable 'j' hotky in WebUI - Waiting for #3019 --- glances/outputs/static/js/App.vue | 7 ++++--- glances/outputs/static/public/glances.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/glances/outputs/static/js/App.vue b/glances/outputs/static/js/App.vue index 8d04bed38..f33e7ede6 100644 --- a/glances/outputs/static/js/App.vue +++ b/glances/outputs/static/js/App.vue @@ -252,9 +252,10 @@ export default { }); // j => Accumulate processes by program - hotkeys('j', () => { - this.store.args.programs = !this.store.args.programs; - }); + // Disable for the moment, see https://github.com/nicolargo/glances/issues/3019 + // hotkeys('j', () => { + // this.store.args.programs = !this.store.args.programs; + // }); // k => Show/hide connections stats hotkeys('k', () => { diff --git a/glances/outputs/static/public/glances.js b/glances/outputs/static/public/glances.js index 0b279d9e0..d56fb8434 100644 --- a/glances/outputs/static/public/glances.js +++ b/glances/outputs/static/public/glances.js @@ -34,4 +34,4 @@ const Qt=new Map,Zt={set(t,e,r){Qt.has(t)||Qt.set(t,new Map);const n=Qt.get(t);n * https://jaywcjlove.github.io/hotkeys-js * Licensed under the MIT license */ -var Ad="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Sd(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function Ed(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var Td={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ad?173:189,"=":Ad?61:187,";":Ad?59:186,"'":222,"[":219,"]":221,"\\":220},Od={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Id={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},jd={16:!1,18:!1,17:!1,91:!1},Dd={},Ld=1;Ld<20;Ld++)Td["f".concat(Ld)]=111+Ld;var Pd=[],Nd=!1,Md="all",Rd=[],qd=function(t){return Td[t.toLowerCase()]||Od[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Bd(t){Md=t||"all"}function $d(){return Md||"all"}var Fd=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,o=void 0===i?"+":i;Cd(e).forEach((function(t){var e=t.split(o),i=e.length,s=e[i-1],a="*"===s?"*":qd(s);if(Dd[a]){r||(r=$d());var l=i>1?Ed(Od,e):[];Dd[a]=Dd[a].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,o=0;o0,jd)Object.prototype.hasOwnProperty.call(jd,o)&&(!jd[o]&&e.mods.indexOf(+o)>-1||jd[o]&&-1===e.mods.indexOf(+o))&&(i=!1);(0!==e.mods.length||jd[16]||jd[18]||jd[17]||jd[91])&&!i&&"*"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(Pd),!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function zd(t,e){var r=Dd["*"],n=t.keyCode||t.which||t.charCode;if(Hd.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===Pd.indexOf(n)&&229!==n&&Pd.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=Id[e];t[e]&&-1===Pd.indexOf(r)?Pd.push(r):!t[e]&&Pd.indexOf(r)>-1?Pd.splice(Pd.indexOf(r),1):"metaKey"===e&&t[e]&&3===Pd.length&&(t.ctrlKey||t.shiftKey||t.altKey||(Pd=Pd.slice(Pd.indexOf(r))))})),n in jd){for(var i in jd[n]=!0,Od)Od[i]===n&&(Hd[i]=!0);if(!r)return}for(var o in jd)Object.prototype.hasOwnProperty.call(jd,o)&&(jd[o]=t[Id[o]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===Pd.indexOf(17)&&Pd.push(17),-1===Pd.indexOf(18)&&Pd.push(18),jd[17]=!0,jd[18]=!0);var s=$d();if(r)for(var a=0;a1&&(i=Ed(Od,t)),(t="*"===(t=t[t.length-1])?"*":qd(t))in Dd||(Dd[t]=[]),Dd[t].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:n[a],method:r,key:n[a],splitKey:u,element:s});void 0!==s&&!function(t){return Rd.indexOf(t)>-1}(s)&&window&&(Rd.push(s),Sd(s,"keydown",(function(t){zd(t,s)}),p),Nd||(Nd=!0,Sd(window,"focus",(function(){Pd=[]}),p)),Sd(s,"keyup",(function(t){zd(t,s),function(t){var e=t.keyCode||t.which||t.charCode,r=Pd.indexOf(e);if(r>=0&&Pd.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&Pd.splice(0,Pd.length),93!==e&&224!==e||(e=91),e in jd)for(var n in jd[e]=!1,Od)Od[n]===e&&(Hd[n]=!1)}(t)}),p))}var Vd={getPressedKeyString:function(){return Pd.map((function(t){return e=t,Object.keys(Td).find((function(t){return Td[t]===e}))||function(t){return Object.keys(Od).find((function(e){return Od[e]===t}))}(t)||String.fromCharCode(t);var e}))},setScope:Bd,getScope:$d,deleteScope:function(t,e){var r,n;for(var i in t||(t=$d()),Dd)if(Object.prototype.hasOwnProperty.call(Dd,i))for(r=Dd[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Dd).forEach((function(r){Dd[r].filter((function(r){return r.scope===e&&r.shortcut===t})).forEach((function(t){t&&t.method&&t.method()}))}))},unbind:function(t){if(void 0===t)Object.keys(Dd).forEach((function(t){return delete Dd[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&Fd(t)}));else if("object"==typeof t)t.key&&Fd(t);else if("string"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n=this.limits[t][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+o}}return"ok"+o}getAlertLog(t,e,r,n){return this.getAlert(t,e,r,n,!0)}};const Yd=new class{data=void 0;init(t=60){let e;const r=()=>(Kd.status="PENDING",Promise.all([fetch("api/4/all",{method:"GET"}).then((t=>t.json())),fetch("api/4/all/views",{method:"GET"}).then((t=>t.json()))]).then((t=>{const e={stats:t[0],views:t[1],isBsd:"FreeBSD"===t[0].system.os_name,isLinux:"Linux"===t[0].system.os_name,isSunOS:"SunOS"===t[0].system.os_name,isMac:"Darwin"===t[0].system.os_name,isWindows:"Windows"===t[0].system.os_name};this.data=e,Kd.data=e,Kd.status="SUCCESS"})).catch((t=>{console.log(t),Kd.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(r,1e3*t)})));r(),fetch("api/4/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{Zd.setLimits(t)})),fetch("api/4/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{Kd.args={...Kd.args,...t}})),fetch("api/4/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{Kd.config={...Kd.config,...t}}))}getData(){return this.data}};const Jd=new class{constructor(){this.favico=new(Qd())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},tm={key:0},em={class:"container-fluid"},rm={class:"row"},nm={class:"col-sm-12 col-lg-24 title"},im=Lu("div",{class:"row"}," ",-1),om={class:"row"},sm={class:"col-sm-12 col-lg-24"},am=Lu("div",{class:"row"}," ",-1),lm={class:"table table-sm table-borderless table-striped table-hover"},cm=Lu("td",null," ",-1),um=Lu("td",null," ",-1),pm=Lu("td",null," ",-1),dm=Lu("td",null," ",-1),mm=Lu("td",null," ",-1),fm=Lu("td",null," ",-1),hm=Lu("td",null," ",-1),gm=Lu("td",null," ",-1),bm=Lu("td",null," ",-1),ym=Lu("td",null," ",-1),vm=Lu("td",null," ",-1),xm=Lu("td",null," ",-1),wm=Lu("td",null," ",-1),_m=Lu("td",null," ",-1),km=Lu("td",null," ",-1),Am=Lu("td",null," ",-1),Sm=Lu("td",null," ",-1),Em=Lu("td",null," ",-1),Cm=Lu("td",null," ",-1),Tm=Lu("td",null," ",-1),Om=Lu("td",null," ",-1),Im=Lu("td",null," ",-1),jm=Lu("td",null," ",-1),Dm=Lu("td",null," ",-1),Lm=Lu("td",null," ",-1),Pm=Lu("td",null," ",-1),Nm=Lu("td",null," ",-1),Mm=Lu("td",null," ",-1),Rm=Lu("td",null," ",-1),qm=Lu("td",null," ",-1),Bm=Lu("td",null," ",-1),$m=Lu("td",null," ",-1),Fm=Lu("td",null," ",-1),Um=Lu("td",null," ",-1),zm=qu('
 

For an exhaustive list of key bindings, click here.

 

Press h to came back to Glances.

',5);const Hm={data:()=>({help:void 0}),mounted(){fetch("api/4/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Vm=r(6262);const Gm=(0,Vm.A)(Hm,[["render",function(t,e,r,n,i,o){return i.help?(wu(),Eu("div",tm,[Lu("div",em,[Lu("div",rm,[Lu("div",nm,Cs(i.help.version)+" "+Cs(i.help.psutil_version),1)]),im,Lu("div",om,[Lu("div",sm,Cs(i.help.configuration_file),1)]),am]),Lu("table",lm,[Lu("thead",null,[Lu("tr",null,[Lu("th",null,Cs(i.help.header_sort.replace(":","")),1),Lu("th",null,Cs(i.help.header_show_hide.replace(":","")),1),Lu("th",null,Cs(i.help.header_toggle.replace(":","")),1),Lu("th",null,Cs(i.help.header_miscellaneous.replace(":","")),1)])]),Lu("tbody",null,[Lu("tr",null,[Lu("td",null,Cs(i.help.sort_auto),1),Lu("td",null,Cs(i.help.show_hide_application_monitoring),1),Lu("td",null,Cs(i.help.toggle_bits_bytes),1),Lu("td",null,Cs(i.help.misc_erase_process_filter),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_cpu),1),Lu("td",null,Cs(i.help.show_hide_diskio),1),Lu("td",null,Cs(i.help.toggle_count_rate),1),Lu("td",null,Cs(i.help.misc_generate_history_graphs),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_io_rate),1),Lu("td",null,Cs(i.help.show_hide_containers),1),Lu("td",null,Cs(i.help.toggle_used_free),1),Lu("td",null,Cs(i.help.misc_help),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_mem),1),Lu("td",null,Cs(i.help.show_hide_top_extended_stats),1),Lu("td",null,Cs(i.help.toggle_bar_sparkline),1),Lu("td",null,Cs(i.help.misc_accumulate_processes_by_program),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_process_name),1),Lu("td",null,Cs(i.help.show_hide_filesystem),1),Lu("td",null,Cs(i.help.toggle_separate_combined),1),cm]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_cpu_times),1),Lu("td",null,Cs(i.help.show_hide_gpu),1),Lu("td",null,Cs(i.help.toggle_live_cumulative),1),Lu("td",null,Cs(i.help.misc_reset_processes_summary_min_max),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_user),1),Lu("td",null,Cs(i.help.show_hide_ip),1),Lu("td",null,Cs(i.help.toggle_linux_percentage),1),Lu("td",null,Cs(i.help.misc_quit),1)]),Lu("tr",null,[um,Lu("td",null,Cs(i.help.show_hide_tcp_connection),1),Lu("td",null,Cs(i.help.toggle_cpu_individual_combined),1),Lu("td",null,Cs(i.help.misc_reset_history),1)]),Lu("tr",null,[pm,Lu("td",null,Cs(i.help.show_hide_alert),1),Lu("td",null,Cs(i.help.toggle_gpu_individual_combined),1),Lu("td",null,Cs(i.help.misc_delete_warning_alerts),1)]),Lu("tr",null,[dm,Lu("td",null,Cs(i.help.show_hide_network),1),Lu("td",null,Cs(i.help.toggle_short_full),1),Lu("td",null,Cs(i.help.misc_delete_warning_and_critical_alerts),1)]),Lu("tr",null,[mm,Lu("td",null,Cs(i.help.sort_cpu_times),1),fm,hm]),Lu("tr",null,[gm,Lu("td",null,Cs(i.help.show_hide_irq),1),bm,ym]),Lu("tr",null,[vm,Lu("td",null,Cs(i.help.show_hide_raid_plugin),1),xm,wm]),Lu("tr",null,[_m,Lu("td",null,Cs(i.help.show_hide_sensors),1),km,Am]),Lu("tr",null,[Sm,Lu("td",null,Cs(i.help.show_hide_wifi_module),1),Em,Cm]),Lu("tr",null,[Tm,Lu("td",null,Cs(i.help.show_hide_processes),1),Om,Im]),Lu("tr",null,[jm,Lu("td",null,Cs(i.help.show_hide_left_sidebar),1),Dm,Lm]),Lu("tr",null,[Pm,Lu("td",null,Cs(i.help.show_hide_quick_look),1),Nm,Mm]),Lu("tr",null,[Rm,Lu("td",null,Cs(i.help.show_hide_cpu_mem_swap),1),qm,Bm]),Lu("tr",null,[$m,Lu("td",null,Cs(i.help.show_hide_all),1),Fm,Um])])]),zm])):Bu("v-if",!0)}]]),Wm={class:"plugin",id:"alerts"},Km={key:0,class:"title"},Xm={key:1,class:"title"},Qm={class:"table table-sm table-borderless"},Zm={scope:"row"},Ym=Lu("td",{scope:"row"},null,-1),Jm={scope:"row"};var tf=r(2543);const ef={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.state=t.state,e.type=t.type,e.begin=1e3*t.begin,e.end=1e3*t.end,e.ongoing=-1==t.end,e.min=t.min,e.avg=t.avg,e.max=t.max,e.top=t.top.join(", "),!e.ongoing){const t=e.end-e.begin,r=parseInt(t/1e3%60),n=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,tf.padStart)(i,2,"0")+":"+(0,tf.padStart)(n,2,"0")+":"+(0,tf.padStart)(r,2,"0")}return e}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:t})=>t)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?Jd.badge(this.countOngoingAlerts):Jd.reset()}},methods:{formatDate(t){const e=(new Date).getTimezoneOffset(),r=Math.trunc(Math.abs(e)/60),n=Math.abs(e%60);let i=e<=0?"+":"-";i+=String(r).padStart(2,"0")+String(n).padStart(2,"0");const o=new Date(t);return String(o.getFullYear())+"-"+String(o.getMonth()).padStart(2,"0")+"-"+String(o.getDate()).padStart(2,"0")+" "+String(o.getHours()).padStart(2,"0")+":"+String(o.getMinutes()).padStart(2,"0")+":"+String(o.getSeconds()).padStart(2,"0")+"("+i+")"}}},rf=(0,Vm.A)(ef,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Wm,[o.hasAlerts?(wu(),Eu("span",Km," Warning or critical alerts (last "+Cs(o.countAlerts)+" entries) ",1)):(wu(),Eu("span",Xm,"No warning or critical alert detected")),Lu("table",Qm,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.alerts,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Zm,[Lu("span",null,Cs(o.formatDate(e.begin)),1),Lu("span",null,"("+Cs(e.ongoing?"ongoing":e.duration)+")",1)]),Ym,Lu("td",Jm,[Ul(Lu("span",null,Cs(e.state)+" on ",513),[[Wp,!e.ongoing]]),Lu("span",{class:ks(e.state.toLowerCase())},Cs(e.type),3),Lu("span",null,"("+Cs(t.$filters.number(e.max,1))+")",1),Lu("span",null,": "+Cs(e.top),1)])])))),128))])])])}]]),nf={key:0,class:"plugin",id:"cloud"},of={class:"title"};const sf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:t}=this;return void 0!==this.stats.id?`${t.type} instance ${t.name} (${t.region})`:null}}},af=(0,Vm.A)(sf,[["render",function(t,e,r,n,i,o){return o.instance||o.provider?(wu(),Eu("section",nf,[Lu("span",of,Cs(o.provider),1),Ru(" "+Cs(o.instance),1)])):Bu("v-if",!0)}]]),lf={class:"plugin",id:"connections"},cf={class:"table table-sm table-borderless margin-bottom"},uf=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"TCP CONNECTIONS"),Lu("th",{scope:"col",class:"text-end"})])],-1),pf=Lu("td",{scope:"row"},"Listen",-1),df={class:"text-end"},mf=Lu("td",{scope:"row"},"Initiated",-1),ff={class:"text-end"},hf=Lu("td",{scope:"row"},"Established",-1),gf={class:"text-end"},bf=Lu("td",{scope:"row"},"Terminated",-1),yf={class:"text-end"},vf=Lu("td",{scope:"row"},"Tracked",-1);const xf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.connections},view(){return this.data.views.connections},listen(){return this.stats.LISTEN},initiated(){return this.stats.initiated},established(){return this.stats.ESTABLISHED},terminated(){return this.stats.terminated},tracked(){return{count:this.stats.nf_conntrack_count,max:this.stats.nf_conntrack_max}}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},wf=(0,Vm.A)(xf,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",lf,[Lu("table",cf,[uf,Lu("tbody",null,[Lu("tr",null,[pf,Lu("td",df,Cs(o.listen),1)]),Lu("tr",null,[mf,Lu("td",ff,Cs(o.initiated),1)]),Lu("tr",null,[hf,Lu("td",gf,Cs(o.established),1)]),Lu("tr",null,[bf,Lu("td",yf,Cs(o.terminated),1)]),Lu("tr",null,[vf,Lu("td",{class:ks(["text-end",o.getDecoration("nf_conntrack_percent")])},Cs(o.tracked.count)+"/"+Cs(o.tracked.max),3)])])])])}]]),_f={id:"cpu",class:"plugin"},kf={class:"table-responsive"},Af={class:"table-sm table-borderless"},Sf={class:"justify-content-between"},Ef={scope:"col"},Cf={class:"table table-sm table-borderless"},Tf=Lu("th",{scope:"col"},"CPU",-1),Of=Lu("td",{scope:"col"},"user:",-1),If=Lu("td",{scope:"col"},"system:",-1),jf={key:0,scope:"col"},Df={class:"d-none d-xl-block d-xxl-block"},Lf={class:"table table-sm table-borderless"},Pf={scope:"col"},Nf={scope:"col"},Mf={scope:"col"},Rf={key:0,scope:"col"},qf={scope:"col"},Bf={class:"d-none d-xxl-block"},$f={class:"table table-sm table-borderless"},Ff={key:0,scope:"col"},Uf={scope:"col"},zf={key:0,scope:"col"},Hf={key:1,scope:"col",class:"text-end"},Vf={key:0,scope:"col"},Gf={key:1,scope:"col",class:"text-end"};const Wf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cpu},view(){return this.data.views.cpu},isLinux(){return this.data.isLinux},isSunOS(){return this.data.isSunOS},isWindows(){return this.data.isWindows},total(){return this.stats.total},user(){return this.stats.user},system(){return this.stats.system},idle(){return this.stats.idle},nice(){return this.stats.nice},irq(){return this.stats.irq},iowait(){return this.stats.iowait},dpc(){return this.stats.dpc},steal(){return this.stats.steal},guest(){return this.stats.guest},ctx_switches(){const{stats:t}=this;return t.ctx_switches?Math.floor(t.ctx_switches/t.time_since_update):null},interrupts(){const{stats:t}=this;return t.interrupts?Math.floor(t.interrupts/t.time_since_update):null},soft_interrupts(){const{stats:t}=this;return t.soft_interrupts?Math.floor(t.soft_interrupts/t.time_since_update):null},syscalls(){const{stats:t}=this;return t.syscalls?Math.floor(t.syscalls/t.time_since_update):null}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Kf=(0,Vm.A)(Wf,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",_f,[Bu(" d-none d-xxl-block "),Lu("div",kf,[Lu("table",Af,[Lu("tbody",null,[Lu("tr",Sf,[Lu("td",Ef,[Lu("table",Cf,[Lu("tbody",null,[Lu("tr",null,[Tf,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("total")])},Cs(o.total)+"%",3)]),Lu("tr",null,[Of,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("user")])},Cs(o.user)+"%",3)]),Lu("tr",null,[If,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("system")])},Cs(o.system)+"%",3)]),Lu("tr",null,[null!=o.iowait?(wu(),Eu("td",jf,"iowait:")):Bu("v-if",!0),null!=o.iowait?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("iowait")])},Cs(o.iowait)+"%",3)):Bu("v-if",!0)])])])]),Lu("td",null,[Lu("template",Df,[Lu("table",Lf,[Lu("tbody",null,[Lu("tr",null,[Ul(Lu("td",Pf,"idle:",512),[[Wp,null!=o.idle]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.idle)+"%",513),[[Wp,null!=o.idle]])]),Lu("tr",null,[Ul(Lu("td",Nf,"irq:",512),[[Wp,null!=o.irq]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.irq)+"%",513),[[Wp,null!=o.irq]])]),Lu("tr",null,[Ul(Lu("td",Mf,"nice:",512),[[Wp,null!=o.nice]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.nice)+"%",513),[[Wp,null!=o.nice]])]),Lu("tr",null,[null==o.iowait&&null!=o.dpc?(wu(),Eu("td",Rf,"dpc:")):Bu("v-if",!0),null==o.iowait&&null!=o.dpc?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("dpc")])},Cs(o.dpc)+"%",3)):Bu("v-if",!0),Ul(Lu("td",qf,"steal:",512),[[Wp,null!=o.steal]]),Ul(Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("steal")])},Cs(o.steal)+"%",3),[[Wp,null!=o.steal]])])])])])]),Lu("td",null,[Lu("template",Bf,[Lu("table",$f,[Lu("tbody",null,[Lu("tr",null,[null!=o.nice&&null!=o.ctx_switches?(wu(),Eu("td",Ff,"ctx_sw:")):Bu("v-if",!0),null!=o.nice&&null!=o.ctx_switches?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("ctx_switches")])},Cs(o.ctx_switches),3)):Bu("v-if",!0)]),Lu("tr",null,[Ul(Lu("td",Uf,"inter:",512),[[Wp,null!=o.interrupts]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.interrupts),513),[[Wp,null!=o.interrupts]])]),Lu("tr",null,[o.isWindows||o.isSunOS||null==o.soft_interrupts?Bu("v-if",!0):(wu(),Eu("td",zf,"sw_int:")),o.isWindows||o.isSunOS||null==o.soft_interrupts?Bu("v-if",!0):(wu(),Eu("td",Hf,Cs(o.soft_interrupts),1))]),Lu("tr",null,[o.isLinux&&null!=o.guest?(wu(),Eu("td",Vf,"guest:")):Bu("v-if",!0),o.isLinux&&null!=o.guest?(wu(),Eu("td",Gf,Cs(o.guest)+"%",1)):Bu("v-if",!0)])])])])])])])])])])}]]),Xf={key:0,class:"plugin",id:"diskio"},Qf={class:"table table-sm table-borderless margin-bottom"},Zf=Lu("th",{scope:"col"},"DISK I/O",-1),Yf={scope:"col",class:"text-end w-25"},Jf={scope:"col",class:"text-end w-25"},th={scope:"col",class:"text-end w-25"},eh={scope:"col",class:"text-end w-25"},rh={scope:"row"};var nh=r(4728),ih=r.n(nh);function oh(t,e){return sh(t=8*Math.round(t),e)+"b"}function sh(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const r=["Y","Z","E","P","T","G","M","K"],n={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var a=0;return s<10?a=2:s<100&&(a=1),e?a="MK"==o?0:(0,tf.min)([1,a]):"K"==o&&(a=0),parseFloat(s).toFixed(a)+o}}return t.toFixed(0)}function ah(t){return void 0===t||""===t?"?":t}function lh(t,e,r){return e=e||0,r=r||" ",String(t).padStart(e,r)}function ch(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function uh(t,e,r=!0){return e=e||8,t.length>e?r?t.substring(0,e-1)+"_":"_"+t.substring(t.length-e+1):t}function ph(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),r=e.replace(/\n/g,"
");return ih()(r)}function dh(t,e){return new Intl.NumberFormat(void 0,"number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function mh(t){for(var e=0,r=0;r({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},view(){return this.data.views.diskio},disks(){const t=this.stats.map((t=>({name:t.disk_name,alias:void 0!==t.alias?t.alias:null,bitrate:{txps:sh(t.read_bytes_rate_per_sec),rxps:sh(t.write_bytes_rate_per_sec)},count:{txps:sh(t.read_count_rate_per_sec),rxps:sh(t.write_count_rate_per_sec)}}))).filter((t=>!1===this.view[t.name].read_bytes_rate_per_sec.hidden&&!1===this.view[t.name].write_bytes_rate_per_sec.hidden));return(0,tf.orderBy)(t,["name"])},hasDisks(){return this.disks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},gh=(0,Vm.A)(hh,[["render",function(t,e,r,n,i,o){return o.hasDisks?(wu(),Eu("section",Xf,[Lu("table",Qf,[Lu("thead",null,[Lu("tr",null,[Zf,Ul(Lu("th",Yf,"R/s",512),[[Wp,!o.args.diskio_iops]]),Ul(Lu("th",Jf,"W/s",512),[[Wp,!o.args.diskio_iops]]),Ul(Lu("th",th,"IOR/s",512),[[Wp,o.args.diskio_iops]]),Ul(Lu("th",eh,"IOW/s",512),[[Wp,o.args.diskio_iops]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.disks,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",rh,Cs(t.$filters.minSize(e.alias?e.alias:e.name,32)),1),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.name,"write_bytes_rate_per_sec")])},Cs(e.bitrate.txps),3),[[Wp,!o.args.diskio_iops]]),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.name,"read_bytes_rate_per_sec")])},Cs(e.bitrate.rxps),3),[[Wp,!o.args.diskio_iops]]),Ul(Lu("td",{class:"text-end w-25"},Cs(e.count.txps),513),[[Wp,o.args.diskio_iops]]),Ul(Lu("td",{class:"text-end w-25"},Cs(e.count.rxps),513),[[Wp,o.args.diskio_iops]])])))),128))])])])):Bu("v-if",!0)}]]),bh={key:0,class:"plugin",id:"containers"},yh=Lu("span",{class:"title"},"CONTAINERS",-1),vh={class:"table table-sm table-borderless table-striped table-hover"},xh=Lu("td",null,"Status",-1),wh=Lu("td",null,"Uptime",-1),_h=Lu("td",null,"/ MAX",-1),kh=Lu("td",null,"IOR/s",-1),Ah=Lu("td",null,"IOW/s",-1),Sh=Lu("td",null,"RX/s",-1),Eh=Lu("td",null,"TX/s",-1),Ch=Lu("td",null,"Command",-1);const Th={props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.containers},views(){return this.data.views.containers},containers(){const{sorter:t}=this,e=(this.stats||[]).map((t=>{let e="?";return null!=t.memory.usage&&(e=t.memory.usage,null!=t.memory.inactive_file&&(e-=t.memory.inactive_file)),{id:t.id,name:t.name,status:t.status,uptime:t.uptime,cpu_percent:t.cpu.total,memory_usage:e,limit:null!=t.memory.limit?t.memory.limit:"?",io_rx:null!=t.io_rx?t.io_rx:"?",io_wx:null!=t.io_wx?t.io_wx:"?",network_rx:null!=t.network_rx?t.network_rx:"?",network_tx:null!=t.network_tx?t.network_tx:"?",command:t.command,image:t.image,engine:t.engine,pod_id:t.pod_id}}));return(0,tf.orderBy)(e,[t.column].reduce(((t,e)=>("memory_percent"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name},showPod(){return this.views.show_pod_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[t]||t}})}}}},Oh=(0,Vm.A)(Th,[["render",function(t,e,r,n,i,o){return o.containers.length?(wu(),Eu("section",bh,[yh,Ul(Lu("span",null,Cs(o.containers.length)+" sorted by "+Cs(i.sorter.getColumnLabel(i.sorter.column)),513),[[Wp,o.containers.length>1]]),Lu("table",vh,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",null,"Engine",512),[[Wp,o.showEngine]]),Ul(Lu("td",null,"Pod",512),[[Wp,o.showPod]]),Lu("td",{class:ks(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),xh,wh,Lu("td",{class:ks(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),Lu("td",{class:ks(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),_h,kh,Ah,Sh,Eh,Ch])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.containers,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",null,Cs(e.engine),513),[[Wp,o.showEngine]]),Ul(Lu("td",null,Cs(e.pod_id||"-"),513),[[Wp,o.showPod]]),Lu("td",null,Cs(e.name),1),Lu("td",{class:ks("Paused"==e.status?"careful":"ok")},Cs(e.status),3),Lu("td",null,Cs(e.uptime),1),Lu("td",null,Cs(t.$filters.number(e.cpu_percent,1)),1),Lu("td",null,Cs(t.$filters.bytes(e.memory_usage)),1),Lu("td",null," / "+Cs(t.$filters.bytes(e.limit)),1),Lu("td",null,Cs(t.$filters.bytes(e.io_rx)),1),Lu("td",null,Cs(t.$filters.bytes(e.io_wx)),1),Lu("td",null,Cs(t.$filters.bits(e.network_rx)),1),Lu("td",null,Cs(t.$filters.bits(e.network_tx)),1),Lu("td",null,Cs(e.command),1)])))),128))])])])):Bu("v-if",!0)}]]),Ih={key:0,class:"plugin",id:"folders"},jh={class:"table table-sm table-borderless margin-bottom"},Dh=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"FOLDERS"),Lu("th",{scope:"col",class:"text-end"},"Size")])],-1),Lh={scope:"row"},Ph={key:0,class:"visible-lg-inline"};const Nh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,errno:t.errno,careful:t.careful,warning:t.warning,critical:t.critical})))},hasFolders(){return this.folders.length>0}},methods:{getDecoration:t=>t.errno>0?"error":null!==t.critical&&t.size>1e6*t.critical?"critical":null!==t.warning&&t.size>1e6*t.warning?"warning":null!==t.careful&&t.size>1e6*t.careful?"careful":"ok"}},Mh=(0,Vm.A)(Nh,[["render",function(t,e,r,n,i,o){return o.hasFolders?(wu(),Eu("section",Ih,[Lu("table",jh,[Dh,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.folders,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Lh,Cs(e.path),1),Lu("td",{class:ks(["text-end",o.getDecoration(e)])},[e.errno>0?(wu(),Eu("span",Ph,"?")):Bu("v-if",!0),Ru(" "+Cs(t.$filters.bytes(e.size)),1)],2)])))),128))])])])):Bu("v-if",!0)}]]),Rh={key:0,class:"plugin",id:"fs"},qh={class:"table table-sm table-borderless margin-bottom"},Bh=Lu("th",{scope:"col"},"FILE SYSTEM",-1),$h={key:0,scope:"col",class:"text-end w-25"},Fh={key:1,scope:"col",class:"text-end w-25"},Uh=Lu("th",{scope:"col",class:"text-end w-25"},"Total",-1),zh={scope:"row"},Hh={key:0,class:"visible-lg-inline"},Vh={scope:"row",class:"text-end"};const Gh={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const t=this.stats.map((t=>({name:t.device_name,mountPoint:t.mnt_point,percent:t.percent,size:t.size,used:t.used,free:t.free,alias:void 0!==t.alias?t.alias:null})));return(0,tf.orderBy)(t,["mnt_point"])},hasFs(){return this.fileSystems.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Wh=(0,Vm.A)(Gh,[["render",function(t,e,r,n,i,o){return o.hasFs?(wu(),Eu("section",Rh,[Lu("table",qh,[Lu("thead",null,[Lu("tr",null,[Bh,o.args.fs_free_space?(wu(),Eu("th",Fh,"Free")):(wu(),Eu("th",$h,"Used")),Uh])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.fileSystems,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",zh,[Ru(Cs(t.$filters.minSize(e.alias?e.alias:e.mountPoint,26,t.begin=!1))+" ",1),(e.alias?e.alias:e.mountPoint).length+e.name.length<=24?(wu(),Eu("span",Hh," ("+Cs(e.name)+") ",1)):Bu("v-if",!0)]),o.args.fs_free_space?(wu(),Eu("td",{key:1,scope:"row",class:ks(["text-end",o.getDecoration(e.mountPoint,"used")])},Cs(t.$filters.bytes(e.free)),3)):(wu(),Eu("td",{key:0,scope:"row",class:ks(["text-end",o.getDecoration(e.mountPoint,"used")])},Cs(t.$filters.bytes(e.used)),3)),Lu("td",Vh,Cs(t.$filters.bytes(e.size)),1)])))),128))])])])):Bu("v-if",!0)}]]),Kh={key:0,id:"gpu",class:"plugin"},Xh={class:"title gpu-name"},Qh={key:0,class:"table-responsive"},Zh=Lu("td",{class:"col"},"proc:",-1),Yh={key:1,class:"col text-end"},Jh=Lu("td",{class:"col"},"mem:",-1),tg={key:1,class:"col text-end"},eg=Lu("td",{class:"col"},"temp:",-1),rg={key:1,class:"col text-end"},ng={key:1,class:"table-responsive"},ig={class:"table table-sm table-borderless"},og={class:"col"},sg={key:1,class:"col"},ag=Lu("td",{class:"col"},"mem:",-1),lg={key:3,class:"col text-end"},cg={key:2,class:"table-responsive"},ug={class:"table table-sm table-borderless"},pg=Lu("td",{class:"col"},"proc mean:",-1),dg={key:1,class:"col"},mg=Lu("td",{class:"col"},"mem mean:",-1),fg={key:1,class:"col"},hg=Lu("td",{class:"col"},"temp mean:",-1),gg={key:1,class:"col"};const bg={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let t="GPU";const{stats:e}=this;return 1===e.length?t=e[0].name:e.length&&(t=`${e.length} GPU ${e[0].name}`),t},mean(){const t={proc:null,mem:null,temperature:null},{stats:e}=this;if(!e.length)return t;for(let r of e)t.proc+=r.proc,t.mem+=r.mem,t.temperature+=r.temperature;return t.proc=t.proc/e.length,t.mem=t.mem/e.length,t.temperature=t.temperature/e.length,t}},methods:{getDecoration(t,e){if(void 0!==this.view[t][e])return this.view[t][e].decoration.toLowerCase()},getMeanDecoration:t=>"DEFAULT"}},yg=(0,Vm.A)(bg,[["render",function(t,e,r,n,i,o){return null!=o.gpus?(wu(),Eu("section",Kh,[Lu("div",Xh,Cs(o.name),1),Bu(" single gpu "),1===o.gpus.length?(wu(),Eu("div",Qh,[(wu(!0),Eu(hu,null,Ec(o.gpus,((e,r)=>(wu(),Eu("table",{key:r,class:"table table-sm table-borderless"},[Lu("tbody",null,[Lu("tr",null,[Zh,null!=e.proc?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"proc")])},Cs(t.$filters.number(e.proc,0))+"%",3)):Bu("v-if",!0),null==e.proc?(wu(),Eu("td",Yh,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[Jh,null!=e.mem?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"mem")])},Cs(t.$filters.number(e.mem,0))+"%",3)):Bu("v-if",!0),null==e.mem?(wu(),Eu("td",tg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[eg,null!=e.temperature?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"temperature")])},Cs(t.$filters.number(e.temperature,0)),3)):Bu("v-if",!0),null==e.temperature?(wu(),Eu("td",rg,"N/A")):Bu("v-if",!0)])])])))),128))])):Bu("v-if",!0),Bu(" multiple gpus - one line per gpu (no mean) "),!o.args.meangpu&&o.gpus.length>1?(wu(),Eu("div",ng,[Lu("table",ig,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.gpus,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",og,Cs(e.gpu_id)+":",1),null!=e.proc?(wu(),Eu("td",{key:0,class:ks(["col",o.getDecoration(e.gpu_id,"proc")])},Cs(t.$filters.number(e.proc,0))+"%",3)):Bu("v-if",!0),null==e.proc?(wu(),Eu("td",sg,"N/A")):Bu("v-if",!0),ag,null!=e.mem?(wu(),Eu("td",{key:2,class:ks(["col text-end",o.getDecoration(e.gpu_id,"mem")])},Cs(t.$filters.number(e.mem,0))+"%",3)):Bu("v-if",!0),null==e.mem?(wu(),Eu("td",lg,"N/A")):Bu("v-if",!0)])))),128))])])])):Bu("v-if",!0),Bu(" multiple gpus - mean "),o.args.meangpu&&o.gpus.length>1?(wu(),Eu("div",cg,[Lu("table",ug,[Lu("tbody",null,[Lu("tr",null,[pg,null!=o.mean.proc?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("proc")])},Cs(t.$filters.number(o.mean.proc,0))+"% ",3)):Bu("v-if",!0),null==o.mean.proc?(wu(),Eu("td",dg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[mg,null!=o.mean.mem?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("mem")])},Cs(t.$filters.number(o.mean.mem,0))+"% ",3)):Bu("v-if",!0),null==o.mean.mem?(wu(),Eu("td",fg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[hg,null!=o.mean.temperature?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("temperature")])},Cs(t.$filters.number(o.mean.temperature,0)),3)):Bu("v-if",!0),null==o.mean.temperature?(wu(),Eu("td",gg,"N/A")):Bu("v-if",!0)])])])])):Bu("v-if",!0)])):Bu("v-if",!0)}]]),vg={key:0,class:"plugin",id:"ip"},xg={key:0,class:"title"},wg={key:1},_g={key:2,class:"title"},kg={key:3},Ag={key:4,class:"text-truncate"};const Sg={props:{data:{type:Object}},computed:{ipStats(){return this.data.stats.ip},address(){return this.ipStats.address},gateway(){return this.ipStats.gateway},maskCdir(){return this.ipStats.mask_cidr},publicAddress(){return this.ipStats.public_address},publicInfo(){return this.ipStats.public_info_human}}},Eg=(0,Vm.A)(Sg,[["render",function(t,e,r,n,i,o){return o.address?(wu(),Eu("section",vg,[o.address?(wu(),Eu("span",xg,"IP")):Bu("v-if",!0),o.address?(wu(),Eu("span",wg,Cs(o.address)+"/"+Cs(o.maskCdir),1)):Bu("v-if",!0),o.publicAddress?(wu(),Eu("span",_g,"Pub")):Bu("v-if",!0),o.publicAddress?(wu(),Eu("span",kg,Cs(o.publicAddress),1)):Bu("v-if",!0),o.publicInfo?(wu(),Eu("span",Ag,Cs(o.publicInfo),1)):Bu("v-if",!0)])):Bu("v-if",!0)}]]),Cg={class:"plugin",id:"irq"},Tg={class:"table table-sm table-borderless margin-bottom"},Og=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"IRQ"),Lu("th",{scope:"col",class:"text-end"},"Rate/s")])],-1),Ig={scope:"row"},jg={scope:"row",class:"text-end"};const Dg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((t=>({irq_line:t.irq_line,irq_rate:t.irq_rate})))}}},Lg=(0,Vm.A)(Dg,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Cg,[Lu("table",Tg,[Og,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.irqs,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Ig,Cs(t.irq_line),1),Lu("td",jg,Cs(t.irq_rate),1)])))),128))])])])}]]),Pg={key:0,id:"load",class:"plugin"},Ng={class:"table-responsive"},Mg={class:"table table-sm table-borderless"},Rg=Lu("th",{scope:"col"},"LOAD",-1),qg={scope:"col",class:"text-end"},Bg=Lu("td",{scope:"row"},"1 min:",-1),$g={class:"text-end"},Fg=Lu("td",{scope:"row"},"5 min:",-1),Ug=Lu("td",{scope:"row"},"15 min:",-1);const zg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.load},view(){return this.data.views.load},cpucore(){return this.stats.cpucore},min1(){return this.stats.min1},min5(){return this.stats.min5},min15(){return this.stats.min15}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Hg=(0,Vm.A)(zg,[["render",function(t,e,r,n,i,o){return null!=o.cpucore?(wu(),Eu("section",Pg,[Lu("div",Ng,[Lu("table",Mg,[Lu("thead",null,[Lu("tr",null,[Rg,Lu("td",qg,Cs(o.cpucore)+"-core",1)])]),Lu("tbody",null,[Lu("tr",null,[Bg,Lu("td",$g,Cs(t.$filters.number(o.min1,2)),1)]),Lu("tr",null,[Fg,Lu("td",{class:ks(["text-end",o.getDecoration("min5")])},Cs(t.$filters.number(o.min5,2)),3)]),Lu("tr",null,[Ug,Lu("td",{class:ks(["text-end",o.getDecoration("min15")])},Cs(t.$filters.number(o.min15,2)),3)])])])])])):Bu("v-if",!0)}]]),Vg={id:"mem",class:"plugin"},Gg={class:"table-responsive"},Wg={class:"table-sm table-borderless"},Kg={class:"justify-content-between"},Xg={scope:"col"},Qg={class:"table table-sm table-borderless"},Zg=Lu("th",{scope:"col"},"MEM",-1),Yg=Lu("td",{scope:"row"},"total:",-1),Jg={class:"text-end"},tb=Lu("td",{scope:"row"},"used:",-1),eb=Lu("td",{scope:"row"},"free:",-1),rb={class:"d-none d-xl-block d-xxl-block"},nb={class:"table table-sm table-borderless"},ib={scope:"col"},ob={scope:"col"},sb={scope:"col"},ab={scope:"col"};const lb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},cb=(0,Vm.A)(lb,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Vg,[Bu(" d-none d-xxl-block "),Lu("div",Gg,[Lu("table",Wg,[Lu("tbody",null,[Lu("tr",Kg,[Lu("td",Xg,[Lu("table",Qg,[Lu("tbody",null,[Lu("tr",null,[Zg,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("percent")])},Cs(o.percent)+"%",3)]),Lu("tr",null,[Yg,Lu("td",Jg,Cs(t.$filters.bytes(o.total)),1)]),Lu("tr",null,[tb,Lu("td",{class:ks(["text-end",o.getDecoration("used")])},Cs(t.$filters.bytes(o.used,2)),3)]),Lu("tr",null,[eb,Lu("td",{class:ks(["text-end",o.getDecoration("free")])},Cs(t.$filters.bytes(o.free,2)),3)])])])]),Lu("td",null,[Lu("template",rb,[Lu("table",nb,[Lu("tbody",null,[Lu("tr",null,[Ul(Lu("td",ib," active: ",512),[[Wp,null!=o.active]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.active)),513),[[Wp,null!=o.active]])]),Lu("tr",null,[Ul(Lu("td",ob," inactive: ",512),[[Wp,null!=o.inactive]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.inactive)),513),[[Wp,null!=o.inactive]])]),Lu("tr",null,[Ul(Lu("td",sb," buffers: ",512),[[Wp,null!=o.buffers]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.buffers)),513),[[Wp,null!=o.buffers]])]),Lu("tr",null,[Ul(Lu("td",ab," cached: ",512),[[Wp,null!=o.cached]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.cached)),513),[[Wp,null!=o.cached]])])])])])])])])])])])}]]),ub={id:"memswap",class:"plugin"},pb={class:"table-responsive"},db={class:"table table-sm table-borderless"},mb=Lu("th",{scope:"col"},"SWAP",-1),fb=Lu("td",{scope:"row"},"total:",-1),hb={class:"text-end"},gb=Lu("td",{scope:"row"},"used:",-1),bb=Lu("td",{scope:"row"},"free:",-1),yb={class:"text-end"};const vb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.memswap},view(){return this.data.views.memswap},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},xb=(0,Vm.A)(vb,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",ub,[Lu("div",pb,[Lu("table",db,[Lu("thead",null,[Lu("tr",null,[mb,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("percent")])},Cs(o.percent)+"%",3)])]),Lu("tbody",null,[Lu("tr",null,[fb,Lu("td",hb,Cs(t.$filters.bytes(o.total)),1)]),Lu("tr",null,[gb,Lu("td",{class:ks(["text-end",o.getDecoration("used")])},Cs(t.$filters.bytes(o.used,2)),3)]),Lu("tr",null,[bb,Lu("td",yb,Cs(t.$filters.bytes(o.free,2)),1)])])])])])}]]),wb={key:0,class:"plugin",id:"network"},_b={class:"table table-sm table-borderless margin-bottom"},kb=Lu("th",{scope:"col"},"NETWORK",-1),Ab={scope:"col",class:"text-end w-25"},Sb={scope:"col",class:"text-end w-25"},Eb={scope:"col",class:"text-end w-25"},Cb={scope:"col",class:"text-end w-25"},Tb={scope:"col",class:"text-end w-25"},Ob={scope:"col",class:"text-end w-25"},Ib={scope:"col",class:"text-end w-25"},jb={scope:"col",class:"text-end w-25"},Db={scope:"row",class:"visible-lg-inline"},Lb={class:"text-end w-25"},Pb={class:"text-end w-25"};const Nb={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},view(){return this.data.views.network},networks(){const t=this.stats.map((t=>{const e=void 0!==t.alias?t.alias:null;return{interfaceName:t.interface_name,ifname:e||t.interface_name,bytes_recv_rate_per_sec:t.bytes_recv_rate_per_sec,bytes_sent_rate_per_sec:t.bytes_sent_rate_per_sec,bytes_all_rate_per_sec:t.bytes_all_rate_per_sec,bytes_recv:t.bytes_recv,bytes_sent:t.bytes_sent,bytes_all:t.bytes_all}})).filter((t=>!1===this.view[t.interfaceName].bytes_recv_rate_per_sec.hidden&&!1===this.view[t.interfaceName].bytes_sent_rate_per_sec.hidden));return(0,tf.orderBy)(t,["interfaceName"])},hasNetworks(){return this.networks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Mb=(0,Vm.A)(Nb,[["render",function(t,e,r,n,i,o){return o.hasNetworks?(wu(),Eu("section",wb,[Lu("table",_b,[Lu("thead",null,[Lu("tr",null,[kb,Ul(Lu("th",Ab,"Rx/s",512),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Sb,"Tx/s",512),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Eb,null,512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",Cb,"Rx+Tx/s",512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",Tb,"Rx",512),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Ob,"Tx",512),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Ib,null,512),[[Wp,o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",jb,"Rx+Tx",512),[[Wp,o.args.network_cumul&&o.args.network_sum]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.networks,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Db,Cs(e.ifname),1),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.interfaceName,"bytes_recv_rate_per_sec")])},Cs(o.args.byte?t.$filters.bytes(e.bytes_recv_rate_per_sec):t.$filters.bits(e.bytes_recv_rate_per_sec)),3),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.interfaceName,"bytes_sent_rate_per_sec")])},Cs(o.args.byte?t.$filters.bytes(e.bytes_sent_rate_per_sec):t.$filters.bits(e.bytes_sent_rate_per_sec)),3),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",Lb,null,512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_all_rate_per_sec):t.$filters.bits(e.bytes_all_rate_per_sec)),513),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_recv):t.$filters.bits(e.bytes_recv)),513),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_sent):t.$filters.bits(e.bytes_sent)),513),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",Pb,null,512),[[Wp,o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_all):t.$filters.bits(e.bytes_all)),513),[[Wp,o.args.network_cumul&&o.args.network_sum]])])))),128))])])])):Bu("v-if",!0)}]]),Rb={id:"now",class:"plugin"},qb={class:"table-row"},Bb={class:"table-cell text-start"};const $b={props:{data:{type:Object}},computed:{date_custom(){return this.data.stats.now.custom}}},Fb=(0,Vm.A)($b,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Rb,[Lu("div",qb,[Lu("div",Bb,Cs(o.date_custom),1)])])}]]),Ub={id:"percpu",class:"plugin"},zb={class:"table-responsive"},Hb={class:"table table-sm table-borderless"},Vb={key:0,scope:"col"},Gb={key:1,scope:"col"},Wb=Lu("td",{scope:"col"},"user",-1),Kb=Lu("td",{scope:"col"},"system",-1),Xb=Lu("td",{scope:"col"},"idle",-1),Qb=Lu("td",{scope:"col"},"iowait",-1),Zb=Lu("td",{scope:"col"},"steel",-1),Yb={key:0,scope:"col"},Jb={key:1,scope:"col"};const ty={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},percpuStats(){return this.data.stats.percpu}},methods:{getUserAlert:t=>Zd.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>Zd.getAlert("percpu","percpu_system_",t.system),getIOWaitAlert:t=>Zd.getAlert("percpu","percpu_iowait_",t.system)}},ey=(0,Vm.A)(ty,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Ub,[Bu(" d-none d-xl-block d-xxl-block "),Lu("div",zb,[Lu("table",Hb,[Lu("thead",null,[Lu("tr",null,[o.args.disable_quicklook?(wu(),Eu("th",Vb,"CPU")):Bu("v-if",!0),o.args.disable_quicklook?(wu(),Eu("td",Gb,"total")):Bu("v-if",!0),Wb,Kb,Xb,Qb,Zb])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.percpuStats,((t,e)=>(wu(),Eu("tr",{key:e},[o.args.disable_quicklook?(wu(),Eu("td",Yb,"CPU"+Cs(t.cpu_number),1)):Bu("v-if",!0),o.args.disable_quicklook?(wu(),Eu("td",Jb,Cs(t.total)+"%",1)):Bu("v-if",!0),Lu("td",{scope:"col",class:ks(o.getUserAlert(t))},Cs(t.user)+"%",3),Lu("td",{scope:"col",class:ks(o.getSystemAlert(t))},Cs(t.system)+"%",3),Ul(Lu("td",{scope:"col"},Cs(t.idle)+"%",513),[[Wp,null!=t.idle]]),Ul(Lu("td",{scope:"col",class:ks(o.getIOWaitAlert(t))},Cs(t.iowait)+"%",3),[[Wp,null!=t.iowait]]),Ul(Lu("td",{scope:"col"},Cs(t.steal)+"%",513),[[Wp,null!=t.steal]])])))),128))])])])])}]]),ry={key:0,class:"plugin",id:"ports"},ny={class:"table table-sm table-borderless margin-bottom"},iy={scope:"row"},oy={key:0},sy={key:1},ay={key:2},ly={key:3},cy={key:0},uy={key:1},py={key:2};const dy={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats},hasPorts(){return this.ports.length>0}},methods:{getPortDecoration:t=>null===t.status?"careful":!1===t.status?"critical":null!==t.rtt_warning&&t.status>t.rtt_warning?"warning":"ok",getWebDecoration:t=>null===t.status?"careful":-1===[200,301,302].indexOf(t.status)?"critical":null!==t.rtt_warning&&t.elapsed>t.rtt_warning?"warning":"ok"}},my=(0,Vm.A)(dy,[["render",function(t,e,r,n,i,o){return o.hasPorts?(wu(),Eu("section",ry,[Lu("table",ny,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.ports,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",iy,[Bu(" prettier-ignore "),Ru(" "+Cs(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),e.host?(wu(),Eu("td",{key:0,scope:"row",class:ks(["text-end",o.getPortDecoration(e)])},["null"==e.status?(wu(),Eu("span",oy,"Scanning")):"false"==e.status?(wu(),Eu("span",sy,"Timeout")):"true"==e.status?(wu(),Eu("span",ay,"Open")):(wu(),Eu("span",ly,Cs(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):Bu("v-if",!0),e.url?(wu(),Eu("td",{key:1,scope:"row",class:ks(["text-end",o.getPortDecoration(e)])},["null"==e.status?(wu(),Eu("span",cy,"Scanning")):"Error"==e.status?(wu(),Eu("span",uy,"Error")):(wu(),Eu("span",py,"Code "+Cs(e.status),1))],2)):Bu("v-if",!0)])))),128))])])])):Bu("v-if",!0)}]]),fy={key:0},hy={key:1},gy={key:0,class:"row"},by={class:"col-lg-18"};const yy={id:"amps",class:"plugin"},vy={class:"table table-sm table-borderless"},xy={key:0},wy=["innerHTML"];const _y={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))}},methods:{getNameDecoration(t){const e=t.count,r=t.countmin,n=t.countmax;let i="ok";return i=e>0?(null===r||e>=r)&&(null===n||e<=n)?"ok":"careful":null===r?"ok":"critical",i}}},ky=(0,Vm.A)(_y,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",yy,[Lu("table",vy,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.processes,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",{class:ks(o.getNameDecoration(e))},Cs(e.name),3),e.regex?(wu(),Eu("td",xy,Cs(e.count),1)):Bu("v-if",!0),Lu("td",{class:"process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,wy)])))),128))])]),Bu('
\n
\n
\n {{ process.name }}\n
\n
{{ process.count }}
\n
\n
\n ')])}]]),Ay={class:"plugin",id:"processcount"},Sy=Lu("span",{class:"title"},"TASKS",-1),Ey={class:"title"};const Cy={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.processcount},total(){return this.stats.total||0},running(){return this.stats.running||0},sleeping(){return this.stats.sleeping||0},stopped(){return this.stats.stopped||0},thread(){return this.stats.thread||0}}},Ty=(0,Vm.A)(Cy,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Ay,[Sy,Lu("span",null,Cs(o.total)+" ("+Cs(o.thread)+" thr),",1),Lu("span",null,Cs(o.running)+" run,",1),Lu("span",null,Cs(o.sleeping)+" slp,",1),Lu("span",null,Cs(o.stopped)+" oth",1),Lu("span",null,Cs(o.args.programs?"Programs":"Threads"),1),Lu("span",Ey,Cs(r.sorter.auto?"sorted automatically":"sorted"),1),Lu("span",null,"by "+Cs(r.sorter.getColumnLabel(r.sorter.column)),1)])}]]),Oy={class:"plugin",id:"processlist"},Iy={class:"table table-sm table-borderless table-striped table-hover"},jy={scope:"col",class:"hidden-xs hidden-sm"},Dy={scope:"col",class:"hidden-xs hidden-sm"},Ly={scope:"col"},Py={scope:"row"},Ny={scope:"row",class:"table-cell widtd-60"},My={key:0,scope:"row",class:"hidden-xs hidden-sm"},Ry={key:1,scope:"row",class:"hidden-xs hidden-sm"};const qy={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:t}=this,e=this.data.stats.isWindows,r=(this.stats||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,tf.last)(t.username.split("\\"))),t.timeplus="?",t.timemillis="?",t.cpu_times&&(t.timeplus=fh(t.cpu_times),t.timemillis=mh(t.cpu_times)),null===t.num_threads&&(t.num_threads=-1),null===t.cpu_percent&&(t.cpu_percent=-1),null===t.memory_percent&&(t.memory_percent=-1),t.io_read=null,t.io_write=null,t.io_counters&&(t.io_read=(t.io_counters[0]-t.io_counters[2])/t.time_since_update,t.io_write=(t.io_counters[1]-t.io_counters[3])/t.time_since_update),t.isNice=void 0!==t.nice&&(e&&32!=t.nice||!e&&0!=t.nice),Array.isArray(t.cmdline)&&(t.cmdline=t.cmdline.join(" ").replace(/\n/g," ")),null!==t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t)));return(0,tf.orderBy)(r,[t.column].reduce(((t,e)=>("io_counters"===e&&(e=["io_read","io_write"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:t=>Zd.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>Zd.getAlert("processlist","processlist_mem_",t.cpu_percent),getDisableStats:()=>Zd.getLimit("processlist","processlist_disable_stats")||[]}},By={components:{GlancesPluginAmps:ky,GlancesPluginProcesscount:Ty,GlancesPluginProcesslist:(0,Vm.A)(qy,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Oy,[Lu("table",Iy,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",{scope:"col",class:ks(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[0]||(e[0]=e=>t.$emit("update:sorter","cpu_percent"))}," CPU% ",2),[[Wp,!o.getDisableStats().includes("cpu_percent")]]),Ul(Lu("td",{scope:"col",class:ks(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[Wp,!o.getDisableStats().includes("memory_percent")]]),Ul(Lu("td",jy," VIRT ",512),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",Dy," RES ",512),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",Ly," PID ",512),[[Wp,!o.getDisableStats().includes("pid")]]),Ul(Lu("td",{scope:"row",class:ks(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[Wp,!o.getDisableStats().includes("username")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","timemillis"===r.sorter.column&&"sort"]]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[Wp,!o.getDisableStats().includes("cpu_times")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","num_threads"===r.sorter.column&&"sort"]]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[Wp,!o.getDisableStats().includes("num_threads")]]),Ul(Lu("td",Py,"NI",512),[[Wp,!o.getDisableStats().includes("nice")]]),Ul(Lu("td",Ny,"S ",512),[[Wp,!o.getDisableStats().includes("status")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:ks(["text-start hidden-xs hidden-sm",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:ks(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","name"))}," Command ",2),[[Wp,!o.getDisableStats().includes("cmdline")]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.processes,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",{scope:"row",class:ks(o.getCpuPercentAlert(e))},Cs(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent,1)),3),[[Wp,!o.getDisableStats().includes("cpu_percent")]]),Ul(Lu("td",{scope:"row",class:ks(o.getMemoryPercentAlert(e))},Cs(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[Wp,!o.getDisableStats().includes("memory_percent")]]),Ul(Lu("td",{scope:"row"},Cs(t.$filters.bytes(e.memvirt)),513),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",{scope:"row"},Cs(t.$filters.bytes(e.memres)),513),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",{scope:"row"},Cs(e.pid),513),[[Wp,!o.getDisableStats().includes("pid")]]),Ul(Lu("td",{scope:"row"},Cs(e.username),513),[[Wp,!o.getDisableStats().includes("username")]]),"?"!=e.timeplus?Ul((wu(),Eu("td",My,[Ul(Lu("span",{class:"highlight"},Cs(e.timeplus.hours)+"h",513),[[Wp,e.timeplus.hours>0]]),Ru(" "+Cs(t.$filters.leftPad(e.timeplus.minutes,2,"0"))+":"+Cs(t.$filters.leftPad(e.timeplus.seconds,2,"0"))+" ",1),Ul(Lu("span",null,"."+Cs(t.$filters.leftPad(e.timeplus.milliseconds,2,"0")),513),[[Wp,e.timeplus.hours<=0]])],512)),[[Wp,!o.getDisableStats().includes("cpu_times")]]):Bu("v-if",!0),"?"==e.timeplus?Ul((wu(),Eu("td",Ry,"?",512)),[[Wp,!o.getDisableStats().includes("cpu_times")]]):Bu("v-if",!0),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(-1==e.num_threads?"?":e.num_threads),513),[[Wp,!o.getDisableStats().includes("num_threads")]]),Ul(Lu("td",{scope:"row",class:ks({nice:e.isNice})},Cs(t.$filters.exclamation(e.nice)),3),[[Wp,!o.getDisableStats().includes("nice")]]),Ul(Lu("td",{scope:"row",class:ks({status:"R"==e.status})},Cs(e.status),3),[[Wp,!o.getDisableStats().includes("status")]]),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(t.$filters.bytes(e.io_read)),513),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(t.$filters.bytes(e.io_write)),513),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:"text-truncate"},Cs(e.name),513),[[Wp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Ul(Lu("td",{scope:"row"},Cs(e.cmdline),513),[[Wp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])])}]])},props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["username","name"].includes(t)},getColumnLabel:function(t){return{cpu_percent:"CPU consumption",memory_percent:"memory consumption",username:"user name",timemillis:"process time",cpu_times:"process time",io_counters:"disk IO",name:"process name",None:"None"}[t]||t}})}}}},$y=(0,Vm.A)(By,[["render",function(t,e,r,n,i,o){const s=_c("glances-plugin-processcount"),a=_c("glances-plugin-amps"),l=_c("glances-plugin-processlist");return o.args.disable_process?(wu(),Eu("div",fy,"PROCESSES DISABLED (press 'z' to display)")):(wu(),Eu("div",hy,[Pu(s,{sorter:i.sorter,data:r.data},null,8,["sorter","data"]),o.args.disable_amps?Bu("v-if",!0):(wu(),Eu("div",gy,[Lu("div",by,[Pu(a,{data:r.data},null,8,["data"])])])),Pu(l,{sorter:i.sorter,data:r.data,"onUpdate:sorter":e[0]||(e[0]=t=>o.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Fy={id:"quicklook",class:"plugin"},Uy={class:"d-flex justify-content-between"},zy={class:"text-start text-truncate"},Hy={key:0,class:"text-end d-none d-xxl-block"},Vy={class:"table-responsive"},Gy={class:"table table-sm table-borderless"},Wy={key:0},Ky=Lu("td",{scope:"col"},"CPU",-1),Xy={scope:"col",class:"progress"},Qy=["aria-valuenow"],Zy={scope:"col",class:"text-end"},Yy={scope:"col"},Jy={scope:"col",class:"progress"},tv=["aria-valuenow"],ev={scope:"col",class:"text-end"},rv={scope:"col"},nv={scope:"col",class:"progress"},iv=["aria-valuenow"],ov={scope:"col",class:"text-end"};const sv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return(this.stats.cpu_hz_current/1e6).toFixed(0)},cpu_hz(){return(this.stats.cpu_hz/1e6).toFixed(0)},percpus(){var t=this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e}))),e=parseInt(this.config.percpu.max_cpu_display);if(this.stats.percpu.length>e){var r=t.sort((function(t,e){return e.total-t.total})),n={number:"x",total:Number((r.slice(e).reduce(((t,{total:e})=>t+e),0)/(this.stats.percpu.length-e)).toFixed(1))};(r=r.slice(0,e)).push(n)}return this.stats.percpu.length<=e?t:r},stats_list_after_cpu(){return this.view.list.filter((t=>!t.includes("cpu")))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},av=(0,Vm.A)(sv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Fy,[Lu("div",Uy,[Lu("span",zy,Cs(o.cpu_name),1),o.cpu_hz_current?(wu(),Eu("span",Hy,Cs(o.cpu_hz_current)+"/"+Cs(o.cpu_hz)+"Ghz ",1)):Bu("v-if",!0)]),Lu("div",Vy,[Lu("table",Gy,[o.args.percpu?Bu("v-if",!0):(wu(),Eu("tr",Wy,[Ky,Lu("td",Xy,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":o.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${o.cpu}%;`)},"   ",14,Qy)]),Lu("td",Zy,Cs(o.cpu)+"%",1)])),o.args.percpu?(wu(!0),Eu(hu,{key:1},Ec(o.percpus,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Yy,"CPU"+Cs(t.number),1),Lu("td",Jy,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${t.total}%;`)},"   ",14,tv)]),Lu("td",ev,Cs(t.total)+"%",1)])))),128)):Bu("v-if",!0),(wu(!0),Eu(hu,null,Ec(o.stats_list_after_cpu,(t=>(wu(),Eu("tr",null,[Lu("td",rv,Cs(t.toUpperCase()),1),Lu("td",nv,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration(t)}`),role:"progressbar","aria-valuenow":o.stats[t],"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${o.stats[t]}%;`)},"   ",14,iv)]),Lu("td",ov,Cs(o.stats[t])+"%",1)])))),256))])])])}]]),lv={key:0,class:"plugin",id:"raid"},cv={class:"table table-sm table-borderless margin-bottom"},uv={scope:"col"},pv=Lu("th",{scope:"col",class:"text-end"},"Used",-1),dv=Lu("th",{scope:"col",class:"text-end"},"Total",-1),mv={scope:"row"},fv={class:"warning"};const hv={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const r=Object.entries(e.components).map((([t,e])=>({number:e,name:t})));return{name:t,type:null==e.type?"UNKNOWN":e.type,used:e.used,available:e.available,status:e.status,degraded:e.used0}},methods:{getAlert:t=>t.inactive?"critical":t.degraded?"warning":"ok"}},gv=(0,Vm.A)(hv,[["render",function(t,e,r,n,i,o){return o.hasDisks?(wu(),Eu("section",lv,[Lu("table",cv,[Lu("thead",null,[Lu("tr",null,[Lu("th",uv,"RAID disks "+Cs(o.disks.length),1),pv,dv])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.disks,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",mv,[Ru(Cs(t.type.toUpperCase())+" "+Cs(t.name)+" ",1),Ul(Lu("div",fv,"└─ Degraded mode",512),[[Wp,t.degraded]]),Ul(Lu("div",null,"   └─ "+Cs(t.config),513),[[Wp,t.degraded]]),Ul(Lu("div",{class:"critical"},"└─ Status "+Cs(t.status),513),[[Wp,t.inactive]]),t.inactive?(wu(!0),Eu(hu,{key:0},Ec(t.components,((e,r)=>(wu(),Eu("div",{key:r},"    "+Cs(r===t.components.length-1?"└─":"├─")+" disk "+Cs(e.number)+": "+Cs(e.name),1)))),128)):Bu("v-if",!0)]),Ul(Lu("td",{scope:"row",class:ks(["text-end",o.getAlert(t)])},Cs(t.used),3),[[Wp,"active"==t.status]]),Ul(Lu("td",{scope:"row",class:ks(["text-end",o.getAlert(t)])},Cs(t.available),3),[[Wp,"active"==t.status]])])))),128))])])])):Bu("v-if",!0)}]]),bv={key:0,id:"smart",class:"plugin"},yv={class:"table table-sm table-borderless margin-bottom"},vv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"SMART DISKS"),Lu("th",{scope:"col",class:"text-end"})])],-1),xv={scope:"row"},wv=Lu("td",{scope:"col",class:"text-end"},null,-1),_v={scope:"row"},kv={scope:"row",class:"text-end text-truncate"};const Av={props:{data:{type:Object}},computed:{stats(){return this.data.stats.smart},drives(){return(Array.isArray(this.stats)?this.stats:[]).map((t=>{const e=t.DeviceName,r=Object.entries(t).filter((([t])=>"DeviceName"!==t)).sort((([,t],[,e])=>t.namee.name?1:0)).map((([t,e])=>e));return{name:e,details:r}}))},hasDrives(){return this.drives.length>0}}},Sv=(0,Vm.A)(Av,[["render",function(t,e,r,n,i,o){return o.hasDrives?(wu(),Eu("section",bv,[Lu("table",yv,[vv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.drives,((t,e)=>(wu(),Eu(hu,{key:e},[Lu("tr",null,[Lu("td",xv,Cs(t.name),1),wv]),(wu(!0),Eu(hu,null,Ec(t.details,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",_v,Cs(t.name),1),Lu("td",kv,Cs(t.raw),1)])))),128))],64)))),128))])])])):Bu("v-if",!0)}]]),Ev={key:0,class:"plugin",id:"sensors"},Cv={class:"table table-sm table-borderless"},Tv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"SENSORS"),Lu("th",{scope:"col",class:"text-end"})])],-1),Ov={scope:"row"};const Iv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},view(){return this.data.views.sensors},sensors(){return this.stats.map((t=>(this.args.fahrenheit&&"battery"!=t.type&&"fan_speed"!=t.type&&(t.value=parseFloat(1.8*t.value+32).toFixed(1),t.unit="F"),t)))},hasSensors(){return this.sensors.length>0}},methods:{getDecoration(t){if(void 0!==this.view[t].value.decoration)return this.view[t].value.decoration.toLowerCase()}}},jv=(0,Vm.A)(Iv,[["render",function(t,e,r,n,i,o){return o.hasSensors?(wu(),Eu("section",Ev,[Lu("table",Cv,[Tv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.sensors,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Ov,Cs(t.label),1),Lu("td",{class:ks(["text-end",o.getDecoration(t.label)])},Cs(t.value)+Cs(t.unit),3)])))),128))])])])):Bu("v-if",!0)}]]),Dv={class:"plugin",id:"system"},Lv={key:0,class:"critical"},Pv={class:"title"};const Nv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Mv=(0,Vm.A)(Nv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Dv,[o.isDisconnected?(wu(),Eu("span",Lv,"Disconnected from")):Bu("v-if",!0),Lu("span",Pv,Cs(o.hostname),1),Lu("span",null,Cs(o.humanReadableName),1)])}]]),Rv={class:"plugin",id:"uptime"};const qv={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Bv=(0,Vm.A)(qv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Rv,[Lu("span",null,"Uptime: "+Cs(o.value),1)])}]]),$v={key:0,class:"plugin",id:"vms"},Fv=Lu("span",{class:"title"},"VMs",-1),Uv={class:"table table-sm table-borderless table-striped table-hover"},zv=Lu("td",null,"Status",-1),Hv=Lu("td",null,"Core",-1),Vv=Lu("td",null,"/ MAX",-1),Gv=Lu("td",null,"Release",-1);const Wv={props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.vms},views(){return this.data.views.vms},vms(){const{sorter:t}=this,e=(this.stats||[]).map((t=>({id:t.id,name:t.name,status:null!=t.status?t.status:"?",cpu_count:null!=t.cpu_count?t.cpu_count:"?",memory_usage:null!=t.memory_usage?t.memory_usage:"?",memory_total:null!=t.memory_total?t.memory_total:"?",load_1min:null!=t.load_1min?t.load_1min:"?",load_5min:null!=t.load_5min?t.load_5min:"?",load_15min:null!=t.load_15min?t.load_15min:"?",release:t.release,image:t.image,engine:t.engine,engine_version:t.engine_version})));return(0,tf.orderBy)(e,[t.column].reduce(((t,e)=>("memory_usage"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["load_1min","memory_usage","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"load_1min",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{load_1min:"load",memory_usage:"memory consumption",name:"VM name",None:"None"}[t]||t}})}}}},Kv=(0,Vm.A)(Wv,[["render",function(t,e,r,n,i,o){return o.vms.length?(wu(),Eu("section",$v,[Fv,Ul(Lu("span",null,Cs(o.vms.length)+" sorted by "+Cs(i.sorter.getColumnLabel(i.sorter.column)),513),[[Wp,o.vms.length>1]]),Lu("table",Uv,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",null,"Engine",512),[[Wp,o.showEngine]]),Lu("td",{class:ks(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),zv,Hv,Lu("td",{class:ks(["sortable","memory_usage"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="memory_usage")}," MEM ",2),Vv,Lu("td",{class:ks(["sortable","load_1min"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="load_1min")}," LOAD 1/5/15min ",2),Gv])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.vms,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",null,Cs(e.engine),513),[[Wp,o.showEngine]]),Lu("td",null,Cs(e.name),1),Lu("td",{class:ks("stopped"==e.status?"careful":"ok")},Cs(e.status),3),Lu("td",null,Cs(t.$filters.number(e.cpu_count,1)),1),Lu("td",null,Cs(t.$filters.bytes(e.memory_usage)),1),Lu("td",null," / "+Cs(t.$filters.bytes(e.memory_total)),1),Lu("td",null,Cs(t.$filters.number(e.load_1min))+"/"+Cs(t.$filters.number(e.load_5min))+"/"+Cs(t.$filters.number(e.load_15min)),1),Lu("td",null,Cs(e.release),1)])))),128))])])])):Bu("v-if",!0)}]]),Xv={key:0,class:"plugin",id:"wifi"},Qv={class:"table table-sm table-borderless margin-bottom"},Zv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"WIFI"),Lu("th",{scope:"col",class:"text-end"},"dBm")])],-1),Yv={scope:"row"};const Jv={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const t=this.stats.map((t=>{if(""!==t.ssid)return{ssid:t.ssid,quality_level:t.quality_level}})).filter(Boolean);return(0,tf.orderBy)(t,["ssid"])},hasHotpots(){return this.hotspots.length>0}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},tx=(0,Vm.A)(Jv,[["render",function(t,e,r,n,i,o){return o.hasHotpots?(wu(),Eu("section",Xv,[Lu("table",Qv,[Zv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.hotspots,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Yv,Cs(t.$filters.limitTo(e.ssid,20)),1),Lu("td",{scope:"row",class:ks(["text-end",o.getDecoration(e,"quality_level")])},Cs(e.quality_level),3)])))),128))])])])):Bu("v-if",!0)}]]),ex=JSON.parse('{"H":["network","ports","wifi","connections","diskio","fs","irq","folders","raid","smart","sensors"]}'),rx={components:{GlancesHelp:Gm,GlancesPluginAlert:rf,GlancesPluginCloud:af,GlancesPluginConnections:wf,GlancesPluginCpu:Kf,GlancesPluginDiskio:gh,GlancesPluginContainers:Oh,GlancesPluginFolders:Mh,GlancesPluginFs:Wh,GlancesPluginGpu:yg,GlancesPluginIp:Eg,GlancesPluginIrq:Lg,GlancesPluginLoad:Hg,GlancesPluginMem:cb,GlancesPluginMemswap:xb,GlancesPluginNetwork:Mb,GlancesPluginNow:Fb,GlancesPluginPercpu:ey,GlancesPluginPorts:my,GlancesPluginProcess:$y,GlancesPluginQuicklook:av,GlancesPluginRaid:gv,GlancesPluginSensors:jv,GlancesPluginSmart:Sv,GlancesPluginSystem:Mv,GlancesPluginUptime:Bv,GlancesPluginVms:Kv,GlancesPluginWifi:tx},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},data(){return this.store.data||{}},dataLoaded(){return void 0!==this.store.data},hasGpu(){return this.store.data.stats.gpu.length>0},isLinux(){return this.store.data.isLinux},title(){const{data:t}=this,e=t.stats&&t.stats.system&&t.stats.system.hostname||"";return e?`${e} - Glances`:"Glances"},leftMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.left_menu?this.config.outputs.left_menu.split(","):ex.H}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){Hd("a",(()=>{this.store.args.sort_processes_key=null})),Hd("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Hd("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Hd("u",(()=>{this.store.args.sort_processes_key="username"})),Hd("p",(()=>{this.store.args.sort_processes_key="name"})),Hd("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Hd("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Hd("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Hd("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Hd("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Hd("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Hd("j",(()=>{this.store.args.programs=!this.store.args.programs})),Hd("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Hd("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Hd("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Hd("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Hd("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Hd("shift+S",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Hd("shift+D",(()=>{this.store.args.disable_containers=!this.store.args.disable_containers})),Hd("b",(()=>{this.store.args.byte=!this.store.args.byte})),Hd("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),Hd("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Hd("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Hd("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Hd("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Hd("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Hd("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Hd("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Hd("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Hd("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Hd("5",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook,this.store.args.disable_cpu=!this.store.args.disable_cpu,this.store.args.disable_mem=!this.store.args.disable_mem,this.store.args.disable_memswap=!this.store.args.disable_memswap,this.store.args.disable_load=!this.store.args.disable_load,this.store.args.disable_gpu=!this.store.args.disable_gpu})),Hd("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Hd("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Hd("shift+V",(()=>{this.store.args.disable_vms=!this.store.args.disable_vms})),Hd("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Yd.init(e),this.setupHotKeys()},beforeUnmount(){Hd.unbind()}};const nx=((...t)=>{const e=Zp().createApp(...t);const{mount:r}=e;return e.mount=t=>{const n=Yp(t);if(!n)return;const i=e._component;Wo(i)||i.render||i.template||(i.template=n.innerHTML),n.innerHTML="";const o=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e})((0,Vm.A)(rx,[["render",function(t,e,r,n,i,o){const s=_c("glances-help"),a=_c("glances-plugin-system"),l=_c("glances-plugin-ip"),c=_c("glances-plugin-now"),u=_c("glances-plugin-uptime"),p=_c("glances-plugin-cloud"),d=_c("glances-plugin-quicklook"),m=_c("glances-plugin-cpu"),f=_c("glances-plugin-gpu"),h=_c("glances-plugin-mem"),g=_c("glances-plugin-memswap"),b=_c("glances-plugin-load"),y=_c("glances-plugin-vms"),v=_c("glances-plugin-containers"),x=_c("glances-plugin-process"),w=_c("glances-plugin-alert");return o.dataLoaded?o.args.help_tag?(wu(),Cu(s,{key:1})):(wu(),Eu("main",ed,[Lu("div",rd,[Lu("div",nd,[o.args.disable_system?Bu("v-if",!0):(wu(),Eu("div",id,[Pu(a,{data:o.data},null,8,["data"])])),o.args.disable_ip?Bu("v-if",!0):(wu(),Eu("div",od,[Pu(l,{data:o.data},null,8,["data"])])),o.args.disable_now?Bu("v-if",!0):(wu(),Eu("div",sd,[Pu(c,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Bu("v-if",!0):(wu(),Eu("div",ad,[Pu(u,{data:o.data},null,8,["data"])]))]),o.args.disable_cloud?Bu("v-if",!0):(wu(),Eu("div",ld,[Lu("div",cd,[Pu(p,{data:o.data},null,8,["data"])])]))]),o.args.enable_separator?(wu(),Eu("div",ud)):Bu("v-if",!0),Lu("div",pd,[Lu("div",dd,[Bu(" Quicklook "),o.args.disable_quicklook?Bu("v-if",!0):(wu(),Eu("div",md,[Pu(d,{data:o.data},null,8,["data"])])),Bu(" CPU "),o.args.disable_cpu&&o.args.percpu?Bu("v-if",!0):(wu(),Eu("div",fd,[Pu(m,{data:o.data},null,8,["data"])])),Bu(' TODO: percpu need to be refactor\n
\n \n
\n
\n \n
'),Bu(" GPU "),!o.args.disable_gpu&&o.hasGpu?(wu(),Eu("div",hd,[Pu(f,{data:o.data},null,8,["data"])])):Bu("v-if",!0),Bu(" MEM "),o.args.disable_mem?Bu("v-if",!0):(wu(),Eu("div",gd,[Pu(h,{data:o.data},null,8,["data"])])),Bu(" SWAP "),o.args.disable_memswap?Bu("v-if",!0):(wu(),Eu("div",bd,[Pu(g,{data:o.data},null,8,["data"])])),Bu(" LOAD "),o.args.disable_load?Bu("v-if",!0):(wu(),Eu("div",yd,[Pu(b,{data:o.data},null,8,["data"])]))])]),o.args.enable_separator?(wu(),Eu("div",vd)):Bu("v-if",!0),Lu("div",xd,[Lu("div",wd,[o.args.disable_left_sidebar?Bu("v-if",!0):(wu(),Eu("div",_d,[(wu(!0),Eu(hu,null,Ec(o.leftMenu,(t=>{return wu(),Eu(hu,null,[o.args[`disable_${t}`]?Bu("v-if",!0):(wu(),Cu((e=`glances-plugin-${t}`,Ko(e)?Ac(wc,e,!1)||e:e||kc),{key:0,id:`plugin-${t}`,class:"plugin",data:o.data},null,8,["id","data"]))],64);var e})),256))])),Lu("div",kd,[o.args.disable_vms?Bu("v-if",!0):(wu(),Cu(y,{key:0,data:o.data},null,8,["data"])),o.args.disable_containers?Bu("v-if",!0):(wu(),Cu(v,{key:1,data:o.data},null,8,["data"])),Pu(x,{data:o.data},null,8,["data"]),o.args.disable_alert?Bu("v-if",!0):(wu(),Cu(w,{key:2,data:o.data},null,8,["data"]))])])])])):(wu(),Eu("div",Jp,td))}]]));nx.config.globalProperties.$filters=e,nx.mount("#app")})()})(); \ No newline at end of file +var Ad="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Sd(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function Ed(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var Td={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Ad?173:189,"=":Ad?61:187,";":Ad?59:186,"'":222,"[":219,"]":221,"\\":220},Od={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Id={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},jd={16:!1,18:!1,17:!1,91:!1},Dd={},Ld=1;Ld<20;Ld++)Td["f".concat(Ld)]=111+Ld;var Pd=[],Nd=!1,Md="all",Rd=[],qd=function(t){return Td[t.toLowerCase()]||Od[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Bd(t){Md=t||"all"}function $d(){return Md||"all"}var Fd=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,o=void 0===i?"+":i;Cd(e).forEach((function(t){var e=t.split(o),i=e.length,s=e[i-1],a="*"===s?"*":qd(s);if(Dd[a]){r||(r=$d());var l=i>1?Ed(Od,e):[];Dd[a]=Dd[a].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,o=0;o0,jd)Object.prototype.hasOwnProperty.call(jd,o)&&(!jd[o]&&e.mods.indexOf(+o)>-1||jd[o]&&-1===e.mods.indexOf(+o))&&(i=!1);(0!==e.mods.length||jd[16]||jd[18]||jd[17]||jd[91])&&!i&&"*"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(Pd),!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function zd(t,e){var r=Dd["*"],n=t.keyCode||t.which||t.charCode;if(Hd.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===Pd.indexOf(n)&&229!==n&&Pd.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=Id[e];t[e]&&-1===Pd.indexOf(r)?Pd.push(r):!t[e]&&Pd.indexOf(r)>-1?Pd.splice(Pd.indexOf(r),1):"metaKey"===e&&t[e]&&3===Pd.length&&(t.ctrlKey||t.shiftKey||t.altKey||(Pd=Pd.slice(Pd.indexOf(r))))})),n in jd){for(var i in jd[n]=!0,Od)Od[i]===n&&(Hd[i]=!0);if(!r)return}for(var o in jd)Object.prototype.hasOwnProperty.call(jd,o)&&(jd[o]=t[Id[o]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===Pd.indexOf(17)&&Pd.push(17),-1===Pd.indexOf(18)&&Pd.push(18),jd[17]=!0,jd[18]=!0);var s=$d();if(r)for(var a=0;a1&&(i=Ed(Od,t)),(t="*"===(t=t[t.length-1])?"*":qd(t))in Dd||(Dd[t]=[]),Dd[t].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:n[a],method:r,key:n[a],splitKey:u,element:s});void 0!==s&&!function(t){return Rd.indexOf(t)>-1}(s)&&window&&(Rd.push(s),Sd(s,"keydown",(function(t){zd(t,s)}),p),Nd||(Nd=!0,Sd(window,"focus",(function(){Pd=[]}),p)),Sd(s,"keyup",(function(t){zd(t,s),function(t){var e=t.keyCode||t.which||t.charCode,r=Pd.indexOf(e);if(r>=0&&Pd.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&Pd.splice(0,Pd.length),93!==e&&224!==e||(e=91),e in jd)for(var n in jd[e]=!1,Od)Od[n]===e&&(Hd[n]=!1)}(t)}),p))}var Vd={getPressedKeyString:function(){return Pd.map((function(t){return e=t,Object.keys(Td).find((function(t){return Td[t]===e}))||function(t){return Object.keys(Od).find((function(e){return Od[e]===t}))}(t)||String.fromCharCode(t);var e}))},setScope:Bd,getScope:$d,deleteScope:function(t,e){var r,n;for(var i in t||(t=$d()),Dd)if(Object.prototype.hasOwnProperty.call(Dd,i))for(r=Dd[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Dd).forEach((function(r){Dd[r].filter((function(r){return r.scope===e&&r.shortcut===t})).forEach((function(t){t&&t.method&&t.method()}))}))},unbind:function(t){if(void 0===t)Object.keys(Dd).forEach((function(t){return delete Dd[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&Fd(t)}));else if("object"==typeof t)t.key&&Fd(t);else if("string"==typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n=this.limits[t][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+o}}return"ok"+o}getAlertLog(t,e,r,n){return this.getAlert(t,e,r,n,!0)}};const Yd=new class{data=void 0;init(t=60){let e;const r=()=>(Kd.status="PENDING",Promise.all([fetch("api/4/all",{method:"GET"}).then((t=>t.json())),fetch("api/4/all/views",{method:"GET"}).then((t=>t.json()))]).then((t=>{const e={stats:t[0],views:t[1],isBsd:"FreeBSD"===t[0].system.os_name,isLinux:"Linux"===t[0].system.os_name,isSunOS:"SunOS"===t[0].system.os_name,isMac:"Darwin"===t[0].system.os_name,isWindows:"Windows"===t[0].system.os_name};this.data=e,Kd.data=e,Kd.status="SUCCESS"})).catch((t=>{console.log(t),Kd.status="FAILURE"})).then((()=>{e&&clearTimeout(e),e=setTimeout(r,1e3*t)})));r(),fetch("api/4/all/limits",{method:"GET"}).then((t=>t.json())).then((t=>{Zd.setLimits(t)})),fetch("api/4/args",{method:"GET"}).then((t=>t.json())).then(((t={})=>{Kd.args={...Kd.args,...t}})),fetch("api/4/config",{method:"GET"}).then((t=>t.json())).then(((t={})=>{Kd.config={...Kd.config,...t}}))}getData(){return this.data}};const Jd=new class{constructor(){this.favico=new(Qd())({animation:"none"})}badge(t){this.favico.badge(t)}reset(){this.favico.reset()}},tm={key:0},em={class:"container-fluid"},rm={class:"row"},nm={class:"col-sm-12 col-lg-24 title"},im=Lu("div",{class:"row"}," ",-1),om={class:"row"},sm={class:"col-sm-12 col-lg-24"},am=Lu("div",{class:"row"}," ",-1),lm={class:"table table-sm table-borderless table-striped table-hover"},cm=Lu("td",null," ",-1),um=Lu("td",null," ",-1),pm=Lu("td",null," ",-1),dm=Lu("td",null," ",-1),mm=Lu("td",null," ",-1),fm=Lu("td",null," ",-1),hm=Lu("td",null," ",-1),gm=Lu("td",null," ",-1),bm=Lu("td",null," ",-1),ym=Lu("td",null," ",-1),vm=Lu("td",null," ",-1),xm=Lu("td",null," ",-1),wm=Lu("td",null," ",-1),_m=Lu("td",null," ",-1),km=Lu("td",null," ",-1),Am=Lu("td",null," ",-1),Sm=Lu("td",null," ",-1),Em=Lu("td",null," ",-1),Cm=Lu("td",null," ",-1),Tm=Lu("td",null," ",-1),Om=Lu("td",null," ",-1),Im=Lu("td",null," ",-1),jm=Lu("td",null," ",-1),Dm=Lu("td",null," ",-1),Lm=Lu("td",null," ",-1),Pm=Lu("td",null," ",-1),Nm=Lu("td",null," ",-1),Mm=Lu("td",null," ",-1),Rm=Lu("td",null," ",-1),qm=Lu("td",null," ",-1),Bm=Lu("td",null," ",-1),$m=Lu("td",null," ",-1),Fm=Lu("td",null," ",-1),Um=Lu("td",null," ",-1),zm=qu('
 

For an exhaustive list of key bindings, click here.

 

Press h to came back to Glances.

',5);const Hm={data:()=>({help:void 0}),mounted(){fetch("api/4/help",{method:"GET"}).then((t=>t.json())).then((t=>this.help=t))}};var Vm=r(6262);const Gm=(0,Vm.A)(Hm,[["render",function(t,e,r,n,i,o){return i.help?(wu(),Eu("div",tm,[Lu("div",em,[Lu("div",rm,[Lu("div",nm,Cs(i.help.version)+" "+Cs(i.help.psutil_version),1)]),im,Lu("div",om,[Lu("div",sm,Cs(i.help.configuration_file),1)]),am]),Lu("table",lm,[Lu("thead",null,[Lu("tr",null,[Lu("th",null,Cs(i.help.header_sort.replace(":","")),1),Lu("th",null,Cs(i.help.header_show_hide.replace(":","")),1),Lu("th",null,Cs(i.help.header_toggle.replace(":","")),1),Lu("th",null,Cs(i.help.header_miscellaneous.replace(":","")),1)])]),Lu("tbody",null,[Lu("tr",null,[Lu("td",null,Cs(i.help.sort_auto),1),Lu("td",null,Cs(i.help.show_hide_application_monitoring),1),Lu("td",null,Cs(i.help.toggle_bits_bytes),1),Lu("td",null,Cs(i.help.misc_erase_process_filter),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_cpu),1),Lu("td",null,Cs(i.help.show_hide_diskio),1),Lu("td",null,Cs(i.help.toggle_count_rate),1),Lu("td",null,Cs(i.help.misc_generate_history_graphs),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_io_rate),1),Lu("td",null,Cs(i.help.show_hide_containers),1),Lu("td",null,Cs(i.help.toggle_used_free),1),Lu("td",null,Cs(i.help.misc_help),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_mem),1),Lu("td",null,Cs(i.help.show_hide_top_extended_stats),1),Lu("td",null,Cs(i.help.toggle_bar_sparkline),1),Lu("td",null,Cs(i.help.misc_accumulate_processes_by_program),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_process_name),1),Lu("td",null,Cs(i.help.show_hide_filesystem),1),Lu("td",null,Cs(i.help.toggle_separate_combined),1),cm]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_cpu_times),1),Lu("td",null,Cs(i.help.show_hide_gpu),1),Lu("td",null,Cs(i.help.toggle_live_cumulative),1),Lu("td",null,Cs(i.help.misc_reset_processes_summary_min_max),1)]),Lu("tr",null,[Lu("td",null,Cs(i.help.sort_user),1),Lu("td",null,Cs(i.help.show_hide_ip),1),Lu("td",null,Cs(i.help.toggle_linux_percentage),1),Lu("td",null,Cs(i.help.misc_quit),1)]),Lu("tr",null,[um,Lu("td",null,Cs(i.help.show_hide_tcp_connection),1),Lu("td",null,Cs(i.help.toggle_cpu_individual_combined),1),Lu("td",null,Cs(i.help.misc_reset_history),1)]),Lu("tr",null,[pm,Lu("td",null,Cs(i.help.show_hide_alert),1),Lu("td",null,Cs(i.help.toggle_gpu_individual_combined),1),Lu("td",null,Cs(i.help.misc_delete_warning_alerts),1)]),Lu("tr",null,[dm,Lu("td",null,Cs(i.help.show_hide_network),1),Lu("td",null,Cs(i.help.toggle_short_full),1),Lu("td",null,Cs(i.help.misc_delete_warning_and_critical_alerts),1)]),Lu("tr",null,[mm,Lu("td",null,Cs(i.help.sort_cpu_times),1),fm,hm]),Lu("tr",null,[gm,Lu("td",null,Cs(i.help.show_hide_irq),1),bm,ym]),Lu("tr",null,[vm,Lu("td",null,Cs(i.help.show_hide_raid_plugin),1),xm,wm]),Lu("tr",null,[_m,Lu("td",null,Cs(i.help.show_hide_sensors),1),km,Am]),Lu("tr",null,[Sm,Lu("td",null,Cs(i.help.show_hide_wifi_module),1),Em,Cm]),Lu("tr",null,[Tm,Lu("td",null,Cs(i.help.show_hide_processes),1),Om,Im]),Lu("tr",null,[jm,Lu("td",null,Cs(i.help.show_hide_left_sidebar),1),Dm,Lm]),Lu("tr",null,[Pm,Lu("td",null,Cs(i.help.show_hide_quick_look),1),Nm,Mm]),Lu("tr",null,[Rm,Lu("td",null,Cs(i.help.show_hide_cpu_mem_swap),1),qm,Bm]),Lu("tr",null,[$m,Lu("td",null,Cs(i.help.show_hide_all),1),Fm,Um])])]),zm])):Bu("v-if",!0)}]]),Wm={class:"plugin",id:"alerts"},Km={key:0,class:"title"},Xm={key:1,class:"title"},Qm={class:"table table-sm table-borderless"},Zm={scope:"row"},Ym=Lu("td",{scope:"row"},null,-1),Jm={scope:"row"};var tf=r(2543);const ef={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((t=>{const e={};if(e.state=t.state,e.type=t.type,e.begin=1e3*t.begin,e.end=1e3*t.end,e.ongoing=-1==t.end,e.min=t.min,e.avg=t.avg,e.max=t.max,e.top=t.top.join(", "),!e.ongoing){const t=e.end-e.begin,r=parseInt(t/1e3%60),n=parseInt(t/6e4%60),i=parseInt(t/36e5%24);e.duration=(0,tf.padStart)(i,2,"0")+":"+(0,tf.padStart)(n,2,"0")+":"+(0,tf.padStart)(r,2,"0")}return e}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:t})=>t)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?Jd.badge(this.countOngoingAlerts):Jd.reset()}},methods:{formatDate(t){const e=(new Date).getTimezoneOffset(),r=Math.trunc(Math.abs(e)/60),n=Math.abs(e%60);let i=e<=0?"+":"-";i+=String(r).padStart(2,"0")+String(n).padStart(2,"0");const o=new Date(t);return String(o.getFullYear())+"-"+String(o.getMonth()).padStart(2,"0")+"-"+String(o.getDate()).padStart(2,"0")+" "+String(o.getHours()).padStart(2,"0")+":"+String(o.getMinutes()).padStart(2,"0")+":"+String(o.getSeconds()).padStart(2,"0")+"("+i+")"}}},rf=(0,Vm.A)(ef,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Wm,[o.hasAlerts?(wu(),Eu("span",Km," Warning or critical alerts (last "+Cs(o.countAlerts)+" entries) ",1)):(wu(),Eu("span",Xm,"No warning or critical alert detected")),Lu("table",Qm,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.alerts,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Zm,[Lu("span",null,Cs(o.formatDate(e.begin)),1),Lu("span",null,"("+Cs(e.ongoing?"ongoing":e.duration)+")",1)]),Ym,Lu("td",Jm,[Ul(Lu("span",null,Cs(e.state)+" on ",513),[[Wp,!e.ongoing]]),Lu("span",{class:ks(e.state.toLowerCase())},Cs(e.type),3),Lu("span",null,"("+Cs(t.$filters.number(e.max,1))+")",1),Lu("span",null,": "+Cs(e.top),1)])])))),128))])])])}]]),nf={key:0,class:"plugin",id:"cloud"},of={class:"title"};const sf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:t}=this;return void 0!==this.stats.id?`${t.type} instance ${t.name} (${t.region})`:null}}},af=(0,Vm.A)(sf,[["render",function(t,e,r,n,i,o){return o.instance||o.provider?(wu(),Eu("section",nf,[Lu("span",of,Cs(o.provider),1),Ru(" "+Cs(o.instance),1)])):Bu("v-if",!0)}]]),lf={class:"plugin",id:"connections"},cf={class:"table table-sm table-borderless margin-bottom"},uf=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"TCP CONNECTIONS"),Lu("th",{scope:"col",class:"text-end"})])],-1),pf=Lu("td",{scope:"row"},"Listen",-1),df={class:"text-end"},mf=Lu("td",{scope:"row"},"Initiated",-1),ff={class:"text-end"},hf=Lu("td",{scope:"row"},"Established",-1),gf={class:"text-end"},bf=Lu("td",{scope:"row"},"Terminated",-1),yf={class:"text-end"},vf=Lu("td",{scope:"row"},"Tracked",-1);const xf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.connections},view(){return this.data.views.connections},listen(){return this.stats.LISTEN},initiated(){return this.stats.initiated},established(){return this.stats.ESTABLISHED},terminated(){return this.stats.terminated},tracked(){return{count:this.stats.nf_conntrack_count,max:this.stats.nf_conntrack_max}}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},wf=(0,Vm.A)(xf,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",lf,[Lu("table",cf,[uf,Lu("tbody",null,[Lu("tr",null,[pf,Lu("td",df,Cs(o.listen),1)]),Lu("tr",null,[mf,Lu("td",ff,Cs(o.initiated),1)]),Lu("tr",null,[hf,Lu("td",gf,Cs(o.established),1)]),Lu("tr",null,[bf,Lu("td",yf,Cs(o.terminated),1)]),Lu("tr",null,[vf,Lu("td",{class:ks(["text-end",o.getDecoration("nf_conntrack_percent")])},Cs(o.tracked.count)+"/"+Cs(o.tracked.max),3)])])])])}]]),_f={id:"cpu",class:"plugin"},kf={class:"table-responsive"},Af={class:"table-sm table-borderless"},Sf={class:"justify-content-between"},Ef={scope:"col"},Cf={class:"table table-sm table-borderless"},Tf=Lu("th",{scope:"col"},"CPU",-1),Of=Lu("td",{scope:"col"},"user:",-1),If=Lu("td",{scope:"col"},"system:",-1),jf={key:0,scope:"col"},Df={class:"d-none d-xl-block d-xxl-block"},Lf={class:"table table-sm table-borderless"},Pf={scope:"col"},Nf={scope:"col"},Mf={scope:"col"},Rf={key:0,scope:"col"},qf={scope:"col"},Bf={class:"d-none d-xxl-block"},$f={class:"table table-sm table-borderless"},Ff={key:0,scope:"col"},Uf={scope:"col"},zf={key:0,scope:"col"},Hf={key:1,scope:"col",class:"text-end"},Vf={key:0,scope:"col"},Gf={key:1,scope:"col",class:"text-end"};const Wf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cpu},view(){return this.data.views.cpu},isLinux(){return this.data.isLinux},isSunOS(){return this.data.isSunOS},isWindows(){return this.data.isWindows},total(){return this.stats.total},user(){return this.stats.user},system(){return this.stats.system},idle(){return this.stats.idle},nice(){return this.stats.nice},irq(){return this.stats.irq},iowait(){return this.stats.iowait},dpc(){return this.stats.dpc},steal(){return this.stats.steal},guest(){return this.stats.guest},ctx_switches(){const{stats:t}=this;return t.ctx_switches?Math.floor(t.ctx_switches/t.time_since_update):null},interrupts(){const{stats:t}=this;return t.interrupts?Math.floor(t.interrupts/t.time_since_update):null},soft_interrupts(){const{stats:t}=this;return t.soft_interrupts?Math.floor(t.soft_interrupts/t.time_since_update):null},syscalls(){const{stats:t}=this;return t.syscalls?Math.floor(t.syscalls/t.time_since_update):null}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Kf=(0,Vm.A)(Wf,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",_f,[Bu(" d-none d-xxl-block "),Lu("div",kf,[Lu("table",Af,[Lu("tbody",null,[Lu("tr",Sf,[Lu("td",Ef,[Lu("table",Cf,[Lu("tbody",null,[Lu("tr",null,[Tf,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("total")])},Cs(o.total)+"%",3)]),Lu("tr",null,[Of,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("user")])},Cs(o.user)+"%",3)]),Lu("tr",null,[If,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("system")])},Cs(o.system)+"%",3)]),Lu("tr",null,[null!=o.iowait?(wu(),Eu("td",jf,"iowait:")):Bu("v-if",!0),null!=o.iowait?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("iowait")])},Cs(o.iowait)+"%",3)):Bu("v-if",!0)])])])]),Lu("td",null,[Lu("template",Df,[Lu("table",Lf,[Lu("tbody",null,[Lu("tr",null,[Ul(Lu("td",Pf,"idle:",512),[[Wp,null!=o.idle]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.idle)+"%",513),[[Wp,null!=o.idle]])]),Lu("tr",null,[Ul(Lu("td",Nf,"irq:",512),[[Wp,null!=o.irq]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.irq)+"%",513),[[Wp,null!=o.irq]])]),Lu("tr",null,[Ul(Lu("td",Mf,"nice:",512),[[Wp,null!=o.nice]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.nice)+"%",513),[[Wp,null!=o.nice]])]),Lu("tr",null,[null==o.iowait&&null!=o.dpc?(wu(),Eu("td",Rf,"dpc:")):Bu("v-if",!0),null==o.iowait&&null!=o.dpc?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("dpc")])},Cs(o.dpc)+"%",3)):Bu("v-if",!0),Ul(Lu("td",qf,"steal:",512),[[Wp,null!=o.steal]]),Ul(Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("steal")])},Cs(o.steal)+"%",3),[[Wp,null!=o.steal]])])])])])]),Lu("td",null,[Lu("template",Bf,[Lu("table",$f,[Lu("tbody",null,[Lu("tr",null,[null!=o.nice&&null!=o.ctx_switches?(wu(),Eu("td",Ff,"ctx_sw:")):Bu("v-if",!0),null!=o.nice&&null!=o.ctx_switches?(wu(),Eu("td",{key:1,scope:"col",class:ks(["text-end",o.getDecoration("ctx_switches")])},Cs(o.ctx_switches),3)):Bu("v-if",!0)]),Lu("tr",null,[Ul(Lu("td",Uf,"inter:",512),[[Wp,null!=o.interrupts]]),Ul(Lu("td",{scope:"col",class:"text-end"},Cs(o.interrupts),513),[[Wp,null!=o.interrupts]])]),Lu("tr",null,[o.isWindows||o.isSunOS||null==o.soft_interrupts?Bu("v-if",!0):(wu(),Eu("td",zf,"sw_int:")),o.isWindows||o.isSunOS||null==o.soft_interrupts?Bu("v-if",!0):(wu(),Eu("td",Hf,Cs(o.soft_interrupts),1))]),Lu("tr",null,[o.isLinux&&null!=o.guest?(wu(),Eu("td",Vf,"guest:")):Bu("v-if",!0),o.isLinux&&null!=o.guest?(wu(),Eu("td",Gf,Cs(o.guest)+"%",1)):Bu("v-if",!0)])])])])])])])])])])}]]),Xf={key:0,class:"plugin",id:"diskio"},Qf={class:"table table-sm table-borderless margin-bottom"},Zf=Lu("th",{scope:"col"},"DISK I/O",-1),Yf={scope:"col",class:"text-end w-25"},Jf={scope:"col",class:"text-end w-25"},th={scope:"col",class:"text-end w-25"},eh={scope:"col",class:"text-end w-25"},rh={scope:"row"};var nh=r(4728),ih=r.n(nh);function oh(t,e){return sh(t=8*Math.round(t),e)+"b"}function sh(t,e){if(e=e||!1,isNaN(parseFloat(t))||!isFinite(t)||0==t)return t;const r=["Y","Z","E","P","T","G","M","K"],n={Y:12089258196146292e8,Z:11805916207174113e5,E:0x1000000000000000,P:0x4000000000000,T:1099511627776,G:1073741824,M:1048576,K:1024};for(var i=0;i1){var a=0;return s<10?a=2:s<100&&(a=1),e?a="MK"==o?0:(0,tf.min)([1,a]):"K"==o&&(a=0),parseFloat(s).toFixed(a)+o}}return t.toFixed(0)}function ah(t){return void 0===t||""===t?"?":t}function lh(t,e,r){return e=e||0,r=r||" ",String(t).padStart(e,r)}function ch(t,e){return"function"!=typeof t.slice&&(t=String(t)),t.slice(0,e)}function uh(t,e,r=!0){return e=e||8,t.length>e?r?t.substring(0,e-1)+"_":"_"+t.substring(t.length-e+1):t}function ph(t){if(void 0===t)return t;var e=function(t){var e=document.createElement("div");return e.innerText=t,e.innerHTML}(t),r=e.replace(/\n/g,"
");return ih()(r)}function dh(t,e){return new Intl.NumberFormat(void 0,"number"==typeof e?{maximumFractionDigits:e}:e).format(t)}function mh(t){for(var e=0,r=0;r({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},view(){return this.data.views.diskio},disks(){const t=this.stats.map((t=>({name:t.disk_name,alias:void 0!==t.alias?t.alias:null,bitrate:{txps:sh(t.read_bytes_rate_per_sec),rxps:sh(t.write_bytes_rate_per_sec)},count:{txps:sh(t.read_count_rate_per_sec),rxps:sh(t.write_count_rate_per_sec)}}))).filter((t=>!1===this.view[t.name].read_bytes_rate_per_sec.hidden&&!1===this.view[t.name].write_bytes_rate_per_sec.hidden));return(0,tf.orderBy)(t,["name"])},hasDisks(){return this.disks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},gh=(0,Vm.A)(hh,[["render",function(t,e,r,n,i,o){return o.hasDisks?(wu(),Eu("section",Xf,[Lu("table",Qf,[Lu("thead",null,[Lu("tr",null,[Zf,Ul(Lu("th",Yf,"R/s",512),[[Wp,!o.args.diskio_iops]]),Ul(Lu("th",Jf,"W/s",512),[[Wp,!o.args.diskio_iops]]),Ul(Lu("th",th,"IOR/s",512),[[Wp,o.args.diskio_iops]]),Ul(Lu("th",eh,"IOW/s",512),[[Wp,o.args.diskio_iops]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.disks,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",rh,Cs(t.$filters.minSize(e.alias?e.alias:e.name,32)),1),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.name,"write_bytes_rate_per_sec")])},Cs(e.bitrate.txps),3),[[Wp,!o.args.diskio_iops]]),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.name,"read_bytes_rate_per_sec")])},Cs(e.bitrate.rxps),3),[[Wp,!o.args.diskio_iops]]),Ul(Lu("td",{class:"text-end w-25"},Cs(e.count.txps),513),[[Wp,o.args.diskio_iops]]),Ul(Lu("td",{class:"text-end w-25"},Cs(e.count.rxps),513),[[Wp,o.args.diskio_iops]])])))),128))])])])):Bu("v-if",!0)}]]),bh={key:0,class:"plugin",id:"containers"},yh=Lu("span",{class:"title"},"CONTAINERS",-1),vh={class:"table table-sm table-borderless table-striped table-hover"},xh=Lu("td",null,"Status",-1),wh=Lu("td",null,"Uptime",-1),_h=Lu("td",null,"/ MAX",-1),kh=Lu("td",null,"IOR/s",-1),Ah=Lu("td",null,"IOW/s",-1),Sh=Lu("td",null,"RX/s",-1),Eh=Lu("td",null,"TX/s",-1),Ch=Lu("td",null,"Command",-1);const Th={props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.containers},views(){return this.data.views.containers},containers(){const{sorter:t}=this,e=(this.stats||[]).map((t=>{let e="?";return null!=t.memory.usage&&(e=t.memory.usage,null!=t.memory.inactive_file&&(e-=t.memory.inactive_file)),{id:t.id,name:t.name,status:t.status,uptime:t.uptime,cpu_percent:t.cpu.total,memory_usage:e,limit:null!=t.memory.limit?t.memory.limit:"?",io_rx:null!=t.io_rx?t.io_rx:"?",io_wx:null!=t.io_wx?t.io_wx:"?",network_rx:null!=t.network_rx?t.network_rx:"?",network_tx:null!=t.network_tx?t.network_tx:"?",command:t.command,image:t.image,engine:t.engine,pod_id:t.pod_id}}));return(0,tf.orderBy)(e,[t.column].reduce(((t,e)=>("memory_percent"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name},showPod(){return this.views.show_pod_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[t]||t}})}}}},Oh=(0,Vm.A)(Th,[["render",function(t,e,r,n,i,o){return o.containers.length?(wu(),Eu("section",bh,[yh,Ul(Lu("span",null,Cs(o.containers.length)+" sorted by "+Cs(i.sorter.getColumnLabel(i.sorter.column)),513),[[Wp,o.containers.length>1]]),Lu("table",vh,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",null,"Engine",512),[[Wp,o.showEngine]]),Ul(Lu("td",null,"Pod",512),[[Wp,o.showPod]]),Lu("td",{class:ks(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),xh,wh,Lu("td",{class:ks(["sortable","cpu_percent"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="cpu_percent")}," CPU% ",2),Lu("td",{class:ks(["sortable","memory_percent"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="memory_percent")}," MEM ",2),_h,kh,Ah,Sh,Eh,Ch])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.containers,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",null,Cs(e.engine),513),[[Wp,o.showEngine]]),Ul(Lu("td",null,Cs(e.pod_id||"-"),513),[[Wp,o.showPod]]),Lu("td",null,Cs(e.name),1),Lu("td",{class:ks("Paused"==e.status?"careful":"ok")},Cs(e.status),3),Lu("td",null,Cs(e.uptime),1),Lu("td",null,Cs(t.$filters.number(e.cpu_percent,1)),1),Lu("td",null,Cs(t.$filters.bytes(e.memory_usage)),1),Lu("td",null," / "+Cs(t.$filters.bytes(e.limit)),1),Lu("td",null,Cs(t.$filters.bytes(e.io_rx)),1),Lu("td",null,Cs(t.$filters.bytes(e.io_wx)),1),Lu("td",null,Cs(t.$filters.bits(e.network_rx)),1),Lu("td",null,Cs(t.$filters.bits(e.network_tx)),1),Lu("td",null,Cs(e.command),1)])))),128))])])])):Bu("v-if",!0)}]]),Ih={key:0,class:"plugin",id:"folders"},jh={class:"table table-sm table-borderless margin-bottom"},Dh=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"FOLDERS"),Lu("th",{scope:"col",class:"text-end"},"Size")])],-1),Lh={scope:"row"},Ph={key:0,class:"visible-lg-inline"};const Nh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((t=>({path:t.path,size:t.size,errno:t.errno,careful:t.careful,warning:t.warning,critical:t.critical})))},hasFolders(){return this.folders.length>0}},methods:{getDecoration:t=>t.errno>0?"error":null!==t.critical&&t.size>1e6*t.critical?"critical":null!==t.warning&&t.size>1e6*t.warning?"warning":null!==t.careful&&t.size>1e6*t.careful?"careful":"ok"}},Mh=(0,Vm.A)(Nh,[["render",function(t,e,r,n,i,o){return o.hasFolders?(wu(),Eu("section",Ih,[Lu("table",jh,[Dh,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.folders,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Lh,Cs(e.path),1),Lu("td",{class:ks(["text-end",o.getDecoration(e)])},[e.errno>0?(wu(),Eu("span",Ph,"?")):Bu("v-if",!0),Ru(" "+Cs(t.$filters.bytes(e.size)),1)],2)])))),128))])])])):Bu("v-if",!0)}]]),Rh={key:0,class:"plugin",id:"fs"},qh={class:"table table-sm table-borderless margin-bottom"},Bh=Lu("th",{scope:"col"},"FILE SYSTEM",-1),$h={key:0,scope:"col",class:"text-end w-25"},Fh={key:1,scope:"col",class:"text-end w-25"},Uh=Lu("th",{scope:"col",class:"text-end w-25"},"Total",-1),zh={scope:"row"},Hh={key:0,class:"visible-lg-inline"},Vh={scope:"row",class:"text-end"};const Gh={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const t=this.stats.map((t=>({name:t.device_name,mountPoint:t.mnt_point,percent:t.percent,size:t.size,used:t.used,free:t.free,alias:void 0!==t.alias?t.alias:null})));return(0,tf.orderBy)(t,["mnt_point"])},hasFs(){return this.fileSystems.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Wh=(0,Vm.A)(Gh,[["render",function(t,e,r,n,i,o){return o.hasFs?(wu(),Eu("section",Rh,[Lu("table",qh,[Lu("thead",null,[Lu("tr",null,[Bh,o.args.fs_free_space?(wu(),Eu("th",Fh,"Free")):(wu(),Eu("th",$h,"Used")),Uh])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.fileSystems,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",zh,[Ru(Cs(t.$filters.minSize(e.alias?e.alias:e.mountPoint,26,t.begin=!1))+" ",1),(e.alias?e.alias:e.mountPoint).length+e.name.length<=24?(wu(),Eu("span",Hh," ("+Cs(e.name)+") ",1)):Bu("v-if",!0)]),o.args.fs_free_space?(wu(),Eu("td",{key:1,scope:"row",class:ks(["text-end",o.getDecoration(e.mountPoint,"used")])},Cs(t.$filters.bytes(e.free)),3)):(wu(),Eu("td",{key:0,scope:"row",class:ks(["text-end",o.getDecoration(e.mountPoint,"used")])},Cs(t.$filters.bytes(e.used)),3)),Lu("td",Vh,Cs(t.$filters.bytes(e.size)),1)])))),128))])])])):Bu("v-if",!0)}]]),Kh={key:0,id:"gpu",class:"plugin"},Xh={class:"title gpu-name"},Qh={key:0,class:"table-responsive"},Zh=Lu("td",{class:"col"},"proc:",-1),Yh={key:1,class:"col text-end"},Jh=Lu("td",{class:"col"},"mem:",-1),tg={key:1,class:"col text-end"},eg=Lu("td",{class:"col"},"temp:",-1),rg={key:1,class:"col text-end"},ng={key:1,class:"table-responsive"},ig={class:"table table-sm table-borderless"},og={class:"col"},sg={key:1,class:"col"},ag=Lu("td",{class:"col"},"mem:",-1),lg={key:3,class:"col text-end"},cg={key:2,class:"table-responsive"},ug={class:"table table-sm table-borderless"},pg=Lu("td",{class:"col"},"proc mean:",-1),dg={key:1,class:"col"},mg=Lu("td",{class:"col"},"mem mean:",-1),fg={key:1,class:"col"},hg=Lu("td",{class:"col"},"temp mean:",-1),gg={key:1,class:"col"};const bg={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let t="GPU";const{stats:e}=this;return 1===e.length?t=e[0].name:e.length&&(t=`${e.length} GPU ${e[0].name}`),t},mean(){const t={proc:null,mem:null,temperature:null},{stats:e}=this;if(!e.length)return t;for(let r of e)t.proc+=r.proc,t.mem+=r.mem,t.temperature+=r.temperature;return t.proc=t.proc/e.length,t.mem=t.mem/e.length,t.temperature=t.temperature/e.length,t}},methods:{getDecoration(t,e){if(void 0!==this.view[t][e])return this.view[t][e].decoration.toLowerCase()},getMeanDecoration:t=>"DEFAULT"}},yg=(0,Vm.A)(bg,[["render",function(t,e,r,n,i,o){return null!=o.gpus?(wu(),Eu("section",Kh,[Lu("div",Xh,Cs(o.name),1),Bu(" single gpu "),1===o.gpus.length?(wu(),Eu("div",Qh,[(wu(!0),Eu(hu,null,Ec(o.gpus,((e,r)=>(wu(),Eu("table",{key:r,class:"table table-sm table-borderless"},[Lu("tbody",null,[Lu("tr",null,[Zh,null!=e.proc?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"proc")])},Cs(t.$filters.number(e.proc,0))+"%",3)):Bu("v-if",!0),null==e.proc?(wu(),Eu("td",Yh,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[Jh,null!=e.mem?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"mem")])},Cs(t.$filters.number(e.mem,0))+"%",3)):Bu("v-if",!0),null==e.mem?(wu(),Eu("td",tg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[eg,null!=e.temperature?(wu(),Eu("td",{key:0,class:ks(["col text-end",o.getDecoration(e.gpu_id,"temperature")])},Cs(t.$filters.number(e.temperature,0)),3)):Bu("v-if",!0),null==e.temperature?(wu(),Eu("td",rg,"N/A")):Bu("v-if",!0)])])])))),128))])):Bu("v-if",!0),Bu(" multiple gpus - one line per gpu (no mean) "),!o.args.meangpu&&o.gpus.length>1?(wu(),Eu("div",ng,[Lu("table",ig,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.gpus,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",og,Cs(e.gpu_id)+":",1),null!=e.proc?(wu(),Eu("td",{key:0,class:ks(["col",o.getDecoration(e.gpu_id,"proc")])},Cs(t.$filters.number(e.proc,0))+"%",3)):Bu("v-if",!0),null==e.proc?(wu(),Eu("td",sg,"N/A")):Bu("v-if",!0),ag,null!=e.mem?(wu(),Eu("td",{key:2,class:ks(["col text-end",o.getDecoration(e.gpu_id,"mem")])},Cs(t.$filters.number(e.mem,0))+"%",3)):Bu("v-if",!0),null==e.mem?(wu(),Eu("td",lg,"N/A")):Bu("v-if",!0)])))),128))])])])):Bu("v-if",!0),Bu(" multiple gpus - mean "),o.args.meangpu&&o.gpus.length>1?(wu(),Eu("div",cg,[Lu("table",ug,[Lu("tbody",null,[Lu("tr",null,[pg,null!=o.mean.proc?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("proc")])},Cs(t.$filters.number(o.mean.proc,0))+"% ",3)):Bu("v-if",!0),null==o.mean.proc?(wu(),Eu("td",dg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[mg,null!=o.mean.mem?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("mem")])},Cs(t.$filters.number(o.mean.mem,0))+"% ",3)):Bu("v-if",!0),null==o.mean.mem?(wu(),Eu("td",fg,"N/A")):Bu("v-if",!0)]),Lu("tr",null,[hg,null!=o.mean.temperature?(wu(),Eu("td",{key:0,class:ks(["col",o.getMeanDecoration("temperature")])},Cs(t.$filters.number(o.mean.temperature,0)),3)):Bu("v-if",!0),null==o.mean.temperature?(wu(),Eu("td",gg,"N/A")):Bu("v-if",!0)])])])])):Bu("v-if",!0)])):Bu("v-if",!0)}]]),vg={key:0,class:"plugin",id:"ip"},xg={key:0,class:"title"},wg={key:1},_g={key:2,class:"title"},kg={key:3},Ag={key:4,class:"text-truncate"};const Sg={props:{data:{type:Object}},computed:{ipStats(){return this.data.stats.ip},address(){return this.ipStats.address},gateway(){return this.ipStats.gateway},maskCdir(){return this.ipStats.mask_cidr},publicAddress(){return this.ipStats.public_address},publicInfo(){return this.ipStats.public_info_human}}},Eg=(0,Vm.A)(Sg,[["render",function(t,e,r,n,i,o){return o.address?(wu(),Eu("section",vg,[o.address?(wu(),Eu("span",xg,"IP")):Bu("v-if",!0),o.address?(wu(),Eu("span",wg,Cs(o.address)+"/"+Cs(o.maskCdir),1)):Bu("v-if",!0),o.publicAddress?(wu(),Eu("span",_g,"Pub")):Bu("v-if",!0),o.publicAddress?(wu(),Eu("span",kg,Cs(o.publicAddress),1)):Bu("v-if",!0),o.publicInfo?(wu(),Eu("span",Ag,Cs(o.publicInfo),1)):Bu("v-if",!0)])):Bu("v-if",!0)}]]),Cg={class:"plugin",id:"irq"},Tg={class:"table table-sm table-borderless margin-bottom"},Og=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"IRQ"),Lu("th",{scope:"col",class:"text-end"},"Rate/s")])],-1),Ig={scope:"row"},jg={scope:"row",class:"text-end"};const Dg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((t=>({irq_line:t.irq_line,irq_rate:t.irq_rate})))}}},Lg=(0,Vm.A)(Dg,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Cg,[Lu("table",Tg,[Og,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.irqs,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Ig,Cs(t.irq_line),1),Lu("td",jg,Cs(t.irq_rate),1)])))),128))])])])}]]),Pg={key:0,id:"load",class:"plugin"},Ng={class:"table-responsive"},Mg={class:"table table-sm table-borderless"},Rg=Lu("th",{scope:"col"},"LOAD",-1),qg={scope:"col",class:"text-end"},Bg=Lu("td",{scope:"row"},"1 min:",-1),$g={class:"text-end"},Fg=Lu("td",{scope:"row"},"5 min:",-1),Ug=Lu("td",{scope:"row"},"15 min:",-1);const zg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.load},view(){return this.data.views.load},cpucore(){return this.stats.cpucore},min1(){return this.stats.min1},min5(){return this.stats.min5},min15(){return this.stats.min15}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},Hg=(0,Vm.A)(zg,[["render",function(t,e,r,n,i,o){return null!=o.cpucore?(wu(),Eu("section",Pg,[Lu("div",Ng,[Lu("table",Mg,[Lu("thead",null,[Lu("tr",null,[Rg,Lu("td",qg,Cs(o.cpucore)+"-core",1)])]),Lu("tbody",null,[Lu("tr",null,[Bg,Lu("td",$g,Cs(t.$filters.number(o.min1,2)),1)]),Lu("tr",null,[Fg,Lu("td",{class:ks(["text-end",o.getDecoration("min5")])},Cs(t.$filters.number(o.min5,2)),3)]),Lu("tr",null,[Ug,Lu("td",{class:ks(["text-end",o.getDecoration("min15")])},Cs(t.$filters.number(o.min15,2)),3)])])])])])):Bu("v-if",!0)}]]),Vg={id:"mem",class:"plugin"},Gg={class:"table-responsive"},Wg={class:"table-sm table-borderless"},Kg={class:"justify-content-between"},Xg={scope:"col"},Qg={class:"table table-sm table-borderless"},Zg=Lu("th",{scope:"col"},"MEM",-1),Yg=Lu("td",{scope:"row"},"total:",-1),Jg={class:"text-end"},tb=Lu("td",{scope:"row"},"used:",-1),eb=Lu("td",{scope:"row"},"free:",-1),rb={class:"d-none d-xl-block d-xxl-block"},nb={class:"table table-sm table-borderless"},ib={scope:"col"},ob={scope:"col"},sb={scope:"col"},ab={scope:"col"};const lb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},view(){return this.data.views.mem},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},cb=(0,Vm.A)(lb,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Vg,[Bu(" d-none d-xxl-block "),Lu("div",Gg,[Lu("table",Wg,[Lu("tbody",null,[Lu("tr",Kg,[Lu("td",Xg,[Lu("table",Qg,[Lu("tbody",null,[Lu("tr",null,[Zg,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("percent")])},Cs(o.percent)+"%",3)]),Lu("tr",null,[Yg,Lu("td",Jg,Cs(t.$filters.bytes(o.total)),1)]),Lu("tr",null,[tb,Lu("td",{class:ks(["text-end",o.getDecoration("used")])},Cs(t.$filters.bytes(o.used,2)),3)]),Lu("tr",null,[eb,Lu("td",{class:ks(["text-end",o.getDecoration("free")])},Cs(t.$filters.bytes(o.free,2)),3)])])])]),Lu("td",null,[Lu("template",rb,[Lu("table",nb,[Lu("tbody",null,[Lu("tr",null,[Ul(Lu("td",ib," active: ",512),[[Wp,null!=o.active]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.active)),513),[[Wp,null!=o.active]])]),Lu("tr",null,[Ul(Lu("td",ob," inactive: ",512),[[Wp,null!=o.inactive]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.inactive)),513),[[Wp,null!=o.inactive]])]),Lu("tr",null,[Ul(Lu("td",sb," buffers: ",512),[[Wp,null!=o.buffers]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.buffers)),513),[[Wp,null!=o.buffers]])]),Lu("tr",null,[Ul(Lu("td",ab," cached: ",512),[[Wp,null!=o.cached]]),Ul(Lu("td",{scope:"col"},Cs(t.$filters.bytes(o.cached)),513),[[Wp,null!=o.cached]])])])])])])])])])])])}]]),ub={id:"memswap",class:"plugin"},pb={class:"table-responsive"},db={class:"table table-sm table-borderless"},mb=Lu("th",{scope:"col"},"SWAP",-1),fb=Lu("td",{scope:"row"},"total:",-1),hb={class:"text-end"},gb=Lu("td",{scope:"row"},"used:",-1),bb=Lu("td",{scope:"row"},"free:",-1),yb={class:"text-end"};const vb={props:{data:{type:Object}},computed:{stats(){return this.data.stats.memswap},view(){return this.data.views.memswap},percent(){return this.stats.percent},total(){return this.stats.total},used(){return this.stats.used},free(){return this.stats.free}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},xb=(0,Vm.A)(vb,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",ub,[Lu("div",pb,[Lu("table",db,[Lu("thead",null,[Lu("tr",null,[mb,Lu("td",{scope:"col",class:ks(["text-end",o.getDecoration("percent")])},Cs(o.percent)+"%",3)])]),Lu("tbody",null,[Lu("tr",null,[fb,Lu("td",hb,Cs(t.$filters.bytes(o.total)),1)]),Lu("tr",null,[gb,Lu("td",{class:ks(["text-end",o.getDecoration("used")])},Cs(t.$filters.bytes(o.used,2)),3)]),Lu("tr",null,[bb,Lu("td",yb,Cs(t.$filters.bytes(o.free,2)),1)])])])])])}]]),wb={key:0,class:"plugin",id:"network"},_b={class:"table table-sm table-borderless margin-bottom"},kb=Lu("th",{scope:"col"},"NETWORK",-1),Ab={scope:"col",class:"text-end w-25"},Sb={scope:"col",class:"text-end w-25"},Eb={scope:"col",class:"text-end w-25"},Cb={scope:"col",class:"text-end w-25"},Tb={scope:"col",class:"text-end w-25"},Ob={scope:"col",class:"text-end w-25"},Ib={scope:"col",class:"text-end w-25"},jb={scope:"col",class:"text-end w-25"},Db={scope:"row",class:"visible-lg-inline"},Lb={class:"text-end w-25"},Pb={class:"text-end w-25"};const Nb={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},view(){return this.data.views.network},networks(){const t=this.stats.map((t=>{const e=void 0!==t.alias?t.alias:null;return{interfaceName:t.interface_name,ifname:e||t.interface_name,bytes_recv_rate_per_sec:t.bytes_recv_rate_per_sec,bytes_sent_rate_per_sec:t.bytes_sent_rate_per_sec,bytes_all_rate_per_sec:t.bytes_all_rate_per_sec,bytes_recv:t.bytes_recv,bytes_sent:t.bytes_sent,bytes_all:t.bytes_all}})).filter((t=>!1===this.view[t.interfaceName].bytes_recv_rate_per_sec.hidden&&!1===this.view[t.interfaceName].bytes_sent_rate_per_sec.hidden));return(0,tf.orderBy)(t,["interfaceName"])},hasNetworks(){return this.networks.length>0}},methods:{getDecoration(t,e){if(null!=this.view[t][e])return this.view[t][e].decoration.toLowerCase()}}},Mb=(0,Vm.A)(Nb,[["render",function(t,e,r,n,i,o){return o.hasNetworks?(wu(),Eu("section",wb,[Lu("table",_b,[Lu("thead",null,[Lu("tr",null,[kb,Ul(Lu("th",Ab,"Rx/s",512),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Sb,"Tx/s",512),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Eb,null,512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",Cb,"Rx+Tx/s",512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",Tb,"Rx",512),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Ob,"Tx",512),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("th",Ib,null,512),[[Wp,o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("th",jb,"Rx+Tx",512),[[Wp,o.args.network_cumul&&o.args.network_sum]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.networks,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Db,Cs(e.ifname),1),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.interfaceName,"bytes_recv_rate_per_sec")])},Cs(o.args.byte?t.$filters.bytes(e.bytes_recv_rate_per_sec):t.$filters.bits(e.bytes_recv_rate_per_sec)),3),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",{class:ks(["text-end w-25",o.getDecoration(e.interfaceName,"bytes_sent_rate_per_sec")])},Cs(o.args.byte?t.$filters.bytes(e.bytes_sent_rate_per_sec):t.$filters.bits(e.bytes_sent_rate_per_sec)),3),[[Wp,!o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",Lb,null,512),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_all_rate_per_sec):t.$filters.bits(e.bytes_all_rate_per_sec)),513),[[Wp,!o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_recv):t.$filters.bits(e.bytes_recv)),513),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_sent):t.$filters.bits(e.bytes_sent)),513),[[Wp,o.args.network_cumul&&!o.args.network_sum]]),Ul(Lu("td",Pb,null,512),[[Wp,o.args.network_cumul&&o.args.network_sum]]),Ul(Lu("td",{class:"text-end w-25"},Cs(o.args.byte?t.$filters.bytes(e.bytes_all):t.$filters.bits(e.bytes_all)),513),[[Wp,o.args.network_cumul&&o.args.network_sum]])])))),128))])])])):Bu("v-if",!0)}]]),Rb={id:"now",class:"plugin"},qb={class:"table-row"},Bb={class:"table-cell text-start"};const $b={props:{data:{type:Object}},computed:{date_custom(){return this.data.stats.now.custom}}},Fb=(0,Vm.A)($b,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Rb,[Lu("div",qb,[Lu("div",Bb,Cs(o.date_custom),1)])])}]]),Ub={id:"percpu",class:"plugin"},zb={class:"table-responsive"},Hb={class:"table table-sm table-borderless"},Vb={key:0,scope:"col"},Gb={key:1,scope:"col"},Wb=Lu("td",{scope:"col"},"user",-1),Kb=Lu("td",{scope:"col"},"system",-1),Xb=Lu("td",{scope:"col"},"idle",-1),Qb=Lu("td",{scope:"col"},"iowait",-1),Zb=Lu("td",{scope:"col"},"steel",-1),Yb={key:0,scope:"col"},Jb={key:1,scope:"col"};const ty={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},percpuStats(){return this.data.stats.percpu}},methods:{getUserAlert:t=>Zd.getAlert("percpu","percpu_user_",t.user),getSystemAlert:t=>Zd.getAlert("percpu","percpu_system_",t.system),getIOWaitAlert:t=>Zd.getAlert("percpu","percpu_iowait_",t.system)}},ey=(0,Vm.A)(ty,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Ub,[Bu(" d-none d-xl-block d-xxl-block "),Lu("div",zb,[Lu("table",Hb,[Lu("thead",null,[Lu("tr",null,[o.args.disable_quicklook?(wu(),Eu("th",Vb,"CPU")):Bu("v-if",!0),o.args.disable_quicklook?(wu(),Eu("td",Gb,"total")):Bu("v-if",!0),Wb,Kb,Xb,Qb,Zb])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.percpuStats,((t,e)=>(wu(),Eu("tr",{key:e},[o.args.disable_quicklook?(wu(),Eu("td",Yb,"CPU"+Cs(t.cpu_number),1)):Bu("v-if",!0),o.args.disable_quicklook?(wu(),Eu("td",Jb,Cs(t.total)+"%",1)):Bu("v-if",!0),Lu("td",{scope:"col",class:ks(o.getUserAlert(t))},Cs(t.user)+"%",3),Lu("td",{scope:"col",class:ks(o.getSystemAlert(t))},Cs(t.system)+"%",3),Ul(Lu("td",{scope:"col"},Cs(t.idle)+"%",513),[[Wp,null!=t.idle]]),Ul(Lu("td",{scope:"col",class:ks(o.getIOWaitAlert(t))},Cs(t.iowait)+"%",3),[[Wp,null!=t.iowait]]),Ul(Lu("td",{scope:"col"},Cs(t.steal)+"%",513),[[Wp,null!=t.steal]])])))),128))])])])])}]]),ry={key:0,class:"plugin",id:"ports"},ny={class:"table table-sm table-borderless margin-bottom"},iy={scope:"row"},oy={key:0},sy={key:1},ay={key:2},ly={key:3},cy={key:0},uy={key:1},py={key:2};const dy={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats},hasPorts(){return this.ports.length>0}},methods:{getPortDecoration:t=>null===t.status?"careful":!1===t.status?"critical":null!==t.rtt_warning&&t.status>t.rtt_warning?"warning":"ok",getWebDecoration:t=>null===t.status?"careful":-1===[200,301,302].indexOf(t.status)?"critical":null!==t.rtt_warning&&t.elapsed>t.rtt_warning?"warning":"ok"}},my=(0,Vm.A)(dy,[["render",function(t,e,r,n,i,o){return o.hasPorts?(wu(),Eu("section",ry,[Lu("table",ny,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.ports,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",iy,[Bu(" prettier-ignore "),Ru(" "+Cs(t.$filters.minSize(e.description?e.description:e.host+" "+e.port,20)),1)]),e.host?(wu(),Eu("td",{key:0,scope:"row",class:ks(["text-end",o.getPortDecoration(e)])},["null"==e.status?(wu(),Eu("span",oy,"Scanning")):"false"==e.status?(wu(),Eu("span",sy,"Timeout")):"true"==e.status?(wu(),Eu("span",ay,"Open")):(wu(),Eu("span",ly,Cs(t.$filters.number(1e3*e.status,0))+"ms",1))],2)):Bu("v-if",!0),e.url?(wu(),Eu("td",{key:1,scope:"row",class:ks(["text-end",o.getPortDecoration(e)])},["null"==e.status?(wu(),Eu("span",cy,"Scanning")):"Error"==e.status?(wu(),Eu("span",uy,"Error")):(wu(),Eu("span",py,"Code "+Cs(e.status),1))],2)):Bu("v-if",!0)])))),128))])])])):Bu("v-if",!0)}]]),fy={key:0},hy={key:1},gy={key:0,class:"row"},by={class:"col-lg-18"};const yy={id:"amps",class:"plugin"},vy={class:"table table-sm table-borderless"},xy={key:0},wy=["innerHTML"];const _y={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((t=>null!==t.result))}},methods:{getNameDecoration(t){const e=t.count,r=t.countmin,n=t.countmax;let i="ok";return i=e>0?(null===r||e>=r)&&(null===n||e<=n)?"ok":"careful":null===r?"ok":"critical",i}}},ky=(0,Vm.A)(_y,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",yy,[Lu("table",vy,[Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.processes,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",{class:ks(o.getNameDecoration(e))},Cs(e.name),3),e.regex?(wu(),Eu("td",xy,Cs(e.count),1)):Bu("v-if",!0),Lu("td",{class:"process-result",innerHTML:t.$filters.nl2br(e.result)},null,8,wy)])))),128))])]),Bu('
\n
\n
\n {{ process.name }}\n
\n
{{ process.count }}
\n
\n
\n ')])}]]),Ay={class:"plugin",id:"processcount"},Sy=Lu("span",{class:"title"},"TASKS",-1),Ey={class:"title"};const Cy={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.processcount},total(){return this.stats.total||0},running(){return this.stats.running||0},sleeping(){return this.stats.sleeping||0},stopped(){return this.stats.stopped||0},thread(){return this.stats.thread||0}}},Ty=(0,Vm.A)(Cy,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Ay,[Sy,Lu("span",null,Cs(o.total)+" ("+Cs(o.thread)+" thr),",1),Lu("span",null,Cs(o.running)+" run,",1),Lu("span",null,Cs(o.sleeping)+" slp,",1),Lu("span",null,Cs(o.stopped)+" oth",1),Lu("span",null,Cs(o.args.programs?"Programs":"Threads"),1),Lu("span",Ey,Cs(r.sorter.auto?"sorted automatically":"sorted"),1),Lu("span",null,"by "+Cs(r.sorter.getColumnLabel(r.sorter.column)),1)])}]]),Oy={class:"plugin",id:"processlist"},Iy={class:"table table-sm table-borderless table-striped table-hover"},jy={scope:"col",class:"hidden-xs hidden-sm"},Dy={scope:"col",class:"hidden-xs hidden-sm"},Ly={scope:"col"},Py={scope:"row"},Ny={scope:"row",class:"table-cell widtd-60"},My={key:0,scope:"row",class:"hidden-xs hidden-sm"},Ry={key:1,scope:"row",class:"hidden-xs hidden-sm"};const qy={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:t}=this,e=this.data.stats.isWindows,r=(this.stats||[]).map((t=>(t.memvirt="?",t.memres="?",t.memory_info&&(t.memvirt=t.memory_info.vms,t.memres=t.memory_info.rss),e&&null!==t.username&&(t.username=(0,tf.last)(t.username.split("\\"))),t.timeplus="?",t.timemillis="?",t.cpu_times&&(t.timeplus=fh(t.cpu_times),t.timemillis=mh(t.cpu_times)),null===t.num_threads&&(t.num_threads=-1),null===t.cpu_percent&&(t.cpu_percent=-1),null===t.memory_percent&&(t.memory_percent=-1),t.io_read=null,t.io_write=null,t.io_counters&&(t.io_read=(t.io_counters[0]-t.io_counters[2])/t.time_since_update,t.io_write=(t.io_counters[1]-t.io_counters[3])/t.time_since_update),t.isNice=void 0!==t.nice&&(e&&32!=t.nice||!e&&0!=t.nice),Array.isArray(t.cmdline)&&(t.cmdline=t.cmdline.join(" ").replace(/\n/g," ")),null!==t.cmdline&&0!==t.cmdline.length||(t.cmdline=t.name),t)));return(0,tf.orderBy)(r,[t.column].reduce(((t,e)=>("io_counters"===e&&(e=["io_read","io_write"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:t})=>t))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:t=>Zd.getAlert("processlist","processlist_cpu_",t.cpu_percent),getMemoryPercentAlert:t=>Zd.getAlert("processlist","processlist_mem_",t.cpu_percent),getDisableStats:()=>Zd.getLimit("processlist","processlist_disable_stats")||[]}},By={components:{GlancesPluginAmps:ky,GlancesPluginProcesscount:Ty,GlancesPluginProcesslist:(0,Vm.A)(qy,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Oy,[Lu("table",Iy,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",{scope:"col",class:ks(["sortable","cpu_percent"===r.sorter.column&&"sort"]),onClick:e[0]||(e[0]=e=>t.$emit("update:sorter","cpu_percent"))}," CPU% ",2),[[Wp,!o.getDisableStats().includes("cpu_percent")]]),Ul(Lu("td",{scope:"col",class:ks(["sortable","memory_percent"===r.sorter.column&&"sort"]),onClick:e[1]||(e[1]=e=>t.$emit("update:sorter","memory_percent"))}," MEM% ",2),[[Wp,!o.getDisableStats().includes("memory_percent")]]),Ul(Lu("td",jy," VIRT ",512),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",Dy," RES ",512),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",Ly," PID ",512),[[Wp,!o.getDisableStats().includes("pid")]]),Ul(Lu("td",{scope:"row",class:ks(["sortable","username"===r.sorter.column&&"sort"]),onClick:e[2]||(e[2]=e=>t.$emit("update:sorter","username"))}," USER ",2),[[Wp,!o.getDisableStats().includes("username")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","timemillis"===r.sorter.column&&"sort"]]),onClick:e[3]||(e[3]=e=>t.$emit("update:sorter","timemillis"))}," TIME+ ",2),[[Wp,!o.getDisableStats().includes("cpu_times")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","num_threads"===r.sorter.column&&"sort"]]),onClick:e[4]||(e[4]=e=>t.$emit("update:sorter","num_threads"))}," THR ",2),[[Wp,!o.getDisableStats().includes("num_threads")]]),Ul(Lu("td",Py,"NI",512),[[Wp,!o.getDisableStats().includes("nice")]]),Ul(Lu("td",Ny,"S ",512),[[Wp,!o.getDisableStats().includes("status")]]),Ul(Lu("td",{scope:"row",class:ks(["hidden-xs hidden-sm",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[5]||(e[5]=e=>t.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:ks(["text-start hidden-xs hidden-sm",["sortable","io_counters"===r.sorter.column&&"sort"]]),onClick:e[6]||(e[6]=e=>t.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:ks(["sortable","name"===r.sorter.column&&"sort"]),onClick:e[7]||(e[7]=e=>t.$emit("update:sorter","name"))}," Command ",2),[[Wp,!o.getDisableStats().includes("cmdline")]])])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.processes,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",{scope:"row",class:ks(o.getCpuPercentAlert(e))},Cs(-1==e.cpu_percent?"?":t.$filters.number(e.cpu_percent,1)),3),[[Wp,!o.getDisableStats().includes("cpu_percent")]]),Ul(Lu("td",{scope:"row",class:ks(o.getMemoryPercentAlert(e))},Cs(-1==e.memory_percent?"?":t.$filters.number(e.memory_percent,1)),3),[[Wp,!o.getDisableStats().includes("memory_percent")]]),Ul(Lu("td",{scope:"row"},Cs(t.$filters.bytes(e.memvirt)),513),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",{scope:"row"},Cs(t.$filters.bytes(e.memres)),513),[[Wp,!o.getDisableStats().includes("memory_info")]]),Ul(Lu("td",{scope:"row"},Cs(e.pid),513),[[Wp,!o.getDisableStats().includes("pid")]]),Ul(Lu("td",{scope:"row"},Cs(e.username),513),[[Wp,!o.getDisableStats().includes("username")]]),"?"!=e.timeplus?Ul((wu(),Eu("td",My,[Ul(Lu("span",{class:"highlight"},Cs(e.timeplus.hours)+"h",513),[[Wp,e.timeplus.hours>0]]),Ru(" "+Cs(t.$filters.leftPad(e.timeplus.minutes,2,"0"))+":"+Cs(t.$filters.leftPad(e.timeplus.seconds,2,"0"))+" ",1),Ul(Lu("span",null,"."+Cs(t.$filters.leftPad(e.timeplus.milliseconds,2,"0")),513),[[Wp,e.timeplus.hours<=0]])],512)),[[Wp,!o.getDisableStats().includes("cpu_times")]]):Bu("v-if",!0),"?"==e.timeplus?Ul((wu(),Eu("td",Ry,"?",512)),[[Wp,!o.getDisableStats().includes("cpu_times")]]):Bu("v-if",!0),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(-1==e.num_threads?"?":e.num_threads),513),[[Wp,!o.getDisableStats().includes("num_threads")]]),Ul(Lu("td",{scope:"row",class:ks({nice:e.isNice})},Cs(t.$filters.exclamation(e.nice)),3),[[Wp,!o.getDisableStats().includes("nice")]]),Ul(Lu("td",{scope:"row",class:ks({status:"R"==e.status})},Cs(e.status),3),[[Wp,!o.getDisableStats().includes("status")]]),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(t.$filters.bytes(e.io_read)),513),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:"hidden-xs hidden-sm"},Cs(t.$filters.bytes(e.io_write)),513),[[Wp,o.ioReadWritePresent&&!o.getDisableStats().includes("io_counters")]]),Ul(Lu("td",{scope:"row",class:"text-truncate"},Cs(e.name),513),[[Wp,o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]]),Ul(Lu("td",{scope:"row"},Cs(e.cmdline),513),[[Wp,!o.args.process_short_name&&!o.getDisableStats().includes("cmdline")]])])))),128))])])])}]])},props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["username","name"].includes(t)},getColumnLabel:function(t){return{cpu_percent:"CPU consumption",memory_percent:"memory consumption",username:"user name",timemillis:"process time",cpu_times:"process time",io_counters:"disk IO",name:"process name",None:"None"}[t]||t}})}}}},$y=(0,Vm.A)(By,[["render",function(t,e,r,n,i,o){const s=_c("glances-plugin-processcount"),a=_c("glances-plugin-amps"),l=_c("glances-plugin-processlist");return o.args.disable_process?(wu(),Eu("div",fy,"PROCESSES DISABLED (press 'z' to display)")):(wu(),Eu("div",hy,[Pu(s,{sorter:i.sorter,data:r.data},null,8,["sorter","data"]),o.args.disable_amps?Bu("v-if",!0):(wu(),Eu("div",gy,[Lu("div",by,[Pu(a,{data:r.data},null,8,["data"])])])),Pu(l,{sorter:i.sorter,data:r.data,"onUpdate:sorter":e[0]||(e[0]=t=>o.args.sort_processes_key=t)},null,8,["sorter","data"])]))}]]),Fy={id:"quicklook",class:"plugin"},Uy={class:"d-flex justify-content-between"},zy={class:"text-start text-truncate"},Hy={key:0,class:"text-end d-none d-xxl-block"},Vy={class:"table-responsive"},Gy={class:"table table-sm table-borderless"},Wy={key:0},Ky=Lu("td",{scope:"col"},"CPU",-1),Xy={scope:"col",class:"progress"},Qy=["aria-valuenow"],Zy={scope:"col",class:"text-end"},Yy={scope:"col"},Jy={scope:"col",class:"progress"},tv=["aria-valuenow"],ev={scope:"col",class:"text-end"},rv={scope:"col"},nv={scope:"col",class:"progress"},iv=["aria-valuenow"],ov={scope:"col",class:"text-end"};const sv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return(this.stats.cpu_hz_current/1e6).toFixed(0)},cpu_hz(){return(this.stats.cpu_hz/1e6).toFixed(0)},percpus(){var t=this.stats.percpu.map((({cpu_number:t,total:e})=>({number:t,total:e}))),e=parseInt(this.config.percpu.max_cpu_display);if(this.stats.percpu.length>e){var r=t.sort((function(t,e){return e.total-t.total})),n={number:"x",total:Number((r.slice(e).reduce(((t,{total:e})=>t+e),0)/(this.stats.percpu.length-e)).toFixed(1))};(r=r.slice(0,e)).push(n)}return this.stats.percpu.length<=e?t:r},stats_list_after_cpu(){return this.view.list.filter((t=>!t.includes("cpu")))}},methods:{getDecoration(t){if(void 0!==this.view[t])return this.view[t].decoration.toLowerCase()}}},av=(0,Vm.A)(sv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Fy,[Lu("div",Uy,[Lu("span",zy,Cs(o.cpu_name),1),o.cpu_hz_current?(wu(),Eu("span",Hy,Cs(o.cpu_hz_current)+"/"+Cs(o.cpu_hz)+"Ghz ",1)):Bu("v-if",!0)]),Lu("div",Vy,[Lu("table",Gy,[o.args.percpu?Bu("v-if",!0):(wu(),Eu("tr",Wy,[Ky,Lu("td",Xy,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":o.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${o.cpu}%;`)},"   ",14,Qy)]),Lu("td",Zy,Cs(o.cpu)+"%",1)])),o.args.percpu?(wu(!0),Eu(hu,{key:1},Ec(o.percpus,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Yy,"CPU"+Cs(t.number),1),Lu("td",Jy,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":t.total,"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${t.total}%;`)},"   ",14,tv)]),Lu("td",ev,Cs(t.total)+"%",1)])))),128)):Bu("v-if",!0),(wu(!0),Eu(hu,null,Ec(o.stats_list_after_cpu,(t=>(wu(),Eu("tr",null,[Lu("td",rv,Cs(t.toUpperCase()),1),Lu("td",nv,[Lu("div",{class:ks(`progress-bar progress-bar-${o.getDecoration(t)}`),role:"progressbar","aria-valuenow":o.stats[t],"aria-valuemin":"0","aria-valuemax":"100",style:ys(`width: ${o.stats[t]}%;`)},"   ",14,iv)]),Lu("td",ov,Cs(o.stats[t])+"%",1)])))),256))])])])}]]),lv={key:0,class:"plugin",id:"raid"},cv={class:"table table-sm table-borderless margin-bottom"},uv={scope:"col"},pv=Lu("th",{scope:"col",class:"text-end"},"Used",-1),dv=Lu("th",{scope:"col",class:"text-end"},"Total",-1),mv={scope:"row"},fv={class:"warning"};const hv={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const t=Object.entries(this.stats).map((([t,e])=>{const r=Object.entries(e.components).map((([t,e])=>({number:e,name:t})));return{name:t,type:null==e.type?"UNKNOWN":e.type,used:e.used,available:e.available,status:e.status,degraded:e.used0}},methods:{getAlert:t=>t.inactive?"critical":t.degraded?"warning":"ok"}},gv=(0,Vm.A)(hv,[["render",function(t,e,r,n,i,o){return o.hasDisks?(wu(),Eu("section",lv,[Lu("table",cv,[Lu("thead",null,[Lu("tr",null,[Lu("th",uv,"RAID disks "+Cs(o.disks.length),1),pv,dv])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.disks,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",mv,[Ru(Cs(t.type.toUpperCase())+" "+Cs(t.name)+" ",1),Ul(Lu("div",fv,"└─ Degraded mode",512),[[Wp,t.degraded]]),Ul(Lu("div",null,"   └─ "+Cs(t.config),513),[[Wp,t.degraded]]),Ul(Lu("div",{class:"critical"},"└─ Status "+Cs(t.status),513),[[Wp,t.inactive]]),t.inactive?(wu(!0),Eu(hu,{key:0},Ec(t.components,((e,r)=>(wu(),Eu("div",{key:r},"    "+Cs(r===t.components.length-1?"└─":"├─")+" disk "+Cs(e.number)+": "+Cs(e.name),1)))),128)):Bu("v-if",!0)]),Ul(Lu("td",{scope:"row",class:ks(["text-end",o.getAlert(t)])},Cs(t.used),3),[[Wp,"active"==t.status]]),Ul(Lu("td",{scope:"row",class:ks(["text-end",o.getAlert(t)])},Cs(t.available),3),[[Wp,"active"==t.status]])])))),128))])])])):Bu("v-if",!0)}]]),bv={key:0,id:"smart",class:"plugin"},yv={class:"table table-sm table-borderless margin-bottom"},vv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"SMART DISKS"),Lu("th",{scope:"col",class:"text-end"})])],-1),xv={scope:"row"},wv=Lu("td",{scope:"col",class:"text-end"},null,-1),_v={scope:"row"},kv={scope:"row",class:"text-end text-truncate"};const Av={props:{data:{type:Object}},computed:{stats(){return this.data.stats.smart},drives(){return(Array.isArray(this.stats)?this.stats:[]).map((t=>{const e=t.DeviceName,r=Object.entries(t).filter((([t])=>"DeviceName"!==t)).sort((([,t],[,e])=>t.namee.name?1:0)).map((([t,e])=>e));return{name:e,details:r}}))},hasDrives(){return this.drives.length>0}}},Sv=(0,Vm.A)(Av,[["render",function(t,e,r,n,i,o){return o.hasDrives?(wu(),Eu("section",bv,[Lu("table",yv,[vv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.drives,((t,e)=>(wu(),Eu(hu,{key:e},[Lu("tr",null,[Lu("td",xv,Cs(t.name),1),wv]),(wu(!0),Eu(hu,null,Ec(t.details,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",_v,Cs(t.name),1),Lu("td",kv,Cs(t.raw),1)])))),128))],64)))),128))])])])):Bu("v-if",!0)}]]),Ev={key:0,class:"plugin",id:"sensors"},Cv={class:"table table-sm table-borderless"},Tv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"SENSORS"),Lu("th",{scope:"col",class:"text-end"})])],-1),Ov={scope:"row"};const Iv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},view(){return this.data.views.sensors},sensors(){return this.stats.map((t=>(this.args.fahrenheit&&"battery"!=t.type&&"fan_speed"!=t.type&&(t.value=parseFloat(1.8*t.value+32).toFixed(1),t.unit="F"),t)))},hasSensors(){return this.sensors.length>0}},methods:{getDecoration(t){if(void 0!==this.view[t].value.decoration)return this.view[t].value.decoration.toLowerCase()}}},jv=(0,Vm.A)(Iv,[["render",function(t,e,r,n,i,o){return o.hasSensors?(wu(),Eu("section",Ev,[Lu("table",Cv,[Tv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.sensors,((t,e)=>(wu(),Eu("tr",{key:e},[Lu("td",Ov,Cs(t.label),1),Lu("td",{class:ks(["text-end",o.getDecoration(t.label)])},Cs(t.value)+Cs(t.unit),3)])))),128))])])])):Bu("v-if",!0)}]]),Dv={class:"plugin",id:"system"},Lv={key:0,class:"critical"},Pv={class:"title"};const Nv={props:{data:{type:Object}},data:()=>({store:Kd}),computed:{stats(){return this.data.stats.system},hostname(){return this.stats.hostname},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},Mv=(0,Vm.A)(Nv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Dv,[o.isDisconnected?(wu(),Eu("span",Lv,"Disconnected from")):Bu("v-if",!0),Lu("span",Pv,Cs(o.hostname),1),Lu("span",null,Cs(o.humanReadableName),1)])}]]),Rv={class:"plugin",id:"uptime"};const qv={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Bv=(0,Vm.A)(qv,[["render",function(t,e,r,n,i,o){return wu(),Eu("section",Rv,[Lu("span",null,"Uptime: "+Cs(o.value),1)])}]]),$v={key:0,class:"plugin",id:"vms"},Fv=Lu("span",{class:"title"},"VMs",-1),Uv={class:"table table-sm table-borderless table-striped table-hover"},zv=Lu("td",null,"Status",-1),Hv=Lu("td",null,"Core",-1),Vv=Lu("td",null,"/ MAX",-1),Gv=Lu("td",null,"Release",-1);const Wv={props:{data:{type:Object}},data:()=>({store:Kd,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.vms},views(){return this.data.views.vms},vms(){const{sorter:t}=this,e=(this.stats||[]).map((t=>({id:t.id,name:t.name,status:null!=t.status?t.status:"?",cpu_count:null!=t.cpu_count?t.cpu_count:"?",memory_usage:null!=t.memory_usage?t.memory_usage:"?",memory_total:null!=t.memory_total?t.memory_total:"?",load_1min:null!=t.load_1min?t.load_1min:"?",load_5min:null!=t.load_5min?t.load_5min:"?",load_15min:null!=t.load_15min?t.load_15min:"?",release:t.release,image:t.image,engine:t.engine,engine_version:t.engine_version})));return(0,tf.orderBy)(e,[t.column].reduce(((t,e)=>("memory_usage"===e&&(e=["memory_usage"]),t.concat(e))),[]),[t.isReverseColumn(t.column)?"desc":"asc"])},showEngine(){return this.views.show_engine_name}},watch:{sortProcessesKey:{immediate:!0,handler(t){t&&!["load_1min","memory_usage","name"].includes(t)||(this.sorter={column:this.args.sort_processes_key||"load_1min",auto:!this.args.sort_processes_key,isReverseColumn:function(t){return!["name"].includes(t)},getColumnLabel:function(t){return{load_1min:"load",memory_usage:"memory consumption",name:"VM name",None:"None"}[t]||t}})}}}},Kv=(0,Vm.A)(Wv,[["render",function(t,e,r,n,i,o){return o.vms.length?(wu(),Eu("section",$v,[Fv,Ul(Lu("span",null,Cs(o.vms.length)+" sorted by "+Cs(i.sorter.getColumnLabel(i.sorter.column)),513),[[Wp,o.vms.length>1]]),Lu("table",Uv,[Lu("thead",null,[Lu("tr",null,[Ul(Lu("td",null,"Engine",512),[[Wp,o.showEngine]]),Lu("td",{class:ks(["sortable","name"===i.sorter.column&&"sort"]),onClick:e[0]||(e[0]=t=>o.args.sort_processes_key="name")}," Name ",2),zv,Hv,Lu("td",{class:ks(["sortable","memory_usage"===i.sorter.column&&"sort"]),onClick:e[1]||(e[1]=t=>o.args.sort_processes_key="memory_usage")}," MEM ",2),Vv,Lu("td",{class:ks(["sortable","load_1min"===i.sorter.column&&"sort"]),onClick:e[2]||(e[2]=t=>o.args.sort_processes_key="load_1min")}," LOAD 1/5/15min ",2),Gv])]),Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.vms,((e,r)=>(wu(),Eu("tr",{key:r},[Ul(Lu("td",null,Cs(e.engine),513),[[Wp,o.showEngine]]),Lu("td",null,Cs(e.name),1),Lu("td",{class:ks("stopped"==e.status?"careful":"ok")},Cs(e.status),3),Lu("td",null,Cs(t.$filters.number(e.cpu_count,1)),1),Lu("td",null,Cs(t.$filters.bytes(e.memory_usage)),1),Lu("td",null," / "+Cs(t.$filters.bytes(e.memory_total)),1),Lu("td",null,Cs(t.$filters.number(e.load_1min))+"/"+Cs(t.$filters.number(e.load_5min))+"/"+Cs(t.$filters.number(e.load_15min)),1),Lu("td",null,Cs(e.release),1)])))),128))])])])):Bu("v-if",!0)}]]),Xv={key:0,class:"plugin",id:"wifi"},Qv={class:"table table-sm table-borderless margin-bottom"},Zv=Lu("thead",null,[Lu("tr",null,[Lu("th",{scope:"col"},"WIFI"),Lu("th",{scope:"col",class:"text-end"},"dBm")])],-1),Yv={scope:"row"};const Jv={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const t=this.stats.map((t=>{if(""!==t.ssid)return{ssid:t.ssid,quality_level:t.quality_level}})).filter(Boolean);return(0,tf.orderBy)(t,["ssid"])},hasHotpots(){return this.hotspots.length>0}},methods:{getDecoration(t,e){if(void 0!==this.view[t.ssid][e])return this.view[t.ssid][e].decoration.toLowerCase()}}},tx=(0,Vm.A)(Jv,[["render",function(t,e,r,n,i,o){return o.hasHotpots?(wu(),Eu("section",Xv,[Lu("table",Qv,[Zv,Lu("tbody",null,[(wu(!0),Eu(hu,null,Ec(o.hotspots,((e,r)=>(wu(),Eu("tr",{key:r},[Lu("td",Yv,Cs(t.$filters.limitTo(e.ssid,20)),1),Lu("td",{scope:"row",class:ks(["text-end",o.getDecoration(e,"quality_level")])},Cs(e.quality_level),3)])))),128))])])])):Bu("v-if",!0)}]]),ex=JSON.parse('{"H":["network","ports","wifi","connections","diskio","fs","irq","folders","raid","smart","sensors"]}'),rx={components:{GlancesHelp:Gm,GlancesPluginAlert:rf,GlancesPluginCloud:af,GlancesPluginConnections:wf,GlancesPluginCpu:Kf,GlancesPluginDiskio:gh,GlancesPluginContainers:Oh,GlancesPluginFolders:Mh,GlancesPluginFs:Wh,GlancesPluginGpu:yg,GlancesPluginIp:Eg,GlancesPluginIrq:Lg,GlancesPluginLoad:Hg,GlancesPluginMem:cb,GlancesPluginMemswap:xb,GlancesPluginNetwork:Mb,GlancesPluginNow:Fb,GlancesPluginPercpu:ey,GlancesPluginPorts:my,GlancesPluginProcess:$y,GlancesPluginQuicklook:av,GlancesPluginRaid:gv,GlancesPluginSensors:jv,GlancesPluginSmart:Sv,GlancesPluginSystem:Mv,GlancesPluginUptime:Bv,GlancesPluginVms:Kv,GlancesPluginWifi:tx},data:()=>({store:Kd}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},data(){return this.store.data||{}},dataLoaded(){return void 0!==this.store.data},hasGpu(){return this.store.data.stats.gpu.length>0},isLinux(){return this.store.data.isLinux},title(){const{data:t}=this,e=t.stats&&t.stats.system&&t.stats.system.hostname||"";return e?`${e} - Glances`:"Glances"},leftMenu(){return void 0!==this.config.outputs&&void 0!==this.config.outputs.left_menu?this.config.outputs.left_menu.split(","):ex.H}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){Hd("a",(()=>{this.store.args.sort_processes_key=null})),Hd("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Hd("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Hd("u",(()=>{this.store.args.sort_processes_key="username"})),Hd("p",(()=>{this.store.args.sort_processes_key="name"})),Hd("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Hd("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Hd("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Hd("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Hd("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Hd("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Hd("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Hd("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Hd("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Hd("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Hd("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Hd("shift+S",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Hd("shift+D",(()=>{this.store.args.disable_containers=!this.store.args.disable_containers})),Hd("b",(()=>{this.store.args.byte=!this.store.args.byte})),Hd("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),Hd("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Hd("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Hd("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Hd("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Hd("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Hd("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Hd("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Hd("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Hd("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Hd("5",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook,this.store.args.disable_cpu=!this.store.args.disable_cpu,this.store.args.disable_mem=!this.store.args.disable_mem,this.store.args.disable_memswap=!this.store.args.disable_memswap,this.store.args.disable_load=!this.store.args.disable_load,this.store.args.disable_gpu=!this.store.args.disable_gpu})),Hd("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Hd("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Hd("shift+V",(()=>{this.store.args.disable_vms=!this.store.args.disable_vms})),Hd("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const t=window.__GLANCES__||{},e=isFinite(t["refresh-time"])?parseInt(t["refresh-time"],10):void 0;Yd.init(e),this.setupHotKeys()},beforeUnmount(){Hd.unbind()}};const nx=((...t)=>{const e=Zp().createApp(...t);const{mount:r}=e;return e.mount=t=>{const n=Yp(t);if(!n)return;const i=e._component;Wo(i)||i.render||i.template||(i.template=n.innerHTML),n.innerHTML="";const o=r(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e})((0,Vm.A)(rx,[["render",function(t,e,r,n,i,o){const s=_c("glances-help"),a=_c("glances-plugin-system"),l=_c("glances-plugin-ip"),c=_c("glances-plugin-now"),u=_c("glances-plugin-uptime"),p=_c("glances-plugin-cloud"),d=_c("glances-plugin-quicklook"),m=_c("glances-plugin-cpu"),f=_c("glances-plugin-gpu"),h=_c("glances-plugin-mem"),g=_c("glances-plugin-memswap"),b=_c("glances-plugin-load"),y=_c("glances-plugin-vms"),v=_c("glances-plugin-containers"),x=_c("glances-plugin-process"),w=_c("glances-plugin-alert");return o.dataLoaded?o.args.help_tag?(wu(),Cu(s,{key:1})):(wu(),Eu("main",ed,[Lu("div",rd,[Lu("div",nd,[o.args.disable_system?Bu("v-if",!0):(wu(),Eu("div",id,[Pu(a,{data:o.data},null,8,["data"])])),o.args.disable_ip?Bu("v-if",!0):(wu(),Eu("div",od,[Pu(l,{data:o.data},null,8,["data"])])),o.args.disable_now?Bu("v-if",!0):(wu(),Eu("div",sd,[Pu(c,{data:o.data},null,8,["data"])])),o.args.disable_uptime?Bu("v-if",!0):(wu(),Eu("div",ad,[Pu(u,{data:o.data},null,8,["data"])]))]),o.args.disable_cloud?Bu("v-if",!0):(wu(),Eu("div",ld,[Lu("div",cd,[Pu(p,{data:o.data},null,8,["data"])])]))]),o.args.enable_separator?(wu(),Eu("div",ud)):Bu("v-if",!0),Lu("div",pd,[Lu("div",dd,[Bu(" Quicklook "),o.args.disable_quicklook?Bu("v-if",!0):(wu(),Eu("div",md,[Pu(d,{data:o.data},null,8,["data"])])),Bu(" CPU "),o.args.disable_cpu&&o.args.percpu?Bu("v-if",!0):(wu(),Eu("div",fd,[Pu(m,{data:o.data},null,8,["data"])])),Bu(' TODO: percpu need to be refactor\n
\n \n
\n
\n \n
'),Bu(" GPU "),!o.args.disable_gpu&&o.hasGpu?(wu(),Eu("div",hd,[Pu(f,{data:o.data},null,8,["data"])])):Bu("v-if",!0),Bu(" MEM "),o.args.disable_mem?Bu("v-if",!0):(wu(),Eu("div",gd,[Pu(h,{data:o.data},null,8,["data"])])),Bu(" SWAP "),o.args.disable_memswap?Bu("v-if",!0):(wu(),Eu("div",bd,[Pu(g,{data:o.data},null,8,["data"])])),Bu(" LOAD "),o.args.disable_load?Bu("v-if",!0):(wu(),Eu("div",yd,[Pu(b,{data:o.data},null,8,["data"])]))])]),o.args.enable_separator?(wu(),Eu("div",vd)):Bu("v-if",!0),Lu("div",xd,[Lu("div",wd,[o.args.disable_left_sidebar?Bu("v-if",!0):(wu(),Eu("div",_d,[(wu(!0),Eu(hu,null,Ec(o.leftMenu,(t=>{return wu(),Eu(hu,null,[o.args[`disable_${t}`]?Bu("v-if",!0):(wu(),Cu((e=`glances-plugin-${t}`,Ko(e)?Ac(wc,e,!1)||e:e||kc),{key:0,id:`plugin-${t}`,class:"plugin",data:o.data},null,8,["id","data"]))],64);var e})),256))])),Lu("div",kd,[o.args.disable_vms?Bu("v-if",!0):(wu(),Cu(y,{key:0,data:o.data},null,8,["data"])),o.args.disable_containers?Bu("v-if",!0):(wu(),Cu(v,{key:1,data:o.data},null,8,["data"])),Pu(x,{data:o.data},null,8,["data"]),o.args.disable_alert?Bu("v-if",!0):(wu(),Cu(w,{key:2,data:o.data},null,8,["data"]))])])])])):(wu(),Eu("div",Jp,td))}]]));nx.config.globalProperties.$filters=e,nx.mount("#app")})()})(); \ No newline at end of file