ScopeSentry/static/assets/Dashboard-6qYToQwC.js

33 lines
658 KiB
JavaScript
Raw Normal View History

2024-07-19 15:16:10 +00:00
import{d as t,be as e,a4 as n,a5 as i,o as r,c as o,A as a,n as s,a as l,a6 as u,aE as h,ae as c,af as p,W as d,X as f,aQ as g,a0 as y,y as v,t as m,j as _,f as x,z as w,b,r as S,R as M,K as T,x as C,dG as I,k as A,dH as D,B as k,s as P,C as L,e as O,w as R,F as E,S as N,i as z,l as B,_ as F}from"./index-vMt5tOuI.js";import{d as V}from"./debounce-heHWUU1E.js";import{E as G,a as W}from"./el-col-CK66atlO.js";import{E as H}from"./el-card-CiG9T01-.js";import{E as Y,a as X}from"./el-descriptions-item-uaW-dWMN.js";import{E as U}from"./el-tag-C3mt1pWb.js";import{E as j}from"./el-divider-RjUq80nQ.js";import{E as q}from"./el-skeleton-item-C5_zKrod.js";import{E as Z,a as K}from"./el-table-column-Ty7HKRWd.js";import"./el-checkbox-DZAdOJwr.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-popper-CJZHtU_A.js";import{E as $}from"./el-text-JTnFT2W3.js";import{E as J}from"./el-space-CvMwlCn7.js";import{u as Q}from"./useIcon-D1gqy2ud.js";import{g as tt,a as et,b as nt,c as it}from"./index-DwbfGW3A.js";import{b as rt,c as ot,d as at,s as st}from"./index-DO8QlVWZ.js";import"./index-DMmJY3Ph.js";import"./isEqual-D2Iw95Gj.js";import"./isArrayLikeObject-4WqnSTxS.js";import"./raf-RUFdlNuH.js";import"./index-znw49gEj.js";const lt=t({name:"ElContainer"});var ut=u(t({...lt,props:{direction:{type:String}},setup(t){const u=t,h=e(),c=n("container"),p=i((()=>{if("vertical"===u.direction)return!0;if("horizontal"===u.direction)return!1;if(h&&h.default){return h.default().some((t=>{const e=t.type.name;return"ElHeader"===e||"ElFooter"===e}))}return!1}));return(t,e)=>(r(),o("section",{class:s([l(c).b(),l(c).is("vertical",l(p))])},[a(t.$slots,"default")],2))}}),[["__file","container.vue"]]);const ht=t({name:"ElAside"});var ct=u(t({...ht,props:{width:{type:String,default:null}},setup(t){const e=t,u=n("aside"),c=i((()=>e.width?u.cssVarBlock({width:e.width}):{}));return(t,e)=>(r(),o("aside",{class:s(l(u).b()),style:h(l(c))},[a(t.$slots,"default")],6))}}),[["__file","aside.vue"]]);const pt=t({name:"ElFooter"});var dt=u(t({...pt,props:{height:{type:String,default:null}},setup(t){const e=t,u=n("footer"),c=i((()=>e.height?u.cssVarBlock({height:e.height}):{}));return(t,e)=>(r(),o("footer",{class:s(l(u).b()),style:h(l(c))},[a(t.$slots,"default")],6))}}),[["__file","footer.vue"]]);const ft=t({name:"ElHeader"});var gt=u(t({...ft,props:{height:{type:String,default:null}},setup(t){const e=t,u=n("header"),c=i((()=>e.height?u.cssVarBlock({height:e.height}):{}));return(t,e)=>(r(),o("header",{class:s(l(u).b()),style:h(l(c))},[a(t.$slots,"default")],6))}}),[["__file","header.vue"]]);const yt=t({name:"ElMain"});var vt=u(t({...yt,setup(t){const e=n("main");return(t,n)=>(r(),o("main",{class:s(l(e).b())},[a(t.$slots,"default")],2))}}),[["__file","main.vue"]]);const mt=c(ut,{Aside:ct,Footer:dt,Header:gt,Main:vt});p(ct);const _t=p(dt);p(gt),p(vt);const xt=d({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:f([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:f([String,Object,Array])}}),wt=t({name:"ElStatistic"});const bt=c(u(t({...wt,props:xt,setup(t,{expose:e}){const u=t,c=n("statistic"),p=i((()=>{const{value:t,formatter:e,precision:n,decimalSeparator:i,groupSeparator:r}=u;if(g(e))return e(t);if(!y(t))return t;let[o,a=""]=String(t).split(".");return a=a.padEnd(n,"0").slice(0,n>0?n:0),o=o.replace(/\B(?=(\d{3})+(?!\d))/g,r),[o,a].join(a?i:"")}));return e({displayValue:p}),(t,e)=>(r(),o("div",{class:s(l(c).b())},[t.$slots.title||t.title?(r(),o("div",{key:0,class:s(l(c).e("head"))},[a(t.$slots,"title",{},(()=>[v(m(t.title),1)]))],2)):_("v-if",!0),x("div",{class:s(l(c).e("content"))},[t.$slots.prefix||t.prefix?(r(),o("div",{key:0,class:s(l(c).e("prefix"))},[a(t.$slots,"prefix",{},(()=>[x("span",null,m(t.prefix),1)]))],2)):_("v-if",!0),x("span",{class:s(l(c).e("number")),style:h(t.valueStyle)},m(l(p)),7),t.$slots.suffix||t.suffix?(r(),o("div",{key:1,class:s(l(c).e("suffix"))},[a(t.$slots,"suffix",{},(()=>[x("span",null,m(t.suffix),1)]))],2)):_("v-if",!
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var St=function(t,e){return(St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Mt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}St(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Tt=function(){return function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Ct=new(function(){return function(){this.browser=new Tt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Ct.wxa=!0,Ct.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Ct.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Ct.node=!0,Ct.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,Ct);var It="12px sans-serif";var At=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Dt={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=Dt.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||It),t.measureText(n);n=n||"";var o=/(\d+)px/.exec(i=i||It),a=o&&+o[1]||12,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=At[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function kt(t){for(var e in Dt)t[e]&&(Dt[e]=t[e])}var Pt=ie(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),Lt=ie(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),Ot=Object.prototype.toString,Rt=Array.prototype,Et=Rt.forEach,Nt=Rt.filter,zt=Rt.slice,Bt=Rt.map,Ft=function(){}.constructor,Vt=Ft?Ft.prototype:null,Gt="__proto__",Wt=2311;function Ht(){return Wt++}function Yt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function Xt(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Ot.call(t);if("[object Array]"===n){if(!ke(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=Xt(t[i])}}else if(Lt[n]){if(!ke(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!Pt[n]&&!ke(t)&&!ve(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==Gt&&(e[a]=Xt(t[a]));return e}function Ut(t,e,n){if(!fe(e)||!fe(t))return n?Xt(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Gt){var r=t[i],o=e[i];!fe(o)||!fe(r)||ue(o)||ue(r)||ve(o)||ve(r)||ge(o)||ge(r)||ke(o)||ke(r
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Xo={},Uo={};var jo,qo=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new Mi,o=n.renderer||"canvas";Xo[o]||(o=ae(Xo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Xo[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=Ct.node||Ct.worker||s?null:new so(a.getViewportRoot(),a.root),h=n.useCoarsePointer;(null==h||"auto"===h?Ct.touchEventsSupported:!!h)&&(l=be(n.pointerSize,44)),this.handler=new hi(r,a,u,a.root,l),this.animation=new Yr({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return Sr(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Sr(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=Gr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Gr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Yo&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Uo[t])},t}();function Zo(t,e){var n=new qo(Ht(),t,e);return Uo[n.id]=n,n}function Ko(t,e){Xo[t]=e}function $o(t){jo=t}const Jo=Object.freeze(Object.defineProperty({__pr
/*!
* wordcloud2.js
* http://timdream.org/wordcloud2.js/
*
* Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
* Released under the MIT license
*/
window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message";return window.addEventListener("message",(function(n){if("string"==typeof n.data&&n.data.substr(0,20)===e){n.stopImmediatePropagation();var i=parseInt(n.data.substr(20),36);t[i]&&(t[i](),t[i]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(n){var i=t.length;return t.push(n),window.postMessage(e+i.toString(36),"*"),i}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var IP=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!e&&(!!e.getImageData&&(!!e.fillText&&(!!Array.prototype.some&&!!Array.prototype.push)))}(),AP=function(){if(IP){for(var t,e,n=document.createElement("canvas").getContext("2d"),i=20;i;){if(n.font=i.toString(10)+"px sans-serif",n.measureText("").width===t&&n.measureText("m").width===e)return i+1;t=n.measureText("").width,e=n.measureText("m").width,i--}return 0}}(),DP=function(t){for(var e,n,i=t.length;i;)e=Math.floor(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n;return t},kP={},PP=function(t,e){if(IP){var n=Math.floor(Math.random()*Date.now());Array.isArray(t)||(t=[t]),t.forEach((function(e,n){if("string"==typeof e){if(t[n]=document.getElementById(e),!t[n])throw new Error("The element id specified is not found.")}else if(!e.tagName&&!e.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")}));var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var r in e)r in i&&(i[r]=e[r]);if("function"!=typeof i.weightFactor){var o=i.weightFactor;i.weightFactor=function(t){return t*o}}if("function"!=typeof i.shape)switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(t){return 1-Math.sin(t)};break;case"diamond":i.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"square":i.shape=function(t){return Math.min(1/Math.abs(Math.cos(t)),1/Math.abs(Math.sin(t)))};break;case"triangle-forward":i.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":i.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":i.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":i.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var a,s,l,u,h,c,p,d,f=i.gridSize,g=f-i.maskGapWidth,y=Math.abs(i.maxRotation-i.minRotation),v=Math.min(i.maxRotation,i.minRotation),m=i.rotationStep;switch(i.color){case"random-dark":p=function(){return L(10,50)};break;case"random-light":p=function(){return L(50,90)};break;default:"function"==typeof i.color&&(p=i.color)}"function"==typeof i.fontWeight&&(d=i.fontWeight);var _=null;"function"==typeof i.classes&&(_=i.classes);var x,w=!1,b=[],S=function(t){var e,n,i=t.currentTarget,r=i.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,n=t.touches[0].clientY):(e=t.clientX,n=t.clientY);var o=e-r.left,a=n-r.top