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

8 lines
67 KiB
JavaScript

const __vite__fileDeps=["static/index-bqZYTD97.js","static/vue-BiR7ZKfy.js","static/useWatermark-uAsIfYiZ.js","static/element-ld5q79O4.js","static/index.vue_vue_type_script_setup_true_lang-Bi5BTQUo.js","static/vxe-b1KXxwBC.js","static/index-BrXOIlcI.css","static/index-9WtJ3xTJ.js","static/403-B_ShyF24.js","static/ErrorPageLayout-CmpWApnq.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-B593SmiY.js","static/index-C9DZYOVp.js","static/index-B9zIkYV9.css","static/index-BrHElN7a.js","static/index-tavtFK3w.css","static/index-Dw-Ho-kh.js","static/index-DKUWMvVM.js","static/index-DzyTcBPa.js","static/index-BRmddp6Q.css","static/index-BL6CIOzR.js","static/index-Vt4OrK07.js","static/index-DmS5ZuTx.css","static/index-Dapx3d1y.js","static/index-Dy2ZLbEf.js","static/index-kb8lKb3g.js","static/index-ClpmKhhY.js","static/index-BpvKkLF5.js","static/index-D9QlbQU8.js","static/use-fetch-select-CcOJudaS.js","static/use-fullscreen-loading-aG1vhs6D.js","static/use-watermark-DHJQEN1R.js","static/use-watermark-C8yPoY9R.css","static/page-wWgzpEW4.js","static/SwitchRoles-BxIkpBtH.js","static/SwitchRoles-CoSs55AH.css","static/page-D_JSdlLP.css","static/directive-C8-2KWDf.js","static/directive-NEoCH_vr.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
var Nt=Object.defineProperty;var It=(e,t,n)=>t in e?Nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>(It(e,typeof t!="symbol"?t+"":t,n),n);import{r as B,w as tt,m as nt,O as Vt,u as Ut,ai as Fe,p as rt,P as Mt,V as jt,ay as Ht,az as zt,aA as qt,aB as te,d as ot,A as Wt,f as Jt,q as $t,t as Kt,at as Gt}from"./vue-BiR7ZKfy.js";import{E as Xt,b as X,c as Yt,m as Zt,e as Qt,g as en,i as tn,f as nn}from"./element-ld5q79O4.js";import{V as ve,a as rn}from"./vxe-b1KXxwBC.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const j="v3-admin-vite";class T{}I(T,"TOKEN",`${j}-token-key`),I(T,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(T,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(T,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(T,"VISITED_VIEWS",`${j}-visited-views-key`),I(T,"CACHED_VIEWS",`${j}-cached-views-key`);const on=()=>{const e=localStorage.getItem(T.CONFIG_LAYOUT);return e?JSON.parse(e):null},sn=e=>{localStorage.setItem(T.CONFIG_LAYOUT,JSON.stringify(e))},No=()=>{localStorage.removeItem(T.CONFIG_LAYOUT)},Io=()=>localStorage.getItem(T.SIDEBAR_STATUS),Vo=e=>{localStorage.setItem(T.SIDEBAR_STATUS,e)},an=()=>localStorage.getItem(T.ACTIVE_THEME_NAME),cn=e=>{localStorage.setItem(T.ACTIVE_THEME_NAME,e)},un=()=>{const e=localStorage.getItem(T.VISITED_VIEWS);return JSON.parse(e??"[]")},ln=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(T.VISITED_VIEWS,JSON.stringify(e))},fn=()=>{const e=localStorage.getItem(T.CACHED_VIEWS);return JSON.parse(e??"[]")},dn=e=>{localStorage.setItem(T.CACHED_VIEWS,JSON.stringify(e))},st="normal",mn=[{title:"默认",name:st},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],_e=B(an()||st),pn=e=>{_e.value=e},hn=e=>{document.documentElement.className=e},gn=()=>{tt(()=>{const e=_e.value;hn(e),cn(e)})};function En(){return{themeList:mn,activeThemeName:_e,initTheme:gn,setTheme:pn}}var yn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",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:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},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 wn=nt({__name:"App",setup(e){const{initTheme:t}=En();return t(),Xt({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",duration:0,position:"bottom-right"}),(n,r)=>{const o=Fe("router-view"),s=Fe("el-config-provider");return rt(),Vt(s,{locale:Ut(yn)},{default:Mt(()=>[jt(o)]),_:1},8,["locale"])}}}),Te=Ht(),bn="modulepreload",Sn=function(e){return"/v3-admin-vite/"+e},Ne={},_=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Sn(c),c in Ne)return;Ne[c]=!0;const m=c.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":bn,m||(l.as="script",l.crossOrigin=""),l.href=c,i&&l.setAttribute("nonce",i),document.head.appendChild(l),m)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},vn=zt("/v3-admin-vite/"),it={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>_(()=>import("./index-bqZYTD97.js"),__vite__mapDeps([0,1,2,3,4,5,6])),at=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>_(()=>import("./index-9WtJ3xTJ.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>_(()=>import("./403-B_ShyF24.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>_(()=>import("./404-B593SmiY.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>_(()=>import("./index-C9DZYOVp.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>_(()=>import("./index-BrHElN7a.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>_(()=>import("./index-Dw-Ho-kh.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>_(()=>import("./index-DKUWMvVM.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>_(()=>import("./index-BL6CIOzR.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>_(()=>import("./index-Vt4OrK07.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>_(()=>import("./index-Dapx3d1y.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>_(()=>import("./index-Dy2ZLbEf.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>_(()=>import("./index-kb8lKb3g.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>_(()=>import("./index-ClpmKhhY.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>_(()=>import("./index-BpvKkLF5.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>_(()=>import("./index-D9QlbQU8.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>_(()=>import("./use-fetch-select-CcOJudaS.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>_(()=>import("./use-fullscreen-loading-aG1vhs6D.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>_(()=>import("./use-watermark-DHJQEN1R.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Ie=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>_(()=>import("./page-wWgzpEW4.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>_(()=>import("./directive-C8-2KWDf.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=qt({history:vn,routes:at});function _n(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}var Tn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Tn||{}),ct=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(ct||{});const Uo="opened",Mo="closed",Rn={layoutMode:ct.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},An={...Rn,...on()},ut=te("settings",()=>{const e={};for(const[n,r]of Object.entries(An)){const o=B(r);e[n]=o,ot(o,()=>{const s=t();sn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),On=te("tags-view",()=>{const{cacheTagsView:e}=ut(),t=B(e?un():[]),n=B(e?fn():[]);return tt(()=>{ln(t.value),dn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1?t.value[h].fullPath!==d.fullPath&&(t.value[h]={...d}):t.value.push({...d})},addCachedView:d=>{var h;typeof d.name=="string"&&(n.value.includes(d.name)||(h=d.meta)!=null&&h.keepAlive&&n.value.push(d.name))},delVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1&&t.value.splice(h,1)},delCachedView:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:d=>{t.value=t.value.filter(h=>{var y;return((y=h.meta)==null?void 0:y.affix)||h.path===d.path})},delOthersCachedViews:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(d=>{var h;return(h=d.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Cn={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function fe(e,t){function n(o,s,i){if(!(typeof document>"u")){i=G({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var m in i)i[m]&&(c+="; "+m,i[m]!==!0&&(c+="="+i[m].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;c<s.length;c++){var m=s[c].split("="),p=m.slice(1).join("=");try{var l=decodeURIComponent(m[0]);if(i[l]=e.read(p,l),o===l)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",G({},s,{expires:-1}))},withAttributes:function(o){return fe(this.converter,G({},this.attributes,o))},withConverter:function(o){return fe(G({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Re=fe(Cn,{path:"/"});const Ae=()=>Re.get(T.TOKEN),Ve=e=>{Re.set(T.TOKEN,e)},Ue=()=>{Re.remove(T.TOKEN)};function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Oe}=Object,ne=(e=>t=>{const n=xn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,W=re("undefined");function kn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=D("ArrayBuffer");function Pn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ft(e.buffer),t}const Dn=re("string"),k=re("function"),dt=re("number"),oe=e=>e!==null&&typeof e=="object",Ln=e=>e===!0||e===!1,Y=e=>{if(ne(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bn=D("Date"),Fn=D("File"),Nn=D("Blob"),In=D("FileList"),Vn=e=>oe(e)&&k(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=ne(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},Mn=D("URLSearchParams"),[jn,Hn,zn,qn]=["ReadableStream","Request","Response","Headers"].map(D),Wn=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,o;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(r=0;r<i;r++)c=s[r],t.call(null,e[c],c,e)}}function mt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ht=e=>!W(e)&&e!==pt;function de(){const{caseless:e}=ht(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;Y(t[s])&&Y(r)?t[s]=de(t[s],r):Y(r)?t[s]=de({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&J(arguments[r],n);return t}const Jn=(e,t,n,{allOwnKeys:r}={})=>(J(t,(o,s)=>{n&&k(o)?e[s]=lt(o,n):e[s]=o},{allOwnKeys:r}),e),$n=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Gn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xn=(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},Yn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!dt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),Qn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},er=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tr=D("HTMLFormElement"),nr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rr=D("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},or=e=>{gt(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(k(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},ir=()=>{},ar=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ae="abcdefghijklmnopqrstuvwxyz",je="0123456789",Et={DIGIT:je,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+je},cr=(e=16,t=Et.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ur(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lr=e=>{const t=new Array(10),n=(r,o)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return J(r,(i,c)=>{const m=n(i,o+1);!W(m)&&(s[c]=m)}),t[o]=void 0,s}}return r};return n(e,0)},fr=D("AsyncFunction"),dr=e=>e&&(oe(e)||k(e))&&k(e.then)&&k(e.catch),a={isArray:H,isArrayBuffer:ft,isBuffer:kn,isFormData:Un,isArrayBufferView:Pn,isString:Dn,isNumber:dt,isBoolean:Ln,isObject:oe,isPlainObject:Y,isReadableStream:jn,isRequest:Hn,isResponse:zn,isHeaders:qn,isUndefined:W,isDate:Bn,isFile:Fn,isBlob:Nn,isRegExp:rr,isFunction:k,isStream:Vn,isURLSearchParams:Mn,isTypedArray:Zn,isFileList:In,forEach:J,merge:de,extend:Jn,trim:Wn,stripBOM:$n,inherits:Kn,toFlatObject:Gn,kindOf:ne,kindOfTest:D,endsWith:Xn,toArray:Yn,forEachEntry:Qn,matchAll:er,isHTMLForm:tr,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:gt,freezeMethods:or,toObjectSet:sr,toCamelCase:nr,noop:ir,toFiniteNumber:ar,findKey:mt,global:pt,isContextDefined:ht,ALPHABET:Et,generateString:cr,isSpecCompliantForm:ur,toJSONObject:lr,isAsyncFn:fr,isThenable:dr};function E(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}a.inherits(E,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.response&&this.response.status?this.response.status:null}}});const yt=E.prototype,wt={};["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=>{wt[e]={value:e}});Object.defineProperties(E,wt);Object.defineProperty(yt,"isAxiosError",{value:!0});E.from=(e,t,n,r,o,s)=>{const i=Object.create(yt);return a.toFlatObject(e,i,function(m){return m!==Error.prototype},c=>c!=="isAxiosError"),E.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const mr=null;function me(e){return a.isPlainObject(e)||a.isArray(e)}function bt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function He(e,t,n){return e?e.concat(t).map(function(o,s){return o=bt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function pr(e){return a.isArray(e)&&!e.some(me)}const hr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function se(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,g){return!a.isUndefined(g[f])});const r=n.metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!m&&a.isBlob(u))throw new E("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?m&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,f,g){let w=u;if(u&&!g&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&pr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(w=a.toArray(u)))return f=bt(f),w.forEach(function(b,S){!(a.isUndefined(b)||b===null)&&t.append(i===!0?He([f],S,s):i===null?f:f+"[]",p(b))}),!1}return me(u)?!0:(t.append(He(g,f,s),p(u)),!1)}const d=[],h=Object.assign(hr,{defaultVisitor:l,convertValue:p,isVisitable:me});function y(u,f){if(!a.isUndefined(u)){if(d.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(u),a.forEach(u,function(w,v){(!(a.isUndefined(w)||w===null)&&o.call(t,w,a.isString(v)?v.trim():v,f,h))===!0&&y(w,f?f.concat(v):[v])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ce(e,t){this._pairs=[],e&&se(e,this,t)}const St=Ce.prototype;St.append=function(t,n){this._pairs.push([t,n])};St.toString=function(t){const n=t?function(r){return t.call(this,r,ze)}:ze;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vt(e,t,n){if(!t)return e;const r=n&&n.encode||gr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Ce(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class qe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Ce,yr=typeof FormData<"u"?FormData:null,wr=typeof Blob<"u"?Blob:null,br={isBrowser:!0,classes:{URLSearchParams:Er,FormData:yr,Blob:wr},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",Sr=(e=>xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_r=xe&&window.location.href||"http://localhost",Tr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:Sr,hasStandardBrowserWebWorkerEnv:vr,origin:_r},Symbol.toStringTag,{value:"Module"})),P={...Tr,...br};function Rr(e,t){return se(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return P.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ar(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Or(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function Tt(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),m=s>=n.length;return i=!i&&a.isArray(o)?o.length:i,m?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Or(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ar(r),o,n,0)}),n}return null}function Cr(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 $={transitional:_t,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Tt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return se(c?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Cr(t)):t}],transformResponse:[function(t){const n=this.transitional||$.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?E.from(c,E.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:P.classes.FormData,Blob:P.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=>{$.headers[e]={}});const xr=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"]),kr=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&xr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},We=Symbol("internals");function q(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 Pr(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 Dr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ce(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Lr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Br(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class O{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,m,p){const l=q(m);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(o,l);(!d||o[d]===void 0||p===!0||p===void 0&&o[d]!==!1)&&(o[d||m]=Z(c))}const i=(c,m)=>a.forEach(c,(p,l)=>s(p,l,m));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Dr(t))i(kr(t),n);else if(a.isHeaders(t))for(const[c,m]of t.entries())s(m,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=q(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Pr(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=q(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ce(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=q(i),i){const c=a.findKey(r,i);c&&(!n||ce(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||ce(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=Z(o),delete n[s];return}const c=t?Lr(s):String(s).trim();c!==s&&delete n[s],n[c]=Z(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[We]=this[We]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=q(i);r[c]||(Br(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(O);function ue(e,t){const n=this||$,r=t||n,o=O.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Rt(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,E,{__CANCEL__:!0});function At(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(m){const p=Date.now(),l=r[s];i||(i=p),n[o]=m,r[o]=p;let d=s,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),p-i<t)return;const y=l&&p-l;return y?Math.round(h*1e3/y):void 0}}function Ir(e,t){let n=0;const r=1e3/t;let o=null;return function(){const i=this===!0,c=Date.now();if(i||c-n>r)return o&&(clearTimeout(o),o=null),n=c,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(c-n)))}}const Q=(e,t,n=3)=>{let r=0;const o=Nr(50,250);return Ir(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,m=i-r,p=o(m),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:m,rate:p||void 0,estimated:p&&c&&l?(c-i)/p:void 0,event:s,lengthComputable:c!=null};d[t?"download":"upload"]=!0,e(d)},n)},Vr=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Ur=P.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Mr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ot(e,t){return e&&!Mr(t)?jr(e,t):t}const Je=e=>e instanceof O?{...e}:e;function M(e,t){t=t||{};const n={};function r(p,l,d){return a.isPlainObject(p)&&a.isPlainObject(l)?a.merge.call({caseless:d},p,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function o(p,l,d){if(a.isUndefined(l)){if(!a.isUndefined(p))return r(void 0,p,d)}else return r(p,l,d)}function s(p,l){if(!a.isUndefined(l))return r(void 0,l)}function i(p,l){if(a.isUndefined(l)){if(!a.isUndefined(p))return r(void 0,p)}else return r(void 0,l)}function c(p,l,d){if(d in t)return r(p,l);if(d in e)return r(void 0,p)}const m={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(p,l)=>o(Je(p),Je(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=m[l]||o,h=d(e[l],t[l],l);a.isUndefined(h)&&d!==c||(n[l]=h)}),n}const Ct=e=>{const t=M({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=O.from(i),t.url=vt(Ot(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let m;if(a.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((m=i.getContentType())!==!1){const[p,...l]=m?m.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Vr(t.url))){const p=o&&s&&Ur.read(s);p&&i.set(o,p)}return t},Hr=typeof XMLHttpRequest<"u",zr=Hr&&function(e){return new Promise(function(n,r){const o=Ct(e);let s=o.data;const i=O.from(o.headers).normalize();let{responseType:c}=o,m;function p(){o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let l=new XMLHttpRequest;l.open(o.method.toUpperCase(),o.url,!0),l.timeout=o.timeout;function d(){if(!l)return;const y=O.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),f={data:!c||c==="text"||c==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};At(function(w){n(w),p()},function(w){r(w),p()},f),l=null}"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new E("Request aborted",E.ECONNABORTED,o,l)),l=null)},l.onerror=function(){r(new E("Network Error",E.ERR_NETWORK,o,l)),l=null},l.ontimeout=function(){let u=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const f=o.transitional||_t;o.timeoutErrorMessage&&(u=o.timeoutErrorMessage),r(new E(u,f.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,o,l)),l=null},s===void 0&&i.setContentType(null),"setRequestHeader"in l&&a.forEach(i.toJSON(),function(u,f){l.setRequestHeader(f,u)}),a.isUndefined(o.withCredentials)||(l.withCredentials=!!o.withCredentials),c&&c!=="json"&&(l.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&l.addEventListener("progress",Q(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Q(o.onUploadProgress)),(o.cancelToken||o.signal)&&(m=y=>{l&&(r(!y||y.type?new z(null,e,l):y),l.abort(),l=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const h=Fr(o.url);if(h&&P.protocols.indexOf(h)===-1){r(new E("Unsupported protocol "+h+":",E.ERR_BAD_REQUEST,e));return}l.send(s||null)})},qr=(e,t)=>{let n=new AbortController,r;const o=function(m){if(!r){r=!0,i();const p=m instanceof Error?m:this.reason;n.abort(p instanceof E?p:new z(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{o(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",o):m.unsubscribe(o))}),e=null)};e.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=i,[c,()=>{s&&clearTimeout(s),s=null}]},Wr=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Jr=async function*(e,t,n){for await(const r of e)yield*Wr(ArrayBuffer.isView(r)?r:await n(String(r)),t)},$e=(e,t,n,r,o)=>{const s=Jr(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(c){const{done:m,value:p}=await s.next();if(m){c.close(),r();return}let l=p.byteLength;n&&n(i+=l),c.enqueue(new Uint8Array(p))},cancel(c){return r(c),s.return()}},{highWaterMark:2})},Ke=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ie=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=ie&&typeof ReadableStream=="function",pe=ie&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$r=xt&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Ge=64*1024,he=xt&&!!(()=>{try{return a.isReadableStream(new Response("").body)}catch{}})(),ee={stream:he&&(e=>e.body)};ie&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ee[t]&&(ee[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const Kr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(a.isArrayBufferView(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await pe(e)).byteLength},Gr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Kr(t)},Xr=ie&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:m,responseType:p,headers:l,withCredentials:d="same-origin",fetchOptions:h}=Ct(e);p=p?(p+"").toLowerCase():"text";let[y,u]=o||s||i?qr([o,s],i):[],f,g;const w=()=>{!f&&setTimeout(()=>{y&&y.unsubscribe()}),f=!0};let v;try{if(m&&$r&&n!=="get"&&n!=="head"&&(v=await Gr(l,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),x;a.isFormData(r)&&(x=A.headers.get("content-type"))&&l.setContentType(x),A.body&&(r=$e(A.body,Ge,Ke(v,Q(m)),null,pe))}a.isString(d)||(d=d?"cors":"omit"),g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let b=await fetch(g);const S=he&&(p==="stream"||p==="response");if(he&&(c||S)){const A={};["status","statusText","headers"].forEach(L=>{A[L]=b[L]});const x=a.toFiniteNumber(b.headers.get("content-length"));b=new Response($e(b.body,Ge,c&&Ke(x,Q(c,!0)),S&&w,pe),A)}p=p||"text";let C=await ee[a.findKey(ee,p)||"text"](b,e);return!S&&w(),u&&u(),await new Promise((A,x)=>{At(A,x,{data:C,headers:O.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw w(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,g),{cause:b.cause||b}):E.from(b,b&&b.code,e,g)}}),ge={http:mr,xhr:zr,fetch:Xr};a.forEach(ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Yr=e=>a.isFunction(e)||e===null||e===!1,kt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let i;if(r=n,!Yr(n)&&(r=ge[(i=String(n)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([c,m])=>`adapter ${c} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
`+s.map(Xe).join(`
`):" "+Xe(s[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ge};function le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function Ye(e){return le(e),e.headers=O.from(e.headers),e.data=ue.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kt.getAdapter(e.adapter||$.adapter)(e).then(function(r){return le(e),r.data=ue.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return Rt(r)||(le(e),r&&r.response&&(r.response.data=ue.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const Pt="1.7.2",ke={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ke[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ze={};ke.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Pt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new E(o(i," has been removed"+(n?" in "+n:"")),E.ERR_DEPRECATED);return n&&!Ze[i]&&(Ze[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};function Zr(e,t,n){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],m=c===void 0||i(c,s,e);if(m!==!0)throw new E("option "+s+" must be "+m,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+s,E.ERR_BAD_OPTION)}}const Ee={assertOptions:Zr,validators:ke},F=Ee.validators;class U{constructor(t){this.defaults=t,this.interceptors={request:new qe,response:new qe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=M(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ee.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Ee.assertOptions(o,{encode:F.function,serialize:F.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete s[u]}),n.headers=O.concat(i,s);const c=[];let m=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(m=m&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let l,d=0,h;if(!m){const u=[Ye.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,p),h=u.length,l=Promise.resolve(n);d<h;)l=l.then(u[d++],u[d++]);return l}h=c.length;let y=n;for(d=0;d<h;){const u=c[d++],f=c[d++];try{y=u(y)}catch(g){f.call(this,g);break}}try{l=Ye.call(this,y)}catch(u){return Promise.reject(u)}for(d=0,h=p.length;d<h;)l=l.then(p[d++],p[d++]);return l}getUri(t){t=M(this.defaults,t);const n=Ot(t.baseURL,t.url);return vt(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){U.prototype[t]=function(n,r){return this.request(M(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,c){return this.request(M(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}U.prototype[t]=n(),U.prototype[t+"Form"]=n(!0)});class Pe{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new z(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Pe(function(o){t=o}),cancel:t}}}function Qr(e){return function(n){return e.apply(null,n)}}function eo(e){return a.isObject(e)&&e.isAxiosError===!0}const ye={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(ye).forEach(([e,t])=>{ye[t]=e});function Dt(e){const t=new U(e),n=lt(U.prototype.request,t);return a.extend(n,U.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Dt(M(e,o))},n}const R=Dt($);R.Axios=U;R.CanceledError=z;R.CancelToken=Pe;R.isCancel=Rt;R.VERSION=Pt;R.toFormData=se;R.AxiosError=E;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=Qr;R.isAxiosError=eo;R.mergeConfig=M;R.AxiosHeaders=O;R.formToJSON=e=>Tt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=kt.getAdapter;R.HttpStatusCode=ye;R.default=R;function Qe(){Le().logout(),location.reload()}function to(){const e=R.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var s;const n=t.data,r=(s=t.request)==null?void 0:s.responseType;if(r==="blob"||r==="arraybuffer")return n;const o=n.code;if(o===void 0)return X.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(o){case 0:return n;case 401:return Qe();default:return X.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(Yt(t,"response.status")){case 400:t.message="请求错误";break;case 401:Qe();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return X.error(t.message),Promise.reject(t)}),e}function no(e){return function(t){const n=Ae(),r={headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},timeout:5e3,baseURL:"https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1",data:{}},o=Zt(r,t);return e(o)}}const ro=to(),De=no(ro);function jo(){return De({url:"login/code",method:"get"})}function oo(e){return De({url:"users/login",method:"post",data:e})}function so(){return De({url:"users/info",method:"get"})}const io=te("user",()=>{const e=B(Ae()||""),t=B([]),n=B(""),r=On(),o=ut(),s=async({username:d,password:h,code:y})=>{const{data:u}=await oo({username:d,password:h,code:y});Ve(u.token),e.value=u.token},i=async()=>{var h;const{data:d}=await so();n.value=d.username,t.value=((h=d.roles)==null?void 0:h.length)>0?d.roles:it.defaultRoles},c=async d=>{const h="token-"+d;e.value=h,Ve(h),window.location.reload()},m=()=>{Ue(),e.value="",t.value=[],_n(),l()},p=()=>{Ue(),e.value="",t.value=[]},l=()=>{o.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,login:s,getInfo:i,changeRoles:c,logout:m,resetToken:p}});function Le(){return io(Te)}const ao=(e,t)=>{var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(o=>n.includes(o)):!0},Lt=(e,t)=>{const n=[];return e.forEach(r=>{const o={...r};ao(t,o)&&(o.children&&(o.children=Lt(o.children,t)),n.push(o))}),n},co=te("permission",()=>{const e=B([]),t=B([]),n=s=>{const i=Lt(Ie,s);o(i)},r=()=>{o(Ie)},o=s=>{e.value=at.concat(s),t.value=s};return{routes:e,addRoutes:t,setRoutes:n,setAllRoutes:r}});function uo(){return co(Te)}function lo(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const we=lo(),be=Symbol("ROUTE_CHANGE");let Se;const fo=e=>{we.emit(be,e),Se=e};function Ho(){const e=[],t=(r,o=!1)=>{e.push(r),we.on(be,r),o&&Se&&r(Se)},n=r=>{we.off(be,r)};return Wt(()=>{for(let r=0;r<e.length;r++)n(e[r])}),{listenerRouteChange:t,removeRouteListener:n}}const et="V3 Admin Vite",Bt=B(""),mo=e=>{Bt.value=e?`${et} | ${e}`:et};ot(Bt,(e,t)=>{document&&e!==t&&(document.title=e)});function po(){return{setTitle:mo}}const ho=["/login"],go=[],Eo=e=>ho.indexOf(e.path)!==-1||go.indexOf(e.name)!==-1;var Ft={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Qt,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(u){var f,g;for(f in u)g=u[f],g!==void 0&&u.hasOwnProperty(f)&&(r[f]=g);return this},n.status=null,n.set=function(u){var f=n.isStarted();u=o(u,r.minimum,1),n.status=u===1?null:u;var g=n.render(!f),w=g.querySelector(r.barSelector),v=r.speed,b=r.easing;return g.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),m(w,i(u,v,b)),u===1?(m(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){m(g,{transition:"all "+v+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},v)},v)):setTimeout(S,v)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var u=function(){setTimeout(function(){n.status&&(n.trickle(),u())},r.trickleSpeed)};return r.trickle&&u(),this},n.done=function(u){return!u&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(u){var f=n.status;return f?(typeof u!="number"&&(u=(1-f)*o(Math.random()*f,.1,.95)),f=o(f+u,0,.994),n.set(f)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,f=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(f===0&&n.start(),u++,f++,g.always(function(){f--,f===0?(u=0,n.done()):n.set((u-f)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=r.template;var g=f.querySelector(r.barSelector),w=u?"-100":s(n.status||0),v=document.querySelector(r.parent),b;return m(g,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(b=f.querySelector(r.spinnerSelector),b&&y(b)),v!=document.body&&l(v,"nprogress-custom-parent"),v.appendChild(f),f},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var u=document.getElementById("nprogress");u&&y(u)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var u=document.body.style,f="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return f+"Perspective"in u?"translate3d":f+"Transform"in u?"translate":"margin"};function o(u,f,g){return u<f?f:u>g?g:u}function s(u){return(-1+u)*100}function i(u,f,g){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+s(u)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+s(u)+"%,0)"}:w={"margin-left":s(u)+"%"},w.transition="all "+f+"ms "+g,w}var c=function(){var u=[];function f(){var g=u.shift();g&&g(f)}return function(g){u.push(g),u.length==1&&f()}}(),m=function(){var u=["Webkit","O","Moz","ms"],f={};function g(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,A){return A.toUpperCase()})}function w(S){var C=document.body.style;if(S in C)return S;for(var A=u.length,x=S.charAt(0).toUpperCase()+S.slice(1),L;A--;)if(L=u[A]+x,L in C)return L;return S}function v(S){return S=g(S),f[S]||(f[S]=w(S))}function b(S,C,A){C=v(C),S.style[C]=A}return function(S,C){var A=arguments,x,L;if(A.length==2)for(x in C)L=C[x],L!==void 0&&C.hasOwnProperty(x)&&b(S,x,L);else b(S,A[1],A[2])}}();function p(u,f){var g=typeof u=="string"?u:h(u);return g.indexOf(" "+f+" ")>=0}function l(u,f){var g=h(u),w=g+f;p(g,f)||(u.className=w.substring(1))}function d(u,f){var g=h(u),w;p(u,f)&&(w=g.replace(" "+f+" "," "),u.className=w.substring(1,w.length-1))}function h(u){return(" "+(u.className||"")+" ").replace(/\s+/gi," ")}function y(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return n})})(Ft);var yo=Ft.exports;const Be=en(yo),{setTitle:wo}=po();Be.configure({showSpinner:!1});N.beforeEach(async(e,t,n)=>{Be.start();const r=Le(),o=uo();if(!Ae())return Eo(e)?n():n("/login");if(e.path==="/login")return n({path:"/"});if(r.roles.length!==0)return n();try{await r.getInfo();const i=r.roles;it.dynamic?o.setRoutes(i):o.setAllRoutes(),o.addRoutes.forEach(c=>N.addRoute(c)),n({...e,replace:!0})}catch(i){r.resetToken(),X.error(i.message||"路由守卫过程发生错误"),n("/login")}});N.afterEach(e=>{fo(e),wo(e.meta.title),Be.done()});const bo={class:"svg-icon","aria-hidden":"true"},So=["href"],vo=nt({__name:"index",props:{prefix:{default:"icon"},name:{}},setup(e){const t=e,n=Jt(()=>`#${t.prefix}-${t.name}`);return(r,o)=>(rt(),$t("svg",bo,[Kt("use",{href:n.value},null,8,So)]))}}),_o=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},To=_o(vo,[["__scopeId","data-v-ce51d543"]]);if(typeof window<"u"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="icon-404"><path d="M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0ZM480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z" /><path d="m955.7 856-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-bug"><path d="M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 34.8-28.2 63-63 63H232c-34.8 0-63-28.2-63-63 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7 6 17.2 13.6 33.6 22.7 49 24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2c41.5-24.3 76.2-59 100.5-100.5 9.1-15.5 16.7-31.9 22.7-49C812.1 793.1 836 831.8 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3-20.1 11.8-42 20-64.9 24.3V484c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v396.5c-22.9-4.3-44.8-12.5-64.9-24.3-30.3-17.7-55.6-43-73.3-73.3C317.7 752 308 716.8 308 680V412h408v268z" /><path d="M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1-17.2-31.5-42.5-56.8-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9-31.5 17.2-56.8 42.5-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-component"><path d="M64 64h384v384H64V64zm0 512h384v384H64V576zm512 0h384v384H576V576zm192-128c106.039 0 192-85.961 192-192S874.039 64 768 64s-192 85.961-192 192 85.961 192 192 192z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-dashboard"><path d="M924.8 385.6c-22.6-53.4-54.9-101.3-96-142.4-41.1-41.1-89-73.4-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2c-53.4 22.6-101.3 54.9-142.4 96-41.1 41.1-73.4 89-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6C184.5 765.5 140 665.6 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z" /><path d="M623.5 421.5c-3.1-3.1-8.2-3.1-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5-21.9 21.9-21.9 57.3 0 79.2 21.9 21.9 57.3 21.9 79.2 0 14.7-14.7 19.5-35.4 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2-31.1-31.1c-3.1-3.1-8.2-3.1-11.3 0l-56.6 56.6c-3.1 3.1-3.1 8.2 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1c-3.1-3.1-8.2-3.1-11.3 0l-31.1 31.1c-3.1 3.1-3.1 8.2 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-fullscreen-exit"><path d="M704 864v-96c0-54.4 41.6-96 96-96h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-89.6 0-160 70.4-160 160v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64-704v96c0 89.6 70.4 160 160 160h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-54.4 0-96-41.6-96-96v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32zM384 864v-96c0-89.6-70.4-160-160-160h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c54.4 0 96 41.6 96 96v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64-704v96c0 54.4-41.6 96-96 96h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c89.6 0 160-70.4 160-160v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-fullscreen"><path d="M192 384v-96c0-54.4 41.6-96 96-96h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-89.6 0-160 70.4-160 160v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64 256v96c0 89.6 70.4 160 160 160h96c19.2 0 32-12.8 32-32s-12.8-32-32-32h-96c-54.4 0-96-41.6-96-96v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32zm768-256v-96c0-89.6-70.4-160-160-160h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c54.4 0 96 41.6 96 96v96c0 19.2 12.8 32 32 32s32-12.8 32-32zm-64 256v96c0 54.4-41.6 96-96 96h-96c-19.2 0-32 12.8-32 32s12.8 32 32 32h96c89.6 0 160-70.4 160-160v-96c0-19.2-12.8-32-32-32s-32 12.8-32 32z" /></symbol><symbol aria-label="Arrow down" viewBox="0 0 15 15" id="icon-keyboard-down"><path d="M7.5 3.5v8m3-3-3 3-3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Enter key" viewBox="0 0 15 15" id="icon-keyboard-enter"><path d="M12 3.53v3c0 1-1 2-2 2H4m3 3-3-3 3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Escape key" viewBox="0 0 15 15" id="icon-keyboard-esc"><path d="M13.617 8.936c-.107.358-.689.962-1.488.962-.8 0-1.653-.916-1.653-2.126v-.568c0-1.254.79-2.101 1.653-2.101.864 0 1.36.478 1.488 1.072M9 6c-.135-.473-.75-.922-1.46-.897-.71.024-1.344.57-1.344 1.216s.42.882 1.345.98C8.464 7.4 8.967 7.935 9 8.5c.032.566-.454 1.398-1.46 1.398C6.66 9.898 6 9 5.963 8.485m-1.475.537c-.263.594-.81.876-1.544.876s-1.707-.625-1.707-2.204v-.46c0-1.042.72-2.131 1.707-2.131.986 0 1.642 1.03 1.544 2.249H1.532" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol aria-label="Arrow up" viewBox="0 0 15 15" id="icon-keyboard-up"><path d="M7.5 11.5v-8m3 3-3-3-3 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-link"><path d="M574 665.4c-3.1-3.1-8.2-3.1-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8c-3.1-3.1-8.2-3.1-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6c-3.1 3.1-3.1 8.2 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6c-3.1 3.1-3.1 8.2 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1z" /><path d="M610.1 372.3c-3.1-3.1-8.2-3.1-11.3 0L372.3 598.7c-3.1 3.1-3.1 8.2 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-lock"><path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z" /><path d="M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53c12.1-8.7 20-22.9 20-39 0-26.5-21.5-48-48-48s-48 21.5-48 48c0 16.1 7.9 30.3 20 39z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-menu"><path d="M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-search"><path d="M862.609 816.955 726.44 680.785l-.059-.056a358.907 358.907 0 0 0 56.43-91.927c18.824-44.507 28.369-91.767 28.369-140.467 0-48.701-9.545-95.96-28.369-140.467-18.176-42.973-44.19-81.56-77.319-114.689-33.13-33.129-71.717-59.144-114.69-77.32-44.507-18.825-91.767-28.37-140.467-28.37-48.701 0-95.96 9.545-140.467 28.37-42.973 18.176-81.56 44.19-114.689 77.32-33.13 33.129-59.144 71.717-77.32 114.689-18.825 44.507-28.37 91.767-28.37 140.467 0 48.7 9.545 95.96 28.37 140.467 18.176 42.974 44.19 81.561 77.32 114.69 33.129 33.129 71.717 59.144 114.689 77.319 44.507 18.824 91.767 28.369 140.467 28.369 48.7 0 95.96-9.545 140.467-28.369 32.78-13.864 62.997-32.303 90.197-54.968.063.064.122.132.186.195l136.169 136.17c6.25 6.25 14.438 9.373 22.628 9.373 8.188 0 16.38-3.125 22.627-9.372 12.496-12.496 12.496-32.758 0-45.254zm-412.274-69.466c-79.907 0-155.031-31.118-211.534-87.62-56.503-56.503-87.62-131.627-87.62-211.534s31.117-155.031 87.62-211.534c56.502-56.503 131.626-87.62 211.534-87.62s155.031 31.117 211.534 87.62c56.502 56.502 87.62 131.626 87.62 211.534s-31.118 155.031-87.62 211.534c-56.503 56.502-131.627 87.62-211.534 87.62z" /></symbol><symbol viewBox="0 0 220 220" id="icon-unocss"><path d="M117.444 167.888c0-27.615 22.386-50 50-50s50 22.385 50 50c0 27.614-22.386 50-50 50s-50-22.386-50-50ZM117.444 53c0-27.614 22.386-50 50-50s50 22.386 50 50v45a5 5 0 0 1-5 5h-90a5 5 0 0 1-5-5V53ZM102 167.888c0 27.614-22.386 50-50 50s-50-22.386-50-50v-45a5 5 0 0 1 5-5h90a5 5 0 0 1 5 5v45Z" /></symbol>',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function Ro(e){e.component("SvgIcon",To)}function Ao(e){e.use(tn)}function Oo(e){for(const[t,n]of Object.entries(nn))e.component(t,n)}ve.use(rn);ve.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 Co(e){e.use(ve)}function xo(e){Ao(e),Oo(e),Co(e)}const ko={mounted(e,t){var o;const{value:n}=t,{roles:r}=Le();if(Array.isArray(n)&&n.length>0)r.some(i=>n.includes(i))||((o=e.parentNode)==null||o.removeChild(e));else throw new Error(`need roles! Like v-permission="['admin','editor']"`)}};function Po(e){e.directive("permission",ko)}const K=Gt(wn);xo(K);Ro(K);Po(K);K.use(Te).use(N);N.isReady().then(()=>{K.mount("#app")});export{Tn as D,ct as L,Mo as S,_o as _,Uo as a,ut as b,On as c,co as d,io as e,jo as f,Io as g,En as h,De as i,Le as j,No as r,Vo as s,Ho as u};