wireguard-dashboard/web/static/js/index-CSd67Gxo.js

16 lines
420 KiB
JavaScript
Raw Normal View History

2024-05-24 17:31:41 +08:00
var n1=Object.defineProperty,i1=Object.defineProperties;var e1=Object.getOwnPropertyDescriptors;var S0=Object.getOwnPropertySymbols;var t1=Object.prototype.hasOwnProperty,o1=Object.prototype.propertyIsEnumerable;var C0=(i,n,e)=>n in i?n1(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e,P3=(i,n)=>{for(var e in n||(n={}))t1.call(n,e)&&C0(i,e,n[e]);if(S0)for(var e of S0(n))o1.call(n,e)&&C0(i,e,n[e]);return i},Fn=(i,n)=>i1(i,e1(n));var H3=(i,n,e)=>new Promise((t,o)=>{var h=s=>{try{l(e.next(s))}catch(g){o(g)}},u=s=>{try{l(e.throw(s))}catch(g){o(g)}},l=s=>s.done?t(s.value):Promise.resolve(s.value).then(h,u);l((e=e.apply(i,n)).next())});import{B as Dn,C as h1,D as D3,E as u1,F as d0,z as Mn,r as A,N as o3,G as Z3,H as B,I as g3,e as f0,J as r4,K as z3,L as Pn,M as s1,O as M3,h as c,P as an,Q as q3,d as t2,R as xn,S as l1,T as F2,U as a4,V as X2,X as un,W as c4,Y as y0,a as T,o as z,f as D,y as v2,Z as p3,g as q,b as m,$ as T2,a0 as D2,a1 as R2,a2 as p2,a3 as y3,a4 as t3,a5 as b2,p as e2,w as I,m as O2,a6 as p0,c as H,a7 as u3,a8 as Hn,a9 as g1,aa as V2,_ as I2,ab as h3,ac as r1,ad as i0,ae as a1,af as c1,ag as Bn,ah as d1,ai as d4,A as b3,aj as m0,ak as vn,al as f1,u as I0,j as E0,k as r3,l as y1,am as p1,an as m1,i as z1,ao as b1,ap as tn,aq as sn,ar as T0,as as on,at as f4,au as y4,av as z0,aw as j1,ax as D0,ay as p4,az as m4,aA as w1,aB as O3,aC as x1,aD as v1,aE as q1,aF as _1,aG as e0,aH as k1,aI as S1,aJ as C1,aK as I1}from"./index-6OExHM45.js";import{e as W2,u as t0,a as K2,b as b0,t as E1,c as f3,d as T1,f as D1,g as M1}from"./dark-BTTEc-ok.js";import{a as e3,u as P1}from"./useGetGlobalProperties-CURfgubv.js";const O1={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},A1={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/>'},z4={width:24,height:24,body:'<path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"/>'},$1={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'};Dn("ep:lollipop",O1);Dn("ep:home-filled",A1);Dn("ri:search-line",z4);Dn("ri:information-line",$1);const L1=h1({id:"pure-setting",state:()=>({title:D3().Title,fixedHeader:D3().FixedHeader,hiddenSideBar:D3().HiddenSideBar}),getters:{getTitle(i){return i.title},getFixedHeader(i){return i.fixedHeader},getHiddenSideBar(i){return i.hiddenSideBar}},actions:{CHANGE_SETTING({key:i,value:n}){Reflect.has(this,i)&&(this[i]=n)},changeSetting(i){this.CHANGE_SETTING(i)}}});function j0(){return L1(u1)}const R1={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},N1={width:24,height:24,body:'<path fill="currentColor" d="M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5V17Zm6-11v9h-2V6H5V4h14v2h-6Z"/>'},V1={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5Zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2h12Z"/>'},F1={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},H1={width:1024,height:1024,body:'<path fill="currentColor" d="M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384a384 384 0 0 1-384-384a
* Sortable 1.15.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function X0(i,n){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),e.push.apply(e,t)}return e}function c3(i){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?X0(Object(e),!0).forEach(function(t){pe(i,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):X0(Object(e)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))})}return i}function mn(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mn=function(n){return typeof n}:mn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mn(i)}function pe(i,n,e){return n in i?Object.defineProperty(i,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[n]=e,i}function j3(){return j3=Object.assign||function(i){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},j3.apply(this,arguments)}function me(i,n){if(i==null)return{};var e={},t=Object.keys(i),o,h;for(h=0;h<t.length;h++)o=t[h],!(n.indexOf(o)>=0)&&(e[o]=i[o]);return e}function ze(i,n){if(i==null)return{};var e=me(i,n),t,o;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(i);for(o=0;o<h.length;o++)t=h[o],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(i,t)&&(e[t]=i[t])}return e}var be="1.15.2";function m3(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var w3=m3(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ln=m3(/Edge/i),G0=m3(/firefox/i),G3=m3(/safari/i)&&!m3(/chrome/i)&&!m3(/android/i),I4=m3(/iP(ad|od|hone)/i),E4=m3(/chrome/i)&&m3(/android/i),T4={capture:!1,passive:!1};function g2(i,n,e){i.addEventListener(n,e,!w3&&T4)}function s2(i,n,e){i.removeEventListener(n,e,!w3&&T4)}function Sn(i,n){if(n){if(n[0]===">"&&(n=n.substring(1)),i)try{if(i.matches)return i.matches(n);if(i.msMatchesSelector)return i.msMatchesSelector(n);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(n)}catch(e){return!1}return!1}}function je(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function i3(i,n,e,t){if(i){e=e||document;do{if(n!=null&&(n[0]===">"?i.parentNode===e&&Sn(i,n):Sn(i,n))||t&&i===e)return i;if(i===e)break}while(i=je(i))}return null}var K0=/\s+/g;function Z2(i,n,e){if(i&&n)if(i.classList)i.classList[e?"add":"remove"](n);else{var t=(" "+i.className+" ").replace(K0," ").replace(" "+n+" "," ");i.className=(t+(e?" "+n:"")).replace(K0," ")}}function Z(i,n,e){var t=i&&i.style;if(t){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),n===void 0?e:e[n];!(n in t)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),t[n]=e+(typeof e=="string"?"":"px")}}function N3(i,n){var e="";if(typeof i=="string")e=i;else do{var t=Z(i,"transform");t&&t!=="none"&&(e=t+" "+e)}while(!n&&(i=i.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function D4(i,n,e){if(i){var t=i.getElementsByTagName(n),o=0,h=t.length;if(e)for(;o<h;o++)e(t[o],o);return t}return[]}function a3(){var i=document.scrollingElement;return i||document.documentElement}function S2(i,n,e,t,o){if(!(!i.getBoundingClientRect&&i!==window)){var h,u,l,s,g,a,r;if(i!==window&&i.parentNode&&i!==a3()?(h=i.getBoundingClientRect(),u=h.top,l=h.left,s=h.bottom,g=h.right,a=h.height,r=h.width):(u=0,l=0,s=window.innerHeight,g=window.innerWidth,a=window.innerHeight,r=window.innerWidth),(n||e)&&i!==window&&(o=o||i.parentNode,!w3))do if(o&&o.getBoundingClientRect&&(Z(o,"transform")!=="none"||e&&Z(o,"position")!=="static")){var d=o.getBoundingClientRect();u-=d.top+parseInt(Z(o,"border-top-width")),l-=d.left+parseInt(Z(o,"border-left-width")),s=u+h.height,g=l+h.width;break}while(o=o.parentNode);if(t&&i!==window){var p=N3(
`)>-1&&(_?P=P.split(`
`).map(function(o2){return" "+o2}).join(`
`).substr(2):P=`
`+P.split(`
`).map(function(o2){return" "+o2}).join(`
`))):P=y.stylize("[Circular]","special")),j(k)){if(_&&c2.match(/^\d+$/))return P;k=JSON.stringify(""+c2),k.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.substr(1,k.length-2),k=y.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=y.stylize(k,"string"))}return k+": "+P}function b(y,w,M){var Q=y.reduce(function(c2,_){return _.indexOf(`
`)>=0,c2+_.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Q>60?M[0]+(w===""?"":w+`
`)+" "+y.join(`,
`)+" "+M[1]:M[0]+w+" "+y.join(", ")+" "+M[1]}function v(y){return Array.isArray(y)}i.isArray=v;function f(y){return typeof y=="boolean"}i.isBoolean=f;function x(y){return y===null}i.isNull=x;function S(y){return y==null}i.isNullOrUndefined=S;function O(y){return typeof y=="number"}i.isNumber=O;function R(y){return typeof y=="string"}i.isString=R;function K(y){return typeof y=="symbol"}i.isSymbol=K;function j(y){return y===void 0}i.isUndefined=j;function G(y){return J(y)&&l2(y)==="[object RegExp]"}i.isRegExp=G;function J(y){return typeof y=="object"&&y!==null}i.isObject=J;function h2(y){return J(y)&&l2(y)==="[object Date]"}i.isDate=h2;function a2(y){return J(y)&&(l2(y)==="[object Error]"||y instanceof Error)}i.isError=a2;function N(y){return typeof y=="function"}i.isFunction=N;function m2(y){return y===null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||typeof y=="symbol"||typeof y=="undefined"}i.isPrimitive=m2,i.isBuffer=F6;function l2(y){return Object.prototype.toString.call(y)}function x2(y){return y<10?"0"+y.toString(10):y.toString(10)}var E2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f2(){var y=new Date,w=[x2(y.getHours()),x2(y.getMinutes()),x2(y.getSeconds())].join(":");return[y.getDate(),E2[y.getMonth()],w].join(" ")}i.log=function(){console.log("%s - %s",f2(),i.format.apply(i,arguments))},i.inherits=H6,i._extend=function(y,w){if(!w||!J(w))return y;for(var M=Object.keys(w),Q=M.length;Q--;)y[M[Q]]=w[M[Q]];return y};function B2(y,w){return Object.prototype.hasOwnProperty.call(y,w)}})(X4);var B6={},Z6=process.platform==="win32",s3=X4;function Ln(i,n){for(var e=[],t=0;t<i.length;t++){var o=i[t];!o||o==="."||(o===".."?e.length&&e[e.length-1]!==".."?e.pop():n&&e.push(".."):e.push(o))}return e}function en(i){for(var n=i.length-1,e=0;e<=n&&!i[e];e++);for(var t=n;t>=0&&!i[t];t--);return e===0&&t===n?i:e>t?[]:i.slice(e,t+1)}var G4=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,U6=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,q2={};function Rn(i){var n=G4.exec(i),e=(n[1]||"")+(n[2]||""),t=n[3]||"",o=U6.exec(t),h=o[1],u=o[2],l=o[3];return[e,h,u,l]}function k0(i){var n=G4.exec(i),e=n[1]||"",t=!!e&&e[1]!==":";return{device:e,isUnc:t,isAbsolute:t||!!n[2],tail:n[3]}}function K4(i){return"\\\\"+i.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}q2.resolve=function(){for(var i="",n="",e=!1,t=arguments.length-1;t>=-1;t--){var o;if(t>=0?o=arguments[t]:i?(o=B6["="+i],(!o||o.substr(0,3).toLowerCase()!==i.toLowerCase()+"\\")&&(o=i+"\\")):o=process.cwd(),s3.isString(o)){if(!o)continue}else throw new TypeError("Arguments to path.resolve must be strings");var h=k0(o),u=h.device,l=h.isUnc,s=h.isAbsolute,g=h.tail;if(!(u&&i&&u.toLowerCase()!==i.toLowerCase())&&(i||(i=u),e||(n=g+"\\"+n,e=s),i&&e))break}return l&&(i=K4(i)),n=Ln(n.split(/[\\\/]+/),!e).join("\\"),i+(e?"\\":"")+n||"."};q2.normalize=function(i){var n=k0(i),e=n.device,t=n.isUnc,o=n.isAbsolute,h=n.tail,u=/[\\\/]$/.test(h);return h=Ln(h.split(/[\\\/]+/),!o).join("\\"),!h&&!o&&(h="."),h&&u&&(h+="\\"),t&&(e=K4(e)),e+(o?"\\":"")+h};q2.isAbsolute=function(i){return k0(i).isAbsolute};q2.join=function(){for(var i=[],n=0;n<arguments.length;n++){var e=arguments[n];if(!s3.isString(e))throw new TypeError("Arguments to path.join must be strings");e&&i.push(e)}var t=i.join("\\");return/^[\\\/]{2}[^\\\/]/.test(i[0])||(t=t.replace(/^[\\\/]{2,}/,"\\")),q2.normalize(t)};q2.relative=function(i,n){i=q2.resolve(i),n=q2.resolve(n);for(var e=i.toLowerCase(),t=n.toLowerCase(),o=en(n.split("\\")),h=en(e.split("\\")),u=en(t.split("\\")),l=Math.min(h.length,u.length),s=l,g=0;g<l;g++)if(h[g]!==u[g]){s=g;break}if(s==0)return n;for(var a=[],g=s;g<h.length;g++)a.push("..");return a=a.concat(o.slice(s)),a.join("\\")};q2._makeLong=function(i){if(!s3.isString(i))return i;if(!i)return"";var n=q2.resolve(i);return/^[a-zA-Z]\:\\/.test(n)?"\\\\?\\"+n:/^\\\\[^?.]/.test(n)?"\\\\?\\UNC\\"+n.substring(2):i};q2.dirname=function(i){var n=Rn(i),e=n[0],t=n[1];return!e&&!t?".":(t&&(t=t.substr(0,t.length-1)),e+t)};q2.basename=function(