diff --git a/glances/outputs/static/js/App.vue b/glances/outputs/static/js/App.vue index 576d381393..c6c7cfbc69 100644 --- a/glances/outputs/static/js/App.vue +++ b/glances/outputs/static/js/App.vue @@ -127,10 +127,10 @@
- + > Sort processes/docker automatically + // a => Sort processes/containers automatically hotkeys('a', () => { this.store.args.sort_processes_key = null; }); - // c => Sort processes/docker by CPU% + // c => Sort processes/containers by CPU% hotkeys('c', () => { this.store.args.sort_processes_key = 'cpu_percent'; }); - // m => Sort processes/docker by MEM% + // m => Sort processes/containers by MEM% hotkeys('m', () => { this.store.args.sort_processes_key = 'memory_percent'; }); - // u => Sort processes/docker by user + // u => Sort processes/containers by user hotkeys('u', () => { this.store.args.sort_processes_key = 'username'; }); - // p => Sort processes/docker by name + // p => Sort processes/containers by name hotkeys('p', () => { this.store.args.sort_processes_key = 'name'; }); - // i => Sort processes/docker by I/O rate + // i => Sort processes/containers by I/O rate hotkeys('i', () => { this.store.args.sort_processes_key = 'io_counters'; }); - // t => Sort processes/docker by time + // t => Sort processes/containers by time hotkeys('t', () => { this.store.args.sort_processes_key = 'timemillis'; }); @@ -331,9 +331,9 @@ export default { this.store.args.process_short_name = !this.store.args.process_short_name; }); - // D => Enable/disable Docker stats + // D => Enable/disable containers stats hotkeys('shift+D', () => { - this.store.args.disable_docker = !this.store.args.disable_docker; + this.store.args.disable_containers = !this.store.args.disable_containers; }); // b => Bytes or bits for network I/O diff --git a/glances/outputs/static/js/components/help.vue b/glances/outputs/static/js/components/help.vue index 6a77d98bda..468f1a1c23 100644 --- a/glances/outputs/static/js/components/help.vue +++ b/glances/outputs/static/js/components/help.vue @@ -61,7 +61,7 @@ {{ help.sort_io_rate }}
- {{ help.show_hide_docker }} + {{ help.show_hide_containers }}
{{ help.toggle_used_free }} diff --git a/glances/outputs/static/js/components/plugin-docker.vue b/glances/outputs/static/js/components/plugin-containers.vue similarity index 93% rename from glances/outputs/static/js/components/plugin-docker.vue rename to glances/outputs/static/js/components/plugin-containers.vue index de3468abdf..0ad9adfd1d 100644 --- a/glances/outputs/static/js/components/plugin-docker.vue +++ b/glances/outputs/static/js/components/plugin-containers.vue @@ -4,6 +4,8 @@ {{ containers.length }} sorted by {{ sorter.getColumnLabel(sorter.column) }}
+
Engine
+
Pod
+
{{ container.engine }}
+
{{ container.pod_id || '-' }}
{{ container.name }}
{{ container.status }} @@ -99,7 +103,7 @@ export default { return this.args.sort_processes_key; }, stats() { - return this.data.stats['docker']; + return this.data.stats['containers']; }, containers() { const { sorter } = this; @@ -120,7 +124,9 @@ export default { 'tx': containerData.network.tx != undefined ? containerData.network.tx : '?', 'net_time_since_update': containerData.network.time_since_update, 'command': containerData.Command.join(' '), - 'image': containerData.Image + 'image': containerData.Image, + 'engine': containerData.engine, + 'pod_id': containerData.pod_id }; }); return orderBy( diff --git a/glances/outputs/static/public/glances.js b/glances/outputs/static/public/glances.js index 59a13a8a08..d5f8233ba7 100644 --- a/glances/outputs/static/public/glances.js +++ b/glances/outputs/static/public/glances.js @@ -28,4 +28,4 @@ function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object * http://jaywcjlove.github.io/hotkeys * Licensed under the MIT license */ -var oo="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function ao(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function lo(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var uo={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,"-":oo?173:189,"=":oo?61:187,";":oo?59:186,"'":222,"[":219,"]":221,"\\":220},fo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},po={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ho={16:!1,18:!1,17:!1,91:!1},go={},mo=1;mo<20;mo++)uo["f".concat(mo)]=111+mo;var bo=[],vo=!1,yo="all",wo=[],xo=function(e){return uo[e.toLowerCase()]||fo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function _o(e){yo=e||"all"}function ko(){return yo||"all"}var Co=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,s=void 0===i?"+":i;co(t).forEach((function(e){var t=e.split(s),i=t.length,o=t[i-1],a="*"===o?"*":xo(o);if(go[a]){n||(n=ko());var l=i>1?lo(fo,t):[];go[a]=go[a].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s0,ho)Object.prototype.hasOwnProperty.call(ho,s)&&(!ho[s]&&t.mods.indexOf(+s)>-1||ho[s]&&-1===t.mods.indexOf(+s))&&(i=!1);(0!==t.mods.length||ho[16]||ho[18]||ho[17]||ho[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function So(e,t){var n=go["*"],r=e.keyCode||e.which||e.charCode;if(Ao.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===bo.indexOf(r)&&229!==r&&bo.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=po[t];e[t]&&-1===bo.indexOf(n)?bo.push(n):!e[t]&&bo.indexOf(n)>-1?bo.splice(bo.indexOf(n),1):"metaKey"===t&&e[t]&&3===bo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(bo=bo.slice(bo.indexOf(n))))})),r in ho){for(var i in ho[r]=!0,fo)fo[i]===r&&(Ao[i]=!0);if(!n)return}for(var s in ho)Object.prototype.hasOwnProperty.call(ho,s)&&(ho[s]=e[po[s]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===bo.indexOf(17)&&bo.push(17),-1===bo.indexOf(18)&&bo.push(18),ho[17]=!0,ho[18]=!0);var o=ko();if(n)for(var a=0;a1&&(i=lo(fo,e)),(e="*"===(e=e[e.length-1])?"*":xo(e))in go||(go[e]=[]),go[e].push({keyup:l,keydown:c,scope:s,mods:i,shortcut:r[a],method:n,key:r[a],splitKey:u,element:o});void 0!==o&&!function(e){return wo.indexOf(e)>-1}(o)&&window&&(wo.push(o),ao(o,"keydown",(function(e){So(e,o)}),d),vo||(vo=!0,ao(window,"focus",(function(){bo=[]}),d)),ao(o,"keyup",(function(e){So(e,o),function(e){var t=e.keyCode||e.which||e.charCode,n=bo.indexOf(t);if(n>=0&&bo.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&bo.splice(0,bo.length),93!==t&&224!==t||(t=91),t in ho)for(var r in ho[t]=!1,fo)fo[r]===t&&(Ao[r]=!1)}(e)}),d))}var Eo={getPressedKeyString:function(){return bo.map((function(e){return t=e,Object.keys(uo).find((function(e){return uo[e]===t}))||function(e){return Object.keys(fo).find((function(t){return fo[t]===e}))}(e)||String.fromCharCode(e);var t}))},setScope:_o,getScope:ko,deleteScope:function(e,t){var n,r;for(var i in e||(e=ko()),go)if(Object.prototype.hasOwnProperty.call(go,i))for(n=go[i],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(go).forEach((function(n){go[n].filter((function(n){return n.scope===t&&n.shortcut===e})).forEach((function(e){e&&e.method&&e.method()}))}))},unbind:function(e){if(void 0===e)Object.keys(go).forEach((function(e){return delete go[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&Co(e)}));else if("object"==typeof e)e.key&&Co(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=this.limits[e][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+s}}return"ok"+s}getAlertLog(e,t,n,r){return this.getAlert(e,t,n,r,!0)}};const Do=new class{data=void 0;init(e=60){let t;const n=()=>(Po.status="PENDING",Promise.all([fetch("api/3/all",{method:"GET"}).then((e=>e.json())),fetch("api/3/all/views",{method:"GET"}).then((e=>e.json()))]).then((e=>{const t={stats:e[0],views:e[1],isBsd:"FreeBSD"===e[0].system.os_name,isLinux:"Linux"===e[0].system.os_name,isSunOS:"SunOS"===e[0].system.os_name,isMac:"Darwin"===e[0].system.os_name,isWindows:"Windows"===e[0].system.os_name};this.data=t,Po.data=t,Po.status="SUCCESS"})).catch((e=>{console.log(e),Po.status="FAILURE"})).then((()=>{t&&clearTimeout(t),t=setTimeout(n,1e3*e)})));n(),fetch("api/3/all/limits",{method:"GET"}).then((e=>e.json())).then((e=>{Mo.setLimits(e)})),fetch("api/3/args",{method:"GET"}).then((e=>e.json())).then(((e={})=>{Po.args={...Po.args,...e}})),fetch("api/3/config",{method:"GET"}).then((e=>e.json())).then(((e={})=>{Po.config={...Po.config,...e}}))}getData(){return this.data}};const jo=new class{constructor(){this.favico=new(No())({animation:"none"})}badge(e){this.favico.badge(e)}reset(){this.favico.reset()}},Ro={key:0},qo={class:"container-fluid"},Bo={class:"row"},Uo={class:"col-sm-12 col-lg-24"},Fo=mi("div",{class:"row"}," ",-1),$o={class:"row"},zo={class:"col-sm-12 col-lg-24"},Ho=mi("div",{class:"row"}," ",-1),Vo={class:"divTable",style:{width:"100%"}},Go={class:"divTableBody"},Wo={class:"divTableRow"},Zo={class:"divTableHead"},Ko={class:"divTableHead"},Xo={class:"divTableHead"},Qo={class:"divTableHead"},Jo={class:"divTableRow"},Yo={class:"divTableCell"},ea={class:"divTableCell"},ta={class:"divTableCell"},na={class:"divTableCell"},ra={class:"divTableRow"},ia={class:"divTableCell"},sa={class:"divTableCell"},oa={class:"divTableCell"},aa={class:"divTableCell"},la={class:"divTableRow"},ca={class:"divTableCell"},ua={class:"divTableCell"},da={class:"divTableCell"},fa={class:"divTableCell"},pa={class:"divTableRow"},ha={class:"divTableCell"},ga={class:"divTableCell"},ma={class:"divTableCell"},ba={class:"divTableCell"},va={class:"divTableRow"},ya={class:"divTableCell"},wa={class:"divTableCell"},xa={class:"divTableCell"},_a={class:"divTableCell"},ka={class:"divTableRow"},Ca={class:"divTableCell"},Ta={class:"divTableCell"},Sa={class:"divTableCell"},Aa={class:"divTableCell"},Ea={class:"divTableRow"},Oa={class:"divTableCell"},Ia={class:"divTableCell"},Pa={class:"divTableCell"},La={class:"divTableCell"},Na={class:"divTableRow"},Ma=mi("div",{class:"divTableCell"}," ",-1),Da={class:"divTableCell"},ja={class:"divTableCell"},Ra={class:"divTableCell"},qa={class:"divTableRow"},Ba=mi("div",{class:"divTableCell"}," ",-1),Ua={class:"divTableCell"},Fa={class:"divTableCell"},$a={class:"divTableCell"},za={class:"divTableRow"},Ha=mi("div",{class:"divTableCell"}," ",-1),Va={class:"divTableCell"},Ga={class:"divTableCell"},Wa={class:"divTableCell"},Za={class:"divTableRow"},Ka=mi("div",{class:"divTableCell"}," ",-1),Xa={class:"divTableCell"},Qa=mi("div",{class:"divTableCell"}," ",-1),Ja={class:"divTableCell"},Ya={class:"divTableRow"},el=mi("div",{class:"divTableCell"}," ",-1),tl={class:"divTableCell"},nl=mi("div",{class:"divTableCell"}," ",-1),rl=mi("div",{class:"divTableCell"}," ",-1),il={class:"divTableRow"},sl=mi("div",{class:"divTableCell"}," ",-1),ol={class:"divTableCell"},al=mi("div",{class:"divTableCell"}," ",-1),ll=mi("div",{class:"divTableCell"}," ",-1),cl={class:"divTableRow"},ul=mi("div",{class:"divTableCell"}," ",-1),dl={class:"divTableCell"},fl=mi("div",{class:"divTableCell"}," ",-1),pl=mi("div",{class:"divTableCell"}," ",-1),hl={class:"divTableRow"},gl=mi("div",{class:"divTableCell"}," ",-1),ml={class:"divTableCell"},bl=mi("div",{class:"divTableCell"}," ",-1),vl=mi("div",{class:"divTableCell"}," ",-1),yl={class:"divTableRow"},wl=mi("div",{class:"divTableCell"}," ",-1),xl={class:"divTableCell"},_l=mi("div",{class:"divTableCell"}," ",-1),kl=mi("div",{class:"divTableCell"}," ",-1),Cl={class:"divTableRow"},Tl=mi("div",{class:"divTableCell"}," ",-1),Sl={class:"divTableCell"},Al=mi("div",{class:"divTableCell"}," ",-1),El=mi("div",{class:"divTableCell"}," ",-1),Ol={class:"divTableRow"},Il=mi("div",{class:"divTableCell"}," ",-1),Pl={class:"divTableCell"},Ll=mi("div",{class:"divTableCell"}," ",-1),Nl=mi("div",{class:"divTableCell"}," ",-1),Ml={class:"divTableRow"},Dl=mi("div",{class:"divTableCell"}," ",-1),jl={class:"divTableCell"},Rl=mi("div",{class:"divTableCell"}," ",-1),ql=mi("div",{class:"divTableCell"}," ",-1),Bl={class:"divTableRow"},Ul=mi("div",{class:"divTableCell"}," ",-1),Fl={class:"divTableCell"},$l=mi("div",{class:"divTableCell"}," ",-1),zl=mi("div",{class:"divTableCell"}," ",-1),Hl=mi("div",null,[mi("p",null,[wi(" For an exhaustive list of key bindings, "),mi("a",{href:"https://glances.readthedocs.io/en/latest/cmds.html#interactive-commands"},"click here"),wi(". ")])],-1),Vl=mi("div",null,[mi("p",null,[wi("Press "),mi("b",null,"h"),wi(" to came back to Glances.")])],-1);const Gl={data:()=>({help:void 0}),mounted(){fetch("api/3/help",{method:"GET"}).then((e=>e.json())).then((e=>this.help=e))}};var Wl=n(3744);const Zl=(0,Wl.Z)(Gl,[["render",function(e,t,n,r,i,s){return i.help?(ii(),ci("div",Ro,[mi("div",qo,[mi("div",Bo,[mi("div",Uo,E(i.help.version)+" "+E(i.help.psutil_version),1)]),Fo,mi("div",$o,[mi("div",zo,E(i.help.configuration_file),1)]),Ho]),mi("div",Vo,[mi("div",Go,[mi("div",Wo,[mi("div",Zo,E(i.help.header_sort.replace(":","")),1),mi("div",Ko,E(i.help.header_show_hide.replace(":","")),1),mi("div",Xo,E(i.help.header_toggle.replace(":","")),1),mi("div",Qo,E(i.help.header_miscellaneous.replace(":","")),1)]),mi("div",Jo,[mi("div",Yo,E(i.help.sort_auto),1),mi("div",ea,E(i.help.show_hide_application_monitoring),1),mi("div",ta,E(i.help.toggle_bits_bytes),1),mi("div",na,E(i.help.misc_erase_process_filter),1)]),mi("div",ra,[mi("div",ia,E(i.help.sort_cpu),1),mi("div",sa,E(i.help.show_hide_diskio),1),mi("div",oa,E(i.help.toggle_count_rate),1),mi("div",aa,E(i.help.misc_generate_history_graphs),1)]),mi("div",la,[mi("div",ca,E(i.help.sort_io_rate),1),mi("div",ua,E(i.help.show_hide_docker),1),mi("div",da,E(i.help.toggle_used_free),1),mi("div",fa,E(i.help.misc_help),1)]),mi("div",pa,[mi("div",ha,E(i.help.sort_mem),1),mi("div",ga,E(i.help.show_hide_top_extended_stats),1),mi("div",ma,E(i.help.toggle_bar_sparkline),1),mi("div",ba,E(i.help.misc_accumulate_processes_by_program),1)]),mi("div",va,[mi("div",ya,E(i.help.sort_process_name),1),mi("div",wa,E(i.help.show_hide_filesystem),1),mi("div",xa,E(i.help.toggle_separate_combined),1),mi("div",_a,E(i.help.misc_kill_process)+" - N/A in WebUI ",1)]),mi("div",ka,[mi("div",Ca,E(i.help.sort_cpu_times),1),mi("div",Ta,E(i.help.show_hide_gpu),1),mi("div",Sa,E(i.help.toggle_live_cumulative),1),mi("div",Aa,E(i.help.misc_reset_processes_summary_min_max),1)]),mi("div",Ea,[mi("div",Oa,E(i.help.sort_user),1),mi("div",Ia,E(i.help.show_hide_ip),1),mi("div",Pa,E(i.help.toggle_linux_percentage),1),mi("div",La,E(i.help.misc_quit),1)]),mi("div",Na,[Ma,mi("div",Da,E(i.help.show_hide_tcp_connection),1),mi("div",ja,E(i.help.toggle_cpu_individual_combined),1),mi("div",Ra,E(i.help.misc_reset_history),1)]),mi("div",qa,[Ba,mi("div",Ua,E(i.help.show_hide_alert),1),mi("div",Fa,E(i.help.toggle_gpu_individual_combined),1),mi("div",$a,E(i.help.misc_delete_warning_alerts),1)]),mi("div",za,[Ha,mi("div",Va,E(i.help.show_hide_network),1),mi("div",Ga,E(i.help.toggle_short_full),1),mi("div",Wa,E(i.help.misc_delete_warning_and_critical_alerts),1)]),mi("div",Za,[Ka,mi("div",Xa,E(i.help.sort_cpu_times),1),Qa,mi("div",Ja,E(i.help.misc_edit_process_filter_pattern)+" - N/A in WebUI ",1)]),mi("div",Ya,[el,mi("div",tl,E(i.help.show_hide_irq),1),nl,rl]),mi("div",il,[sl,mi("div",ol,E(i.help.show_hide_raid_plugin),1),al,ll]),mi("div",cl,[ul,mi("div",dl,E(i.help.show_hide_sensors),1),fl,pl]),mi("div",hl,[gl,mi("div",ml,E(i.help.show_hide_wifi_module),1),bl,vl]),mi("div",yl,[wl,mi("div",xl,E(i.help.show_hide_processes),1),_l,kl]),mi("div",Cl,[Tl,mi("div",Sl,E(i.help.show_hide_left_sidebar),1),Al,El]),mi("div",Ol,[Il,mi("div",Pl,E(i.help.show_hide_quick_look),1),Ll,Nl]),mi("div",Ml,[Dl,mi("div",jl,E(i.help.show_hide_cpu_mem_swap),1),Rl,ql]),mi("div",Bl,[Ul,mi("div",Fl,E(i.help.show_hide_all),1),$l,zl])])]),Hl,Vl])):_i("v-if",!0)}]]),Kl={class:"plugin"},Xl={id:"alerts"},Ql={key:0,class:"title"},Jl={key:1,class:"title"},Yl={id:"alert"},ec={class:"table"},tc={class:"table-cell text-left"};var nc=n(6486);const rc={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((e=>{const t={};if(t.name=e[3],t.level=e[2],t.begin=1e3*e[0],t.end=1e3*e[1],t.ongoing=-1==e[1],t.min=e[6],t.mean=e[5],t.max=e[4],!t.ongoing){const e=t.end-t.begin,n=parseInt(e/1e3%60),r=parseInt(e/6e4%60),i=parseInt(e/36e5%24);t.duration=(0,nc.padStart)(i,2,"0")+":"+(0,nc.padStart)(r,2,"0")+":"+(0,nc.padStart)(n,2,"0")}return t}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:e})=>e)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?jo.badge(this.countOngoingAlerts):jo.reset()}},methods:{formatDate:e=>new Date(e).toISOString().slice(0,19).replace(/[^\d-:]/," ")}},ic=(0,Wl.Z)(rc,[["render",function(e,t,n,r,i,s){return ii(),ci("div",Kl,[mi("section",Xl,[s.hasAlerts?(ii(),ci("span",Ql," Warning or critical alerts (last "+E(s.countAlerts)+" entries) ",1)):(ii(),ci("span",Jl,"No warning or critical alert detected"))]),mi("section",Yl,[mi("div",ec,[(ii(!0),ci(Jr,null,pr(s.alerts,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",tc,[wi(E(s.formatDate(t.begin))+" ("+E(t.ongoing?"ongoing":t.duration)+") - ",1),or(mi("span",null,E(t.level)+" on ",513),[[As,!t.ongoing]]),mi("span",{class:C(t.level.toLowerCase())},E(t.name),3),wi(" ("+E(e.$filters.number(t.max,1))+") ",1)])])))),128))])])])}]]),sc={key:0,id:"cloud",class:"plugin"},oc={class:"title"};const ac={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:e}=this;return void 0!==this.stats.id?`${e.type} instance ${e.name} (${e.region})`:null}}},lc=(0,Wl.Z)(ac,[["render",function(e,t,n,r,i,s){return s.instance||s.provider?(ii(),ci("section",sc,[mi("span",oc,E(s.provider),1),wi(" "+E(s.instance),1)])):_i("v-if",!0)}]]),cc={class:"plugin",id:"connections"},uc=mi("div",{class:"table-row"},[mi("div",{class:"table-cell text-left title"},"TCP CONNECTIONS"),mi("div",{class:"table-cell"})],-1),dc={class:"table-row"},fc=mi("div",{class:"table-cell text-left"},"Listen",-1),pc=mi("div",{class:"table-cell"},null,-1),hc={class:"table-cell"},gc={class:"table-row"},mc=mi("div",{class:"table-cell text-left"},"Initiated",-1),bc=mi("div",{class:"table-cell"},null,-1),vc={class:"table-cell"},yc={class:"table-row"},wc=mi("div",{class:"table-cell text-left"},"Established",-1),xc=mi("div",{class:"table-cell"},null,-1),_c={class:"table-cell"},kc={class:"table-row"},Cc=mi("div",{class:"table-cell text-left"},"Terminated",-1),Tc=mi("div",{class:"table-cell"},null,-1),Sc={class:"table-cell"},Ac={class:"table-row"},Ec=mi("div",{class:"table-cell text-left"},"Tracked",-1),Oc=mi("div",{class:"table-cell"},null,-1);const Ic={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},Pc=(0,Wl.Z)(Ic,[["render",function(e,t,n,r,i,s){return ii(),ci("section",cc,[uc,mi("div",dc,[fc,pc,mi("div",hc,E(s.listen),1)]),mi("div",gc,[mc,bc,mi("div",vc,E(s.initiated),1)]),mi("div",yc,[wc,xc,mi("div",_c,E(s.established),1)]),mi("div",kc,[Cc,Tc,mi("div",Sc,E(s.terminated),1)]),mi("div",Ac,[Ec,Oc,mi("div",{class:C(["table-cell",s.getDecoration("nf_conntrack_percent")])},E(s.tracked.count)+"/"+E(s.tracked.max),3)])])}]]),Lc={id:"cpu",class:"plugin"},Nc={class:"row"},Mc={class:"col-sm-24 col-md-12 col-lg-8"},Dc={class:"table"},jc={class:"table-row"},Rc=mi("div",{class:"table-cell text-left title"},"CPU",-1),qc={class:"table-cell"},Bc={class:"table-row"},Uc=mi("div",{class:"table-cell text-left"},"user:",-1),Fc={class:"table-row"},$c=mi("div",{class:"table-cell text-left"},"system:",-1),zc={class:"table-row"},Hc=mi("div",{class:"table-cell text-left"},"iowait:",-1),Vc={class:"table-row"},Gc=mi("div",{class:"table-cell text-left"},"dpc:",-1),Wc={class:"hidden-xs hidden-sm col-md-12 col-lg-8"},Zc={class:"table"},Kc={class:"table-row"},Xc=mi("div",{class:"table-cell text-left"},"idle:",-1),Qc={class:"table-cell"},Jc={class:"table-row"},Yc=mi("div",{class:"table-cell text-left"},"irq:",-1),eu={class:"table-cell"},tu={class:"table-row"},nu=mi("div",{class:"table-cell text-left"},"inter:",-1),ru={class:"table-cell"},iu={class:"table-row"},su=mi("div",{class:"table-cell text-left"},"nice:",-1),ou={class:"table-cell"},au={key:0,class:"table-row"},lu=mi("div",{class:"table-cell text-left"},"ctx_sw:",-1),cu={class:"table-row"},uu=mi("div",{class:"table-cell text-left"},"steal:",-1),du={key:1,class:"table-row"},fu=mi("div",{class:"table-cell text-left"},"syscal:",-1),pu={class:"table-cell"},hu={class:"hidden-xs hidden-sm hidden-md col-lg-8"},gu={class:"table"},mu={key:0,class:"table-row"},bu=mi("div",{class:"table-cell text-left"},"ctx_sw:",-1),vu={key:1,class:"table-row"},yu=mi("div",{class:"table-cell text-left"},"inter:",-1),wu={class:"table-cell"},xu={key:2,class:"table-row"},_u=mi("div",{class:"table-cell text-left"},"sw_int:",-1),ku={class:"table-cell"};const Cu={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},ctx_switches(){const{stats:e}=this;return e.ctx_switches?Math.floor(e.ctx_switches/e.time_since_update):null},interrupts(){const{stats:e}=this;return e.interrupts?Math.floor(e.interrupts/e.time_since_update):null},soft_interrupts(){const{stats:e}=this;return e.soft_interrupts?Math.floor(e.soft_interrupts/e.time_since_update):null},syscalls(){const{stats:e}=this;return e.syscalls?Math.floor(e.syscalls/e.time_since_update):null}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},Tu=(0,Wl.Z)(Cu,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Lc,[mi("div",Nc,[mi("div",Mc,[mi("div",Dc,[mi("div",jc,[Rc,mi("div",qc,E(s.total)+"%",1)]),mi("div",Bc,[Uc,mi("div",{class:C(["table-cell",s.getDecoration("user")])},E(s.user)+"%",3)]),mi("div",Fc,[$c,mi("div",{class:C(["table-cell",s.getDecoration("system")])},E(s.system)+"%",3)]),or(mi("div",zc,[Hc,mi("div",{class:C(["table-cell",s.getDecoration("iowait")])},E(s.iowait)+"%",3)],512),[[As,null!=s.iowait]]),or(mi("div",Vc,[Gc,mi("div",{class:C(["table-cell",s.getDecoration("dpc")])},E(s.dpc)+"%",3)],512),[[As,null==s.iowait&&null!=s.dpc]])])]),mi("div",Wc,[mi("div",Zc,[mi("div",Kc,[Xc,mi("div",Qc,E(s.idle)+"%",1)]),or(mi("div",Jc,[Yc,mi("div",eu,E(s.irq)+"%",1)],512),[[As,null!=s.irq]]),_i(" If no irq, display interrupts "),or(mi("div",tu,[nu,mi("div",ru,E(s.interrupts),1)],512),[[As,null==s.irq]]),or(mi("div",iu,[su,mi("div",ou,E(s.nice)+"%",1)],512),[[As,null!=s.nice]]),_i(" If no nice, display ctx_switches "),null==s.nice&&s.ctx_switches?(ii(),ci("div",au,[lu,mi("div",{class:C(["table-cell",s.getDecoration("ctx_switches")])},E(s.ctx_switches),3)])):_i("v-if",!0),or(mi("div",cu,[uu,mi("div",{class:C(["table-cell",s.getDecoration("steal")])},E(s.steal)+"%",3)],512),[[As,null!=s.steal]]),!s.isLinux&&s.syscalls?(ii(),ci("div",du,[fu,mi("div",pu,E(s.syscalls),1)])):_i("v-if",!0)])]),mi("div",hu,[mi("div",gu,[_i(" If not already display instead of nice, then display ctx_switches "),null!=s.nice&&s.ctx_switches?(ii(),ci("div",mu,[bu,mi("div",{class:C(["table-cell",s.getDecoration("ctx_switches")])},E(s.ctx_switches),3)])):_i("v-if",!0),_i(" If not already display instead of irq, then display interrupts "),null!=s.irq&&s.interrupts?(ii(),ci("div",vu,[yu,mi("div",wu,E(s.interrupts),1)])):_i("v-if",!0),s.isWindows||s.isSunOS||!s.soft_interrupts?_i("v-if",!0):(ii(),ci("div",xu,[_u,mi("div",ku,E(s.soft_interrupts),1)]))])])])])}]]),Su={class:"plugin",id:"diskio"},Au={key:0,class:"table-row"},Eu=mi("div",{class:"table-cell text-left title"},"DISK I/O",-1),Ou={class:"table-cell"},Iu={class:"table-cell"},Pu={class:"table-cell"},Lu={class:"table-cell"},Nu={class:"table-cell text-left"};var Mu=n(1036),Du=n.n(Mu);function ju(e,t){return Ru(e=8*Math.round(e),t)+"b"}function Ru(e,t){if(t=t||!1,isNaN(parseFloat(e))||!isFinite(e)||0==e)return e;const n=["Y","Z","E","P","T","G","M","K"],r={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 o<10?a=2:o<100&&(a=1),t?a="MK"==s?0:(0,nc.min)([1,a]):"K"==s&&(a=0),parseFloat(o).toFixed(a)+s}}return e.toFixed(0)}function qu(e){return void 0===e||""===e?"?":e}function Bu(e,t,n){return t=t||0,n=n||" ",String(e).padStart(t,n)}function Uu(e,t){return"function"!=typeof e.slice&&(e=String(e)),e.slice(0,t)}function Fu(e,t){return t=t||8,e.length>t?"_"+e.substring(e.length-t+1):e}function $u(e){if(void 0===e)return e;var t=function(e){var t=document.createElement("div");return t.innerText=e,t.innerHTML}(e),n=t.replace(/\n/g,"
");return Du()(n)}function zu(e,t){return new Intl.NumberFormat(void 0,"number"==typeof t?{maximumFractionDigits:t}:t).format(e)}function Hu(e){for(var t=0,n=0;n({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},disks(){const e=this.stats.map((e=>{const t=e.time_since_update;return{name:e.disk_name,bitrate:{txps:Ru(e.read_bytes/t),rxps:Ru(e.write_bytes/t)},count:{txps:Ru(e.read_count/t),rxps:Ru(e.write_count/t)},alias:void 0!==e.alias?e.alias:null}}));return(0,nc.orderBy)(e,["name"])}}},Wu=(0,Wl.Z)(Gu,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Su,[s.disks.length>0?(ii(),ci("div",Au,[Eu,or(mi("div",Ou,"R/s",512),[[As,!s.args.diskio_iops]]),or(mi("div",Iu,"W/s",512),[[As,!s.args.diskio_iops]]),or(mi("div",Pu,"IOR/s",512),[[As,s.args.diskio_iops]]),or(mi("div",Lu,"IOW/s",512),[[As,s.args.diskio_iops]])])):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.disks,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Nu,E(e.$filters.minSize(t.alias?t.alias:t.name,32)),1),or(mi("div",{class:"table-cell"},E(t.bitrate.txps),513),[[As,!s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.bitrate.rxps),513),[[As,!s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.count.txps),513),[[As,s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.count.rxps),513),[[As,s.args.diskio_iops]])])))),128))])}]]),Zu={key:0,id:"containers-plugin",class:"plugin"},Ku=mi("span",{class:"title"},"CONTAINERS",-1),Xu={class:"table"},Qu={class:"table-row"},Ju=mi("div",{class:"table-cell"},"Status",-1),Yu=mi("div",{class:"table-cell"},"Uptime",-1),ed=xi('
/MAX
IOR/s
IOW/s
RX/s
TX/s
Command
',6),td={class:"table-cell text-left"},nd={class:"table-cell"},rd={class:"table-cell"},id={class:"table-cell"},sd={class:"table-cell"},od={class:"table-cell"},ad={class:"table-cell"},ld={class:"table-cell"},cd={class:"table-cell text-left"};const ud={props:{data:{type:Object}},data:()=>({store:Po,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.docker},containers(){const{sorter:e}=this,t=(this.stats.containers||[]).map((e=>({id:e.Id,name:e.name,status:e.Status,uptime:e.Uptime,cpu_percent:e.cpu.total,memory_usage:null!=e.memory.usage?e.memory.usage:"?",limit:null!=e.memory.limit?e.memory.limit:"?",ior:null!=e.io.ior?e.io.ior:"?",iow:null!=e.io.iow?e.io.iow:"?",io_time_since_update:e.io.time_since_update,rx:null!=e.network.rx?e.network.rx:"?",tx:null!=e.network.tx?e.network.tx:"?",net_time_since_update:e.network.time_since_update,command:e.Command.join(" "),image:e.Image})));return(0,nc.orderBy)(t,[e.column].reduce(((e,t)=>("memory_percent"===t&&(t=["memory_usage"]),e.concat(t))),[]),[e.isReverseColumn(e.column)?"desc":"asc"])}},watch:{sortProcessesKey:{immediate:!0,handler(e){e&&!["cpu_percent","memory_percent","name"].includes(e)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(e){return!["name"].includes(e)},getColumnLabel:function(e){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[e]||e}})}}}},dd=(0,Wl.Z)(ud,[["render",function(e,t,n,r,i,s){return s.containers.length?(ii(),ci("section",Zu,[Ku,wi(" "+E(s.containers.length)+" sorted by "+E(i.sorter.getColumnLabel(i.sorter.column))+" ",1),mi("div",Xu,[mi("div",Qu,[mi("div",{class:C(["table-cell text-left",["sortable","name"===i.sorter.column&&"sort"]]),onClick:t[0]||(t[0]=e=>s.args.sort_processes_key="name")}," Name ",2),Ju,Yu,mi("div",{class:C(["table-cell",["sortable","cpu_percent"===i.sorter.column&&"sort"]]),onClick:t[1]||(t[1]=e=>s.args.sort_processes_key="cpu_percent")}," CPU% ",2),mi("div",{class:C(["table-cell",["sortable","memory_percent"===i.sorter.column&&"sort"]]),onClick:t[2]||(t[2]=e=>s.args.sort_processes_key="memory_percent")}," MEM ",2),ed]),(ii(!0),ci(Jr,null,pr(s.containers,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",td,E(t.name),1),mi("div",{class:C(["table-cell","Paused"==t.status?"careful":"ok"])},E(t.status),3),mi("div",{class:C(["table-cell","Paused"==t.status?"careful":"ok"])},E(t.uptime),3),mi("div",nd,E(e.$filters.number(t.cpu_percent,1)),1),mi("div",rd,E(e.$filters.bytes(t.memory_usage)),1),mi("div",id,E(e.$filters.bytes(t.limit)),1),mi("div",sd,E(e.$filters.bits(t.ior/t.io_time_since_update)),1),mi("div",od,E(e.$filters.bits(t.iow/t.io_time_since_update)),1),mi("div",ad,E(e.$filters.bits(t.rx/t.net_time_since_update)),1),mi("div",ld,E(e.$filters.bits(t.tx/t.net_time_since_update)),1),mi("div",cd,E(t.command),1)])))),128))])])):_i("v-if",!0)}]]),fd={class:"plugin",id:"folders"},pd={key:0,class:"table-row"},hd=[mi("div",{class:"table-cell text-left title"},"FOLDERS",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"Size",-1)],gd={class:"table-cell text-left"},md=mi("div",{class:"table-cell"},null,-1);const bd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((e=>({path:e.path,size:e.size,careful:e.careful,warning:e.warning,critical:e.critical})))}},methods:{getDecoration(e){if(Number.isInteger(e.size))return null!==e.critical&&e.size>1e6*e.critical?"critical":null!==e.warning&&e.size>1e6*e.warning?"warning":null!==e.careful&&e.size>1e6*e.careful?"careful":"ok"}}},vd=(0,Wl.Z)(bd,[["render",function(e,t,n,r,i,s){return ii(),ci("section",fd,[s.folders.length>0?(ii(),ci("div",pd,hd)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.folders,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",gd,E(t.path),1),md,mi("div",{class:C(["table-cell",s.getDecoration(t)])},E(e.$filters.bytes(t.size)),3)])))),128))])}]]),yd={class:"plugin",id:"fs"},wd={class:"table-row"},xd=mi("div",{class:"table-cell text-left title"},"FILE SYS",-1),_d={class:"table-cell"},kd=mi("div",{class:"table-cell"},"Total",-1),Cd={class:"table-cell text-left"},Td={key:0,class:"visible-lg-inline"},Sd={class:"table-cell"};const Ad={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const e=this.stats.map((e=>{let t=e.mnt_point;return t.length>22&&(t="_"+e.mnt_point.slice(-21)),{name:e.device_name,mountPoint:e.mnt_point,shortMountPoint:t,percent:e.percent,size:e.size,used:e.used,free:e.free}}));return(0,nc.orderBy)(e,["mnt_point"])}},methods:{getDecoration(e,t){if(null!=this.view[e][t])return this.view[e][t].decoration.toLowerCase()}}},Ed=(0,Wl.Z)(Ad,[["render",function(e,t,n,r,i,s){return ii(),ci("section",yd,[mi("div",wd,[xd,mi("div",_d,[or(mi("span",null,"Used",512),[[As,!s.args.fs_free_space]]),or(mi("span",null,"Free",512),[[As,s.args.fs_free_space]])]),kd]),(ii(!0),ci(Jr,null,pr(s.fileSystems,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Cd,[wi(E(t.shortMountPoint)+" ",1),t.shortMountPoint.length<=12?(ii(),ci("span",Td," ("+E(t.name)+") ",1)):_i("v-if",!0)]),mi("div",{class:C(["table-cell",s.getDecoration(t.mountPoint,"used")])},[or(mi("span",null,E(e.$filters.bytes(t.used)),513),[[As,!s.args.fs_free_space]]),or(mi("span",null,E(e.$filters.bytes(t.free)),513),[[As,s.args.fs_free_space]])],2),mi("div",Sd,E(e.$filters.bytes(t.size)),1)])))),128))])}]]),Od={id:"gpu",class:"plugin"},Id={class:"gpu-name title"},Pd={class:"table"},Ld={key:0,class:"table-row"},Nd=mi("div",{class:"table-cell text-left"},"proc:",-1),Md={key:1,class:"table-cell"},Dd={key:1,class:"table-row"},jd=mi("div",{class:"table-cell text-left"},"mem:",-1),Rd={key:1,class:"table-cell"},qd={key:2,class:"table-row"},Bd=mi("div",{class:"table-cell text-left"},"temperature::",-1),Ud={key:1,class:"table-cell"},Fd={class:"table-cell text-left"},$d={key:1},zd={key:3},Hd={key:5};const Vd={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let e="GPU";const{stats:t}=this;return 1===t.length?e=t[0].name:t.length&&(e=`${t.length} GPU ${t[0].name}`),e},mean(){const e={proc:null,mem:null,temperature:null},{stats:t}=this;if(!t.length)return e;for(let n of t)e.proc+=n.proc,e.mem+=n.mem,e.temperature+=n.temperature;return e.proc=e.proc/t.length,e.mem=e.mem/t.length,e.temperature=e.temperature/t.length,e}},methods:{getDecoration(e,t){if(void 0!==this.view[e][t])return this.view[e][t].decoration.toLowerCase()},getMeanDecoration(e){return this.getDecoration(0,e)}}},Gd=(0,Wl.Z)(Vd,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Od,[mi("div",Id,E(s.name),1),mi("div",Pd,[s.args.meangpu||1===s.gpus.length?(ii(),ci("div",Ld,[Nd,null!=s.mean.proc?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("proc")])},E(e.$filters.number(s.mean.proc,0))+"% ",3)):_i("v-if",!0),null==s.mean.proc?(ii(),ci("div",Md,"N/A")):_i("v-if",!0)])):_i("v-if",!0),s.args.meangpu||1===s.gpus.length?(ii(),ci("div",Dd,[jd,null!=s.mean.mem?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("mem")])},E(e.$filters.number(s.mean.mem,0))+"% ",3)):_i("v-if",!0),null==s.mean.mem?(ii(),ci("div",Rd,"N/A")):_i("v-if",!0)])):_i("v-if",!0),s.args.meangpu||1===s.gpus.length?(ii(),ci("div",qd,[Bd,null!=s.mean.temperature?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("temperature")])},E(e.$filters.number(s.mean.temperature,0))+"° ",3)):_i("v-if",!0),null==s.mean.temperature?(ii(),ci("div",Ud,"N/A")):_i("v-if",!0)])):_i("v-if",!0),!s.args.meangpu&&s.gpus.length>1?(ii(!0),ci(Jr,{key:3},pr(s.gpus,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Fd,[wi(E(t.gpu_id)+": ",1),null!=t.proc?(ii(),ci("span",{key:0,class:C(s.getDecoration(t.gpu_id,"proc"))},E(e.$filters.number(t.proc,0))+"% ",3)):_i("v-if",!0),null==t.proc?(ii(),ci("span",$d,"N/A")):_i("v-if",!0),wi(" mem: "),null!=t.mem?(ii(),ci("span",{key:2,class:C(s.getDecoration(t.gpu_id,"mem"))},E(e.$filters.number(t.mem,0))+"% ",3)):_i("v-if",!0),null==t.mem?(ii(),ci("span",zd,"N/A")):_i("v-if",!0),wi(" temp: "),null!=t.temperature?(ii(),ci("span",{key:4,class:C(s.getDecoration(t.gpu_id,"temperature"))},E(e.$filters.number(t.temperature,0))+"C ",3)):_i("v-if",!0),null==t.temperature?(ii(),ci("span",Hd,"N/A")):_i("v-if",!0)])])))),128)):_i("v-if",!0)])])}]]),Wd={key:0,class:"plugin",id:"ip"},Zd={key:0,class:"title"},Kd={key:1},Xd={key:2,class:"title"},Qd={key:3},Jd={key:4};const Yd={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}}},ef=(0,Wl.Z)(Yd,[["render",function(e,t,n,r,i,s){return null!=s.address?(ii(),ci("section",Wd,[null!=s.address?(ii(),ci("span",Zd,"IP")):_i("v-if",!0),null!=s.address?(ii(),ci("span",Kd,E(s.address)+"/"+E(s.maskCdir),1)):_i("v-if",!0),null!=s.publicAddress?(ii(),ci("span",Xd,"Pub")):_i("v-if",!0),null!=s.publicAddress?(ii(),ci("span",Qd,E(s.publicAddress),1)):_i("v-if",!0),null!=s.publicInfo?(ii(),ci("span",Jd,E(s.publicInfo),1)):_i("v-if",!0)])):_i("v-if",!0)}]]),tf={class:"plugin",id:"irq"},nf={key:0,class:"table-row"},rf=[mi("div",{class:"table-cell text-left title"},"IRQ",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"Rate/s",-1)],sf={class:"table-cell text-left"},of=mi("div",{class:"table-cell"},null,-1),af={class:"table-cell"};const lf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((e=>({irq_line:e.irq_line,irq_rate:e.irq_rate})))}}},cf=(0,Wl.Z)(lf,[["render",function(e,t,n,r,i,s){return ii(),ci("section",tf,[s.irqs.length>0?(ii(),ci("div",nf,rf)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.irqs,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",sf,E(e.irq_line),1),of,mi("div",af,[mi("span",null,E(e.irq_rate),1)])])))),128))])}]]),uf={key:0,id:"load",class:"plugin"},df={class:"table"},ff={class:"table-row"},pf=mi("div",{class:"table-cell text-left title"},"LOAD",-1),hf={class:"table-cell"},gf={class:"table-row"},mf=mi("div",{class:"table-cell text-left"},"1 min:",-1),bf={class:"table-cell"},vf={class:"table-row"},yf=mi("div",{class:"table-cell text-left"},"5 min:",-1),wf={class:"table-row"},xf=mi("div",{class:"table-cell text-left"},"15 min:",-1);const _f={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},kf=(0,Wl.Z)(_f,[["render",function(e,t,n,r,i,s){return null!=s.cpucore?(ii(),ci("section",uf,[mi("div",df,[mi("div",ff,[pf,mi("div",hf,E(s.cpucore)+"-core",1)]),mi("div",gf,[mf,mi("div",bf,E(e.$filters.number(s.min1,2)),1)]),mi("div",vf,[yf,mi("div",{class:C(["table-cell",s.getDecoration("min5")])},E(e.$filters.number(s.min5,2)),3)]),mi("div",wf,[xf,mi("div",{class:C(["table-cell",s.getDecoration("min15")])},E(e.$filters.number(s.min15,2)),3)])])])):_i("v-if",!0)}]]),Cf={id:"mem",class:"plugin"},Tf={class:"table"},Sf={class:"table-row"},Af=mi("div",{class:"table-cell text-left title"},"MEM",-1),Ef={class:"table-cell"},Of={class:"table-row"},If=mi("div",{class:"table-cell text-left"},"total:",-1),Pf={class:"table-cell"},Lf={class:"table-row"},Nf=mi("div",{class:"table-cell text-left"},"used:",-1),Mf={class:"table-row"},Df=mi("div",{class:"table-cell text-left"},"free:",-1),jf={class:"table-cell"};const Rf={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}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},qf=(0,Wl.Z)(Rf,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Cf,[mi("div",Tf,[mi("div",Sf,[Af,mi("div",Ef,E(s.percent)+"%",1)]),mi("div",Of,[If,mi("div",Pf,E(e.$filters.bytes(s.total)),1)]),mi("div",Lf,[Nf,mi("div",{class:C(["table-cell",s.getDecoration("used")])},E(e.$filters.bytes(s.used,2)),3)]),mi("div",Mf,[Df,mi("div",jf,E(e.$filters.bytes(s.free)),1)])])])}]]),Bf={id:"mem-more",class:"plugin"},Uf={class:"table"},Ff={class:"table-row"},$f=mi("div",{class:"table-cell text-left"},"active:",-1),zf={class:"table-cell"},Hf={class:"table-row"},Vf=mi("div",{class:"table-cell text-left"},"inactive:",-1),Gf={class:"table-cell"},Wf={class:"table-row"},Zf=mi("div",{class:"table-cell text-left"},"buffers:",-1),Kf={class:"table-cell"},Xf={class:"table-row"},Qf=mi("div",{class:"table-cell text-left"},"cached:",-1),Jf={class:"table-cell"};const Yf={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}}},ep=(0,Wl.Z)(Yf,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Bf,[mi("div",Uf,[or(mi("div",Ff,[$f,mi("div",zf,E(e.$filters.bytes(s.active)),1)],512),[[As,null!=s.active]]),or(mi("div",Hf,[Vf,mi("div",Gf,E(e.$filters.bytes(s.inactive)),1)],512),[[As,null!=s.inactive]]),or(mi("div",Wf,[Zf,mi("div",Kf,E(e.$filters.bytes(s.buffers)),1)],512),[[As,null!=s.buffers]]),or(mi("div",Xf,[Qf,mi("div",Jf,E(e.$filters.bytes(s.cached)),1)],512),[[As,null!=s.cached]])])])}]]),tp={id:"memswap",class:"plugin"},np={class:"table"},rp={class:"table-row"},ip=mi("div",{class:"table-cell text-left title"},"SWAP",-1),sp={class:"table-cell"},op={class:"table-row"},ap=mi("div",{class:"table-cell text-left"},"total:",-1),lp={class:"table-cell"},cp={class:"table-row"},up=mi("div",{class:"table-cell text-left"},"used:",-1),dp={class:"table-row"},fp=mi("div",{class:"table-cell text-left"},"free:",-1),pp={class:"table-cell"};const hp={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},gp=(0,Wl.Z)(hp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",tp,[mi("div",np,[mi("div",rp,[ip,mi("div",sp,E(s.percent)+"%",1)]),mi("div",op,[ap,mi("div",lp,E(e.$filters.bytes(s.total)),1)]),mi("div",cp,[up,mi("div",{class:C(["table-cell",s.getDecoration("used")])},E(e.$filters.bytes(s.used)),3)]),mi("div",dp,[fp,mi("div",pp,E(e.$filters.bytes(s.free)),1)])])])}]]),mp={class:"plugin",id:"network"},bp={class:"table-row"},vp=mi("div",{class:"table-cell text-left title"},"NETWORK",-1),yp={class:"table-cell"},wp={class:"table-cell"},xp={class:"table-cell"},_p={class:"table-cell"},kp={class:"table-cell"},Cp={class:"table-cell"},Tp={class:"table-cell"},Sp={class:"table-cell"},Ap={class:"table-cell text-left"},Ep={class:"visible-lg-inline"},Op={class:"hidden-lg"},Ip={class:"table-cell"},Pp={class:"table-cell"};const Lp={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},networks(){const e=this.stats.map((e=>{const t=void 0!==e.alias?e.alias:null;return{interfaceName:e.interface_name,ifname:t||e.interface_name,rx:e.rx,tx:e.tx,cx:e.cx,time_since_update:e.time_since_update,cumulativeRx:e.cumulative_rx,cumulativeTx:e.cumulative_tx,cumulativeCx:e.cumulative_cx}}));return(0,nc.orderBy)(e,["interfaceName"])}}},Np=(0,Wl.Z)(Lp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",mp,[mi("div",bp,[vp,or(mi("div",yp,"Rx/s",512),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",wp,"Tx/s",512),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",xp,null,512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",_p,"Rx+Tx/s",512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",kp,"Rx",512),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Cp,"Tx",512),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Tp,null,512),[[As,s.args.network_cumul&&s.args.network_sum]]),or(mi("div",Sp,"Rx+Tx",512),[[As,s.args.network_cumul&&s.args.network_sum]])]),(ii(!0),ci(Jr,null,pr(s.networks,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Ap,[mi("span",Ep,E(t.ifname),1),mi("span",Op,E(e.$filters.minSize(t.ifname)),1)]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.rx/t.time_since_update):e.$filters.bits(t.rx/t.time_since_update)),513),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.tx/t.time_since_update):e.$filters.bits(t.tx/t.time_since_update)),513),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Ip,null,512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cx/t.time_since_update):e.$filters.bits(t.cx/t.time_since_update)),513),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeRx):e.$filters.bits(t.cumulativeRx)),513),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeTx):e.$filters.bits(t.cumulativeTx)),513),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Pp,null,512),[[As,s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeCx):e.$filters.bits(t.cumulativeCx)),513),[[As,s.args.network_cumul&&s.args.network_sum]])])))),128))])}]]),Mp={id:"now",class:"plugin"};const Dp={props:{data:{type:Object}},computed:{value(){return this.data.stats.now}}},jp=(0,Wl.Z)(Dp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Mp,[mi("span",null,E(s.value),1)])}]]),Rp={id:"percpu",class:"plugin"},qp={class:"table-row"},Bp={class:"table-cell text-left title"},Up={key:0},Fp={class:"table-row"},$p=mi("div",{class:"table-cell text-left"},"user:",-1),zp={class:"table-row"},Hp=mi("div",{class:"table-cell text-left"},"system:",-1),Vp={class:"table-row"},Gp=mi("div",{class:"table-cell text-left"},"idle:",-1),Wp={key:0,class:"table-row"},Zp=mi("div",{class:"table-cell text-left"},"iowait:",-1),Kp={key:1,class:"table-row"},Xp=mi("div",{class:"table-cell text-left"},"steal:",-1);const Qp={props:{data:{type:Object}},computed:{percpuStats(){return this.data.stats.percpu},cpusChunks(){const e=this.percpuStats.map((e=>({number:e.cpu_number,total:e.total,user:e.user,system:e.system,idle:e.idle,iowait:e.iowait,steal:e.steal})));return(0,nc.chunk)(e,4)}},methods:{getUserAlert:e=>Mo.getAlert("percpu","percpu_user_",e.user),getSystemAlert:e=>Mo.getAlert("percpu","percpu_system_",e.system)}},Jp=(0,Wl.Z)(Qp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Rp,[(ii(!0),ci(Jr,null,pr(s.cpusChunks,((e,t)=>(ii(),ci("div",{class:"table",key:t},[mi("div",qp,[mi("div",Bp,[0===t?(ii(),ci("span",Up,"PER CPU")):_i("v-if",!0)]),(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:"table-cell",key:t},E(e.total)+"% ",1)))),128))]),mi("div",Fp,[$p,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getUserAlert(e)]),key:t},E(e.user)+"% ",3)))),128))]),mi("div",zp,[Hp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.system)+"% ",3)))),128))]),mi("div",Vp,[Gp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:"table-cell",key:t},E(e.idle)+"% ",1)))),128))]),e[0].iowait?(ii(),ci("div",Wp,[Zp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.iowait)+"% ",3)))),128))])):_i("v-if",!0),e[0].steal?(ii(),ci("div",Kp,[Xp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.steal)+"% ",3)))),128))])):_i("v-if",!0)])))),128))])}]]),Yp={class:"plugin",id:"ports"},eh={class:"table-cell text-left"},th=mi("div",{class:"table-cell"},null,-1),nh={key:0},rh={key:1},ih={key:2},sh={key:3},oh={key:0},ah={key:1},lh={key:2};const ch={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats}},methods:{getPortDecoration:e=>null===e.status?"careful":!1===e.status?"critical":null!==e.rtt_warning&&e.status>e.rtt_warning?"warning":"ok",getWebDecoration:e=>null===e.status?"careful":-1===[200,301,302].indexOf(e.status)?"critical":null!==e.rtt_warning&&e.elapsed>e.rtt_warning?"warning":"ok"}},uh=(0,Wl.Z)(ch,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Yp,[(ii(!0),ci(Jr,null,pr(s.ports,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",eh,[_i(" prettier-ignore "),wi(" "+E(e.$filters.minSize(t.description?t.description:t.host+" "+t.port,20)),1)]),th,t.host?(ii(),ci("div",{key:0,class:C([s.getPortDecoration(t),"table-cell"])},["null"==t.status?(ii(),ci("span",nh,"Scanning")):"false"==t.status?(ii(),ci("span",rh,"Timeout")):"true"==t.status?(ii(),ci("span",ih,"Open")):(ii(),ci("span",sh,E(e.$filters.number(1e3*t.status,0))+"ms",1))],2)):_i("v-if",!0),t.url?(ii(),ci("div",{key:1,class:C([s.getWebDecoration(t),"table-cell"])},["null"==t.status?(ii(),ci("span",oh,"Scanning")):"Error"==t.status?(ii(),ci("span",ah,"Error")):(ii(),ci("span",lh,"Code "+E(t.status),1))],2)):_i("v-if",!0)])))),128))])}]]),dh={key:0},fh={key:1},ph={key:0,class:"row"},hh={class:"col-lg-18"};const gh={id:"amps",class:"plugin"},mh={class:"table"},bh={key:0,class:"table-cell text-left"},vh=["innerHTML"];const yh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((e=>null!==e.result))}},methods:{getNameDecoration(e){const t=e.count,n=e.countmin,r=e.countmax;let i="ok";return i=t>0?(null===n||t>=n)&&(null===r||t<=r)?"ok":"careful":null===n?"ok":"critical",i}}},wh=(0,Wl.Z)(yh,[["render",function(e,t,n,r,i,s){return ii(),ci("section",gh,[mi("div",mh,[(ii(!0),ci(Jr,null,pr(s.processes,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",{class:C(["table-cell text-left",s.getNameDecoration(t)])},E(t.name),3),t.regex?(ii(),ci("div",bh,E(t.count),1)):_i("v-if",!0),mi("div",{class:"table-cell text-left process-result",innerHTML:e.$filters.nl2br(t.result)},null,8,vh)])))),128))])])}]]),xh={id:"processcount",class:"plugin"},_h=mi("span",{class:"title"},"TASKS",-1),kh={class:"title"};const Ch={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Po}),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}}},Th=(0,Wl.Z)(Ch,[["render",function(e,t,n,r,i,s){return ii(),ci("section",xh,[_h,mi("span",null,E(s.total)+" ("+E(s.thread)+" thr),",1),mi("span",null,E(s.running)+" run,",1),mi("span",null,E(s.sleeping)+" slp,",1),mi("span",null,E(s.stopped)+" oth",1),mi("span",null,E(s.args.programs?"Programs":"Threads"),1),mi("span",kh,E(n.sorter.auto?"sorted automatically":"sorted"),1),mi("span",null,"by "+E(n.sorter.getColumnLabel(n.sorter.column)),1)])}]]),Sh={id:"processlist-plugin",class:"plugin"},Ah={class:"table"},Eh={class:"table-row"},Oh=mi("div",{class:"table-cell hidden-xs hidden-sm"},"VIRT",-1),Ih=mi("div",{class:"table-cell hidden-xs hidden-sm"},"RES",-1),Ph=mi("div",{class:"table-cell"},"PID",-1),Lh=mi("div",{class:"table-cell"},"NI",-1),Nh=mi("div",{class:"table-cell"},"S",-1),Mh={class:"table-cell hidden-xs hidden-sm"},Dh={class:"table-cell hidden-xs hidden-sm"},jh={class:"table-cell"},Rh={class:"table-cell text-left"},qh={key:0,class:"table-cell hidden-xs hidden-sm"},Bh={key:1,class:"table-cell hidden-xs hidden-sm"},Uh={class:"table-cell text-left hidden-xs hidden-sm"};const Fh={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:e}=this,t=this.data.stats.isWindows,n=(this.stats||[]).map((e=>(e.memvirt="?",e.memres="?",e.memory_info&&(e.memvirt=e.memory_info[1],e.memres=e.memory_info[0]),e.timeplus="?",e.timemillis="?",e.cpu_times&&(e.timeplus=Vu(e.cpu_times),e.timemillis=Hu(e.cpu_times)),null===e.num_threads&&(e.num_threads=-1),null===e.cpu_percent&&(e.cpu_percent=-1),null===e.memory_percent&&(e.memory_percent=-1),e.io_read=null,e.io_write=null,e.io_counters&&(e.io_read=(e.io_counters[0]-e.io_counters[2])/e.time_since_update,e.io_write=(e.io_counters[1]-e.io_counters[3])/e.time_since_update),e.isNice=void 0!==e.nice&&(t&&32!=e.nice||!t&&0!=e.nice),Array.isArray(e.cmdline)&&(e.cmdline=e.cmdline.join(" ").replace(/\n/g," ")),null===e.cmdline&&(e.cmdline=e.name),t&&null!==e.username&&(e.username=(0,nc.last)(e.username.split("\\"))),e)));return(0,nc.orderBy)(n,[e.column].reduce(((e,t)=>("io_counters"===t&&(t=["io_read","io_write"]),e.concat(t))),[]),[e.isReverseColumn(e.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:e})=>e))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:e=>Mo.getAlert("processlist","processlist_cpu_",e.cpu_percent),getMemoryPercentAlert:e=>Mo.getAlert("processlist","processlist_mem_",e.cpu_percent)}},$h={components:{GlancesPluginAmps:wh,GlancesPluginProcesscount:Th,GlancesPluginProcesslist:(0,Wl.Z)(Fh,[["render",function(e,t,n,r,i,s){return ii(),ci(Jr,null,[_i(" prettier-ignore "),mi("section",Sh,[mi("div",Ah,[mi("div",Eh,[mi("div",{class:C(["table-cell",["sortable","cpu_percent"===n.sorter.column&&"sort"]]),onClick:t[0]||(t[0]=t=>e.$emit("update:sorter","cpu_percent"))}," CPU% ",2),mi("div",{class:C(["table-cell",["sortable","memory_percent"===n.sorter.column&&"sort"]]),onClick:t[1]||(t[1]=t=>e.$emit("update:sorter","memory_percent"))}," MEM% ",2),Oh,Ih,Ph,mi("div",{class:C(["table-cell text-left",["sortable","username"===n.sorter.column&&"sort"]]),onClick:t[2]||(t[2]=t=>e.$emit("update:sorter","username"))}," USER ",2),mi("div",{class:C(["table-cell hidden-xs hidden-sm",["sortable","timemillis"===n.sorter.column&&"sort"]]),onClick:t[3]||(t[3]=t=>e.$emit("update:sorter","timemillis"))}," TIME+ ",2),mi("div",{class:C(["table-cell text-left hidden-xs hidden-sm",["sortable","num_threads"===n.sorter.column&&"sort"]]),onClick:t[4]||(t[4]=t=>e.$emit("update:sorter","num_threads"))}," THR ",2),Lh,Nh,or(mi("div",{class:C(["table-cell hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:t[5]||(t[5]=t=>e.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[As,s.ioReadWritePresent]]),or(mi("div",{class:C(["table-cell text-left hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:t[6]||(t[6]=t=>e.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[As,s.ioReadWritePresent]]),mi("div",{class:C(["table-cell text-left",["sortable","name"===n.sorter.column&&"sort"]]),onClick:t[7]||(t[7]=t=>e.$emit("update:sorter","name"))}," Command ",2)]),(ii(!0),ci(Jr,null,pr(s.processes,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",{class:C(["table-cell",s.getCpuPercentAlert(t)])},E(-1==t.cpu_percent?"?":e.$filters.number(t.cpu_percent,1)),3),mi("div",{class:C(["table-cell",s.getMemoryPercentAlert(t)])},E(-1==t.memory_percent?"?":e.$filters.number(t.memory_percent,1)),3),mi("div",Mh,E(e.$filters.bytes(t.memvirt)),1),mi("div",Dh,E(e.$filters.bytes(t.memres)),1),mi("div",jh,E(t.pid),1),mi("div",Rh,E(t.username),1),"?"!=t.timeplus?(ii(),ci("div",qh,[or(mi("span",{class:"highlight"},E(t.timeplus.hours)+"h",513),[[As,t.timeplus.hours>0]]),wi(" "+E(e.$filters.leftPad(t.timeplus.minutes,2,"0"))+":"+E(e.$filters.leftPad(t.timeplus.seconds,2,"0"))+" ",1),or(mi("span",null,"."+E(e.$filters.leftPad(t.timeplus.milliseconds,2,"0")),513),[[As,t.timeplus.hours<=0]])])):_i("v-if",!0),"?"==t.timeplus?(ii(),ci("div",Bh,"?")):_i("v-if",!0),mi("div",Uh,E(-1==t.num_threads?"?":t.num_threads),1),mi("div",{class:C(["table-cell",{nice:t.isNice}])},E(e.$filters.exclamation(t.nice)),3),mi("div",{class:C(["table-cell",{status:"R"==t.status}])},E(t.status),3),or(mi("div",{class:"table-cell hidden-xs hidden-sm"},E(e.$filters.bytes(t.io_read)),513),[[As,s.ioReadWritePresent]]),or(mi("div",{class:"table-cell text-left hidden-xs hidden-sm"},E(e.$filters.bytes(t.io_write)),513),[[As,s.ioReadWritePresent]]),or(mi("div",{class:"table-cell text-left"},E(t.name),513),[[As,s.args.process_short_name]]),or(mi("div",{class:"table-cell text-left"},E(t.cmdline),513),[[As,!s.args.process_short_name]])])))),128))])])],2112)}]])},props:{data:{type:Object}},data:()=>({store:Po,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(e){e&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(e)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(e){return!["username","name"].includes(e)},getColumnLabel:function(e){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_percent:"memory consumption",cpu_times:"process time",username:"user name",name:"process name",timemillis:"process time",None:"None"}[e]||e}})}}}},zh=(0,Wl.Z)($h,[["render",function(e,t,n,r,i,s){const o=cr("glances-plugin-processcount"),a=cr("glances-plugin-amps"),l=cr("glances-plugin-processlist");return s.args.disable_process?(ii(),ci("div",dh,"PROCESSES DISABLED (press 'z' to display)")):(ii(),ci("div",fh,[bi(o,{sorter:i.sorter,data:n.data},null,8,["sorter","data"]),s.args.disable_amps?_i("v-if",!0):(ii(),ci("div",ph,[mi("div",hh,[bi(a,{data:n.data},null,8,["data"])])])),bi(l,{sorter:i.sorter,data:n.data,"onUpdate:sorter":t[0]||(t[0]=e=>s.args.sort_processes_key=e)},null,8,["sorter","data"])]))}]]),Hh={id:"quicklook",class:"plugin"},Vh={class:"cpu-name"},Gh={class:"table"},Wh={key:0,class:"table-row"},Zh=mi("div",{class:"table-cell text-left"},"CPU",-1),Kh={class:"table-cell"},Xh={class:"progress"},Qh=["aria-valuenow"],Jh={class:"table-cell"},Yh={class:"table-cell text-left"},eg={class:"table-cell"},tg={class:"progress"},ng=["aria-valuenow"],rg={class:"table-cell"},ig={class:"table-row"},sg=mi("div",{class:"table-cell text-left"},"MEM",-1),og={class:"table-cell"},ag={class:"progress"},lg=["aria-valuenow"],cg={class:"table-cell"},ug={class:"table-row"},dg=mi("div",{class:"table-cell text-left"},"SWAP",-1),fg={class:"table-cell"},pg={class:"progress"},hg=["aria-valuenow"],gg={class:"table-cell"};const mg={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},mem(){return this.stats.mem},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return this.stats.cpu_hz_current},cpu_hz(){return this.stats.cpu_hz},swap(){return this.stats.swap},percpus(){return this.stats.percpu.map((({cpu_number:e,total:t})=>({number:e,total:t})))}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},bg=(0,Wl.Z)(mg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Hh,[mi("div",Vh,E(s.cpu_name),1),mi("div",Gh,[s.args.percpu?_i("v-if",!0):(ii(),ci("div",Wh,[Zh,mi("div",Kh,[mi("div",Xh,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":s.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.cpu}%;`)},"   ",14,Qh)])]),mi("div",Jh,E(s.cpu)+"%",1)])),s.args.percpu?(ii(!0),ci(Jr,{key:1},pr(s.percpus,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",Yh,"CPU"+E(e.number),1),mi("div",eg,[mi("div",tg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":e.total,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${e.total}%;`)},"   ",14,ng)])]),mi("div",rg,E(e.total)+"%",1)])))),128)):_i("v-if",!0),mi("div",ig,[sg,mi("div",og,[mi("div",ag,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("mem")}`),role:"progressbar","aria-valuenow":s.mem,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.mem}%;`)},"   ",14,lg)])]),mi("div",cg,E(s.mem)+"%",1)]),mi("div",ug,[dg,mi("div",fg,[mi("div",pg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("swap")}`),role:"progressbar","aria-valuenow":s.swap,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.swap}%;`)},"   ",14,hg)])]),mi("div",gg,E(s.swap)+"%",1)])])])}]]),vg={class:"plugin",id:"raid"},yg={key:0,class:"table-row"},wg=[mi("div",{class:"table-cell text-left title"},"RAID disks",-1),mi("div",{class:"table-cell"},"Used",-1),mi("div",{class:"table-cell"},"Total",-1)],xg={class:"table-cell text-left"},_g={class:"warning"};const kg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const e=Object.entries(this.stats).map((([e,t])=>{const n=Object.entries(t.components).map((([e,t])=>({number:t,name:e})));return{name:e,type:null==t.type?"UNKNOWN":t.type,used:t.used,available:t.available,status:t.status,degraded:t.used0}},methods:{getAlert:e=>e.inactive?"critical":e.degraded?"warning":"ok"}},Cg=(0,Wl.Z)(kg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",vg,[s.hasDisks?(ii(),ci("div",yg,wg)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.disks,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",xg,[wi(E(e.type.toUppercase())+" "+E(e.name)+" ",1),or(mi("div",_g,"└─ Degraded mode",512),[[As,e.degraded]]),or(mi("div",null,"   └─ "+E(e.config),513),[[As,e.degraded]]),or(mi("div",{class:"critical"},"└─ Status "+E(e.status),513),[[As,e.inactive]]),e.inactive?(ii(!0),ci(Jr,{key:0},pr(e.components,((t,n)=>(ii(),ci("div",{key:n},"    "+E(n===e.components.length-1?"└─":"├─")+" disk "+E(t.number)+": "+E(t.name),1)))),128)):_i("v-if",!0)]),or(mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.used),3),[[As,!e.inactive]]),or(mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.available),3),[[As,!e.inactive]])])))),128))])}]]),Tg={class:"plugin",id:"sensors"},Sg={key:0,class:"table-row"},Ag=[mi("div",{class:"table-cell text-left title"},"SENSORS",-1)],Eg={class:"table-cell text-left"},Og={class:"table-cell"};const Ig={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},sensors(){return this.stats.filter((e=>!(Array.isArray(e.value)&&0===e.value.length||0===e.value))).map((e=>(this.args.fahrenheit&&"battery"!=e.type&&"fan_speed"!=e.type&&(e.value=parseFloat(1.8*e.value+32).toFixed(1),e.unit="F"),e)))}},methods:{getAlert(e){const t="battery"==e.type?100-e.value:e.value;return Mo.getAlert("sensors","sensors_"+e.type+"_",t)}}},Pg=(0,Wl.Z)(Ig,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Tg,[s.sensors.length>0?(ii(),ci("div",Sg,Ag)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.sensors,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",Eg,E(e.label),1),mi("div",Og,E(e.unit),1),mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.value),3)])))),128))])}]]),Lg={class:"plugin",id:"system"},Ng={key:0,class:"critical"},Mg={class:"title"},Dg={key:1,class:"hidden-xs hidden-sm"},jg={key:2,class:"hidden-xs hidden-sm"};const Rg={props:{data:{type:Object}},data:()=>({store:Po}),computed:{stats(){return this.data.stats.system},isLinux(){return this.data.isLinux},hostname(){return this.stats.hostname},platform(){return this.stats.platform},os(){return{name:this.stats.os_name,version:this.stats.os_version}},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},qg=(0,Wl.Z)(Rg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Lg,[s.isDisconnected?(ii(),ci("span",Ng,"Disconnected from")):_i("v-if",!0),mi("span",Mg,E(s.hostname),1),s.isLinux?(ii(),ci("span",Dg," ("+E(s.humanReadableName)+" / "+E(s.os.name)+" "+E(s.os.version)+") ",1)):_i("v-if",!0),s.isLinux?_i("v-if",!0):(ii(),ci("span",jg," ("+E(s.os.name)+" "+E(s.os.version)+" "+E(s.platform)+") ",1))])}]]),Bg={class:"plugin",id:"uptime"};const Ug={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Fg=(0,Wl.Z)(Ug,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Bg,[mi("span",null,"Uptime: "+E(s.value),1)])}]]),$g={class:"plugin",id:"wifi"},zg={key:0,class:"table-row"},Hg=[mi("div",{class:"table-cell text-left title"},"WIFI",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"dBm",-1)],Vg={class:"table-cell text-left"},Gg={key:0},Wg=mi("div",{class:"table-cell"},null,-1);const Zg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const e=this.stats.map((e=>{if(""!==e.ssid)return{ssid:e.ssid,encrypted:e.encrypted,signal:e.signal,encryption_type:e.encryption_type}})).filter(Boolean);return(0,nc.orderBy)(e,["ssid"])}},methods:{getDecoration(e,t){if(void 0!==this.view[e.ssid][t])return this.view[e.ssid][t].decoration.toLowerCase()}}},Kg={components:{GlancesHelp:Zl,GlancesPluginAlert:ic,GlancesPluginCloud:lc,GlancesPluginConnections:Pc,GlancesPluginCpu:Tu,GlancesPluginDiskio:Wu,GlancesPluginDocker:dd,GlancesPluginFolders:vd,GlancesPluginFs:Ed,GlancesPluginGpu:Gd,GlancesPluginIp:ef,GlancesPluginIrq:cf,GlancesPluginLoad:kf,GlancesPluginMem:qf,GlancesPluginMemMore:ep,GlancesPluginMemswap:gp,GlancesPluginNetwork:Np,GlancesPluginNow:jp,GlancesPluginPercpu:Jp,GlancesPluginPorts:uh,GlancesPluginProcess:zh,GlancesPluginQuicklook:bg,GlancesPluginRaid:Cg,GlancesPluginSensors:Pg,GlancesPluginSystem:qg,GlancesPluginUptime:Fg,GlancesPluginWifi:(0,Wl.Z)(Zg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",$g,[s.hotspots.length>0?(ii(),ci("div",zg,Hg)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.hotspots,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Vg,[wi(E(e.$filters.limitTo(t.ssid,20))+" ",1),t.encrypted?(ii(),ci("span",Gg,E(t.encryption_type),1)):_i("v-if",!0)]),Wg,mi("div",{class:C(["table-cell",s.getDecoration(t,"signal")])},E(t.signal),3)])))),128))])}]])},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},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:e}=this,t=e.stats&&e.stats.system&&e.stats.system.hostname||"";return t?`${t} - Glances`:"Glances"}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){Ao("a",(()=>{this.store.args.sort_processes_key=null})),Ao("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Ao("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Ao("u",(()=>{this.store.args.sort_processes_key="username"})),Ao("p",(()=>{this.store.args.sort_processes_key="name"})),Ao("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Ao("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Ao("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Ao("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Ao("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Ao("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Ao("j",(()=>{this.store.args.programs=!this.store.args.programs})),Ao("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Ao("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Ao("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Ao("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Ao("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Ao("/",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Ao("shift+D",(()=>{this.store.args.disable_docker=!this.store.args.disable_docker})),Ao("b",(()=>{this.store.args.byte=!this.store.args.byte})),Ao("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),Ao("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Ao("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Ao("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Ao("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Ao("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Ao("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Ao("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Ao("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Ao("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Ao("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})),Ao("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Ao("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Ao("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const e=window.__GLANCES__||{},t=isFinite(e["refresh-time"])?parseInt(e["refresh-time"],10):void 0;Do.init(t),this.setupHotKeys()},beforeUnmount(){Ao.unbind()}};const Xg=((...e)=>{const t=Ps().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Ls(e);if(!r)return;const i=t._component;H(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t})((0,Wl.Z)(Kg,[["render",function(e,t,n,r,i,s){const o=cr("glances-help"),a=cr("glances-plugin-system"),l=cr("glances-plugin-ip"),c=cr("glances-plugin-uptime"),u=cr("glances-plugin-cloud"),d=cr("glances-plugin-quicklook"),f=cr("glances-plugin-cpu"),p=cr("glances-plugin-percpu"),h=cr("glances-plugin-gpu"),g=cr("glances-plugin-mem"),m=cr("glances-plugin-mem-more"),b=cr("glances-plugin-memswap"),v=cr("glances-plugin-load"),y=cr("glances-plugin-network"),w=cr("glances-plugin-connections"),x=cr("glances-plugin-wifi"),_=cr("glances-plugin-ports"),k=cr("glances-plugin-diskio"),C=cr("glances-plugin-fs"),T=cr("glances-plugin-irq"),S=cr("glances-plugin-folders"),A=cr("glances-plugin-raid"),E=cr("glances-plugin-sensors"),O=cr("glances-plugin-now"),I=cr("glances-plugin-docker"),P=cr("glances-plugin-process"),L=cr("glances-plugin-alert");return s.dataLoaded?s.args.help_tag?(ii(),ui(o,{key:1})):(ii(),ci("main",Ds,[mi("div",js,[mi("div",Rs,[mi("div",qs,[mi("div",Bs,[bi(a,{data:s.data},null,8,["data"])]),s.args.disable_ip?_i("v-if",!0):(ii(),ci("div",Us,[bi(l,{data:s.data},null,8,["data"])])),mi("div",Fs,[bi(c,{data:s.data},null,8,["data"])])])])]),mi("div",$s,[mi("div",zs,[mi("div",Hs,[mi("div",Vs,[bi(u,{data:s.data},null,8,["data"])])])]),mi("div",Gs,[s.args.disable_quicklook?_i("v-if",!0):(ii(),ci("div",Ws,[bi(d,{data:s.data},null,8,["data"])])),s.args.disable_cpu||s.args.percpu?_i("v-if",!0):(ii(),ci("div",Zs,[bi(f,{data:s.data},null,8,["data"])])),!s.args.disable_cpu&&s.args.percpu?(ii(),ci("div",Ks,[bi(p,{data:s.data},null,8,["data"])])):_i("v-if",!0),!s.args.disable_gpu&&s.hasGpu?(ii(),ci("div",Xs,[bi(h,{data:s.data},null,8,["data"])])):_i("v-if",!0),s.args.disable_mem?_i("v-if",!0):(ii(),ci("div",Qs,[bi(g,{data:s.data},null,8,["data"])])),_i(" NOTE: display if MEM enabled and GPU disabled "),s.args.disable_mem||!s.args.disable_gpu&&s.hasGpu?_i("v-if",!0):(ii(),ci("div",Js,[bi(m,{data:s.data},null,8,["data"])])),s.args.disable_memswap?_i("v-if",!0):(ii(),ci("div",Ys,[bi(b,{data:s.data},null,8,["data"])])),s.args.disable_load?_i("v-if",!0):(ii(),ci("div",eo,[bi(v,{data:s.data},null,8,["data"])]))])]),mi("div",to,[mi("div",no,[s.args.disable_left_sidebar?_i("v-if",!0):(ii(),ci("div",ro,[mi("div",io,[s.args.disable_network?_i("v-if",!0):(ii(),ui(y,{key:0,id:"plugin-network",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.isLinux&&!s.args.disable_connections?(ii(),ui(w,{key:1,id:"plugin-connections",class:"plugin table-row-group",data:s.data},null,8,["data"])):_i("v-if",!0),s.args.disable_wifi?_i("v-if",!0):(ii(),ui(x,{key:2,id:"plugin-wifi",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_ports?_i("v-if",!0):(ii(),ui(_,{key:3,id:"plugin-ports",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_diskio?_i("v-if",!0):(ii(),ui(k,{key:4,id:"plugin-diskio",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_fs?_i("v-if",!0):(ii(),ui(C,{key:5,id:"plugin-fs",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.enable_irq?(ii(),ui(T,{key:6,id:"plugin-irq",class:"plugin table-row-group",data:s.data},null,8,["data"])):_i("v-if",!0),s.args.disable_folders?_i("v-if",!0):(ii(),ui(S,{key:7,id:"plugin-folders",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.raid?_i("v-if",!0):(ii(),ui(A,{key:8,id:"plugin-raid",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_sensors?_i("v-if",!0):(ii(),ui(E,{key:9,id:"plugin-sensors",class:"plugin table-row-group",data:s.data},null,8,["data"])),bi(O,{data:s.data},null,8,["data"])])])),mi("div",so,[s.args.disable_docker?_i("v-if",!0):(ii(),ui(I,{key:0,data:s.data},null,8,["data"])),bi(P,{data:s.data},null,8,["data"]),s.args.disable_alert?_i("v-if",!0):(ii(),ui(L,{key:1,data:s.data},null,8,["data"]))])])])])):(ii(),ci("div",Ns,Ms))}]]));Xg.config.globalProperties.$filters=e,Xg.mount("#app")})()})(); \ No newline at end of file +var oo="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function ao(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function lo(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var uo={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,"-":oo?173:189,"=":oo?61:187,";":oo?59:186,"'":222,"[":219,"]":221,"\\":220},fo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},po={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ho={16:!1,18:!1,17:!1,91:!1},go={},mo=1;mo<20;mo++)uo["f".concat(mo)]=111+mo;var bo=[],vo=!1,yo="all",wo=[],xo=function(e){return uo[e.toLowerCase()]||fo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function _o(e){yo=e||"all"}function ko(){return yo||"all"}var Co=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,s=void 0===i?"+":i;co(t).forEach((function(e){var t=e.split(s),i=t.length,o=t[i-1],a="*"===o?"*":xo(o);if(go[a]){n||(n=ko());var l=i>1?lo(fo,t):[];go[a]=go[a].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s0,ho)Object.prototype.hasOwnProperty.call(ho,s)&&(!ho[s]&&t.mods.indexOf(+s)>-1||ho[s]&&-1===t.mods.indexOf(+s))&&(i=!1);(0!==t.mods.length||ho[16]||ho[18]||ho[17]||ho[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function So(e,t){var n=go["*"],r=e.keyCode||e.which||e.charCode;if(Ao.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===bo.indexOf(r)&&229!==r&&bo.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=po[t];e[t]&&-1===bo.indexOf(n)?bo.push(n):!e[t]&&bo.indexOf(n)>-1?bo.splice(bo.indexOf(n),1):"metaKey"===t&&e[t]&&3===bo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(bo=bo.slice(bo.indexOf(n))))})),r in ho){for(var i in ho[r]=!0,fo)fo[i]===r&&(Ao[i]=!0);if(!n)return}for(var s in ho)Object.prototype.hasOwnProperty.call(ho,s)&&(ho[s]=e[po[s]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===bo.indexOf(17)&&bo.push(17),-1===bo.indexOf(18)&&bo.push(18),ho[17]=!0,ho[18]=!0);var o=ko();if(n)for(var a=0;a1&&(i=lo(fo,e)),(e="*"===(e=e[e.length-1])?"*":xo(e))in go||(go[e]=[]),go[e].push({keyup:l,keydown:c,scope:s,mods:i,shortcut:r[a],method:n,key:r[a],splitKey:u,element:o});void 0!==o&&!function(e){return wo.indexOf(e)>-1}(o)&&window&&(wo.push(o),ao(o,"keydown",(function(e){So(e,o)}),d),vo||(vo=!0,ao(window,"focus",(function(){bo=[]}),d)),ao(o,"keyup",(function(e){So(e,o),function(e){var t=e.keyCode||e.which||e.charCode,n=bo.indexOf(t);if(n>=0&&bo.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&bo.splice(0,bo.length),93!==t&&224!==t||(t=91),t in ho)for(var r in ho[t]=!1,fo)fo[r]===t&&(Ao[r]=!1)}(e)}),d))}var Eo={getPressedKeyString:function(){return bo.map((function(e){return t=e,Object.keys(uo).find((function(e){return uo[e]===t}))||function(e){return Object.keys(fo).find((function(t){return fo[t]===e}))}(e)||String.fromCharCode(e);var t}))},setScope:_o,getScope:ko,deleteScope:function(e,t){var n,r;for(var i in e||(e=ko()),go)if(Object.prototype.hasOwnProperty.call(go,i))for(n=go[i],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(go).forEach((function(n){go[n].filter((function(n){return n.scope===t&&n.shortcut===e})).forEach((function(e){e&&e.method&&e.method()}))}))},unbind:function(e){if(void 0===e)Object.keys(go).forEach((function(e){return delete go[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&Co(e)}));else if("object"==typeof e)e.key&&Co(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=this.limits[e][l]){var c=l.lastIndexOf("_");return l.substring(c+1)+s}}return"ok"+s}getAlertLog(e,t,n,r){return this.getAlert(e,t,n,r,!0)}};const Do=new class{data=void 0;init(e=60){let t;const n=()=>(Po.status="PENDING",Promise.all([fetch("api/3/all",{method:"GET"}).then((e=>e.json())),fetch("api/3/all/views",{method:"GET"}).then((e=>e.json()))]).then((e=>{const t={stats:e[0],views:e[1],isBsd:"FreeBSD"===e[0].system.os_name,isLinux:"Linux"===e[0].system.os_name,isSunOS:"SunOS"===e[0].system.os_name,isMac:"Darwin"===e[0].system.os_name,isWindows:"Windows"===e[0].system.os_name};this.data=t,Po.data=t,Po.status="SUCCESS"})).catch((e=>{console.log(e),Po.status="FAILURE"})).then((()=>{t&&clearTimeout(t),t=setTimeout(n,1e3*e)})));n(),fetch("api/3/all/limits",{method:"GET"}).then((e=>e.json())).then((e=>{Mo.setLimits(e)})),fetch("api/3/args",{method:"GET"}).then((e=>e.json())).then(((e={})=>{Po.args={...Po.args,...e}})),fetch("api/3/config",{method:"GET"}).then((e=>e.json())).then(((e={})=>{Po.config={...Po.config,...e}}))}getData(){return this.data}};const jo=new class{constructor(){this.favico=new(No())({animation:"none"})}badge(e){this.favico.badge(e)}reset(){this.favico.reset()}},Ro={key:0},qo={class:"container-fluid"},Bo={class:"row"},Uo={class:"col-sm-12 col-lg-24"},Fo=mi("div",{class:"row"}," ",-1),$o={class:"row"},zo={class:"col-sm-12 col-lg-24"},Ho=mi("div",{class:"row"}," ",-1),Vo={class:"divTable",style:{width:"100%"}},Go={class:"divTableBody"},Wo={class:"divTableRow"},Zo={class:"divTableHead"},Ko={class:"divTableHead"},Xo={class:"divTableHead"},Qo={class:"divTableHead"},Jo={class:"divTableRow"},Yo={class:"divTableCell"},ea={class:"divTableCell"},ta={class:"divTableCell"},na={class:"divTableCell"},ra={class:"divTableRow"},ia={class:"divTableCell"},sa={class:"divTableCell"},oa={class:"divTableCell"},aa={class:"divTableCell"},la={class:"divTableRow"},ca={class:"divTableCell"},ua={class:"divTableCell"},da={class:"divTableCell"},fa={class:"divTableCell"},pa={class:"divTableRow"},ha={class:"divTableCell"},ga={class:"divTableCell"},ma={class:"divTableCell"},ba={class:"divTableCell"},va={class:"divTableRow"},ya={class:"divTableCell"},wa={class:"divTableCell"},xa={class:"divTableCell"},_a={class:"divTableCell"},ka={class:"divTableRow"},Ca={class:"divTableCell"},Ta={class:"divTableCell"},Sa={class:"divTableCell"},Aa={class:"divTableCell"},Ea={class:"divTableRow"},Oa={class:"divTableCell"},Ia={class:"divTableCell"},Pa={class:"divTableCell"},La={class:"divTableCell"},Na={class:"divTableRow"},Ma=mi("div",{class:"divTableCell"}," ",-1),Da={class:"divTableCell"},ja={class:"divTableCell"},Ra={class:"divTableCell"},qa={class:"divTableRow"},Ba=mi("div",{class:"divTableCell"}," ",-1),Ua={class:"divTableCell"},Fa={class:"divTableCell"},$a={class:"divTableCell"},za={class:"divTableRow"},Ha=mi("div",{class:"divTableCell"}," ",-1),Va={class:"divTableCell"},Ga={class:"divTableCell"},Wa={class:"divTableCell"},Za={class:"divTableRow"},Ka=mi("div",{class:"divTableCell"}," ",-1),Xa={class:"divTableCell"},Qa=mi("div",{class:"divTableCell"}," ",-1),Ja={class:"divTableCell"},Ya={class:"divTableRow"},el=mi("div",{class:"divTableCell"}," ",-1),tl={class:"divTableCell"},nl=mi("div",{class:"divTableCell"}," ",-1),rl=mi("div",{class:"divTableCell"}," ",-1),il={class:"divTableRow"},sl=mi("div",{class:"divTableCell"}," ",-1),ol={class:"divTableCell"},al=mi("div",{class:"divTableCell"}," ",-1),ll=mi("div",{class:"divTableCell"}," ",-1),cl={class:"divTableRow"},ul=mi("div",{class:"divTableCell"}," ",-1),dl={class:"divTableCell"},fl=mi("div",{class:"divTableCell"}," ",-1),pl=mi("div",{class:"divTableCell"}," ",-1),hl={class:"divTableRow"},gl=mi("div",{class:"divTableCell"}," ",-1),ml={class:"divTableCell"},bl=mi("div",{class:"divTableCell"}," ",-1),vl=mi("div",{class:"divTableCell"}," ",-1),yl={class:"divTableRow"},wl=mi("div",{class:"divTableCell"}," ",-1),xl={class:"divTableCell"},_l=mi("div",{class:"divTableCell"}," ",-1),kl=mi("div",{class:"divTableCell"}," ",-1),Cl={class:"divTableRow"},Tl=mi("div",{class:"divTableCell"}," ",-1),Sl={class:"divTableCell"},Al=mi("div",{class:"divTableCell"}," ",-1),El=mi("div",{class:"divTableCell"}," ",-1),Ol={class:"divTableRow"},Il=mi("div",{class:"divTableCell"}," ",-1),Pl={class:"divTableCell"},Ll=mi("div",{class:"divTableCell"}," ",-1),Nl=mi("div",{class:"divTableCell"}," ",-1),Ml={class:"divTableRow"},Dl=mi("div",{class:"divTableCell"}," ",-1),jl={class:"divTableCell"},Rl=mi("div",{class:"divTableCell"}," ",-1),ql=mi("div",{class:"divTableCell"}," ",-1),Bl={class:"divTableRow"},Ul=mi("div",{class:"divTableCell"}," ",-1),Fl={class:"divTableCell"},$l=mi("div",{class:"divTableCell"}," ",-1),zl=mi("div",{class:"divTableCell"}," ",-1),Hl=mi("div",null,[mi("p",null,[wi(" For an exhaustive list of key bindings, "),mi("a",{href:"https://glances.readthedocs.io/en/latest/cmds.html#interactive-commands"},"click here"),wi(". ")])],-1),Vl=mi("div",null,[mi("p",null,[wi("Press "),mi("b",null,"h"),wi(" to came back to Glances.")])],-1);const Gl={data:()=>({help:void 0}),mounted(){fetch("api/3/help",{method:"GET"}).then((e=>e.json())).then((e=>this.help=e))}};var Wl=n(3744);const Zl=(0,Wl.Z)(Gl,[["render",function(e,t,n,r,i,s){return i.help?(ii(),ci("div",Ro,[mi("div",qo,[mi("div",Bo,[mi("div",Uo,E(i.help.version)+" "+E(i.help.psutil_version),1)]),Fo,mi("div",$o,[mi("div",zo,E(i.help.configuration_file),1)]),Ho]),mi("div",Vo,[mi("div",Go,[mi("div",Wo,[mi("div",Zo,E(i.help.header_sort.replace(":","")),1),mi("div",Ko,E(i.help.header_show_hide.replace(":","")),1),mi("div",Xo,E(i.help.header_toggle.replace(":","")),1),mi("div",Qo,E(i.help.header_miscellaneous.replace(":","")),1)]),mi("div",Jo,[mi("div",Yo,E(i.help.sort_auto),1),mi("div",ea,E(i.help.show_hide_application_monitoring),1),mi("div",ta,E(i.help.toggle_bits_bytes),1),mi("div",na,E(i.help.misc_erase_process_filter),1)]),mi("div",ra,[mi("div",ia,E(i.help.sort_cpu),1),mi("div",sa,E(i.help.show_hide_diskio),1),mi("div",oa,E(i.help.toggle_count_rate),1),mi("div",aa,E(i.help.misc_generate_history_graphs),1)]),mi("div",la,[mi("div",ca,E(i.help.sort_io_rate),1),mi("div",ua,E(i.help.show_hide_containers),1),mi("div",da,E(i.help.toggle_used_free),1),mi("div",fa,E(i.help.misc_help),1)]),mi("div",pa,[mi("div",ha,E(i.help.sort_mem),1),mi("div",ga,E(i.help.show_hide_top_extended_stats),1),mi("div",ma,E(i.help.toggle_bar_sparkline),1),mi("div",ba,E(i.help.misc_accumulate_processes_by_program),1)]),mi("div",va,[mi("div",ya,E(i.help.sort_process_name),1),mi("div",wa,E(i.help.show_hide_filesystem),1),mi("div",xa,E(i.help.toggle_separate_combined),1),mi("div",_a,E(i.help.misc_kill_process)+" - N/A in WebUI ",1)]),mi("div",ka,[mi("div",Ca,E(i.help.sort_cpu_times),1),mi("div",Ta,E(i.help.show_hide_gpu),1),mi("div",Sa,E(i.help.toggle_live_cumulative),1),mi("div",Aa,E(i.help.misc_reset_processes_summary_min_max),1)]),mi("div",Ea,[mi("div",Oa,E(i.help.sort_user),1),mi("div",Ia,E(i.help.show_hide_ip),1),mi("div",Pa,E(i.help.toggle_linux_percentage),1),mi("div",La,E(i.help.misc_quit),1)]),mi("div",Na,[Ma,mi("div",Da,E(i.help.show_hide_tcp_connection),1),mi("div",ja,E(i.help.toggle_cpu_individual_combined),1),mi("div",Ra,E(i.help.misc_reset_history),1)]),mi("div",qa,[Ba,mi("div",Ua,E(i.help.show_hide_alert),1),mi("div",Fa,E(i.help.toggle_gpu_individual_combined),1),mi("div",$a,E(i.help.misc_delete_warning_alerts),1)]),mi("div",za,[Ha,mi("div",Va,E(i.help.show_hide_network),1),mi("div",Ga,E(i.help.toggle_short_full),1),mi("div",Wa,E(i.help.misc_delete_warning_and_critical_alerts),1)]),mi("div",Za,[Ka,mi("div",Xa,E(i.help.sort_cpu_times),1),Qa,mi("div",Ja,E(i.help.misc_edit_process_filter_pattern)+" - N/A in WebUI ",1)]),mi("div",Ya,[el,mi("div",tl,E(i.help.show_hide_irq),1),nl,rl]),mi("div",il,[sl,mi("div",ol,E(i.help.show_hide_raid_plugin),1),al,ll]),mi("div",cl,[ul,mi("div",dl,E(i.help.show_hide_sensors),1),fl,pl]),mi("div",hl,[gl,mi("div",ml,E(i.help.show_hide_wifi_module),1),bl,vl]),mi("div",yl,[wl,mi("div",xl,E(i.help.show_hide_processes),1),_l,kl]),mi("div",Cl,[Tl,mi("div",Sl,E(i.help.show_hide_left_sidebar),1),Al,El]),mi("div",Ol,[Il,mi("div",Pl,E(i.help.show_hide_quick_look),1),Ll,Nl]),mi("div",Ml,[Dl,mi("div",jl,E(i.help.show_hide_cpu_mem_swap),1),Rl,ql]),mi("div",Bl,[Ul,mi("div",Fl,E(i.help.show_hide_all),1),$l,zl])])]),Hl,Vl])):_i("v-if",!0)}]]),Kl={class:"plugin"},Xl={id:"alerts"},Ql={key:0,class:"title"},Jl={key:1,class:"title"},Yl={id:"alert"},ec={class:"table"},tc={class:"table-cell text-left"};var nc=n(6486);const rc={props:{data:{type:Object}},computed:{stats(){return this.data.stats.alert},alerts(){return(this.stats||[]).map((e=>{const t={};if(t.name=e[3],t.level=e[2],t.begin=1e3*e[0],t.end=1e3*e[1],t.ongoing=-1==e[1],t.min=e[6],t.mean=e[5],t.max=e[4],!t.ongoing){const e=t.end-t.begin,n=parseInt(e/1e3%60),r=parseInt(e/6e4%60),i=parseInt(e/36e5%24);t.duration=(0,nc.padStart)(i,2,"0")+":"+(0,nc.padStart)(r,2,"0")+":"+(0,nc.padStart)(n,2,"0")}return t}))},hasAlerts(){return this.countAlerts>0},countAlerts(){return this.alerts.length},hasOngoingAlerts(){return this.countOngoingAlerts>0},countOngoingAlerts(){return this.alerts.filter((({ongoing:e})=>e)).length}},watch:{countOngoingAlerts(){this.countOngoingAlerts?jo.badge(this.countOngoingAlerts):jo.reset()}},methods:{formatDate:e=>new Date(e).toISOString().slice(0,19).replace(/[^\d-:]/," ")}},ic=(0,Wl.Z)(rc,[["render",function(e,t,n,r,i,s){return ii(),ci("div",Kl,[mi("section",Xl,[s.hasAlerts?(ii(),ci("span",Ql," Warning or critical alerts (last "+E(s.countAlerts)+" entries) ",1)):(ii(),ci("span",Jl,"No warning or critical alert detected"))]),mi("section",Yl,[mi("div",ec,[(ii(!0),ci(Jr,null,pr(s.alerts,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",tc,[wi(E(s.formatDate(t.begin))+" ("+E(t.ongoing?"ongoing":t.duration)+") - ",1),or(mi("span",null,E(t.level)+" on ",513),[[As,!t.ongoing]]),mi("span",{class:C(t.level.toLowerCase())},E(t.name),3),wi(" ("+E(e.$filters.number(t.max,1))+") ",1)])])))),128))])])])}]]),sc={key:0,id:"cloud",class:"plugin"},oc={class:"title"};const ac={props:{data:{type:Object}},computed:{stats(){return this.data.stats.cloud},provider(){return void 0!==this.stats.id?`${stats.platform}`:null},instance(){const{stats:e}=this;return void 0!==this.stats.id?`${e.type} instance ${e.name} (${e.region})`:null}}},lc=(0,Wl.Z)(ac,[["render",function(e,t,n,r,i,s){return s.instance||s.provider?(ii(),ci("section",sc,[mi("span",oc,E(s.provider),1),wi(" "+E(s.instance),1)])):_i("v-if",!0)}]]),cc={class:"plugin",id:"connections"},uc=mi("div",{class:"table-row"},[mi("div",{class:"table-cell text-left title"},"TCP CONNECTIONS"),mi("div",{class:"table-cell"})],-1),dc={class:"table-row"},fc=mi("div",{class:"table-cell text-left"},"Listen",-1),pc=mi("div",{class:"table-cell"},null,-1),hc={class:"table-cell"},gc={class:"table-row"},mc=mi("div",{class:"table-cell text-left"},"Initiated",-1),bc=mi("div",{class:"table-cell"},null,-1),vc={class:"table-cell"},yc={class:"table-row"},wc=mi("div",{class:"table-cell text-left"},"Established",-1),xc=mi("div",{class:"table-cell"},null,-1),_c={class:"table-cell"},kc={class:"table-row"},Cc=mi("div",{class:"table-cell text-left"},"Terminated",-1),Tc=mi("div",{class:"table-cell"},null,-1),Sc={class:"table-cell"},Ac={class:"table-row"},Ec=mi("div",{class:"table-cell text-left"},"Tracked",-1),Oc=mi("div",{class:"table-cell"},null,-1);const Ic={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},Pc=(0,Wl.Z)(Ic,[["render",function(e,t,n,r,i,s){return ii(),ci("section",cc,[uc,mi("div",dc,[fc,pc,mi("div",hc,E(s.listen),1)]),mi("div",gc,[mc,bc,mi("div",vc,E(s.initiated),1)]),mi("div",yc,[wc,xc,mi("div",_c,E(s.established),1)]),mi("div",kc,[Cc,Tc,mi("div",Sc,E(s.terminated),1)]),mi("div",Ac,[Ec,Oc,mi("div",{class:C(["table-cell",s.getDecoration("nf_conntrack_percent")])},E(s.tracked.count)+"/"+E(s.tracked.max),3)])])}]]),Lc={id:"cpu",class:"plugin"},Nc={class:"row"},Mc={class:"col-sm-24 col-md-12 col-lg-8"},Dc={class:"table"},jc={class:"table-row"},Rc=mi("div",{class:"table-cell text-left title"},"CPU",-1),qc={class:"table-cell"},Bc={class:"table-row"},Uc=mi("div",{class:"table-cell text-left"},"user:",-1),Fc={class:"table-row"},$c=mi("div",{class:"table-cell text-left"},"system:",-1),zc={class:"table-row"},Hc=mi("div",{class:"table-cell text-left"},"iowait:",-1),Vc={class:"table-row"},Gc=mi("div",{class:"table-cell text-left"},"dpc:",-1),Wc={class:"hidden-xs hidden-sm col-md-12 col-lg-8"},Zc={class:"table"},Kc={class:"table-row"},Xc=mi("div",{class:"table-cell text-left"},"idle:",-1),Qc={class:"table-cell"},Jc={class:"table-row"},Yc=mi("div",{class:"table-cell text-left"},"irq:",-1),eu={class:"table-cell"},tu={class:"table-row"},nu=mi("div",{class:"table-cell text-left"},"inter:",-1),ru={class:"table-cell"},iu={class:"table-row"},su=mi("div",{class:"table-cell text-left"},"nice:",-1),ou={class:"table-cell"},au={key:0,class:"table-row"},lu=mi("div",{class:"table-cell text-left"},"ctx_sw:",-1),cu={class:"table-row"},uu=mi("div",{class:"table-cell text-left"},"steal:",-1),du={key:1,class:"table-row"},fu=mi("div",{class:"table-cell text-left"},"syscal:",-1),pu={class:"table-cell"},hu={class:"hidden-xs hidden-sm hidden-md col-lg-8"},gu={class:"table"},mu={key:0,class:"table-row"},bu=mi("div",{class:"table-cell text-left"},"ctx_sw:",-1),vu={key:1,class:"table-row"},yu=mi("div",{class:"table-cell text-left"},"inter:",-1),wu={class:"table-cell"},xu={key:2,class:"table-row"},_u=mi("div",{class:"table-cell text-left"},"sw_int:",-1),ku={class:"table-cell"};const Cu={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},ctx_switches(){const{stats:e}=this;return e.ctx_switches?Math.floor(e.ctx_switches/e.time_since_update):null},interrupts(){const{stats:e}=this;return e.interrupts?Math.floor(e.interrupts/e.time_since_update):null},soft_interrupts(){const{stats:e}=this;return e.soft_interrupts?Math.floor(e.soft_interrupts/e.time_since_update):null},syscalls(){const{stats:e}=this;return e.syscalls?Math.floor(e.syscalls/e.time_since_update):null}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},Tu=(0,Wl.Z)(Cu,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Lc,[mi("div",Nc,[mi("div",Mc,[mi("div",Dc,[mi("div",jc,[Rc,mi("div",qc,E(s.total)+"%",1)]),mi("div",Bc,[Uc,mi("div",{class:C(["table-cell",s.getDecoration("user")])},E(s.user)+"%",3)]),mi("div",Fc,[$c,mi("div",{class:C(["table-cell",s.getDecoration("system")])},E(s.system)+"%",3)]),or(mi("div",zc,[Hc,mi("div",{class:C(["table-cell",s.getDecoration("iowait")])},E(s.iowait)+"%",3)],512),[[As,null!=s.iowait]]),or(mi("div",Vc,[Gc,mi("div",{class:C(["table-cell",s.getDecoration("dpc")])},E(s.dpc)+"%",3)],512),[[As,null==s.iowait&&null!=s.dpc]])])]),mi("div",Wc,[mi("div",Zc,[mi("div",Kc,[Xc,mi("div",Qc,E(s.idle)+"%",1)]),or(mi("div",Jc,[Yc,mi("div",eu,E(s.irq)+"%",1)],512),[[As,null!=s.irq]]),_i(" If no irq, display interrupts "),or(mi("div",tu,[nu,mi("div",ru,E(s.interrupts),1)],512),[[As,null==s.irq]]),or(mi("div",iu,[su,mi("div",ou,E(s.nice)+"%",1)],512),[[As,null!=s.nice]]),_i(" If no nice, display ctx_switches "),null==s.nice&&s.ctx_switches?(ii(),ci("div",au,[lu,mi("div",{class:C(["table-cell",s.getDecoration("ctx_switches")])},E(s.ctx_switches),3)])):_i("v-if",!0),or(mi("div",cu,[uu,mi("div",{class:C(["table-cell",s.getDecoration("steal")])},E(s.steal)+"%",3)],512),[[As,null!=s.steal]]),!s.isLinux&&s.syscalls?(ii(),ci("div",du,[fu,mi("div",pu,E(s.syscalls),1)])):_i("v-if",!0)])]),mi("div",hu,[mi("div",gu,[_i(" If not already display instead of nice, then display ctx_switches "),null!=s.nice&&s.ctx_switches?(ii(),ci("div",mu,[bu,mi("div",{class:C(["table-cell",s.getDecoration("ctx_switches")])},E(s.ctx_switches),3)])):_i("v-if",!0),_i(" If not already display instead of irq, then display interrupts "),null!=s.irq&&s.interrupts?(ii(),ci("div",vu,[yu,mi("div",wu,E(s.interrupts),1)])):_i("v-if",!0),s.isWindows||s.isSunOS||!s.soft_interrupts?_i("v-if",!0):(ii(),ci("div",xu,[_u,mi("div",ku,E(s.soft_interrupts),1)]))])])])])}]]),Su={class:"plugin",id:"diskio"},Au={key:0,class:"table-row"},Eu=mi("div",{class:"table-cell text-left title"},"DISK I/O",-1),Ou={class:"table-cell"},Iu={class:"table-cell"},Pu={class:"table-cell"},Lu={class:"table-cell"},Nu={class:"table-cell text-left"};var Mu=n(1036),Du=n.n(Mu);function ju(e,t){return Ru(e=8*Math.round(e),t)+"b"}function Ru(e,t){if(t=t||!1,isNaN(parseFloat(e))||!isFinite(e)||0==e)return e;const n=["Y","Z","E","P","T","G","M","K"],r={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 o<10?a=2:o<100&&(a=1),t?a="MK"==s?0:(0,nc.min)([1,a]):"K"==s&&(a=0),parseFloat(o).toFixed(a)+s}}return e.toFixed(0)}function qu(e){return void 0===e||""===e?"?":e}function Bu(e,t,n){return t=t||0,n=n||" ",String(e).padStart(t,n)}function Uu(e,t){return"function"!=typeof e.slice&&(e=String(e)),e.slice(0,t)}function Fu(e,t){return t=t||8,e.length>t?"_"+e.substring(e.length-t+1):e}function $u(e){if(void 0===e)return e;var t=function(e){var t=document.createElement("div");return t.innerText=e,t.innerHTML}(e),n=t.replace(/\n/g,"
");return Du()(n)}function zu(e,t){return new Intl.NumberFormat(void 0,"number"==typeof t?{maximumFractionDigits:t}:t).format(e)}function Hu(e){for(var t=0,n=0;n({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.diskio},disks(){const e=this.stats.map((e=>{const t=e.time_since_update;return{name:e.disk_name,bitrate:{txps:Ru(e.read_bytes/t),rxps:Ru(e.write_bytes/t)},count:{txps:Ru(e.read_count/t),rxps:Ru(e.write_count/t)},alias:void 0!==e.alias?e.alias:null}}));return(0,nc.orderBy)(e,["name"])}}},Wu=(0,Wl.Z)(Gu,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Su,[s.disks.length>0?(ii(),ci("div",Au,[Eu,or(mi("div",Ou,"R/s",512),[[As,!s.args.diskio_iops]]),or(mi("div",Iu,"W/s",512),[[As,!s.args.diskio_iops]]),or(mi("div",Pu,"IOR/s",512),[[As,s.args.diskio_iops]]),or(mi("div",Lu,"IOW/s",512),[[As,s.args.diskio_iops]])])):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.disks,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Nu,E(e.$filters.minSize(t.alias?t.alias:t.name,32)),1),or(mi("div",{class:"table-cell"},E(t.bitrate.txps),513),[[As,!s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.bitrate.rxps),513),[[As,!s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.count.txps),513),[[As,s.args.diskio_iops]]),or(mi("div",{class:"table-cell"},E(t.count.rxps),513),[[As,s.args.diskio_iops]])])))),128))])}]]),Zu={key:0,id:"containers-plugin",class:"plugin"},Ku=mi("span",{class:"title"},"CONTAINERS",-1),Xu={class:"table"},Qu={class:"table-row"},Ju=mi("div",{class:"table-cell text-left"},"Engine",-1),Yu=mi("div",{class:"table-cell text-left"},"Pod",-1),ed=mi("div",{class:"table-cell"},"Status",-1),td=mi("div",{class:"table-cell"},"Uptime",-1),nd=xi('
/MAX
IOR/s
IOW/s
RX/s
TX/s
Command
',6),rd={class:"table-cell text-left"},id={class:"table-cell text-left"},sd={class:"table-cell text-left"},od={class:"table-cell"},ad={class:"table-cell"},ld={class:"table-cell"},cd={class:"table-cell"},ud={class:"table-cell"},dd={class:"table-cell"},fd={class:"table-cell"},pd={class:"table-cell text-left"};const hd={props:{data:{type:Object}},data:()=>({store:Po,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key},stats(){return this.data.stats.containers},containers(){const{sorter:e}=this,t=(this.stats.containers||[]).map((e=>({id:e.Id,name:e.name,status:e.Status,uptime:e.Uptime,cpu_percent:e.cpu.total,memory_usage:null!=e.memory.usage?e.memory.usage:"?",limit:null!=e.memory.limit?e.memory.limit:"?",ior:null!=e.io.ior?e.io.ior:"?",iow:null!=e.io.iow?e.io.iow:"?",io_time_since_update:e.io.time_since_update,rx:null!=e.network.rx?e.network.rx:"?",tx:null!=e.network.tx?e.network.tx:"?",net_time_since_update:e.network.time_since_update,command:e.Command.join(" "),image:e.Image,engine:e.engine,pod_id:e.pod_id})));return(0,nc.orderBy)(t,[e.column].reduce(((e,t)=>("memory_percent"===t&&(t=["memory_usage"]),e.concat(t))),[]),[e.isReverseColumn(e.column)?"desc":"asc"])}},watch:{sortProcessesKey:{immediate:!0,handler(e){e&&!["cpu_percent","memory_percent","name"].includes(e)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(e){return!["name"].includes(e)},getColumnLabel:function(e){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_usage:"memory consumption",cpu_times:"uptime",name:"container name",None:"None"}[e]||e}})}}}},gd=(0,Wl.Z)(hd,[["render",function(e,t,n,r,i,s){return s.containers.length?(ii(),ci("section",Zu,[Ku,wi(" "+E(s.containers.length)+" sorted by "+E(i.sorter.getColumnLabel(i.sorter.column))+" ",1),mi("div",Xu,[mi("div",Qu,[Ju,Yu,mi("div",{class:C(["table-cell text-left",["sortable","name"===i.sorter.column&&"sort"]]),onClick:t[0]||(t[0]=e=>s.args.sort_processes_key="name")}," Name ",2),ed,td,mi("div",{class:C(["table-cell",["sortable","cpu_percent"===i.sorter.column&&"sort"]]),onClick:t[1]||(t[1]=e=>s.args.sort_processes_key="cpu_percent")}," CPU% ",2),mi("div",{class:C(["table-cell",["sortable","memory_percent"===i.sorter.column&&"sort"]]),onClick:t[2]||(t[2]=e=>s.args.sort_processes_key="memory_percent")}," MEM ",2),nd]),(ii(!0),ci(Jr,null,pr(s.containers,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",rd,E(t.engine),1),mi("div",id,E(t.pod_id||"-"),1),mi("div",sd,E(t.name),1),mi("div",{class:C(["table-cell","Paused"==t.status?"careful":"ok"])},E(t.status),3),mi("div",{class:C(["table-cell","Paused"==t.status?"careful":"ok"])},E(t.uptime),3),mi("div",od,E(e.$filters.number(t.cpu_percent,1)),1),mi("div",ad,E(e.$filters.bytes(t.memory_usage)),1),mi("div",ld,E(e.$filters.bytes(t.limit)),1),mi("div",cd,E(e.$filters.bits(t.ior/t.io_time_since_update)),1),mi("div",ud,E(e.$filters.bits(t.iow/t.io_time_since_update)),1),mi("div",dd,E(e.$filters.bits(t.rx/t.net_time_since_update)),1),mi("div",fd,E(e.$filters.bits(t.tx/t.net_time_since_update)),1),mi("div",pd,E(t.command),1)])))),128))])])):_i("v-if",!0)}]]),md={class:"plugin",id:"folders"},bd={key:0,class:"table-row"},vd=[mi("div",{class:"table-cell text-left title"},"FOLDERS",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"Size",-1)],yd={class:"table-cell text-left"},wd=mi("div",{class:"table-cell"},null,-1);const xd={props:{data:{type:Object}},computed:{stats(){return this.data.stats.folders},folders(){return this.stats.map((e=>({path:e.path,size:e.size,careful:e.careful,warning:e.warning,critical:e.critical})))}},methods:{getDecoration(e){if(Number.isInteger(e.size))return null!==e.critical&&e.size>1e6*e.critical?"critical":null!==e.warning&&e.size>1e6*e.warning?"warning":null!==e.careful&&e.size>1e6*e.careful?"careful":"ok"}}},_d=(0,Wl.Z)(xd,[["render",function(e,t,n,r,i,s){return ii(),ci("section",md,[s.folders.length>0?(ii(),ci("div",bd,vd)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.folders,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",yd,E(t.path),1),wd,mi("div",{class:C(["table-cell",s.getDecoration(t)])},E(e.$filters.bytes(t.size)),3)])))),128))])}]]),kd={class:"plugin",id:"fs"},Cd={class:"table-row"},Td=mi("div",{class:"table-cell text-left title"},"FILE SYS",-1),Sd={class:"table-cell"},Ad=mi("div",{class:"table-cell"},"Total",-1),Ed={class:"table-cell text-left"},Od={key:0,class:"visible-lg-inline"},Id={class:"table-cell"};const Pd={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.fs},view(){return this.data.views.fs},fileSystems(){const e=this.stats.map((e=>{let t=e.mnt_point;return t.length>22&&(t="_"+e.mnt_point.slice(-21)),{name:e.device_name,mountPoint:e.mnt_point,shortMountPoint:t,percent:e.percent,size:e.size,used:e.used,free:e.free}}));return(0,nc.orderBy)(e,["mnt_point"])}},methods:{getDecoration(e,t){if(null!=this.view[e][t])return this.view[e][t].decoration.toLowerCase()}}},Ld=(0,Wl.Z)(Pd,[["render",function(e,t,n,r,i,s){return ii(),ci("section",kd,[mi("div",Cd,[Td,mi("div",Sd,[or(mi("span",null,"Used",512),[[As,!s.args.fs_free_space]]),or(mi("span",null,"Free",512),[[As,s.args.fs_free_space]])]),Ad]),(ii(!0),ci(Jr,null,pr(s.fileSystems,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Ed,[wi(E(t.shortMountPoint)+" ",1),t.shortMountPoint.length<=12?(ii(),ci("span",Od," ("+E(t.name)+") ",1)):_i("v-if",!0)]),mi("div",{class:C(["table-cell",s.getDecoration(t.mountPoint,"used")])},[or(mi("span",null,E(e.$filters.bytes(t.used)),513),[[As,!s.args.fs_free_space]]),or(mi("span",null,E(e.$filters.bytes(t.free)),513),[[As,s.args.fs_free_space]])],2),mi("div",Id,E(e.$filters.bytes(t.size)),1)])))),128))])}]]),Nd={id:"gpu",class:"plugin"},Md={class:"gpu-name title"},Dd={class:"table"},jd={key:0,class:"table-row"},Rd=mi("div",{class:"table-cell text-left"},"proc:",-1),qd={key:1,class:"table-cell"},Bd={key:1,class:"table-row"},Ud=mi("div",{class:"table-cell text-left"},"mem:",-1),Fd={key:1,class:"table-cell"},$d={key:2,class:"table-row"},zd=mi("div",{class:"table-cell text-left"},"temperature::",-1),Hd={key:1,class:"table-cell"},Vd={class:"table-cell text-left"},Gd={key:1},Wd={key:3},Zd={key:5};const Kd={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.gpu},view(){return this.data.views.gpu},gpus(){return this.stats},name(){let e="GPU";const{stats:t}=this;return 1===t.length?e=t[0].name:t.length&&(e=`${t.length} GPU ${t[0].name}`),e},mean(){const e={proc:null,mem:null,temperature:null},{stats:t}=this;if(!t.length)return e;for(let n of t)e.proc+=n.proc,e.mem+=n.mem,e.temperature+=n.temperature;return e.proc=e.proc/t.length,e.mem=e.mem/t.length,e.temperature=e.temperature/t.length,e}},methods:{getDecoration(e,t){if(void 0!==this.view[e][t])return this.view[e][t].decoration.toLowerCase()},getMeanDecoration(e){return this.getDecoration(0,e)}}},Xd=(0,Wl.Z)(Kd,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Nd,[mi("div",Md,E(s.name),1),mi("div",Dd,[s.args.meangpu||1===s.gpus.length?(ii(),ci("div",jd,[Rd,null!=s.mean.proc?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("proc")])},E(e.$filters.number(s.mean.proc,0))+"% ",3)):_i("v-if",!0),null==s.mean.proc?(ii(),ci("div",qd,"N/A")):_i("v-if",!0)])):_i("v-if",!0),s.args.meangpu||1===s.gpus.length?(ii(),ci("div",Bd,[Ud,null!=s.mean.mem?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("mem")])},E(e.$filters.number(s.mean.mem,0))+"% ",3)):_i("v-if",!0),null==s.mean.mem?(ii(),ci("div",Fd,"N/A")):_i("v-if",!0)])):_i("v-if",!0),s.args.meangpu||1===s.gpus.length?(ii(),ci("div",$d,[zd,null!=s.mean.temperature?(ii(),ci("div",{key:0,class:C(["table-cell",s.getMeanDecoration("temperature")])},E(e.$filters.number(s.mean.temperature,0))+"° ",3)):_i("v-if",!0),null==s.mean.temperature?(ii(),ci("div",Hd,"N/A")):_i("v-if",!0)])):_i("v-if",!0),!s.args.meangpu&&s.gpus.length>1?(ii(!0),ci(Jr,{key:3},pr(s.gpus,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Vd,[wi(E(t.gpu_id)+": ",1),null!=t.proc?(ii(),ci("span",{key:0,class:C(s.getDecoration(t.gpu_id,"proc"))},E(e.$filters.number(t.proc,0))+"% ",3)):_i("v-if",!0),null==t.proc?(ii(),ci("span",Gd,"N/A")):_i("v-if",!0),wi(" mem: "),null!=t.mem?(ii(),ci("span",{key:2,class:C(s.getDecoration(t.gpu_id,"mem"))},E(e.$filters.number(t.mem,0))+"% ",3)):_i("v-if",!0),null==t.mem?(ii(),ci("span",Wd,"N/A")):_i("v-if",!0),wi(" temp: "),null!=t.temperature?(ii(),ci("span",{key:4,class:C(s.getDecoration(t.gpu_id,"temperature"))},E(e.$filters.number(t.temperature,0))+"C ",3)):_i("v-if",!0),null==t.temperature?(ii(),ci("span",Zd,"N/A")):_i("v-if",!0)])])))),128)):_i("v-if",!0)])])}]]),Qd={key:0,class:"plugin",id:"ip"},Jd={key:0,class:"title"},Yd={key:1},ef={key:2,class:"title"},tf={key:3},nf={key:4};const rf={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}}},sf=(0,Wl.Z)(rf,[["render",function(e,t,n,r,i,s){return null!=s.address?(ii(),ci("section",Qd,[null!=s.address?(ii(),ci("span",Jd,"IP")):_i("v-if",!0),null!=s.address?(ii(),ci("span",Yd,E(s.address)+"/"+E(s.maskCdir),1)):_i("v-if",!0),null!=s.publicAddress?(ii(),ci("span",ef,"Pub")):_i("v-if",!0),null!=s.publicAddress?(ii(),ci("span",tf,E(s.publicAddress),1)):_i("v-if",!0),null!=s.publicInfo?(ii(),ci("span",nf,E(s.publicInfo),1)):_i("v-if",!0)])):_i("v-if",!0)}]]),of={class:"plugin",id:"irq"},af={key:0,class:"table-row"},lf=[mi("div",{class:"table-cell text-left title"},"IRQ",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"Rate/s",-1)],cf={class:"table-cell text-left"},uf=mi("div",{class:"table-cell"},null,-1),df={class:"table-cell"};const ff={props:{data:{type:Object}},computed:{stats(){return this.data.stats.irq},irqs(){return this.stats.map((e=>({irq_line:e.irq_line,irq_rate:e.irq_rate})))}}},pf=(0,Wl.Z)(ff,[["render",function(e,t,n,r,i,s){return ii(),ci("section",of,[s.irqs.length>0?(ii(),ci("div",af,lf)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.irqs,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",cf,E(e.irq_line),1),uf,mi("div",df,[mi("span",null,E(e.irq_rate),1)])])))),128))])}]]),hf={key:0,id:"load",class:"plugin"},gf={class:"table"},mf={class:"table-row"},bf=mi("div",{class:"table-cell text-left title"},"LOAD",-1),vf={class:"table-cell"},yf={class:"table-row"},wf=mi("div",{class:"table-cell text-left"},"1 min:",-1),xf={class:"table-cell"},_f={class:"table-row"},kf=mi("div",{class:"table-cell text-left"},"5 min:",-1),Cf={class:"table-row"},Tf=mi("div",{class:"table-cell text-left"},"15 min:",-1);const Sf={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},Af=(0,Wl.Z)(Sf,[["render",function(e,t,n,r,i,s){return null!=s.cpucore?(ii(),ci("section",hf,[mi("div",gf,[mi("div",mf,[bf,mi("div",vf,E(s.cpucore)+"-core",1)]),mi("div",yf,[wf,mi("div",xf,E(e.$filters.number(s.min1,2)),1)]),mi("div",_f,[kf,mi("div",{class:C(["table-cell",s.getDecoration("min5")])},E(e.$filters.number(s.min5,2)),3)]),mi("div",Cf,[Tf,mi("div",{class:C(["table-cell",s.getDecoration("min15")])},E(e.$filters.number(s.min15,2)),3)])])])):_i("v-if",!0)}]]),Ef={id:"mem",class:"plugin"},Of={class:"table"},If={class:"table-row"},Pf=mi("div",{class:"table-cell text-left title"},"MEM",-1),Lf={class:"table-cell"},Nf={class:"table-row"},Mf=mi("div",{class:"table-cell text-left"},"total:",-1),Df={class:"table-cell"},jf={class:"table-row"},Rf=mi("div",{class:"table-cell text-left"},"used:",-1),qf={class:"table-row"},Bf=mi("div",{class:"table-cell text-left"},"free:",-1),Uf={class:"table-cell"};const Ff={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}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},$f=(0,Wl.Z)(Ff,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Ef,[mi("div",Of,[mi("div",If,[Pf,mi("div",Lf,E(s.percent)+"%",1)]),mi("div",Nf,[Mf,mi("div",Df,E(e.$filters.bytes(s.total)),1)]),mi("div",jf,[Rf,mi("div",{class:C(["table-cell",s.getDecoration("used")])},E(e.$filters.bytes(s.used,2)),3)]),mi("div",qf,[Bf,mi("div",Uf,E(e.$filters.bytes(s.free)),1)])])])}]]),zf={id:"mem-more",class:"plugin"},Hf={class:"table"},Vf={class:"table-row"},Gf=mi("div",{class:"table-cell text-left"},"active:",-1),Wf={class:"table-cell"},Zf={class:"table-row"},Kf=mi("div",{class:"table-cell text-left"},"inactive:",-1),Xf={class:"table-cell"},Qf={class:"table-row"},Jf=mi("div",{class:"table-cell text-left"},"buffers:",-1),Yf={class:"table-cell"},ep={class:"table-row"},tp=mi("div",{class:"table-cell text-left"},"cached:",-1),np={class:"table-cell"};const rp={props:{data:{type:Object}},computed:{stats(){return this.data.stats.mem},active(){return this.stats.active},inactive(){return this.stats.inactive},buffers(){return this.stats.buffers},cached(){return this.stats.cached}}},ip=(0,Wl.Z)(rp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",zf,[mi("div",Hf,[or(mi("div",Vf,[Gf,mi("div",Wf,E(e.$filters.bytes(s.active)),1)],512),[[As,null!=s.active]]),or(mi("div",Zf,[Kf,mi("div",Xf,E(e.$filters.bytes(s.inactive)),1)],512),[[As,null!=s.inactive]]),or(mi("div",Qf,[Jf,mi("div",Yf,E(e.$filters.bytes(s.buffers)),1)],512),[[As,null!=s.buffers]]),or(mi("div",ep,[tp,mi("div",np,E(e.$filters.bytes(s.cached)),1)],512),[[As,null!=s.cached]])])])}]]),sp={id:"memswap",class:"plugin"},op={class:"table"},ap={class:"table-row"},lp=mi("div",{class:"table-cell text-left title"},"SWAP",-1),cp={class:"table-cell"},up={class:"table-row"},dp=mi("div",{class:"table-cell text-left"},"total:",-1),fp={class:"table-cell"},pp={class:"table-row"},hp=mi("div",{class:"table-cell text-left"},"used:",-1),gp={class:"table-row"},mp=mi("div",{class:"table-cell text-left"},"free:",-1),bp={class:"table-cell"};const vp={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(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},yp=(0,Wl.Z)(vp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",sp,[mi("div",op,[mi("div",ap,[lp,mi("div",cp,E(s.percent)+"%",1)]),mi("div",up,[dp,mi("div",fp,E(e.$filters.bytes(s.total)),1)]),mi("div",pp,[hp,mi("div",{class:C(["table-cell",s.getDecoration("used")])},E(e.$filters.bytes(s.used)),3)]),mi("div",gp,[mp,mi("div",bp,E(e.$filters.bytes(s.free)),1)])])])}]]),wp={class:"plugin",id:"network"},xp={class:"table-row"},_p=mi("div",{class:"table-cell text-left title"},"NETWORK",-1),kp={class:"table-cell"},Cp={class:"table-cell"},Tp={class:"table-cell"},Sp={class:"table-cell"},Ap={class:"table-cell"},Ep={class:"table-cell"},Op={class:"table-cell"},Ip={class:"table-cell"},Pp={class:"table-cell text-left"},Lp={class:"visible-lg-inline"},Np={class:"hidden-lg"},Mp={class:"table-cell"},Dp={class:"table-cell"};const jp={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.network},networks(){const e=this.stats.map((e=>{const t=void 0!==e.alias?e.alias:null;return{interfaceName:e.interface_name,ifname:t||e.interface_name,rx:e.rx,tx:e.tx,cx:e.cx,time_since_update:e.time_since_update,cumulativeRx:e.cumulative_rx,cumulativeTx:e.cumulative_tx,cumulativeCx:e.cumulative_cx}}));return(0,nc.orderBy)(e,["interfaceName"])}}},Rp=(0,Wl.Z)(jp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",wp,[mi("div",xp,[_p,or(mi("div",kp,"Rx/s",512),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Cp,"Tx/s",512),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Tp,null,512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",Sp,"Rx+Tx/s",512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",Ap,"Rx",512),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Ep,"Tx",512),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Op,null,512),[[As,s.args.network_cumul&&s.args.network_sum]]),or(mi("div",Ip,"Rx+Tx",512),[[As,s.args.network_cumul&&s.args.network_sum]])]),(ii(!0),ci(Jr,null,pr(s.networks,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Pp,[mi("span",Lp,E(t.ifname),1),mi("span",Np,E(e.$filters.minSize(t.ifname)),1)]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.rx/t.time_since_update):e.$filters.bits(t.rx/t.time_since_update)),513),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.tx/t.time_since_update):e.$filters.bits(t.tx/t.time_since_update)),513),[[As,!s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Mp,null,512),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cx/t.time_since_update):e.$filters.bits(t.cx/t.time_since_update)),513),[[As,!s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeRx):e.$filters.bits(t.cumulativeRx)),513),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeTx):e.$filters.bits(t.cumulativeTx)),513),[[As,s.args.network_cumul&&!s.args.network_sum]]),or(mi("div",Dp,null,512),[[As,s.args.network_cumul&&s.args.network_sum]]),or(mi("div",{class:"table-cell"},E(s.args.byte?e.$filters.bytes(t.cumulativeCx):e.$filters.bits(t.cumulativeCx)),513),[[As,s.args.network_cumul&&s.args.network_sum]])])))),128))])}]]),qp={id:"now",class:"plugin"};const Bp={props:{data:{type:Object}},computed:{value(){return this.data.stats.now}}},Up=(0,Wl.Z)(Bp,[["render",function(e,t,n,r,i,s){return ii(),ci("section",qp,[mi("span",null,E(s.value),1)])}]]),Fp={id:"percpu",class:"plugin"},$p={class:"table-row"},zp={class:"table-cell text-left title"},Hp={key:0},Vp={class:"table-row"},Gp=mi("div",{class:"table-cell text-left"},"user:",-1),Wp={class:"table-row"},Zp=mi("div",{class:"table-cell text-left"},"system:",-1),Kp={class:"table-row"},Xp=mi("div",{class:"table-cell text-left"},"idle:",-1),Qp={key:0,class:"table-row"},Jp=mi("div",{class:"table-cell text-left"},"iowait:",-1),Yp={key:1,class:"table-row"},eh=mi("div",{class:"table-cell text-left"},"steal:",-1);const th={props:{data:{type:Object}},computed:{percpuStats(){return this.data.stats.percpu},cpusChunks(){const e=this.percpuStats.map((e=>({number:e.cpu_number,total:e.total,user:e.user,system:e.system,idle:e.idle,iowait:e.iowait,steal:e.steal})));return(0,nc.chunk)(e,4)}},methods:{getUserAlert:e=>Mo.getAlert("percpu","percpu_user_",e.user),getSystemAlert:e=>Mo.getAlert("percpu","percpu_system_",e.system)}},nh=(0,Wl.Z)(th,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Fp,[(ii(!0),ci(Jr,null,pr(s.cpusChunks,((e,t)=>(ii(),ci("div",{class:"table",key:t},[mi("div",$p,[mi("div",zp,[0===t?(ii(),ci("span",Hp,"PER CPU")):_i("v-if",!0)]),(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:"table-cell",key:t},E(e.total)+"% ",1)))),128))]),mi("div",Vp,[Gp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getUserAlert(e)]),key:t},E(e.user)+"% ",3)))),128))]),mi("div",Wp,[Zp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.system)+"% ",3)))),128))]),mi("div",Kp,[Xp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:"table-cell",key:t},E(e.idle)+"% ",1)))),128))]),e[0].iowait?(ii(),ci("div",Qp,[Jp,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.iowait)+"% ",3)))),128))])):_i("v-if",!0),e[0].steal?(ii(),ci("div",Yp,[eh,(ii(!0),ci(Jr,null,pr(e,((e,t)=>(ii(),ci("div",{class:C(["table-cell",s.getSystemAlert(e)]),key:t},E(e.steal)+"% ",3)))),128))])):_i("v-if",!0)])))),128))])}]]),rh={class:"plugin",id:"ports"},ih={class:"table-cell text-left"},sh=mi("div",{class:"table-cell"},null,-1),oh={key:0},ah={key:1},lh={key:2},ch={key:3},uh={key:0},dh={key:1},fh={key:2};const ph={props:{data:{type:Object}},computed:{stats(){return this.data.stats.ports},ports(){return this.stats}},methods:{getPortDecoration:e=>null===e.status?"careful":!1===e.status?"critical":null!==e.rtt_warning&&e.status>e.rtt_warning?"warning":"ok",getWebDecoration:e=>null===e.status?"careful":-1===[200,301,302].indexOf(e.status)?"critical":null!==e.rtt_warning&&e.elapsed>e.rtt_warning?"warning":"ok"}},hh=(0,Wl.Z)(ph,[["render",function(e,t,n,r,i,s){return ii(),ci("section",rh,[(ii(!0),ci(Jr,null,pr(s.ports,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",ih,[_i(" prettier-ignore "),wi(" "+E(e.$filters.minSize(t.description?t.description:t.host+" "+t.port,20)),1)]),sh,t.host?(ii(),ci("div",{key:0,class:C([s.getPortDecoration(t),"table-cell"])},["null"==t.status?(ii(),ci("span",oh,"Scanning")):"false"==t.status?(ii(),ci("span",ah,"Timeout")):"true"==t.status?(ii(),ci("span",lh,"Open")):(ii(),ci("span",ch,E(e.$filters.number(1e3*t.status,0))+"ms",1))],2)):_i("v-if",!0),t.url?(ii(),ci("div",{key:1,class:C([s.getWebDecoration(t),"table-cell"])},["null"==t.status?(ii(),ci("span",uh,"Scanning")):"Error"==t.status?(ii(),ci("span",dh,"Error")):(ii(),ci("span",fh,"Code "+E(t.status),1))],2)):_i("v-if",!0)])))),128))])}]]),gh={key:0},mh={key:1},bh={key:0,class:"row"},vh={class:"col-lg-18"};const yh={id:"amps",class:"plugin"},wh={class:"table"},xh={key:0,class:"table-cell text-left"},_h=["innerHTML"];const kh={props:{data:{type:Object}},computed:{stats(){return this.data.stats.amps},processes(){return this.stats.filter((e=>null!==e.result))}},methods:{getNameDecoration(e){const t=e.count,n=e.countmin,r=e.countmax;let i="ok";return i=t>0?(null===n||t>=n)&&(null===r||t<=r)?"ok":"careful":null===n?"ok":"critical",i}}},Ch=(0,Wl.Z)(kh,[["render",function(e,t,n,r,i,s){return ii(),ci("section",yh,[mi("div",wh,[(ii(!0),ci(Jr,null,pr(s.processes,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",{class:C(["table-cell text-left",s.getNameDecoration(t)])},E(t.name),3),t.regex?(ii(),ci("div",xh,E(t.count),1)):_i("v-if",!0),mi("div",{class:"table-cell text-left process-result",innerHTML:e.$filters.nl2br(t.result)},null,8,_h)])))),128))])])}]]),Th={id:"processcount",class:"plugin"},Sh=mi("span",{class:"title"},"TASKS",-1),Ah={class:"title"};const Eh={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Po}),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}}},Oh=(0,Wl.Z)(Eh,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Th,[Sh,mi("span",null,E(s.total)+" ("+E(s.thread)+" thr),",1),mi("span",null,E(s.running)+" run,",1),mi("span",null,E(s.sleeping)+" slp,",1),mi("span",null,E(s.stopped)+" oth",1),mi("span",null,E(s.args.programs?"Programs":"Threads"),1),mi("span",Ah,E(n.sorter.auto?"sorted automatically":"sorted"),1),mi("span",null,"by "+E(n.sorter.getColumnLabel(n.sorter.column)),1)])}]]),Ih={id:"processlist-plugin",class:"plugin"},Ph={class:"table"},Lh={class:"table-row"},Nh=mi("div",{class:"table-cell hidden-xs hidden-sm"},"VIRT",-1),Mh=mi("div",{class:"table-cell hidden-xs hidden-sm"},"RES",-1),Dh=mi("div",{class:"table-cell"},"PID",-1),jh=mi("div",{class:"table-cell"},"NI",-1),Rh=mi("div",{class:"table-cell"},"S",-1),qh={class:"table-cell hidden-xs hidden-sm"},Bh={class:"table-cell hidden-xs hidden-sm"},Uh={class:"table-cell"},Fh={class:"table-cell text-left"},$h={key:0,class:"table-cell hidden-xs hidden-sm"},zh={key:1,class:"table-cell hidden-xs hidden-sm"},Hh={class:"table-cell text-left hidden-xs hidden-sm"};const Vh={props:{data:{type:Object},sorter:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},config(){return this.store.config||{}},stats(){return this.data.stats.processlist},processes(){const{sorter:e}=this,t=this.data.stats.isWindows,n=(this.stats||[]).map((e=>(e.memvirt="?",e.memres="?",e.memory_info&&(e.memvirt=e.memory_info[1],e.memres=e.memory_info[0]),e.timeplus="?",e.timemillis="?",e.cpu_times&&(e.timeplus=Vu(e.cpu_times),e.timemillis=Hu(e.cpu_times)),null===e.num_threads&&(e.num_threads=-1),null===e.cpu_percent&&(e.cpu_percent=-1),null===e.memory_percent&&(e.memory_percent=-1),e.io_read=null,e.io_write=null,e.io_counters&&(e.io_read=(e.io_counters[0]-e.io_counters[2])/e.time_since_update,e.io_write=(e.io_counters[1]-e.io_counters[3])/e.time_since_update),e.isNice=void 0!==e.nice&&(t&&32!=e.nice||!t&&0!=e.nice),Array.isArray(e.cmdline)&&(e.cmdline=e.cmdline.join(" ").replace(/\n/g," ")),null===e.cmdline&&(e.cmdline=e.name),t&&null!==e.username&&(e.username=(0,nc.last)(e.username.split("\\"))),e)));return(0,nc.orderBy)(n,[e.column].reduce(((e,t)=>("io_counters"===t&&(t=["io_read","io_write"]),e.concat(t))),[]),[e.isReverseColumn(e.column)?"desc":"asc"]).slice(0,this.limit)},ioReadWritePresent(){return(this.stats||[]).some((({io_counters:e})=>e))},limit(){return void 0!==this.config.outputs?this.config.outputs.max_processes_display:void 0}},methods:{getCpuPercentAlert:e=>Mo.getAlert("processlist","processlist_cpu_",e.cpu_percent),getMemoryPercentAlert:e=>Mo.getAlert("processlist","processlist_mem_",e.cpu_percent)}},Gh={components:{GlancesPluginAmps:Ch,GlancesPluginProcesscount:Oh,GlancesPluginProcesslist:(0,Wl.Z)(Vh,[["render",function(e,t,n,r,i,s){return ii(),ci(Jr,null,[_i(" prettier-ignore "),mi("section",Ih,[mi("div",Ph,[mi("div",Lh,[mi("div",{class:C(["table-cell",["sortable","cpu_percent"===n.sorter.column&&"sort"]]),onClick:t[0]||(t[0]=t=>e.$emit("update:sorter","cpu_percent"))}," CPU% ",2),mi("div",{class:C(["table-cell",["sortable","memory_percent"===n.sorter.column&&"sort"]]),onClick:t[1]||(t[1]=t=>e.$emit("update:sorter","memory_percent"))}," MEM% ",2),Nh,Mh,Dh,mi("div",{class:C(["table-cell text-left",["sortable","username"===n.sorter.column&&"sort"]]),onClick:t[2]||(t[2]=t=>e.$emit("update:sorter","username"))}," USER ",2),mi("div",{class:C(["table-cell hidden-xs hidden-sm",["sortable","timemillis"===n.sorter.column&&"sort"]]),onClick:t[3]||(t[3]=t=>e.$emit("update:sorter","timemillis"))}," TIME+ ",2),mi("div",{class:C(["table-cell text-left hidden-xs hidden-sm",["sortable","num_threads"===n.sorter.column&&"sort"]]),onClick:t[4]||(t[4]=t=>e.$emit("update:sorter","num_threads"))}," THR ",2),jh,Rh,or(mi("div",{class:C(["table-cell hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:t[5]||(t[5]=t=>e.$emit("update:sorter","io_counters"))}," IOR/s ",2),[[As,s.ioReadWritePresent]]),or(mi("div",{class:C(["table-cell text-left hidden-xs hidden-sm",["sortable","io_counters"===n.sorter.column&&"sort"]]),onClick:t[6]||(t[6]=t=>e.$emit("update:sorter","io_counters"))}," IOW/s ",2),[[As,s.ioReadWritePresent]]),mi("div",{class:C(["table-cell text-left",["sortable","name"===n.sorter.column&&"sort"]]),onClick:t[7]||(t[7]=t=>e.$emit("update:sorter","name"))}," Command ",2)]),(ii(!0),ci(Jr,null,pr(s.processes,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",{class:C(["table-cell",s.getCpuPercentAlert(t)])},E(-1==t.cpu_percent?"?":e.$filters.number(t.cpu_percent,1)),3),mi("div",{class:C(["table-cell",s.getMemoryPercentAlert(t)])},E(-1==t.memory_percent?"?":e.$filters.number(t.memory_percent,1)),3),mi("div",qh,E(e.$filters.bytes(t.memvirt)),1),mi("div",Bh,E(e.$filters.bytes(t.memres)),1),mi("div",Uh,E(t.pid),1),mi("div",Fh,E(t.username),1),"?"!=t.timeplus?(ii(),ci("div",$h,[or(mi("span",{class:"highlight"},E(t.timeplus.hours)+"h",513),[[As,t.timeplus.hours>0]]),wi(" "+E(e.$filters.leftPad(t.timeplus.minutes,2,"0"))+":"+E(e.$filters.leftPad(t.timeplus.seconds,2,"0"))+" ",1),or(mi("span",null,"."+E(e.$filters.leftPad(t.timeplus.milliseconds,2,"0")),513),[[As,t.timeplus.hours<=0]])])):_i("v-if",!0),"?"==t.timeplus?(ii(),ci("div",zh,"?")):_i("v-if",!0),mi("div",Hh,E(-1==t.num_threads?"?":t.num_threads),1),mi("div",{class:C(["table-cell",{nice:t.isNice}])},E(e.$filters.exclamation(t.nice)),3),mi("div",{class:C(["table-cell",{status:"R"==t.status}])},E(t.status),3),or(mi("div",{class:"table-cell hidden-xs hidden-sm"},E(e.$filters.bytes(t.io_read)),513),[[As,s.ioReadWritePresent]]),or(mi("div",{class:"table-cell text-left hidden-xs hidden-sm"},E(e.$filters.bytes(t.io_write)),513),[[As,s.ioReadWritePresent]]),or(mi("div",{class:"table-cell text-left"},E(t.name),513),[[As,s.args.process_short_name]]),or(mi("div",{class:"table-cell text-left"},E(t.cmdline),513),[[As,!s.args.process_short_name]])])))),128))])])],2112)}]])},props:{data:{type:Object}},data:()=>({store:Po,sorter:void 0}),computed:{args(){return this.store.args||{}},sortProcessesKey(){return this.args.sort_processes_key}},watch:{sortProcessesKey:{immediate:!0,handler(e){e&&!["cpu_percent","memory_percent","username","timemillis","num_threads","io_counters","name"].includes(e)||(this.sorter={column:this.args.sort_processes_key||"cpu_percent",auto:!this.args.sort_processes_key,isReverseColumn:function(e){return!["username","name"].includes(e)},getColumnLabel:function(e){return{io_counters:"disk IO",cpu_percent:"CPU consumption",memory_percent:"memory consumption",cpu_times:"process time",username:"user name",name:"process name",timemillis:"process time",None:"None"}[e]||e}})}}}},Wh=(0,Wl.Z)(Gh,[["render",function(e,t,n,r,i,s){const o=cr("glances-plugin-processcount"),a=cr("glances-plugin-amps"),l=cr("glances-plugin-processlist");return s.args.disable_process?(ii(),ci("div",gh,"PROCESSES DISABLED (press 'z' to display)")):(ii(),ci("div",mh,[bi(o,{sorter:i.sorter,data:n.data},null,8,["sorter","data"]),s.args.disable_amps?_i("v-if",!0):(ii(),ci("div",bh,[mi("div",vh,[bi(a,{data:n.data},null,8,["data"])])])),bi(l,{sorter:i.sorter,data:n.data,"onUpdate:sorter":t[0]||(t[0]=e=>s.args.sort_processes_key=e)},null,8,["sorter","data"])]))}]]),Zh={id:"quicklook",class:"plugin"},Kh={class:"cpu-name"},Xh={class:"table"},Qh={key:0,class:"table-row"},Jh=mi("div",{class:"table-cell text-left"},"CPU",-1),Yh={class:"table-cell"},eg={class:"progress"},tg=["aria-valuenow"],ng={class:"table-cell"},rg={class:"table-cell text-left"},ig={class:"table-cell"},sg={class:"progress"},og=["aria-valuenow"],ag={class:"table-cell"},lg={class:"table-row"},cg=mi("div",{class:"table-cell text-left"},"MEM",-1),ug={class:"table-cell"},dg={class:"progress"},fg=["aria-valuenow"],pg={class:"table-cell"},hg={class:"table-row"},gg=mi("div",{class:"table-cell text-left"},"SWAP",-1),mg={class:"table-cell"},bg={class:"progress"},vg=["aria-valuenow"],yg={class:"table-cell"};const wg={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.quicklook},view(){return this.data.views.quicklook},mem(){return this.stats.mem},cpu(){return this.stats.cpu},cpu_name(){return this.stats.cpu_name},cpu_hz_current(){return this.stats.cpu_hz_current},cpu_hz(){return this.stats.cpu_hz},swap(){return this.stats.swap},percpus(){return this.stats.percpu.map((({cpu_number:e,total:t})=>({number:e,total:t})))}},methods:{getDecoration(e){if(void 0!==this.view[e])return this.view[e].decoration.toLowerCase()}}},xg=(0,Wl.Z)(wg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Zh,[mi("div",Kh,E(s.cpu_name),1),mi("div",Xh,[s.args.percpu?_i("v-if",!0):(ii(),ci("div",Qh,[Jh,mi("div",Yh,[mi("div",eg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":s.cpu,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.cpu}%;`)},"   ",14,tg)])]),mi("div",ng,E(s.cpu)+"%",1)])),s.args.percpu?(ii(!0),ci(Jr,{key:1},pr(s.percpus,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",rg,"CPU"+E(e.number),1),mi("div",ig,[mi("div",sg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("cpu")}`),role:"progressbar","aria-valuenow":e.total,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${e.total}%;`)},"   ",14,og)])]),mi("div",ag,E(e.total)+"%",1)])))),128)):_i("v-if",!0),mi("div",lg,[cg,mi("div",ug,[mi("div",dg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("mem")}`),role:"progressbar","aria-valuenow":s.mem,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.mem}%;`)},"   ",14,fg)])]),mi("div",pg,E(s.mem)+"%",1)]),mi("div",hg,[gg,mi("div",mg,[mi("div",bg,[mi("div",{class:C(`progress-bar progress-bar-${s.getDecoration("swap")}`),role:"progressbar","aria-valuenow":s.swap,"aria-valuemin":"0","aria-valuemax":"100",style:y(`width: ${s.swap}%;`)},"   ",14,vg)])]),mi("div",yg,E(s.swap)+"%",1)])])])}]]),_g={class:"plugin",id:"raid"},kg={key:0,class:"table-row"},Cg=[mi("div",{class:"table-cell text-left title"},"RAID disks",-1),mi("div",{class:"table-cell"},"Used",-1),mi("div",{class:"table-cell"},"Total",-1)],Tg={class:"table-cell text-left"},Sg={class:"warning"};const Ag={props:{data:{type:Object}},computed:{stats(){return this.data.stats.raid},disks(){const e=Object.entries(this.stats).map((([e,t])=>{const n=Object.entries(t.components).map((([e,t])=>({number:t,name:e})));return{name:e,type:null==t.type?"UNKNOWN":t.type,used:t.used,available:t.available,status:t.status,degraded:t.used0}},methods:{getAlert:e=>e.inactive?"critical":e.degraded?"warning":"ok"}},Eg=(0,Wl.Z)(Ag,[["render",function(e,t,n,r,i,s){return ii(),ci("section",_g,[s.hasDisks?(ii(),ci("div",kg,Cg)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.disks,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",Tg,[wi(E(e.type.toUppercase())+" "+E(e.name)+" ",1),or(mi("div",Sg,"└─ Degraded mode",512),[[As,e.degraded]]),or(mi("div",null,"   └─ "+E(e.config),513),[[As,e.degraded]]),or(mi("div",{class:"critical"},"└─ Status "+E(e.status),513),[[As,e.inactive]]),e.inactive?(ii(!0),ci(Jr,{key:0},pr(e.components,((t,n)=>(ii(),ci("div",{key:n},"    "+E(n===e.components.length-1?"└─":"├─")+" disk "+E(t.number)+": "+E(t.name),1)))),128)):_i("v-if",!0)]),or(mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.used),3),[[As,!e.inactive]]),or(mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.available),3),[[As,!e.inactive]])])))),128))])}]]),Og={class:"plugin",id:"sensors"},Ig={key:0,class:"table-row"},Pg=[mi("div",{class:"table-cell text-left title"},"SENSORS",-1)],Lg={class:"table-cell text-left"},Ng={class:"table-cell"};const Mg={props:{data:{type:Object}},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},stats(){return this.data.stats.sensors},sensors(){return this.stats.filter((e=>!(Array.isArray(e.value)&&0===e.value.length||0===e.value))).map((e=>(this.args.fahrenheit&&"battery"!=e.type&&"fan_speed"!=e.type&&(e.value=parseFloat(1.8*e.value+32).toFixed(1),e.unit="F"),e)))}},methods:{getAlert(e){const t="battery"==e.type?100-e.value:e.value;return Mo.getAlert("sensors","sensors_"+e.type+"_",t)}}},Dg=(0,Wl.Z)(Mg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Og,[s.sensors.length>0?(ii(),ci("div",Ig,Pg)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.sensors,((e,t)=>(ii(),ci("div",{class:"table-row",key:t},[mi("div",Lg,E(e.label),1),mi("div",Ng,E(e.unit),1),mi("div",{class:C(["table-cell",s.getAlert(e)])},E(e.value),3)])))),128))])}]]),jg={class:"plugin",id:"system"},Rg={key:0,class:"critical"},qg={class:"title"},Bg={key:1,class:"hidden-xs hidden-sm"},Ug={key:2,class:"hidden-xs hidden-sm"};const Fg={props:{data:{type:Object}},data:()=>({store:Po}),computed:{stats(){return this.data.stats.system},isLinux(){return this.data.isLinux},hostname(){return this.stats.hostname},platform(){return this.stats.platform},os(){return{name:this.stats.os_name,version:this.stats.os_version}},humanReadableName(){return this.stats.hr_name},isDisconnected(){return"FAILURE"===this.store.status}}},$g=(0,Wl.Z)(Fg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",jg,[s.isDisconnected?(ii(),ci("span",Rg,"Disconnected from")):_i("v-if",!0),mi("span",qg,E(s.hostname),1),s.isLinux?(ii(),ci("span",Bg," ("+E(s.humanReadableName)+" / "+E(s.os.name)+" "+E(s.os.version)+") ",1)):_i("v-if",!0),s.isLinux?_i("v-if",!0):(ii(),ci("span",Ug," ("+E(s.os.name)+" "+E(s.os.version)+" "+E(s.platform)+") ",1))])}]]),zg={class:"plugin",id:"uptime"};const Hg={props:{data:{type:Object}},computed:{value(){return this.data.stats.uptime}}},Vg=(0,Wl.Z)(Hg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",zg,[mi("span",null,"Uptime: "+E(s.value),1)])}]]),Gg={class:"plugin",id:"wifi"},Wg={key:0,class:"table-row"},Zg=[mi("div",{class:"table-cell text-left title"},"WIFI",-1),mi("div",{class:"table-cell"},null,-1),mi("div",{class:"table-cell"},"dBm",-1)],Kg={class:"table-cell text-left"},Xg={key:0},Qg=mi("div",{class:"table-cell"},null,-1);const Jg={props:{data:{type:Object}},computed:{stats(){return this.data.stats.wifi},view(){return this.data.views.wifi},hotspots(){const e=this.stats.map((e=>{if(""!==e.ssid)return{ssid:e.ssid,encrypted:e.encrypted,signal:e.signal,encryption_type:e.encryption_type}})).filter(Boolean);return(0,nc.orderBy)(e,["ssid"])}},methods:{getDecoration(e,t){if(void 0!==this.view[e.ssid][t])return this.view[e.ssid][t].decoration.toLowerCase()}}},Yg={components:{GlancesHelp:Zl,GlancesPluginAlert:ic,GlancesPluginCloud:lc,GlancesPluginConnections:Pc,GlancesPluginCpu:Tu,GlancesPluginDiskio:Wu,GlancesPluginContainers:gd,GlancesPluginFolders:_d,GlancesPluginFs:Ld,GlancesPluginGpu:Xd,GlancesPluginIp:sf,GlancesPluginIrq:pf,GlancesPluginLoad:Af,GlancesPluginMem:$f,GlancesPluginMemMore:ip,GlancesPluginMemswap:yp,GlancesPluginNetwork:Rp,GlancesPluginNow:Up,GlancesPluginPercpu:nh,GlancesPluginPorts:hh,GlancesPluginProcess:Wh,GlancesPluginQuicklook:xg,GlancesPluginRaid:Eg,GlancesPluginSensors:Dg,GlancesPluginSystem:$g,GlancesPluginUptime:Vg,GlancesPluginWifi:(0,Wl.Z)(Jg,[["render",function(e,t,n,r,i,s){return ii(),ci("section",Gg,[s.hotspots.length>0?(ii(),ci("div",Wg,Zg)):_i("v-if",!0),(ii(!0),ci(Jr,null,pr(s.hotspots,((t,n)=>(ii(),ci("div",{class:"table-row",key:n},[mi("div",Kg,[wi(E(e.$filters.limitTo(t.ssid,20))+" ",1),t.encrypted?(ii(),ci("span",Xg,E(t.encryption_type),1)):_i("v-if",!0)]),Qg,mi("div",{class:C(["table-cell",s.getDecoration(t,"signal")])},E(t.signal),3)])))),128))])}]])},data:()=>({store:Po}),computed:{args(){return this.store.args||{}},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:e}=this,t=e.stats&&e.stats.system&&e.stats.system.hostname||"";return t?`${t} - Glances`:"Glances"}},watch:{title(){document&&(document.title=this.title)}},methods:{setupHotKeys(){Ao("a",(()=>{this.store.args.sort_processes_key=null})),Ao("c",(()=>{this.store.args.sort_processes_key="cpu_percent"})),Ao("m",(()=>{this.store.args.sort_processes_key="memory_percent"})),Ao("u",(()=>{this.store.args.sort_processes_key="username"})),Ao("p",(()=>{this.store.args.sort_processes_key="name"})),Ao("i",(()=>{this.store.args.sort_processes_key="io_counters"})),Ao("t",(()=>{this.store.args.sort_processes_key="timemillis"})),Ao("shift+A",(()=>{this.store.args.disable_amps=!this.store.args.disable_amps})),Ao("d",(()=>{this.store.args.disable_diskio=!this.store.args.disable_diskio})),Ao("shift+Q",(()=>{this.store.args.enable_irq=!this.store.args.enable_irq})),Ao("f",(()=>{this.store.args.disable_fs=!this.store.args.disable_fs})),Ao("j",(()=>{this.store.args.programs=!this.store.args.programs})),Ao("k",(()=>{this.store.args.disable_connections=!this.store.args.disable_connections})),Ao("n",(()=>{this.store.args.disable_network=!this.store.args.disable_network})),Ao("s",(()=>{this.store.args.disable_sensors=!this.store.args.disable_sensors})),Ao("2",(()=>{this.store.args.disable_left_sidebar=!this.store.args.disable_left_sidebar})),Ao("z",(()=>{this.store.args.disable_process=!this.store.args.disable_process})),Ao("/",(()=>{this.store.args.process_short_name=!this.store.args.process_short_name})),Ao("shift+D",(()=>{this.store.args.disable_containers=!this.store.args.disable_containers})),Ao("b",(()=>{this.store.args.byte=!this.store.args.byte})),Ao("shift+B",(()=>{this.store.args.diskio_iops=!this.store.args.diskio_iops})),Ao("l",(()=>{this.store.args.disable_alert=!this.store.args.disable_alert})),Ao("1",(()=>{this.store.args.percpu=!this.store.args.percpu})),Ao("h",(()=>{this.store.args.help_tag=!this.store.args.help_tag})),Ao("shift+T",(()=>{this.store.args.network_sum=!this.store.args.network_sum})),Ao("shift+U",(()=>{this.store.args.network_cumul=!this.store.args.network_cumul})),Ao("shift+F",(()=>{this.store.args.fs_free_space=!this.store.args.fs_free_space})),Ao("3",(()=>{this.store.args.disable_quicklook=!this.store.args.disable_quicklook})),Ao("6",(()=>{this.store.args.meangpu=!this.store.args.meangpu})),Ao("shift+G",(()=>{this.store.args.disable_gpu=!this.store.args.disable_gpu})),Ao("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})),Ao("shift+I",(()=>{this.store.args.disable_ip=!this.store.args.disable_ip})),Ao("shift+P",(()=>{this.store.args.disable_ports=!this.store.args.disable_ports})),Ao("shift+W",(()=>{this.store.args.disable_wifi=!this.store.args.disable_wifi}))}},mounted(){const e=window.__GLANCES__||{},t=isFinite(e["refresh-time"])?parseInt(e["refresh-time"],10):void 0;Do.init(t),this.setupHotKeys()},beforeUnmount(){Ao.unbind()}};const em=((...e)=>{const t=Ps().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Ls(e);if(!r)return;const i=t._component;H(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t})((0,Wl.Z)(Yg,[["render",function(e,t,n,r,i,s){const o=cr("glances-help"),a=cr("glances-plugin-system"),l=cr("glances-plugin-ip"),c=cr("glances-plugin-uptime"),u=cr("glances-plugin-cloud"),d=cr("glances-plugin-quicklook"),f=cr("glances-plugin-cpu"),p=cr("glances-plugin-percpu"),h=cr("glances-plugin-gpu"),g=cr("glances-plugin-mem"),m=cr("glances-plugin-mem-more"),b=cr("glances-plugin-memswap"),v=cr("glances-plugin-load"),y=cr("glances-plugin-network"),w=cr("glances-plugin-connections"),x=cr("glances-plugin-wifi"),_=cr("glances-plugin-ports"),k=cr("glances-plugin-diskio"),C=cr("glances-plugin-fs"),T=cr("glances-plugin-irq"),S=cr("glances-plugin-folders"),A=cr("glances-plugin-raid"),E=cr("glances-plugin-sensors"),O=cr("glances-plugin-now"),I=cr("glances-plugin-containers"),P=cr("glances-plugin-process"),L=cr("glances-plugin-alert");return s.dataLoaded?s.args.help_tag?(ii(),ui(o,{key:1})):(ii(),ci("main",Ds,[mi("div",js,[mi("div",Rs,[mi("div",qs,[mi("div",Bs,[bi(a,{data:s.data},null,8,["data"])]),s.args.disable_ip?_i("v-if",!0):(ii(),ci("div",Us,[bi(l,{data:s.data},null,8,["data"])])),mi("div",Fs,[bi(c,{data:s.data},null,8,["data"])])])])]),mi("div",$s,[mi("div",zs,[mi("div",Hs,[mi("div",Vs,[bi(u,{data:s.data},null,8,["data"])])])]),mi("div",Gs,[s.args.disable_quicklook?_i("v-if",!0):(ii(),ci("div",Ws,[bi(d,{data:s.data},null,8,["data"])])),s.args.disable_cpu||s.args.percpu?_i("v-if",!0):(ii(),ci("div",Zs,[bi(f,{data:s.data},null,8,["data"])])),!s.args.disable_cpu&&s.args.percpu?(ii(),ci("div",Ks,[bi(p,{data:s.data},null,8,["data"])])):_i("v-if",!0),!s.args.disable_gpu&&s.hasGpu?(ii(),ci("div",Xs,[bi(h,{data:s.data},null,8,["data"])])):_i("v-if",!0),s.args.disable_mem?_i("v-if",!0):(ii(),ci("div",Qs,[bi(g,{data:s.data},null,8,["data"])])),_i(" NOTE: display if MEM enabled and GPU disabled "),s.args.disable_mem||!s.args.disable_gpu&&s.hasGpu?_i("v-if",!0):(ii(),ci("div",Js,[bi(m,{data:s.data},null,8,["data"])])),s.args.disable_memswap?_i("v-if",!0):(ii(),ci("div",Ys,[bi(b,{data:s.data},null,8,["data"])])),s.args.disable_load?_i("v-if",!0):(ii(),ci("div",eo,[bi(v,{data:s.data},null,8,["data"])]))])]),mi("div",to,[mi("div",no,[s.args.disable_left_sidebar?_i("v-if",!0):(ii(),ci("div",ro,[mi("div",io,[s.args.disable_network?_i("v-if",!0):(ii(),ui(y,{key:0,id:"plugin-network",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.isLinux&&!s.args.disable_connections?(ii(),ui(w,{key:1,id:"plugin-connections",class:"plugin table-row-group",data:s.data},null,8,["data"])):_i("v-if",!0),s.args.disable_wifi?_i("v-if",!0):(ii(),ui(x,{key:2,id:"plugin-wifi",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_ports?_i("v-if",!0):(ii(),ui(_,{key:3,id:"plugin-ports",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_diskio?_i("v-if",!0):(ii(),ui(k,{key:4,id:"plugin-diskio",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_fs?_i("v-if",!0):(ii(),ui(C,{key:5,id:"plugin-fs",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.enable_irq?(ii(),ui(T,{key:6,id:"plugin-irq",class:"plugin table-row-group",data:s.data},null,8,["data"])):_i("v-if",!0),s.args.disable_folders?_i("v-if",!0):(ii(),ui(S,{key:7,id:"plugin-folders",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.raid?_i("v-if",!0):(ii(),ui(A,{key:8,id:"plugin-raid",class:"plugin table-row-group",data:s.data},null,8,["data"])),s.args.disable_sensors?_i("v-if",!0):(ii(),ui(E,{key:9,id:"plugin-sensors",class:"plugin table-row-group",data:s.data},null,8,["data"])),bi(O,{data:s.data},null,8,["data"])])])),mi("div",so,[s.args.disable_containers?_i("v-if",!0):(ii(),ui(I,{key:0,data:s.data},null,8,["data"])),bi(P,{data:s.data},null,8,["data"]),s.args.disable_alert?_i("v-if",!0):(ii(),ui(L,{key:1,data:s.data},null,8,["data"]))])])])])):(ii(),ci("div",Ns,Ms))}]]));em.config.globalProperties.$filters=e,em.mount("#app")})()})(); \ No newline at end of file