2025-01-09 13:42:21 +08:00
|
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BA3gShnI.js","assets/localeText-BzleuEA0.js","assets/message-DtZFbrLn.js","assets/dayjs.min-BjPotxO2.js","assets/message-CmGi0ZIz.css","assets/index-BKNwSldE.css","assets/configurationList-BjpbRiKk.js","assets/configurationList-CWcGXYWr.css","assets/settings-gt4mDChU.js","assets/vue-datepicker-BkkJgrai.js","assets/settings-H5PFVa1m.css","assets/ping-A3_o71z5.js","assets/osmap-DVGZjOTw.js","assets/osmap-CoctJCk_.css","assets/ping-DojRH9NX.css","assets/traceroute-B2_DxQ8J.js","assets/traceroute-C5JbTTY4.css","assets/newConfiguration-yD1ha6EB.js","assets/index-L60y6kc9.js","assets/restoreConfiguration-CNLpbEQ0.js","assets/restoreConfiguration-C77qni2g.css","assets/peerList-CdVKGm4O.js","assets/peerList-DOs68o4t.css","assets/peerCreate-C_kVczbb.js","assets/peerCreate-zJfMKvAE.css","assets/signin-CQjLz4Oc.js","assets/signin-wzAxJYhM.css","assets/setup-0Fv0uwYK.js","assets/totp-Cu3HbJo3.js","assets/browser-CjSdxGTc.js","assets/share-CUg1xfPb.js","assets/share-B4McccvP.css"])))=>i.map(i=>d[i]);
|
2024-11-08 16:13:47 +08:00
|
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var vg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Eg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}var yg={exports:{}},qe="top",nt="bottom",st="right",ze="left",Kr="auto",fs=[qe,nt,st,ze],On="start",es="end",fc="clippingParents",uo="viewport",Kn="popper",dc="reference",Bi=fs.reduce(function(e,t){return e.concat([t+"-"+On,t+"-"+es])},[]),fo=[].concat(fs,[Kr]).reduce(function(e,t){return e.concat([t,t+"-"+On,t+"-"+es])},[]),hc="beforeRead",pc="read",gc="afterRead",mc="beforeMain",_c="main",vc="afterMain",Ec="beforeWrite",yc="write",bc="afterWrite",Ac=[hc,pc,gc,mc,_c,vc,Ec,yc,bc];function Nt(e){return e?(e.nodeName||"").toLowerCase():null}function rt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xn(e){var t=rt(e).Element;return e instanceof t||e instanceof Element}function ct(e){var t=rt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ho(e){if(typeof ShadowRoot>"u")return!1;var t=rt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bg(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},o=t.elements[n];!ct(o)||!Nt(o)||(Object.assign(o.style,s),Object.keys(r).forEach(function(a){var l=r[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Ag(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var r=t.elements[s],o=t.attributes[s]||{},a=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),l=a.reduce(function(c,d){return c[d]="",c},{});!ct(r)||!Nt(r)||(Object.assign(r.style,l),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}}const po={name:"applyStyles",enabled:!0,phase:"write",fn:bg,effect:Ag,requires:["computeStyles"]};function Ot(e){return e.split("-")[0]}var Tn=Math.max,Dr=Math.min,ts=Math.round;function ji(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Tc(){return!/^((?!chrome|android).)*safari/i.test(ji())}function ns(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),r=1,o=1;t&&ct(e)&&(r=e.offsetWidth>0&&ts(s.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ts(s.height)/e.offsetHeight||1);var a=xn(e)?rt(e):window,l=a.visualViewport,c=!Tc()&&n,d=(s.left+(c&&l?l.offsetLeft:0))/r,f=(s.top+(c&&l?l.offsetTop:0))/o,h=s.width/r,p=s.height/o;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function go(e){var t=ns(e),n=e.offsetWidth,s=
|
2024-10-04 16:58:47 +08:00
|
|
|
* Bootstrap v5.3.3 (https://getbootstrap.com/)
|
|
|
|
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
2024-03-21 02:03:08 -04:00
|
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
2024-11-08 16:13:47 +08:00
|
|
|
*/(function(e,t){(function(n,s){e.exports=s(cm)})(vg,function(n){function s(m){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const u in m)if(u!=="default"){const v=Object.getOwnPropertyDescriptor(m,u);Object.defineProperty(i,u,v.get?v:{enumerable:!0,get:()=>m[u]})}}return i.default=m,Object.freeze(i)}const r=s(n),o=new Map,a={set(m,i,u){o.has(m)||o.set(m,new Map);const v=o.get(m);if(!v.has(i)&&v.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(v.keys())[0]}.`);return}v.set(i,u)},get(m,i){return o.has(m)&&o.get(m).get(i)||null},remove(m,i){if(!o.has(m))return;const u=o.get(m);u.delete(i),u.size===0&&o.delete(m)}},l=1e6,c=1e3,d="transitionend",f=m=>(m&&window.CSS&&window.CSS.escape&&(m=m.replace(/#([^\s"#']+)/g,(i,u)=>`#${CSS.escape(u)}`)),m),h=m=>m==null?`${m}`:Object.prototype.toString.call(m).match(/\s([a-z]+)/i)[1].toLowerCase(),p=m=>{do m+=Math.floor(Math.random()*l);while(document.getElementById(m));return m},E=m=>{if(!m)return 0;let{transitionDuration:i,transitionDelay:u}=window.getComputedStyle(m);const v=Number.parseFloat(i),I=Number.parseFloat(u);return!v&&!I?0:(i=i.split(",")[0],u=u.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(u))*c)},x=m=>{m.dispatchEvent(new Event(d))},C=m=>!m||typeof m!="object"?!1:(typeof m.jquery<"u"&&(m=m[0]),typeof m.nodeType<"u"),D=m=>C(m)?m.jquery?m[0]:m:typeof m=="string"&&m.length>0?document.querySelector(f(m)):null,P=m=>{if(!C(m)||m.getClientRects().length===0)return!1;const i=getComputedStyle(m).getPropertyValue("visibility")==="visible",u=m.closest("details:not([open])");if(!u)return i;if(u!==m){const v=m.closest("summary");if(v&&v.parentNode!==u||v===null)return!1}return i},V=m=>!m||m.nodeType!==Node.ELEMENT_NODE||m.classList.contains("disabled")?!0:typeof m.disabled<"u"?m.disabled:m.hasAttribute("disabled")&&m.getAttribute("disabled")!=="false",k=m=>{if(!document.documentElement.attachShadow)return null;if(typeof m.getRootNode=="function"){const i=m.getRootNode();return i instanceof ShadowRoot?i:null}return m instanceof ShadowRoot?m:m.parentNode?k(m.parentNode):null},M=()=>{},b=m=>{m.offsetHeight},y=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,S=[],T=m=>{document.readyState==="loading"?(S.length||document.addEventListener("DOMContentLoaded",()=>{for(const i of S)i()}),S.push(m)):m()},A=()=>document.documentElement.dir==="rtl",w=m=>{T(()=>{const i=y();if(i){const u=m.NAME,v=i.fn[u];i.fn[u]=m.jQueryInterface,i.fn[u].Constructor=m,i.fn[u].noConflict=()=>(i.fn[u]=v,m.jQueryInterface)}})},j=(m,i=[],u=m)=>typeof m=="function"?m(...i):u,B=(m,i,u=!0)=>{if(!u){j(m);return}const I=E(i)+5;let Y=!1;const U=({target:le})=>{le===i&&(Y=!0,i.removeEventListener(d,U),j(m))};i.addEventListener(d,U),setTimeout(()=>{Y||x(i)},I)},Q=(m,i,u,v)=>{const I=m.length;let Y=m.indexOf(i);return Y===-1?!u&&v?m[I-1]:m[0]:(Y+=u?1:-1,v&&(Y=(Y+I)%I),m[Math.max(0,Math.min(Y,I-1))])},oe=/[^.]*(?=\..*)\.|.*/,he=/\..*/,te=/::\d+$/,Z={};let ce=1;const Ce={mouseenter:"mouseover",mouseleave:"mouseout"},He=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function De(m,i){return i&&`${i}::${ce++}`||m.uidEvent||ce++}function Ae(m){const i=De(m);return m.uidEvent=i,Z[i]=Z[i]||{},Z[i]}function et(m,i){return function u(v){return ge(v,{delegateTarget:m}),u.oneOff&&$.off(m,v.type,i),i.apply(m,[v])}}function Be(m,i,u){return function v(I){const Y=m.querySelectorAll(i);for(let{target:U}=I;U&&U!==this;U=U.parentNode)for(const le of Y)if(le===U)return ge(I,{delegateTarget:U}),v.oneOff&&$.of
|
2024-10-04 16:58:47 +08:00
|
|
|
* @vue/shared v3.5.11
|
2024-06-18 03:16:42 +08:00
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
**//*! #__NO_SIDE_EFFECTS__ */function To(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},qn=[],xt=()=>{},um=()=>!1,Yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wo=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fm=Object.prototype.hasOwnProperty,pe=(e,t)=>fm.call(e,t),ne=Array.isArray,zn=e=>Ys(e)==="[object Map]",ds=e=>Ys(e)==="[object Set]",za=e=>Ys(e)==="[object Date]",ie=e=>typeof e=="function",be=e=>typeof e=="string",$t=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Pc=e=>(ve(e)||ie(e))&&ie(e.then)&&ie(e.catch),Mc=Object.prototype.toString,Ys=e=>Mc.call(e),dm=e=>Ys(e).slice(8,-1),kc=e=>Ys(e)==="[object Object]",So=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xs=To(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},hm=/-(\w)/g,ht=Gr(e=>e.replace(hm,(t,n)=>n?n.toUpperCase():"")),pm=/\B([A-Z])/g,an=Gr(e=>e.replace(pm,"-$1").toLowerCase()),qr=Gr(e=>e.charAt(0).toUpperCase()+e.slice(1)),wi=Gr(e=>e?`on${qr(e)}`:""),nn=(e,t)=>!Object.is(e,t),Cr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Vc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fc=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let Xa;const Hc=()=>Xa||(Xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zr(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=be(s)?vm(s):zr(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(be(e)||ve(e))return e}const gm=/;(?![^(]*\))/g,mm=/:([^]+)/,_m=/\/\*[^]*?\*\//g;function vm(e){const t={};return e.replace(_m,"").split(gm).forEach(n=>{if(n){const s=n.split(mm);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Xr(e){let t="";if(be(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const s=Xr(e[n]);s&&(t+=s+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function qy(e){if(!e)return null;let{class:t,style:n}=e;return t&&!be(t)&&(e.class=Xr(t)),n&&(e.style=zr(n)),e}const Em="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ym=To(Em);function Bc(e){return!!e||e===""}function bm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Nn(e[s],t[s]);return n}function Nn(e,t){if(e===t)return!0;let n=za(e),s=za(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=$t(e),s=$t(t),n||s)return e===t;if(n=ne(e),s=ne(t),n||s)return n&&s?bm(e,t):!1;if(n=ve(e),s=ve(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!Nn(e[a],t[a]))return!1}}return String(e)===String(t)}function Oo(e,t){return e.findIndex(n=>Nn(n,t))}const jc=e=>!!(e&&e.__v_isRef===!0),Am=e=>be(e)?e:e==null?"":ne(e)||ve(e)&&(e.toString===Mc||!ie(e.toString))?jc(e)?Am(e.value):JSON.stringify(e,Kc,2):String(e),Kc=(e,t)=>jc(t)?Kc(e,t.value):zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ci(s,o)+" =>"]=r,n),{})}:ds(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ci(n))}:$t(t)?Ci(t):ve(t)&&!ne(t)&&!kc(t)?String(t):t,Ci=(e,t="")=>{var n;return $t(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
2024-10-04 16:58:47 +08:00
|
|
|
* @vue/reactivity v3.5.11
|
2024-06-18 03:16:42 +08:00
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
**/let Ye;class Wc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Uc(e){return new Wc(e)}function Yc(){return Ye}function Tm(e,t=!1){Ye&&Ye.cleanups.push(e)}let Ee;const Si=new WeakSet;class Gc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ye&&Ye.active&&Ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Si.has(this)&&(Si.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qa(this),Xc(this);const t=Ee,n=Et;Ee=this,Et=!0;try{return this.fn()}finally{Qc(this),Ee=t,Et=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$o(t);this.deps=this.depsTail=void 0,Qa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Si.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wi(this)&&this.run()}get dirty(){return Wi(this)}}let qc=0,Ns,$s;function zc(e,t=!1){if(e.flags|=8,t){e.next=$s,$s=e;return}e.next=Ns,Ns=e}function xo(){qc++}function No(){if(--qc>0)return;if($s){let t=$s;for($s=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ns;){let t=Ns;for(Ns=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Xc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),$o(s),wm(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Wi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ks))return;e.globalVersion=ks;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Wi(e)){e.flags&=-3;return}const n=Ee,s=Et;Ee=e,Et=!0;try{Xc(e);const r=e.fn(e._value);(t.version===0||nn(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ee=n,Et=s,Qc(e),e.flags&=-3}}function $o(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s),!n.subs&&n.computed){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)$o(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function wm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Et=!0;const Zc=[];function ln(){Zc.push(Et),Et=!1}function cn(){const e=Zc.pop();Et=e===void 0?!0:e}function Qa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ee;Ee=void 0;try{t()}finally{Ee=n}}}let ks=0;class Cm{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Do{constructor(t){this.compute
|
2024-10-04 16:58:47 +08:00
|
|
|
* @vue/runtime-core v3.5.11
|
2024-06-18 03:16:42 +08:00
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
**/function qs(e,t,n,s){try{return s?e(...s):e()}catch(r){hs(r,t,n)}}function yt(e,t,n,s){if(ie(e)){const r=qs(e,t,n,s);return r&&Pc(r)&&r.catch(o=>{hs(o,t,n)}),r}if(ne(e)){const r=[];for(let o=0;o<e.length;o++)r.push(yt(e[o],t,n,s));return r}}function hs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||_e;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,d)===!1)return}l=l.parent}if(o){ln(),qs(o,null,10,[e,c,d]),cn();return}}t_(e,n,r,s,a)}function t_(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ge=[];let wt=-1;const Xn=[];let Xt=null,Wn=0;const hu=Promise.resolve();let Pr=null;function ei(e){const t=Pr||hu;return e?t.then(this?e.bind(this):e):t}function n_(e){let t=wt+1,n=Ge.length;for(;t<n;){const s=t+n>>>1,r=Ge[s],o=Fs(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function ko(e){if(!(e.flags&1)){const t=Fs(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Fs(n)?Ge.push(e):Ge.splice(n_(t),0,e),e.flags|=1,pu()}}function pu(){Pr||(Pr=hu.then(mu))}function Yi(e){ne(e)?Xn.push(...e):Xt&&e.id===-1?Xt.splice(Wn+1,0,e):e.flags&1||(Xn.push(e),e.flags|=1),pu()}function sl(e,t,n=wt+1){for(;n<Ge.length;n++){const s=Ge[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ge.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function gu(e){if(Xn.length){const t=[...new Set(Xn)].sort((n,s)=>Fs(n)-Fs(s));if(Xn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Wn=0;Wn<Xt.length;Wn++){const n=Xt[Wn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Wn=0}}const Fs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mu(e){try{for(wt=0;wt<Ge.length;wt++){const t=Ge[wt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),qs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;wt<Ge.length;wt++){const t=Ge[wt];t&&(t.flags&=-2)}wt=-1,Ge.length=0,gu(),Pr=null,(Ge.length||Xn.length)&&mu()}}let Ne=null,_u=null;function Mr(e){const t=Ne;return Ne=e,_u=e&&e.type.__scopeId||null,t}function Un(e,t=Ne,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&_l(-1);const o=Mr(t);let a;try{a=e(...r)}finally{Mr(o),s._d&&_l(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Xy(e,t){if(Ne===null)return e;const n=ri(Ne),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,l,c=_e]=t[r];o&&(ie(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(a),s.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function En(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];o&&(l.oldValue=o[a].value);let c=l.dir[s];c&&(ln(),yt(c,n,8,[e.el,l,e,t]),cn())}}const vu=Symbol("_vte"),Eu=e=>e.__isTeleport,Ds=e=>e&&(e.disabled||e.disabled===""),s_=e=>e&&(e.defer||e.defer===""),rl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,il=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Gi=(e,t)=>{const n=e&&e.to;return be(n)?t?t(n):null:n},r_={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,a,l,c,d){const{mc:f,pc:h,pbc:p,o:{insert:E,querySelector:x,createText:C,createComment:D}}=d,P=Ds(t.props);let{shapeFlag:V,children:k,dynamicChildren:M}=t;if(e==null){const b=t.el=C(""),y=t.anchor=C("");E(b,n,s),E(y,n,s);const S=(A,w)=>{V&16&&(r&&r.isCE&&(r.ce._teleportTarget=A),f(k,A,w,r,o,a,l,c))},T=()=>{const A=t.target=Gi(t.props,x),w=yu(A,t,C,E);A&&(a!=="svg"&&rl(A)?a="svg":a!=="mathml"&&il(A)&&(a="mathml"),P||(S(A,w),Sr(t)))};P&&(S(n,y),Sr(t)),s_(t.props)?Je(T,o):T()}else{t.el=e.el,t.targetStart=e.targetStart;const b=t.anchor=e.anchor,y=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=Ds(e.props),A=T?n:y,w=T?b:S;if(a==="svg"||rl(y)?a="svg":(a==="mathml"||il(y))&&(a="mathml"),M?(p(e.dynamicChildren,M,A,r,o,a,l),Uo(e,t,!0)):c||h(e,t,A,w,r,o,a,l,!1),P)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Er(t,n,b,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Gi(t.props,x);j&&Er(t,j,null,d,0)}else T&&Er(t,y,S,d,1);Sr(t)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:a,children:l,anchor:c,targetStart:d,targetAnchor:
|
2024-10-04 16:58:47 +08:00
|
|
|
* @vue/runtime-dom v3.5.11
|
2024-06-18 03:16:42 +08:00
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
**/let no;const yl=typeof window<"u"&&window.trustedTypes;if(yl)try{no=yl.createPolicy("vue",{createHTML:e=>e})}catch{}const sf=no?e=>no.createHTML(e):e=>e,mv="http://www.w3.org/2000/svg",_v="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,bl=Mt&&Mt.createElement("template"),vv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Mt.createElementNS(mv,e):t==="mathml"?Mt.createElementNS(_v,e):n?Mt.createElement(e,{is:n}):Mt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{bl.innerHTML=sf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=bl.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yt="transition",As="animation",as=Symbol("_vtc"),rf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},of=Oe({},Au,rf),Ev=e=>(e.displayName="Transition",e.props=of,e),Al=Ev((e,{slots:t})=>zo(a_,af(e),t)),bn=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tl=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function af(e){const t={};for(const B in e)B in rf||(t[B]=e[B]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:d=a,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:E=`${n}-leave-to`}=e,x=yv(r),C=x&&x[0],D=x&&x[1],{onBeforeEnter:P,onEnter:V,onEnterCancelled:k,onLeave:M,onLeaveCancelled:b,onBeforeAppear:y=P,onAppear:S=V,onAppearCancelled:T=k}=t,A=(B,Q,oe)=>{qt(B,Q?f:l),qt(B,Q?d:a),oe&&oe()},w=(B,Q)=>{B._isLeaving=!1,qt(B,h),qt(B,E),qt(B,p),Q&&Q()},j=B=>(Q,oe)=>{const he=B?S:V,te=()=>A(Q,B,oe);bn(he,[Q,te]),wl(()=>{qt(Q,B?c:o),Pt(Q,B?f:l),Tl(he)||Cl(Q,s,C,te)})};return Oe(t,{onBeforeEnter(B){bn(P,[B]),Pt(B,o),Pt(B,a)},onBeforeAppear(B){bn(y,[B]),Pt(B,c),Pt(B,d)},onEnter:j(!1),onAppear:j(!0),onLeave(B,Q){B._isLeaving=!0;const oe=()=>w(B,Q);Pt(B,h),Pt(B,p),cf(),wl(()=>{B._isLeaving&&(qt(B,h),Pt(B,E),Tl(M)||Cl(B,s,D,oe))}),bn(M,[B,oe])},onEnterCancelled(B){A(B,!1),bn(k,[B])},onAppearCancelled(B){A(B,!0),bn(T,[B])},onLeaveCancelled(B){w(B),bn(b,[B])}})}function yv(e){if(e==null)return null;if(ve(e))return[Ii(e.enter),Ii(e.leave)];{const t=Ii(e);return[t,t]}}function Ii(e){return Fc(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[as]||(e[as]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[as];n&&(n.delete(t),n.size||(e[as]=void 0))}function wl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bv=0;function Cl(e,t,n,s){const r=e._endId=++bv,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=lf(e,t);if(!a)return s();const d=a+"end";let f=0;const h=()=>{e.removeEventListener(d,p),o()},p=E=>{E.target===e&&++f>=c&&h()};setTimeout(()=>{f<c&&h()},l+1),e.addEventListener(d,p)}function lf(e,t){const n=window.getComputedStyle(e),s=x=>(n[x]||"").split(", "),r=s(`${Yt}Delay`),o=s(`${Yt}Duration`),a=Sl(r,o),l=s(`${As}Delay`),c=s(`${As}Duration`),d=Sl(l,c);let f=null,h=0,p=0;t===Yt?a>0&&(f=Yt,h=a,p=o.length
|
2024-10-04 16:58:47 +08:00
|
|
|
* pinia v2.2.4
|
|
|
|
* (c) 2024 Eduardo San Martin Morote
|
2024-03-21 02:03:08 -04:00
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
*/let mf;const ii=e=>mf=e,_f=Symbol();function ro(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Is;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Is||(Is={}));function eE(){const e=Uc(!0),t=e.run(()=>Cn({}));let n=[],s=[];const r=Zr({install(o){ii(r),r._a=o,o.provide(_f,r),o.config.globalProperties.$pinia=r,s.forEach(a=>n.push(a)),s=[]},use(o){return!this._a&&!Zv?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const vf=()=>{};function jl(e,t,n,s=vf){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&Yc()&&Tm(r),r}function jn(e,...t){e.slice().forEach(n=>{n(...t)})}const tE=e=>e(),Kl=Symbol(),ki=Symbol();function io(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];ro(r)&&ro(s)&&e.hasOwnProperty(n)&&!Te(s)&&!tn(s)?e[n]=io(r,s):e[n]=s}return e}const nE=Symbol();function sE(e){return!ro(e)||!e.hasOwnProperty(nE)}const{assign:zt}=Object;function rE(e){return!!(Te(e)&&e.effect)}function iE(e,t,n,s){const{state:r,actions:o,getters:a}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=r?r():{});const f=qm(n.state.value[e]);return zt(f,o,Object.keys(a||{}).reduce((h,p)=>(h[p]=Zr(lt(()=>{ii(n);const E=n._s.get(e);return a[p].call(E,E)})),h),{}))}return c=Ef(e,d,t,n,s,!0),c}function Ef(e,t,n={},s,r,o){let a;const l=zt({actions:{}},n),c={deep:!0};let d,f,h=[],p=[],E;const x=s.state.value[e];!o&&!x&&(s.state.value[e]={}),Cn({});let C;function D(T){let A;d=f=!1,typeof T=="function"?(T(s.state.value[e]),A={type:Is.patchFunction,storeId:e,events:E}):(io(s.state.value[e],T),A={type:Is.patchObject,payload:T,storeId:e,events:E});const w=C=Symbol();ei().then(()=>{C===w&&(d=!0)}),f=!0,jn(h,A,s.state.value[e])}const P=o?function(){const{state:A}=n,w=A?A():{};this.$patch(j=>{zt(j,w)})}:vf;function V(){a.stop(),h=[],p=[],s._s.delete(e)}const k=(T,A="")=>{if(Kl in T)return T[ki]=A,T;const w=function(){ii(s);const j=Array.from(arguments),B=[],Q=[];function oe(Z){B.push(Z)}function he(Z){Q.push(Z)}jn(p,{args:j,name:w[ki],store:b,after:oe,onError:he});let te;try{te=T.apply(this&&this.$id===e?this:b,j)}catch(Z){throw jn(Q,Z),Z}return te instanceof Promise?te.then(Z=>(jn(B,Z),Z)).catch(Z=>(jn(Q,Z),Promise.reject(Z))):(jn(B,te),te)};return w[Kl]=!0,w[ki]=A,w},M={_p:s,$id:e,$onAction:jl.bind(null,p),$patch:D,$reset:P,$subscribe(T,A={}){const w=jl(h,T,A.detached,()=>j()),j=a.run(()=>Jn(()=>s.state.value[e],B=>{(A.flush==="sync"?f:d)&&T({storeId:e,type:Is.direct,events:E},B)},zt({},c,A)));return w},$dispose:V},b=Gs(M);s._s.set(e,b);const S=(s._a&&s._a.runWithContext||tE)(()=>s._e.run(()=>(a=Uc()).run(()=>t({action:k}))));for(const T in S){const A=S[T];if(Te(A)&&!rE(A)||tn(A))o||(x&&sE(A)&&(Te(A)?A.value=x[T]:io(A,x[T])),s.state.value[e][T]=A);else if(typeof A=="function"){const w=k(A,T);S[T]=w,l.actions[T]=A}}return zt(b,S),zt(fe(b),S),Object.defineProperty(b,"$state",{get:()=>s.state.value[e],set:T=>{D(A=>{zt(A,T)})}}),s._p.forEach(T=>{zt(b,a.run(()=>T({store:b,app:s._a,pinia:s,options:l})))}),x&&o&&n.hydrate&&n.hydrate(b.$state,x),d=!0,f=!0,b}function yf(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function a(l,c){const d=O_();return l=l||(d?ft(_f,null):null),l&&ii(l),l=mf,l._s.has(s)||(o?Ef(s,t,r,l):iE(s,r,l)),l._s.get(s)}return a.$id=s,a}const oE="/static/app/dist/assets/logo-XE_HdY0J.png";/*!
|
2024-10-04 16:58:47 +08:00
|
|
|
* vue-router v4.4.5
|
|
|
|
* (c) 2024 Eduardo San Martin Morote
|
2024-03-21 02:03:08 -04:00
|
|
|
* @license MIT
|
2024-11-08 16:13:47 +08:00
|
|
|
*/const Yn=typeof document<"u";function bf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function aE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bf(e.default)}const me=Object.assign;function Vi(e,t){const n={};for(const s in t){const r=t[s];n[s]=bt(r)?r.map(e):e(r)}return n}const Ps=()=>{},bt=Array.isArray,Af=/#/g,lE=/&/g,cE=/\//g,uE=/=/g,fE=/\?/g,Tf=/\+/g,dE=/%5B/g,hE=/%5D/g,wf=/%5E/g,pE=/%60/g,Cf=/%7B/g,gE=/%7C/g,Sf=/%7D/g,mE=/%20/g;function Xo(e){return encodeURI(""+e).replace(gE,"|").replace(dE,"[").replace(hE,"]")}function _E(e){return Xo(e).replace(Cf,"{").replace(Sf,"}").replace(wf,"^")}function oo(e){return Xo(e).replace(Tf,"%2B").replace(mE,"+").replace(Af,"%23").replace(lE,"%26").replace(pE,"`").replace(Cf,"{").replace(Sf,"}").replace(wf,"^")}function vE(e){return oo(e).replace(uE,"%3D")}function EE(e){return Xo(e).replace(Af,"%23").replace(fE,"%3F")}function yE(e){return e==null?"":EE(e).replace(cE,"%2F")}function Ks(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bE=/\/$/,AE=e=>e.replace(bE,"");function Fi(e,t,n="/"){let s,r={},o="",a="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),a=t.slice(l,t.length)),s=SE(s??t,n),{fullPath:s+(o&&"?")+o+a,path:s,query:r,hash:Ks(a)}}function TE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Wl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wE(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&cs(t.matched[s],n.matched[r])&&Of(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function cs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Of(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!CE(e[n],t[n]))return!1;return!0}function CE(e,t){return bt(e)?Ul(e,t):bt(t)?Ul(t,e):e===t}function Ul(e,t){return bt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function SE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,a,l;for(a=0;a<s.length;a++)if(l=s[a],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(a).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ws;(function(e){e.pop="pop",e.push="push"})(Ws||(Ws={}));var Ms;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ms||(Ms={}));function OE(e){if(!e)if(Yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),AE(e)}const xE=/^[^#]+#/;function NE(e,t){return e.replace(xE,"#")+t}function $E(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const oi=()=>({left:window.scrollX,top:window.scrollY});function DE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=$E(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Yl(e,t){return(history.state?history.state.position-t:-1)+e}const ao=new Map;function LE(e,t){ao.set(e,t)}function RE(e){const t=ao.get(e);return ao.delete(e),t}let IE=()=>location.protocol+"//"+location.host;function xf(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Wl(c,"")}return Wl(n,e)+s+r}function PE(e,t,n,s){let r=[],o=[],a=null;const l=({state:p})=>{const E=xf(e,location),x=n.value,C=t.value;let D=0;if(p){if(n.value=E,t.value=p,a&&a===x){a=null;return}D=C?p.position
|
2024-04-03 01:16:56 -04:00
|
|
|
(?:
|
2024-11-03 20:45:59 +08:00
|
|
|
(?:${Se}:){7}(?:${Se}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
|
|
(?:${Se}:){6}(?:${mt}|:${Se}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
|
|
(?:${Se}:){5}(?::${mt}|(?::${Se}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
|
|
(?:${Se}:){4}(?:(?::${Se}){0,1}:${mt}|(?::${Se}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
|
|
(?:${Se}:){3}(?:(?::${Se}){0,2}:${mt}|(?::${Se}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
|
|
(?:${Se}:){2}(?:(?::${Se}){0,3}:${mt}|(?::${Se}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
|
|
(?:${Se}:){1}(?:(?::${Se}){0,4}:${mt}|(?::${Se}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
|
|
(?::(?:(?::${Se}){0,5}:${mt}|(?::${Se}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
2024-04-03 01:16:56 -04:00
|
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
2025-01-09 13:42:21 +08:00
|
|
|
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),hy=new RegExp(`(?:^${mt}$)|(?:^${li}$)`),py=new RegExp(`^${mt}$`),gy=new RegExp(`^${li}$`),ci=e=>e&&e.exact?hy:new RegExp(`(?:${en(e)}${mt}${en(e)})|(?:${en(e)}${li}${en(e)})`,"g");ci.v4=e=>e&&e.exact?py:new RegExp(`${en(e)}${mt}${en(e)}`,"g");ci.v6=e=>e&&e.exact?gy:new RegExp(`${en(e)}${li}${en(e)}`,"g");const If={exact:!1},Pf=`${ci.v4().source}\\/(3[0-2]|[12]?[0-9])`,Mf=`${ci.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`,my=new RegExp(`^${Pf}$`),_y=new RegExp(`^${Mf}$`),vy=({exact:e}=If)=>e?my:new RegExp(Pf,"g"),Ey=({exact:e}=If)=>e?_y:new RegExp(Mf,"g"),kf=vy({exact:!0}),Vf=Ey({exact:!0}),Jo=e=>kf.test(e)?4:Vf.test(e)?6:0;Jo.v4=e=>kf.test(e);Jo.v6=e=>Vf.test(e);const kt=e=>{const t=un();if(t.Locale===null)return e;const s=Object.keys(t.Locale).filter(r=>e.match(new RegExp("^"+r+"$","gi"))!==null);return s.length===0||s.length>1||t.Locale[s[0]].length===0?e:e.replace(new RegExp(s[0],"gi"),t.Locale[s[0]])},yy=yf("WireguardConfigurationsStore",{state:()=>({Configurations:void 0,searchString:"",ConfigurationListInterval:void 0,PeerScheduleJobs:{dropdowns:{Field:[{display:kt("Total Received"),value:"total_receive",unit:"GB",type:"number"},{display:kt("Total Sent"),value:"total_sent",unit:"GB",type:"number"},{display:kt("Total Usage"),value:"total_data",unit:"GB",type:"number"},{display:kt("Date"),value:"date",type:"date"}],Operator:[{display:kt("larger than"),value:"lgt"}],Action:[{display:kt("Restrict Peer"),value:"restrict"},{display:kt("Delete Peer"),value:"delete"}]}}}),actions:{async getConfigurations(){await jr("/api/getWireguardConfigurations",{},e=>{e.status&&(this.Configurations=e.data)})},regexCheckIP(e){return/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/.test(e)},checkCIDR(e){return Jo(e)!==0},checkWGKeyLength(e){return console.log(e),/^[A-Za-z0-9+/]{43}=?=?$/.test(e)}}}),by=async()=>{let e=!1;return await jr("/api/validateAuthentication",{},t=>{e=t.status}),e},ps=ay({history:VE(),scrollBehavior(){document.querySelector("main")!==null&&document.querySelector("main").scrollTo({top:0})},routes:[{name:"Index",path:"/",component:()=>Qe(()=>import("./index-BA3gShnI.js"),__vite__mapDeps([0,1,2,3,4,5])),meta:{requiresAuth:!0},children:[{name:"Configuration List",path:"",component:()=>Qe(()=>import("./configurationList-BjpbRiKk.js"),__vite__mapDeps([6,1,7])),meta:{title:"WireGuard Configurations"}},{name:"Settings",path:"/settings",component:()=>Qe(()=>import("./settings-gt4mDChU.js"),__vite__mapDeps([8,1,3,9,10])),meta:{title:"Settings"}},{path:"/ping",name:"Ping",component:()=>Qe(()=>import("./ping-A3_o71z5.js"),__vite__mapDeps([11,1,12,13,14]))},{path:"/traceroute",name:"Traceroute",component:()=>Qe(()=>import("./traceroute-B2_DxQ8J.js"),__vite__mapDeps([15,12,13,1,16]))},{name:"New Configuration",path:"/new_configuration",component:()=>Qe(()=>import("./newConfiguration-yD1ha6EB.js"),__vite__mapDeps([17,18,1])),meta:{title:"Ne
|
2024-11-05 19:43:47 +08:00
|
|
|
*
|
|
|
|
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
2024-11-08 16:13:47 +08:00
|
|
|
*/(function(){function e(b){var y=new Float64Array(16);if(b)for(var S=0;S<b.length;++S)y[S]=b[S];return y}function t(b,y){for(var S,T=e(),A=e(),w=0;w<16;++w)A[w]=y[w];n(A),n(A),n(A);for(var j=0;j<2;++j){T[0]=A[0]-65517;for(var w=1;w<15;++w)T[w]=A[w]-65535-(T[w-1]>>16&1),T[w-1]&=65535;T[15]=A[15]-32767-(T[14]>>16&1),S=T[15]>>16&1,T[14]&=65535,s(A,T,1-S)}for(var w=0;w<16;++w)b[2*w]=A[w]&255,b[2*w+1]=A[w]>>8}function n(b){for(var y=0;y<16;++y)b[(y+1)%16]+=(y<15?1:38)*Math.floor(b[y]/65536),b[y]&=65535}function s(b,y,S){for(var T,A=~(S-1),w=0;w<16;++w)T=A&(b[w]^y[w]),b[w]^=T,y[w]^=T}function r(b,y,S){for(var T=0;T<16;++T)b[T]=y[T]+S[T]|0}function o(b,y,S){for(var T=0;T<16;++T)b[T]=y[T]-S[T]|0}function a(b,y,S){for(var T=new Float64Array(31),A=0;A<16;++A)for(var w=0;w<16;++w)T[A+w]+=y[A]*S[w];for(var A=0;A<15;++A)T[A]+=38*T[A+16];for(var A=0;A<16;++A)b[A]=T[A];n(b),n(b)}function l(b,y){for(var S=e(),T=0;T<16;++T)S[T]=y[T];for(var T=253;T>=0;--T)a(S,S,S),T!==2&&T!==4&&a(S,S,y);for(var T=0;T<16;++T)b[T]=S[T]}function c(b){b[31]=b[31]&127|64,b[0]&=248}function d(b){for(var y,S=new Uint8Array(32),T=e([1]),A=e([9]),w=e(),j=e([1]),B=e(),Q=e(),oe=e([56129,1]),he=e([9]),te=0;te<32;++te)S[te]=b[te];c(S);for(var te=254;te>=0;--te)y=S[te>>>3]>>>(te&7)&1,s(T,A,y),s(w,j,y),r(B,T,w),o(T,T,w),r(w,A,j),o(A,A,j),a(j,B,B),a(Q,T,T),a(T,w,T),a(w,A,B),r(B,T,w),o(T,T,w),a(A,T,T),o(w,j,Q),a(T,w,oe),r(T,T,j),a(w,w,T),a(T,j,Q),a(j,A,he),a(A,B,B),s(T,A,y),s(w,j,y);return l(w,w),a(T,T,w),t(S,T),S}function f(){var b=new Uint8Array(32);return window.crypto.getRandomValues(b),b}function h(){var b=f();return c(b),b}function p(b,y){for(var S=Uint8Array.from([y[0]>>2&63,(y[0]<<4|y[1]>>4)&63,(y[1]<<2|y[2]>>6)&63,y[2]&63]),T=0;T<4;++T)b[T]=S[T]+65+(25-S[T]>>8&6)-(51-S[T]>>8&75)-(61-S[T]>>8&15)+(62-S[T]>>8&3)}function E(b){var y,S=new Uint8Array(44);for(y=0;y<32/3;++y)p(S.subarray(y*4),b.subarray(y*3));return p(S.subarray(y*4),Uint8Array.from([b[y*3+0],b[y*3+1],0])),S[43]=61,String.fromCharCode.apply(null,S)}function x(b){let y=window.atob(b),S=y.length,T=new Uint8Array(S);for(let w=0;w<S;w++)T[w]=y.charCodeAt(w);return new Uint8Array(T.buffer)}function C(b,y){b.push(y&255,y>>>8&255,y>>>16&255,y>>>24&255)}function D(b,y){b.push(y&255,y>>>8&255)}function P(b,y){for(var S=0;S<y.length;++S)b.push(y[S]&255)}function V(b){for(var y=unescape(encodeURIComponent(b)),S=new Uint8Array(y.length),T=0;T<y.length;++T)S[T]=y.charCodeAt(T);return S}function k(b){if(!k.table){k.table=[];for(var y=0,S=0;S<256;y=++S){for(var T=0;T<8;++T)y=y&1?3988292384^y>>>1:y>>>1;k.table[S]=y}}for(var A=-1,w=0;w<b.length;++w)A=A>>>8^k.table[(A^b[w])&255];return(A^-1)>>>0}function M(b){for(var y=[],S=[],T=0,A=0;A<b.length;++A){var w=V(b[A].fileName),j=V(b[A].file),B=k(j);C(y,67324752),D(y,20),D(y,0),D(y,0),D(y,0),D(y,0),C(y,B),C(y,j.length),C(y,j.length),D(y,w.length),D(y,0),P(y,w),P(y,j),C(S,33639248),D(S,0),D(S,20),D(S,0),D(S,0),D(S,0),D(S,0),C(S,B),C(S,j.length),C(S,j.length),D(S,w.length),D(S,0),D(S,0),D(S,0),D(S,0),C(S,32),C(S,T),P(S,w),T+=30+j.length+w.length}return P(y,S),C(y,101010256),D(y,0),D(y,0),D(y,b.length),D(y,b.length),C(y,S.length),C(y,T),D(y,0),Uint8Array.from(y)}window.wireguard={generateKeypair:function(){var b=h(),y=d(b),S=f();return{publicKey:E(y),privateKey:E(b),presharedKey:E(S)}},generatePublicKey:function(b){return b=x(b),E(d(b))},generateZipFiles:function(b,y){var S=b.data,T=M(S),A=new Blob([T],{type:"application/zip"}),w=document.createElement("a");w.download=y,w.href=URL.createObjectURL(A),w.style.display="none",document.body.appendChild(w),w.click(),document.body.removeChild(w)}}})();const Sy=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Oy={key:0,class:"navbar bg-dark sticky-top","data-bs-theme":"dark"},xy={class:"container-fluid d-flex text-body align-items-center"},Ny={key:0,class:"bi bi-list"},$y={key:1,class:"bi bi-x-lg"},Dy={__name:"App",setup(e){const t=un();t.initCrossServerConfiguration(),window.IS_WGDASHBOARD_DESKTOP&&(t.IsElectronApp=!0,t.CrossServerConfiguration.Enable=!0),Jn(t.CrossServerConfiguration,()=>{t.syncCrossServerConfigu
|