'};n.configure=function(u){var d,p;for(d in u)p=u[d],p!==void 0&&u.hasOwnProperty(d)&&(r[d]=p);return this},n.status=null,n.set=function(u){var d=n.isStarted();u=s(u,r.minimum,1),n.status=u===1?null:u;var p=n.render(!d),y=p.querySelector(r.barSelector),b=r.speed,T=r.easing;return p.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(u,b,T)),u===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{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 d=n.status;return d?(typeof u!="number"&&(u=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+u,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,d=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(d===0&&n.start(),u++,d++,p.always(function(){d--,d===0?(u=0,n.done()):n.set((u-d)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var p=d.querySelector(r.barSelector),y=u?"-100":o(n.status||0),b=document.querySelector(r.parent),T;return h(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),b!=document.body&&m(b,"nprogress-custom-parent"),b.appendChild(d),d},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,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function s(u,d,p){return up?p:u}function o(u){return(-1+u)*100}function i(u,d,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(u)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(u)+"%,0)"}:y={"margin-left":o(u)+"%"},y.transition="all "+d+"ms "+p,y}var c=function(){var u=[];function d(){var p=u.shift();p&&p(d)}return function(p){u.push(p),u.length==1&&d()}}(),h=function(){var u=["Webkit","O","Moz","ms"],d={};function p(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 _=u.length,v=S.charAt(0).toUpperCase()+S.slice(1),P;_--;)if(P=u[_]+v,P in R)return P;return S}function b(S){return S=p(S),d[S]||(d[S]=y(S))}function T(S,R,_){R=b(R),S.style[R]=_}return function(S,R){var _=arguments,v,P;if(_.length==2)for(v in R)P=R[v],P!==void 0&&R.hasOwnProperty(v)&&T(S,v,P);else T(S,_[1],_[2])}}();function f(u,d){var p=typeof u=="string"?u:E(u);return p.indexOf(" "+d+" ")>=0}function m(u,d){var p=E(u),y=p+d;f(p,d)||(u.className=y.substring(1))}function l(u,d){var p=E(u),y;f(u,d)&&(y=p.replace(" "+d+" "," "),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})}(ee)),ee.exports}var gs=Es();const Ce=sn(gs);Ce.configure({showSpinner:!1});const{setTitle:ys}=ms();function ws(e){e.beforeEach(async(t,n)=>{Ce.start();const r=Le(),s=pn();if(!ve())return ls(t)?!0:"/login";if(t.path==="/login")return"/";if(r.roles.length!==0)return!0;try{await r.getInfo();const o=r.roles;return Oe.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||"路由守卫发生错误"),"/login"}}),e.afterEach(t=>{ds(t),ys(t.meta.title),Ce.done()})}const te=()=>O(()=>import("./index-CLU410dT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),Vt=[{path:"/redirect",component:te,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>O(()=>import("./index-BNIeaqoo.js"),__vite__mapDeps([19,1]))}]},{path:"/403",component:()=>O(()=>import("./403-Dt3cio7M.js"),__vite__mapDeps([20,21,10,3,1,22,7,11])),meta:{hidden:!0}},{path:"/404",component:()=>O(()=>import("./404-S0lUbIB9.js"),__vite__mapDeps([23,21,10,3,1,22,7,11])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>O(()=>import("./index-6cE21jtS.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-CVC3JeZD.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-B0evTqQr.js"),__vite__mapDeps([29,10,1])),name:"UnoCSS",meta:{title:"UnoCSS"}},{path:"element-plus",component:()=>O(()=>import("./index-BjgadQQW.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-f3mIFLdb.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-BhlbFP62.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-BJTMCiV0.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-BxAeHKQj.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-Cbm8IqAY.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-BnXx42oM.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-C7SWVFfM.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-BmHQRXrG.js"),__vite__mapDeps([51,48,3,1,10,49,14,15,11,52,13,7])),name:"PermissionButtonLevel",meta:{title:"按钮级",roles:void 0}}]}],M=Jt({history:Oe.history,routes:Vt});function bs(){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()}}ws(M);function Ss(e){for(const[t,n]of Object.entries(on))e.component(t,n)}function Ts(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}function So(e){return/^(https?:|mailto:|tel:)/.test(e)}const Rs={mounted(e,t){var s;const{value:n}=t,{roles:r}=Le();if(Ts(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 As(e){e.directive("permission",Rs)}const Cs={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"1em",height:"1em",fill:"currentColor"}},_s=["xlink:href"];function Os(e,t){return ut(),Gt("svg",Cs,[Kt("use",{"xlink:href":"#"+e.name},null,8,_s)])}const Fs={name:"SvgIcon",props:{name:{type:String,required:!0}},render:Os};function vs(e){e.component("SvgIcon",Fs)}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 Ds(e){e.use(lt)}function xs(e){Ss(e),As(e),vs(e),Ds(e)}const Ps="grey-mode",ks="color-weakness",it=document.documentElement.classList;function Ls(){const e=ke();_e(()=>{it.toggle(Ps,e.showGreyMode),it.toggle(ks,e.showColorWeakness)})}function Bs(){return{initGreyAndColorWeakness:Ls}}function Ns(){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 Is(){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 Us(){return{initStarNotification:Ns,initStoreNotification:Is}}const jt="normal",qt=[{title:"默认",name:jt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Be=B(Qr()||jt);function Vs(e){Be.value=e}function js(e){document.documentElement.classList.add(e)}function qs(e){const t=qt.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)}function Ms(){_e(()=>{const e=Be.value;qs(e),js(e),es(e)})}function Hs(){return{themeList:qt,activeThemeName:Be,initTheme:Ms,setTheme:Vs}}var zs={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 $s=Xt({__name:"App",setup(e){const{initTheme:t}=Hs(),{initGreyAndColorWeakness:n}=Bs(),{initStarNotification:r,initStoreNotification:s}=Us();return t(),n(),r(),s(),(o,i)=>{const c=Yt("router-view"),h=an;return ut(),Zt(h,{locale:tn(zs)},{default:Qt(()=>[en(c)]),_:1},8,["locale"])}}}),Ne=nn($s);xs(Ne);Ne.use(un).use(M);M.isReady().then(()=>{Ne.mount("#app")});export{Xr as D,It as L,Eo as S,ho as a,as as b,bo as c,pn as d,Le as e,Gr as f,yo as g,Hs as h,So as i,Ts as j,go as r,wo as s,ke as u};
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Cc0Q6aZX.js","assets/vue-BpN0M2Uf.js","assets/useWatermark-DzJZhtRW.js","assets/element-D3zEiHvy.js","assets/index.vue_vue_type_script_setup_true_lang-BEfbkUj3.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-wKYGiZNQ.js","assets/index-BTbKEf9r.css","assets/el-tab-pane-BURcj4qt.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-BNIeaqoo.js","assets/403-H4HFnXrQ.js","assets/Layout-DOPO-6Am.js","assets/Layout-DVPSJTOz.css","assets/404-7SvOiNDE.js","assets/index-Dbigs4Ij.js","assets/index-EO-JyDXZ.css","assets/el-form-item-CKZiX9BY.css","assets/index-BNwcH65o.js","assets/index-Fw2ODUIB.css","assets/index-B0evTqQr.js","assets/index-BKAAXlgT.js","assets/el-message-box-CgBAqDJF.js","assets/el-message-box-CP1fziBF.css","assets/index-CJD6py5e.css","assets/el-loading-C5IeuJ3V.css","assets/el-select-BSBZNJn6.css","assets/index-ywjeI0F5.js","assets/index-DAKNOHIG.css","assets/index-QLy0eePp.js","assets/index-BG5pHSaj.css","assets/index-BEUCV1gw.js","assets/use-fetch-select-Bl4sUC8Z.js","assets/use-fetch-select-sZ4ScpXH.css","assets/use-fullscreen-loading-Cu9L6jh_.js","assets/use-fullscreen-loading-BZZfQs7_.css","assets/use-watermark-voOUOkL0.js","assets/use-watermark-DHr8hXba.css","assets/page-level-V1OZHkTr.js","assets/SwitchRoles-Dxn7_vsM.js","assets/SwitchRoles-CRycCodv.css","assets/page-level-nLO9Fg8q.css","assets/button-level-AQBN_go_.js","assets/button-level-ClaOf9yw.css"])))=>i.map(i=>d[i]);
+var Mt=Object.defineProperty;var zt=(e,t,n)=>t in e?Mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>zt(e,typeof t!="symbol"?t+"":t,n);import{at as $t,au as Wt,av as se,r as B,w as ut,e as Oe,U as Jt,aw as Gt,v as Kt,x as ct,A as Xt,aa as q,t as Yt,ac as Zt,C as Qt,D as en,L as tn,u as nn,aq as rn}from"./vue-BpN0M2Uf.js";import{E as X,a as Ve,m as sn,g as on,b as an,c as lt,d as un}from"./element-D3zEiHvy.js";import{V as ft}from"./vxe-wKYGiZNQ.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 cn=$t(),ln="modulepreload",fn=function(e){return"/v3-admin-vite/"+e},je={},O=function(t,n,r){let s=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"));s=Promise.allSettled(n.map(h=>{if(h=fn(h),h in je)return;je[h]=!0;const f=h.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":ln,f||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),f)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return s.then(i=>{for(const c of i||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},dn="/v3-admin-vite/",Fe={history:Wt(dn),dynamic:!0,defaultRoles:["DEFAULT_ROLE"]};function pn(e,t){var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0}function dt(e,t){const n=[];return e.forEach(r=>{const s={...r};pn(t,s)&&(s.children&&(s.children=dt(s.children,t)),n.push(s))}),n}const mn=se("permission",()=>{const e=B([]),t=B([]),n=o=>{const i=dt(it,o);s(i)},r=()=>{s(it)},s=o=>{e.value=jt.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"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 c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+c}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},c=0;ct=>{const n=En.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:M}=Array,W=ie("undefined");function gn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mt=k("ArrayBuffer");function yn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mt(e.buffer),t}const wn=ie("string"),x=ie("function"),ht=ie("number"),ae=e=>e!==null&&typeof e=="object",bn=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)},Sn=k("Date"),Tn=k("File"),Rn=k("Blob"),An=k("FileList"),Cn=e=>ae(e)&&x(e.pipe),_n=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]"))},On=k("URLSearchParams"),[Fn,vn,Dn,xn]=["ReadableStream","Request","Response","Headers"].map(k),Pn=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]),M(e))for(r=0,s=e.length;r0;)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,gt=e=>!W(e)&&e!==I;function ge(){const{caseless:e}=gt(this)&&this||{},t={},n=(r,s)=>{const o=e&&Et(t,s)||s;Y(t[o])&&Y(r)?t[o]=ge(t[o],r):Y(r)?t[o]=ge({},r):M(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(J(t,(s,o)=>{n&&x(s)?e[o]=pt(s,n):e[o]=s},{allOwnKeys:r}),e),Ln=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bn=(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)},Nn=(e,t,n,r)=>{let s,o,i;const c={};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))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&xe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},In=(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},Un=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xe(Uint8Array)),jn=(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])}},qn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Hn=k("HTMLFormElement"),Mn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zn=k("RegExp"),yt=(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)},$n=e=>{yt(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+"'")})}})},Wn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Jn=()=>{},Gn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,fe="abcdefghijklmnopqrstuvwxyz",ze="0123456789",wt={DIGIT:ze,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+ze},Kn=(e=16,t=wt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Xn(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yn=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=M(r)?[]:{};return J(r,(i,c)=>{const h=n(i,s+1);!W(h)&&(o[c]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Zn=k("AsyncFunction"),Qn=e=>e&&(ae(e)||x(e))&&x(e.then)&&x(e.catch),bt=((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)),er=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||bt,a={isArray:M,isArrayBuffer:mt,isBuffer:gn,isFormData:_n,isArrayBufferView:yn,isString:wn,isNumber:ht,isBoolean:bn,isObject:ae,isPlainObject:Y,isReadableStream:Fn,isRequest:vn,isResponse:Dn,isHeaders:xn,isUndefined:W,isDate:Sn,isFile:Tn,isBlob:Rn,isRegExp:zn,isFunction:x,isStream:Cn,isURLSearchParams:On,isTypedArray:Vn,isFileList:An,forEach:J,merge:ge,extend:kn,trim:Pn,stripBOM:Ln,inherits:Bn,toFlatObject:Nn,kindOf:oe,kindOfTest:k,endsWith:In,toArray:Un,forEachEntry:jn,matchAll:qn,isHTMLForm:Hn,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:yt,freezeMethods:$n,toObjectSet:Wn,toCamelCase:Mn,noop:Jn,toFiniteNumber:Gn,findKey:Et,global:I,isContextDefined:gt,ALPHABET:wt,generateString:Kn,isSpecCompliantForm:Xn,toJSONObject:Yn,isAsyncFn:Zn,isThenable:Qn,setImmediate:bt,asap:er};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 St=g.prototype,Tt={};["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=>{Tt[e]={value:e}});Object.defineProperties(g,Tt);Object.defineProperty(St,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(St);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const tr=null;function ye(e){return a.isPlainObject(e)||a.isArray(e)}function Rt(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=Rt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function nr(e){return a.isArray(e)&&!e.some(ye)}const rr=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(d,p){return!a.isUndefined(p[d])});const r=n.metaTokens,s=n.visitor||m,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 f(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 m(u,d,p){let y=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&nr(u)||(a.isFileList(u)||a.endsWith(d,"[]"))&&(y=a.toArray(u)))return d=Rt(d),y.forEach(function(T,S){!(a.isUndefined(T)||T===null)&&t.append(i===!0?$e([d],S,o):i===null?d:d+"[]",f(T))}),!1}return ye(u)?!0:(t.append($e(p,d,o),f(u)),!1)}const l=[],E=Object.assign(rr,{defaultVisitor:m,convertValue:f,isVisitable:ye});function w(u,d){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&s.call(t,y,a.isString(b)?b.trim():b,d,E))===!0&&w(y,d?d.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function We(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 At=Pe.prototype;At.append=function(t,n){this._pairs.push([t,n])};At.toString=function(t){const n=t?function(r){return t.call(this,r,We)}:We;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ct(e,t,n){if(!t)return e;const r=n&&n.encode||sr;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 Je{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 _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},or=typeof URLSearchParams<"u"?URLSearchParams:Pe,ir=typeof FormData<"u"?FormData:null,ar=typeof Blob<"u"?Blob:null,ur={isBrowser:!0,classes:{URLSearchParams:or,FormData:ir,Blob:ar},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",we=typeof navigator=="object"&&navigator||void 0,cr=ke&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fr=ke&&window.location.href||"http://localhost",dr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:lr,navigator:we,origin:fr},Symbol.toStringTag,{value:"Module"})),F={...dr,...ur};function pr(e,t){return ue(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function mr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,h?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=hr(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(mr(r),s,n,0)}),n}return null}function Er(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:_t,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(Ot(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(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pr(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 o||s?(n.setContentType("application/json",!1),Er(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(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 gr=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"]),yr=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]&&gr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ge=Symbol("internals");function $(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 wr(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 br=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function de(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 Sr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Tr(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(c,h,f){const m=$(h);if(!m)throw new Error("header name must be a non-empty string");const l=a.findKey(s,m);(!l||s[l]===void 0||f===!0||f===void 0&&s[l]!==!1)&&(s[l||h]=Z(c))}const i=(c,h)=>a.forEach(c,(f,m)=>o(f,m,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!br(t))i(yr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())o(h,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=$(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wr(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=$(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 s=!1;function o(i){if(i=$(i),i){const c=a.findKey(r,i);c&&(!n||de(r,r[c],c,n))&&(delete r[c],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||de(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 c=t?Sr(o):String(o).trim();c!==o&&delete n[o],n[c]=Z(s),r[c]=!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[Ge]=this[Ge]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=$(i);r[c]||(Tr(s,i),r[c]=!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 pe(e,t){const n=this||G,r=t||n,s=D.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ft(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,g,{__CANCEL__:!0});function vt(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 Rr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ar(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 f=Date.now(),m=r[o];i||(i=f),n[s]=h,r[s]=f;let l=o,E=0;for(;l!==s;)E+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i{n=m,s=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const m=Date.now(),l=m-n;l>=r?i(f,m):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-l)))},()=>s&&i(s)]}const ne=(e,t,n=3)=>{let r=0;const s=Ar(50,250);return Cr(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,h=i-r,f=s(h),m=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:f||void 0,estimated:f&&c&&m?(c-i)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},Ke=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xe=e=>(...t)=>a.asap(()=>e(...t)),_r=F.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,F.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,Or=F.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 Fr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dt(e,t){return e&&!Fr(t)?vr(e,t):t}const Ye=e=>e instanceof D?{...e}:e;function V(e,t){t=t||{};const n={};function r(f,m,l,E){return a.isPlainObject(f)&&a.isPlainObject(m)?a.merge.call({caseless:E},f,m):a.isPlainObject(m)?a.merge({},m):a.isArray(m)?m.slice():m}function s(f,m,l,E){if(a.isUndefined(m)){if(!a.isUndefined(f))return r(void 0,f,l,E)}else return r(f,m,l,E)}function o(f,m){if(!a.isUndefined(m))return r(void 0,m)}function i(f,m){if(a.isUndefined(m)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function c(f,m,l){if(l in t)return r(f,m);if(l in e)return r(void 0,f)}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:c,headers:(f,m,l)=>s(Ye(f),Ye(m),l,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(m){const l=h[m]||s,E=l(e[m],t[m],m);a.isUndefined(E)&&l!==c||(n[m]=E)}),n}const xt=e=>{const t=V({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=D.from(i),t.url=Ct(Dt(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[f,...m]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...m].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&_r(t.url))){const f=s&&o&&Or.read(o);f&&i.set(s,f)}return t},Dr=typeof XMLHttpRequest<"u",xr=Dr&&function(e){return new Promise(function(n,r){const s=xt(e);let o=s.data;const i=D.from(s.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:f}=s,m,l,E,w,u;function d(){w&&w(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function y(){if(!p)return;const T=D.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:T,config:e,request:p};vt(function(v){n(v),d()},function(v){r(v),d()},R),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(r(new g("Request aborted",g.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||_t;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new g(S,R.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(S,R){p.setRequestHeader(R,S)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([E,u]=ne(f,!0),p.addEventListener("progress",E)),h&&p.upload&&([l,w]=ne(h),p.upload.addEventListener("progress",l),p.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(m=T=>{p&&(r(!T||T.type?new z(null,e,p):T),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const b=Rr(s.url);if(b&&F.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Pr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,c();const m=f instanceof Error?f:this.reason;r.abort(m instanceof g?m:new z(m instanceof Error?m.message:m))}};let i=t&&setTimeout(()=>{i=null,o(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},kr=function*(e,t){let n=e.byteLength;if(n{const s=Lr(e,t);let o=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:f,value:m}=await s.next();if(f){c(),h.close();return}let l=m.byteLength;if(n){let E=o+=l;n(E)}h.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(h){return c(h),s.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pt=ce&&typeof ReadableStream=="function",Nr=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ir=Pt&&kt(()=>{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}),Qe=64*1024,be=Pt&&kt(()=>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 Ur=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 Nr(e)).byteLength},Vr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Ur(t)},jr=ce&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:f,headers:m,withCredentials:l="same-origin",fetchOptions:E}=xt(e);f=f?(f+"").toLowerCase():"text";let w=Pr([s,o&&o.toAbortSignal()],i),u;const d=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let p;try{if(h&&Ir&&n!=="get"&&n!=="head"&&(p=await Vr(m,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=R.headers.get("content-type"))&&m.setContentType(_),R.body){const[v,P]=Ke(p,ne(Xe(h)));r=Ze(R.body,Qe,v,P)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let b=await fetch(u);const T=be&&(f==="stream"||f==="response");if(be&&(c||T&&d)){const R={};["status","statusText","headers"].forEach(Ue=>{R[Ue]=b[Ue]});const _=a.toFiniteNumber(b.headers.get("content-length")),[v,P]=c&&Ke(_,ne(Xe(c),!0))||[];b=new Response(Ze(b.body,Qe,v,()=>{P&&P(),d&&d()}),R)}f=f||"text";let S=await re[a.findKey(re,f)||"text"](b,e);return!T&&d&&d(),await new Promise((R,_)=>{vt(R,_,{data:S,headers:D.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:u})})}catch(y){throw d&&d(),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)}}),Se={http:tr,xhr:xr,fetch:jr};a.forEach(Se,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const et=e=>`- ${e}`,qr=e=>a.isFunction(e)||e===null||e===!1,Lt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
+`+o.map(et).join(`
+`):" "+et(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 me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function tt(e){return me(e),e.headers=D.from(e.headers),e.data=pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||G.adapter)(e).then(function(r){return me(e),r.data=pe.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return Ft(r)||(me(e),r&&r.response&&(r.response.data=pe.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const Bt="1.7.9",le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const nt={};le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Bt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!nt[i]&&(nt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Hr(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 c=e[o],h=c===void 0||i(c,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:Hr,validators:le},L=Q.validators;let U=class{constructor(t){this.defaults=t,this.interceptors={request:new Je,response:new Je}}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)),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"],u=>{delete o[u]}),n.headers=D.concat(i,o);const c=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(h=h&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const f=[];this.interceptors.response.forEach(function(d){f.push(d.fulfilled,d.rejected)});let m,l=0,E;if(!h){const u=[tt.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,f),E=u.length,m=Promise.resolve(n);l{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(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,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 Nt(function(s){t=s}),cancel:t}}};function zr(e){return function(n){return e.apply(null,n)}}function $r(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 It(e){const t=new U(e),n=pt(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 It(V(e,s))},n}const A=It(G);A.Axios=U;A.CanceledError=z;A.CancelToken=Mr;A.isCancel=Ft;A.VERSION=Bt;A.toFormData=ue;A.AxiosError=g;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=zr;A.isAxiosError=$r;A.mergeConfig=V;A.AxiosHeaders=D;A.formToJSON=e=>Ot(a.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Lt.getAdapter;A.HttpStatusCode=Te;A.default=A;const{Axios:Qs,AxiosError:eo,CanceledError:to,isCancel:no,CancelToken:ro,VERSION:so,all:oo,Cancel:io,isAxiosError:ao,spread:uo,toFormData:co,AxiosHeaders:lo,HttpStatusCode:fo,formToJSON:po,getAdapter:mo,mergeConfig:ho}=A;function rt(){Be().logout(),location.reload()}function Wr(){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 rt();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||"未授权",rt();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 Jr(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=sn(r,t);return e(s)}}const Gr=Wr(),Kr=Jr(Gr);function Xr(){return Kr({url:"users/me",method:"get"})}var Yr=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Yr||{}),Ut=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(Ut||{});const Eo="opened",go="closed";function Zr(){const e=localStorage.getItem(C.CONFIG_LAYOUT);return e?JSON.parse(e):null}function Qr(e){localStorage.setItem(C.CONFIG_LAYOUT,JSON.stringify(e))}function yo(){localStorage.removeItem(C.CONFIG_LAYOUT)}function wo(){return localStorage.getItem(C.SIDEBAR_STATUS)}function bo(e){localStorage.setItem(C.SIDEBAR_STATUS,e)}function es(){return localStorage.getItem(C.ACTIVE_THEME_NAME)}function ts(e){localStorage.setItem(C.ACTIVE_THEME_NAME,e)}function ns(){const e=localStorage.getItem(C.VISITED_VIEWS);return JSON.parse(e??"[]")}function rs(e){e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(C.VISITED_VIEWS,JSON.stringify(e))}function ss(){const e=localStorage.getItem(C.CACHED_VIEWS);return JSON.parse(e??"[]")}function os(e){localStorage.setItem(C.CACHED_VIEWS,JSON.stringify(e))}const is={layoutMode:Ut.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},as={...is,...Zr()},Le=se("settings",()=>{const e={};for(const[n,r]of Object.entries(as)){const s=B(r);e[n]=s,ut(s,()=>{const o=t();Qr(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),us=se("tags-view",()=>{const{cacheTagsView:e}=Le(),t=B(e?ns():[]),n=B(e?ss():[]);return Oe(()=>{rs(t.value),os(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=[]}}}),Be=se("user",()=>{const e=B(De()||""),t=B([]),n=B(""),r=us(),s=Le(),o=l=>{qe(l),e.value=l},i=async()=>{var E;const{data:l}=await Xr();n.value=l.username,t.value=((E=l.roles)==null?void 0:E.length)>0?l.roles:Fe.defaultRoles},c=l=>{const E=`token-${l}`;e.value=E,qe(E),location.reload()},h=()=>{He(),e.value="",t.value=[],Ss(),m()},f=()=>{He(),e.value="",t.value=[]},m=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,setToken:o,getInfo:i,changeRoles:c,logout:h,resetToken:f}}),cs=["/login"],ls=[];function fs(e){return cs.includes(e.path)||ls.includes(e.name)}function ds(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=ds(),Ae=Symbol("ROUTE_CHANGE");let Ce;function ps(e){Re.emit(Ae,e),Ce=e}function So(){const e=[],t=(r,s=!1)=>{e.push(r),Re.on(Ae,r),s&&Ce&&r(Ce)},n=r=>{Re.off(Ae,r)};return Jt(()=>{e.forEach(n)}),{listenerRouteChange:t,removeRouteListener:n}}const st="V3 Admin Vite",Vt=B("");function ms(e){Vt.value=e?`${st} | ${e}`:st}ut(Vt,(e,t)=>{document&&e!==t&&(document.title=e)});function hs(){return{setTitle:ms}}var ee={exports:{}};var Es=ee.exports,ot;function gs(){return ot||(ot=1,function(e,t){(function(n,r){e.exports=r()})(Es,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 d,p;for(d in u)p=u[d],p!==void 0&&u.hasOwnProperty(d)&&(r[d]=p);return this},n.status=null,n.set=function(u){var d=n.isStarted();u=s(u,r.minimum,1),n.status=u===1?null:u;var p=n.render(!d),y=p.querySelector(r.barSelector),b=r.speed,T=r.easing;return p.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(u,b,T)),u===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{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 d=n.status;return d?(typeof u!="number"&&(u=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+u,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,d=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(d===0&&n.start(),u++,d++,p.always(function(){d--,d===0?(u=0,n.done()):n.set((u-d)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var p=d.querySelector(r.barSelector),y=u?"-100":o(n.status||0),b=document.querySelector(r.parent),T;return h(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),b!=document.body&&m(b,"nprogress-custom-parent"),b.appendChild(d),d},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,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function s(u,d,p){return up?p:u}function o(u){return(-1+u)*100}function i(u,d,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(u)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(u)+"%,0)"}:y={"margin-left":o(u)+"%"},y.transition="all "+d+"ms "+p,y}var c=function(){var u=[];function d(){var p=u.shift();p&&p(d)}return function(p){u.push(p),u.length==1&&d()}}(),h=function(){var u=["Webkit","O","Moz","ms"],d={};function p(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 _=u.length,v=S.charAt(0).toUpperCase()+S.slice(1),P;_--;)if(P=u[_]+v,P in R)return P;return S}function b(S){return S=p(S),d[S]||(d[S]=y(S))}function T(S,R,_){R=b(R),S.style[R]=_}return function(S,R){var _=arguments,v,P;if(_.length==2)for(v in R)P=R[v],P!==void 0&&R.hasOwnProperty(v)&&T(S,v,P);else T(S,_[1],_[2])}}();function f(u,d){var p=typeof u=="string"?u:E(u);return p.indexOf(" "+d+" ")>=0}function m(u,d){var p=E(u),y=p+d;f(p,d)||(u.className=y.substring(1))}function l(u,d){var p=E(u),y;f(u,d)&&(y=p.replace(" "+d+" "," "),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})}(ee)),ee.exports}var ys=gs();const _e=on(ys);_e.configure({showSpinner:!1});const{setTitle:ws}=hs(),he="/login";function bs(e){e.beforeEach(async(t,n)=>{_e.start();const r=Be(),s=mn();if(!De())return fs(t)?!0:he;if(t.path===he)return"/";if(r.roles.length!==0)return!0;try{await r.getInfo();const o=r.roles;return Fe.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||"路由守卫发生错误"),he}}),e.afterEach(t=>{ps(t),ws(t.meta.title),_e.done()})}const te=()=>O(()=>import("./index-Cc0Q6aZX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),jt=[{path:"/redirect",component:te,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>O(()=>import("./index-BNIeaqoo.js"),__vite__mapDeps([19,1]))}]},{path:"/403",component:()=>O(()=>import("./403-H4HFnXrQ.js"),__vite__mapDeps([20,21,10,3,1,22,7,11])),meta:{hidden:!0}},{path:"/404",component:()=>O(()=>import("./404-7SvOiNDE.js"),__vite__mapDeps([23,21,10,3,1,22,7,11])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>O(()=>import("./index-Dbigs4Ij.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-BNwcH65o.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-B0evTqQr.js"),__vite__mapDeps([29,10,1])),name:"UnoCSS",meta:{title:"UnoCSS"}},{path:"element-plus",component:()=>O(()=>import("./index-BKAAXlgT.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-ywjeI0F5.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-QLy0eePp.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-BEUCV1gw.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-Bl4sUC8Z.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-Cu9L6jh_.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-voOUOkL0.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:"新手教程"}}]}],it=[{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-V1OZHkTr.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-AQBN_go_.js"),__vite__mapDeps([51,48,3,1,10,49,14,15,11,52,13,7])),name:"PermissionButtonLevel",meta:{title:"按钮级",roles:void 0}}]}],H=Gt({history:Fe.history,routes:jt});function Ss(){try{H.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&H.hasRoute(t)&&H.removeRoute(t)})}catch{location.reload()}}bs(H);function Ts(e){for(const[t,n]of Object.entries(an))e.component(t,n)}function Rs(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}function To(e){return/^(https?:|mailto:|tel:)/.test(e)}const As={mounted(e,t){var s;const{value:n}=t,{roles:r}=Be();if(Rs(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 Cs(e){e.directive("permission",As)}const _s={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"1em",height:"1em",fill:"currentColor"}},Os=["xlink:href"];function Fs(e,t){return ct(),Kt("svg",_s,[Xt("use",{"xlink:href":"#"+e.name},null,8,Os)])}const vs={name:"SvgIcon",props:{name:{type:String,required:!0}},render:Fs};function Ds(e){e.component("SvgIcon",vs)}ft.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 xs(e){e.use(ft)}function Ps(e){Ts(e),Cs(e),Ds(e),xs(e)}const ks="grey-mode",Ls="color-weakness",at=document.documentElement.classList;function Bs(){const e=Le();Oe(()=>{at.toggle(ks,e.showGreyMode),at.toggle(Ls,e.showColorWeakness)})}function Ns(){return{initGreyAndColorWeakness:Bs}}function Is(){setTimeout(()=>{lt({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 Us(){setTimeout(()=>{lt({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 Vs(){return{initStarNotification:Is,initStoreNotification:Us}}const qt="normal",Ht=[{title:"默认",name:qt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ne=B(es()||qt);function js(e){Ne.value=e}function qs(e){document.documentElement.classList.add(e)}function Hs(e){const t=Ht.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)}function Ms(){Oe(()=>{const e=Ne.value;Hs(e),qs(e),ts(e)})}function zs(){return{themeList:Ht,activeThemeName:Ne,initTheme:Ms,setTheme:js}}var $s={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 Ws=Yt({__name:"App",setup(e){const{initTheme:t}=zs(),{initGreyAndColorWeakness:n}=Ns(),{initStarNotification:r,initStoreNotification:s}=Vs();return t(),n(),r(),s(),(o,i)=>{const c=Zt("router-view"),h=un;return ct(),Qt(h,{locale:nn($s)},{default:en(()=>[tn(c)]),_:1},8,["locale"])}}}),Ie=rn(Ws);Ps(Ie);Ie.use(cn).use(H);H.isReady().then(()=>{Ie.mount("#app")});export{Yr as D,Ut as L,go as S,Eo as a,us as b,So as c,mn as d,Be as e,Kr as f,wo as g,zs as h,To as i,Rs as j,yo as r,bo as s,Le as u};
diff --git a/assets/index-BhlbFP62.js b/assets/index-QLy0eePp.js
similarity index 92%
rename from assets/index-BhlbFP62.js
rename to assets/index-QLy0eePp.js
index 85685263..7673bf53 100644
--- a/assets/index-BhlbFP62.js
+++ b/assets/index-QLy0eePp.js
@@ -1 +1 @@
-import"./index-D6IaWZu1.js";/* empty css */import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{ae as i,o as p}from"./element-D3zEiHvy.js";import{v as _,A as o,L as t,D as r,I as l,ac as m,x as d}from"./vue-BpN0M2Uf.js";import"./vxe-wKYGiZNQ.js";const f={},u={class:"app-container"};function v(x,e){const n=i,a=m("router-view"),s=p;return d(),_("div",u,[o("h4",null,[e[1]||(e[1]=o("span",null," 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ",-1)),t(n,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/router/config.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[l(" src/router/config.ts ")])),_:1})]),t(s,{header:"二级路由"},{default:r(()=>[t(a)]),_:1})])}const B=c(f,[["render",v],["__scopeId","data-v-688a264b"]]);export{B as default};
+import"./index-DxDrRn-6.js";/* empty css */import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{ae as i,o as p}from"./element-D3zEiHvy.js";import{v as _,A as o,L as t,D as r,I as l,ac as m,x as d}from"./vue-BpN0M2Uf.js";import"./vxe-wKYGiZNQ.js";const f={},u={class:"app-container"};function v(x,e){const n=i,a=m("router-view"),s=p;return d(),_("div",u,[o("h4",null,[e[1]||(e[1]=o("span",null," 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ",-1)),t(n,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/router/config.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[l(" src/router/config.ts ")])),_:1})]),t(s,{header:"二级路由"},{default:r(()=>[t(a)]),_:1})])}const B=c(f,[["render",v],["__scopeId","data-v-688a264b"]]);export{B as default};
diff --git a/assets/index-f3mIFLdb.js b/assets/index-ywjeI0F5.js
similarity index 97%
rename from assets/index-f3mIFLdb.js
rename to assets/index-ywjeI0F5.js
index 222380c4..ff43cfc0 100644
--- a/assets/index-f3mIFLdb.js
+++ b/assets/index-ywjeI0F5.js
@@ -1 +1 @@
-import"./index-D6IaWZu1.js";/* empty css */import{g as M,d as P}from"./el-message-box-kDTaGrxg.js";import{L as l,t as S,r as w,V as _,n as $,v as E,D as d,z as C,u as g,ac as b,I as h,x as R}from"./vue-BpN0M2Uf.js";/* empty css *//* empty css */import{ad as U,E as D,a3 as B,r as F}from"./element-D3zEiHvy.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";const O={default:({row:y,column:n})=>{const i=y[n.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},V={default:({row:y,column:n})=>{const i=y[n.field],[c,x]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[x])]}},q={class:"app-container"},z=S({name:"VxeTable",__name:"index",setup(y){const n=w(),i=_({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:O},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:V},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,autoLoad:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,u=[];const p=s=>{s!=null&&s.data&&(a=s.data.total,u=s.data.list),i.loading=!1,o({total:a,result:u})},f={username:t.username||"",phone:t.phone||"",size:e.pageSize,currentPage:e.currentPage};M(f).then(p).catch(p)}))}}}),c=w(),x=_({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=w(),m=_({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=c.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=_({isUpdate:!0,commitQuery:()=>{var e;return(e=n.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=n.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,u,p;e?(r.isUpdate=!0,x.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,x.title="新增用户");const t=(u=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:u.props;t&&(t.disabled=r.isUpdate),(p=c.value)==null||p.open(),$(()=>{var f,s;!r.isUpdate&&((f=v.value)==null||f.reset()),(s=v.value)==null||s.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=c.value)==null||a.close(),D.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=n.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(()=>{P(e.id).then(()=>{D.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=n.value.getData(),t=(a=(o=n.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=B,a=b("vxe-button"),u=F,p=b("vxe-grid"),f=b("vxe-form"),s=b("vxe-modal");return R(),E("div",q,[l(o,{title:"数据来源",type:"success",description:"由 Apifox 提供在线 Mock,数据不具备真实性,仅供简单的 CRUD 操作演示。","show-icon":""}),l(p,C({ref_key:"xGridDom",ref:n},g(i)),{"toolbar-btns":d(()=>[l(a,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=k=>g(r).onShowModal())},{default:d(()=>t[1]||(t[1]=[h(" 新增用户 ")])),_:1}),l(a,{status:"danger",icon:"vxe-icon-delete"},{default:d(()=>t[2]||(t[2]=[h(" 批量删除 ")])),_:1})]),"row-operate":d(({row:k})=>[l(u,{link:"",type:"primary",onClick:T=>g(r).onShowModal(k)},{default:d(()=>t[3]||(t[3]=[h(" 修改 ")])),_:2},1032,["onClick"]),l(u,{link:"",type:"danger",onClick:T=>g(r).onDelete(k)},{default:d(()=>t[4]||(t[4]=[h(" 删除 ")])),_:2},1032,["onClick"])]),_:1},16),l(s,C({ref_key:"xModalDom",ref:c},g(x)),{default:d(()=>[l(f,C({ref_key:"xFormDom",ref:v},g(m)),null,16)]),_:1},16)])}}}),K=I(z,[["__scopeId","data-v-14111952"]]);export{K as default};
+import"./index-DxDrRn-6.js";/* empty css */import{g as M,d as P}from"./el-message-box-CgBAqDJF.js";import{L as l,t as S,r as w,V as _,n as $,v as E,D as d,z as C,u as g,ac as b,I as h,x as R}from"./vue-BpN0M2Uf.js";/* empty css *//* empty css */import{ad as U,E as D,a3 as B,r as F}from"./element-D3zEiHvy.js";import{_ as I}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";const O={default:({row:y,column:n})=>{const i=y[n.field];return[l("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},V={default:({row:y,column:n})=>{const i=y[n.field],[c,x]=i?["success","启用"]:["danger","禁用"];return[l("span",{class:`el-tag el-tag--${c} el-tag--plain`},[x])]}},q={class:"app-container"},z=S({name:"VxeTable",__name:"index",setup(y){const n=w(),i=_({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:O},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:V},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,autoLoad:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,u=[];const p=s=>{s!=null&&s.data&&(a=s.data.total,u=s.data.list),i.loading=!1,o({total:a,result:u})},f={username:t.username||"",phone:t.phone||"",size:e.pageSize,currentPage:e.currentPage};M(f).then(p).catch(p)}))}}}),c=w(),x=_({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=w(),m=_({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=c.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=_({isUpdate:!0,commitQuery:()=>{var e;return(e=n.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=n.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,u,p;e?(r.isUpdate=!0,x.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,x.title="新增用户");const t=(u=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:u.props;t&&(t.disabled=r.isUpdate),(p=c.value)==null||p.open(),$(()=>{var f,s;!r.isUpdate&&((f=v.value)==null||f.reset()),(s=v.value)==null||s.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=c.value)==null||a.close(),D.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=n.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(()=>{P(e.id).then(()=>{D.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=n.value.getData(),t=(a=(o=n.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=B,a=b("vxe-button"),u=F,p=b("vxe-grid"),f=b("vxe-form"),s=b("vxe-modal");return R(),E("div",q,[l(o,{title:"数据来源",type:"success",description:"由 Apifox 提供在线 Mock,数据不具备真实性,仅供简单的 CRUD 操作演示。","show-icon":""}),l(p,C({ref_key:"xGridDom",ref:n},g(i)),{"toolbar-btns":d(()=>[l(a,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=k=>g(r).onShowModal())},{default:d(()=>t[1]||(t[1]=[h(" 新增用户 ")])),_:1}),l(a,{status:"danger",icon:"vxe-icon-delete"},{default:d(()=>t[2]||(t[2]=[h(" 批量删除 ")])),_:1})]),"row-operate":d(({row:k})=>[l(u,{link:"",type:"primary",onClick:T=>g(r).onShowModal(k)},{default:d(()=>t[3]||(t[3]=[h(" 修改 ")])),_:2},1032,["onClick"]),l(u,{link:"",type:"danger",onClick:T=>g(r).onDelete(k)},{default:d(()=>t[4]||(t[4]=[h(" 删除 ")])),_:2},1032,["onClick"])]),_:1},16),l(s,C({ref_key:"xModalDom",ref:c},g(x)),{default:d(()=>[l(f,C({ref_key:"xFormDom",ref:v},g(m)),null,16)]),_:1},16)])}}}),K=I(z,[["__scopeId","data-v-14111952"]]);export{K as default};
diff --git a/assets/index.vue_vue_type_script_setup_true_lang-CMzUEbwa.js b/assets/index.vue_vue_type_script_setup_true_lang-BEfbkUj3.js
similarity index 95%
rename from assets/index.vue_vue_type_script_setup_true_lang-CMzUEbwa.js
rename to assets/index.vue_vue_type_script_setup_true_lang-BEfbkUj3.js
index 5c53b41c..30e57803 100644
--- a/assets/index.vue_vue_type_script_setup_true_lang-CMzUEbwa.js
+++ b/assets/index.vue_vue_type_script_setup_true_lang-BEfbkUj3.js
@@ -1 +1 @@
-import{h as k}from"./index-D6IaWZu1.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{x as g,i as E,a2 as T,t as v,y as C,z as D}from"./element-D3zEiHvy.js";import{t as B,C as d,D as e,A as p,L as s,u as c,v as M,K as V,ai as b,x as l,J as L}from"./vue-BpN0M2Uf.js";const J=B({__name:"index",setup(N){const{themeList:_,activeThemeName:u,setTheme:h}=k();function f({clientX:o,clientY:n},r){const i=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(n,window.innerHeight-n)),t=document.documentElement.style;t.setProperty("--v3-theme-x",`${o}px`),t.setProperty("--v3-theme-y",`${n}px`),t.setProperty("--v3-theme-r",`${i}px`);const a=()=>{h(r)};document.startViewTransition?document.startViewTransition(a):a()}return(o,n)=>{const r=E,i=v,t=D,a=C,w=g;return l(),d(w,{trigger:"click"},{dropdown:e(()=>[s(a,null,{default:e(()=>[(l(!0),M(V,null,b(c(_),(m,x)=>(l(),d(t,{key:x,disabled:c(u)===m.name,onClick:y=>f(y,m.name)},{default:e(()=>[p("span",null,L(m.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[p("div",null,[s(i,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[s(r,{size:20},{default:e(()=>[s(c(T))]),_:1})]),_:1})])]),_:1})}}});export{J as _};
+import{h as k}from"./index-DxDrRn-6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{x as g,i as E,a2 as T,t as v,y as C,z as D}from"./element-D3zEiHvy.js";import{t as B,C as d,D as e,A as p,L as s,u as c,v as M,K as V,ai as b,x as l,J as L}from"./vue-BpN0M2Uf.js";const J=B({__name:"index",setup(N){const{themeList:_,activeThemeName:u,setTheme:h}=k();function f({clientX:o,clientY:n},r){const i=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(n,window.innerHeight-n)),t=document.documentElement.style;t.setProperty("--v3-theme-x",`${o}px`),t.setProperty("--v3-theme-y",`${n}px`),t.setProperty("--v3-theme-r",`${i}px`);const a=()=>{h(r)};document.startViewTransition?document.startViewTransition(a):a()}return(o,n)=>{const r=E,i=v,t=D,a=C,w=g;return l(),d(w,{trigger:"click"},{dropdown:e(()=>[s(a,null,{default:e(()=>[(l(!0),M(V,null,b(c(_),(m,x)=>(l(),d(t,{key:x,disabled:c(u)===m.name,onClick:y=>f(y,m.name)},{default:e(()=>[p("span",null,L(m.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[p("div",null,[s(i,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[s(r,{size:20},{default:e(()=>[s(c(T))]),_:1})]),_:1})])]),_:1})}}});export{J as _};
diff --git a/assets/page-level-C7SWVFfM.js b/assets/page-level-V1OZHkTr.js
similarity index 81%
rename from assets/page-level-C7SWVFfM.js
rename to assets/page-level-V1OZHkTr.js
index 1fb5bfd8..647bf42f 100644
--- a/assets/page-level-C7SWVFfM.js
+++ b/assets/page-level-V1OZHkTr.js
@@ -1 +1 @@
-import"./index-D6IaWZu1.js";/* empty css */import{S as a}from"./SwitchRoles-01xbHOvB.js";import{o as r}from"./element-D3zEiHvy.js";import{t as s,v as n,x as p,L as t,D as c,I as m}from"./vue-BpN0M2Uf.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";/* empty css */const i={class:"app-container"},d=s({__name:"page-level",setup(l){return(f,e)=>{const o=r;return p(),n("div",i,[t(a),t(o,{shadow:"never",class:"content"},{default:c(()=>e[0]||(e[0]=[m(" 当前页面只有「Admin」角色可见,切换角色后将不能进入该页面 ")])),_:1})])}}}),B=_(d,[["__scopeId","data-v-a30433e8"]]);export{B as default};
+import"./index-DxDrRn-6.js";/* empty css */import{S as a}from"./SwitchRoles-Dxn7_vsM.js";import{o as r}from"./element-D3zEiHvy.js";import{t as s,v as n,x as p,L as t,D as c,I as m}from"./vue-BpN0M2Uf.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";/* empty css */const i={class:"app-container"},d=s({__name:"page-level",setup(l){return(f,e)=>{const o=r;return p(),n("div",i,[t(a),t(o,{shadow:"never",class:"content"},{default:c(()=>e[0]||(e[0]=[m(" 当前页面只有「Admin」角色可见,切换角色后将不能进入该页面 ")])),_:1})])}}}),B=_(d,[["__scopeId","data-v-a30433e8"]]);export{B as default};
diff --git a/assets/use-fetch-select-BxAeHKQj.js b/assets/use-fetch-select-Bl4sUC8Z.js
similarity index 96%
rename from assets/use-fetch-select-BxAeHKQj.js
rename to assets/use-fetch-select-Bl4sUC8Z.js
index 40696a1f..ce48529d 100644
--- a/assets/use-fetch-select-BxAeHKQj.js
+++ b/assets/use-fetch-select-Bl4sUC8Z.js
@@ -1 +1 @@
-import"./index-D6IaWZu1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as u,f as w,t as x,v as f,L as d,E as v,D as i,u as l,C as p,I as C,K as D,ai as R,h as E,x as r,z as k}from"./vue-BpN0M2Uf.js";import{E as A,o as L,a4 as M,af as T,ag as B,ah as F}from"./element-D3zEiHvy.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";function O(c){const{api:a}=c,o=u(!1),e=u([]),m=u(""),t=()=>{o.value=!0,e.value=[],a().then(s=>{e.value=s.data}).finally(()=>{o.value=!1})};return w(()=>{t()}),{loading:o,options:e,value:m}}const P={code:0,data:[{label:"苹果",value:1},{label:"香蕉",value:2},{label:"橘子",value:3,disabled:!0}],message:"获取 Select 数据成功"},S="接口发生错误";function y(){return new Promise((c,a)=>{setTimeout(()=>{Math.random()<.8?c(P):(a(new Error(S)),A.error(S))},2e3)})}const I={class:"app-container"},U=x({__name:"use-fetch-select",setup(c){const{loading:a,options:o,value:e}=O({api:y});return(m,t)=>{const s=L,h=F,g=T,V=B,_=M;return r(),f("div",I,[d(s,{shadow:"never"},{default:i(()=>t[2]||(t[2]=[C(" 该示例是演示:通过 composable 自动调用 api 后拿到 Select 组件需要的数据并传递给 Select 组件 ")])),_:1}),v((r(),p(s,{header:"Select 示例",shadow:"never"},{default:i(()=>[d(g,{modelValue:l(e),"onUpdate:modelValue":t[0]||(t[0]=n=>E(e)?e.value=n:null),filterable:""},{default:i(()=>[(r(!0),f(D,null,R(l(o),(n,b)=>(r(),p(h,k({ref_for:!0},n,{key:b,placeholder:"请选择"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1})),[[_,l(a)]]),v((r(),p(s,{header:"Select V2 示例(如果数据量过多,可以选择该组件)",shadow:"never"},{default:i(()=>[d(V,{modelValue:l(e),"onUpdate:modelValue":t[1]||(t[1]=n=>E(e)?e.value=n:null),options:l(o),filterable:"",placeholder:"请选择"},null,8,["modelValue","options"])]),_:1})),[[_,l(a)]])])}}}),Y=N(U,[["__scopeId","data-v-15aa76c1"]]);export{Y as default};
+import"./index-DxDrRn-6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as u,f as w,t as x,v as f,L as d,E as v,D as i,u as l,C as p,I as C,K as D,ai as R,h as E,x as r,z as k}from"./vue-BpN0M2Uf.js";import{E as A,o as L,a4 as M,af as T,ag as B,ah as F}from"./element-D3zEiHvy.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";function O(c){const{api:a}=c,o=u(!1),e=u([]),m=u(""),t=()=>{o.value=!0,e.value=[],a().then(s=>{e.value=s.data}).finally(()=>{o.value=!1})};return w(()=>{t()}),{loading:o,options:e,value:m}}const P={code:0,data:[{label:"苹果",value:1},{label:"香蕉",value:2},{label:"橘子",value:3,disabled:!0}],message:"获取 Select 数据成功"},S="接口发生错误";function y(){return new Promise((c,a)=>{setTimeout(()=>{Math.random()<.8?c(P):(a(new Error(S)),A.error(S))},2e3)})}const I={class:"app-container"},U=x({__name:"use-fetch-select",setup(c){const{loading:a,options:o,value:e}=O({api:y});return(m,t)=>{const s=L,h=F,g=T,V=B,_=M;return r(),f("div",I,[d(s,{shadow:"never"},{default:i(()=>t[2]||(t[2]=[C(" 该示例是演示:通过 composable 自动调用 api 后拿到 Select 组件需要的数据并传递给 Select 组件 ")])),_:1}),v((r(),p(s,{header:"Select 示例",shadow:"never"},{default:i(()=>[d(g,{modelValue:l(e),"onUpdate:modelValue":t[0]||(t[0]=n=>E(e)?e.value=n:null),filterable:""},{default:i(()=>[(r(!0),f(D,null,R(l(o),(n,b)=>(r(),p(h,k({ref_for:!0},n,{key:b,placeholder:"请选择"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1})),[[_,l(a)]]),v((r(),p(s,{header:"Select V2 示例(如果数据量过多,可以选择该组件)",shadow:"never"},{default:i(()=>[d(V,{modelValue:l(e),"onUpdate:modelValue":t[1]||(t[1]=n=>E(e)?e.value=n:null),options:l(o),filterable:"",placeholder:"请选择"},null,8,["modelValue","options"])]),_:1})),[[_,l(a)]])])}}}),Y=N(U,[["__scopeId","data-v-15aa76c1"]]);export{Y as default};
diff --git a/assets/use-fullscreen-loading-Cbm8IqAY.js b/assets/use-fullscreen-loading-Cu9L6jh_.js
similarity index 96%
rename from assets/use-fullscreen-loading-Cbm8IqAY.js
rename to assets/use-fullscreen-loading-Cu9L6jh_.js
index 267e23bc..24024e5d 100644
--- a/assets/use-fullscreen-loading-Cbm8IqAY.js
+++ b/assets/use-fullscreen-loading-Cu9L6jh_.js
@@ -1,4 +1,4 @@
-import"./index-D6IaWZu1.js";/* empty css *//* empty css *//* empty css */import{ai as m,o as _,r as g,E as u}from"./element-D3zEiHvy.js";import{t as f,v as E,L as n,D as a,I as c,x as y}from"./vue-BpN0M2Uf.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";const x={lock:!0,text:"加载中..."},p=(o,e={})=>{let r;return async(...i)=>{try{return r=m.service({...x,...e}),await o(...i)}finally{r.close()}}},v={code:0,data:{list:[]},message:"获取成功"};function C(o){return new Promise(e=>{setTimeout(()=>{e({...v,data:{list:o}})},1e3)})}function S(){return new Promise((o,e)=>{setTimeout(()=>{e(new Error("发生错误"))},1e3)})}const k={class:"app-container"},A=`
+import"./index-DxDrRn-6.js";/* empty css *//* empty css *//* empty css */import{ai as m,o as _,r as g,E as u}from"./element-D3zEiHvy.js";import{t as f,v as E,L as n,D as a,I as c,x as y}from"./vue-BpN0M2Uf.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";const x={lock:!0,text:"加载中..."},p=(o,e={})=>{let r;return async(...i)=>{try{return r=m.service({...x,...e}),await o(...i)}finally{r.close()}}},v={code:0,data:{list:[]},message:"获取成功"};function C(o){return new Promise(e=>{setTimeout(()=>{e({...v,data:{list:o}})},1e3)})}function S(){return new Promise((o,e)=>{setTimeout(()=>{e(new Error("发生错误"))},1e3)})}const k={class:"app-container"},A=`
{const m=_,a=v,u=C;return b(),w("div",g,[o(m,{shadow:"never"},{default:t(()=>e[4]||(e[4]=[r(" 该示例是演示:通过调用 composable 开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ")])),_:1}),o(m,{header:"示例",shadow:"never"},{footer:t(()=>[o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[0]||(e[0]=n=>l(f)("局部水印",{color:"#409eff"}))},{default:t(()=>e[5]||(e[5]=[r(" 创建局部水印 ")])),_:1}),o(a,{type:"warning",onClick:e[1]||(e[1]=n=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[6]||(e[6]=[r(" 创建无防御局部水印 ")])),_:1}),o(a,{type:"danger",onClick:l(i)},{default:t(()=>e[7]||(e[7]=[r(" 清除局部水印 ")])),_:1},8,["onClick"])]),_:1}),o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[2]||(e[2]=n=>l(p)("全局水印",{color:"#409eff"}))},{default:t(()=>e[8]||(e[8]=[r(" 创建全局水印 ")])),_:1}),o(a,{type:"warning",onClick:e[3]||(e[3]=n=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[9]||(e[9]=[r(" 创建无防御全局水印 ")])),_:1}),o(a,{type:"danger",onClick:l(k)},{default:t(()=>e[10]||(e[10]=[r(" 清除全局水印 ")])),_:1},8,["onClick"])]),_:1})]),default:t(()=>[x("div",{ref_key:"localRef",ref:s,class:"local"},null,512)]),_:1})])}}}),T=c(B,[["__scopeId","data-v-2e8369f3"]]);export{T as default};
+import"./index-DxDrRn-6.js";/* empty css *//* empty css *//* empty css */import{u as d}from"./useWatermark-DzJZhtRW.js";import{o as _,aj as C,r as v}from"./element-D3zEiHvy.js";import{t as y,r as W,v as w,L as o,D as t,I as r,A as x,u as l,x as b}from"./vue-BpN0M2Uf.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-wKYGiZNQ.js";const g={class:"app-container"},B=y({__name:"use-watermark",setup($){const s=W(null),{setWatermark:f,clearWatermark:i}=d(s),{setWatermark:p,clearWatermark:k}=d();return(E,e)=>{const m=_,a=v,u=C;return b(),w("div",g,[o(m,{shadow:"never"},{default:t(()=>e[4]||(e[4]=[r(" 该示例是演示:通过调用 composable 开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ")])),_:1}),o(m,{header:"示例",shadow:"never"},{footer:t(()=>[o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[0]||(e[0]=n=>l(f)("局部水印",{color:"#409eff"}))},{default:t(()=>e[5]||(e[5]=[r(" 创建局部水印 ")])),_:1}),o(a,{type:"warning",onClick:e[1]||(e[1]=n=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[6]||(e[6]=[r(" 创建无防御局部水印 ")])),_:1}),o(a,{type:"danger",onClick:l(i)},{default:t(()=>e[7]||(e[7]=[r(" 清除局部水印 ")])),_:1},8,["onClick"])]),_:1}),o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[2]||(e[2]=n=>l(p)("全局水印",{color:"#409eff"}))},{default:t(()=>e[8]||(e[8]=[r(" 创建全局水印 ")])),_:1}),o(a,{type:"warning",onClick:e[3]||(e[3]=n=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[9]||(e[9]=[r(" 创建无防御全局水印 ")])),_:1}),o(a,{type:"danger",onClick:l(k)},{default:t(()=>e[10]||(e[10]=[r(" 清除全局水印 ")])),_:1},8,["onClick"])]),_:1})]),default:t(()=>[x("div",{ref_key:"localRef",ref:s,class:"local"},null,512)]),_:1})])}}}),T=c(B,[["__scopeId","data-v-2e8369f3"]]);export{T as default};
diff --git a/index.html b/index.html
index 6d584541..553dc613 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
V3 Admin Vite
-
+