8 lines
242 KiB
JavaScript
Raw Normal View History

2023-12-21 11:39:15 +08:00
function ni(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const _e={},kn=[],ut=()=>{},Hf=()=>!1,Df=/^on[^a-z]/,ms=e=>Df.test(e),si=e=>e.startsWith("onUpdate:"),Be=Object.assign,oi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ff=Object.prototype.hasOwnProperty,me=(e,t)=>Ff.call(e,t),re=Array.isArray,xn=e=>go(e)==="[object Map]",Ea=e=>go(e)==="[object Set]",ie=e=>typeof e=="function",ke=e=>typeof e=="string",mo=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",ka=e=>(be(e)||ie(e))&&ie(e.then)&&ie(e.catch),xa=Object.prototype.toString,go=e=>xa.call(e),qf=e=>go(e).slice(8,-1),Sa=e=>go(e)==="[object Object]",ri=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ts=ni(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},jf=/-(\w)/g,gt=yo(e=>e.replace(jf,(t,n)=>n?n.toUpperCase():"")),Qf=/\B([A-Z])/g,mn=yo(e=>e.replace(Qf,"-$1").toLowerCase()),vo=yo(e=>e.charAt(0).toUpperCase()+e.slice(1)),cr=yo(e=>e?`on${vo(e)}`:""),hn=(e,t)=>!Object.is(e,t),Ks=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ta=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let sl;const Sr=()=>sl||(sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nt(e){if(re(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ke(s)?Yf(s):nt(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ke(e)||be(e))return e}const Kf=/;(?![^(]*\))/g,Wf=/:([^]+)/,Vf=/\/\*[^]*?\*\//g;function Yf(e){const t={};return e.replace(Vf,"").split(Kf).forEach(n=>{if(n){const s=n.split(Wf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ce(e){let t="";if(ke(e))t=e;else if(re(e))for(let n=0;n<e.length;n++){const s=Ce(e[n]);s&&(t+=s+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Jf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=Ce(t)),n&&(e.style=nt(n)),e}const Gf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zf=ni(Gf);function Ra(e){return!!e||e===""}const V=e=>ke(e)?e:e==null?"":re(e)||be(e)&&(e.toString===xa||!ie(e.toString))?JSON.stringify(e,La,2):String(e),La=(e,t)=>t&&t.__v_isRef?La(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Ea(t)?{[`Set(${t.size})`]:[...t.values()]}:be(t)&&!re(t)&&!Sa(t)?String(t):t;let at;class Ba{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=at,!t&&at&&(this.index=(at.scopes||(at.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=at;try{return at=this,t()}finally{at=n}}}on(){at=this}off(){at=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 o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Xf(e){return new Ba(e)}function Zf(e,t=at){t&&t.active&&t.effects.push(e)}function $f(){return at}const ii=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Oa=e=>(e.w&Wt)>0,Ia=e=>(e.n&Wt)>0,ed=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Wt},td=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];Oa(o)&&!Ia(o)?o.delete(e):t[n++]=o,o.w&=~Wt,o.n&=~Wt}t.length=n}},$s=new WeakMap;let $n=0,Wt=1;const Tr=30;let ct;const dn=Symbol(""),Rr=Symbol("");class li{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Zf(this,s)}run(){if(!this.active)return this.fn();let t=ct,n=qt;for(;t;){if(t===this)return;t=t.parent}try{return
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),s=i.substring(o+1).trim(),!(!n||t[n]&&Xg[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Aa=Symbol("internals");function Zn(e){return e&&String(e).trim().toLowerCase()}function zs(e){return e===!1||e==null?e:T.isArray(e)?e.map(zs):String(e)}function $g(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 ey=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cr(e,t,n,s,o){if(T.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(s))return t.indexOf(s)!==-1;if(T.isRegExp(s))return s.test(t)}}function ty(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function ny(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,r,i){return this[s].call(this,t,o,r,i)},configurable:!0})})}class No{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function r(a,f,l){const c=Zn(f);if(!c)throw new Error("header name must be a non-empty string");const u=T.findKey(o,c);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||f]=zs(a))}const i=(a,f)=>T.forEach(a,(l,c)=>r(l,c,f));return T.isPlainObject(t)||t instanceof this.constructor?i(t,n):T.isString(t)&&(t=t.trim())&&!ey(t)?i(Zg(t),n):t!=null&&r(n,t,s),this}get(t,n){if(t=Zn(t),t){const s=T.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return $g(o);if(T.isFunction(n))return n.call(this,o,s);if(T.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zn(t),t){const s=T.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Cr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function r(i){if(i=Zn(i),i){const a=T.findKey(s,i);a&&(!n||Cr(s,s[a],a,n))&&(delete s[a],o=!0)}}return T.isArray(t)?t.forEach(r):r(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const r=n[s];(!t||Cr(this,this[r],r,t,!0))&&(delete this[r],o=!0)}return o}normalize(t){const n=this,s={};return T.forEach(this,(o,r)=>{const i=T.findKey(s,r);if(i){n[i]=zs(o),delete n[r];return}const a=t?ty(r):String(r).trim();a!==r&&delete n[r],n[a]=zs(o),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&T.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(`
`)}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(o=>s.set(o)),s}static accessor(t){const s=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function r(i){const a=Zn(i);s[a]||(ny(o,i),s[a]=!0)}return T.isArray(t)?t.forEach(r):r(t),this}}No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(No.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});T.freezeMethods(No);const St=No;function Er(e,t){const n=this||Ni,s=t||n,o=St.from(s.headers);let r=s.data;return T.forEach(e,function(a){r=a.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function Lu(e){return!!(e&&e.__CANCEL__)}function ws(e,t,n){pe.call(this,e??"canceled",pe.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(ws,pe,{__CANCEL__:!0});function sy(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new pe("Request failed with status code "+n.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const oy=mt.hasStandardBrowserEnv?{write(e,t,n,s,o,r){const i=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),T.isString(s)&&i.push("path="+s),T.isString(o)&&i.push("domain="+o),r===!0&&i.push("secure"),document.cookie=i.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 ry(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iy(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Bu(e,t){return e&&!ry(t)?iy(e,t):t}const ly=mt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function o(r){let i=r;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(i){const a=T.isString(i)?o(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function ay(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cy(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,r=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),c=s[r];i||(i=l),n[o]=f,s[o]=l;let u=r,p=0;for(;u!==o;)p+=n[u++],u=u%e;if(o=(o+1)%e,o===r&&(r=(r+1)%e),l-i<t)return;const y=c&&l-c;return y?Math.round(p*1e3/y):void 0}}function ha(e,t){let n=0;const s=cy(50,250);return o=>{const r=o.loaded,i=o.lengthComputable?o.total:void 0,a=r-n,f=s(a),l=r<=i;n=r;const c={loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:f||void 0,estimated:f&&i&&l?(i-r)/f:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const uy=typeof XMLHttpRequest<"u",fy=uy&&function(e){return new Promise(function(n,s){let o=e.data;const r=St.from(e.headers).normalize();let{responseType:i,withXSRFToken:a}=e,f;function l(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let c;if(T.isFormData(o)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((c=r.getContentType())!==!1){const[b,...D]=c?c.split(";").map(z=>z.trim()).filter(Boolean):[];r.setContentType([b||"multipart/form-data",...D].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",D=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(b+":"+D))}const p=Bu(e.baseURL,e.url);u.open(e.method.toUpperCase(),xu(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function y(){if(!u)return;const b=St.from("getAllResponseHeaders"in u&&u.getAllResponseHea
2023-12-21 10:53:20 +08:00
`+r.map(pa).join(`
2023-12-21 11:39:15 +08:00
`):" "+pa(r[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:$r};function kr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ws(null,e)}function ma(e){return kr(e),e.headers=St.from(e.headers),e.data=Er.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ou.getAdapter(e.adapter||Ni.adapter)(e).then(function(s){return kr(e),s.data=Er.call(e,e.transformResponse,s),s.headers=St.from(s.headers),s},function(s){return Lu(s)||(kr(e),s&&s.response&&(s.response.data=Er.call(e,e.transformResponse,s.response),s.response.headers=St.from(s.response.headers))),Promise.reject(s)})}const ga=e=>e instanceof St?e.toJSON():e;function Nn(e,t){t=t||{};const n={};function s(l,c,u){return T.isPlainObject(l)&&T.isPlainObject(c)?T.merge.call({caseless:u},l,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function o(l,c,u){if(T.isUndefined(c)){if(!T.isUndefined(l))return s(void 0,l,u)}else return s(l,c,u)}function r(l,c){if(!T.isUndefined(c))return s(void 0,c)}function i(l,c){if(T.isUndefined(c)){if(!T.isUndefined(l))return s(void 0,l)}else return s(void 0,c)}function a(l,c,u){if(u in t)return s(l,c);if(u in e)return s(void 0,l)}const f={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(l,c)=>o(ga(l),ga(c),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=f[c]||o,p=u(e[c],t[c],c);T.isUndefined(p)&&u!==a||(n[c]=p)}),n}const Iu="1.6.2",Ui={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ui[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ya={};Ui.transitional=function(t,n,s){function o(r,i){return"[Axios v"+Iu+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,a)=>{if(t===!1)throw new pe(o(i," has been removed"+(n?" in "+n:"")),pe.ERR_DEPRECATED);return n&&!ya[i]&&(ya[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,i,a):!0}};function Ay(e,t,n){if(typeof e!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const r=s[o],i=t[r];if(i){const a=e[r],f=a===void 0||i(a,r,e);if(f!==!0)throw new pe("option "+r+" must be "+f,pe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pe("Unknown option "+r,pe.ERR_BAD_OPTION)}}const ei={assertOptions:Ay,validators:Ui},Mt=ei.validators;class po{constructor(t){this.defaults=t,this.interceptors={request:new da,response:new da}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Nn(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:r}=n;s!==void 0&&ei.assertOptions(s,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:ei.assertOptions(o,{encode:Mt.function,serialize:Mt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=r&&T.merge(r.common,r[n.method]);r&&T.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),n.headers=St.concat(i,r);const a=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let c,u=0,p;if(!f){const v=[ma.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,l),p=v.length,c=Promise.resolve(n);u<p;)c=c.then(v[u++],v[u++]);return c}p=a.length;let y=n;for(u=0;u<p;
2023-12-21 10:53:20 +08:00
`).splice(1).map(u=>({text:u.replace("webpack:/","").replace(".vue",".js").trim(),internal:u.includes("node_modules")&&!u.includes(".cache")||u.includes("internal")||u.includes("new Promise")})).map(u=>`<span class="stack${u.internal?" internal":""}">${u.text}</span>`).join(`
2023-12-21 11:39:15 +08:00
`);const s=Number(n.statusCode||500),o=s===404,r=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?gl(()=>Xl(()=>import("./error-404.e9a929be.js"),["./error-404.e9a929be.js","./error-404.7fc72018.css"],import.meta.url).then(u=>u.default||u)):gl(()=>Xl(()=>import("./error-500.ec9a7266.js"),["./error-500.ec9a7266.js","./error-500.c5df6088.css"],import.meta.url).then(u=>u.default||u));return(u,p)=>(C(),cn(He(c),Jf(Tc({statusCode:He(s),statusMessage:He(r),description:He(i),stack:He(a)})),null,16))}},oC=sC,rC={__name:"nuxt-root",setup(e){const t=()=>null,n=Oe(),s=n.deferHydration(),o=!1;pc(iu,Bi()),n.hooks.callHookWith(a=>a.map(f=>f()),"vue:setup");const r=Li();dc((a,f,l)=>{if(n.hooks.callHook("vue:error",a,f,l).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),Em(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>_m(a)),!1});const i=!1;return(a,f)=>(C(),cn(Fd,{onResolve:He(s)},{default:ns(()=>[He(r)?(C(),cn(He(oC),{key:0,error:He(r)},null,8,["error"])):He(i)?(C(),cn(He(t),{key:1,context:He(i)},null,8,["context"])):He(o)?(C(),cn(Md(He(o)),{key:2})):(C(),cn(He(nC),{key:3}))]),_:1},8,["onResolve"]))}},_a=rC;let Ca;{let e;Ca=async function(){var i,a;if(e)return e;const s=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?uh(_a):ch(_a),o=Ap({vueApp:s});async function r(f){await o.callHook("app:error",f),o.payload.error=o.payload.error||f}s.config.errorHandler=r;try{await pp(o,Ym)}catch(f){r(f)}try{await o.hooks.callHook("app:created",s),await o.hooks.callHook("app:beforeMount",s),s.mount(Lm),await o.hooks.callHook("app:mounted",s),await Ft()}catch(f){r(f)}return s.config.errorHandler===r&&(s.config.errorHandler=void 0),s},e=Ca().catch(t=>{console.error("Error while mounting app:",t)})}export{we as A,ns as B,de as C,lC as D,aC as E,Iy as _,du as a,la as b,OA as c,Eo as d,gi as e,fC as f,Oc as g,To as h,cC as i,Dn as j,Mc as k,Dc as l,fo as m,uC as n,so as o,ys as p,Oe as q,K as r,xm as s,um as t,Ro as u,C as v,Qr as w,S as x,d as y,V as z};