24 lines
105 KiB
JavaScript
24 lines
105 KiB
JavaScript
|
|
(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 i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
|
|||
|
|
* @vue/shared v3.5.17
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**//*! #__NO_SIDE_EFFECTS__ */function Ts(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const z={},yt=[],Le=()=>{},Po=()=>!1,Rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Os=e=>e.startsWith("onUpdate:"),fe=Object.assign,Rs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fo=Object.prototype.hasOwnProperty,q=(e,t)=>Fo.call(e,t),M=Array.isArray,_t=e=>Gt(e)==="[object Map]",An=e=>Gt(e)==="[object Set]",Zs=e=>Gt(e)==="[object Date]",$=e=>typeof e=="function",ee=e=>typeof e=="string",Ue=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",Xr=e=>(Y(e)||$(e))&&$(e.then)&&$(e.catch),Yr=Object.prototype.toString,Gt=e=>Yr.call(e),Io=e=>Gt(e).slice(8,-1),Zr=e=>Gt(e)==="[object Object]",As=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dt=Ts(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},No=/-(\w)/g,Ze=Cn(e=>e.replace(No,(t,n)=>n?n.toUpperCase():"")),jo=/\B([A-Z])/g,ht=Cn(e=>e.replace(jo,"-$1").toLowerCase()),Qr=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),zn=Cn(e=>e?`on${Qr(e)}`:""),Ye=(e,t)=>!Object.is(e,t),an=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},cs=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qs;const Pn=()=>Qs||(Qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cs(e){if(M(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ee(s)?Uo(s):Cs(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ee(e)||Y(e))return e}const Mo=/;(?![^(]*\))/g,Do=/:([^]+)/,Lo=/\/\*[^]*?\*\//g;function Uo(e){const t={};return e.replace(Lo,"").split(Mo).forEach(n=>{if(n){const s=n.split(Do);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ps(e){let t="";if(ee(e))t=e;else if(M(e))for(let n=0;n<e.length;n++){const s=Ps(e[n]);s&&(t+=s+" ")}else if(Y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bo=Ts($o);function ei(e){return!!e||e===""}function Ho(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Fn(e[s],t[s]);return n}function Fn(e,t){if(e===t)return!0;let n=Zs(e),s=Zs(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ue(e),s=Ue(t),n||s)return e===t;if(n=M(e),s=M(t),n||s)return n&&s?Ho(e,t):!1;if(n=Y(e),s=Y(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Fn(e[o],t[o]))return!1}}return String(e)===String(t)}function ko(e,t){return e.findIndex(n=>Fn(n,t))}const ti=e=>!!(e&&e.__v_isRef===!0),ne=e=>ee(e)?e:e==null?"":M(e)||Y(e)&&(e.toString===Yr||!$(e.toString))?ti(e)?ne(e.value):JSON.stringify(e,ni,2):String(e),ni=(e,t)=>ti(t)?ni(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Jn(s,i)+" =>"]=r,n),{})}:An(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Jn(n))}:Ue(t)?Jn(t):Y(t)&&!M(t)&&!Zr(t)?String(t):t,Jn=(e,t="")=>{var n;return Ue(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.17
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let he;class Vo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=he,!t&&he&&(this.index=(he.scopes||(he.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=he;try{return he=this,t()}finally{he=n}}}on(){++this._on===1&&(this.prevScope=he,he=this)}off(){this._on>0&&--this._on===0&&(he=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function qo(){return he}let X;const Gn=new WeakSet;class si{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,he&&he.active&&he.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gn.has(this)&&(Gn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ii(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,er(this),oi(this);const t=X,n=ve;X=this,ve=!0;try{return this.fn()}finally{li(this),X=t,ve=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ns(t);this.deps=this.depsTail=void 0,er(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){as(this)&&this.run()}get dirty(){return as(this)}}let ri=0,Lt,Ut;function ii(e,t=!1){if(e.flags|=8,t){e.next=Ut,Ut=e;return}e.next=Lt,Lt=e}function Fs(){ri++}function Is(){if(--ri>0)return;if(Ut){let t=Ut;for(Ut=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lt;){let t=Lt;for(Lt=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 oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function li(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ns(s),Ko(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function as(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vt)||(e.globalVersion=Vt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!as(e))))return;e.flags|=2;const t=e.dep,n=X,s=ve;X=e,ve=!0;try{oi(e);const r=e.fn(e._value);(t.version===0||Ye(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{X=n,ve=s,li(e),e.flags&=-3}}function Ns(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,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ko(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ve=!0;const ai=[];function Ke(){ai.push(ve),ve=!1}function We(){const e=ai.pop();ve=e===void 0?!0:e}function er(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=X;X=void 0;try{t()}finally{X=n}}}let Vt=0;class Wo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSu
|
|||
|
|
* @vue/runtime-core v3.5.17
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Xt(e,t,n,s){try{return s?e(...s):e()}catch(r){Nn(r,t,n)}}function $e(e,t,n,s){if($(e)){const r=Xt(e,t,n,s);return r&&Xr(r)&&r.catch(i=>{Nn(i,t,n)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push($e(e[i],t,n,s));return r}}function Nn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||z;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,f)===!1)return}l=l.parent}if(i){Ke(),Xt(i,null,10,[e,c,f]),We();return}}_l(e,n,r,s,o)}function _l(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ae=[];let Me=-1;const St=[];let Ge=null,bt=0;const _i=Promise.resolve();let _n=null;function wi(e){const t=_n||_i;return e?t.then(this?e.bind(this):e):t}function wl(e){let t=Me+1,n=ae.length;for(;t<n;){const s=t+n>>>1,r=ae[s],i=Kt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function $s(e){if(!(e.flags&1)){const t=Kt(e),n=ae[ae.length-1];!n||!(e.flags&2)&&t>=Kt(n)?ae.push(e):ae.splice(wl(t),0,e),e.flags|=1,Si()}}function Si(){_n||(_n=_i.then(Ei))}function Sl(e){M(e)?St.push(...e):Ge&&e.id===-1?Ge.splice(bt+1,0,e):e.flags&1||(St.push(e),e.flags|=1),Si()}function nr(e,t,n=Me+1){for(;n<ae.length;n++){const s=ae[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ae.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function xi(e){if(St.length){const t=[...new Set(St)].sort((n,s)=>Kt(n)-Kt(s));if(St.length=0,Ge){Ge.push(...t);return}for(Ge=t,bt=0;bt<Ge.length;bt++){const n=Ge[bt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ge=null,bt=0}}const Kt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ei(e){try{for(Me=0;Me<ae.length;Me++){const t=ae[Me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Me<ae.length;Me++){const t=ae[Me];t&&(t.flags&=-2)}Me=-1,ae.length=0,xi(),_n=null,(ae.length||St.length)&&Ei()}}let Se=null,vi=null;function wn(e){const t=Se;return Se=e,vi=e&&e.type.__scopeId||null,t}function xl(e,t=Se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&fr(-1);const i=wn(t);let o;try{o=e(...r)}finally{wn(i),s._d&&fr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Je(e,t){if(Se===null)return e;const n=Ln(Se),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=z]=t[r];i&&($(i)&&(i={mounted:i,updated:i}),i.deep&&Ve(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function it(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(Ke(),$e(c,n,8,[e.el,l,e,t]),We())}}const El=Symbol("_vte"),vl=e=>e.__isTeleport;function Bs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ti(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $t(e,t,n,s,r=!1){if(M(e)){e.forEach((x,y)=>$t(x,t&&(M(t)?t[y]:t),n,s,r));return}if(Bt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&$t(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Ln(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===z?l.refs={}:l.refs,p=l.setupState,_=V(p),T=p===z?()=>!1:x=>q(_,x);if(f!=null&&f!==c&&(ee(f)?(a[f]=null,T(f)&&(p[f]=null)):oe(f)&&(f.value=null)),$(c))Xt(c,l,12,[o,a]);else{const x=ee(c),y=oe(c);if(x||y){const m=()=>{if(e.f){const b=x?T(c)?p[c]:a[c]:c.value;r?M(b)&&Rs(b,i):M(b)?b.includes(i)||b.push(i):x?(a[c]=[i],T(c)&&(p[c]=a[c])):(c.value=[i],e.k&&(a[e.k]=c.value))}else x?(a[c]=o,T(c)&&(p[c]=o)):y&&(c.value=o,e.k&&(a[e.k]=o))};o?(m.id=-1,ye(m,n)):m()}}}Pn().requestIdleCallback;Pn().cancelIdleCallback;const Bt=e=>!!e.type.__asyncLoader,Oi=e=>e.type.__isKeepAlive;function Tl(e,t){Ri(e,"a",t)}function Ol(e,t){Ri(e,"da",t)}function Ri(e,t,n=ue){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(jn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Oi(r.parent.vnode)&&Rl(s,t,n,r),r=r.par
|
|||
|
|
* @vue/runtime-dom v3.5.17
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let ys;const mr=typeof window<"u"&&window.trustedTypes;if(mr)try{ys=mr.createPolicy("vue",{createHTML:e=>e})}catch{}const Yi=ys?e=>ys.createHTML(e):e=>e,Ac="http://www.w3.org/2000/svg",Cc="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,gr=He&&He.createElement("template"),Pc={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"?He.createElementNS(Ac,e):t==="mathml"?He.createElementNS(Cc,e):n?He.createElement(e,{is:n}):He.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{gr.innerHTML=Yi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=gr.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[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Fc=Symbol("_vtc");function Ic(e,t,n){const s=e[Fc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const br=Symbol("_vod"),Nc=Symbol("_vsh"),jc=Symbol(""),Mc=/(^|;)\s*display\s*:/;function Dc(e,t,n){const s=e.style,r=ee(n);let i=!1;if(n&&!r){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&dn(s,l,"")}else for(const o in t)n[o]==null&&dn(s,o,"");for(const o in n)o==="display"&&(i=!0),dn(s,o,n[o])}else if(r){if(t!==n){const o=s[jc];o&&(n+=";"+o),s.cssText=n,i=Mc.test(n)}}else t&&e.removeAttribute("style");br in e&&(e[br]=i?s.display:"",e[Nc]&&(s.display="none"))}const yr=/\s*!important$/;function dn(e,t,n){if(M(n))n.forEach(s=>dn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Lc(e,t);yr.test(n)?e.setProperty(ht(s),n.replace(yr,""),"important"):e[s]=n}}const _r=["Webkit","Moz","ms"],ns={};function Lc(e,t){const n=ns[t];if(n)return n;let s=Ze(t);if(s!=="filter"&&s in e)return ns[t]=s;s=Qr(s);for(let r=0;r<_r.length;r++){const i=_r[r]+s;if(i in e)return ns[t]=i}return t}const wr="http://www.w3.org/1999/xlink";function Sr(e,t,n,s,r,i=Bo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(wr,t.slice(6,t.length)):e.setAttributeNS(wr,t,n):n==null||i&&!ei(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ue(n)?String(n):n)}function xr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Yi(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ei(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function ct(e,t,n,s){e.addEventListener(t,n,s)}function Uc(e,t,n,s){e.removeEventListener(t,n,s)}const Er=Symbol("_vei");function $c(e,t,n,s,r=null){const i=e[Er]||(e[Er]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Bc(t);if(s){const f=i[t]=Vc(s,r);ct(e,l,f,c)}else o&&(Uc(e,l,o,c),i[t]=void 0)}}const vr=/(?:Once|Passive|Capture)$/;function Bc(e){let t;if(vr.test(e)){t={};let s;for(;s=e.match(vr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ht(e.slice(2)),t]}let ss=0;const Hc=Promise.resolve(),kc=()=>ss||(Hc.then(()=>ss=0),ss=Date.now());function Vc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$e(qc(s,n.value),t,5,[s])};return n.value=e,n.attached=kc(),n}function qc(e,t){if(M(t)){const
|
|||
|
|
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&su[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},jr=Symbol("internals");function Nt(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:h.isArray(e)?e.map(hn):String(e)}function iu(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const ou=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rs(e,t,n,s,r){if(h.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!h.isString(t)){if(h.isString(s))return t.indexOf(s)!==-1;if(h.isRegExp(s))return s.test(t)}}function lu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function cu(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let ge=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(l,c,f){const a=Nt(c);if(!a)throw new Error("header name must be a non-empty string");const p=h.findKey(r,a);(!p||r[p]===void 0||f===!0||f===void 0&&r[p]!==!1)&&(r[p||c]=hn(l))}const o=(l,c)=>h.forEach(l,(f,a)=>i(f,a,c));if(h.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(h.isString(t)&&(t=t.trim())&&!ou(t))o(ru(t),n);else if(h.isObject(t)&&h.isIterable(t)){let l={},c,f;for(const a of t){if(!h.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[f=a[0]]=(c=l[f])?h.isArray(c)?[...c,a[1]]:[c,a[1]]:a[1]}o(l,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=Nt(t),t){const s=h.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return iu(r);if(h.isFunction(n))return n.call(this,r,s);if(h.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nt(t),t){const s=h.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||rs(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Nt(o),o){const l=h.findKey(s,o);l&&(!n||rs(s,s[l],l,n))&&(delete s[l],r=!0)}}return h.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||rs(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return h.forEach(this,(r,i)=>{const o=h.findKey(s,i);if(o){n[o]=hn(r),delete n[i];return}const l=t?lu(i):String(i).trim();l!==i&&delete n[i],n[l]=hn(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&h.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|||
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[jr]=this[jr]={accessors:{}}).accessors,r=this.prototype;function i(o){const l=Nt(o);s[l]||(cu(r,o),s[l]=!0)}return h.isArray(t)?t.forEach(i):i(t),this}};ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.reduceDescriptors(ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});h.freezeMethods(ge);function is(e,t){const n=this||Qt,s=t||n,r=ge.from(s.headers);let i=s.data;return h.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function ho(e){return!!(e&&e.__CANCEL__)}function Ot(e,t,n){U.call(this,e??"canceled",U.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(Ot,U,{__CANCEL__:!0});function mo(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function au(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uu(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),a=s[i];o||(o=f),n[r]=c,s[r]=f;let p=i,_=0;for(;p!==r;)_+=n[p++],p=p%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),f-o<t)return;const T=a&&f-a;return T?Math.round(_*1e3/T):void 0}}function fu(e,t){let n=0,s=1e3/t,r,i;const o=(f,a=Date.now())=>{n=a,r=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const a=Date.now(),p=a-n;p>=s?o(f,a):(r=f,i||(i=setTimeout(()=>{i=null,o(r)},s-p)))},()=>r&&o(r)]}const Tn=(e,t,n=3)=>{let s=0;const r=uu(50,250);return fu(i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,c=o-s,f=r(c),a=o<=l;s=o;const p={loaded:o,total:l,progress:l?o/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&a?(l-o)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},Mr=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Dr=e=>(...t)=>h.asap(()=>e(...t)),du=ie.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ie.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,pu=ie.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];h.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),h.isString(s)&&o.push("path="+s),h.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function go(e,t,n){let s=!hu(t);return e&&(s||n==!1)?mu(e,t):t}const Lr=e=>e instanceof ge?{...e}:e;function pt(e,t){t=t||{};const n={};function s(f,a,p,_){return h.isPlainObject(f)&&h.isPlainObject(a)?h.merge.call({caseless:_},f,a):h.isPlainObject(a)?h.merge({},a):h.isArray(a)?a.slice():a}function r(f,a,p,_){if(h.isUndefined(a)){if(!h.isUndefined(f))return s(void 0,f,p,_)}else return s(f,a,p,_)}function i(f,a){if(!h.isUndefined(a))return s(void 0,a)}function o(f,a){if(h.isUndefined(a)){if(!h.isUndefined(f))return s(void 0,f)}else return s(void 0,a)}function l(f,a,p){if(p in t)return s(f,a);if(p in e)return s(void 0,f)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,
|
|||
|
|
`+i.map(Br).join(`
|
|||
|
|
`):" "+Br(i[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Es};function os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ot(null,e)}function Hr(e){return os(e),e.headers=ge.from(e.headers),e.data=is.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wo.getAdapter(e.adapter||Qt.adapter)(e).then(function(s){return os(e),s.data=is.call(e,e.transformResponse,s),s.headers=ge.from(s.headers),s},function(s){return ho(s)||(os(e),s&&s.response&&(s.response.data=is.call(e,e.transformResponse,s.response),s.response.headers=ge.from(s.response.headers))),Promise.reject(s)})}const So="1.10.0",qn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qn[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const kr={};qn.transitional=function(t,n,s){function r(i,o){return"[Axios v"+So+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,l)=>{if(t===!1)throw new U(r(o," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!kr[o]&&(kr[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};qn.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Au(e,t,n){if(typeof e!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const l=e[i],c=l===void 0||o(l,i,e);if(c!==!0)throw new U("option "+i+" must be "+c,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}}const mn={assertOptions:Au,validators:qn},Ne=mn.validators;let dt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Nr,response:new Nr}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|||
|
|
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=pt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&mn.assertOptions(s,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),r!=null&&(h.isFunction(r)?n.paramsSerializer={serialize:r}:mn.assertOptions(r,{encode:Ne.function,serialize:Ne.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),mn.assertOptions(n,{baseUrl:Ne.spelling("baseURL"),withXsrfToken:Ne.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&h.merge(i.common,i[n.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=ge.concat(o,i);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let a,p=0,_;if(!c){const x=[Hr.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,f),_=x.length,a=Promise.resolve(n);p<_;)a=a.then(x[p++],x[p++]);return a}_=l.length;let T=n;for(p=0;p<_;){const x=l[p++],y=l[p++];try{T=x(T)}catch(m){y.call(this,m);break}}try{a=Hr.call(this,T)}catch(x){return Promise.reject(x)}for(p=0,_=f.length;p<_;)a=a.then(f[p++],f[p++]);return a}getUri(t){t=pt(this.defaults,t);const n=go(t.baseURL,t.url,t.allowAbsoluteUrls);return uo(n,t.params,t.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(t){dt.prototype[t]=function(n,s){return this.request(pt(s||{},{method:t,url:n,data:(s||{}).data}))}});h.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,l){return this.request(pt(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}dt.prototype[t]=n(),dt.prototype[t+"Form"]=n(!0)});let Cu=class xo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(l=>{s.subscribe(l),i=l}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,l){s.reason||(s.reason=new Ot(i,o,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xo(function(r){t=r}),cancel:t}}};function Pu(e){return function(n){return e.apply(null,n)}}function Fu(e){return h.isObject(e)&&e.isAxiosError===!0}const vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsToo
|
|||
|
|
`),b=await a(m);alert(b?"✅ 一键复制成功":"❌ 复制失败")};return(y,m)=>(Ee(),Fe("div",jf,[m[26]||(m[26]=j("h2",null,"创建 ECS 实例",-1)),j("form",{onSubmit:Xc(T,["prevent"])},[m[9]||(m[9]=j("label",null,"客户名称",-1)),Je(j("input",{"onUpdate:modelValue":m[0]||(m[0]=b=>t.value.customer=b),placeholder:"例如:张三",required:""},null,512),[[gt,t.value.customer]]),m[10]||(m[10]=j("label",null,[je("资源名称 "),j("span",{style:{"font-size":"13px",color:"blue"}},"(客户名称的拼音+开机的当日时间)")],-1)),Je(j("input",{"onUpdate:modelValue":m[1]||(m[1]=b=>t.value.resource_name=b),placeholder:"例如:zhangsan-20250720",required:""},null,512),[[gt,t.value.resource_name]]),m[11]||(m[11]=j("label",null,"区域",-1)),Je(j("select",{"onUpdate:modelValue":m[2]||(m[2]=b=>t.value.region=b),required:""},[(Ee(),Fe(we,null,Zn(n,b=>j("option",{key:b.id,value:b.id},ne(b.name)+" ("+ne(b.id)+") ",9,Mf)),64))],512),[[Rr,t.value.region]]),m[12]||(m[12]=j("label",{style:{color:"red"}},"AccessKey *",-1)),Je(j("input",{"onUpdate:modelValue":m[3]||(m[3]=b=>t.value.access_key=b),required:""},null,512),[[gt,t.value.access_key]]),m[13]||(m[13]=j("label",{style:{color:"red"}},"SecretKey *",-1)),Je(j("input",{"onUpdate:modelValue":m[4]||(m[4]=b=>t.value.secret_key=b),required:""},null,512),[[gt,t.value.secret_key]]),m[14]||(m[14]=j("label",null,"镜像",-1)),Je(j("select",{"onUpdate:modelValue":m[5]||(m[5]=b=>t.value.image_id=b),required:""},[j("option",Df,ne(r.value?"加载镜像中...":s.value.length?"请选择镜像":"暂无可用镜像"),1),(Ee(!0),Fe(we,null,Zn(s.value,b=>(Ee(),Fe("option",{key:b.ImageId,value:b.ImageId},ne(b.ImageName)+" ("+ne(b.ImageId)+") ",9,Lf))),128))],512),[[Rr,t.value.image_id]]),m[15]||(m[15]=j("label",null,[je("阿里云账号 UID "),j("span",{style:{"font-size":"13px",color:"blue"}},"(阿里云代开账号的UID)")],-1)),Je(j("input",{"onUpdate:modelValue":m[6]||(m[6]=b=>t.value.account_uid=b),placeholder:"拼接邮箱用,如 1234567890123456"},null,512),[[gt,t.value.account_uid]]),m[16]||(m[16]=j("label",null,"开机数量",-1)),Je(j("input",{type:"number","onUpdate:modelValue":m[7]||(m[7]=b=>t.value.count=b),min:"1"},null,512),[[gt,t.value.count]]),t.value.access_key&&t.value.secret_key?(Ee(),Fe("div",Uf,[m[8]||(m[8]=j("label",null,"账户余额",-1)),j("div",$f,[c.value?(Ee(),Fe("span",Bf,"查询中...")):(Ee(),Fe("span",Hf,ne(l.value!==null?l.value+" $":"获取失败"),1))])])):dr("",!0),j("button",{type:"submit",disabled:o.value},ne(o.value?"创建中...":"🚀 一键创建"),9,kf)],32),i.value.length?(Ee(),Fe("div",Vf,[m[25]||(m[25]=j("h3",null,"✅ 创建成功",-1)),(Ee(!0),Fe(we,null,Zn(i.value,(b,N)=>(Ee(),Fe("div",{class:"card",key:N},[j("div",qf,[j("span",null,[m[17]||(m[17]=j("strong",null,"名称:",-1)),je(ne(b.name),1)]),j("button",{onClick:D=>x(b)},"📋 一键复制",8,Kf)]),j("p",null,[m[18]||(m[18]=j("strong",null,"创建时间:",-1)),je(ne(b.created),1)]),j("p",null,[m[19]||(m[19]=j("strong",null,"区域:",-1)),je(ne(_(b.region)),1)]),m[23]||(m[23]=j("p",null,[j("strong",null,"服务器信息:")],-1)),j("p",null,ne(b.ip),1),j("p",null,ne(b.user),1),j("p",null,ne(b.password),1),m[24]||(m[24]=j("p",null,[j("strong",null,"RAM 登录网址: "),je("https://signin.alibabacloud.com/")],-1)),j("p",null,[m[20]||(m[20]=j("strong",null,"RAM 用户名:",-1)),je(ne(b.ram_user),1)]),j("p",null,[m[21]||(m[21]=j("strong",null,"RAM 邮箱:",-1)),je(ne(b.email),1)]),j("p",null,[m[22]||(m[22]=j("strong",null,"RAM 密码:",-1)),je(ne(b.ram_password),1)])]))),128))])):dr("",!0)]))}},zf=Nf(Wf,[["__scopeId","data-v-17323cfa"]]);Qc(zf).mount("#app");
|