(function(t){function e(e){for(var s,r,i=e[0],l=e[1],c=e[2],d=0,u=[];d0&&(t.layout.charts=JSON.parse(localStorage.dashboardCharts).map((function(t){return Object(o["a"])(t)}))),document.body.style.backgroundColor=t.themes[t.options.current].backgroundColor},setStats:function(t,e){t.data.stats=e},pushStats:function(t,e){t.data.stats.push(e),t.data.stats.length>t.data.maxStorePoints&&t.data.stats.splice(0,t.data.stats.length-t.data.maxStorePoints)},pushDate:function(t,e){t.data.date.push(e),t.data.date.length>t.data.maxStorePoints&&t.data.date.splice(0,t.data.date.length-t.data.maxStorePoints)},pushBytesSent:function(t,e){t.data.bytesSent.push(e);while(t.data.bytesSent.length>t.data.maxStorePoints)t.data.bytesSent.splice(0,t.data.bytesSent.length-t.data.maxStorePoints)},pushBytesSentChange:function(t,e){t.data.bytesSentChange.push(e);while(t.data.bytesSentChange.length>t.data.maxStorePoints)t.data.bytesSentChange.splice(0,t.data.bytesSentChange.length-t.data.maxStorePoints)},pushReqServ:function(t,e){t.data.reqServ.push(e),t.data.reqServ.length>t.data.maxStorePoints&&t.data.reqServ.splice(0,t.data.reqServ.length-t.data.maxStorePoints)},pushReqServChange:function(t,e){t.data.reqServChange.push(e),t.data.reqServChange.length>t.data.maxStorePoints&&t.data.reqServChange.splice(0,t.data.reqServChange.length-t.data.maxStorePoints)},pushSizeDisk:function(t,e){t.data.sizeDisk.push(e),t.data.sizeDisk.length>t.data.maxStorePoints&&t.data.sizeDisk.splice(0,t.data.sizeDisk.length-t.data.maxStorePoints)},pushSizeDiskChange:function(t,e){t.data.sizeDiskChange.push(e),t.data.sizeDiskChange.length>t.data.maxStorePoints&&t.data.sizeDiskChange.splice(0,t.data.sizeDiskChange.length-t.data.maxStorePoints)},pushHits:function(t,e){t.data.hits.push(e),t.data.hits.length>t.data.maxStorePoints&&t.data.hits.splice(0,t.data.hits.length-t.data.maxStorePoints)},pushHitsChange:function(t,e){t.data.hitsChange.push(e),t.data.hitsChange.length>t.data.maxStorePoints&&t.data.hitsChange.splice(0,t.data.hitsChange.length-t.data.maxStorePoints)},pushMisses:function(t,e){t.data.misses.push(e),t.data.misses.length>t.data.maxStorePoints&&t.data.misses.splice(0,t.data.misses.length-t.data.maxStorePoints)},pushMissesChange:function(t,e){t.data.missesChange.push(e),t.data.missesChange.length>t.data.maxStorePoints&&t.data.missesChange.splice(0,t.data.missesChange.length-t.data.maxStorePoints)},pushCached:function(t,e){t.data.cached.push(e),t.data.cached.length>t.data.maxStorePoints&&t.data.cached.splice(0,t.data.cached.length-t.data.maxStorePoints)},pushCachedChange:function(t,e){t.data.cachedChange.push(e),t.data.cachedChange.length>t.data.maxStorePoints&&t.data.cachedChange.splice(0,t.data.cachedChange.length-t.data.maxStorePoints)},resetStats:function(t){t.data={date:[],bytesSent:[],bytesSentChange:[],sizeDisk:[],sizeDiskChange:[],reqServ:[],reqServChange:[],hits:[],hitsChange:[],misses:[],missesChange:[],cached:[],cachedChange:[],stats:[],updateInterval:t.data.updateInterval,maxStorePoints:t.data.maxStorePoints},localStorage.stats=""},resetLayout:function(t){t.layout.grid=i.map((function(t){return{x:t.x,y:t.y,w:t.w,h:t.h,i:3-t.i}})),t.layout.charts=l.map((function(t){return Object(o["a"])(t)})),localStorage.dashboardLayout=JSON.stringify(t.layout.grid),localStorage.dashboardCharts=JSON.stringify(t.layout.charts)},setSpecificLayout:function(t,e){var a=0;t.layout.grid.forEach((function(t,s){t.i===e.i&&(a=s)})),null!=e.w&&(t.layout.grid[a].w=e.w),null!=e.h&&(t.layout.grid[a].h=e.h),null!=e.x&&(t.layout.grid[a].x=e.x),null!=e.y&&(t.layout.grid[a].y=e.y),localStorage.dashboardLayout=JSON.stringify(n.layout.grid)},setLayout:function(t,e){t.layout.grid=e},setChart:function(t,e){t.layout.charts=e},addLayoutContainer:function(t,e){var a=t.layout.grid.length,s=[];t.layout.grid.forEach((function(t){return s.push(t.i)}));for(var r=0;r0?s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),s("v-row",{staticClass:"mr-3",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[s("v-btn",{staticClass:"mt-2",style:{color:e.$store.getters.current.textColor},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addAxis(a)}}},[s("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.tempoptions.yAxis.length>1?s("v-btn",{staticClass:"mt-2",style:{color:e.$store.getters.current.textColor},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removeAxis(a)}}},[s("v-icon",[e._v("mdi-minus")])],1):e._e()],1),s("v-col",{staticClass:"pa-0"},[s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"line.name"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Units ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Units":"",dense:"",items:e.units,value:t.axisLabel?t.axisLabel.unit:0,"item-text":"name","item-value":"idx",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.setYAxisUnits(t,a)}}})],1)],1)],1)],1)],1)})),0):e._e()]),s("v-btn",{staticClass:"mt-2",staticStyle:{width:"100%",height:"14px","padding-top":"2px","padding-bottom":"2px"},style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1,elevation:"0",tile:"",small:""},on:{click:function(){return t.showdatasets=!t.showdatasets}}},[e.showdatasets?s("v-icon",[e._v("mdi-chevron-up")]):e._e(),e.showdatasets?e._e():s("v-icon",[e._v("mdi-chevron-down")]),e._v(" Datasets ")],1),s("v-expand-transition",[e.showdatasets?s("div",e._l(e.$store.getters.layout.tempoptions.series,(function(t,a){return s("div",{key:a,class:e.$vuetify.breakpoint.mdAndDown?"mt-3":"mt-1"},[a>0?s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),s("v-row",{staticClass:"mr-3",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[s("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addSet(a)}}},[s("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.tempoptions.series.length>1?s("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removeSet(a)}}},[s("v-icon",[e._v("mdi-minus")])],1):e._e()],1),s("v-col",{staticClass:"pa-0"},[s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},on:{input:function(t){return e.$store.getters.layout.tempoptions.legend.data[a]=t}},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"line.name"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Type ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Type":"",dense:"",items:e.graphTypes,"item-value":"val","item-text":"name",dark:e.$store.getters.current.isDark},model:{value:t.type,callback:function(a){e.$set(t,"type",a)},expression:"line.type"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Dataset ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Dataset":"",dense:"",items:e.trackabledata,"item-value":"data","item-text":"name",dark:e.$store.getters.current.isDark},on:{change:function(a){return e.trackabledata.forEach((function(e){a===e.data&&(t.dataId=e.name)}))}},model:{value:t.data,callback:function(a){e.$set(t,"data",a)},expression:"line.data"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Y-Axis ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Y-Axis":"",dense:"",items:e.$store.getters.layout.tempoptions.yAxis.map((function(t,e){return{idx:e,data:t}})),value:t.yAxisIndex?t.yAxisIndex:0,"item-text":"data.name","item-value":"idx",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.setYAxis(t,a)}}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Color ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-hover",{scopedSlots:e._u([{key:"default",fn:function(a){var r=a.hover;return[s("div",{staticStyle:{position:"relative",width:"100%",height:"30px",border:"2px solid","margin-top":"9px"},style:{backgroundColor:t.itemStyle.color,borderColor:e.$store.getters.current.textColor}},[s("v-scroll-x-transition",[r?s("v-color-picker",{staticStyle:{position:"absolute","z-index":"99999",top:"-260px",left:"calc(100% + 2px)"},style:{backgroundColor:e.$store.getters.current.secondary},attrs:{elevation:"3","hide-mode-switch":""},model:{value:t.itemStyle.color,callback:function(a){e.$set(t.itemStyle,"color",a)},expression:"line.itemStyle.color"}}):e._e()],1)],1)]}}],null,!0)})],1)],1)],1)],1)],1)})),0):e._e()])],1):e._e()]),s("v-fade-transition",[e.graph?e._e():s("div",e._l(e.$store.getters.layout.temppieoptions.series[0].data,(function(t,a){return s("div",{key:a},[a>0?s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}):e._e(),s("v-row",{staticClass:"mr-3",attrs:{dense:""}},[s("v-col",{staticClass:"pa-0",attrs:{cols:"2"}},[s("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.addPieSet(a)}}},[s("v-icon",[e._v("mdi-plus")])],1),e.$store.getters.layout.temppieoptions.series[0].data.length>1?s("v-btn",{style:{color:e.$store.getters.current.textColor,marginTop:"10px"},attrs:{small:"",icon:"",color:e.$store.getters.current.accent1},on:{click:function(t){return e.removePieSet(a)}}},[s("v-icon",[e._v("mdi-minus")])],1):e._e()],1),s("v-col",{staticClass:"pa-0"},[s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Name ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-text-field",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Name":"",dense:"",dark:e.$store.getters.current.isDark},on:{input:function(t){return e.$store.getters.layout.temppieoptions.legend.data[a]=t}},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"line.name"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Dataset ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-select",{staticStyle:{"padding-top":"6px"},attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Dataset":"",dense:"",items:e.trackabledata,"item-value":function(t){return t.data[t.data.length-1][1]},"item-text":"name",dark:e.$store.getters.current.isDark},on:{change:function(a){return e.trackabledata.forEach((function(e){a===e.data[e.data.length-1][1]&&(t.dataId=e.name)}))}},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"line.value"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pa-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pl-1",style:{color:e.$store.getters.current.textColor}},[e._v(" Color ")])],1),s("v-col",{staticClass:"pa-0",attrs:{cols:e.$vuetify.breakpoint.mdAndDown?12:8}},[s("v-hover",{scopedSlots:e._u([{key:"default",fn:function(a){var r=a.hover;return[s("div",{staticStyle:{position:"relative",width:"100%",height:"30px",border:"2px solid","margin-top":"9px"},style:{backgroundColor:t.itemStyle.color,borderColor:e.$store.getters.current.textColor}},[s("v-scroll-x-transition",[r?s("v-color-picker",{staticStyle:{position:"absolute","z-index":"99999",top:"-260px",left:"calc(100% + 2px)"},style:{backgroundColor:e.$store.getters.current.secondary},attrs:{elevation:"3","hide-mode-switch":""},model:{value:t.itemStyle.color,callback:function(a){e.$set(t.itemStyle,"color",a)},expression:"line.itemStyle.color"}}):e._e()],1)],1)]}}],null,!0)})],1)],1)],1)],1)],1)})),0)])],1),e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{attrs:{cols:"8"}},[s("chart",{key:e.prevreload,staticStyle:{width:"100%",left:"0"},attrs:{autoresize:"",options:e.graph?e.$store.getters.layout.tempoptions:e.$store.getters.layout.temppieoptions}})],1)],1),s("v-btn",{style:{color:e.$store.getters.current.textColor,right:"12px",bottom:"12px"},attrs:{absolute:"",tile:"",color:e.$store.getters.current.accent1},on:{click:function(){e.$store.commit("addLayoutContainer",e.construct(e.exportgraph(e.graph?e.$store.getters.layout.tempoptions:e.$store.getters.layout.temppieoptions,e.graph?"graph":"pie"))),e.$modal.hide("createGraph")}}},[e._v(" Add Graph ")])],1)],1)],1)],1)},V=[],I=(a("a434"),a("b0c0"),a("b680"),a("ac1f"),a("5319"),a("5fb0")),O=a("c1df"),M=a.n(O),L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("grid-layout",{staticStyle:{width:"100%"},attrs:{layout:t.store.getters.layout.grid,"col-num":12,"row-height":30,margin:[12,12],"is-draggable":!0,"is-resizable":!0,"vertical-compact":!0},on:{"update:layout":function(e){return t.$set(t.store.getters.layout,"grid",e)}}},t._l(t.store.getters.layout.grid,(function(e,s){return a("grid-item",{key:e.i,style:{backgroundColor:t.store.getters.current.secondary+t.store.getters.alpha,color:t.store.getters.current.accent},attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,"drag-allow-from":".vue-draggable-handle","drag-ignore-from":".no-drag"},on:{move:t.moved,resize:t.resized}},[a("v-container",{staticClass:"no-drag",staticStyle:{height:"100%",width:"100%",position:"absolute"},attrs:{fluid:""}},[a("chart",{staticStyle:{height:"100%",width:"100%"},attrs:{autoresize:"",options:t.store.getters.layout.charts[t.getIndex(e.i)]}})],1),a("v-icon",{staticClass:"vue-draggable-handle",style:{position:"absolute",color:t.store.getters.current.accent,left:"calc(50% - 5px)",width:"10px"},attrs:{dense:"",small:""}},[t._v("mdi-drag-horizontal-variant ")]),a("v-icon",{style:{position:"absolute",color:t.store.getters.current.accent,bottom:"2px",right:"2px"},attrs:{dense:"",small:""}},[t._v("mdi-resize-bottom-right ")]),a("v-icon",{style:{position:"absolute",color:t.store.getters.current.accent,top:"2px",right:"2px"},attrs:{dense:"",small:""},on:{click:function(e){return t.store.commit("removeLayoutContainer",s)}}},[t._v("mdi-close ")])],1)})),1)},B=[],H={name:"dashGrid",components:{chart:function(){return a.e("chunk-7577183e").then(a.bind(null,"70e0"))}},data:function(){return{store:n["a"],vuetify:j}},methods:{moved:function(t,e,a){n["a"].commit("setSpecificLayout",{i:t,x:e,y:a})},resized:function(t,e,a){n["a"].commit("setSpecificLayout",{i:t,w:a,h:e})},getIndex:function(t){var e=0;return n["a"].getters.layout.grid.forEach((function(a,s){t===a.i&&(e=s)})),e}},computed:{update:function(){return n["a"].getters.data.date}},watch:{update:function(){n["a"].getters.layout.charts.forEach((function(t){"pie"===t.type&&t.series[0].data.forEach((function(t){switch(t.dataId){case"Hits":t.value=n["a"].getters.lastValueOf("hits");break;case"Misses":t.value=n["a"].getters.lastValueOf("misses");break;case"Browser Cached":t.value=n["a"].getters.lastValueOf("cached");break;case"Requests Served":t.value=n["a"].getters.lastValueOf("reqServ");break;case"Bytes Sent":t.value=n["a"].getters.lastValueOf("bytesSent");break;case"Bytes On Disk":t.value=n["a"].getters.lastValueOf("sizeDisk");break;case"Change in Hits":t.value=n["a"].getters.lastValueOf("hitsChange");break;case"Change in Misses":t.value=n["a"].getters.lastValueOf("missesChange");break;case"Change in Browser Cached":t.value=n["a"].getters.lastValueOf("cachedChange");break;case"Change in Requests Served":t.value=n["a"].getters.lastValueOf("reqServChange");break;case"Change in Bytes Sent":t.value=n["a"].getters.lastValueOf("bytesSentChange");break;case"Change in Bytes On Disk":t.value=n["a"].getters.lastValueOf("sizeDiskChange");break}}))}))}}},z=H,P=(a("d048"),a("a523")),T=Object(c["a"])(z,L,B,!1,null,null,null),N=T.exports;u()(T,{VContainer:P["a"],VIcon:f["a"]});var q=s["default"].extend(N),R={name:"Dashboard",components:{chart:function(){return a.e("chunk-7577183e").then(a.bind(null,"70e0"))}},data:function(){return{graph:!0,showdatasets:!0,showyaxis:!0,prevreload:0,units:[{idx:0,name:"None",arr:[]},{idx:1,name:"Data",arr:I["b"]},{idx:2,name:"Number",arr:I["f"]}],trackabledata:[{name:"Hits",data:n["a"].getters.data.hits},{name:"Misses",data:n["a"].getters.data.misses},{name:"Browser Cached",data:n["a"].getters.data.cached},{name:"Requests Served",data:n["a"].getters.data.reqServ},{name:"Bytes Sent",data:n["a"].getters.data.bytesSent},{name:"Bytes On Disk",data:n["a"].getters.data.sizeDisk},{name:"Change in Hits",data:n["a"].getters.data.hitsChange},{name:"Change in Misses",data:n["a"].getters.data.missesChange},{name:"Change in Browser Cached",data:n["a"].getters.data.cachedChange},{name:"Change in Requests Served",data:n["a"].getters.data.reqServChange},{name:"Change in Bytes Sent",data:n["a"].getters.data.bytesSentChange},{name:"Change in Bytes On Disk",data:n["a"].getters.data.sizeDiskChange}],graphTypes:[{name:"Line",val:"line"},{name:"Bar",val:"bar"}],instance:null}},mounted:function(){var t=this;this.$nextTick((function(){t.instance=new q,t.instance.$mount(),t.$refs.grid.appendChild(t.instance.$el)}))},beforeDestroy:function(){this.instance.$destroy()},methods:{construct:function(t){return Object(I["a"])(t)},showModal:function(){this.uniqpieindex=0,this.uniqindex=0,this.axisindex=0,n["a"].commit("setTempOptions",{title:{left:"center",text:"Title",textStyle:{color:n["a"].getters.current.textColor}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{color:n["a"].getters.current.secondary,formatter:function(t){return"x"===t.axisDimension&&t.seriesData[0]&&t.seriesData[0].data?M.a.utc(t.seriesData[0].data[0]).format("MMM D, h:mm:ssa"):t.value.toFixed(0)}}}},toolbox:{orient:"vertical",top:30,iconStyle:{color:n["a"].getters.current.accent,borderColor:"#00000000"},emphasis:{iconStyle:{textPosition:"left",color:n["a"].getters.current.accent2,borderColor:"#00000000"}},feature:{dataZoom:{show:!0,yAxisIndex:"none",icon:{zoom:"M14,17H17V14H19V17H22V19H19V22H17V19H14V17M12,17V19H9V17H12M7,17V19H3V15H5V17H7M3,13V10H5V13H3M3,8V4H7V6H5V8H3M9,4H12V6H9V4M15,4H19V8H17V6H15V4M19,10V12H17V10H19Z",back:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"},title:{zoom:"Zoom",back:"Undo"}},restore:{title:"Restore",icon:"M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z"}}},grid:{right:40,left:40,bottom:40,top:60,containLabel:!0},legend:{left:"center",show:!0,top:22,data:["item"],inactiveColor:n["a"].getters.current.accent2,textStyle:{color:n["a"].getters.current.textColor}},xAxis:{type:"time",axisLine:{lineStyle:{color:n["a"].getters.current.textColor}},splitLine:{lineStyle:{color:n["a"].getters.current.accent1}},axisLabel:{formatter:function(t){return M.a.utc(t).format("MMM D|h:mma").replace("|","\n")},splitNumber:10,showMaxLabel:!0,showMinLabel:!0}},yAxis:[{type:"value",name:"axis",scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLine:{lineStyle:{color:n["a"].getters.current.textColor}},axisLabel:{formatter:null,unit:0},splitLine:{show:!1}}],dataZoom:[{type:"inside"},{start:90,type:"slider",handleSize:"100%",fillerColor:n["a"].getters.current.accent1,handleStyle:{color:n["a"].getters.current.textColor},dataBackground:{lineStyle:{color:n["a"].getters.current.textColor},areaStyle:{color:n["a"].getters.current.accent}},textStyle:{color:n["a"].getters.current.textColor}}],series:[{name:"item",type:"line",data:n["a"].getters.data.hits,dataId:"Hits",yAxisIndex:0,showSymbol:!1,itemStyle:{color:"#ef0e00"}}]}),n["a"].commit("setTempPieOptions",{title:{left:"center",text:"Title",textStyle:{color:n["a"].getters.current.textColor}},tooltip:{trigger:"item",formatter:" {b}
{c} ({d}%)"},legend:{orient:"vertical",show:!0,left:0,data:["item"],inactiveColor:n["a"].getters.current.accent2,textStyle:{color:n["a"].getters.current.textColor}},series:[{type:"pie",avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},data:[{name:"item",value:n["a"].getters.data.hits[n["a"].getters.data.hits.length-1]?n["a"].getters.data.hits[n["a"].getters.data.hits.length-1][1]:0,dataId:"Hits",itemStyle:{color:"#ef0e00"}}]}]}),this.$modal.show("createGraph")},addSet:function(t){for(var e="0123456789abcdef",a="#",s=0;s<6;s++)a+=e.substr(Math.floor(Math.random()*e.length),1);var r={name:"item "+this.uniqindex++,type:"line",data:n["a"].getters.data.hits.map((function(t){return t})),dataId:"Hits",yAxisIndex:0,showSymbol:!1,itemStyle:{color:a}};n["a"].getters.layout.tempoptions.series.splice(t+1,0,r),n["a"].getters.layout.tempoptions.legend.data.splice(t+1,0,r.name),this.prevreload=!this.prevreload},removeSet:function(t){n["a"].getters.layout.tempoptions.series.splice(t,1),n["a"].getters.layout.tempoptions.legend.data.splice(t,1),this.prevreload=!this.prevreload},addPieSet:function(t){for(var e="0123456789abcdef",a="#",s=0;s<6;s++)a+=e.substr(Math.floor(Math.random()*e.length),1);var r={name:"item "+this.uniqpieindex++,value:n["a"].getters.data.hits[n["a"].getters.data.hits.length-1]?n["a"].getters.data.hits[n["a"].getters.data.hits.length-1][1]:0,dataId:"Hits",itemStyle:{color:a}};n["a"].getters.layout.temppieoptions.series[0].data.splice(t+1,0,r),n["a"].getters.layout.temppieoptions.legend.data.splice(t+1,0,r.name),this.prevreload=!this.prevreload},removePieSet:function(t){n["a"].getters.layout.temppieoptions.series[0].data.splice(t,1),n["a"].getters.layout.temppieoptions.legend.data.splice(t,1),this.prevreload=!this.prevreload},setYAxis:function(t,e){n["a"].getters.layout.tempoptions.series[e].yAxisIndex=t,this.prevreload=!this.prevreload},setYAxisUnits:function(t,e){var a=this;n["a"].getters.layout.tempoptions.yAxis[e].axisLabel=0===t?{formatter:null,unit:0}:{formatter:function(e){return Object(I["d"])(e,a.units[t].arr)},unit:t},this.prevreload=!this.prevreload},addAxis:function(t){n["a"].getters.layout.tempoptions.yAxis.splice(t+1,0,{type:"value",name:"axis "+this.axisindex++,offset:80*(n["a"].getters.layout.tempoptions.yAxis.length-1),scale:!0,max:function(t){return t.max.toFixed(5).replace(/\.?0*$/,"")},min:function(t){return t.min.toFixed(5).replace(/\.?0*$/,"")},axisLine:{lineStyle:{color:n["a"].getters.current.textColor}},axisLabel:{formatter:null,unit:0},splitLine:{show:!1}}),this.prevreload=!this.prevreload},removeAxis:function(t){n["a"].getters.layout.tempoptions.yAxis.splice(t,1),this.prevreload=!this.prevreload},exportgraph:function(t,e){return Object(I["c"])(t,e)},log:function(t){console.log(t)}},computed:{g:function(){return this.graph}},watch:{g:function(){this.prevreload=!this.prevreload}}},E=R,F=a("8336"),J=a("a609"),U=a("ac7c"),Z=a("62ad"),G=a("03a4"),Y=a("ce87"),W=a("0fd9"),K=a("b974"),X=a("e0c7"),Q=a("8654"),tt=Object(c["a"])(E,A,V,!1,null,null,null),et=tt.exports;u()(tt,{VBtn:F["a"],VBtnToggle:J["a"],VCheckbox:U["a"],VCol:Z["a"],VColorPicker:G["a"],VContainer:P["a"],VExpandTransition:m["a"],VFadeTransition:m["d"],VHover:Y["a"],VIcon:f["a"],VRow:W["a"],VScrollXTransition:m["f"],VSelect:K["a"],VSubheader:X["a"],VTextField:Q["a"]});var at=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[a("v-container",{staticClass:"pt-0 pb-0",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[a("v-row",[a("v-col",[a("h1",{staticClass:"pl-1"},[t._v("Console")])]),a("v-col",[a("v-btn",{staticStyle:{position:"absolute",right:"0","margin-right":"28px","margin-top":"5px"},style:{color:t.$store.getters.current.textColor},attrs:{color:t.$store.getters.current.accent1,tile:""}},[t._v("Disconnected ")])],1)],1)],1),a("xterm",{staticClass:"mt-3 mb-3",staticStyle:{width:"100%"}})],1)},st=[],rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:t.genid}})},ot=[],nt=a("fcf3"),it=a("47d0"),lt={name:"xterm",props:["lines"],data:function(){return{genid:"term",term:null,fitaddon:new it["FitAddon"]}},beforeMount:function(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<20;a++)t+=e.charAt(Math.floor(Math.random()*e.length));this.genid=t,this.term=new nt["Terminal"]({disableStdin:!1,rows:30,cols:50,cursorBlink:!0,cursorStyle:"underline",fontSize:15}),this.term.loadAddon(this.fitaddon)},mounted:function(){var t=this;this.term.open(document.getElementById(this.genid)),window.addEventListener("resize",this.fit),this.$nextTick((function(){return t.fitaddon.fit()})),this.runFakeTerminal()},beforeDestroy:function(){this.term.dispose(),window.removeEventListener("resize",this.fit)},methods:{fit:function(){this.fitaddon.fit()},runFakeTerminal:function(){var t=this;this.term._initialized||(this.term._initialized=!0,this.term.writeln("Welcome to the Web UI console"),this.term.writeln("Anti was super lazy and didnt bother to actually implement a console sync"),this.term.writeln("Go ping him (please don't) to do some more work and stop reading manga"),this.term.writeln("You're still free to type and spam in this console to your heart's content tho"),this.term.writeln(""),this.prompt(this.term),this.term.onData((function(e){switch(e){case"\r":case"":t.prompt(t.term);break;case"":t.term._core.buffer.x>2&&t.term.write("\b \b");break;default:t.term.write(e)}})))},prompt:function(t){t.write("\r\n> ")}}},ct=lt,dt=(a("a950"),Object(c["a"])(ct,rt,ot,!1,null,null,null)),ut=dt.exports,pt={name:"Console",components:{Xterm:ut}},gt=pt,ht=Object(c["a"])(gt,at,st,!1,null,"7209c405",null),mt=ht.exports;u()(ht,{VBtn:F["a"],VCol:Z["a"],VContainer:P["a"],VRow:W["a"]});var ft=function(){var t=this,e=this,a=e.$createElement,s=e._self._c||a;return s("v-container",{style:{color:e.$store.getters.current.textColor},attrs:{fluid:""}},[s("v-container",{style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[s("h1",{staticClass:"pl-1"},[e._v("Settings")])]),s("v-container",{staticClass:"pa-5 pb-9 mt-3",style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[s("h3",[e._v("Web Settings")]),s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}),s("h4",[e._v("Display")]),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{style:{color:e.$store.getters.current.textColor}},[e._v("Theme ")])],1),s("v-col",{staticClass:"pt-2 pb-0",attrs:{cols:"12",md:"8"}},[s("v-select",{attrs:{dense:"",label:e.$vuetify.breakpoint.mdAndDown?"Theme":"",items:e.items,"item-value":"val","item-text":"disp",value:e.$store.state.options.current,color:e.$store.getters.current.textColor,dark:e.$store.getters.current.isDark},on:{input:function(t){return e.$store.commit("setTheme",t)}}})],1)],1),e.$vuetify.breakpoint.mdAndDown?e._e():s("v-row",{attrs:{dense:""}},[s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Show App Bar ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-switch",{attrs:{dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("showAppBar",e.showbar)}},model:{value:e.showbar,callback:function(t){e.showbar=t},expression:"showbar"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Background Image ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-switch",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Background Image":"",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("setHasBg",e.hasBgImage)}},model:{value:e.hasBgImage,callback:function(t){e.hasBgImage=t},expression:"hasBgImage"}})],1)],1),e.hasBgImage?s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Image URL ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Image URL":"",dark:e.$store.getters.current.isDark},on:{change:function(t){return e.$store.commit("setBgUrl",e.bgimg)}},model:{value:e.bgimg,callback:function(t){e.bgimg=t},expression:"bgimg"}})],1)],1):e._e(),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-3",style:{color:e.$store.getters.current.textColor}},[e._v("Dashboard ")])],1),s("v-col",{staticClass:"pt-2 pb-0",attrs:{cols:"12",md:"8"}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetLayout")}}},[e._v(" Reset ")]),e.$vuetify.breakpoint.mdAndDown?s("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetLayout")}}},[e._v(" Reset Dashboard ")]):e._e()],1)],1),s("h4",{staticClass:"mt-3"},[e._v("Data")]),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Data Refresh Rate ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[s("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Data Refresh Rate":"",dark:e.$store.getters.current.isDark,"error-messages":e.referr[0],suffix:"ms"},on:{input:function(t){e.checkNan(t,0),e.$store.commit("setRefresh",t)},focusout:function(){return t.updateInterval=e.$store.getters.data.updateInterval}},model:{value:e.updateInterval,callback:function(t){e.updateInterval=t},expression:"updateInterval"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Data Points ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8"}},[s("v-text-field",{attrs:{label:e.$vuetify.breakpoint.mdAndDown?"Max Data Points":"",dark:e.$store.getters.current.isDark,"error-messages":e.referr[1]},on:{input:function(t){e.checkNan(t,1),e.$store.commit("setMaxStorePoints",t)},focusout:function(){return t.maxpoints=e.$store.getters.data.maxStorePoints}},model:{value:e.maxpoints,callback:function(t){e.maxpoints=t},expression:"maxpoints"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-2",style:{color:e.$store.getters.current.textColor}},[e._v("Stats ")])],1),s("v-col",{staticClass:"pt-2 pb-0",attrs:{cols:"12",md:"8"}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetStats")}}},[e._v(" Reset ")]),e.$vuetify.breakpoint.mdAndDown?s("v-btn",{style:{color:e.$store.getters.current.textColor},attrs:{color:e.$store.getters.current.accent1},on:{click:function(t){return e.$store.commit("resetStats")}}},[e._v(" Reset Stats ")]):e._e()],1)],1)],1),s("v-container",{staticClass:"pa-5 mt-3",style:{backgroundColor:e.$store.getters.current.secondary+e.$store.getters.alpha},attrs:{fluid:""}},[s("h3",[e._v("Client Settings (Currently only for creating new settings)")]),s("div",{staticClass:"mt-2 mb-2",staticStyle:{width:"100%",height:"1px"},style:{backgroundColor:e.$store.getters.current.accent2}}),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Secret ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[0],label:e.$vuetify.breakpoint.mdAndDown?"Client Secret":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[0],callback:function(t){e.$set(e.configvals,0,t)},expression:"configvals[0]"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Host IP ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[1],label:e.$vuetify.breakpoint.mdAndDown?"Client Host IP":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[1],callback:function(t){e.$set(e.configvals,1,t)},expression:"configvals[1]"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Client Port ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[2],label:e.$vuetify.breakpoint.mdAndDown?"Client Port":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[2],callback:function(t){e.$set(e.configvals,2,t)},expression:"configvals[2]"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Shutdown Wait Time ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"6"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[3],label:e.$vuetify.breakpoint.mdAndDown?"Max Shutdown Wait Time":"",dark:e.$store.getters.current.isDark},model:{value:e.msw,callback:function(t){e.msw=t},expression:"msw"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[e._v(e._s(e.mswtprev))])])],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Threads ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"12",md:"8"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[4],label:e.$vuetify.breakpoint.mdAndDown?"Max Threads":"",dark:e.$store.getters.current.isDark},model:{value:e.configvals[3],callback:function(t){e.$set(e.configvals,3,t)},expression:"configvals[3]"}})],1)],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Cache Size ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[5],label:e.$vuetify.breakpoint.mdAndDown?"Max Cache Size":"",dark:e.$store.getters.current.isDark},model:{value:e.mcs,callback:function(t){e.mcs=t},expression:"mcs"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[e._v(e._s(e.mcsprev))])])],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Hourly Bandwith ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[6],label:e.$vuetify.breakpoint.mdAndDown?"Max Hourly Bandwith":"",dark:e.$store.getters.current.isDark},model:{value:e.mhb,callback:function(t){e.mhb=t},expression:"mhb"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[e._v(e._s(e.mhbprev))])])],1),s("v-row",{attrs:{dense:""}},[e.$vuetify.breakpoint.mdAndDown?e._e():s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"4"}},[s("v-subheader",{staticClass:"pt-5",style:{color:e.$store.getters.current.textColor}},[e._v("Max Burst Speed ")])],1),s("v-col",{staticClass:"pt-0 pb-0",attrs:{cols:"8",md:"6"}},[s("v-text-field",{attrs:{"error-messages":e.configerrors[7],label:e.$vuetify.breakpoint.mdAndDown?"Max Burst Speed":"",dark:e.$store.getters.current.isDark},model:{value:e.mbs,callback:function(t){e.mbs=t},expression:"mbs"}})],1),s("v-col",{staticClass:"pt-6 pb-0",attrs:{cols:"4",md:"2"}},[s("span",[e._v(e._s(e.mbsprev))])])],1),s("v-container",{attrs:{fluid:""}},[s("h3",[e._v("Config Result")]),s("v-container",{staticStyle:{"background-color":"#000000",color:"#fff"},attrs:{fluid:""}},[s("p",{staticClass:"mb-0",staticStyle:{"font-family":"monospace"}},[e._v(" {"),s("br"),e._v(' "client_secret": "'+e._s(e.configvals[0])+'",'),s("br"),e._v(' "client_hostname": "'+e._s(e.configvals[1])+'",'),s("br"),e._v(' "client_port": "'+e._s(e.configvals[2])+'",'),s("br"),e._v(' "threads": "'+e._s(e.configvals[3])+'",'),s("br"),e._v(' "graceful_shutdown_wait_seconds": "'+e._s(e.configvals[4])+'",'),s("br"),e._v(' "max_cache_size_in_mebibytes": "'+e._s(e.configvals[5])+'",'),s("br"),e._v(' "max_kilobits_per_second": "'+e._s(e.configvals[6])+'",'),s("br"),e._v(' "max_mebibytes_per_hour": "'+e._s(e.configvals[7])+'",'),s("br"),e._v(" } ")])])],1)],1)],1)},vt=[],bt=(a("c975"),{name:"Options",methods:{checkNan:function(t,e){isNaN(t)?this.referr[e]="That is not a number!":this.referr[e]=""}},data:function(){return{items:[{disp:"Light",val:"light"},{disp:"Dark",val:"dark"},{disp:"Midnight",val:"midnight"},{disp:"I wan't to die",val:"eyekiller"}],mcsprev:"1.049 mb",mcs:1048576,mhbprev:"1.049 mb",mhb:1048576,mbsprev:"1 kps",mbs:1e3,mswtprev:"1 m",msw:60,configvals:["iiesenpaithisisoursecret","0.0.0.0",44300,16,60,1,1,1],configerrors:["","","","","","","",""],hasBgImage:n["a"].getters.hasBgImage,bgimg:n["a"].getters.bgImg,updateInterval:n["a"].getters.data.updateInterval,maxpoints:n["a"].getters.data.maxStorePoints,referr:["",""],showbar:n["a"].getters.showAppBar}},computed:{hasbg:function(){return n["a"].getters.hasBgImage},bgurl:function(){return n["a"].getters.bgImg},showAppBar:function(){return n["a"].getters.showAppBar},maxbs:function(){return this.mbs},maxhb:function(){return this.mhb},maxcs:function(){return this.mcs},maxsw:function(){return this.msw},configval:function(){return this.configvals}},watch:{hasbg:function(){this.hasBgImage=n["a"].getters.hasBgImage},bgurl:function(){this.bgimg=n["a"].getters.bgImg},showAppBar:function(){},maxbs:function(){if(""!==this.mbs){var t=["bps","kbps","mbps","gbps","tbps","pbps","ebps","zbps","ybps"];if(isNaN(this.mbs)){for(var e in t)if(-1!==this.mbs.indexOf(t[e])){var a=parseFloat(this.mbs.replace(t[e],""));for(var s in t){var r=Math.pow(10,3*parseInt(s));a*Math.pow(10,3*parseInt(e))>=r&&(this.mbsprev=(a*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[s])}this.configvals[6]=a*Math.pow(10,3*parseInt(e))/1e3}}else{var o=parseInt(this.mbs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mbsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[6]=Math.round(o/1e3)}this.configvals[6]<1?this.configerrors[7]="That size is too small!":this.configerrors[7]=""}else this.mbsprev="0 bits/s"},maxhb:function(){if(""===this.mcs)return this.configvals[7]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mhb)){for(var e in t)if(-1!==this.mhb.indexOf(t[e])){var a=parseFloat(this.mhb.replace(t[e],""));for(var s in t){var r=Math.pow(10,3*parseInt(s));a*Math.pow(10,3*parseInt(e))>=r&&(this.mhbprev=(a*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[s])}this.configvals[7]=Math.round(a*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mhb);if(0===o)return void(this.mhbprev="0 bytes");for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mhbprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[7]=Math.round(o/1048576)}this.configvals[7]<1?this.configerrors[6]="That size is too small!":this.configerrors[6]=""},maxcs:function(){if(""===this.mcs)return this.configvals[5]=0,void(this.mcsprev="0 bytes");var t=["b","kb","mb","gb","tb","pb","eb","zb","yb"];if(isNaN(this.mcs)){for(var e in t)if(-1!==this.mcs.indexOf(t[e])){var a=parseFloat(this.mcs.replace(t[e],""));for(var s in t){var r=Math.pow(10,3*parseInt(s));a*Math.pow(10,3*parseInt(e))>=r&&(this.mcsprev=(a*Math.pow(10,3*parseInt(e))/r).toPrecision(4)+" "+t[s])}this.configvals[5]=Math.round(a*Math.pow(10,3*parseInt(e))/1048576)}}else{var o=parseInt(this.mcs);for(var n in t){var i=Math.pow(10,3*parseInt(n));o>=i&&(this.mcsprev=(o/i).toPrecision(4)+" "+t[n])}this.configvals[5]=Math.round(o/1048576)}this.configvals[5]<1?this.configerrors[5]="That size is too small!":this.configerrors[5]=""},maxsw:function(){if(""===this.msw)return this.configvals[4]=0,void(this.mswtprev="0 seconds");var t=["s","m","h","d"],e=[1,60,3600,86400];if(isNaN(this.msw)){for(var a in t)if(-1!==this.msw.indexOf(t[a])){var s=parseFloat(this.msw.replace(t[a],""));for(var r in e){var o=e[r];s*e[a]>=o&&(this.mswtprev=(s*e[a]/o).toPrecision(4)+" "+t[r])}this.configvals[4]=Math.round(s*e[a])}}else{var n=parseInt(this.msw);for(var i in e){var l=e[i];n>=l&&(this.mswtprev=(n/l).toPrecision(4)+" "+t[i])}this.configvals[4]=Math.round(n)}},configval:function(){-1!==this.configval[0].indexOf(" ")?this.configerrors[0]="Secret can't have spaces!":this.configerrors[0]="",-1!==this.configval[1].indexOf(" ")?this.configerrors[1]="IP can't have spaces!":this.configerrors[1]="",isNaN(this.configval[2])?this.configerrors[2]="Port can't have spaces!":this.configerrors[2]="",this.configval[3]<4?this.configerrors[4]="Max threads can't be less than 4!":isNaN(this.configval[3])?this.configerrors[4]="Max threads should be a number!":this.configerrors[4]=""}}}),yt=bt,xt=a("b73d"),Ct=Object(c["a"])(yt,ft,vt,!1,null,null,null),kt=Ct.exports;u()(Ct,{VBtn:F["a"],VCol:Z["a"],VContainer:P["a"],VRow:W["a"],VSelect:K["a"],VSubheader:X["a"],VSwitch:xt["a"],VTextField:Q["a"]});var wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{style:{color:t.$store.getters.current.textColor},attrs:{fluid:""}},[a("v-container",{style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},[a("h1",{staticClass:"pl-1"},[t._v("Info")])]),a("v-container",{staticClass:"mt-3",style:{backgroundColor:t.$store.getters.current.secondary+t.$store.getters.alpha},attrs:{fluid:""}},t._l(t.infoList,(function(e,s){return a("div",{key:s,staticStyle:{width:"50%"}},[a("h3",[t._v(t._s(e.name))]),a("v-row",{attrs:{dense:""}},[a("v-col",[a("p",[t._v(t._s(e.shortValue))])]),e.longValue?a("v-col",[a("p",[t._v(t._s(e.longValue+(e.unitLabel?" "+e.unitLabel:"")))])]):t._e()],1)],1)})),0)],1)},St=[],$t={name:"About",data:function(){return{rel:0,infoList:[{name:"Client Version (Temporary fake data)",shortValue:"1.0.0",longValue:"latest: x.x.x"},{name:"Total Hits",unitLabel:"hits",longValue:n["a"].getters.lastValueOf("hits"),shortValue:Object(I["d"])(n["a"].getters.lastValueOf("hits"),I["f"])},{name:"Total Misses",unitLabel:"misses",longValue:n["a"].getters.lastValueOf("misses"),shortValue:Object(I["d"])(n["a"].getters.lastValueOf("misses"),I["f"])},{name:"Total Data Sent",unitLabel:"bytes",longValue:n["a"].getters.lastValueOf("bytesSent"),shortValue:Object(I["d"])(n["a"].getters.lastValueOf("bytesSent"),I["b"])},{name:"Total Requests Served",unitLabel:"requests",longValue:n["a"].getters.lastValueOf("reqServ"),shortValue:Object(I["d"])(n["a"].getters.lastValueOf("reqServ"),I["f"])},{name:"Cache Size",unitLabel:"bytes",longValue:n["a"].getters.lastValueOf("sizeDisk"),shortValue:Object(I["d"])(n["a"].getters.lastValueOf("sizeDisk"),I["b"])}]}}},_t=$t,Dt=Object(c["a"])(_t,wt,St,!1,null,"3b3b3ee5",null),jt=Dt.exports;u()(Dt,{VCol:Z["a"],VContainer:P["a"],VRow:W["a"]});var At=a("8c4f"),Vt=[{path:"/",component:et},{path:"/cons",component:mt},{path:"/opts",component:kt},{path:"/info",component:jt}];s["default"].use(At["a"]);var It=new At["a"]({routes:Vt}),Ot=(a("ef97"),a("94b1"),a("c037"),a("007d"),a("627c"),a("d28f"),a("b11c"),a("0a6d"),a("4f22")),Mt=a("9483");Object(Mt["a"])("".concat("","service-worker.js"),{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered:function(){console.log("Service worker has been registered.")},cached:function(){console.log("Content has been cached for offline use.")},updatefound:function(){console.log("New content is downloading.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}});var Lt=a("1881"),Bt=a.n(Lt),Ht=a("10a7"),zt=(a("52b6"),a("7be8")),Pt=a.n(zt);if(s["default"].component("overlay-scrollbars",Ht["a"]),s["default"].use(Bt.a,{dynamic:!0,dynamicDefaults:{clickToClose:!0}}),s["default"].use(Pt.a),s["default"].use(Ot["a"]),s["default"].config.productionTip=!1,s["default"].mixin({methods:{updateData:function(){fetch("api/stats").then((function(t){return t.json().catch((function(t){return console.warn("Response Error: "+t),null}))})).then((function(t){if(null!==t){n["a"].commit("pushStats",t),localStorage.stats=JSON.stringify(n["a"].getters.data.stats);var e=Object.keys(t)[0],a=t[e],s=new Date(M()(e));n["a"].commit("pushDate",e),n["a"].commit("pushHitsChange",[s,a.cache_hits-n["a"].getters.lastValueOf("hits")]),n["a"].commit("pushHits",[s,a.cache_hits]),n["a"].commit("pushMissesChange",[s,a.cache_misses-n["a"].getters.lastValueOf("misses")]),n["a"].commit("pushMisses",[s,a.cache_misses]),n["a"].commit("pushCachedChange",[s,a.browser_cached-n["a"].getters.lastValueOf("cached")]),n["a"].commit("pushCached",[s,a.browser_cached]),n["a"].commit("pushBytesSentChange",[s,a.bytes_sent-n["a"].getters.lastValueOf("bytesSent")]),n["a"].commit("pushBytesSent",[s,a.bytes_sent]),n["a"].commit("pushReqServChange",[s,a.requests_served-n["a"].getters.lastValueOf("reqServ")]),n["a"].commit("pushReqServ",[s,a.requests_served]),n["a"].commit("pushSizeDiskChange",[s,a.bytes_on_disk-n["a"].getters.lastValueOf("sizeDisk")]),n["a"].commit("pushSizeDisk",[s,a.bytes_on_disk])}})).catch((function(t){console.log(t)}))}}}),localStorage.stats&&n["a"].getters.data.stats.length<1&&n["a"].commit("setStats",JSON.parse(localStorage.stats)),fetch("api/pastStats").then((function(t){return t.json().catch((function(t){return console.warn("Response Error: "+t),null}))})).then((function(t){null!==t&&Object.keys(t).forEach((function(e){n["a"].commit("pushStats",JSON.parse("{"+e+": "+JSON.stringify(t[e])+"}"))}))})).catch((function(t){return console.log(t)})),Object(I["g"])(),Object(I["e"])(),localStorage.hasBackground&&n["a"].commit("setHasBg","true"===localStorage.hasBackground),localStorage.showAppBar&&n["a"].commit("showAppBar","true"===localStorage.showAppBar),localStorage.theme&&"undefined"!==localStorage.theme?n["a"].commit("setTheme",localStorage.theme):n["a"].commit("setTheme","light"),localStorage.backgroundURL&&n["a"].commit("setBgUrl",localStorage.backgroundURL),localStorage.dashboardLayout)try{n["a"].commit("setLayout",JSON.parse(localStorage.dashboardLayout)),n["a"].commit("setChart",JSON.parse(localStorage.dashboardCharts).map((function(t){return Object(I["a"])(t)})))}catch(Tt){n["a"].commit("resetLayout"),console.warn("There was an error reading the saved layout:"),console.warn(Tt),console.warn("Using default layout")}else n["a"].commit("resetLayout");localStorage.refreshRate&&n["a"].commit("setRefresh",parseInt(localStorage.refreshRate)),new s["default"]({render:function(t){return t(_)},router:It,store:n["a"],vuetify:j}).$mount("#app")},"5fb0":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"f",(function(){return i})),a.d(e,"d",(function(){return l})),a.d(e,"a",(function(){return d})),a.d(e,"c",(function(){return u})),a.d(e,"e",(function(){return p})),a.d(e,"g",(function(){return g}));a("99af"),a("4160"),a("d81d"),a("b0c0"),a("b680"),a("b64b"),a("ac1f"),a("5319"),a("159b");var s=a("4360"),r=a("c1df"),o=a.n(r),n=["YB","ZB","EB","PB","TB","GB","MB","KB","B"],i=["d","n","o","S","s","Q","q","t","B","M","K",""],l=function(t,e,a){for(var s=a||2,r=parseFloat(t),o=0;o=n)return(r/n).toFixed(s).replace(/\.?0*$/,"")+e[o]}return r.toFixed(s).replace(/\.?0*$/,"")},c=[[],n,i],d=function(t){if("graph"===t.type){var e=JSON.parse(JSON.stringify(t));return e.title.textStyle={color:s["a"].getters.current.textColor},e.toolbox={orient:"vertical",top:30,iconStyle:{color:s["a"].getters.current.accent,borderColor:"#00000000"},emphasis:{iconStyle:{textPosition:"left",color:s["a"].getters.current.accent2,borderColor:"#00000000"}},feature:{dataZoom:{show:!0,yAxisIndex:"none",icon:{zoom:"M14,17H17V14H19V17H22V19H19V22H17V19H14V17M12,17V19H9V17H12M7,17V19H3V15H5V17H7M3,13V10H5V13H3M3,8V4H7V6H5V8H3M9,4H12V6H9V4M15,4H19V8H17V6H15V4M19,10V12H17V10H19Z",back:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"},title:{zoom:"Zoom",back:"Undo"}},restore:{title:"Restore",icon:"M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z"}}},e.grid={right:40+80*Math.max(0,t.yAxis.length-2),left:40,bottom:40,top:60,containLabel:!0},e.legend.inactiveColor=s["a"].getters.current.accent2,e.legend.textStyle={color:s["a"].getters.current.textColor},e.xAxis={type:"time",axisLine:{lineStyle:{color:s["a"].getters.current.textColor}},splitLine:{lineStyle:{color:s["a"].getters.current.accent1}},axisLabel:{formatter:function(t){return o.a.utc(t).format("MMM D|h:mma").replace("|","\n")},splitNumber:10,showMaxLabel:!0,showMinLabel:!0}},e.yAxis.forEach((function(t){t.axisLine={lineStyle:{color:s["a"].getters.current.textColor}},t.axisLabel.formatter=function(e){return l(e,c[t.axisLabel.unit],2)}})),e.tooltip={trigger:"axis",axisPointer:{type:"cross",label:{color:s["a"].getters.current.secondary}}},e.tooltip.axisPointer.label.formatter=function(t){return"x"===t.axisDimension&&t.seriesData[0]&&t.seriesData[0].data?o.a.utc(t.seriesData[0].data[0]).format("MMM D, h:mm:ssa"):l(t.value,c[e.yAxis[t.axisIndex].axisLabel.unit],4)},e.dataZoom=[{type:"inside"},{start:90,type:"slider",handleSize:"100%",fillerColor:s["a"].getters.current.accent1,handleStyle:{color:s["a"].getters.current.textColor},dataBackground:{lineStyle:{color:s["a"].getters.current.textColor},areaStyle:{color:s["a"].getters.current.accent}},textStyle:{color:s["a"].getters.current.textColor}}],e.series.forEach((function(t){switch(t.dataId){case"Hits":t.data=s["a"].getters.data.hits;break;case"Misses":t.data=s["a"].getters.data.misses;break;case"Browser Cached":t.data=s["a"].getters.data.cached;break;case"Requests Served":t.data=s["a"].getters.data.reqServ;break;case"Bytes Sent":t.data=s["a"].getters.data.bytesSent;break;case"Bytes On Disk":t.data=s["a"].getters.data.sizeDisk;break;case"Change in Hits":t.data=s["a"].getters.data.hitsChange;break;case"Change in Misses":t.data=s["a"].getters.data.missesChange;break;case"Change in Browser Cached":t.data=s["a"].getters.data.cachedChange;break;case"Change in Requests Served":t.data=s["a"].getters.data.reqServChange;break;case"Change in Bytes Sent":t.data=s["a"].getters.data.bytesSentChange;break;case"Change in Bytes On Disk":t.data=s["a"].getters.data.sizeDiskChange;break}switch(t.itemStyle.colorId){case"background":t.itemStyle.color=s["a"].getters.current.backgroundColor;break;case"text":t.itemStyle.color=s["a"].getters.current.textColor;break;case"primary":t.itemStyle.color=s["a"].getters.current.primary;break;case"secondary":t.itemStyle.color=s["a"].getters.current.secondary;break;case"accent":t.itemStyle.color=s["a"].getters.current.accent;break;case"accent1":t.itemStyle.color=s["a"].getters.current.accent1;break;case"accent2":t.itemStyle.color=s["a"].getters.current.accent2;break;case"red":t.itemStyle.color=s["a"].getters.current.red;break;case"green":t.itemStyle.color=s["a"].getters.current.green;break;case"yellow":t.itemStyle.color=s["a"].getters.current.yellow;break;default:break}})),e}if("pie"===t.type){var a=JSON.parse(JSON.stringify(t));return a.title.textStyle={color:s["a"].getters.current.textColor},a.legend.inactiveColor=s["a"].getters.current.accent2,a.legend.textStyle={color:s["a"].getters.current.textColor},a.tooltip={trigger:"item",formatter:" {b}
{c} ({d}%)"},a.series[0].data.forEach((function(t){switch(t.dataId){case"Hits":t.value=s["a"].getters.lastValueOf("hits");break;case"Misses":t.value=s["a"].getters.lastValueOf("misses");break;case"Browser Cached":t.value=s["a"].getters.lastValueOf("cached");break;case"Requests Served":t.value=s["a"].getters.lastValueOf("reqServ");break;case"Bytes Sent":t.value=s["a"].getters.lastValueOf("bytesSent");break;case"Bytes On Disk":t.value=s["a"].getters.lastValueOf("sizeDisk");break;case"Change in Hits":t.value=s["a"].getters.lastValueOf("hitsChange");break;case"Change in Misses":t.value=s["a"].getters.lastValueOf("missesChange");break;case"Change in Browser Cached":t.value=s["a"].getters.lastValueOf("cachedChange");break;case"Change in Requests Served":t.value=s["a"].getters.lastValueOf("reqServChange");break;case"Change in Bytes Sent":t.value=s["a"].getters.lastValueOf("bytesSentChange");break;case"Change in Bytes On Disk":t.value=s["a"].getters.lastValueOf("sizeDiskChange");break}switch(t.itemStyle.colorId){case"background":t.itemStyle.color=s["a"].getters.current.backgroundColor;break;case"text":t.itemStyle.color=s["a"].getters.current.textColor;break;case"primary":t.itemStyle.color=s["a"].getters.current.primary;break;case"secondary":t.itemStyle.color=s["a"].getters.current.secondary;break;case"accent":t.itemStyle.color=s["a"].getters.current.accent;break;case"accent1":t.itemStyle.color=s["a"].getters.current.accent1;break;case"accent2":t.itemStyle.color=s["a"].getters.current.accent2;break;case"red":t.itemStyle.color=s["a"].getters.current.red;break;case"green":t.itemStyle.color=s["a"].getters.current.green;break;case"yellow":t.itemStyle.color=s["a"].getters.current.yellow;break;default:break}})),a}return{}},u=function(t,e){if("graph"===e){var a={type:e,title:{left:"center",text:t.title.text},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{formatter:"number"}}},legend:{left:t.legend.left,show:t.legend.show,top:t.legend.top,data:t.legend.data},yAxis:t.yAxis.map((function(t){return{type:"value",name:t.name,scale:!0,offset:t.offset?t.offset:0,axisLabel:{unit:t.axisLabel.unit},splitLine:{show:!1}}})),series:t.series.map((function(t){return{name:t.name,type:t.type,data:null,dataId:t.dataId,yAxisIndex:t.yAxisIndex,showSymbol:!1,itemStyle:{color:t.itemStyle.color,colorId:t.colorId}}}))};return a}if("pie"===e){var s={type:e,title:{left:"center",text:t.title.text},legend:{orient:"vertical",left:t.legend.left,show:t.legend.show,top:t.legend.top,data:t.legend.data},series:[{type:"pie",avoidLabelOverlap:!0,label:{show:!1},labelLine:{show:!1},data:t.series[0].data.map((function(t){return{name:t.name,value:0,dataId:t.dataId,itemStyle:{color:t.itemStyle.color}}}))}]};return s}},p=function(){for(var t=0;t0?s["a"].getters.data.stats[t-1][Object.keys(s["a"].getters.data.stats[t-1])[0]]:null,n=new Date(o()(e));s["a"].commit("pushDate",e),s["a"].commit("pushHits",[n,a.cache_hits]),s["a"].commit("pushHitsChange",[n,r?a.cache_hits-r.cache_hits:0]),s["a"].commit("pushMisses",[n,a.cache_misses]),s["a"].commit("pushMissesChange",[n,r?a.cache_misses-r.cache_misses:0]),s["a"].commit("pushCached",[n,a.browser_cached]),s["a"].commit("pushCachedChange",[n,r?a.browser_cached-r.browser_cached:0]),s["a"].commit("pushBytesSent",[n,a.bytes_sent]),s["a"].commit("pushBytesSentChange",[n,r?a.bytes_sent-r.bytes_sent:0]),s["a"].commit("pushReqServ",[n,a.requests_served]),s["a"].commit("pushReqServChange",[n,r?a.requests_served-r.requests_served:0]),s["a"].commit("pushSizeDisk",[n,a.bytes_on_disk]),s["a"].commit("pushSizeDiskChange",[n,r?a.bytes_on_disk-r.bytes_on_disk:0])}},g=function(){var t=s["a"].getters.data.stats;function e(t){if(t.length<=1)return t;for(var a=[],s=[],r=t.pop(),o=t.length,n=0;n