V3 Admin Vite
-
+
diff --git a/static/403-C0zpwm4c.js b/static/403-BObg03Ui.js
similarity index 99%
rename from static/403-C0zpwm4c.js
rename to static/403-BObg03Ui.js
index e7062feb..f4ce3aad 100644
--- a/static/403-C0zpwm4c.js
+++ b/static/403-BObg03Ui.js
@@ -1 +1 @@
-import{E as r}from"./ErrorPageLayout-C_Enb4OX.js";import{q as e,t as s,aK as l,p as i,M as h,O as n,U as p,u as c}from"./vue-WmzgRGVy.js";import"./index-CRkBBxcF.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default};
+import{E as r}from"./ErrorPageLayout-E5KxcFIO.js";import{q as e,t as s,aK as l,p as i,M as h,O as n,U as p,u as c}from"./vue-WmzgRGVy.js";import"./index-DImZzDxZ.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default};
diff --git a/static/404-Cei64BCp.js b/static/404-Du6NyT8g.js
similarity index 99%
rename from static/404-Cei64BCp.js
rename to static/404-Du6NyT8g.js
index bdf8950b..2e477cc4 100644
--- a/static/404-Cei64BCp.js
+++ b/static/404-Du6NyT8g.js
@@ -1 +1 @@
-import{E as c}from"./ErrorPageLayout-C_Enb4OX.js";import{q as l,t as h,aK as e,p as s,M as p,O as M,U as f,u as i}from"./vue-WmzgRGVy.js";import"./index-CRkBBxcF.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default};
+import{E as c}from"./ErrorPageLayout-E5KxcFIO.js";import{q as l,t as h,aK as e,p as s,M as p,O as M,U as f,u as i}from"./vue-WmzgRGVy.js";import"./index-DImZzDxZ.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default};
diff --git a/static/ErrorPageLayout-C_Enb4OX.js b/static/ErrorPageLayout-E5KxcFIO.js
similarity index 87%
rename from static/ErrorPageLayout-C_Enb4OX.js
rename to static/ErrorPageLayout-E5KxcFIO.js
index ad44b02b..0f526f24 100644
--- a/static/ErrorPageLayout-C_Enb4OX.js
+++ b/static/ErrorPageLayout-E5KxcFIO.js
@@ -1 +1 @@
-import{_}from"./index-CRkBBxcF.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-WmzgRGVy.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E};
+import{_}from"./index-DImZzDxZ.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-WmzgRGVy.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E};
diff --git a/static/SwitchRoles-DPZiDoUm.js b/static/SwitchRoles-DI-Mid3p.js
similarity index 91%
rename from static/SwitchRoles-DPZiDoUm.js
rename to static/SwitchRoles-DI-Mid3p.js
index 1b243d76..7e9f310c 100644
--- a/static/SwitchRoles-DPZiDoUm.js
+++ b/static/SwitchRoles-DI-Mid3p.js
@@ -1 +1 @@
-import{e as u,_ as c}from"./index-CRkBBxcF.js";import{p as _,a as p,b as m,ai as r,q as v,t as f,v as t,T as b,u as w,U as a,O as S}from"./vue-WmzgRGVy.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+b(w(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:S(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S};
+import{e as u,_ as c}from"./index-DImZzDxZ.js";import{p as _,a as p,b as m,ai as r,q as v,t as f,v as t,T as b,u as w,U as a,O as S}from"./vue-WmzgRGVy.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+b(w(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:S(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S};
diff --git a/static/directive-99IxiI_y.js b/static/directive-CHDMcrwx.js
similarity index 95%
rename from static/directive-99IxiI_y.js
rename to static/directive-CHDMcrwx.js
index c4643b0a..e05ae136 100644
--- a/static/directive-99IxiI_y.js
+++ b/static/directive-CHDMcrwx.js
@@ -1 +1 @@
-import{e as g,_ as b}from"./index-CRkBBxcF.js";import{S as y}from"./SwitchRoles-DPZiDoUm.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-WmzgRGVy.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default};
+import{e as g,_ as b}from"./index-DImZzDxZ.js";import{S as y}from"./SwitchRoles-DI-Mid3p.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-WmzgRGVy.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default};
diff --git a/static/index-ChIhqtgs.js b/static/index-B0p8d5LO.js
similarity index 83%
rename from static/index-ChIhqtgs.js
rename to static/index-B0p8d5LO.js
index 0722ef65..af93c4db 100644
--- a/static/index-ChIhqtgs.js
+++ b/static/index-B0p8d5LO.js
@@ -1 +1 @@
-import{_ as n}from"./index-CRkBBxcF.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-WmzgRGVy.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default};
+import{_ as n}from"./index-DImZzDxZ.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-WmzgRGVy.js";import"./element--NbQy_BS.js";import"./vxe-hsLCkclr.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default};
diff --git a/static/index-BB3gFZc-.js b/static/index-C6qE_6BS.js
similarity index 79%
rename from static/index-BB3gFZc-.js
rename to static/index-C6qE_6BS.js
index 6a9f6e3e..493ba24e 100644
--- a/static/index-BB3gFZc-.js
+++ b/static/index-C6qE_6BS.js
@@ -1 +1 @@
-import{i as e}from"./index-CRkBBxcF.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u};
+import{i as e}from"./index-DImZzDxZ.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u};
diff --git a/static/index-CRkBBxcF.js b/static/index-CRkBBxcF.js
deleted file mode 100644
index 63cf1478..00000000
--- a/static/index-CRkBBxcF.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-D7frv3-c.js","static/vue-WmzgRGVy.js","static/useWatermark-D4u7zM2g.js","static/element--NbQy_BS.js","static/index.vue_vue_type_script_setup_true_lang-CCYxwqLq.js","static/vxe-hsLCkclr.js","static/index-Bua9fczq.css","static/index-B2jnAZnk.js","static/403-C0zpwm4c.js","static/ErrorPageLayout-C_Enb4OX.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-Cei64BCp.js","static/index-iWB67Lj6.js","static/index-BOQekaY2.css","static/index-8nrraFH_.js","static/index-Dv11vANz.css","static/index-Ciu8yIjz.js","static/index-Dy0QV2G7.js","static/index-BB3gFZc-.js","static/index-krJKiOLS.css","static/index-10DfpToL.js","static/index-188w3tf5.js","static/index-CDm88bV6.css","static/index-BcE_ohSF.js","static/index-ChIhqtgs.js","static/index-f-TeK5VI.js","static/index-DwCfFOrx.js","static/index-DHoBxroy.js","static/index-BkdGXHwQ.js","static/use-fetch-select-CI-oI1mN.js","static/use-fullscreen-loading-BGPoLZ5k.js","static/use-watermark-D1NBKFBu.js","static/use-watermark-BtM2la4P.css","static/page-DAFWcdYc.js","static/SwitchRoles-DPZiDoUm.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-99IxiI_y.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]);
-var Jt=Object.defineProperty;var $t=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>$t(e,typeof t!="symbol"?t+"":t,n);import{a as B,w as Re,ay as Gt,az as oe,b as dt,p as ft,M as Kt,u as Xt,ai as He,q as mt,O as Yt,U as Zt,aA as Qt,aB as en,A as tn,f as nn,t as rn,v as on,au as sn}from"./vue-WmzgRGVy.js";import{E as an,b as Q,c as un,m as cn,e as ln,g as dn,i as fn,f as mn}from"./element--NbQy_BS.js";import{V as Ce,a as pn}from"./vxe-hsLCkclr.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const H="v3-admin-vite";class A{}I(A,"TOKEN",`${H}-token-key`),I(A,"CONFIG_LAYOUT",`${H}-config-layout-key`),I(A,"SIDEBAR_STATUS",`${H}-sidebar-status-key`),I(A,"ACTIVE_THEME_NAME",`${H}-active-theme-name-key`),I(A,"VISITED_VIEWS",`${H}-visited-views-key`),I(A,"CACHED_VIEWS",`${H}-cached-views-key`);const hn=()=>{const e=localStorage.getItem(A.CONFIG_LAYOUT);return e?JSON.parse(e):null},En=e=>{localStorage.setItem(A.CONFIG_LAYOUT,JSON.stringify(e))},Yo=()=>{localStorage.removeItem(A.CONFIG_LAYOUT)},Zo=()=>localStorage.getItem(A.SIDEBAR_STATUS),Qo=e=>{localStorage.setItem(A.SIDEBAR_STATUS,e)},gn=()=>localStorage.getItem(A.ACTIVE_THEME_NAME),yn=e=>{localStorage.setItem(A.ACTIVE_THEME_NAME,e)},wn=()=>{const e=localStorage.getItem(A.VISITED_VIEWS);return JSON.parse(e??"[]")},bn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(A.VISITED_VIEWS,JSON.stringify(e))},Sn=()=>{const e=localStorage.getItem(A.CACHED_VIEWS);return JSON.parse(e??"[]")},vn=e=>{localStorage.setItem(A.CACHED_VIEWS,JSON.stringify(e))},pt="normal",ht=[{title:"默认",name:pt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Oe=B(gn()||pt),_n=e=>{Oe.value=e},Tn=e=>{document.documentElement.classList.add(e)},An=e=>{const t=ht.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)},Rn=()=>{Re(()=>{const e=Oe.value;An(e),Tn(e),yn(e)})};function Cn(){return{themeList:ht,activeThemeName:Oe,initTheme:Rn,setTheme:_n}}const Fe=Gt();var On=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(On||{}),Et=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(Et||{});const es="opened",ts="closed",Fn={layoutMode:Et.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},Dn={...Fn,...hn()},De=oe("settings",()=>{const e={};for(const[n,r]of Object.entries(Dn)){const o=B(r);e[n]=o,dt(o,()=>{const s=t();En(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),ze="grey-mode",qe="color-weakness",X=document.documentElement.classList,kn=()=>{const e=De();Re(()=>{e.showGreyMode?X.add(ze):X.remove(ze),e.showColorWeakness?X.add(qe):X.remove(qe)})};function xn(){return{initGreyAndColorWeakness:kn}}var Pn={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 Bn=ft({__name:"App",setup(e){const{initTheme:t}=Cn(),{initGreyAndColorWeakness:n}=xn();return t(),n(),an({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(r,o)=>{const s=He("router-view"),i=He("el-config-provider");return mt(),Kt(i,{locale:Xt(Pn)},{default:Yt(()=>[Zt(s)]),_:1},8,["locale"])}}}),Ln="modulepreload",Nn=function(e){return"/v3-admin-vite/"+e},We={},T=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=Nn(h),h in We)return;We[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Ln,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},In=Qt("/v3-admin-vite/"),gt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-D7frv3-c.js"),__vite__mapDeps([0,1,2,3,4,5,6])),yt=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-B2jnAZnk.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-C0zpwm4c.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-Cei64BCp.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-iWB67Lj6.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-8nrraFH_.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-Ciu8yIjz.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-Dy0QV2G7.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-10DfpToL.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-188w3tf5.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-BcE_ohSF.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-ChIhqtgs.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-f-TeK5VI.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-DwCfFOrx.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-DHoBxroy.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-BkdGXHwQ.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-CI-oI1mN.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-BGPoLZ5k.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-D1NBKFBu.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Je=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-DAFWcdYc.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-99IxiI_y.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=en({history:In,routes:yt});function Vn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}const Un=oe("tags-view",()=>{const{cacheTagsView:e}=De(),t=B(e?wn():[]),n=B(e?Sn():[]);return Re(()=>{bn(t.value),vn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}});function Y(e){for(var t=1;t"u")){i=Y({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cke.get(A.TOKEN),$e=e=>{ke.set(A.TOKEN,e)},Ge=()=>{ke.remove(A.TOKEN)};function wt(e,t){return function(){return e.apply(t,arguments)}}const{toString:jn}=Object.prototype,{getPrototypeOf:Pe}=Object,se=(e=>t=>{const n=jn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>se(t)===e),ie=e=>t=>typeof t===e,{isArray:z}=Array,J=ie("undefined");function Hn(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bt=P("ArrayBuffer");function zn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bt(e.buffer),t}const qn=ie("string"),k=ie("function"),St=ie("number"),ae=e=>e!==null&&typeof e=="object",Wn=e=>e===!0||e===!1,ee=e=>{if(se(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Jn=P("Date"),$n=P("File"),Gn=P("Blob"),Kn=P("FileList"),Xn=e=>ae(e)&&k(e.pipe),Yn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=se(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},Zn=P("URLSearchParams"),[Qn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(P),rr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_t=e=>!J(e)&&e!==U;function Ee(){const{caseless:e}=_t(this)&&this||{},t={},n=(r,o)=>{const s=e&&vt(t,o)||o;ee(t[s])&&ee(r)?t[s]=Ee(t[s],r):ee(r)?t[s]=Ee({},r):z(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r($(t,(o,s)=>{n&&k(o)?e[s]=wt(o,n):e[s]=o},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ir=(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)},ar=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ur=(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},cr=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!St(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),dr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mr=P("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ke=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=P("RegExp"),Tt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Er=e=>{Tt(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(k(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+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return z(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,le="abcdefghijklmnopqrstuvwxyz",Xe="0123456789",At={DIGIT:Xe,ALPHA:le,ALPHA_DIGIT:le+le.toUpperCase()+Xe},br=(e=16,t=At.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sr(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vr=e=>{const t=new Array(10),n=(r,o)=>{if(ae(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=z(r)?[]:{};return $(r,(i,c)=>{const h=n(i,o+1);!J(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},_r=P("AsyncFunction"),Tr=e=>e&&(ae(e)||k(e))&&k(e.then)&&k(e.catch),Rt=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",k(U.postMessage)),Ar=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Rt,a={isArray:z,isArrayBuffer:bt,isBuffer:Hn,isFormData:Yn,isArrayBufferView:zn,isString:qn,isNumber:St,isBoolean:Wn,isObject:ae,isPlainObject:ee,isReadableStream:Qn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:J,isDate:Jn,isFile:$n,isBlob:Gn,isRegExp:hr,isFunction:k,isStream:Xn,isURLSearchParams:Zn,isTypedArray:lr,isFileList:Kn,forEach:$,merge:Ee,extend:or,trim:rr,stripBOM:sr,inherits:ir,toFlatObject:ar,kindOf:se,kindOfTest:P,endsWith:ur,toArray:cr,forEachEntry:dr,matchAll:fr,isHTMLForm:mr,hasOwnProperty:Ke,hasOwnProp:Ke,reduceDescriptors:Tt,freezeMethods:Er,toObjectSet:gr,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:vt,global:U,isContextDefined:_t,ALPHABET:At,generateString:br,isSpecCompliantForm:Sr,toJSONObject:vr,isAsyncFn:_r,isThenable:Tr,setImmediate:Rt,asap:Ar};function g(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.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 Ct=g.prototype,Ot={};["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=>{Ot[e]={value:e}});Object.defineProperties(g,Ot);Object.defineProperty(Ct,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Ct);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rr=null;function ge(e){return a.isPlainObject(e)||a.isArray(e)}function Ft(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ye(e,t,n){return e?e.concat(t).map(function(o,s){return o=Ft(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(ge)}const Or=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(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Cr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=Ft(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?Ye([f],S,s):i===null?f:f+"[]",d(v))}),!1}return ge(u)?!0:(t.append(Ye(m,f,s),d(u)),!1)}const l=[],E=Object.assign(Or,{defaultVisitor:p,convertValue:d,isVisitable:ge});function w(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(b)?b.trim():b,f,E))===!0&&w(y,f?f.concat(b):[b])}),l.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 Be(e,t){this._pairs=[],e&&ue(e,this,t)}const Dt=Be.prototype;Dt.append=function(t,n){this._pairs.push([t,n])};Dt.toString=function(t){const n=t?function(r){return t.call(this,r,Ze)}:Ze;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kt(e,t,n){if(!t)return e;const r=n&&n.encode||Fr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Be(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Qe{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 xt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dr=typeof URLSearchParams<"u"?URLSearchParams:Be,kr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:Dr,FormData:kr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Le=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,Br=Le&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Le&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Lr,navigator:ye,origin:Nr},Symbol.toStringTag,{value:"Module"})),F={...Ir,...Pr};function Vr(e,t){return ue(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ur(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Mr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ur(r),o,n,0)}),n}return null}function jr(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:xt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Pt(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 c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ue(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),jr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.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 Hr=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"]),zr=e=>{const t={};let n,r,o;return e&&e.split(`
-`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Hr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},et=Symbol("internals");function W(e){return e&&String(e).trim().toLowerCase()}function te(e){return e===!1||e==null?e:a.isArray(e)?e.map(te):String(e)}function qr(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 Wr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function de(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $r(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class D{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,h,d){const p=W(h);if(!p)throw new Error("header name must be a non-empty string");const l=a.findKey(o,p);(!l||o[l]===void 0||d===!0||d===void 0&&o[l]!==!1)&&(o[l||h]=te(c))}const i=(c,h)=>a.forEach(c,(d,p)=>s(d,p,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Wr(t))i(zr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())s(h,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=W(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return qr(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=W(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||de(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=W(i),i){const c=a.findKey(r,i);c&&(!n||de(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||de(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=te(o),delete n[s];return}const c=t?Jr(s):String(s).trim();c!==s&&delete n[s],n[c]=te(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=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(o=>r.set(o)),r}static accessor(t){const r=(this[et]=this[et]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=W(i);r[c]||($r(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(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 fe(e,t){const n=this||G,r=t||n,o=D.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Bt(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(q,g,{__CANCEL__:!0});function Lt(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 Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[s];i||(i=d),n[o]=h,r[o]=d;let l=s,E=0;for(;l!==o;)E+=n[l++],l=l%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),l=p-n;l>=r?i(d,p):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const ne=(e,t,n=3)=>{let r=0;const o=Kr(50,250);return Xr(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,h=i-r,d=o(h),p=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:d||void 0,estimated:d&&c&&p?(c-i)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},tt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nt=e=>(...t)=>a.asap(()=>e(...t)),Yr=F.hasStandardBrowserEnv?function(){const t=F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;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 r=o(window.location.href),function(i){const c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Zr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!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 Qr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nt(e,t){return e&&!Qr(t)?eo(e,t):t}const rt=e=>e instanceof D?{...e}:e;function j(e,t){t=t||{};const n={};function r(d,p,l){return a.isPlainObject(d)&&a.isPlainObject(p)?a.merge.call({caseless:l},d,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function o(d,p,l){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d,l)}else return r(d,p,l)}function s(d,p){if(!a.isUndefined(p))return r(void 0,p)}function i(d,p){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,l){if(l in t)return r(d,p);if(l in e)return r(void 0,d)}const h={url:s,method:s,data:s,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:c,headers:(d,p)=>o(rt(d),rt(p),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(p){const l=h[p]||o,E=l(e[p],t[p],p);a.isUndefined(E)&&l!==c||(n[p]=E)}),n}const It=e=>{const t=j({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=D.from(i),t.url=kt(Nt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(a.isFormData(n)){if(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[d,...p]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...p].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Yr(t.url))){const d=o&&s&&Zr.read(s);d&&i.set(o,d)}return t},to=typeof XMLHttpRequest<"u",no=to&&function(e){return new Promise(function(n,r){const o=It(e);let s=o.data;const i=D.from(o.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:d}=o,p,l,E,w,u;function f(){w&&w(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const v=D.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};Lt(function(O){n(O),f()},function(O){r(O),f()},_),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=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||xt;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new g(S,_.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,m)),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(S,_){m.setRequestHeader(_,S)}),a.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),d&&([E,u]=ne(d,!0),m.addEventListener("progress",E)),h&&m.upload&&([l,w]=ne(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=v=>{m&&(r(!v||v.type?new q(null,e,m):v),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const b=Gr(o.url);if(b&&F.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}m.send(s||null)})},ro=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof g?p:new q(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},oo=function*(e,t){let n=e.byteLength;if(n{const o=so(e,t);let s=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:p}=await o.next();if(d){c(),h.close();return}let l=p.byteLength;if(n){let E=s+=l;n(E)}h.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(h){return c(h),o.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vt=ce&&typeof ReadableStream=="function",ao=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ut=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uo=Vt&&Ut(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),st=64*1024,we=Vt&&Ut(()=>a.isReadableStream(new Response("").body)),re={stream:we&&(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 co=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(F.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 ao(e)).byteLength},lo=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??co(t)},fo=ce&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:d,headers:p,withCredentials:l="same-origin",fetchOptions:E}=It(e);d=d?(d+"").toLowerCase():"text";let w=ro([o,s&&s.toAbortSignal()],i),u;const f=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(h&&uo&&n!=="get"&&n!=="head"&&(m=await lo(p,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(a.isFormData(r)&&(C=_.headers.get("content-type"))&&p.setContentType(C),_.body){const[O,x]=tt(m,ne(nt(h)));r=ot(_.body,st,O,x)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let b=await fetch(u);const v=we&&(d==="stream"||d==="response");if(we&&(c||v&&f)){const _={};["status","statusText","headers"].forEach(je=>{_[je]=b[je]});const C=a.toFiniteNumber(b.headers.get("content-length")),[O,x]=c&&tt(C,ne(nt(c),!0))||[];b=new Response(ot(b.body,st,O,()=>{x&&x(),f&&f()}),_)}d=d||"text";let S=await re[a.findKey(re,d)||"text"](b,e);return!v&&f&&f(),await new Promise((_,C)=>{Lt(_,C,{data:S,headers:D.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:u})})}catch(y){throw f&&f(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,u),{cause:y.cause||y}):g.from(y,y&&y.code,e,u)}}),be={http:Rr,xhr:no,fetch:fo};a.forEach(be,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const it=e=>`- ${e}`,mo=e=>a.isFunction(e)||e===null||e===!1,Mt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
-`+s.map(it).join(`
-`):" "+it(s[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:be};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q(null,e)}function at(e){return me(e),e.headers=D.from(e.headers),e.data=fe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mt.getAdapter(e.adapter||G.adapter)(e).then(function(r){return me(e),r.data=fe.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return Bt(r)||(me(e),r&&r.response&&(r.response.data=fe.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const jt="1.7.7",Ne={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ne[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ut={};Ne.transitional=function(t,n,r){function o(s,i){return"[Axios v"+jt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new g(o(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!ut[i]&&(ut[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};function po(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 o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],h=c===void 0||i(c,s,e);if(h!==!0)throw new g("option "+s+" must be "+h,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,g.ERR_BAD_OPTION)}}const Se={assertOptions:po,validators:Ne},L=Se.validators;class M{constructor(t){this.defaults=t,this.interceptors={request:new Qe,response:new Qe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
-`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=j(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Se.assertOptions(r,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Se.assertOptions(o,{encode:L.function,serialize:L.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete s[u]}),n.headers=D.concat(i,s);const c=[];let h=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(h=h&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const d=[];this.interceptors.response.forEach(function(f){d.push(f.fulfilled,f.rejected)});let p,l=0,E;if(!h){const u=[at.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,d),E=u.length,p=Promise.resolve(n);l{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new q(s,i,c),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 Ie(function(o){t=o}),cancel:t}}}function ho(e){return function(n){return e.apply(null,n)}}function Eo(e){return a.isObject(e)&&e.isAxiosError===!0}const ve={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(ve).forEach(([e,t])=>{ve[t]=e});function Ht(e){const t=new M(e),n=wt(M.prototype.request,t);return a.extend(n,M.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ht(j(e,o))},n}const R=Ht(G);R.Axios=M;R.CanceledError=q;R.CancelToken=Ie;R.isCancel=Bt;R.VERSION=jt;R.toFormData=ue;R.AxiosError=g;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=ho;R.isAxiosError=Eo;R.mergeConfig=j;R.AxiosHeaders=D;R.formToJSON=e=>Pt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Mt.getAdapter;R.HttpStatusCode=ve;R.default=R;function ct(){Ue().logout(),location.reload()}function go(){const e=R.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var s;const n=t.data,r=(s=t.request)==null?void 0:s.responseType;if(r==="blob"||r==="arraybuffer")return n;const o=n.code;if(o===void 0)return Q.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(o){case 0:return n;case 401:return ct();default:return Q.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(un(t,"response.status")){case 400:t.message="请求错误";break;case 401:ct();break;case 403:t.message="拒绝访问";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 Q.error(t.message),Promise.reject(t)}),e}function yo(e){return function(t){const n=xe(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1",data:{}},o=cn(r,t);return e(o)}}const wo=go(),Ve=yo(wo);function ns(){return Ve({url:"login/code",method:"get"})}function bo(e){return Ve({url:"users/login",method:"post",data:e})}function So(){return Ve({url:"users/info",method:"get"})}const Ue=oe("user",()=>{const e=B(xe()||""),t=B([]),n=B(""),r=Un(),o=De(),s=async({username:l,password:E,code:w})=>{const{data:u}=await bo({username:l,password:E,code:w});$e(u.token),e.value=u.token},i=async()=>{var E;const{data:l}=await So();n.value=l.username,t.value=((E=l.roles)==null?void 0:E.length)>0?l.roles:gt.defaultRoles},c=async l=>{const E="token-"+l;e.value=E,$e(E),window.location.reload()},h=()=>{Ge(),e.value="",t.value=[],Vn(),p()},d=()=>{Ge(),e.value="",t.value=[]},p=()=>{o.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,login:s,getInfo:i,changeRoles:c,logout:h,resetToken:d}});function vo(){return Ue(Fe)}const _o=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(o=>n.includes(o)):!0},zt=(e,t)=>{const n=[];return e.forEach(r=>{const o={...r};_o(t,o)&&(o.children&&(o.children=zt(o.children,t)),n.push(o))}),n},To=oe("permission",()=>{const e=B([]),t=B([]),n=s=>{const i=zt(Je,s);o(i)},r=()=>{o(Je)},o=s=>{e.value=yt.concat(s),t.value=s};return{routes:e,addRoutes:t,setRoutes:n,setAllRoutes:r}});function Ao(){return To(Fe)}function Ro(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(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const _e=Ro(),Te=Symbol("ROUTE_CHANGE");let Ae;const Co=e=>{_e.emit(Te,e),Ae=e};function rs(){const e=[],t=(r,o=!1)=>{e.push(r),_e.on(Te,r),o&&Ae&&r(Ae)},n=r=>{_e.off(Te,r)};return tn(()=>{for(let r=0;r{qt.value=e?`${lt} | ${e}`:lt};dt(qt,(e,t)=>{document&&e!==t&&(document.title=e)});function Fo(){return{setTitle:Oo}}const Do=["/login"],ko=[],xo=e=>Do.indexOf(e.path)!==-1||ko.indexOf(e.name)!==-1;var Wt={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ln,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:'
'};n.configure=function(u){var f,m;for(f in u)m=u[f],m!==void 0&&u.hasOwnProperty(f)&&(r[f]=m);return this},n.status=null,n.set=function(u){var f=n.isStarted();u=o(u,r.minimum,1),n.status=u===1?null:u;var m=n.render(!f),y=m.querySelector(r.barSelector),b=r.speed,v=r.easing;return m.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(u,b,v)),u===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 u=function(){setTimeout(function(){n.status&&(n.trickle(),u())},r.trickleSpeed)};return r.trickle&&u(),this},n.done=function(u){return!u&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(u){var f=n.status;return f?(typeof u!="number"&&(u=(1-f)*o(Math.random()*f,.1,.95)),f=o(f+u,0,.994),n.set(f)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,f=0;n.promise=function(m){return!m||m.state()==="resolved"?this:(f===0&&n.start(),u++,f++,m.always(function(){f--,f===0?(u=0,n.done()):n.set((u-f)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");p(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=r.template;var m=f.querySelector(r.barSelector),y=u?"-100":s(n.status||0),b=document.querySelector(r.parent),v;return h(m,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(v=f.querySelector(r.spinnerSelector),v&&w(v)),b!=document.body&&p(b,"nprogress-custom-parent"),b.appendChild(f),f},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var u=document.getElementById("nprogress");u&&w(u)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var u=document.body.style,f="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return f+"Perspective"in u?"translate3d":f+"Transform"in u?"translate":"margin"};function o(u,f,m){return um?m:u}function s(u){return(-1+u)*100}function i(u,f,m){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+s(u)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+s(u)+"%,0)"}:y={"margin-left":s(u)+"%"},y.transition="all "+f+"ms "+m,y}var c=function(){var u=[];function f(){var m=u.shift();m&&m(f)}return function(m){u.push(m),u.length==1&&f()}}(),h=function(){var u=["Webkit","O","Moz","ms"],f={};function m(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_,C){return C.toUpperCase()})}function y(S){var _=document.body.style;if(S in _)return S;for(var C=u.length,O=S.charAt(0).toUpperCase()+S.slice(1),x;C--;)if(x=u[C]+O,x in _)return x;return S}function b(S){return S=m(S),f[S]||(f[S]=y(S))}function v(S,_,C){_=b(_),S.style[_]=C}return function(S,_){var C=arguments,O,x;if(C.length==2)for(O in _)x=_[O],x!==void 0&&_.hasOwnProperty(O)&&v(S,O,x);else v(S,C[1],C[2])}}();function d(u,f){var m=typeof u=="string"?u:E(u);return m.indexOf(" "+f+" ")>=0}function p(u,f){var m=E(u),y=m+f;d(m,f)||(u.className=y.substring(1))}function l(u,f){var m=E(u),y;d(u,f)&&(y=m.replace(" "+f+" "," "),u.className=y.substring(1,y.length-1))}function E(u){return(" "+(u.className||"")+" ").replace(/\s+/gi," ")}function w(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return n})})(Wt);var Po=Wt.exports;const Me=dn(Po);Me.configure({showSpinner:!1});const{setTitle:Bo}=Fo(),Z=vo(),pe=Ao();N.beforeEach(async(e,t,n)=>{if(Me.start(),!xe())return xo(e)?n():n("/login");if(e.path==="/login")return n({path:"/"});if(Z.roles.length!==0)return n();try{await Z.getInfo();const r=Z.roles;gt.dynamic?pe.setRoutes(r):pe.setAllRoutes(),pe.addRoutes.forEach(o=>N.addRoute(o)),n({...e,replace:!0})}catch(r){Z.resetToken(),Q.error(r.message||"路由守卫过程发生错误"),n("/login")}});N.afterEach(e=>{Co(e),Bo(e.meta.title),Me.done()});const Lo={class:"svg-icon"},No=["href"],Io=ft({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=nn(()=>`#${t.prefix}-${t.name}`);return(r,o)=>(mt(),rn("svg",Lo,[on("use",{href:n.value},null,8,No)]))}}),Vo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Uo=Vo(Io,[["__scopeId","data-v-2e2e731e"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function Mo(e){e.component("SvgIcon",Uo)}function jo(e){e.use(fn)}function Ho(e){for(const[t,n]of Object.entries(mn))e.component(t,n)}Ce.use(pn);Ce.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 zo(e){e.use(Ce)}function qo(e){jo(e),Ho(e),zo(e)}const Wo={mounted(e,t){var o;const{value:n}=t,{roles:r}=Ue();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((o=e.parentNode)==null||o.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function Jo(e){e.directive("permission",Wo)}const K=sn(Bn);qo(K);Mo(K);Jo(K);K.use(Fe).use(N);N.isReady().then(()=>{K.mount("#app")});export{On as D,Et as L,ts as S,Vo as _,es as a,De as b,Un as c,To as d,Ue as e,ns as f,Zo as g,Cn as h,Ve as i,Yo as r,Qo as s,rs as u};
diff --git a/static/index-10DfpToL.js b/static/index-Cxm2aWrZ.js
similarity index 97%
rename from static/index-10DfpToL.js
rename to static/index-Cxm2aWrZ.js
index 73c4096f..325c4e40 100644
--- a/static/index-10DfpToL.js
+++ b/static/index-Cxm2aWrZ.js
@@ -1 +1 @@
-import{g as D,d as T}from"./index-BB3gFZc-.js";import{U as s,p as P,a as _,Z as y,n as $,ai as x,q as M,t as S,O as p,K as k,S as h}from"./vue-WmzgRGVy.js";import{H as U,b as w}from"./element--NbQy_BS.js";import"./index-CRkBBxcF.js";import"./vxe-hsLCkclr.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),u=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=y({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};U.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default};
+import{g as D,d as T}from"./index-C6qE_6BS.js";import{U as s,p as P,a as _,Z as y,n as $,ai as x,q as M,t as S,O as p,K as k,S as h}from"./vue-WmzgRGVy.js";import{H as U,b as w}from"./element--NbQy_BS.js";import"./index-DImZzDxZ.js";import"./vxe-hsLCkclr.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),u=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=y({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};U.confirm(t,"提示",o).then(()=>{T(e.id).then(()=>{w.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default};
diff --git a/static/index-D7frv3-c.js b/static/index-D7frv3-c.js
deleted file mode 100644
index 09b215fe..00000000
--- a/static/index-D7frv3-c.js
+++ /dev/null
@@ -1 +0,0 @@
-import{az as lt,Z as ct,a as R,b as Oe,E as qe,e as He,A as je,f as M,p as A,q as i,t as C,T as B,u as d,ai as g,v as S,U as u,O as _,W as Xe,M as w,Q as de,aC as it,R as I,aD as he,aE as ge,a8 as Z,a2 as ce,F as q,H as fe,aa as ut,S as K,I as O,aF as Je,w as pe,aG as dt,aH as Ke,J as Ge,d as Ye,s as ft,a9 as le,aI as oe,n as pt,aJ as mt,P as ye,V as be}from"./vue-WmzgRGVy.js";import{g as _t,S as Ze,D as ee,s as Fe,a as vt,u as we,b as G,L as te,_ as D,c as Qe,d as $e,e as ht,r as gt}from"./index-CRkBBxcF.js";import{u as yt}from"./useWatermark-D4u7zM2g.js";import{h as bt,j as wt,g as kt,k as St,b as me,l as xt,n as Ct,o as et,u as $t,r as Tt,p as Et,q as Vt,s as Mt,t as It}from"./element--NbQy_BS.js";import{_ as Lt}from"./index.vue_vue_type_script_setup_true_lang-CCYxwqLq.js";import"./vxe-hsLCkclr.js";function At(o){o?Fe(vt):Fe(Ze)}const se=lt("app",()=>{const o=ct({opened:_t()!==Ze,withoutAnimation:!1}),e=R(ee.Desktop);return Oe(()=>o.opened,s=>At(s)),{device:e,sidebar:o,toggleSidebar:s=>{o.opened=!o.opened,o.withoutAnimation=s},closeSidebar:s=>{o.opened=!1,o.withoutAnimation=s},toggleDevice:s=>{e.value=s}}}),Rt=992,Dt=()=>{const o=se(),{listenerRouteChange:e}=we(),t=()=>document.body.getBoundingClientRect().width-1