Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00
v3-admin-vite/assets/index-DVW30Bkn.js

8 lines
61 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-OVVamE5g.js","assets/vue-YISEtOLz.js","assets/useWatermark-CS9E0QYX.js","assets/element-BtlHndxu.js","assets/index.vue_vue_type_script_setup_true_lang-F809u7yk.js","assets/el-tooltip-l0sNRNKZ.js","assets/index-h8USmNax.css","assets/el-button-DhOMi8yW.css","assets/el-button-group-ePhtJS9H.css","assets/el-scrollbar-CYqf3UuD.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/vxe-aCtyydk-.js","assets/index-BTbKEf9r.css","assets/el-tab-pane-BihFZC1O.css","assets/el-card-fwQOLwdi.css","assets/el-tag-DljBBxJR.css","assets/el-dialog-Cop0q8z2.css","assets/el-overlay-CUAhHdWP.css","assets/el-input-BCtgWP8V.css","assets/index-Dpq8y3Q1.js","assets/403-DiB0PtCD.js","assets/Layout-BWpBF4yS.js","assets/Layout-DVPSJTOz.css","assets/404-BPZIhEAq.js","assets/index-Vyvj9lNU.js","assets/index-BwA9e-JB.css","assets/el-form-item-CKZiX9BY.css","assets/index-BgLTGb8A.js","assets/index-Fw2ODUIB.css","assets/index-CYsj_Sra.js","assets/index-DC0JxONI.js","assets/el-message-box-C4s56iX2.js","assets/el-message-box-CP1fziBF.css","assets/index-CJD6py5e.css","assets/el-loading-C5IeuJ3V.css","assets/el-select-Dt7emnhu.css","assets/index-Ch-tmPsw.js","assets/index-DAKNOHIG.css","assets/index-BFolW14N.js","assets/index-BG5pHSaj.css","assets/index-BpRjJCGd.js","assets/use-fetch-select-Dj6ZXSD2.js","assets/use-fetch-select-DzN5SWXt.css","assets/use-fullscreen-loading-DiUwlPtM.js","assets/use-fullscreen-loading-BZZfQs7_.css","assets/use-watermark-y70siKHW.js","assets/use-watermark-DHr8hXba.css","assets/page-level-DHnviddX.js","assets/SwitchRoles-Ov_pRRGu.js","assets/SwitchRoles-CRycCodv.css","assets/page-level-nLO9Fg8q.css","assets/button-level-BJa9Qpik.js","assets/button-level-ClaOf9yw.css"])))=>i.map(i=>d[i]);
var qt=Object.defineProperty;var Mt=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>Mt(e,typeof t!="symbol"?t+"":t,n);import{at as Ht,au as $t,av as se,r as B,w as at,e as Oe,U as zt,aw as Wt,v as Jt,x as ut,A as Gt,aa as q,t as Kt,ac as Xt,C as Yt,D as Zt,L as Qt,u as en,aq as tn}from"./vue-YISEtOLz.js";import{E as X,a as Ve,m as nn,g as rn,b as sn,c as ct,d as on}from"./element-BtlHndxu.js";import{V as lt}from"./vxe-aCtyydk-.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const an=Ht(),un="modulepreload",cn=function(e){return"/v3-admin-vite/"+e},je={},O=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),h=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));s=i(n.map(l=>{if(l=cn(l),l in je)return;je[l]=!0;const d=l.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${f}`))return;const E=document.createElement("link");if(E.rel=d?"stylesheet":un,d||(E.as="script"),E.crossOrigin="",E.href=l,h&&E.setAttribute("nonce",h),document.head.appendChild(E),d)return new Promise((w,c)=>{E.addEventListener("load",w),E.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=i,window.dispatchEvent(u),!u.defaultPrevented)throw i}return s.then(i=>{for(const u of i||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})},ln="/v3-admin-vite/",ve={history:$t(ln),dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1};function fn(e,t){var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0}function ft(e,t){const n=[];return e.forEach(r=>{const s={...r};fn(t,s)&&(s.children&&(s.children=ft(s.children,t)),n.push(s))}),n}const dn=se("permission",()=>{const e=B([]),t=B([]),n=o=>{const i=ft(ot,o);s(i)},r=()=>{s(ot)},s=o=>{e.value=Ut.concat(o),t.value=o};return{routes:e,addRoutes:t,setRoutes:n,setAllRoutes:r}}),j="v3-admin-vite";class C{}N(C,"TOKEN",`${j}-token-key`),N(C,"CONFIG_LAYOUT",`${j}-config-layout-key`),N(C,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),N(C,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),N(C,"VISITED_VIEWS",`${j}-visited-views-key`),N(C,"CACHED_VIEWS",`${j}-cached-views-key`);function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var pn={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ee(e,t){function n(s,o,i){if(!(typeof document>"u")){i=K({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var h in i)i[h]&&(u+="; "+h,i[h]!==!0&&(u+="="+i[h].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+u}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},u=0;u<o.length;u++){var h=o[u].split("="),l=h.slice(1).join("=");try{var d=decodeURIComponent(h[0]);if(i[d]=e.read(l,d),s===d)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:r,remove:function(s,o){n(s,"",K({},o,{expires:-1}))},withAttributes:function(s){return Ee(this.converter,K({},this.attributes,s))},withConverter:function(s){return Ee(K({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Fe=Ee(pn,{path:"/"});function De(){return Fe.get(C.TOKEN)}function qe(e){Fe.set(C.TOKEN,e)}function Me(){Fe.remove(C.TOKEN)}function dt(e,t){return function(){return e.apply(t,arguments)}}const{toString:mn}=Object.prototype,{getPrototypeOf:xe}=Object,oe=(e=>t=>{const n=mn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>oe(t)===e),ie=e=>t=>typeof t===e,{isArray:H}=Array,W=ie("undefined");function hn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=k("ArrayBuffer");function En(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const gn=ie("string"),x=ie("function"),mt=ie("number"),ae=e=>e!==null&&typeof e=="object",yn=e=>e===!0||e===!1,Y=e=>{if(oe(e)!=="object")return!1;const t=xe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wn=k("Date"),bn=k("File"),Sn=k("Blob"),Tn=k("FileList"),Rn=e=>ae(e)&&x(e.pipe),An=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=oe(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},Cn=k("URLSearchParams"),[_n,On,vn,Fn]=["ReadableStream","Request","Response","Headers"].map(k),Dn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function ht(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=e=>!W(e)&&e!==I;function ge(){const{caseless:e}=Et(this)&&this||{},t={},n=(r,s)=>{const o=e&&ht(t,s)||s;Y(t[o])&&Y(r)?t[o]=ge(t[o],r):Y(r)?t[o]=ge({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&J(arguments[r],n);return t}const xn=(e,t,n,{allOwnKeys:r}={})=>(J(t,(s,o)=>{n&&x(s)?e[o]=dt(s,n):e[o]=s},{allOwnKeys:r}),e),Pn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ln=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&xe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Bn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Nn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},In=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xe(Uint8Array)),Un=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Vn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jn=k("HTMLFormElement"),qn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),He=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mn=k("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Hn=e=>{gt(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$n=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},zn=()=>{},Wn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Jn(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Gn=e=>{const t=new Array(10),n=(r,s)=>{if(ae(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return J(r,(i,u)=>{const h=n(i,s+1);!W(h)&&(o[u]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Kn=k("AsyncFunction"),Xn=e=>e&&(ae(e)||x(e))&&x(e.then)&&x(e.catch),yt=((e,t)=>e?setImmediate:t?((n,r)=>(I.addEventListener("message",({source:s,data:o})=>{s===I&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),I.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(I.postMessage)),Yn=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||yt,a={isArray:H,isArrayBuffer:pt,isBuffer:hn,isFormData:An,isArrayBufferView:En,isString:gn,isNumber:mt,isBoolean:yn,isObject:ae,isPlainObject:Y,isReadableStream:_n,isRequest:On,isResponse:vn,isHeaders:Fn,isUndefined:W,isDate:wn,isFile:bn,isBlob:Sn,isRegExp:Mn,isFunction:x,isStream:Rn,isURLSearchParams:Cn,isTypedArray:In,isFileList:Tn,forEach:J,merge:ge,extend:xn,trim:Dn,stripBOM:Pn,inherits:kn,toFlatObject:Ln,kindOf:oe,kindOfTest:k,endsWith:Bn,toArray:Nn,forEachEntry:Un,matchAll:Vn,isHTMLForm:jn,hasOwnProperty:He,hasOwnProp:He,reduceDescriptors:gt,freezeMethods:Hn,toObjectSet:$n,toCamelCase:qn,noop:zn,toFiniteNumber:Wn,findKey:ht,global:I,isContextDefined:Et,isSpecCompliantForm:Jn,toJSONObject:Gn,isAsyncFn:Kn,isThenable:Xn,setImmediate:yt,asap:Yn};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const wt=g.prototype,bt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bt[e]={value:e}});Object.defineProperties(g,bt);Object.defineProperty(wt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(wt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},u=>u!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Zn=null;function ye(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function $e(e,t,n){return e?e.concat(t).map(function(s,o){return s=St(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Qn(e){return a.isArray(e)&&!e.some(ye)}const er=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ue(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!a.isUndefined(m[p])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(c){if(c===null)return"";if(a.isDate(c))return c.toISOString();if(!h&&a.isBlob(c))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(c)||a.isTypedArray(c)?h&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,p,m){let y=c;if(c&&!m&&typeof c=="object"){if(a.endsWith(p,"{}"))p=r?p:p.slice(0,-2),c=JSON.stringify(c);else if(a.isArray(c)&&Qn(c)||(a.isFileList(c)||a.endsWith(p,"[]"))&&(y=a.toArray(c)))return p=St(p),y.forEach(function(T,S){!(a.isUndefined(T)||T===null)&&t.append(i===!0?$e([p],S,o):i===null?p:p+"[]",l(T))}),!1}return ye(c)?!0:(t.append($e(m,p,o),l(c)),!1)}const f=[],E=Object.assign(er,{defaultVisitor:d,convertValue:l,isVisitable:ye});function w(c,p){if(!a.isUndefined(c)){if(f.indexOf(c)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(c),a.forEach(c,function(y,b){(!(a.isUndefined(y)||y===null)&&s.call(t,y,a.isString(b)?b.trim():b,p,E))===!0&&w(y,p?p.concat(b):[b])}),f.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pe(e,t){this._pairs=[],e&&ue(e,this,t)}const Tt=Pe.prototype;Tt.append=function(t,n){this._pairs.push([t,n])};Tt.toString=function(t){const n=t?function(r){return t.call(this,r,ze)}:ze;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function tr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||tr;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class We{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nr=typeof URLSearchParams<"u"?URLSearchParams:Pe,rr=typeof FormData<"u"?FormData:null,sr=typeof Blob<"u"?Blob:null,or={isBrowser:!0,classes:{URLSearchParams:nr,FormData:rr,Blob:sr},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",we=typeof navigator=="object"&&navigator||void 0,ir=ke&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),ar=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ur=ke&&window.location.href||"http://localhost",cr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:ir,hasStandardBrowserWebWorkerEnv:ar,navigator:we,origin:ur},Symbol.toStringTag,{value:"Module"})),v={...cr,...or};function lr(e,t){return ue(e,new v.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return v.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function fr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Ct(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const u=Number.isFinite(+i),h=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,h?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=dr(s[i])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(fr(r),s,n,0)}),n}return null}function pr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:At,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lr(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ue(u?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),pr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?g.from(u,g.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const mr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),hr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&mr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Je=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function Z(e){return e===!1||e==null?e:a.isArray(e)?e.map(Z):String(e)}function Er(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function yr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function wr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(u,h,l){const d=z(h);if(!d)throw new Error("header name must be a non-empty string");const f=a.findKey(s,d);(!f||s[f]===void 0||l===!0||l===void 0&&s[f]!==!1)&&(s[f||h]=Z(u))}const i=(u,h)=>a.forEach(u,(l,d)=>o(l,d,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!gr(t))i(hr(t),n);else if(a.isHeaders(t))for(const[u,h]of t.entries())o(h,u,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Er(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const u=a.findKey(r,i);u&&(!n||fe(r,r[u],u,n))&&(delete r[u],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||fe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Z(s),delete n[o];return}const u=t?yr(o):String(o).trim();u!==o&&delete n[o],n[u]=Z(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Je]=this[Je]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=z(i);r[u]||(wr(s,i),r[u]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(D);function de(e,t){const n=this||G,r=t||n,s=D.from(r.headers);let o=r.data;return a.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function _t(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,g,{__CANCEL__:!0});function Ot(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const l=Date.now(),d=r[o];i||(i=l),n[s]=h,r[s]=l;let f=o,E=0;for(;f!==s;)E+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const w=d&&l-d;return w?Math.round(E*1e3/w):void 0}}function Tr(e,t){let n=0,r=1e3/t,s,o;const i=(l,d=Date.now())=>{n=d,s=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const d=Date.now(),f=d-n;f>=r?i(l,d):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const ne=(e,t,n=3)=>{let r=0;const s=Sr(50,250);return Tr(o=>{const i=o.loaded,u=o.lengthComputable?o.total:void 0,h=i-r,l=s(h),d=i<=u;r=i;const f={loaded:i,total:u,progress:u?i/u:void 0,bytes:h,rate:l||void 0,estimated:l&&u&&d?(u-i)/l:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},n)},Ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>(...t)=>a.asap(()=>e(...t)),Rr=v.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,v.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,Ar=v.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!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 Cr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _r(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vt(e,t,n){let r=!Cr(t);return e&&(r||n==!1)?_r(e,t):t}const Xe=e=>e instanceof D?{...e}:e;function V(e,t){t=t||{};const n={};function r(l,d,f,E){return a.isPlainObject(l)&&a.isPlainObject(d)?a.merge.call({caseless:E},l,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(l,d,f,E){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l,f,E)}else return r(l,d,f,E)}function o(l,d){if(!a.isUndefined(d))return r(void 0,d)}function i(l,d){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function u(l,d,f){if(f in t)return r(l,d);if(f in e)return r(void 0,l)}const h={url:o,method:o,data:o,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:u,headers:(l,d,f)=>s(Xe(l),Xe(d),f,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=h[d]||s,E=f(e[d],t[d],d);a.isUndefined(E)&&f!==u||(n[d]=E)}),n}const Ft=e=>{const t=V({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:u}=t;t.headers=i=D.from(i),t.url=Rt(vt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let h;if(a.isFormData(n)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[l,...d]=h?h.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...d].join("; "))}}if(v.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Rr(t.url))){const l=s&&o&&Ar.read(o);l&&i.set(s,l)}return t},Or=typeof XMLHttpRequest<"u",vr=Or&&function(e){return new Promise(function(n,r){const s=Ft(e);let o=s.data;const i=D.from(s.headers).normalize();let{responseType:u,onUploadProgress:h,onDownloadProgress:l}=s,d,f,E,w,c;function p(){w&&w(),c&&c(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function y(){if(!m)return;const T=D.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),R={data:!u||u==="text"||u==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:T,config:e,request:m};Ot(function(F){n(F),p()},function(F){r(F),p()},R),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new g("Request aborted",g.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||At;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new g(S,R.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(S,R){m.setRequestHeader(R,S)}),a.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),u&&u!=="json"&&(m.responseType=s.responseType),l&&([E,c]=ne(l,!0),m.addEventListener("progress",E)),h&&m.upload&&([f,w]=ne(h),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(d=T=>{m&&(r(!T||T.type?new $(null,e,m):T),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const b=br(s.url);if(b&&v.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Fr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,u();const d=l instanceof Error?l:this.reason;r.abort(d instanceof g?d:new $(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const u=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:h}=r;return h.unsubscribe=()=>a.asap(u),h}},Dr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},xr=async function*(e,t){for await(const n of Pr(e))yield*Dr(n,t)},Pr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ye=(e,t,n,r)=>{const s=xr(e,t);let o=0,i,u=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:l,value:d}=await s.next();if(l){u(),h.close();return}let f=d.byteLength;if(n){let E=o+=f;n(E)}h.enqueue(new Uint8Array(d))}catch(l){throw u(l),l}},cancel(h){return u(h),s.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dt=ce&&typeof ReadableStream=="function",kr=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Lr=Dt&&xt(()=>{let e=!1;const t=new Request(v.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ze=64*1024,be=Dt&&xt(()=>a.isReadableStream(new Response("").body)),re={stream:be&&(e=>e.body)};ce&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!re[t]&&(re[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const Br=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(v.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await kr(e)).byteLength},Nr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Br(t)},Ir=ce&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:u,onUploadProgress:h,responseType:l,headers:d,withCredentials:f="same-origin",fetchOptions:E}=Ft(e);l=l?(l+"").toLowerCase():"text";let w=Fr([s,o&&o.toAbortSignal()],i),c;const p=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(h&&Lr&&n!=="get"&&n!=="head"&&(m=await Nr(d,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=R.headers.get("content-type"))&&d.setContentType(_),R.body){const[F,P]=Ge(m,ne(Ke(h)));r=Ye(R.body,Ze,F,P)}}a.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;c=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let b=await fetch(c);const T=be&&(l==="stream"||l==="response");if(be&&(u||T&&p)){const R={};["status","statusText","headers"].forEach(Ue=>{R[Ue]=b[Ue]});const _=a.toFiniteNumber(b.headers.get("content-length")),[F,P]=u&&Ge(_,ne(Ke(u),!0))||[];b=new Response(Ye(b.body,Ze,F,()=>{P&&P(),p&&p()}),R)}l=l||"text";let S=await re[a.findKey(re,l)||"text"](b,e);return!T&&p&&p(),await new Promise((R,_)=>{Ot(R,_,{data:S,headers:D.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:c})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,c),{cause:y.cause||y}):g.from(y,y&&y.code,e,c)}}),Se={http:Zn,xhr:vr,fetch:Ir};a.forEach(Se,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qe=e=>`- ${e}`,Ur=e=>a.isFunction(e)||e===null||e===!1,Pt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Ur(n)&&(r=Se[(i=String(n)).toLowerCase()],r===void 0))throw new g(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(Qe).join(`
`):" "+Qe(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Se};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function et(e){return pe(e),e.headers=D.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pt.getAdapter(e.adapter||G.adapter)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return _t(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const kt="1.8.4",le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tt={};le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+kt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!tt[i]&&(tt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Vr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const u=e[o],h=u===void 0||i(u,o,e);if(h!==!0)throw new g("option "+o+" must be "+h,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const Q={assertOptions:Vr,validators:le},L=Q.validators;let U=class{constructor(t){this.defaults=t,this.interceptors={request:new We,response:new We}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=V(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Q.assertOptions(s,{encode:L.function,serialize:L.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:L.spelling("baseURL"),withXsrfToken:L.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],c=>{delete o[c]}),n.headers=D.concat(i,o);const u=[];let h=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(h=h&&p.synchronous,u.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let d,f=0,E;if(!h){const c=[et.bind(this),void 0];for(c.unshift.apply(c,u),c.push.apply(c,l),E=c.length,d=Promise.resolve(n);f<E;)d=d.then(c[f++],c[f++]);return d}E=u.length;let w=n;for(f=0;f<E;){const c=u[f++],p=u[f++];try{w=c(w)}catch(m){p.call(this,m);break}}try{d=et.call(this,w)}catch(c){return Promise.reject(c)}for(f=0,E=l.length;f<E;)d=d.then(l[f++],l[f++]);return d}getUri(t){t=V(this.defaults,t);const n=vt(t.baseURL,t.url,t.allowAbsoluteUrls);return Rt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(n,r){return this.request(V(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(V(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}U.prototype[t]=n(),U.prototype[t+"Form"]=n(!0)});let jr=class Lt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new $(o,i,u),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Lt(function(s){t=s}),cancel:t}}};function qr(e){return function(n){return e.apply(null,n)}}function Mr(e){return a.isObject(e)&&e.isAxiosError===!0}const Te={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,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Te).forEach(([e,t])=>{Te[t]=e});function Bt(e){const t=new U(e),n=dt(U.prototype.request,t);return a.extend(n,U.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Bt(V(e,s))},n}const A=Bt(G);A.Axios=U;A.CanceledError=$;A.CancelToken=jr;A.isCancel=_t;A.VERSION=kt;A.toFormData=ue;A.AxiosError=g;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=qr;A.isAxiosError=Mr;A.mergeConfig=V;A.AxiosHeaders=D;A.formToJSON=e=>Ct(a.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Pt.getAdapter;A.HttpStatusCode=Te;A.default=A;const{Axios:Xs,AxiosError:Ys,CanceledError:Zs,isCancel:Qs,CancelToken:eo,VERSION:to,all:no,Cancel:ro,isAxiosError:so,spread:oo,toFormData:io,AxiosHeaders:ao,HttpStatusCode:uo,formToJSON:co,getAdapter:lo,mergeConfig:fo}=A;function nt(){Be().logout(),location.reload()}function Hr(){const e=A.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return X.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return nt();default:return X.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{const n=Ve(t,"response.status"),r=Ve(t,"response.data.message");switch(n){case 400:t.message="请求错误";break;case 401:t.message=r||"未授权",nt();break;case 403:t.message=r||"拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return X.error(t.message),Promise.reject(t)}),e}function $r(e){return t=>{const n=De(),r={baseURL:"https://apifoxmock.com/m1/2930465-2145633-default/api/v1",headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},data:{},timeout:5e3,withCredentials:!1},s=nn(r,t);return e(s)}}const zr=Hr(),Wr=$r(zr);function Jr(){return Wr({url:"users/me",method:"get"})}var Gr=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Gr||{}),Nt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(Nt||{});const po="opened",mo="closed";function Kr(){const e=localStorage.getItem(C.CONFIG_LAYOUT);return e?JSON.parse(e):null}function Xr(e){localStorage.setItem(C.CONFIG_LAYOUT,JSON.stringify(e))}function ho(){localStorage.removeItem(C.CONFIG_LAYOUT)}function Eo(){return localStorage.getItem(C.SIDEBAR_STATUS)}function go(e){localStorage.setItem(C.SIDEBAR_STATUS,e)}function Yr(){return localStorage.getItem(C.ACTIVE_THEME_NAME)}function Zr(e){localStorage.setItem(C.ACTIVE_THEME_NAME,e)}function Qr(){const e=localStorage.getItem(C.VISITED_VIEWS);return JSON.parse(e??"[]")}function es(e){e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(C.VISITED_VIEWS,JSON.stringify(e))}function ts(){const e=localStorage.getItem(C.CACHED_VIEWS);return JSON.parse(e??"[]")}function ns(e){localStorage.setItem(C.CACHED_VIEWS,JSON.stringify(e))}const rs={layoutMode:Nt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},ss={...rs,...Kr()},Le=se("settings",()=>{const e={};for(const[n,r]of Object.entries(ss)){const s=B(r);e[n]=s,at(s,()=>{const o=t();Xr(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),os=se("tags-view",()=>{const{cacheTagsView:e}=Le(),t=B(e?Qr():[]),n=B(e?ts():[]);return Oe(()=>{es(t.value),ns(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:f=>{const E=t.value.findIndex(w=>w.path===f.path);E!==-1?t.value[E].fullPath!==f.fullPath&&(t.value[E]={...f}):t.value.push({...f})},addCachedView:f=>{var E;typeof f.name=="string"&&(n.value.includes(f.name)||(E=f.meta)!=null&&E.keepAlive&&n.value.push(f.name))},delVisitedView:f=>{const E=t.value.findIndex(w=>w.path===f.path);E!==-1&&t.value.splice(E,1)},delCachedView:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:f=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===f.path})},delOthersCachedViews:f=>{if(typeof f.name!="string")return;const E=n.value.indexOf(f.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(f=>{var E;return(E=f.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}}),Be=se("user",()=>{const e=B(De()||""),t=B([]),n=B(""),r=os(),s=Le(),o=f=>{qe(f),e.value=f},i=async()=>{var E;const{data:f}=await Jr();n.value=f.username,t.value=((E=f.roles)==null?void 0:E.length)>0?f.roles:ve.defaultRoles},u=f=>{const E=`token-${f}`;e.value=E,qe(E),location.reload()},h=()=>{Me(),e.value="",t.value=[],ys(),d()},l=()=>{Me(),e.value="",t.value=[]},d=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,setToken:o,getInfo:i,changeRoles:u,logout:h,resetToken:l}}),is=["/login"],as=[];function us(e){return is.includes(e.path)||as.includes(e.name)}function cs(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const Re=cs(),Ae=Symbol("ROUTE_CHANGE");let Ce;function ls(e){Re.emit(Ae,e),Ce=e}function yo(){const e=[],t=(r,s=!1)=>{e.push(r),Re.on(Ae,r),s&&Ce&&r(Ce)},n=r=>{Re.off(Ae,r)};return zt(()=>{e.forEach(n)}),{listenerRouteChange:t,removeRouteListener:n}}const rt="V3 Admin Vite",It=B("");function fs(e){It.value=e?`${rt} | ${e}`:rt}at(It,(e,t)=>{document&&e!==t&&(document.title=e)});function ds(){return{setTitle:fs}}var ee={exports:{}};var ps=ee.exports,st;function ms(){return st||(st=1,function(e,t){(function(n,r){e.exports=r()})(ps,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(c){var p,m;for(p in c)m=c[p],m!==void 0&&c.hasOwnProperty(p)&&(r[p]=m);return this},n.status=null,n.set=function(c){var p=n.isStarted();c=s(c,r.minimum,1),n.status=c===1?null:c;var m=n.render(!p),y=m.querySelector(r.barSelector),b=r.speed,T=r.easing;return m.offsetWidth,u(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(c,b,T)),c===1?(h(m,{transition:"none",opacity:1}),m.offsetWidth,setTimeout(function(){h(m,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},b)},b)):setTimeout(S,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var c=function(){setTimeout(function(){n.status&&(n.trickle(),c())},r.trickleSpeed)};return r.trickle&&c(),this},n.done=function(c){return!c&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(c){var p=n.status;return p?(typeof c!="number"&&(c=(1-p)*s(Math.random()*p,.1,.95)),p=s(p+c,0,.994),n.set(p)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var c=0,p=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(p===0&&n.start(),c++,p++,m.always(function(){p--,p===0?(c=0,n.done()):n.set((c-p)/c)}),this)}}(),n.render=function(c){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=r.template;var m=p.querySelector(r.barSelector),y=c?"-100":o(n.status||0),b=document.querySelector(r.parent),T;return h(m,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=p.querySelector(r.spinnerSelector),T&&w(T)),b!=document.body&&d(b,"nprogress-custom-parent"),b.appendChild(p),p},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var c=document.getElementById("nprogress");c&&w(c)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var c=document.body.style,p="WebkitTransform"in c?"Webkit":"MozTransform"in c?"Moz":"msTransform"in c?"ms":"OTransform"in c?"O":"";return p+"Perspective"in c?"translate3d":p+"Transform"in c?"translate":"margin"};function s(c,p,m){return c<p?p:c>m?m:c}function o(c){return(-1+c)*100}function i(c,p,m){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(c)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(c)+"%,0)"}:y={"margin-left":o(c)+"%"},y.transition="all "+p+"ms "+m,y}var u=function(){var c=[];function p(){var m=c.shift();m&&m(p)}return function(m){c.push(m),c.length==1&&p()}}(),h=function(){var c=["Webkit","O","Moz","ms"],p={};function m(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(R,_){return _.toUpperCase()})}function y(S){var R=document.body.style;if(S in R)return S;for(var _=c.length,F=S.charAt(0).toUpperCase()+S.slice(1),P;_--;)if(P=c[_]+F,P in R)return P;return S}function b(S){return S=m(S),p[S]||(p[S]=y(S))}function T(S,R,_){R=b(R),S.style[R]=_}return function(S,R){var _=arguments,F,P;if(_.length==2)for(F in R)P=R[F],P!==void 0&&R.hasOwnProperty(F)&&T(S,F,P);else T(S,_[1],_[2])}}();function l(c,p){var m=typeof c=="string"?c:E(c);return m.indexOf(" "+p+" ")>=0}function d(c,p){var m=E(c),y=m+p;l(m,p)||(c.className=y.substring(1))}function f(c,p){var m=E(c),y;l(c,p)&&(y=m.replace(" "+p+" "," "),c.className=y.substring(1,y.length-1))}function E(c){return(" "+(c.className||"")+" ").replace(/\s+/gi," ")}function w(c){c&&c.parentNode&&c.parentNode.removeChild(c)}return n})}(ee)),ee.exports}var hs=ms();const _e=rn(hs);_e.configure({showSpinner:!1});const{setTitle:Es}=ds(),me="/login";function gs(e){e.beforeEach(async(t,n)=>{_e.start();const r=Be(),s=dn();if(!De())return us(t)?!0:me;if(t.path===me)return"/";if(r.roles.length!==0)return!0;try{await r.getInfo();const o=r.roles;return ve.dynamic?s.setRoutes(o):s.setAllRoutes(),s.addRoutes.forEach(i=>e.addRoute(i)),{...t,replace:!0}}catch(o){return r.resetToken(),X.error(o.message||"路由守卫发生错误"),me}}),e.afterEach(t=>{ls(t),Es(t.meta.title),_e.done()})}const te=()=>O(()=>import("./index-OVVamE5g.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),Ut=[{path:"/redirect",component:te,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>O(()=>import("./index-Dpq8y3Q1.js"),__vite__mapDeps([19,1]))}]},{path:"/403",component:()=>O(()=>import("./403-DiB0PtCD.js"),__vite__mapDeps([20,21,10,3,1,22,7,11])),meta:{hidden:!0}},{path:"/404",component:()=>O(()=>import("./404-BPZIhEAq.js"),__vite__mapDeps([23,21,10,3,1,22,7,11])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>O(()=>import("./index-Vyvj9lNU.js"),__vite__mapDeps([24,1,4,5,3,6,7,8,9,10,11,25,26,18])),meta:{hidden:!0}},{path:"/",component:te,redirect:"/dashboard",children:[{path:"dashboard",component:()=>O(()=>import("./index-BgLTGb8A.js"),__vite__mapDeps([27,1,10,3,11,28])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/demo",component:te,redirect:"/demo/unocss",name:"Demo",meta:{title:"示例集合",elIcon:"DataBoard"},children:[{path:"unocss",component:()=>O(()=>import("./index-CYsj_Sra.js"),__vite__mapDeps([29,10,1])),name:"UnoCSS",meta:{title:"UnoCSS"}},{path:"element-plus",component:()=>O(()=>import("./index-DC0JxONI.js"),__vite__mapDeps([30,5,31,32,1,3,10,11,33,34,16,17,15,35,9,18,14,26,7])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>O(()=>import("./index-Ch-tmPsw.js"),__vite__mapDeps([36,31,32,1,3,10,11,37,7,18,17])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}},{path:"level2",component:()=>O(()=>import("./index-BFolW14N.js"),__vite__mapDeps([38,10,3,1,11,39,14])),redirect:"/demo/level2/level3",name:"Level2",meta:{title:"二级路由",alwaysShow:!0},children:[{path:"level3",component:()=>O(()=>import("./index-BpRjJCGd.js"),__vite__mapDeps([40,3,1,11,14,18])),name:"Level3",meta:{title:"三级路由",keepAlive:!0}}]},{path:"composable-demo",redirect:"/demo/composable-demo/use-fetch-select",name:"ComposableDemo",meta:{title:"组合式函数"},children:[{path:"use-fetch-select",component:()=>O(()=>import("./use-fetch-select-Dj6ZXSD2.js"),__vite__mapDeps([41,1,3,10,11,42,34,18,15,9,35,14])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>O(()=>import("./use-fullscreen-loading-DiUwlPtM.js"),__vite__mapDeps([43,3,1,10,11,44,7,14,34])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>O(()=>import("./use-watermark-y70siKHW.js"),__vite__mapDeps([45,2,3,1,10,11,46,8,7,14])),name:"UseWatermark",meta:{title:"useWatermark"}}]}]},{path:"/link",meta:{title:"文档链接",elIcon:"Link"},children:[{path:"https://juejin.cn/post/7445151895121543209",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]}],ot=[{path:"/permission",component:te,redirect:"/permission/page-level",name:"Permission",meta:{title:"权限演示",elIcon:"Lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page-level",component:()=>O(()=>import("./page-level-DHnviddX.js"),__vite__mapDeps([47,48,3,1,10,49,14,15,11,50])),name:"PermissionPageLevel",meta:{title:"页面级",roles:["admin"]}},{path:"button-level",component:()=>O(()=>import("./button-level-BJa9Qpik.js"),__vite__mapDeps([51,48,3,1,10,49,14,15,11,52,13,7])),name:"PermissionButtonLevel",meta:{title:"按钮级",roles:void 0}}]}],M=Wt({history:ve.history,routes:Ut});function ys(){try{M.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&M.hasRoute(t)&&M.removeRoute(t)})}catch{location.reload()}}gs(M);function ws(e){for(const[t,n]of Object.entries(sn))e.component(t,n)}function bs(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}function wo(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ss={mounted(e,t){var s;const{value:n}=t,{roles:r}=Be();if(bs(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`参数必须是一个数组且长度大于 0参考v-permission="['admin', 'editor']"`)}};function Ts(e){e.directive("permission",Ss)}const Rs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"1em",height:"1em",fill:"currentColor"}},As=["xlink:href"];function Cs(e,t){return ut(),Jt("svg",Rs,[Gt("use",{"xlink:href":"#"+e.name},null,8,As)])}const _s={name:"SvgIcon",props:{name:{type:String,required:!0}},render:Cs};function Os(e){e.component("SvgIcon",_s)}lt.setConfig({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0,keyField:"_VXE_ID"},columnConfig:{resizable:!1},align:"center",headerAlign:"center"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function vs(e){e.use(lt)}function Fs(e){ws(e),Ts(e),Os(e),vs(e)}const Ds="grey-mode",xs="color-weakness",it=document.documentElement.classList;function Ps(){const e=Le();Oe(()=>{it.toggle(Ds,e.showGreyMode),it.toggle(xs,e.showColorWeakness)})}function ks(){return{initGreyAndColorWeakness:Ps}}function Ls(){setTimeout(()=>{ct({title:"为爱发电!",type:"success",message:q("div",null,[q("div",null,"所有源码均免费开源,如果对你有帮助,欢迎点个 Star 支持一下!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"点击传送")]),duration:0,position:"bottom-right"})},0)}function Bs(){setTimeout(()=>{ct({title:"懒人服务?",type:"warning",message:q("div",null,[q("div",null,"不想自己动手,但想移除 TS 或其他模块?也有懒人套餐!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite/issues/225"},"点击查看")]),duration:0,position:"bottom-right"})},500)}function Ns(){return{initStarNotification:Ls,initStoreNotification:Bs}}function bo(e,t=document.documentElement){return e!=null&&e.startsWith("--")?getComputedStyle(t).getPropertyValue(e):(console.error("CSS 变量名应以 '--' 开头"),"")}function he(e,t,n=document.documentElement){if(!(e!=null&&e.startsWith("--"))){console.error("CSS 变量名应以 '--' 开头");return}n.style.setProperty(e,t)}const Vt="normal",jt=[{title:"默认",name:Vt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ne=B(Yr()||Vt);function Is({clientX:e,clientY:t},n){const r=Math.hypot(Math.max(e,window.innerWidth-e),Math.max(t,window.innerHeight-t));he("--v3-theme-x",`${e}px`),he("--v3-theme-y",`${t}px`),he("--v3-theme-r",`${r}px`);const s=()=>{Ne.value=n};document.startViewTransition?document.startViewTransition(s):s()}function Us(e){document.documentElement.classList.add(e)}function Vs(e){const t=jt.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)}function js(){Oe(()=>{const e=Ne.value;Vs(e),Us(e),Zr(e)})}function qs(){return{themeList:jt,activeThemeName:Ne,initTheme:js,setTheme:Is}}var Ms={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const Hs=Kt({__name:"App",setup(e){const{initTheme:t}=qs(),{initGreyAndColorWeakness:n}=ks(),{initStarNotification:r,initStoreNotification:s}=Ns();return t(),n(),r(),s(),(o,i)=>{const u=Xt("router-view"),h=on;return ut(),Yt(h,{locale:en(Ms)},{default:Zt(()=>[Qt(u)]),_:1},8,["locale"])}}}),Ie=tn(Hs);Fs(Ie);Ie.use(an).use(M);M.isReady().then(()=>{Ie.mount("#app")});export{Gr as D,Nt as L,mo as S,po as a,os as b,yo as c,dn as d,Be as e,bo as f,Eo as g,he as h,wo as i,Wr as j,qs as k,bs as l,ho as r,go as s,Le as u};