diff --git a/dist/SPEED.png b/dist/SPEED.png deleted file mode 100644 index 4c518dc..0000000 Binary files a/dist/SPEED.png and /dev/null differ diff --git a/dist/android.mp3 b/dist/android.mp3 deleted file mode 100644 index 0f8b1e2..0000000 Binary files a/dist/android.mp3 and /dev/null differ diff --git a/dist/assets/index-4724c776.css b/dist/assets/index-4724c776.css deleted file mode 100644 index 90a666f..0000000 --- a/dist/assets/index-4724c776.css +++ /dev/null @@ -1 +0,0 @@ -.block[data-v-2503dfe9]{height:fit-content}.card[data-v-2503dfe9]{width:fit-content;height:fit-content;background-color:azure;margin-left:auto;margin-right:auto;border-radius:50px;text-align:center;padding:5%}.action[data-v-2503dfe9]{margin-bottom:20px;width:100px;margin-left:12px;margin-right:12px}.ItemContainer{column-count:3;margin-top:10px}@media screen and (max-width: 800px){.ItemContainer{column-count:1}}.showItem{border:1px solid #dbdfea!important;padding:20px 15px 15px 30px}.font-data{white-space:nowrap;grid-column-start:1;font-weight:700;line-height:2.5rem;font-size:30px}.state-icon{display:block;margin-right:10px;margin-left:auto;margin-top:-10px;width:40px;height:20px}.button{display:block;text-decoration:none;background-color:#485bed;background-image:-webkit-linear-gradient(145deg,#485bed,#6576ff);font-size:30px;font-weight:700!important;margin:36px;width:144px;height:144px;position:relative;text-align:center;line-height:144px;border-radius:50%;box-shadow:0 3px 8px #485bed,inset 0 2px 3px #6576ff}.font-background{color:#344357;font-size:14px} diff --git a/dist/assets/index-bec8f8e0.js b/dist/assets/index-bec8f8e0.js deleted file mode 100644 index 84037ee..0000000 --- a/dist/assets/index-bec8f8e0.js +++ /dev/null @@ -1,11 +0,0 @@ -(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const e of n)if(e.type==="childList")for(const t of e.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&i(t)}).observe(document,{childList:!0,subtree:!0});function o(n){const e={};return n.integrity&&(e.integrity=n.integrity),n.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?e.credentials="include":n.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function i(n){if(n.ep)return;n.ep=!0;const e=o(n);fetch(n.href,e)}})();const ve="/android.mp3",_e="/ios.mp3",ge=[{label:"高速",options:[{value:"https://cd.pddpic.com/android_dev/2023-07-28/5c04772968aee57ca690fbe1e7f29467.apk",label:"并夕夕(华为云)"},{value:"https://consumer.huawei.com/content/dam/huawei-cbg-site/cn/mkt/harmonyos-3/video/privacy/privacy-safe-center.webm",label:"华为云"},{value:"https://cloud.video.taobao.com/play/u/null/p/1/e/6/t/1/d/ud/329682839911.mp4",label:"阿里CDN"},{value:"https://storage.jd.com/jdmobile/JDMALL-PC2.apk",label:"京东CDN"},{value:"https://ma75.gdl.netease.com/Sky_Gold_0.11.4_228509_obt_netease_unisec_minify_b16066d78995a9048c08e5552198a642.apk",label:"网易CDN"},{value:"https://f100.g.mi.com/download/AppStore/09b005af75fff45bd88ff8f37d7910ba550d32a07",label:"金山云"},{value:"https://mesh.if.iqiyi.com/player/upgrade/file/last/IQIYIsetup_app.exe",label:"爱奇艺"},{value:"https://devtools.qiniu.com/linux/amd64/qrsctl",label:"七牛云"},{value:"https://issuecdn.baidupcs.com/issue/netdisk/yunguanjia/BaiduNetdisk_7.30.5.2.exe",label:"百度CDN"},{value:"https://issuepcdn.baidupcs.com/issue/netdisk/yunguanjia/BaiduNetdisk_7.30.5.2.exe",label:"百度PCDN"},{value:"https://www.douyin.com/download/pc/obj/douyin-pc-client/7044145585217083655/releases/10715336/2.6.0/win32-ia32/douyin-v2.6.0-win32-ia32-douyinDownload1.exe",label:"字节跳动"}]},{label:"常用",options:[{value:"https://game.gtimg.cn/images/nz/web202106/index/bc_part1.gif?0.3190485611376561",label:"腾讯CDN"},{value:"https://wwwstatic.vivo.com.cn/vivoportal/files/resource/funtouch/1651200648928/images/os2-jude-video.mp4",label:"vivo(阿里CDN)"},{value:"https://d.musicapp.migu.cn/upload/fbpt_rsync_apps/local/signed/MobileMusic7350/MobileMusic7350_014000D.apk",label:"咪咕音乐"},{value:"https://img.cmvideo.cn/publish/noms/2022/10/14/1O3VIGPVP6HTS.jpg",label:"咪咕视频"},{value:"https://img.mcloud.139.com/material_prod/material_media/20221128/1669626861087.png",label:"和彩云"},{value:"https://s1.xmcdn.com/yx/xmly-live-release/last/dist/Ximalaya-Live-Setup-4.18.550.exe",label:"喜马拉雅(华为云)"},{value:"https://dc.xiaohongshu.com/file/pkgs/base/xiaohongshu.apk",label:"小红书(优云CDN)"},{value:"https://vod-origin-rjzy.gdoss.xstore.ctyun.cn/07da9eb52ad948c7b58b760003c0006b.mp4",label:"天翼云"},{value:"https://desk.ctyun.cn:8999/desktop-prod/software/windows_tob_client/15/64/202000005/CtyunClouddeskUniversal_2.0.0_202000005_x86_20230421161227_Setup_Signed.exe",label:"天翼云桌面"},{value:"https://h5cdn.migufun.com/middleh5/_nuxt/643447d.js",label:"咪咕快游"},{value:"https://listen.10155.com/listener/womusic-bucket/90115000/mv_vod/volte_mp4/20230215/1625752132487675906.mp4",label:"联通电视"}]},{label:"全球[Global]",options:[{value:"https://cachefly.cachefly.net/200mb.test",label:"Cachefly Test"},{value:"https://speed.cloudflare.com/__down?bytes=1073741824",label:"Cloudflare Speed"},{value:"https://gh.con.sh/https://github.com/AaronFeng753/Waifu2x-Extension-GUI/releases/download/v2.21.12/Waifu2x-Extension-GUI-v2.21.12-Portable.7z",label:"Cloudflare Workers"}]}];/*! Element Plus Icons Vue v2.1.0 */var D=(m,s)=>{let o=m.__vccOpts||m;for(let[i,n]of s)o[i]=n;return o},ye={name:"Calendar"},be={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},we=Vue.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),xe=[we];function ke(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",be,xe)}var Ne=D(ye,[["render",ke],["__file","calendar.vue"]]),Ce={name:"CircleCheck"},Ee={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Te=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Be=Vue.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),Se=[Te,Be];function Me(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",Ee,Se)}var Ie=D(Ce,[["render",Me],["__file","circle-check.vue"]]),Le={name:"CopyDocument"},Ae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ue=Vue.createElementVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64h64z"},null,-1),Pe=Vue.createElementVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64H384zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64z"},null,-1),De=[Ue,Pe];function $e(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",Ae,De)}var Oe=D(Le,[["render",$e],["__file","copy-document.vue"]]),ze={name:"Delete"},Ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},He=Vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Re=[He];function je(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",Ge,Re)}var Fe=D(ze,[["render",je],["__file","delete.vue"]]),Ke={name:"Edit"},Ze={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},We=Vue.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),Ye=Vue.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),Je=[We,Ye];function qe(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",Ze,Je)}var ae=D(Ke,[["render",qe],["__file","edit.vue"]]),Qe={name:"Hide"},Xe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},et=Vue.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),tt=Vue.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),ot=[et,tt];function nt(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",Xe,ot)}var lt=D(Qe,[["render",nt],["__file","hide.vue"]]),at={name:"Histogram"},st={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rt=Vue.createElementVNode("path",{fill:"currentColor",d:"M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"},null,-1),it=[rt];function ct(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",st,it)}var ut=D(at,[["render",ct],["__file","histogram.vue"]]),dt={name:"Link"},pt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ft=Vue.createElementVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),Vt=[ft];function mt(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",pt,Vt)}var ht=D(dt,[["render",mt],["__file","link.vue"]]),vt={name:"Loading"},_t={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gt=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),yt=[gt];function bt(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",_t,yt)}var se=D(vt,[["render",bt],["__file","loading.vue"]]),wt={name:"TrendCharts"},xt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kt=Vue.createElementVNode("path",{fill:"currentColor",d:"M128 896V128h768v768H128zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0z"},null,-1),Nt=[kt];function Ct(m,s,o,i,n,e){return Vue.openBlock(),Vue.createElementBlock("svg",xt,Nt)}var Et=D(wt,[["render",Ct],["__file","trend-charts.vue"]]);/*! - * @soerenmartius/vue3-clipboard v0.1.2 - * (c) 2021 Soeren Martius - * @license MIT - */var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(m){return m&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m}function St(m,s,o){return o={path:s,exports:{},require:function(i,n){return Mt(i,n??o.path)}},m(o,o.exports),o.exports}function Mt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var It=St(function(m,s){/*! - * clipboard.js v2.0.6 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(i,n){m.exports=n()})(Tt,function(){return function(o){var i={};function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=o,n.c=i,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e=="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!="string")for(var d in e)n.d(r,d,(function(f){return e[f]}).bind(null,d));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(o,i){function n(e){var t;if(e.nodeName==="SELECT")e.focus(),t=e.value;else if(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){var r=e.hasAttribute("readonly");r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(e),d.removeAllRanges(),d.addRange(f),t=d.toString()}return t}o.exports=n},function(o,i){function n(){}n.prototype={on:function(e,t,r){var d=this.e||(this.e={});return(d[e]||(d[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var d=this;function f(){d.off(e,f),t.apply(r,arguments)}return f._=t,this.on(e,f,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),d=0,f=r.length;for(d;d0&&arguments[0]!==void 0?arguments[0]:{};this.action=p.action,this.container=p.container,this.emitter=p.emitter,this.target=p.target,this.text=p.text,this.trigger=p.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var p=this,h=document.documentElement.getAttribute("dir")=="rtl";this.removeFake(),this.fakeHandlerCallback=function(){return p.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[h?"right":"left"]="-9999px";var _=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=_+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=t()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=t()(this.target),this.copyText()}},{key:"copyText",value:function(){var p=void 0;try{p=document.execCommand(this.action)}catch{p=!1}this.handleResult(p)}},{key:"handleResult",value:function(p){this.emitter.emit(p?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=p,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(p){if(p!==void 0)if(p&&(typeof p>"u"?"undefined":r(p))==="object"&&p.nodeType===1){if(this.action==="copy"&&p.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(p.hasAttribute("readonly")||p.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=p}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),V}(),u=g,y=n(1),w=n.n(y),M=n(2),U=n.n(M),$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},k=function(){function V(c,p){for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof h.action=="function"?h.action:this.defaultAction,this.target=typeof h.target=="function"?h.target:this.defaultTarget,this.text=typeof h.text=="function"?h.text:this.defaultText,this.container=$(h.container)==="object"?h.container:document.body}},{key:"listenClick",value:function(h){var _=this;this.listener=U()(h,"click",function(A){return _.onClick(A)})}},{key:"onClick",value:function(h){var _=h.delegateTarget||h.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u({action:this.action(_),target:this.target(_),text:this.text(_),container:this.container,trigger:_,emitter:this})}},{key:"defaultAction",value:function(h){return G("action",h)}},{key:"defaultTarget",value:function(h){var _=G("target",h);if(_)return document.querySelector(_)}},{key:"defaultText",value:function(h){return G("text",h)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],_=typeof h=="string"?[h]:h,A=!!document.queryCommandSupported;return _.forEach(function(T){A=A&&!!document.queryCommandSupported(T)}),A}}]),c}(w.a);function G(V,c){var p="data-clipboard-"+V;if(c.hasAttribute(p))return c.getAttribute(p)}i.default=P}]).default})}),re=Bt(It);const K={autoSetContainer:!1,appendToBody:!0},Lt={config:m=>{const{autoSetContainer:s,appendToBody:o}=m;K.autoSetContainer=s||!1,K.appendToBody=o||!0},install:m=>{m.config.globalProperties.$vclipboard=W,m.directive("clipboard",{beforeMount(s,o){if(o.arg==="success")s._vClipboard_success=o.value;else if(o.arg==="error")s._vClipboard_error=o.value;else{const i=new re(s,{text:()=>o.value,action:()=>o.arg==="cut"?"cut":"copy",container:K.autoSetContainer?s:void 0});i.on("success",n=>{const e=s._vClipboard_success;e&&e(n)}),i.on("error",n=>{const e=s._vClipboard_error;e&&e(n)}),s._vClipboard=i}},updated(s,o){o.arg==="success"?s._vClipboard_success=o.value:o.arg==="error"?s._vClipboard_error=o.value:(s._vClipboard.text=()=>o.value,s._vClipboard.action=()=>o.arg==="cut"?"cut":"copy")},unmounted(s,o){o.arg==="success"?delete s._vClipboard_success:o.arg==="error"?delete s._vClipboard_error:(s._vClipboard.destroy(),delete s._vClipboard)}})},toClipboard:(m,s)=>W(m,s)},W=(m,s="copy")=>new Promise((o,i)=>{const n=document.createElement("button"),e=new re(n,{text:()=>m,action:()=>s});e.on("success",t=>{e.destroy(),o(t)}),e.on("error",t=>{e.destroy(),i(t)}),K.appendToBody&&document.body.appendChild(n),n.click(),K.appendToBody&&document.body.removeChild(n)}),Q=m=>(Vue.pushScopeId("data-v-2503dfe9"),m=m(),Vue.popScopeId(),m),At={class:"block"},Ut={class:"card"},Pt={key:0},Dt={style:{width:"150px",height:"150px","margin-left":"auto","margin-right":"auto"}},$t=["src"],Ot=Q(()=>Vue.createElementVNode("br",null,null,-1)),zt={key:0,style:{"font-size":"15px"}},Gt=Q(()=>Vue.createElementVNode("br",null,null,-1)),Ht={key:1,style:{"font-size":"15px"}},Rt={key:2,style:{"font-size":"15px"}},jt={key:1},Ft=Q(()=>Vue.createElementVNode("br",null,null,-1)),Kt={style:{"font-size":"20px"}},Zt=Vue.defineComponent({__name:"My",props:{loginInfo:{type:Object,required:!0}},setup(m){const s=m,o=Vue.ref(0),i=Vue.ref("");Vue.watch(o,(u,y)=>{u<=0&&(s.loginInfo.AccessToken="")});const n=async u=>await(await fetch("https://api.netart.cn/user/",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(u)})).json();let e=0;const t=async()=>{i.value="";let u=await n({action:"login",AccessToken:s.loginInfo.AccessToken});o.value=-1,u.status==0&&(i.value=u.img,sessionStorage.setItem("pt_login_sig",u.pt_login_sig),sessionStorage.setItem("qrsig",u.qrsig),e=setInterval(f,1e3))},r=async()=>{ElementPlus.ElMessageBox.confirm("确定要强制下线登录该账号的其他设备吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{(await n({action:"kick_old",AccessToken:s.loginInfo.AccessToken})).status==0&&ElementPlus.ElMessage({type:"info",message:"已经下线其他设备"})}).catch(()=>{})},d=async()=>{ElementPlus.ElMessageBox.confirm("确定从此设备退出登录吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t()}).catch(()=>{})},f=async()=>{let u=await n({action:"qr_check",pt_login_sig:sessionStorage.getItem("pt_login_sig"),qrsig:sessionStorage.getItem("qrsig")});u.status==0?(o.value=u.uin,s.loginInfo.AccessToken=u.AccessToken,clearInterval(e)):u.status==-2?o.value=-2:u.status==-1?o.value=-1:u.status==-10&&(clearInterval(e),t())},g=async()=>{let u=await n({action:"getStatus",AccessToken:s.loginInfo.AccessToken});u.status==0?o.value=u.uin:u.status==-1&&(o.value=-1,t())};return Vue.onMounted(()=>{console.log("M"),g()}),Vue.onUnmounted(()=>{console.log("UM"),e&&clearInterval(e)}),(u,y)=>{const w=Vue.resolveComponent("el-avatar"),M=Vue.resolveComponent("el-divider"),U=Vue.resolveComponent("el-button"),$=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",At,[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",Ut,[o.value==-1||o.value==-2?(Vue.openBlock(),Vue.createElementBlock("div",Pt,[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",Dt,[i.value?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,style:{width:"100%"},src:i.value},null,8,$t)):Vue.createCommentVNode("",!0)])),[[$,!i.value]]),Ot,o.value!=-2?(Vue.openBlock(),Vue.createElementBlock("span",zt,"请使用QQ扫码登录")):Vue.createCommentVNode("",!0),Gt,o.value!=-2?(Vue.openBlock(),Vue.createElementBlock("span",Ht,"TIM可以从相册扫码")):Vue.createCommentVNode("",!0),o.value==-2?(Vue.openBlock(),Vue.createElementBlock("span",Rt,"请确认登录")):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0),o.value>0?(Vue.openBlock(),Vue.createElementBlock("div",jt,[Vue.createVNode(w,{size:100,src:"https://q.qlogo.cn/headimg_dl?dst_uin="+o.value+"&spec=640"},null,8,["src"]),Ft,Vue.createElementVNode("span",Kt,Vue.toDisplayString(o.value),1),Vue.createVNode(M),Vue.createVNode(U,{class:"action",type:"warning",onClick:r},{default:Vue.withCtx(()=>[Vue.createTextVNode("下线其他设备")]),_:1}),Vue.createVNode(U,{class:"action",type:"danger",onClick:d},{default:Vue.withCtx(()=>[Vue.createTextVNode("退出登录")]),_:1})])):Vue.createCommentVNode("",!0)])),[[$,!o.value]])])}}});const Wt=(m,s)=>{const o=m.__vccOpts||m;for(const[i,n]of s)o[i]=n;return o},Yt=Wt(Zt,[["__scopeId","data-v-2503dfe9"]]),Jt={style:{"overflow-y":"auto",height:"calc(85vh - 100px)","margin-top":"-30px"}},qt={class:"mb-2 flex items-center text-sm"},Qt={class:"mb-2 flex items-center text-sm"},Xt={class:"block"},eo={style:{"margin-left":"10px","vertical-align":"6px"}},to={class:"block"},oo={class:"block"},no={class:"block"},lo={style:{"margin-left":"10px"}},ao=Vue.defineComponent({__name:"Mark",props:{show:Object,loginInfo:{type:Object,required:!0}},setup(m){const s=m,o=Vue.ref("allUsed"),i=Vue.ref(!1),n=Vue.ref(!1),e=Vue.ref(!0);window.onresize=()=>{window.outerWidth>500?e.value=!1:e.value=!0},window.outerWidth>500?e.value=!1:e.value=!0;const t=Vue.ref(!1),r=Vue.ref("3"),d=Vue.ref("总流量"),f=()=>{let k={allUsed:"总流量",averageSpeed:"平均速度",onlineTime:"在线时长"}[o.value];return k||""},g=Vue.ref(!1);s.show&&Vue.watch(s.show,(k,x)=>{g.value=k.show}),Vue.watch(g,(k,x)=>{s.show&&(s.show.show=k),k&&M()});const u=Vue.ref([]),y=async k=>await(await fetch("https://api.netart.cn/app/network-panel/",{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(k)})).json(),w=k=>{const x=["移动","联通","电信","广电"],S=["","success","warning","danger"];for(let L in x)if(k.includes(x[L]))return S[L];return"info"},M=async()=>{d.value=f(),i.value=!0,u.value=[];try{(await y({action:"get",grade:Number(r.value),sortedBy:o.value,past:t.value})).data.forEach(x=>{let S;o.value=="allUsed"?S=U(x.data,["B","KB","MB","GB","TB","PB"],[0,0,0,0,1,1]):o.value=="averageSpeed"?S=U(x.data*8,["Bps","Kbps","Mbps","Gbps","Tbps","Pbps"],[0,0,0,1,1,1]):o.value=="onlineTime"&&(S=$(x.data)),x.data=S,x.type=w(x.isp),u.value.push(x)})}catch{ElementPlus.ElMessageBox.alert("无法获取榜单信息,可能是后端服务器异常","错误",{confirmButtonText:"确定"})}i.value=!1};function U(k,x,S){for(var L=k,P=0;L>=1024&&P!=x.length-1;)L=L/1024,P++;return L.toFixed(S[P])+x[P]}const $=k=>k<60?k.toFixed(0)+"秒":(k/=60,k<60?k.toFixed(0)+"分钟":(k/=60,k<24?k.toFixed(0)+"小时":(k/=24,k.toFixed(0)+"天")));return(k,x)=>{const S=Vue.resolveComponent("el-radio"),L=Vue.resolveComponent("el-radio-group"),P=Vue.resolveComponent("el-checkbox"),G=Vue.resolveComponent("el-empty"),V=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-avatar"),p=Vue.resolveComponent("el-tag"),h=Vue.resolveComponent("el-table"),_=Vue.resolveComponent("el-button"),A=Vue.resolveComponent("el-dialog"),T=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.createVNode(A,{"align-center":"",style:{width:"95vw","max-width":"600px",height:"85vh"},modelValue:g.value,"onUpdate:modelValue":x[4]||(x[4]=C=>g.value=C),title:"排行榜"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",Jt,[Vue.createElementVNode("div",qt,[Vue.createVNode(L,{modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=C=>o.value=C),onChange:M,class:"ml-4"},{default:Vue.withCtx(()=>[Vue.createVNode(S,{label:"allUsed",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("总流量")]),_:1}),Vue.createVNode(S,{label:"averageSpeed",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("平均速度")]),_:1}),Vue.createVNode(S,{label:"onlineTime",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("在线时长")]),_:1})]),_:1},8,["modelValue"])]),Vue.createElementVNode("div",Qt,[Vue.createVNode(L,{modelValue:r.value,"onUpdate:modelValue":x[2]||(x[2]=C=>r.value=C),onChange:M,class:"ml-4"},{default:Vue.withCtx(()=>[Vue.createVNode(S,{label:"3",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("小时")]),_:1}),Vue.createVNode(S,{label:"2",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("天")]),_:1}),Vue.createVNode(S,{label:"1",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("月")]),_:1}),Vue.createVNode(S,{label:"0",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("年")]),_:1}),Vue.createVNode(P,{modelValue:t.value,"onUpdate:modelValue":x[1]||(x[1]=C=>t.value=C),label:"上个统计周期",size:"small",onChange:M},null,8,["modelValue"])]),_:1},8,["modelValue"])]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(h,{"table-layout":"auto",data:u.value,size:"small"},{empty:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(G,{description:"没有数据"},null,512),[[Vue.vShow,!i.value]])]),default:Vue.withCtx(()=>[Vue.createVNode(V,{type:"index",label:"",width:"40"}),Vue.createVNode(V,{prop:"user",label:"用户"},{default:Vue.withCtx(C=>[Vue.createElementVNode("div",Xt,[Vue.createVNode(c,{size:30,src:C.row.headimg},null,8,["src"]),Vue.createElementVNode("span",eo,Vue.toDisplayString(C.row.user),1)])]),_:1}),Vue.createVNode(V,{prop:"data",label:d.value},null,8,["label"]),e.value?(Vue.openBlock(),Vue.createBlock(V,{key:0,prop:"user",label:"属地"},{default:Vue.withCtx(C=>[Vue.createElementVNode("div",to,[Vue.createVNode(p,{size:"small",type:C.row.type,round:""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(C.row.short),1)]),_:2},1032,["type"])])]),_:1})):Vue.createCommentVNode("",!0),e.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(V,{key:1,prop:"user",label:"运营商"},{default:Vue.withCtx(C=>[Vue.createElementVNode("div",oo,[Vue.createVNode(p,{size:"small",type:C.row.type,round:""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(C.row.isp),1)]),_:2},1032,["type"])])]),_:1})),e.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(V,{key:2,prop:"user",label:"属地"},{default:Vue.withCtx(C=>[Vue.createElementVNode("div",no,[Vue.createElementVNode("span",lo,Vue.toDisplayString(C.row.addr),1)])]),_:1}))]),_:1},8,["data"])),[[T,i.value]])]),Vue.createVNode(_,{class:"mt-4",style:{width:"100%"},onClick:x[3]||(x[3]=C=>n.value=!0)},{default:Vue.withCtx(()=>[Vue.createTextVNode("用户中心")]),_:1})]),_:1},8,["modelValue"]),Vue.createVNode(A,{style:{width:"99vw","max-width":"500px"},modelValue:n.value,"onUpdate:modelValue":x[5]||(x[5]=C=>n.value=C),title:"用户中心"},{default:Vue.withCtx(()=>[n.value?(Vue.openBlock(),Vue.createBlock(Yt,{key:0,loginInfo:s.loginInfo},null,8,["loginInfo"])):Vue.createCommentVNode("",!0)]),_:1},8,["modelValue"])],64)}}}),so={style:{"margin-top":"10px","margin-left":"10px","margin-right":"10px"}},ro={class:"slider-demo-block"},io=Vue.createElementVNode("span",{class:"font-background"},"测速地址:",-1),co=Vue.createElementVNode("br",null,null,-1),uo={class:"slider-demo-block",style:{"margin-top":"20px"}},po={class:"font-background"},fo=Vue.createElementVNode("br",null,null,-1),Vo={class:"ItemContainer"},mo={class:"showItem"},ho=Vue.createElementVNode("span",{class:"font-background",style:{"font-size":"larger"}},"总流量",-1),vo=Vue.createElementVNode("div",{class:"state-icon"},[Vue.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-15 w-15 float-right pt-3"},[Vue.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"})])],-1),_o={class:"showItem"},go={class:"font-background",style:{"font-size":"larger"}},yo=Vue.createElementVNode("br",null,null,-1),bo=Vue.createElementVNode("br",null,null,-1),wo=Vue.createElementVNode("br",null,null,-1),xo=Vue.createElementVNode("div",{class:"state-icon",style:{color:"rgb(9,194,222)"}},[Vue.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-15 w-15 float-right pt-3"},[Vue.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1",d:"M16.469,8.924l-2.414,2.413c-0.156,0.156-0.408,0.156-0.564,0c-0.156-0.155-0.156-0.408,0-0.563l2.414-2.414c1.175-1.175,1.175-3.087,0-4.262c-0.57-0.569-1.326-0.883-2.132-0.883s-1.562,0.313-2.132,0.883L9.227,6.511c-1.175,1.175-1.175,3.087,0,4.263c0.288,0.288,0.624,0.511,0.997,0.662c0.204,0.083,0.303,0.315,0.22,0.52c-0.171,0.422-0.643,0.17-0.52,0.22c-0.473-0.191-0.898-0.474-1.262-0.838c-1.487-1.485-1.487-3.904,0-5.391l2.414-2.413c0.72-0.72,1.678-1.117,2.696-1.117s1.976,0.396,2.696,1.117C17.955,5.02,17.955,7.438,16.469,8.924 M10.076,7.825c-0.205-0.083-0.437,0.016-0.52,0.22c-0.083,0.205,0.016,0.437,0.22,0.52c0.374,0.151,0.709,0.374,0.997,0.662c1.176,1.176,1.176,3.088,0,4.263l-2.414,2.413c-0.569,0.569-1.326,0.883-2.131,0.883s-1.562-0.313-2.132-0.883c-1.175-1.175-1.175-3.087,0-4.262L6.51,9.227c0.156-0.155,0.156-0.408,0-0.564c-0.156-0.156-0.408-0.156-0.564,0l-2.414,2.414c-1.487,1.485-1.487,3.904,0,5.391c0.72,0.72,1.678,1.116,2.696,1.116s1.976-0.396,2.696-1.116l2.414-2.413c1.487-1.486,1.487-3.905,0-5.392C10.974,8.298,10.55,8.017,10.076,7.825"})])],-1),ko={class:"showItem"},No=Vue.createElementVNode("span",{class:"font-background",style:{"font-size":"larger"}},"带宽",-1),Co=Vue.createElementVNode("div",{class:"state-icon"},[Vue.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-15 w-15 float-right pt-3"},[Vue.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})])],-1),Eo={style:{width:"fit-content",display:"block","margin-top":"2ch","margin-left":"auto","margin-right":"auto"}},To={t:"1694957757562",fill:"white",style:{width:"50px","margin-left":"10px","margin-top":"-30px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4036",width:"200",height:"200"},Bo=Vue.createElementVNode("path",{d:"M823.8 603.5l-501.2 336c-50.7 34-119.3 20.4-153.2-30.2-12.2-18.2-18.7-39.6-18.7-61.5v-672c0-61 49.5-110.4 110.4-110.4 21.9 0 43.3 6.5 61.5 18.7l501.1 336c50.7 34 64.2 102.6 30.2 153.2-7.8 11.9-18.1 22.2-30.1 30.2z m0 0","p-id":"4037"},null,-1),So=[Bo],Mo={key:1,class:"button"},Io={t:"1694958268344",fill:"white",style:{width:"80px","margin-top":"-30px"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7667",width:"200",height:"200"},Lo=Vue.createElementVNode("path",{d:"M352 768c-17.664 0-32-14.304-32-32V288c0-17.664 14.336-32 32-32s32 14.336 32 32v448c0 17.696-14.336 32-32 32zM672 768c-17.696 0-32-14.304-32-32V288c0-17.664 14.304-32 32-32s32 14.336 32 32v448c0 17.696-14.304 32-32 32z","p-id":"7668"},null,-1),Ao=[Lo],Uo=Vue.createElementVNode("br",null,null,-1),Po=Vue.createElementVNode("br",null,null,-1),Do=Vue.createElementVNode("br",null,null,-1),$o=Vue.createElementVNode("br",null,null,-1),Oo={class:"dialog-footer"},zo={class:"mt-4"},Go={class:"dialog-footer"},Ho=Vue.createElementVNode("source",{src:ve,type:"audio/mpeg"},null,-1),Ro=[Ho],jo=Vue.createElementVNode("source",{src:_e,type:"audio/mpeg"},null,-1),Fo=[jo],Ko=Vue.defineComponent({__name:"Main",props:{isVisible:Boolean,IPinfo:Object},setup(m){const s=m,o=Vue.ref({show:!1}),i=Vue.ref(localStorage.customNodes?JSON.parse(localStorage.customNodes):[]),n=ge,e=Vue.ref(n);i.value.length&&(e.value=[{label:"自定义",options:i.value}].concat(n)),Vue.watch(i,async(a,l)=>{i.value.length?e.value=[{label:"自定义",options:i.value}].concat(n):e.value=n,localStorage.customNodes=JSON.stringify(a)},{deep:!0});const t=Vue.reactive({show:{allUsed:"-",speed:"-",speedBit:"-"},predict:{min:"-",hour:"-",day:"-",mon:"-"},isChecking:!1,bytesUsed:0,logged:0,lastLogTime:0,recordUse:0,recordTime:0,startUse:0,startTime:0,speedHistory:[[new Date,0]],maxUse:localStorage.maxUse?Number(localStorage.maxUse):0}),r=Vue.ref(!1),d=Vue.reactive({AccessToken:localStorage.AccessToken?localStorage.AccessToken:""}),f=Vue.ref(localStorage.chartShow?localStorage.chartShow==="true":!1),g=Vue.ref(localStorage.threadNum?Number(localStorage.threadNum):8),u=Vue.ref(localStorage.runBackground?localStorage.runBackground==="true":!1),y=Vue.ref(localStorage.url?localStorage.url:e.value[0].options[0].value);var w=[];const M=async()=>{t.isChecking=!0;const a=await U(y.value);t.isChecking=!1,a.status?r.value=!0:ElementPlus.ElMessage.error({dangerouslyUseHTMLString:!0,message:a.info})},U=async a=>{var l=!0;let v="";try{let N=new URL(a);if(N.host.indexOf("ljxnet.cn")+N.host.indexOf("netart.cn")!=-2)throw"你不对劲,我要拿小本本把你记下来然后交给警察蜀黍!";const B=await fetch(a,{cache:"no-store",mode:"cors",referrerPolicy:"no-referrer"});if(B.status==404)throw"资源响应异常"+B.status;if(!B.body)throw"资源响应异常 Nobody";const E=B.body.getReader(),{value:I,done:j}=await E.read();if(!I||I.length<=0)throw"资源响应异常 Nobody";E.cancel()}catch(N){l=!1,N instanceof Error?v=N.message:v=String(N)}return{status:l,info:v}};Vue.watch(r,async(a,l)=>{var N,B;if(a){t.maxUse&&t.bytesUsed>=t.maxUse&&(t.bytesUsed=0,t.logged=0),t.lastLogTime=new Date().getTime()/1e3,t.speedHistory.length=0,t.startUse=t.bytesUsed,t.startTime=new Date().getTime()/1e3,t.recordUse=t.bytesUsed,t.recordTime=new Date().getTime()/1e3;for(let E=0;EclearInterval(E)),$(),(B=R.value)==null||B.pause();var v=(t.bytesUsed-t.startUse)/(new Date().getTime()/1e3-t.startTime);L(v),S(),s.isVisible||x()}});async function $(){let a=new Date().getTime()/1e3,l=t.bytesUsed-t.logged,v=a-t.lastLogTime;if(t.logged=t.bytesUsed,t.lastLogTime=a,d.AccessToken){let N=await fetch("https://api.netart.cn/app/network-panel/",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({action:"log",AccessToken:d.AccessToken,url:y.value,threadNum:g.value,used:l,time:v,IPinfo:s.IPinfo})});N=await N.json(),N.status==-1&&(d.AccessToken="")}}Vue.watch(s,async(a,l)=>{!a.isVisible&&u.value&&r.value&&V(),!a.isVisible&&!u.value&&r.value&&(r.value=!1),a.isVisible&&x()}),Vue.watch(g,async(a,l)=>{if(localStorage.threadNum=a,r.value&&a>l)for(let v=l;v{localStorage.runBackground=a}),Vue.watch(f,async(a,l)=>{localStorage.chartShow=a,a&&setTimeout(()=>H.resize(),100)}),Vue.watch(y,async(a,l)=>{localStorage.url=a}),Vue.watch(d,async(a,l)=>{localStorage.AccessToken=a.AccessToken});const k=()=>{W(y.value).then(()=>{ElementPlus.ElMessage.success({dangerouslyUseHTMLString:!0,message:"已复制当前链接"})})};window.addEventListener("paste",function(a){var B;if(a.clipboardData&&a.clipboardData.items&&((B=document.activeElement)==null?void 0:B.nodeName)!="INPUT")for(var l=0,v=a.clipboardData.items.length;l{s.isVisible?document.title="网络面板":r.value?document.title=c(t.bytesUsed,0,[0,0,0,0,0,0])+" "+c(a,1,[0,0,0,0,0,0]):t.maxUse&&t.bytesUsed>=t.maxUse?document.title="已完成":document.title="已暂停"},S=()=>{t.bytesUsed||(t.show.allUsed="-"),t.show.allUsed=c(t.bytesUsed,0,[0,0,1,2,2,2])},L=a=>{t.show.speed=c(a,1,[0,0,1,2,2,2]),t.show.speedBit=c(a*8,2,[0,0,0,2,2,2]),t.predict.min=c(a*60,0,[0,0,0,1,1,1]),t.predict.hour=c(a*60*60,0,[0,0,0,1,1,1]),t.predict.day=c(a*60*60*24,0,[0,0,0,1,1,1]),t.predict.mon=c(a*60*60*24*30,0,[0,0,0,1,1,1])};let P=a=>(a<10&&(a=10),a%Math.pow(10,a.toString().length-2)==0);var G=()=>{s.isVisible&&S(),t.maxUse&&t.bytesUsed>=t.maxUse&&(r.value=!1)},V=()=>{var a=(t.bytesUsed-t.recordUse)/(new Date().getTime()/1e3-t.recordTime);isNaN(a)?t.speedHistory.push([new Date,0]):t.speedHistory.push([new Date,a]),P(t.speedHistory.length)&&oe(),a<=0||isNaN(a)?(t.show.speed="-",t.show.speedBit="-"):s.isVisible?L(a):u.value&&x(a),t.recordUse=t.bytesUsed,t.recordTime=new Date().getTime()/1e3};function c(a,l,v){const B=[["B","KB","MB","GB","TB","PB"],["B/s","KB/s","MB/s","GB/s","TB/s","PB/s"],["Bps","Kbps","Mbps","Gbps","Tbps","Pbps"]][l];for(var E=a,I=0;E>=1024&&I!=B.length-1;)E=E/1024,I++;return E.toFixed(v[I])+B[I]}async function p(a){try{var l=y.value;const v=await fetch(l,{cache:"no-store",mode:"cors",referrerPolicy:"no-referrer"});if(!v.body)throw"Nobody";let N=v.headers.get("content-length"),B=1/0;N&&(B=parseInt(N));const E=v.body.getReader();let I=0;for(;;){const{value:j}=await E.read();let F=j==null?void 0:j.length;if(!F||l!=y.value){p(a);break}let z=F;if(I>=B?z=0:I+F>B&&(z=B-I),t.bytesUsed+=z,a>=g.value||!r.value)break;I+=F}E.cancel()}catch(v){console.log(v),r.value&&p(a)}}const h=Vue.ref(!1),_=Vue.ref(!1),A=Vue.ref(!1),T=Vue.ref({label:"",value:"",checking:!1}),C=a=>{var l=a.match(/https?:\/\/([\w-]+\.)+[\w-]+(:[0-9]+)?(\/\S*)?/);return l?l[0]:""},ie=async()=>{T.value.value=C(T.value.value),T.value.checking=!0;const a=await U(T.value.value);if(!a.status){T.value.checking=!1,ElementPlus.ElMessage.error({dangerouslyUseHTMLString:!0,message:a.info});return}T.value.checking=!1,i.value.push({label:T.value.label,value:T.value.value}),T.value.label="",T.value.value="",_.value=!1},O=Vue.ref({num:null,type:"GB"}),ce=()=>{var a={MB:1048576,GB:1073741824,TB:1099511627776},l=0;O.value.num&&(l=Math.floor(O.value.num*a[O.value.type])),t.maxUse=l,localStorage.maxUse=l,O.value.num=null,A.value=!1};var ue=/Mobi|Android|iPhone/i.test(navigator.userAgent),de=/MiuiBrowser/i.test(navigator.userAgent),ee=/iPhone/i.test(navigator.userAgent);const R=Vue.ref(null),te=Vue.ref(null);let H,oe=()=>{};function pe(a){const l=a.length;if(l<=100)return a;const v=l/100;let N=[];for(let B=0;B<100;B++){const E=Math.floor(v*B);N.push(a[E])}return N}return Vue.onMounted(()=>{H=echarts.init(te.value);const a={tooltip:{trigger:"axis",formatter:function(l){let v=c(l[0].data[1],1,[0,0,1,2,2,2]);return`${l[0].data[0].toLocaleString()}
- ${v}`}},toolbox:{feature:{saveAsImage:{}}},title:{left:"left",text:"速度图表"},xAxis:{type:"time",boundaryGap:!1,axisLabel:{show:!1}},yAxis:{type:"value",axisLabel:{formatter:l=>{let v=c(l,1,[0,0,0,0,0,0]);return v=="-"?0:v}}},series:[{name:"速度",type:"line",smooth:!1,symbol:"none",areaStyle:{},data:t.speedHistory}],grid:{x:50,y:40,x2:8,y2:10}};H.setOption(a),oe=()=>{f.value&&(a.series[0].data=pe(t.speedHistory),H.setOption(a))},window.addEventListener("resize",()=>{H.resize()})}),Vue.onUnmounted(()=>{H&&H.dispose()}),(a,l)=>{const v=Vue.resolveComponent("el-button"),N=Vue.resolveComponent("el-option"),B=Vue.resolveComponent("el-option-group"),E=Vue.resolveComponent("el-icon"),I=Vue.resolveComponent("el-select"),j=Vue.resolveComponent("el-slider"),F=Vue.resolveComponent("el-switch"),z=Vue.resolveComponent("el-text"),fe=Vue.resolveComponent("el-popover"),Y=Vue.resolveComponent("el-table-column"),Ve=Vue.resolveComponent("el-table"),me=Vue.resolveComponent("el-empty"),J=Vue.resolveComponent("el-dialog"),q=Vue.resolveComponent("el-input"),ne=Vue.resolveComponent("el-form-item"),le=Vue.resolveComponent("el-form"),he=Vue.resolveComponent("el-alert");return Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.createElementVNode("div",{class:"radius",style:Vue.normalizeStyle([{borderRadius:"var(--el-border-radius-round)"},{"max-width":"800px",height:"fit-content",display:"block",margin:"0 auto","background-color":"#ffffff",padding:"2%"}])},[Vue.createElementVNode("div",so,[Vue.createElementVNode("div",ro,[io,Vue.createVNode(v,{type:"primary",icon:Vue.unref(Oe),link:"",onClick:k},null,8,["icon"]),Vue.createVNode(v,{type:"primary",icon:Vue.unref(ae),link:"",onClick:l[0]||(l[0]=b=>h.value=!0)},null,8,["icon"]),co,Vue.createVNode(I,{style:{width:"100%"},modelValue:y.value,"onUpdate:modelValue":l[1]||(l[1]=b=>y.value=b)},{prefix:Vue.withCtx(()=>[Vue.createVNode(E,null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ht))]),_:1})]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.value,b=>(Vue.openBlock(),Vue.createBlock(B,{key:b.label,label:b.label},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(b.options,Z=>(Vue.openBlock(),Vue.createBlock(N,{key:Z.value,label:Z.label,value:Z.value},null,8,["label","value"]))),128))]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),Vue.createElementVNode("div",uo,[Vue.createElementVNode("span",po,"线程数:"+Vue.toDisplayString(g.value),1),Vue.createVNode(j,{"show-tooltip":!1,min:1,max:64,modelValue:g.value,"onUpdate:modelValue":l[2]||(l[2]=b=>g.value=b)},null,8,["modelValue"])]),Vue.createVNode(F,{modelValue:u.value,"onUpdate:modelValue":l[3]||(l[3]=b=>u.value=b),"active-text":"保持后台运行"},null,8,["modelValue"]),fo,Vue.createElementVNode("div",Vo,[Vue.createElementVNode("div",mo,[ho,Vue.createVNode(z,{size:"small",class:"mx-1"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.maxUse?"/"+c(t.maxUse,0,[0,0,0,0,0,0]):""),1)]),_:1}),Vue.createVNode(v,{type:"primary",style:{height:"15px"},icon:Vue.unref(ae),link:"",onClick:l[4]||(l[4]=b=>A.value=!0)},null,8,["icon"]),vo,Vue.createVNode(z,{class:"font-data"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.show.allUsed),1)]),_:1})]),Vue.createElementVNode("div",_o,[Vue.createElementVNode("span",go,Vue.toDisplayString(r.value?"实时速度":"平均速度"),1),Vue.createVNode(fe,{placement:"top-start",title:"用量预测",width:150,trigger:"click"},{reference:Vue.withCtx(()=>[Vue.createVNode(v,{type:"primary",style:{height:"15px","vertical-align":"-2px"},icon:Vue.unref(Ne),link:""},null,8,["icon"])]),default:Vue.withCtx(()=>[Vue.createTextVNode(" 每分钟  "+Vue.toDisplayString(t.predict.min)+" ",1),yo,Vue.createTextVNode(" 每小时  "+Vue.toDisplayString(t.predict.hour)+" ",1),bo,Vue.createTextVNode(" 每天     "+Vue.toDisplayString(t.predict.day)+" ",1),wo,Vue.createTextVNode(" 每月     "+Vue.toDisplayString(t.predict.mon),1)]),_:1}),xo,Vue.createVNode(z,{class:"font-data",style:{color:"rgb(9,194,222)"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.show.speed),1)]),_:1})]),Vue.createElementVNode("div",ko,[No,Co,Vue.createVNode(z,{class:"font-data"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.show.speedBit),1)]),_:1})])]),Vue.createElementVNode("div",Eo,[!r.value&&!t.isChecking?(Vue.openBlock(),Vue.createElementBlock("a",{key:0,class:"button",onClick:M},[(Vue.openBlock(),Vue.createElementBlock("svg",To,So))])):Vue.createCommentVNode("",!0),t.isChecking?(Vue.openBlock(),Vue.createElementBlock("a",Mo,[Vue.createVNode(E,{style:{"margin-top":"40px"},size:60,class:"is-loading"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(se))]),_:1})])):Vue.createCommentVNode("",!0),r.value?(Vue.openBlock(),Vue.createElementBlock("a",{key:2,class:"button",onClick:l[5]||(l[5]=b=>r.value=!1)},[(Vue.openBlock(),Vue.createElementBlock("svg",Io,Ao))])):Vue.createCommentVNode("",!0)]),Vue.createVNode(v,{style:{float:"left","margin-top":"-20px","margin-right":"3px"},type:"primary",icon:Vue.unref(ut),link:"",onClick:l[6]||(l[6]=b=>o.value.show=!0)},null,8,["icon"]),f.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(v,{key:0,style:{float:"right","margin-top":"-20px","margin-right":"3px"},type:"primary",icon:Vue.unref(Et),link:"",onClick:l[7]||(l[7]=b=>f.value=!0)},null,8,["icon"])),f.value?(Vue.openBlock(),Vue.createBlock(v,{key:1,style:{float:"right","margin-top":"-20px","margin-right":"3px"},type:"primary",icon:Vue.unref(lt),link:"",onClick:l[8]||(l[8]=b=>f.value=!1)},null,8,["icon"])):Vue.createCommentVNode("",!0),Vue.withDirectives(Vue.createElementVNode("div",{ref_key:"chartContainer",ref:te,style:{width:"100%",height:"400px"}},null,512),[[Vue.vShow,f.value]])])],4),Vue.createVNode(J,{style:{"min-width":"350px","max-width":"800px"},modelValue:h.value,"onUpdate:modelValue":l[10]||(l[10]=b=>h.value=b),title:"自定义地址"},{default:Vue.withCtx(()=>[i.value.length?(Vue.openBlock(),Vue.createBlock(Ve,{key:0,data:i.value,style:{width:"100%"},"max-height":"300"},{default:Vue.withCtx(()=>[Vue.createVNode(Y,{prop:"label",label:"名称",width:"100"}),Vue.createVNode(Y,{prop:"value",label:"URL"}),Vue.createVNode(Y,{fixed:"right",label:"",width:"50"},{default:Vue.withCtx(b=>[Vue.createVNode(v,{type:"danger",link:"",icon:Vue.unref(Fe),onClick:Vue.withModifiers(Z=>i.value.splice(b.$index,1),["prevent"])},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"])):(Vue.openBlock(),Vue.createBlock(me,{key:1,description:"没有自定义地址"})),Vue.createVNode(v,{class:"mt-4",style:{width:"100%"},onClick:l[9]||(l[9]=b=>{_.value=!0})},{default:Vue.withCtx(()=>[Vue.createTextVNode("添加地址")]),_:1})]),_:1},8,["modelValue"]),Vue.createVNode(J,{style:{"min-width":"350px","max-width":"800px"},modelValue:_.value,"onUpdate:modelValue":l[15]||(l[15]=b=>_.value=b),title:"添加链接"},{footer:Vue.withCtx(()=>[Vue.createElementVNode("span",Oo,[Vue.createVNode(v,{onClick:l[13]||(l[13]=b=>_.value=!1)},{default:Vue.withCtx(()=>[Vue.createTextVNode("取消")]),_:1}),Vue.createVNode(v,{type:"primary",disabled:!C(T.value.value)||!T.value.label||T.value.checking,onClick:l[14]||(l[14]=b=>ie())},{default:Vue.withCtx(()=>[Vue.createTextVNode("确认 "),T.value.checking?(Vue.openBlock(),Vue.createBlock(E,{key:0,class:"is-loading"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(se))]),_:1})):Vue.createCommentVNode("",!0)]),_:1},8,["disabled"])])]),default:Vue.withCtx(()=>[Vue.createVNode(le,{model:T.value},{default:Vue.withCtx(()=>[Vue.createVNode(ne,{label:"名称:","label-width":"50px"},{default:Vue.withCtx(()=>[Vue.createVNode(q,{modelValue:T.value.label,"onUpdate:modelValue":l[11]||(l[11]=b=>T.value.label=b),autocomplete:"off"},null,8,["modelValue"])]),_:1}),Vue.createVNode(ne,{label:"url:","label-width":"50px"},{default:Vue.withCtx(()=>[Vue.createVNode(q,{modelValue:T.value.value,"onUpdate:modelValue":l[12]||(l[12]=b=>T.value.value=b),autocomplete:"off"},{suffix:Vue.withCtx(()=>[C(T.value.value)?(Vue.openBlock(),Vue.createBlock(E,{key:0},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Ie))]),_:1})):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[Vue.createTextVNode("> ")]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),Vue.createVNode(he,{title:"注意:",type:"warning"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 在浏览器工作的程序受到浏览器安全策略的限制 "),Uo,Vue.createTextVNode(" 以下情况你将无法正常使用链接 "),Po,Vue.createTextVNode(" 1.你使用https协议打开的本站,但是url是http协议 "),Do,Vue.createTextVNode(" 2.目标服务器返回的Access-Control-Allow-Origin响应头没有允许本站 "),$o,Vue.createTextVNode(" 具体细节请在报错后查看控制台 ")]),_:1})]),_:1},8,["modelValue"]),Vue.createVNode(J,{style:{"min-width":"350px","max-width":"800px"},modelValue:A.value,"onUpdate:modelValue":l[20]||(l[20]=b=>A.value=b),title:"设置上限自动停止"},{footer:Vue.withCtx(()=>[Vue.createElementVNode("span",Go,[Vue.createVNode(v,{onClick:l[18]||(l[18]=b=>A.value=!1)},{default:Vue.withCtx(()=>[Vue.createTextVNode("取消")]),_:1}),Vue.createVNode(v,{type:"primary",onClick:l[19]||(l[19]=b=>ce())},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 确定 ")]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(le,null,{default:Vue.withCtx(()=>[Vue.createElementVNode("div",zo,[Vue.createVNode(q,{type:"number",min:"1",modelValue:O.value.num,"onUpdate:modelValue":l[17]||(l[17]=b=>O.value.num=b),autocomplete:"off",placeholder:"留空则无上限",class:"input-with-select"},{append:Vue.withCtx(()=>[Vue.createVNode(I,{modelValue:O.value.type,"onUpdate:modelValue":l[16]||(l[16]=b=>O.value.type=b),placeholder:"Select",style:{width:"65px"}},{default:Vue.withCtx(()=>[Vue.createVNode(N,{label:"MB",value:"MB"}),Vue.createVNode(N,{label:"GB",value:"GB"}),Vue.createVNode(N,{label:"TB",value:"TB"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])]),_:1})]),_:1},8,["modelValue"]),Vue.createVNode(ao,{show:o.value,loginInfo:d},null,8,["show","loginInfo"]),Vue.unref(ue)&&!Vue.unref(ee)&&!Vue.unref(de)&&u.value?(Vue.openBlock(),Vue.createElementBlock("audio",{key:0,onCanplay:l[21]||(l[21]=()=>{r.value&&R.value.play()}),onPause:l[22]||(l[22]=()=>{u.value&&(r.value=!1)}),onPlay:l[23]||(l[23]=b=>r.value=!0),controls:"",loop:"",ref_key:"audioDom",ref:R,style:{display:"none"}},Ro,544)):Vue.createCommentVNode("",!0),Vue.unref(ee)&&u.value?(Vue.openBlock(),Vue.createElementBlock("audio",{key:1,onCanplay:l[24]||(l[24]=()=>{r.value&&R.value.play()}),onPause:l[25]||(l[25]=()=>{u.value&&(r.value=!1)}),onPlay:l[26]||(l[26]=b=>r.value=!0),controls:"",loop:"",ref_key:"audioDom",ref:R,style:{display:"none"}},Fo,544)):Vue.createCommentVNode("",!0)],64)}}});const Zo="美国",Wo="加拿大",Yo="中国香港",Jo="中国台湾",qo="新加坡",Qo="日本",Xo="韩国",en="澳大利亚",tn="新西兰",on="阿富汗",nn="阿尔巴尼亚",ln="阿尔及利亚",an="美属萨摩亚(美国)",sn="安道尔",rn="安哥拉",cn="安圭拉",un="安提瓜和巴布达",dn="阿根廷",pn="亚美尼亚",fn="阿鲁巴",Vn="奥地利",mn="阿塞拜疆",hn="巴哈马",vn="巴林",_n="孟加拉国",gn="巴巴多斯",yn="白俄罗斯",bn="比利时",wn="伯利兹",xn="贝宁",kn="百慕大",Nn="不丹",Cn="玻利维亚",En="波黑",Tn="博茨瓦纳",Bn="巴西",Sn="英属维京群岛(英国)",Mn="文莱",In="保加利亚",Ln="布基纳法索",An="布隆迪",Un="柬埔寨",Pn="喀麦隆",Dn="佛得角",$n="开曼群岛(英国)",On="中非共和国",zn="乍得",Gn="智利",Hn="哥伦比亚",Rn="科摩罗",jn="刚果(金)",Fn="库克群岛(新西兰)",Kn="哥斯达黎加",Zn="科特迪瓦",Wn="克罗地亚",Yn="古巴",Jn="塞浦路斯",qn="捷克",Qn="丹麦",Xn="吉布提",el="多米尼克",tl="多米尼加共和国",ol="厄瓜多尔",nl="埃及",ll="萨尔瓦多",al="赤道几内亚",sl="厄立特里亚",rl="爱沙尼亚",il="埃塞俄比亚",cl="法罗群岛(丹麦)",ul="斐济",dl="芬兰",pl="法国",fl="法属圭亚那(法国)",Vl="法属玻利尼西亚",ml="加蓬",hl="冈比亚",vl="格鲁吉亚",_l="德国",gl="加纳",yl="直布罗陀(英国)",bl="希腊",wl="格陵兰",xl="格林纳达",kl="瓜德罗普",Nl="关岛(美国)",Cl="危地马拉",El="几内亚",Tl="几内亚比绍",Bl="圭亚那",Sl="海地",Ml="洪都拉斯",Il="匈牙利",Ll="冰岛",Al="印度",Ul="印度尼西亚",Pl="伊朗",Dl="伊拉克",$l="爱尔兰共和国",Ol="以色列",zl="意大利",Gl="牙买加",Hl="约旦",Rl="哈萨克斯坦",jl="肯尼亚",Fl="基里巴斯",Kl="北朝鲜",Zl="科威特",Wl="吉尔吉斯斯坦",Yl="老挝",Jl="拉脱维亚",ql="黎巴嫩",Ql="莱索托",Xl="利比里亚",ea="利比亚",ta="列支敦士登",oa="立陶宛",na="卢森堡",la="中国澳门",aa="马其顿",sa="马达加斯加",ra="马拉维",ia="马来西亚",ca="马尔代夫",ua="马里共和国",da="马耳他",pa="马绍尔群岛",fa="马提尼克(法国)",Va="毛里塔尼亚",ma="毛里求斯",ha="马约特",va="墨西哥",_a="密克罗尼西亚联邦",ga="摩尔多瓦",ya="摩纳哥",ba="蒙古国",wa="黑山共和国",xa="蒙塞拉特岛(英国)",ka="摩洛哥",Na="莫桑比克",Ca="缅甸",Ea="纳米比亚",Ta="瑙鲁",Ba="尼泊尔",Sa="荷兰",Ma="新喀里多尼亚(法国)",Ia="尼加拉瓜",La="尼日尔",Aa="尼日利亚",Ua="纽埃",Pa="北马里亚纳群岛(美国)",Da="挪威",$a="阿曼",Oa="巴基斯坦",za="帕劳",Ga="巴勒斯坦",Ha="巴拿马",Ra="巴布亚新几内亚",ja="巴拉圭",Fa="中国",Ka="秘鲁",Za="菲律宾",Wa="波兰",Ya="葡萄牙",Ja="波多黎各(美国)",qa="卡塔尔",Qa="刚果共和国",Xa="津巴布韦",es="留尼汪(法国)",ts="罗马尼亚",os="俄罗斯",ns="卢旺达",ls="圣赫勒拿",as="圣基茨和尼维斯",ss="圣卢西亚",rs="圣皮埃尔和密克隆岛(法国)",is="圣文森特和格林纳丁斯",cs="萨摩亚",us="圣马力诺",ds="圣多美和普林西比",ps="沙特阿拉伯",fs="塞内加尔",Vs="塞尔维亚共和国",ms="塞舌尔",hs="塞拉利昂",vs="斯洛伐克",_s="斯洛文尼亚",gs="所罗门群岛",ys="索马里",bs="南非",ws="南苏丹",xs="西班牙",ks="斯里兰卡",Ns="苏丹",Cs="苏里南",Es="斯威士兰",Ts="瑞典",Bs="瑞士",Ss="叙利亚",Ms="塔吉克斯坦",Is="坦桑尼亚",Ls="泰国",As="东帝汶",Us="多哥",Ps="托克劳",Ds="汤加",$s="特立尼达和多巴哥",Os="突尼斯",zs="土耳其",Gs="土库曼斯坦",Hs="特克斯和凯科斯群岛(英国)",Rs="图瓦卢",js="乌干达",Fs="乌克兰",Ks="阿拉伯联合酋长国",Zs="英国",Ws="乌拉圭",Ys="乌兹别克斯坦",Js="瓦努阿图",qs="委内瑞拉",Qs="越南",Xs="瓦利斯和富图纳群岛(法国)",er="也门",tr="赞比亚",or={599:"荷属安的列斯",US:Zo,CA:Wo,HK:Yo,TW:Jo,SG:qo,JP:Qo,KR:Xo,AU:en,NZ:tn,AF:on,AL:nn,DZ:ln,AS:an,AD:sn,AO:rn,AI:cn,AG:un,AR:dn,AM:pn,AW:fn,AT:Vn,AZ:mn,BS:hn,BH:vn,BD:_n,BB:gn,BY:yn,BE:bn,BZ:wn,BJ:xn,BM:kn,BT:Nn,BO:Cn,BA:En,BW:Tn,BR:Bn,VG:Sn,BN:Mn,BG:In,BF:Ln,BI:An,KH:Un,CM:Pn,CV:Dn,KY:$n,CF:On,TD:zn,CL:Gn,CO:Hn,KM:Rn,CD:jn,CK:Fn,CR:Kn,CI:Zn,HR:Wn,CU:Yn,CY:Jn,CZ:qn,DK:Qn,DJ:Xn,DM:el,DO:tl,EC:ol,EG:nl,SV:ll,GQ:al,ER:sl,EE:rl,ET:il,FO:cl,FJ:ul,FI:dl,FR:pl,GF:fl,PF:Vl,GA:ml,GM:hl,GE:vl,DE:_l,GH:gl,GI:yl,GR:bl,GL:wl,GD:xl,GP:kl,GU:Nl,GT:Cl,GN:El,GW:Tl,GY:Bl,HT:Sl,HN:Ml,HU:Il,IS:Ll,IN:Al,ID:Ul,IR:Pl,IQ:Dl,IE:$l,IL:Ol,IT:zl,JM:Gl,JO:Hl,KZ:Rl,KE:jl,KI:Fl,KP:Kl,KW:Zl,KG:Wl,LA:Yl,LV:Jl,LB:ql,LS:Ql,LR:Xl,LY:ea,LI:ta,LT:oa,LU:na,MO:la,MK:aa,MG:sa,MW:ra,MY:ia,MV:ca,ML:ua,MT:da,MH:pa,MQ:fa,MR:Va,MU:ma,YT:ha,MX:va,FM:_a,MD:ga,MC:ya,MN:ba,ME:wa,MS:xa,MA:ka,MZ:Na,MM:Ca,NA:Ea,NR:Ta,NP:Ba,NL:Sa,NC:Ma,NI:Ia,NE:La,NG:Aa,NU:Ua,MP:Pa,NO:Da,OM:$a,PK:Oa,PW:za,PS:Ga,PA:Ha,PG:Ra,PY:ja,CN:Fa,PE:Ka,PH:Za,PL:Wa,PT:Ya,PR:Ja,QA:qa,CG:Qa,ZW:Xa,RE:es,RO:ts,RU:os,RW:ns,SH:ls,KN:as,LC:ss,PM:rs,VC:is,WS:cs,SM:us,ST:ds,SA:ps,SN:fs,RS:Vs,SC:ms,SL:hs,SK:vs,SI:_s,SB:gs,SO:ys,ZA:bs,SS:ws,ES:xs,LK:ks,SD:Ns,SR:Cs,SZ:Es,SE:Ts,CH:Bs,SY:Ss,TJ:Ms,TZ:Is,TH:Ls,TL:As,TG:Us,TK:Ps,TO:Ds,TT:$s,TN:Os,TR:zs,TM:Gs,TC:Hs,TV:Rs,UG:js,UA:Fs,AE:Ks,GB:Zs,UY:Ws,UZ:Ys,VU:Js,VE:qs,VN:Qs,WF:Xs,YE:er,ZM:tr},nr={style:{"text-align":"center"}},lr={key:0},ar={key:0},sr=Vue.defineComponent({__name:"IPinfo",props:{isVisible:Boolean,IPinfo:Object},setup(m){const s=m,o=Vue.reactive({localInfo:null,globalInfo:null,localLay:0,globalLay:0}),i=r=>{const d=["内蒙古","黑龙江","河北","山西","吉林","辽宁","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","广西","西藏","宁夏","新疆","北京","天津","上海","重庆"];for(let f in d)if(r.includes(d[f]))return d[f];return null};async function n(){if(s.isVisible)try{let d=await(await fetch("https://ip.useragentinfo.com/json",{referrerPolicy:"no-referrer"})).json(),f={ip:d.ip,isp:d.isp,isChinaMainland:!!i(d.province),province:i(d.province),city:d.city.replace(/市$/,""),area:d.area};o.localInfo=f,s.IPinfo&&(s.IPinfo.localInfo=f)}catch{o.localInfo=null}setTimeout(n,o.localInfo?5e3:1e3)}async function e(){if(s.isVisible)try{let d=await(await fetch("https://api-ipv4.ip.sb/geoip",{referrerPolicy:"no-referrer"})).json();const f=d.country_code;let g={ip:d.ip,isp:d.isp,country:or[f]};o.globalInfo=g,s.IPinfo&&(s.IPinfo.globalInfo=g)}catch{o.globalInfo=null}setTimeout(e,o.globalInfo?5e3:1e3)}n(),e();async function t(r,d){if(s.isVisible)try{var f=new Date().getTime();await fetch(r,{method:"HEAD",cache:"no-store",mode:"no-cors",referrerPolicy:"no-referrer"}),o[d]=new Date().getTime()-f}catch{o[d]=0}setTimeout(t,1e3,r,d)}return t("https://connectivitycheck.platform.hicloud.com/generate_204","localLay"),t("https://cp.cloudflare.com/","globalLay"),(r,d)=>{const f=Vue.resolveComponent("el-tag"),g=Vue.resolveComponent("el-text"),u=Vue.resolveComponent("el-tooltip"),y=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",{class:"radius",style:Vue.normalizeStyle([{borderRadius:"var(--el-border-radius-round)"},{"max-width":"800px",height:"fit-content",display:"block",margin:"0 auto","background-color":"#ffffff",padding:"2%"}])},[Vue.createElementVNode("div",nr,[Vue.createVNode(Vue.Transition,{name:"el-fade-in"},{default:Vue.withCtx(()=>[!o.localInfo||o.localInfo.isChinaMainland?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",lr,[Vue.createVNode(u,{class:"item",effect:"dark",content:o.localInfo?o.localInfo.ip:"Loading...",placement:"top"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(f,{style:{width:"50px"},class:"ml-2",type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.localLay?o.localLay+"ms":"-ms"),1)]),_:1}),Vue.createVNode(g,{style:{"white-space":"nowrap","vertical-align":"-1px"},class:"font-background"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.localInfo?o.localInfo.province+" "+o.localInfo.city+" "+o.localInfo.area+" "+o.localInfo.isp:"Loading..."),1)]),_:1})])]),_:1},8,["content"])])),[[y,!o.localInfo]]):Vue.createCommentVNode("",!0)]),_:1}),Vue.createVNode(Vue.Transition,{name:"el-fade-in"},{default:Vue.withCtx(()=>[o.localInfo&&o.localInfo.province&&!o.globalInfo||o.globalInfo&&o.globalInfo.country!="中国"?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",ar,[Vue.createVNode(u,{class:"item",effect:"dark",content:o.globalInfo?o.globalInfo.ip:"Loading...",placement:"top"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(f,{style:{width:"50px"},class:"ml-2",type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.globalLay?o.globalLay+"ms":"-ms"),1)]),_:1}),Vue.createVNode(g,{style:{"white-space":"nowrap","vertical-align":"-3px"},class:"font-background"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.globalInfo?o.globalInfo.country:""),1)]),_:1}),Vue.createVNode(g,{style:{"white-space":"nowrap","vertical-align":"-3px"},class:"font-background"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(o.globalInfo?o.globalInfo.isp:""),1)]),_:1})])]),_:1},8,["content"])])),[[y,!o.globalInfo]]):Vue.createCommentVNode("",!0)]),_:1})])],4)}}});const rr="/assets/logo-0865f91b.svg",ir={style:{"margin-top":"15px"}},cr={style:{width:"fit-content",float:"left"}},ur=["src"],dr=Vue.createElementVNode("span",{style:{color:"#526484","font-size":"20px","font-weight":"bolder"}}," 网络面板 ",-1),pr={style:{float:"right"}},fr=Vue.createElementVNode("br",null,null,-1),Vr={style:{height:"fit-content","padding-bottom":"10px"}},mr={style:{width:"fit-content","margin-left":"auto","margin-right":"auto"}},hr=Vue.defineComponent({__name:"App",setup(m){const s=Vue.ref(!0),o=Vue.reactive({globalInfo:null,localInfo:null});let i=()=>{W("463481772"),ElementPlus.ElMessage.info({dangerouslyUseHTMLString:!0,message:"
已经复制QQ群号:
463481772
"})};return document.addEventListener("visibilitychange",function(){var n=document.visibilityState;n==="hidden"?s.value=!1:s.value=!0}),(n,e)=>{const t=Vue.resolveComponent("el-button"),r=Vue.resolveComponent("el-header"),d=Vue.resolveComponent("el-main"),f=Vue.resolveComponent("el-link"),g=Vue.resolveComponent("el-container");return Vue.openBlock(),Vue.createBlock(g,null,{default:Vue.withCtx(()=>[Vue.createVNode(r,{style:{height:"fit-content","padding-bottom":"12px","background-color":"#ffffff"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",ir,[Vue.createElementVNode("div",cr,[Vue.createElementVNode("img",{width:40,height:40,class:"mr-2",src:Vue.unref(rr),style:{display:"inline-block","vertical-align":"-12px"}},null,8,ur),dr]),Vue.createElementVNode("div",pr,[Vue.createVNode(t,{style:{color:"#526484","font-size":"12px"},onClick:Vue.unref(i),round:""},{default:Vue.withCtx(()=>[Vue.createTextVNode("Q群")]),_:1},8,["onClick"])])])]),_:1}),Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(Ko,{isVisible:s.value,IPinfo:o},null,8,["isVisible","IPinfo"]),fr,Vue.createVNode(sr,{isVisible:s.value,IPinfo:o},null,8,["isVisible","IPinfo"])]),_:1}),Vue.createElementVNode("div",Vr,[Vue.createElementVNode("div",mr,[Vue.createVNode(f,{type:"info",href:"https://netart.cn/",target:"_blank"},{default:Vue.withCtx(()=>[Vue.createTextVNode("Whoami")]),_:1}),Vue.createTextVNode("  "),Vue.createVNode(f,{type:"info",href:"https://github.com/ljxi/NetworkPanel",target:"_blank"},{default:Vue.withCtx(()=>[Vue.createTextVNode("源码")]),_:1})])])]),_:1})}}}),X=Vue.createApp(hr);X.use(Lt);X.use(ElementPlus);X.mount("#app"); diff --git a/dist/assets/logo-0865f91b.svg b/dist/assets/logo-0865f91b.svg deleted file mode 100644 index 4bc972b..0000000 --- a/dist/assets/logo-0865f91b.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 748d47a..0000000 --- a/dist/index.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - 网络面板 - - - - - - - - - - - - - - - - - - - - - -
- - - - - \ No newline at end of file diff --git a/dist/ios.mp3 b/dist/ios.mp3 deleted file mode 100644 index 2ada0c5..0000000 Binary files a/dist/ios.mp3 and /dev/null differ