anvero-layout 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./style.css";import{Fragment as e,KeepAlive as t,Teleport as n,Transition as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createSlots as l,createTextVNode as u,createVNode as d,defineComponent as f,getCurrentInstance as p,guardReactiveProps as m,h,isRef as g,mergeProps as _,nextTick as v,normalizeClass as y,normalizeProps as b,normalizeStyle as x,onMounted as S,onUnmounted as C,openBlock as w,ref as T,renderList as E,renderSlot as D,resolveComponent as O,resolveDynamicComponent as k,shallowRef as A,toDisplayString as j,unref as M,useAttrs as N,useCssVars as P,useSlots as F,vShow as I,watch as L,watchEffect as R,withCtx as z,withDirectives as B,withModifiers as V}from"vue";import{useRoute as H,useRouter as U}from"vue-router";import{defineStore as W}from"pinia";import{useBreakpoints as ee,useClipboard as te,useElementSize as ne,usePreferredDark as re,useThrottleFn as ie,useTimeoutFn as ae,useWindowSize as oe}from"@vueuse/core";import{ElMessage as se}from"element-plus";var ce=/*@__PURE__*/ f({__name:`index`,props:{cell:{default:0,type:[Number,String]},order:{default:0,type:[Number,String]},fill:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean}},setup(e){let t=e,n=i(()=>{let e=[],n=[{class:`flex-top`,value:t.top},{class:`flex-middle`,value:t.middle},{class:`flex-bottom`,value:t.bottom}].filter(e=>e.value==1),r=[{class:`flex-left`,value:t.left},{class:`flex-right`,value:t.right},{class:`flex-center`,value:t.center}].filter(e=>e.value==1);return n.length>1&&console.warn(`[ flex-item ] 中 top,middle,bottom 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),r.length>1&&console.warn(`[ flex-item ] 中 left,right,center 只能有一个,已取第一个 ${r[0].class}`),r[0]?.class&&e.push(r[0].class),t.cell&&parseInt(`${t.cell}`)>0&&parseInt(`${t.cell}`)<=24&&e.push(`flex-item-${t.cell}`),t.order&&parseInt(`${t.order}`)>0&&parseInt(`${t.order}`)<=24&&e.push(`flex-order-${t.order}`),e.push(t.nowrap?`flex-nowrap`:``,t.fill?`flex-fill`:``,t.mdHidden?`flex-md-hide`:``,t.smHidden?`flex-sm-hide`:``),e.filter(Boolean)});return(e,t)=>(w(),s(`section`,{class:y([`flex flex-item`,n.value])},[D(e.$slots,`default`,{},void 0,!0)],2))}}),G=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},le=/*#__PURE__*/ G(ce,[[`__scopeId`,`data-v-9e25f076`]]),ue=`flex-item-`,de=()=>{let e=F();return i(()=>(e.default?.()??[]).map(e=>{if(!e.props)return e;let t={},n={...e.props};for(let e of Object.keys(n)){if(!e.startsWith(ue))continue;let r=e.slice(10);r===`style`?t.style=n[e]:t[r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=n[e],delete n[e]}return Object.keys(t).length?h(le,t,{default:()=>h(e.type,n,e.children??void 0)}):e}))},fe=e=>e.vnodes;fe.props=[`vnodes`];var pe=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{fill:{default:!1,type:Boolean},space:{default:0,type:[Number,String]},reverse:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},around:{default:!1,type:Boolean},evenly:{default:!1,type:Boolean},between:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean},width:{type:[Number,String,Boolean],default:!1},minWidth:{type:[Number,String],default:0},maxWidth:{type:[Number,String],default:0},height:{type:[Number,String,Boolean],default:!1},minHeight:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:0}},setup(e){let t=p()?.proxy,n=T(null),r=de(),a=/^\d+(\.\d+)?[a-z%]+$/i,o=e,c=i(()=>{let e=[],t=[{class:`flex-top`,value:o.top},{class:`flex-middle`,value:o.middle},{class:`flex-bottom`,value:o.bottom},{class:`flex-around`,value:o.around},{class:`flex-evenly`,value:o.evenly},{class:`flex-between`,value:o.between}].filter(e=>e.value==1),n=[{class:`flex-left`,value:o.left},{class:`flex-right`,value:o.right},{class:`flex-center`,value:o.center}].filter(e=>e.value==1);return t.length>1&&console.warn(`[ flex-col ] 中 top,middle,bottom,around,evenly,between 只能有一个,已取第一个 ${t[0].class}`),t[0]?.class&&e.push(t[0].class),n.length>1&&console.warn(`[ flex-col ] 中 left,right,center 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),e.push(o.reverse?`flex-col-reverse`:``,o.nowrap?`flex-nowrap`:``,o.fill?`flex-fill`:``,o.mdHidden?`flex-md-hide`:``,o.smHidden?`flex-sm-hide`:``),e.filter(Boolean)}),l=i(()=>{let e=`${o.space}`;return!e||e===`0`?``:`gap:${/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}`}),u=i(()=>{let e=[],t=n.value;for(let[n,r]of[[`width`,`minWidth`],[`height`,`minHeight`]]){let i=o[n],s=parseFloat(`${o[r]}`);i!==!1&&(typeof i==`string`&&a.test(i)?e.push(`${n}:${i}`):i!==!0&&i!==``?e.push(`${n}:${Math.max(parseFloat(`${i}`),s)}px`):t&&e.push(t[n]>0?`${n}:${Math.max(t[n],s)}px`:`${n}:100%`))}for(let[t,n]of[[`width`,`maxWidth`],[`height`,`maxHeight`]]){let r=o[n];typeof r==`string`&&a.test(r)?e.push(`max-${t}:${r}`):parseFloat(`${r}`)>0&&e.push(`max-${t}:${parseFloat(`${r}`)}px`)}return e}),f=i(()=>o.width===!1||u.value.some(e=>e.startsWith(`width`))),m,h=()=>{let e=t?.$el?.parentNode||(t?.$parent?.$el instanceof Element?t?.$parent.$el:t?.$parent?.$el?.parentElement);if(!e){n.value={width:0,height:0};return}let r=window.getComputedStyle(e),i=e=>parseFloat(r.getPropertyValue(e))||0;return n.value={width:e.clientWidth-i(`padding-left`)-i(`padding-right`)-i(`border-left-width`)-i(`border-right-width`)-.01,height:e.clientHeight-i(`padding-top`)-i(`padding-bottom`)-i(`border-top-width`)-i(`border-bottom-width`)-.01},e};return S(()=>{v(()=>{if(o.width===!1&&o.height===!1)return;let e=h();e&&(m=new ResizeObserver(()=>h()),m.observe(e))})}),C(()=>{m?.disconnect()}),(e,t)=>B((w(),s(`section`,{class:y([`flex flex-col`,c.value]),style:x([u.value,l.value])},[d(M(fe),{vnodes:M(r)},null,8,[`vnodes`])],6)),[[I,f.value]])}}),[[`__scopeId`,`data-v-6641cdee`]]),me=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{fill:{default:!1,type:Boolean},space:{default:0,type:[Number,String]},reverse:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},around:{default:!1,type:Boolean},evenly:{default:!1,type:Boolean},between:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean},width:{type:[Number,String,Boolean],default:!1},minWidth:{type:[Number,String],default:0},maxWidth:{type:[Number,String],default:0},height:{type:[Number,String,Boolean],default:!1},minHeight:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:0}},setup(e){let t=p()?.proxy,n=T(null),r=de(),a=/^\d+(\.\d+)?[a-z%]+$/i,o=e,c=i(()=>{let e=[],t=[{class:`flex-left`,value:o.left},{class:`flex-right`,value:o.right},{class:`flex-center`,value:o.center},{class:`flex-around`,value:o.around},{class:`flex-evenly`,value:o.evenly},{class:`flex-between`,value:o.between}].filter(e=>e.value==1),n=[{class:`flex-top`,value:o.top},{class:`flex-middle`,value:o.middle},{class:`flex-bottom`,value:o.bottom}].filter(e=>e.value==1);return t.length>1&&console.warn(`[ flex-row ] 中 left,right,center,around,evenly,between 只能有一个,已取第一个 ${t[0].class}`),t[0]?.class&&e.push(t[0].class),n.length>1&&console.warn(`[ flex-row ] 中 top,middle,bottom 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),e.push(o.reverse?`flex-row-reverse`:``,o.nowrap?`flex-nowrap`:``,o.fill?`flex-fill`:``,o.mdHidden?`flex-md-hide`:``,o.smHidden?`flex-sm-hide`:``),e.filter(Boolean)}),l=i(()=>{let e=`${o.space}`;return!e||e===`0`?``:`gap:${/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}`}),u=i(()=>{let e=[],t=n.value;for(let[n,r]of[[`width`,`minWidth`],[`height`,`minHeight`]]){let i=o[n],s=parseFloat(`${o[r]}`);i!==!1&&(typeof i==`string`&&a.test(i)?e.push(`${n}:${i}`):i!==!0&&i!==``?e.push(`${n}:${Math.max(parseFloat(`${i}`),s)}px`):t&&e.push(t[n]>0?`${n}:${Math.max(t[n],s)}px`:`${n}:100%`))}for(let[t,n]of[[`width`,`maxWidth`],[`height`,`maxHeight`]]){let r=o[n];typeof r==`string`&&a.test(r)?e.push(`max-${t}:${r}`):parseFloat(`${r}`)>0&&e.push(`max-${t}:${parseFloat(`${r}`)}px`)}return e}),f=i(()=>o.width===!1||u.value.some(e=>e.startsWith(`width`))),m,h=()=>{let e=t?.$el?.parentNode||(t?.$parent?.$el instanceof Element?t?.$parent.$el:t?.$parent?.$el?.parentElement);if(!e){n.value={width:0,height:0};return}let r=window.getComputedStyle(e),i=e=>parseFloat(r.getPropertyValue(e))||0;return n.value={width:e.clientWidth-i(`padding-left`)-i(`padding-right`)-i(`border-left-width`)-i(`border-right-width`)-.01,height:e.clientHeight-i(`padding-top`)-i(`padding-bottom`)-i(`border-top-width`)-i(`border-bottom-width`)-.01},e};return S(()=>{v(()=>{if(o.width===!1&&o.height===!1)return;let e=h();e&&(m=new ResizeObserver(()=>h()),m.observe(e))})}),C(()=>{m?.disconnect()}),(e,t)=>B((w(),s(`section`,{class:y([`flex flex-row`,c.value]),style:x([u.value,l.value])},[d(M(fe),{vnodes:M(r)},null,8,[`vnodes`])],6)),[[I,f.value]])}}),[[`__scopeId`,`data-v-22d08fe9`]]),he={key:0,class:`page-main-header`},ge={class:`page-main-body`},_e={key:1,class:`page-main-footer`},ve=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{title:{type:String,default:``},fill:{type:Boolean,default:!1},plain:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>(w(),s(`section`,{class:y([`--layout-page-main`,{"page-main-fill":t.fill,"page-main-plain":t.plain}])},[t.title||e.$slots.header?(w(),s(`header`,he,[D(e.$slots,`header`,{},()=>[u(j(t.title),1)],!0)])):o(``,!0),c(`div`,ge,[D(e.$slots,`default`,{},void 0,!0)]),e.$slots.footer?(w(),s(`footer`,_e,[D(e.$slots,`footer`,{},void 0,!0)])):o(``,!0)],2))}}),[[`__scopeId`,`data-v-f69a3074`]]),K=/* @__PURE__ */ function(e){return e.LEFT=`left`,e.TOP=`top`,e.TOP_LEFT=`top-left`,e.DUAL_MENU=`dual-menu`,e}({}),q=/* @__PURE__ */ function(e){return e.DARK=`dark`,e.LIGHT=`light`,e.AUTO=`auto`,e}({}),J=/* @__PURE__ */ function(e){return e.DARK=`dark`,e.LIGHT=`light`,e.DESIGN=`design`,e}({}),ye=/* @__PURE__ */ function(e){return e.FULL=`100%`,e.BOXED=`1200px`,e}({}),be=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Se(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Se(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Se(e,n)?null:e}return null},Se=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function Ce(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var we=Object.freeze({left:0,top:0,width:16,height:16}),Te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ee=Object.freeze({...we,...Te}),De=Object.freeze({...Ee,body:``,hidden:!1});function Oe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ke(e,t){let n=Oe(e,t);for(let r in De)r in Te?r in e&&!(r in n)&&(n[r]=Te[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ae(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=ke(r[e]||i[e],a)}return o(t),n.forEach(o),ke(e,a)}function je(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=Ce(e);for(let i in r){let a=r[i];a&&(t(i,Ae(e,i,a)),n.push(i))}return n}var Me={provider:``,aliases:{},not_found:{},...we};function Ne(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Pe(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!Ne(e,Me))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!Ne(t,De))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!Ne(t,De))return null}return t}var Fe=Object.create(null);function Ie(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:/* @__PURE__ */ new Set}}function Le(e,t){let n=Fe[e]||(Fe[e]=Object.create(null));return n[t]||(n[t]=Ie(e,t))}function Re(e,t){return Pe(t)?je(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function ze(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var Be=!1;function Ve(e){return typeof e==`boolean`&&(Be=e),Be}function He(e){let t=typeof e==`string`?xe(e,!0,Be):e;if(t){let e=Le(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ue(e,t){let n=xe(e,!0,Be);if(!n)return!1;let r=Le(n.provider,n.prefix);return t?ze(r,n.name,t):(r.missing.add(n.name),!0)}function We(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),Be&&!t&&!e.prefix){let t=!1;return Pe(e)&&(e.prefix=``,je(e,(e,n)=>{Ue(e,n)&&(t=!0)})),t}let n=e.prefix;return Se({prefix:n,name:`a`})?!!Re(Le(t,n),e):!1}var Ge=Object.freeze({width:null,height:null}),Ke=Object.freeze({...Ge,...Te}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Je=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ye(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(qe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Je.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Xe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Ze(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Qe(e,t,n){let r=Xe(e);return Ze(r.defs,t+r.content+n)}var $e=e=>e===`unset`||e===`undefined`||e===`none`;function et(e,t){let n={...Ee,...e},r={...Ke,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Qe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Ye(d,c/l)):(u=o===`auto`?c:o,d=s===null?Ye(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{$e(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var tt=/\sid="(\S+)"/g,nt=/* @__PURE__ */ new Map;function rt(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=nt.get(e)||0;return nt.set(e,t+1),t?`${e}${t}`:e}function it(e){let t=[],n;for(;n=tt.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=rt(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var at=Object.create(null);function ot(e,t){at[e]=t}function st(e){return at[e]||at[``]}function ct(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||2e3,timeout:e.timeout||1e4,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var lt=Object.create(null);lt[``]=ct({resources:[`https://api.iconify.design`,`https://api2.iconify.design`]});function ut(e,t){let n=ct(t);return n!==null&&(lt[e]=n,!0)}function dt(e){return lt[e]}var ft=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function pt(e,t){let n=dt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function mt(e){return e===404}var ht=(e,t,n)=>{let r=[],i=pt(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function gt(e){if(typeof e==`string`){let t=dt(e);if(t)return t.path}return`/`}var _t={prepare:ht,send:(e,t,n)=>{if(!ft){n(`abort`,424);return}let r=gt(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;ft(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(mt(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function vt(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function yt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||vt([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var bt=0;function xt(e,t,n){let r=bt++,i=vt.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function St(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=Le(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function Ct(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?xe(e,t,n):e;i&&r.push(i)}),r}var wt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tt(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function Et(e){let t={...wt,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=Tt(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function Dt(){}var Ot=Object.create(null);function kt(e){if(!Ot[e]){let t=dt(e);if(!t)return;Ot[e]={config:t,redundancy:Et(t)}}return Ot[e]}function At(e,t,n){let r,i;if(typeof e==`string`){let t=st(e);if(!t)return n(void 0,424),Dt;i=t.send;let a=kt(e);a&&(r=a.redundancy)}else{let t=ct(e);if(t){r=Et(t);let n=st(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),Dt):r.query(t,i,n)().abort}function jt(){}function Mt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,yt(e)}))}function Nt(e){let t=[],n=[];return e.forEach(e=>{(e.match(be)?t:n).push(e)}),{valid:t,invalid:n}}function Pt(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!Re(e,n).length){r();return}}catch(e){console.error(e)}r(),Mt(e)}function Ft(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function It(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){Ft(e.loadIcons(r,n,t),t=>{Pt(e,r,t)});return}if(i){r.forEach(r=>{Ft(i(r,n,t),t=>{Pt(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=Nt(r);if(o.length&&Pt(e,o,null),!a.length)return;let s=n.match(be)?st(t):null;s?s.prepare(t,n,a).forEach(n=>{At(t,n,t=>{Pt(e,n.icons,t)})}):Pt(e,a,null)}))}var Lt=(e,t)=>{let n=St(Ct(e,!0,Ve()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,jt)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(Le(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=Le(t,n),o=a.pendingIcons||=/* @__PURE__ */ new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&It(e,t)}),t?xt(t,n,i):jt};function Rt(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in Ge?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var zt=/[\s,]+/;function Bt(e,t){t.split(zt).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function Vt(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function Ht(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function Ut(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `).replace(/:/g,`%3A`).replace(/\//g,`%2F`)}function Wt(e){return`data:image/svg+xml,`+Ut(e)}function Gt(e){return`url("`+Wt(e)+`")`}var Kt={...Ke,inline:!1},qt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Jt={display:`inline-block`},Yt={backgroundColor:`currentColor`},Xt={backgroundColor:`transparent`},Zt={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},Qt={webkitMask:Yt,mask:Yt,background:Xt};for(let e in Qt){let t=Qt[e];for(let n in Zt)t[e+n]=Zt[n]}var $t={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;$t[e+`-flip`]=t,$t[e.slice(0,1)+`-flip`]=t,$t[e+`Flip`]=t});function en(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var tn=(e,t)=>{let n=Rt(Kt,t),r={...qt},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=Vt(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=$t[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):Kt[e]===void 0&&(r[e]=i)}}}typeof t.flip==`string`&&Bt(n,t.flip);let c=et(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=it(c.body),h(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=Ht(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Gt(m),width:en(l.width),height:en(l.height),...Jt,...p?Yt:Xt,...s},h(`span`,r)};if(Ve(!0),ot(``,_t),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!We(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;ut(e,r)||console.error(n)}catch{console.error(n)}}}}var nn={...Ee,body:``},rn=f((e,{emit:t})=>{let n=T(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=T(!!e.ssr),a=T(``),o=A(null);function s(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return a.value=``,{data:i};let o;if(typeof i!=`string`||(o=xe(i,!1,!0))===null)return null;let s=He(o);if(!s){let e=n.value;return e&&e.name===i||(s===null?n.value={name:i}:n.value={name:i,abort:Lt([o],c)}),null}r(),a.value!==i&&(a.value=i,v(()=>{t(`load`,i)}));let l=e.customise;if(l){s=Object.assign({},s);let e=l(s.body,o.name,o.prefix,o.provider);typeof e==`string`&&(s.body=e)}let u=[`iconify`];return o.prefix!==``&&u.push(`iconify--`+o.prefix),o.provider!==``&&u.push(`iconify--`+o.provider),{data:s,classes:u}}function c(){let e=s();e?e.data!==o.value?.data&&(o.value=e):o.value=null}return i.value?c():S(()=>{i.value=!0,c()}),L(()=>e.icon,c),C(r),()=>{let t=o.value;if(!t)return tn(nn,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),tn({...Ee,...t.data},n)}},{props:{icon:{type:[String,Object],required:!0},mode:{type:String},ssr:{type:Boolean},width:{type:[String,Number]},height:{type:[String,Number]},style:{type:[String,Object]},color:{type:String},inline:{type:Boolean},rotate:{type:[Number,String]},hFlip:{type:Boolean},horizontalFlip:{type:Boolean},vFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{type:String},id:{type:String},ariaHidden:{type:[Boolean,String],default:void 0},customise:{type:Function},title:{type:String}},emits:[`load`]}),Y=/* @__PURE__ */ f({inheritAttrs:!1,__name:`index`,props:{icon:{type:String,default:void 0}},setup(e){let t=N(),n=i(()=>({class:t.class||``,style:t.style||``}));return(t,r)=>e.icon?(w(),a(M(rn),_({key:0,icon:e.icon},n.value,{class:`iconify-svg inline`}),null,16,[`icon`])):o(``,!0)}}),an=/* @__PURE__ */ f({__name:`index`,props:{icon:{type:String,required:!0},circle:{type:Boolean,default:void 0}},setup(e){return(t,n)=>(w(),s(`div`,{class:y([`size-8.5 inline-flex flex-cc c-p text-g-600 dark:text-g-800 text-xl rounded tad-300 hover:bg-hover-color`,{"rounded-full":e.circle}])},[d(Y,{icon:e.icon},null,8,[`icon`]),D(t.$slots,`default`)],2))}}),on=`data:image/webp;base64,UklGRqwJAABXRUJQVlA4WAoAAAAQAAAAxwAAxwAAQUxQSKkEAAABoAP/v9pGekrW4ywHijhwtIwVQ8Xkfqk7pmWqPJ6nHC5Vx8y83KW8bhky6Za81MW7ex7PgtZ6v4PEfu///vof30XEBKj//f9f6DsWrMuty45LSW/TRfRfPJKWXOsFVBtl5dYRofroGak1llCrmSe0c6g9Sns0dHdv362+vlLvvtGJk4XNo74EM0qoNn58aKKkjRXM86PlDGq9sy1JvoDdUuBDFrXGMdCdSoxxsL3Tg2dgt29oUlyAsWSayWVh+04mGTbB/lFqoyJrKKSSoNE4wEpawT04fCMJDgHGWCulSL0Ll/Fo/kbB7U5KjSUnOM1eUHSETkI5uI07uNsB1xcCOrcdYSdzjcYZ5pNpimDcFHgLjoJgisoyA8cxb7MAGGf7qHTBeT1rMUiOI/KjuybO9oLmOSrGwLiZwdgoQwRricDAcTtjx0A1aiHx/m+Mk4CvlaB7iMQywJViewgoz6LQblxd4+sIqUIdAXUbjnNsdYKwATZRyDl6kOGq7gIlANEwAg8bN2cU1ytB/WjgTh3pz1gazVVDTM7MIpA2/Vh+X3F9CPRLBNQCBxdTXI2Dj+8SUK/aG6m4LsbkDIBxBFTO2Ck9rLjeCT/PUVCbjLFwIa24br7nCbIU1Kjrte0cpNg+BF9LDRSUWl+AqaK0r1HxPQn+7qOhgqlPHrtnTGyOPjmhUTE+6HbsDybRSMwcfC6kBNEUe4XHBXEMnsthAXw/J4bbQOyXmSeE9+F/MRBBKzjcIYLzLKBTAGvB44XkazE8GGQT7xNwWWygMHLy5ICtDvD5rrsZ1wA8eDxg6jwAwwRGu8pW0O82nh4HDNgs1LkZcQcDZjiqj8DqSjdvYOBrHB00vJi0i3Godh0/kwyY3efiVlV3RnATlMHuLHs7Uf23ATN58FustzUZtU7npbXMELos1Z2u6Q4vB8HyEDszUPtuTuaD56NWUrCZ4aOhDMMS1trotnKaj1cNV8UhtY2rWMFSLkaA75219cLunQYmjjGG5lrWwfb7PMwH54UahlWsoZODVPQbwxVWVncM9gt1DLwP5tPVzILLx/1rNdx9UUWq4OTBUO9ugP3RA22D227fngH/9wYYCVScYKJfzeUEwKv9BMdQgdtbfu1FEsaZ3yyF+20+jYgSAYd+UyGADn/qbiAh5yv1Pih+6896JOXt9DjQnOHLkCgxkOsl0pfy5CDk+YYf0yDRjBdlkfT68CZkupReJhLKHXpHINVvqc2CXCfSSpUFcy0g9Sok+wylVoi2NIJQj2zQTWctpDuRSjoST6GeyCeQ7zoarRBwnCZxQ0LoDgg8DxlPd9dYFtKtwNknkPL7rkZBzhk3QY+gTruZCkkvc3JdVKUmBy2Q9U4HXcJCvb0eab1hLXVDWgVrTZG04o7fC5j+u2GZrWHl3wuqR1zTrb0vrg5rk6VVUPZvCOsNB9NkdSftQPWI6lvlMh0Jqq/BiXo4ElMloxx3loV0Z6Jy3nJeRIUmRXFTWTylnYGiOWRBj2iuLW1ShINB2XwYhlprHYZah3mtQ119qLUOwzDUoQ516DCv+w1DrfNaa53X1ee11jqv82EX3W0j69X//v/f/3/hBQBWUDgg3AQAADAkAJ0BKsgAyAA+0WaqUCglo6amFgo5ABoJQ4zpQNNNiIBltyJ/r9au8Bxy3S8uKAt4f+q86jzAOcf/9PQT5yPos3kf0K+mByFfrH+AFNFXMOwGWfEhEAaw/764BBN5bC4y0XGWi4y0XGWi4yl2QNiQ+6rjbckRVbRWyfyioLgolNlbERnDuMCtVqkPr/5I/lsWoeBbdEgkhEDA5J/LQh/A3e1FXszyZLIG5TBVQl/jlFeF5cT5r9VnoUnzn6rWrLlZ+Od7rVIAxbNWHHRccwwVbRCTy2oSKDZUluyL5OEiTglFqrwddz+KMqwXnjsekENrJieip7KQVuuK+7nG1Wg26/3k4l+LMRXhJxM+ZtN9S9G6bjxjb/dDVF1qfZXxcflNZMDrJgdZJAAA/pO6AAAAAAErtVQBL3Uqe/yL24dJTcEnUka/cX9me5ou3ugIE3hjbvg47ku32SiODOxU35OrjLemenwmg3bbGqbneID+4RNeztHmO0wMeYxoVjdDGlpBXh+sk6g5ZnJeWlAboNrQ+2wVrhOq1vVqenruRVn8egJ72oSJB6NmUXPfzJv31pRgtPldTHSvKIVFXL/ECQN17ONway4UhVNYrJ3rabPG6qEy0C5EqfFKyw+4ovBz3xuBhkhgql7dIZ7cUHW1VkC9cJYsweaMeUDr4vgRyEXJ3fl4LZjHtNIjMcWA5Ulhcle/Tzf4wrpK6Uh9HhX116BQA7uRVsBAwMTt/CqkBPw90zTedop1mJ6CRbUlyqeFr+ONfY6qXe3KfcAALNV2bfCl8t7Iec3p4+L1R3/Ab7JE6XCGoABI3aVq/HwK2SDOe8+Oep+ORabtvhH3utlaOhlUw6+eeOJjuPpBauJ+CS476bKXD7P1u5fc2UKmFak824+Z8WkRJUnzOMFA3sT+fyeSVlv7QYe9xq3sUqqjmNTI9wSdrm/Qu9WBI9vgCO/VnoNNK4INOdwjiXEb7PW3wUXAMHj4P3SnGHSauVNCNYj+hlj93qcklodDOlAxG68U3gokfB7NTbBHev+02ydeVg1/Bfe3vCt1dj5GGcs1tWJTGOkYHm70uucOWNRXukdNnbzXKCF88+21/g+yPJ/8mCP9oH6ZpKY220U1fA6yzuqaTObScdiZmOn7ZCeusOlA3Ftyh/LtnSNcBwLzrQ3bCjXknXs3Fm4HXTxLVSGFRJnKqL+giozrgoqVFZUPUAPsoWVi2eDR8Z8JaVdgW1p/kcrZG1SemGRtCGcIMbDsrRP3iDiV8a2vxlayAxbI+0lLHkCM0pjccAmqj8sBjVm8PNd3YKHrAnFYiKJfHfP2BtkRH+W9Zz8/BDgTu1l850a9LMoWKskDyEtEuxrgzEgRUEpmPn/Esb4qJiMehtQNvFG69oBpr+Bmy1QvH+h5zlV62sZzMfs+UkkocwOS76AlGyJBqwdxr2XaCOxyz6o2cJFrU+LW4HS+cU3hbE0rLxAcAAb6VyYCXhkbni9Z92AAPnZbIhRIG/e0Cg5ZvQrBa59Xjn7u+4E+1Y877AbudyZyOY0bOtzg8ByALuOdjoBLjvfMV7Z8CLFxSC1Y7wHGe/9CzUGqAHeZnBqLivyKsuP41TciOqz/xqx+3ufN02q1I2/zeknKm6sUfhScft+rGkG/c2YWuAAActAAAAAA`,X=W(`layout-runtime`,{state:()=>({title:`后台管理`,logo:on,watermark:`watermark`,homePath:``,showSetting:!1,settingVisible:!1}),persist:void 0}),sn=W(`layout-worktab`,{state:()=>({tabs:[],activeTab:``}),actions:{openTab(e){if(e.path){if(!this.tabs.find(t=>t.path===e.path)){if(e.fixedTab){let t=this.tabs.findIndex(e=>!e.fixedTab);this.tabs.splice(t===-1?this.tabs.length:t,0,e)}else this.tabs.push(e)}this.activeTab=e.path}},removeTab(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1||this.tabs[t].fixedTab)return null;this.tabs.splice(t,1);let n=X().homePath;if(this.tabs.length===0)return e===n?null:n;if(this.activeTab===e){let e=this.tabs[Math.min(t,this.tabs.length-1)];return this.activeTab=e.path,e.path}return null},removeLeft(e){let t=this.tabs.findIndex(t=>t.path===e);if(t<=0)return null;let n=this.tabs.slice(0,t).filter(e=>!e.fixedTab);return n.length===0?null:(this.tabs=this.tabs.filter((e,n)=>n>=t||e.fixedTab),n.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeRight(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1||t===this.tabs.length-1)return null;let n=this.tabs.slice(t+1).filter(e=>!e.fixedTab);return n.length===0?null:(this.tabs=this.tabs.filter((e,n)=>n<=t||e.fixedTab),n.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeOthers(e){if(!this.tabs.find(t=>t.path===e))return null;let t=this.tabs.filter(t=>t.path!==e&&!t.fixedTab);return t.length===0?null:(this.tabs=this.tabs.filter(t=>t.path===e||t.fixedTab),t.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeAll(){let e=this.tabs.filter(e=>!e.fixedTab);return e.length===0?null:(this.tabs=this.tabs.filter(e=>e.fixedTab),this.tabs.length===0?X().homePath:e.some(e=>e.path===this.activeTab)?(this.activeTab=this.tabs[0].path,this.tabs[0].path):null)},toggleFixedTab(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1)return;let n={...this.tabs[t],fixedTab:!this.tabs[t].fixedTab};if(this.tabs.splice(t,1),n.fixedTab){let e=this.tabs.findIndex(e=>!e.fixedTab);this.tabs.splice(e===-1?this.tabs.length:e,0,n)}else{let e=this.tabs.filter(e=>e.fixedTab).length;this.tabs.splice(e,0,n)}}}}),cn=W(`layout-menu`,{state:()=>({menulist:[],menumaps:{}}),actions:{setRoutes(e){let{menulist:t,menumaps:n}=un(e);this.menulist=t,this.menumaps=n},resolveMenu(e){let t=Object.values(this.menumaps);return t.find(t=>t.path===e)??t.filter(t=>e.startsWith(`${t.path}/`)).sort((e,t)=>t.path.length-e.path.length)[0]}}}),ln=/* @__PURE__ */ new Set,un=(e,t,n={})=>{t||ln.clear();let r=[];for(let[i,a]of Object.entries(Array.isArray(e)?e:[e]))a.meta=a.meta||{},a.meta.key=t?.meta?.key?`${t.meta?.key}-${i}`:`menu-${i}`,a.meta.parentKey=t?.meta?.key,a.meta?.isHidden||(a.name&&typeof a.name==`string`&&(ln.has(a.name)?console.warn(`[anvero-layout] 路由 name 重复:"${a.name}"(path: ${a.path}, title: ${a.meta?.title}),KeepAlive 缓存互串 / 路由覆盖,请检查宿主 routes.ts`):ln.add(a.name)),/(http|https):\/\/\S*/.test(a?.path)&&t?.path&&a?.path?.substring(0,1)!=`/`&&(a.path=`${t.path}-${a.path}`),/(http|https):\/\/\S*/.test(a?.path)&&a?.path&&(a.path=`/${a.path}`.replace(/(\/){2,}/g,`/`)),!a.path&&t&&(a.path=t.path),a.path&&t&&!a.path.startsWith(`/`)&&(a.path=`${t.path}/${a.path}`.replace(/(\/){2,}/g,`/`)),a?.children?.length&&(a.children=un(a.children,a,n)?.menulist||[]),(a.path||a?.children?.length)&&(n[a.meta.key]=a,r.push(a)));return{menulist:r,menumaps:n}},Z={themeStyles:{light:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vX////29vj9/f34+Pox8uq3AAABTElEQVRo3u2VwW3EMAwEhcs1QKuBE5QCYlfg9N9UcjHyMUQQtlaASOz89jWwzCUTIYQQQgghhJCUPleBo9ueYoDVrTIAwMdBdEUMsLpvGQHg10F0ojBat6VU9YDWbe9Q9YDV5dc7PFY9QHXLkYoeoLqvI33oAap7HemhB6juP+qBull19qh4LoJdc89LzFzRvg/QH3GvOXXUzahLWKhrQB111P0SS1elj+2S7im97Fd0RXpZruhW6SVf0Uk/E+sAjznxqACKMHHNG0TamWeoo24OXe1sccJe8x2qK/YGtoAeoAzViYlnnf2YnkfFLoLnmjeItDPPUEfdHLoqd9igS8xmR65omwV5gGwy9LzauNDdfkwXo3K7CC5q3iDSzjxDHXVz6GpHj4FLbB+iKx07GHmA8hCdqETQ6Y8ZYVT0IkSoeYNIO/MMddQN1v0AFy9OBRBx85QAAAAASUVORK5CYII=`,dark:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAG1BMVEUnJyo/P0ZSUlxKSlNOTlc5OT8vLzJDQ0s0NDkX0J24AAABYElEQVRo3u2XMWrEMBBFVW47LM4BHEPqTZPeN3CzvQtD6uQCzs1j4lRGw2DPF2jEf900eqxW/w9OhBBCCCGEEEJS+pwEjm67iQFWN0kBHD8OqpvFAKv7kRI4/jqoThx4dN/j8KEPaN2933joA1g39huDPmB19/6Phz5AdV/7oW/6ANW974e+6gNUN+6HDvoA1fX/6ENknX2ZkZ+KHYTIMTdLLHZFGwso+nqljjrqJGGhLgN11FG30ZZuER/PU7qbeFnP6Gbx8nJGN4mX7oxO/FSsA1xmxU8FEISKY56hpc48Qh11degWZ4oTdpuvUN1sN7AFdAF1UJ2YRNbZlxn5qdhBiBzzDC115hHqqKtDt8gVntASs1mxFe1qbvznZAddrzYhdJcvM8RTuRyEEDHP0FJnHqGOujp0iyPHwBJbi+hmRwcjF1BXRCcqLej0y2zhqehBaCHmGVrqzCPUUVdY9wter4K58MOVTQAAAABJRU5ErkJggg==`,system:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAJFBMVEXy8vUREREzMzP////4+Pr19fgcHBz8/P0rKysyMjIwMDAjIyPGISqaAAABlElEQVRo3u3XsUoEMRAGYItdrNMc1hZhY5t7AMHCduEE67MSKyG+gM09iIX9vqFeooRwhGGTIZfk/umm+iA3/8ztVWKJtAIHDhw4cODAgQMHDhy4Orkno+N1m1ZxbdC6JGeKcoMuyu3Kcg9lOVOW02fiPubx8aSx3EGIV25u639I31juW/zWGzM3H5sxaBx3tz9ymy9Wbuvn1DeWk8LWCyv37rrroLHcp+NuWLl71w1BY7m94zas3Oy6MWgsJ/6Klftvg6Ybjn7MlkeFDkLLMaeXWNMrmjhArZ9XcODAaebPSXDgwIG7BO45b0WrwypuyL4Iyxpul83JNZzJ5qY1nM7mVMUcw2NWPCoMQag45p3vTHDg6uQiMfcppor3mi8kxLqiJStnKG5i5TTFqZY5+jFbHhU6CC3HvPOdCQ5cnVzCn/Yw/UW+zRfOFU2X5DxAdE2c55Uu1QSX/JhNjEpyEJqIeec7Exy4OrnTmIc5LvRtvpAA64qWJMB6gCYSYD2vqgcu/pg9jEo8CD3EvPOdCQ5cYe4H2qWIxMTt67gAAAAASUVORK5CYII=`},menuLayouts:{vertical:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX6+vrd3d339/jx8fLu7vHj4+RfzH3aAAABXUlEQVRo3u2bwW3DMAxFCdgdgOAGBpqztIEPGqDoCNl/iDZBgVhpAsogJdvyfzeeHv4hMBlSBAAAAGR8XKeMyxfV5Ht64pNqcn3WXagm0z9oAXRrdbwAui50ka3ICt3A0Uwo10VhM1KuY452yn/mImxH0yEd0iHdlukii51y3eCQLpTrKIqZHX9eb0AH3Xl0fU9Ap9QpM4K46vQZIbjqorA9nmevQjqevQrSbZ+OF7im03VI10M6fUbw1OkzQvDU6TPCsT+vN6Bz040pzUrhqBvTL7NS+OnSHaVw043pzvy+OLIu/fG+gK7FHkHW6wZ2WCA02iOIa6+i49qr6CBdi3Q51dPlIF0P6Wx7BHrQYI8Q6EGDPcIR2loi6Hb+1zd00EGn7BFMiKqrfmuU43xrhJsHpEO6U6bjBfXS6XsEO5rO+dZI0+HWCLr9jCQd60oedxz36cqLhzkAAAC25QfLWMrPbjC6qQAAAABJRU5ErkJggg==`,horizontal:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAGFBMVEXy8vX4+Pjd3d36+vrx8fL09Pbu7vHj4+RNYWVgAAABPElEQVRo3u3XMUoEQRCFYQPHvCi8wAQaF7K5wRzAvoF4BO8fKI3giF3gMPPKWfi/rDfYx6MYuusGALDZ3fus9fi6jnub1R7Wcdpyvd46btYjjrgriXtamw/8iTjiiPt0is/8B+KIO0NcwcOv+Flb/WgHAOCXyWReBnHNQuV+EGduKjGK07WzQZzL2rkP27mI1baL2tnVtvPa2Vltu6idnZW289rZmQ3bNVG7iLgML6CQ6BcQvt0uy3N+EKT1f00Px1q6/CAo10tkh2uOW77kB+KI+2Pc+T+ESbHq5JpJVp1OtAHFhjgTrDo5d8mq02leYlbbLmpnV9vOa2dnte2idna17bx2drapXXPBqpObjFUHAPAPJsW2k2t2wLaj24BiZ5wJtp2c0452tKPdjnb7N6DL3gvIt2DbAQAg9wFGfUhczPxdQQAAAABJRU5ErkJggg==`,mixed:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX6+vrd3d3x8fL4+Pjf39/l5eb3qVelAAABVUlEQVRo3u2bUQqCQBRFB2wDA65AqG9h6L+2UNACgva/hUSC1FfdzPto1Hv+xvdxeILvPoQJQgghRlPcqh6XOniyrwacgyfXoW5nmp6AeV+nYXVrmp6AeV+2+myaxA7rThWPLdZVTP6qix2kW4huUMBP7CPpPHV9pFuIbhGJIN2ydP6rkd/iB0a041prdfylHejYSNci3ThdH+mky1x3jATKb3WbSOGAdaY5QntIF0msTtctSyeddA3sIZbniCYFUK7xavDXFSnV4EDUFamhBgeeLrWAA01XpJb6/WHOuvTg/UG6zyNaOqKO+iFg3cQAKn/UbUh5Sl0ecHveq9G4z1w66aRbjc5tiBl8R7RhUgDl9+tbOumky+hXQAjSSUcLIExJjVfMgbk8YEqsi0zWpOtWpJNOugaXIZbdiGYGUIbxygRcXTG4XsyxzPba0YtLVUIIkT93VIcamQMOVTAAAAAASUVORK5CYII=`,dualColumn:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX4+Pjd3d36+vru7u7x8fLj4+QsU3hHAAABqElEQVRo3u2bUU6EMBRFO4n+c/N2QIzfEjdgjAvghw24/0VYh0xqqqFyaV+AueevXydnmikQHkEIIdqAxHX98NnfeH6rbrsg0YXIe594qq4DsrwYl/La6/qfSNdABxpGd4GRoPul+5hJuteZpIOBZACjw0BijM7YOoNRdcYBz7rrHnjuHeBZZxHHvUOE+JuzdUOE0LF751tn31B1xgCy7oKB3boX7gLEbt0RLq/SSbd0REsnnXSRc/zN96fDMoyOf75DV1cHwxKGyrpCXWWdFepMdaoj6tgjmqrjdaqrX1d+vrOuri4U6vZ886B7FemkW9ZNY7jxOGWLFrppTIJ80UI3hZkpki2a6MbUky9OoJvSz5cvKh/RSYf1sDruDRc6XgfDWgwbdETdBp0RdcbpRt+60bcusHXkEc3WcRcgz7q4pusoneoKdR5vuKzjdYGoO8CNn3Q7f5yUTjrpTn+q3L0O/2KXE4wF3cYJRkaHgcQI3aYJRqrOOOBbt2YKThOMy8C3bvCdPvWtM9+9A1FXaYKxrNMEo3R70v35Yc5RPzsqfFQlhBDCny+6r+IVe0J7SwAAAABJRU5ErkJggg==`},menuStyles:{design:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vX////5+fnx8fHd3d0ah087AAAAyklEQVRo3u3Z0Q2AIAxFUeIGbmBYgRXcfyYXaEh8PhXKvQucvzaUsncq9uDg4ODg4OAK3G3uDIJLxFU1idtk7lC4qvcrFwcHBwfn5YwjWuCcC6gF+dYrHBzcAE8SOEO2ES1x+gI67FztBgf3BteC4ODm4KQRrXOlx82/XuHg4OBG5VrQx2cc45FK4aoeHFye4zAcXPp/hNzbPDeX+9IOBzcm5x/Rj7lNXzofrFc4OLiluRa0Fmcc0f4j1UjrFW7eJwkcHBwcHBycswty2jT2B1pWhwAAAABJRU5ErkJggg==`,dark:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vUnJyr5+fk/P0bz8/YkmYUBAAAA0ElEQVRo3u3ZwQ3EMAhEUR/SwHZgWenADVjbf1FpwCIyIg6QPw28GyOg/IQU88DBwcHBwcEVuGWuTwKXhzuaNkPD/dXcqeGaPq9y88DBwcHZcnYjui5wFgUUoF7h4NJzuTcguEOewlLMC+g055oYOLgnuD4JHFwMThzRde+RakSvVzg4ODi3HH+EdhO/fwS4uJzD4zAcXPo/Qu42z83lvrTDwfnk7Ef0ePSPIO8FG+oVDg7u01yf5Fvc2oiue49Uw1G9wsVdSeDg4ODg4OAscwFb7y6GSsIW5AAAAABJRU5ErkJggg==`,light:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAElBMVEXy8vX////5+fnx8fHd3d1VVVVl+HYBAAAAzklEQVRo3u3ZYQ2FMAxF4QUHzwGZhVl4FvBvBQE0S7hcYCvnGPj+tVlXfp2KPTg4ODg4OLgCd5rb/sfgEnFVTeIWmVsVruq9ysXBwcHBeTnjiBY45wJqQb71CgcHN8CTBM6QbURLnL6AVjtXu8HB3cG1IDi4OThpROtc6XHzr1c4ODi4UbkW9PAZx3ikUriqBweX5zgMB5f+HyH3Ns/N5b60w8GNyflH9GVu0ZfOA+sVDg7u01wL+hZnHNH+I9VI6xVu3icJHBwcHBwcnLMdqYI1ftKrSesAAAAASUVORK5CYII=`}},dn={systemThemeStyles:{[q.LIGHT]:{className:``},[q.DARK]:{className:q.DARK}},settingThemeList:[{name:`Light`,theme:q.LIGHT,color:[`#fff`,`#fff`],leftLineColor:`#EDEEF0`,rightLineColor:`#EDEEF0`,img:Z.themeStyles.light},{name:`Dark`,theme:q.DARK,color:[`#22252A`],leftLineColor:`#3F4257`,rightLineColor:`#3F4257`,img:Z.themeStyles.dark},{name:`System`,theme:q.AUTO,color:[`#fff`,`#22252A`],leftLineColor:`#EDEEF0`,rightLineColor:`#3F4257`,img:Z.themeStyles.system}],menuLayoutList:[{name:`Left`,value:K.LEFT,img:Z.menuLayouts.vertical},{name:`Top`,value:K.TOP,img:Z.menuLayouts.horizontal},{name:`Mixed`,value:K.TOP_LEFT,img:Z.menuLayouts.mixed},{name:`Dual Column`,value:K.DUAL_MENU,img:Z.menuLayouts.dualColumn}],themeList:[{theme:J.DESIGN,background:`#FFFFFF`,systemNameColor:`var(--layout-gray-800)`,iconColor:`#6B6B6B`,textColor:`#29343D`,img:Z.menuStyles.design},{theme:J.DARK,background:`#191A23`,systemNameColor:`#D9DADB`,iconColor:`#BABBBD`,textColor:`#BABBBD`,img:Z.menuStyles.dark},{theme:J.LIGHT,background:`#ffffff`,systemNameColor:`var(--layout-gray-800)`,iconColor:`#6B6B6B`,textColor:`#29343D`,img:Z.menuStyles.light}],darkMenuStyles:[{theme:J.DARK,background:`var(--default-box-color)`,systemNameColor:`#DDDDDD`,iconColor:`#BABBBD`,textColor:`rgba(#FFFFFF, 0.7)`}],systemMainColor:[`#5D87FF`,`#B48DF3`,`#1D84FF`,`#60C041`,`#38C0FC`,`#F9901F`,`#FF80C8`]},Q=Object.freeze(dn),fn={menuType:K.LEFT,menuOpenWidth:190,menuOpen:!0,dualMenuShowText:!1,systemThemeType:q.AUTO,systemThemeMode:q.AUTO,menuThemeType:J.DESIGN,systemThemeColor:dn.systemMainColor[0],showMenuButton:!0,showRefreshButton:!0,showCrumbs:!0,showWorkTab:!0,watermarkVisible:!1,uniqueOpened:!0,colorWeak:!1,refresh:!1,boxBorderMode:!0,pageTransition:`slide-left`,tabStyle:`tab-default`,customRadius:`0.75`,containerWidth:ye.FULL},$=W(`layout-setting`,{state:()=>({...fn}),getters:{isDark:e=>e.systemThemeType===q.DARK,getMenuTheme:e=>{let t=Q.themeList.filter(t=>t.theme===e.menuThemeType);return e.systemThemeType===q.DARK?Q.darkMenuStyles[0]:t[0]},getMenuOpenWidth:e=>e.menuOpenWidth+`px`},persist:{key:`layout-setting`,storage:localStorage}}),pn={class:`flex-cc`},mn=[`src`],hn=/* @__PURE__ */ f({__name:`index`,props:{size:{type:[Number,String],default:36}},setup(e){let t=e,n=X(),r=i(()=>({width:`${t.size}px`}));return(e,t)=>(w(),s(`div`,pn,[c(`img`,{style:x(r.value),src:M(n).logo,alt:`logo`,class:`w-full h-full`},null,12,mn)]))}}),gn=e=>e?e.startsWith(`menus.`)&&e.split(`.`).pop()||e:``,_n=e=>!e.path||!e.path.trim()?!1:!e.meta?.isHidden||e.meta?.isFullPage===!0,vn=e=>{window.open(e,`_blank`)},yn=(e,t,n=!1)=>{let{link:r,isIframe:i}=t.meta??{};if(r&&!i)return vn(r);if(!n||!t.children?.length)return e.push(t.path);let a=e=>{for(let t of e)if(_n(t))return t.children?.length&&a(t.children)||t},o=a(t.children);if(!o)return e.push(t.path);if(o.meta?.link)return vn(o.meta.link);e.push(o.path)},bn={class:`menu-icon flex-cc`},xn={class:`menu-name`},Sn={key:0,class:`layout-badge`,style:{right:`10px`}},Cn={class:`menu-icon flex-cc`},wn={class:`layout-badge`,style:{right:`5px`}},Tn={class:`menu-name`},En={key:0,class:`layout-badge`},Dn={key:1,class:`layout-text-badge`},On=/* @__PURE__ */ f({name:`PageLayoutMenuItem`,__name:`index`,props:{list:{type:Array,default:()=>[]},theme:{type:Object,default:()=>({})},level:{type:Number,default:0}},emits:[`close`],setup(t,{emit:n}){let r=t,l=n,u=$(),f=U(),p=i(()=>_(r.list)),m=e=>{h(),yn(f,e)},h=()=>{l(`close`)},g=e=>{let t=e.meta;return!!(t&&!t.isHidden&&(e.path&&e.path.trim()||t.link||t.isIframe===!0)&&(e.component||t.link||t.isIframe===!0))},_=e=>e.filter(e=>!e.meta?.isHidden).map(e=>e.children?{...e,children:_(e.children)}:e).filter(e=>(e.children?.length??0)>0||g(e)),v=e=>!(!e.meta?.link||e.meta?.isIframe),y=(e,t)=>`${e.path||e.meta?.title||`menu`}-${r.level}-${t}`;return(n,r)=>{let i=O(`ElSubMenu`),l=O(`ElMenuItem`);return w(!0),s(e,null,E(p.value,(n,r)=>(w(),s(e,{key:y(n,r)},[n.children?.length?(w(),a(i,{key:0,index:n.path||n.meta?.title||``,level:t.level},{title:z(()=>[c(`div`,bn,[d(Y,{icon:n.meta?.icon,color:t.theme?.iconColor,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`])]),c(`span`,xn,j(M(gn)(n.meta?.title??``)),1),n.meta?.isShowBadge?(w(),s(`div`,Sn)):o(``,!0)]),default:z(()=>[d(On,{list:n.children,level:t.level+1,theme:t.theme,onClose:h},null,8,[`list`,`level`,`theme`])]),_:2},1032,[`index`,`level`])):(w(),a(l,{key:1,index:v(n)?void 0:n.path||n.meta?.title||``,"level-item":t.level+1,onClick:e=>m(n)},{title:z(()=>[c(`span`,Tn,j(M(gn)(n.meta?.title??``)),1),n.meta?.isShowBadge?(w(),s(`div`,En)):o(``,!0),n.meta?.textBadge&&(t.level>0||M(u).menuOpen)?(w(),s(`div`,Dn,j(n.meta?.textBadge),1)):o(``,!0)]),default:z(()=>[c(`div`,Cn,[d(Y,{icon:n.meta?.icon,color:t.theme?.iconColor,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`])]),B(c(`div`,wn,null,512),[[I,n.meta?.isShowBadge&&t.level===0&&!M(u).menuOpen]])]),_:2},1032,[`index`,`level-item`,`onClick`]))],64))),128)}}}),kn=()=>{let e=H(),t=U(),n=$(),r=cn(),a=i(()=>n.menuType===K.TOP_LEFT),o=i(()=>n.menuType===K.LEFT||a.value),s=i(()=>n.menuType===K.DUAL_MENU),c=i(()=>s.value&&!n.menuOpen),l=i(()=>String(e.meta.activePath||e.path)),u=i(()=>{let e=r.resolveMenu(l.value);for(;e?.meta?.parentKey;)e=r.menumaps[e.meta.parentKey];return e});return{router:t,showLeftMenu:o,isDualMenu:s,isDualMenuCollapsed:c,routerPath:l,activeTopMenu:u,firstLevelMenus:i(()=>r.menulist),menuList:i(()=>!a.value&&!s.value?r.menulist:u.value?.children??[]),scrollbarStyle:i(()=>c.value?{position:`absolute`,top:`60px`,right:0,left:0,height:`calc(100% - 10px)`,transform:`translateY(-50px)`,transition:`transform 0.3s ease`}:{transform:`translateY(0)`,height:`calc(100% - 60px)`,transition:`transform 0.3s ease`}),navigateToHome:()=>{t.push(X().homePath)}}},An=()=>{let e=$(),t=T(!1),n,r=n=>{t.value=n.matches,n.matches&&(e.menuOpen=!1)};return S(()=>{n=window.matchMedia(`(max-width: 800px)`),r({matches:n.matches}),n.addEventListener(`change`,r)}),C(()=>{n?.removeEventListener(`change`,r)}),{isMobile:t}},jn=e=>{let t=$(),n=T(!1),{start:r}=ae(()=>n.value=!1,350,{immediate:!1});return L(()=>t.menuOpen,t=>{e.value?t?n.value=!0:r():n.value=!1}),{showMobileModal:n,toggleMenuVisibility:()=>{t.menuOpen=!t.menuOpen,e.value&&!t.menuOpen&&(n.value=!0)},handleMenuClose:()=>{e.value&&(t.menuOpen=!1,r())}}},Mn=[`onClick`],Nn={key:0,class:`text-md text-g-700`},Pn={key:1,class:`layout-badge layout-badge-dual`},Fn=[`title`],In=`64px`,Ln=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`dual-menu`,setup(t){let n=$(),r=X(),{isDualMenu:i,isDualMenuCollapsed:l,activeTopMenu:u,firstLevelMenus:f,menuList:p,routerPath:m,scrollbarStyle:h,navigateToHome:g,router:_}=kn(),{isMobile:v}=An(),{showMobileModal:b,toggleMenuVisibility:S,handleMenuClose:C}=jn(v),T=e=>{yn(_,e,!0)},D=()=>{n.dualMenuShowText=!n.dualMenuShowText};return(t,_)=>{let v=O(`ElTooltip`),k=O(`ElScrollbar`),A=O(`ElMenu`);return M(i)?(w(),s(`div`,{key:0,class:y([`layout-sidebar`,{"no-border":M(p).length===0}]),style:x({"--layout-menu-open-width":M(n).getMenuOpenWidth,"--layout-menu-close-width":`64px`})},[c(`div`,{class:`dual-menu-left`,style:x({width:M(n).dualMenuShowText?`80px`:`64px`,background:M(n).getMenuTheme.background})},[d(hn,{class:`logo`,onClick:M(g)},null,8,[`onClick`]),d(k,{style:{height:`calc(100% - 135px)`}},{default:z(()=>[c(`ul`,null,[(w(!0),s(e,null,E(M(f),e=>(w(),s(`li`,{key:e.path,onClick:t=>T(e)},[d(v,{class:`box-item`,effect:`dark`,content:e.meta?.title??``,placement:`right`,offset:15,"hide-after":0,disabled:M(n).dualMenuShowText},{default:z(()=>[c(`div`,{class:y({"is-active":e.meta?.key===M(u)?.meta?.key}),style:x({height:M(n).dualMenuShowText?`60px`:`46px`})},[d(Y,{class:`menu-icon text-g-700 dark:text-g-800`,icon:e.meta?.icon,style:x({marginBottom:M(n).dualMenuShowText?`5px`:`0`})},null,8,[`icon`,`style`]),M(n).dualMenuShowText?(w(),s(`span`,Nn,j(e.meta?.title??``),1)):o(``,!0),e.meta?.isShowBadge?(w(),s(`div`,Pn)):o(``,!0)],6)]),_:2},1032,[`content`,`disabled`])],8,Mn))),128))])]),_:1}),d(an,{class:`switch-btn size-10`,icon:`ri:arrow-left-right-fill`,onClick:D})],4),B(c(`div`,{class:y([`menu-left`,`menu-left-${M(n).getMenuTheme.theme} menu-left-${M(n).menuOpen?`open`:`close`}`]),style:x({background:M(n).getMenuTheme.background,width:M(l)?In:void 0})},[c(`div`,{class:`header`,onClick:_[0]||=(...e)=>M(g)&&M(g)(...e),style:x({background:M(n).getMenuTheme.background})},[M(i)?o(``,!0):(w(),a(hn,{key:0,class:`logo`})),c(`p`,{title:M(r).title,class:y({"is-dual-menu-name":M(i)}),style:x({color:M(n).getMenuTheme.systemNameColor,opacity:+!!M(n).menuOpen})},j(M(r).title),15,Fn)],4),d(k,{style:x(M(h))},{default:z(()=>[d(A,{class:y(`el-menu-`+M(n).getMenuTheme.theme),collapse:!M(n).menuOpen,"default-active":M(m),"text-color":M(n).getMenuTheme.textColor,"unique-opened":M(n).uniqueOpened,"background-color":M(n).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(n).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:M(p),theme:M(n).getMenuTheme,onClose:M(C)},null,8,[`list`,`theme`,`onClose`])]),_:1},8,[`class`,`collapse`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1},8,[`style`]),M(i)?(w(),s(`div`,{key:0,class:`dual-menu-collapse-btn`,onClick:_[1]||=(...e)=>M(S)&&M(S)(...e)},[d(Y,{class:`text-g-500/70`,icon:M(n).menuOpen?`ri:arrow-left-wide-fill`:`ri:arrow-right-wide-fill`},null,8,[`icon`])])):o(``,!0),c(`div`,{class:`menu-model`,onClick:_[2]||=(...e)=>M(S)&&M(S)(...e),style:x({opacity:+!!M(n).menuOpen,transform:M(b)?`scale(1)`:`scale(0)`})},null,4)],6),[[I,M(p).length>0]])],6)):o(``,!0)}}}),[[`__scopeId`,`data-v-5651e7af`]]);function Rn(e){let t=e.trim().replace(/^#/,``);return/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function zn(e,t,n){let r=e=>Number.isInteger(e)&&e>=0&&e<=255;return r(e)&&r(t)&&r(n)}function Bn(e){if(!Rn(e))throw se.warning(`输入错误的hex颜色值`),Error(`Invalid hex color format`);let t=e.replace(/^#/,``);t.length===3&&(t=t.split(``).map(e=>e.repeat(2)).join(``));let n=t.match(/../g);if(!n)throw Error(`Invalid hex color format`);return n.map(e=>parseInt(e,16))}function Vn(e,t,n){if(!zn(e,t,n))throw se.warning(`输入错误的RGB颜色值`),Error(`Invalid RGB color values`);let r=e=>{let t=e.toString(16);return t.length===1?`0${t}`:t};return`#${r(e)}${r(t)}${r(n)}`}function Hn(e,t,n){let r=Math.max(0,Math.min(1,Number(n))),i=Bn(e),a=Bn(t),o=i.map((e,t)=>{let n=a[t];return Math.round(e*(1-r)+n*r)});return Vn(o[0],o[1],o[2])}function Un(e,t,n=!1){if(n)return Wn(e,t);let r=Bn(e).map(e=>Math.floor((255-e)*t+e));return Vn(r[0],r[1],r[2])}function Wn(e,t){let n=Bn(e).map(e=>Math.floor(e*(1-t)));return Vn(n[0],n[1],n[2])}function Gn(e,t=!1){document.documentElement.style.setProperty(`--el-color-primary`,e);for(let n=1;n<=9;n++)document.documentElement.style.setProperty(`--el-color-primary-light-${n}`,Un(e,n/10,t));for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-dark-${t}`,Wn(e,t/10))}function Kn(e){let t=document.documentElement.style;t.setProperty(`--el-color-primary`,e),Gn(e,$().isDark);for(let n=1;n<16;n++){let r=Hn(e,`#ffffff`,n/16);t.setProperty(`--el-color-primary-custom-${n}`,r)}}var qn=!1;function Jn(){if(!qn){qn=!0;let e=$(),t=re();R(()=>{let n=e.systemThemeType;e.systemThemeMode===q.AUTO&&(n=t.value?q.DARK:q.LIGHT,e.systemThemeType=n);let r=Q.systemThemeStyles[n]?.className??``,i=e.colorWeak?` color-weak`:``;document.getElementsByTagName(`html`)[0].setAttribute(`class`,`${r}${i}`.trim())}),R(()=>{Kn(e.systemThemeColor)}),R(()=>{document.documentElement.style.setProperty(`--custom-radius`,`${e.customRadius}rem`)})}}function Yn(){let e=()=>{let e=document.createElement(`style`);e.setAttribute(`id`,`disable-transitions`),e.textContent=`* { transition: none !important; }`,document.head.appendChild(e)},t=()=>{let e=document.getElementById(`disable-transitions`);e&&e.remove()},n=(n,r)=>{e();let i=$();i.systemThemeType=n,i.systemThemeMode=r??n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})},r=()=>{n(q.AUTO,q.AUTO)};return{setSystemTheme:n,setSystemAutoTheme:r,switchThemeStyles:e=>{e===q.AUTO?r():n(e)}}}var Xn={class:`text-md`},Zn={key:0,class:`layout-badge layout-badge-horizontal`},Qn={key:1,class:`layout-text-badge`},$n={class:`text-md`},er={key:1,class:`layout-text-badge`},tr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`horizontal-submenu`,props:{item:{type:Object,required:!0},theme:{type:Object,default:()=>({})},level:{type:Number,default:0}},setup(t){let n=t,r=i(()=>n.item.children?.filter(e=>!e.meta?.isHidden)||[]),l=i(()=>{let e=n.item.meta;return!!(e&&!e.isHidden&&(n.item.path&&n.item.path.trim()||e.link||e.isIframe===!0)&&(n.item.component||e.link||e.isIframe===!0))}),u=U(),f=i(()=>r.value.length>0),p=e=>{yn(u,e)};return(n,i)=>{let u=O(`HorizontalSubmenu`,!0),m=O(`ElSubMenu`),h=O(`ElMenuItem`);return f.value?(w(),a(m,{key:0,index:t.item.path||t.item.meta?.title||``,class:`!p-0`},{title:z(()=>[d(Y,{icon:t.item.meta?.icon,color:t.theme?.iconColor,class:`mr-1 text-lg`},null,8,[`icon`,`color`]),c(`span`,Xn,j(M(gn)(t.item.meta?.title??``)),1),t.item.meta?.isShowBadge?(w(),s(`div`,Zn)):o(``,!0),t.item.meta?.textBadge?(w(),s(`div`,Qn,j(t.item.meta?.textBadge),1)):o(``,!0)]),default:z(()=>[(w(!0),s(e,null,E(r.value,e=>(w(),a(u,{key:e.path,item:e,theme:t.theme,level:t.level+1},null,8,[`item`,`theme`,`level`]))),128))]),_:1},8,[`index`])):l.value?(w(),a(h,{key:1,index:t.item.path||t.item.meta?.title||``,onClick:i[0]||=e=>p(t.item)},{default:z(()=>[d(Y,{icon:t.item.meta?.icon,color:t.theme?.iconColor,class:`mr-1 text-lg`,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`]),c(`span`,$n,j(M(gn)(t.item.meta?.title??``)),1),t.item.meta?.isShowBadge?(w(),s(`div`,{key:0,class:`layout-badge`,style:x({right:t.level===0?`10px`:`20px`})},null,4)):o(``,!0),t.item.meta?.textBadge&&t.level!==0?(w(),s(`div`,er,j(t.item.meta?.textBadge),1)):o(``,!0)]),_:1},8,[`index`])):o(``,!0)}}}),[[`__scopeId`,`data-v-30ddc54f`]]),nr={class:`flex-1 overflow-hidden`},rr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`horizontal-menu`,props:{list:{type:Array,default:()=>[]}},setup(t){let n=$(),r=H(),o=t,c=i(()=>u(o.list)),l=i(()=>String(r.meta.activePath||r.path)),u=e=>e.filter(e=>e.meta?.isHidden?!1:e.children&&e.children.length>0?u(e.children).length>0:!0).map(e=>e.children?{...e,children:u(e.children)}:e);return(t,r)=>{let i=O(`ElMenu`);return w(),s(`div`,nr,[d(i,{ellipsis:!0,mode:`horizontal`,"default-active":l.value,"text-color":M(n).isDark?`var(--layout-gray-800)`:`var(--layout-gray-700)`,"popper-offset":-6,"background-color":`transparent`,"show-timeout":50,"hide-timeout":50,"popper-class":`horizontal-menu-popper`,class:`w-full border-none`},{default:z(()=>[(w(!0),s(e,null,E(c.value,e=>(w(),a(tr,{key:e.path,item:e,level:0},null,8,[`item`]))),128))]),_:1},8,[`default-active`,`text-color`])])}}}),[[`__scopeId`,`data-v-7e49dd08`]]),ir=/* @__PURE__ */ f({name:`ArrowLeft`,__name:`arrow-left`,setup(e){return(e,t)=>(w(),s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[c(`path`,{fill:`currentColor`,d:`M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0`})]))}}),ar=/* @__PURE__ */ f({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,t)=>(w(),s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[c(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),or={class:`relative box-border flex-c w-full overflow-hidden`},sr={class:`box-border flex-c flex-shrink-0 flex-nowrap h-15 whitespace-nowrap`},cr=[`onClick`],lr={key:0,class:`layout-badge layout-badge-mixed`},ur=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`mixed-menu`,props:{list:{type:Array,default:()=>[]}},setup(t){let n=t,{activeTopMenu:r,router:a}=kn(),l=e=>{yn(a,e,!0)},u=T(),f=T(!1),p=T(!1),m={BUTTON_SCROLL_DISTANCE:200,WHEEL_FAST_STEP:35,WHEEL_SLOW_STEP:30,WHEEL_FAST_THRESHOLD:100},h=i(()=>n.list.map(e=>({...e,isActive:e.meta?.key===r.value?.meta?.key,formattedTitle:gn(e.meta?.title??``)}))),g=()=>{if(!u.value?.wrapRef)return;let{scrollLeft:e,scrollWidth:t,clientWidth:n}=u.value.wrapRef;f.value=e>0,p.value=e+n<t},_=ie(g,16),b=e=>{if(!u.value?.wrapRef)return;let t=u.value.wrapRef.scrollLeft,n=e===`left`?t-m.BUTTON_SCROLL_DISTANCE:t+m.BUTTON_SCROLL_DISTANCE;u.value.wrapRef.scrollTo({left:n,behavior:`smooth`})},x=e=>{if(e.preventDefault(),e.stopPropagation(),!u.value?.wrapRef)return;let{wrapRef:t}=u.value,{scrollLeft:n,scrollWidth:r,clientWidth:i}=t,a=Math.abs(e.deltaY)>m.WHEEL_FAST_THRESHOLD?m.WHEEL_FAST_STEP:m.WHEEL_SLOW_STEP,o=e.deltaY>0?a:-a;t.scrollLeft=Math.max(0,Math.min(n+o,r-i)),g()};return S(()=>{v(()=>{g()})}),(t,n)=>{let r=O(`ElIcon`),i=O(`ElScrollbar`);return w(),s(`div`,or,[B(c(`div`,{class:`button-arrow`,onClick:n[0]||=e=>b(`left`)},[d(r,null,{default:z(()=>[d(M(ir))]),_:1})],512),[[I,f.value]]),d(i,{ref_key:`scrollbarRef`,ref:u,"wrap-class":`scrollbar-wrapper`,horizontal:!0,onScroll:M(_),onWheel:x},{default:z(()=>[c(`div`,sr,[(w(!0),s(e,null,E(h.value,t=>(w(),s(e,{key:t.meta?.title},[t.meta?.isHidden?o(``,!0):(w(),s(`div`,{key:0,class:y([`menu-item relative flex-shrink-0 h-10 px-3 text-sm flex-c c-p hover:text-theme`,{"menu-item-active text-theme":t.isActive}]),onClick:e=>l(t)},[d(Y,{icon:t.meta?.icon,class:y([`text-lg text-g-700 dark:text-g-800 mr-1`,t.isActive&&`!text-theme`])},null,8,[`icon`,`class`]),c(`span`,{class:y([`text-md text-g-700 dark:text-g-800`,t.isActive&&`!text-theme`])},j(t.formattedTitle),3),t.meta?.isShowBadge?(w(),s(`div`,lr)):o(``,!0)],10,cr))],64))),128))])]),_:1},8,[`onScroll`]),B(c(`div`,{class:`button-arrow right-2`,onClick:n[1]||=e=>b(`right`)},[d(r,null,{default:z(()=>[d(M(ar))]),_:1})],512),[[I,p.value]])])}}}),[[`__scopeId`,`data-v-16e72ed5`]]),dr={class:`ml-2.5 max-lg:!hidden`,"aria-label":`breadcrumb`},fr={class:`flex-c h-full`},pr=[`onClick`],mr={class:`block max-w-46 overflow-hidden text-ellipsis whitespace-nowrap px-1.5 text-sm text-g-600 dark:text-g-800`},hr={key:0,class:`mx-1 text-sm not-italic text-g-500`,"aria-hidden":`true`},gr=/* @__PURE__ */ f({__name:`index`,setup(t){let n=H(),r=U(),a=cn(),l=i(()=>{let e=[],t=a.resolveMenu(String(n.meta.activePath||n.path));for(;t;)e.unshift(t),t=t.meta?.parentKey?a.menumaps[t.meta.parentKey]:void 0;return e.filter(e=>!!e?.meta?.title)}),u=e=>e===l.value.length-1,d=e=>!u(e),f=e=>{e.path&&r.push(e.path)};return(t,n)=>(w(),s(`nav`,dr,[c(`ul`,fr,[(w(!0),s(e,null,E(l.value,(e,t)=>(w(),s(`li`,{key:e.meta?.key,class:`box-border flex-c h-7 text-sm leading-7`},[c(`div`,{class:y(d(t)?`c-p py-1 rounded tad-200 hover:bg-active-color hover:[&_span]:text-g-600`:``),onClick:t=>f(e)},[c(`span`,mr,j(M(gn)(e.meta?.title)),1)],10,pr),u(t)?o(``,!0):(w(),s(`div`,hr,`/`))]))),128))])]))}}),_r={class:`menu-right`},vr=[`onClick`],yr={class:`menu-label flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-g-800`},br=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{menuItems:{type:Array,required:!0},menuWidth:{type:Number,default:120},animationDuration:{type:Number,default:100},itemHeight:{type:Number,default:32},boundaryDistance:{type:Number,default:10},menuPadding:{type:Number,default:5},itemPaddingX:{type:Number,default:6}},emits:[`select`],setup(t,{expose:n,emit:l}){P(e=>({v60d919b2:u.menuWidth+`px`,v74fb4398:u.animationDuration+`ms`}));let u=t,f=l,p=T(!1),m=T({x:0,y:0}),h=null,g=!1,_=i(()=>({position:`fixed`,left:`${m.value.x}px`,top:`${m.value.y}px`,zIndex:2e3,width:`${u.menuWidth}px`})),v=i(()=>({padding:`${u.menuPadding}px`})),b=i(()=>({height:`${u.itemHeight}px`,padding:`0 ${u.itemPaddingX}px`,borderRadius:`4px`})),S=()=>{let e=u.menuPadding*2;return u.menuItems.forEach(t=>{e+=u.itemHeight,t.showLine&&(e+=10)}),e},D=e=>{let t=window.innerWidth,n=window.innerHeight,r=S(),i=e.clientX,a=e.clientY;return i+u.menuWidth>t-u.boundaryDistance&&(i=Math.max(u.boundaryDistance,i-u.menuWidth)),a+r>n-u.boundaryDistance&&(a=Math.max(u.boundaryDistance,n-r-u.boundaryDistance)),i=Math.max(u.boundaryDistance,Math.min(i,t-u.menuWidth-u.boundaryDistance)),a=Math.max(u.boundaryDistance,Math.min(a,n-r-u.boundaryDistance)),{x:i,y:a}},O=()=>{g||=(document.addEventListener(`click`,A),document.addEventListener(`contextmenu`,M),document.addEventListener(`keydown`,N),!0)},k=()=>{g&&=(document.removeEventListener(`click`,A),document.removeEventListener(`contextmenu`,M),document.removeEventListener(`keydown`,N),!1)},A=e=>{let t=e.target,n=document.querySelector(`.context-menu`);n&&n.contains(t)||L()},M=()=>{L()},N=e=>{e.key===`Escape`&&L()},F=e=>{e.preventDefault(),e.stopPropagation(),h&&=(window.clearTimeout(h),null),m.value=D(e),p.value=!0,h=window.setTimeout(()=>{p.value&&O(),h=null},50)},L=()=>{p.value&&(p.value=!1,h&&=(window.clearTimeout(h),null),k())},R=e=>{e.disabled||(f(`select`,e),L())},V=e=>{let t=e;t.style.transformOrigin=`top left`},H=()=>{k(),h&&=(window.clearTimeout(h),null)};return C(()=>{k(),h&&=(window.clearTimeout(h),null)}),n({show:F}),(n,i)=>(w(),s(`div`,_r,[d(r,{name:`context-menu`,onBeforeEnter:V,onAfterLeave:H,persisted:``},{default:z(()=>[B(c(`div`,{style:x(_.value),class:`context-menu layout-card-xs !shadow-xl min-w-[var(--menu-width)] w-[var(--menu-width)]`},[c(`ul`,{class:`menu-list m-0 list-none`,style:x(v.value)},[(w(!0),s(e,null,E(t.menuItems,e=>(w(),s(`li`,{key:e.key,class:y([`menu-item relative flex-c c-p select-none rounded text-xs transition-colors duration-150 hover:bg-g-200`,{"is-disabled":e.disabled,"has-line":e.showLine}]),style:x(b.value),onClick:t=>R(e)},[e.icon?(w(),a(Y,{key:0,class:`mr-2 shrink-0 text-base text-g-800`,icon:e.icon},null,8,[`icon`])):o(``,!0),c(`span`,yr,j(e.label),1)],14,vr))),128))],4)],4),[[I,p.value]])]),_:1})]))}}),[[`__scopeId`,`data-v-cc7ef87d`]]),xr=[`id`,`onClick`,`onContextmenu`],Sr=[`onClick`],Cr={key:1,class:`line absolute top-0 bottom-0 left-0 w-px h-4 my-auto bg-g-400 transition-opacity duration-150`},wr={class:`flex`},Tr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(t){let n=sn(),r=U(),{currentRoute:a}=r,l=$(),f=()=>{l.refresh=!l.refresh},p=T(null),m=T(null),h=T(),g=T({translateX:0,transition:``}),_=T(0),v=T(``),b=i(()=>n.tabs),D=i(()=>a.value.path),O=i(()=>b.value.findIndex(e=>e.path===D.value)),k=i(()=>{let e=b.value.findIndex(e=>e.path===v.value),t=b.value[e],n=e=>e.length>0&&e.every(e=>e.fixedTab);return[{key:`refresh`,label:`刷新`,icon:`ri:refresh-line`,disabled:v.value!==D.value},{key:`fixed`,label:t?.fixedTab?`取消固定`:`固定`,icon:`ri:pushpin-2-line`,disabled:!1,showLine:!0},{key:`left`,label:`关闭左侧`,icon:`ri:arrow-left-s-line`,disabled:e===0||n(b.value.slice(0,e))},{key:`right`,label:`关闭右侧`,icon:`ri:arrow-right-s-line`,disabled:e===b.value.length-1||n(b.value.slice(e+1))},{key:`other`,label:`关闭其他`,icon:`ri:close-fill`,disabled:b.value.length===1||n(b.value.filter((t,n)=>n!==e))},{key:`all`,label:`关闭全部`,icon:`ri:close-circle-line`,disabled:b.value.length===1||n(b.value)}]}),A=()=>{g.value.transition=`transform 0.5s cubic-bezier(0.15, 0, 0.15, 1)`,setTimeout(()=>{g.value.transition=``},250)},N=()=>{if(!p.value||!m.value)return;let e=document.getElementById(`scroll-li-${O.value}`);if(!e)return;let t=p.value.offsetWidth,n=m.value.offsetWidth,{offsetLeft:r,clientWidth:i}=e,a=r+i;return{scrollWidth:t,ulWidth:n,offsetLeft:r,clientWidth:i,curTabRight:a,targetLeft:t-a}},P=()=>{let e=N();if(!e)return;let{scrollWidth:t,ulWidth:n,offsetLeft:r,curTabRight:i,targetLeft:a}=e;r>Math.abs(g.value.translateX)&&i<=t||g.value.translateX<a&&a<0||requestAnimationFrame(()=>{i>t?g.value.translateX=Math.max(a-6,t-n):r<Math.abs(g.value.translateX)&&(g.value.translateX=-r)})},F=()=>{let e=N();if(!e)return;let{scrollWidth:t,ulWidth:n,offsetLeft:r,clientWidth:i}=e,a=r+i;requestAnimationFrame(()=>{g.value.translateX=a>t?t-n:0})},R=e=>{if(!p.value||!m.value||(e.preventDefault(),m.value.offsetWidth<=p.value.offsetWidth))return;let t=p.value.offsetWidth-m.value.offsetWidth,n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;g.value.translateX=Math.min(Math.max(g.value.translateX-n,t),0)},z=e=>{_.value=e.touches[0].clientX},H=e=>{if(!p.value||!m.value)return;let t=p.value.offsetWidth-m.value.offsetWidth,n=e.touches[0].clientX-_.value;g.value.translateX=Math.min(Math.max(g.value.translateX+n,t),0),_.value=e.touches[0].clientX},W=()=>{m.value&&(m.value.addEventListener(`wheel`,R,{passive:!1}),m.value.addEventListener(`touchstart`,z,{passive:!0}),m.value.addEventListener(`touchmove`,H,{passive:!0}),m.value.addEventListener(`touchend`,A,{passive:!0}))},ee=()=>{m.value&&(m.value.removeEventListener(`wheel`,R),m.value.removeEventListener(`touchstart`,z),m.value.removeEventListener(`touchmove`,H),m.value.removeEventListener(`touchend`,A))},te=e=>{r.push({path:e.path,query:e.query})},ne=(e,t)=>{let i={current:()=>n.removeTab(t),left:()=>n.removeLeft(t),right:()=>n.removeRight(t),other:()=>n.removeOthers(t),all:()=>n.removeAll()}[e]?.();i&&i!==a.value.path&&r.push(i),setTimeout(F,100)},re=(e,t)=>{v.value=t||``,h.value?.show(e),e.preventDefault(),e.stopPropagation()},ie=e=>{let{key:t}=e;if(t===`refresh`){f();return}if(t===`fixed`){n.toggleFixedTab(v.value);return}let i=b.value.findIndex(e=>e.path===D.value),a=b.value.findIndex(e=>e.path===v.value);(t===`other`||(t===`left`?i<a:i>a))&&r.push(v.value),ne(t,v.value)};return S(()=>{W(),P()}),C(ee),L(a,()=>{A(),P()}),(t,n)=>M(l).showWorkTab?(w(),s(`div`,{key:0,class:y([`box-border flex-b w-full px-5 mb-3 select-none max-sm:px-[15px]`,[M(l).tabStyle===`tab-card`?`py-1 border-b border-[var(--layout-card-border)]`:``,M(l).tabStyle===`tab-google`?`pt-1 pb-0 border-b border-[var(--layout-card-border)]`:``]])},[c(`div`,{class:`w-full overflow-hidden`,ref_key:`scrollRef`,ref:p},[c(`ul`,{class:y([`float-left whitespace-nowrap !bg-transparent flex`,[M(l).tabStyle===`tab-google`?`pl-1`:``]]),ref_key:`tabsRef`,ref:m,style:x({transform:`translateX(${g.value.translateX}px)`,transition:`${g.value.transition}`})},[(w(!0),s(e,null,E(b.value,(e,t)=>(w(),s(`li`,{class:y([`layout-card-xs inline-flex flex-cc h-8 mr-1.5 text-xs c-p hover:text-theme group`,[e.path===D.value?`activ-tab !text-theme`:`text-g-600 dark:text-g-800`,M(l).tabStyle===`tab-google`?`google-tab relative !h-8 !leading-8 !border-none`:``]]),style:x({padding:e.fixedTab?`0 10px`:`0 8px 0 12px`,borderRadius:M(l).tabStyle===`tab-google`?`calc(var(--custom-radius) / 2.5 + 4px) !important`:`calc(var(--custom-radius) / 2.5 + 2px) !important`}),key:e.path,ref_for:!0,ref:e.path,id:`scroll-li-${t}`,onClick:t=>te(e),onContextmenu:V(t=>re(t,e.path),[`prevent`])},[B(d(Y,{icon:e.icon,class:y([`text-base mr-1 group-hover:text-theme`,e.path===D.value?`text-theme`:`text-g-600`])},null,8,[`icon`,`class`]),[[I,e.icon]]),u(` `+j(e.customTitle||M(gn)(e.title))+` `,1),b.value.length>1&&!e.fixedTab?(w(),s(`span`,{key:0,class:`inline-flex flex-cc relative ml-0.5 p-1 rounded-full tad-200 hover:bg-g-200`,onClick:V(t=>ne(`current`,e.path),[`stop`])},[d(Y,{icon:`ri:close-large-fill`,class:`text-[10px] text-g-600`})],8,Sr)):o(``,!0),M(l).tabStyle===`tab-google`?(w(),s(`div`,Cr)):o(``,!0)],46,xr))),128))],6)],512),c(`div`,wr,[c(`div`,{class:`flex-cc layout-card-xs relative top-0 size-8 leading-8 text-center c-p tad-200 hover:!bg-hover-color`,style:x({borderRadius:`calc(var(--custom-radius) / 2.5 + 0px)`,marginTop:M(l).tabStyle===`tab-google`?`-2px`:``}),onClick:n[0]||=e=>re(e,D.value)},[d(Y,{icon:`iconamoon:arrow-down-2-thin`,class:`text-2xl text-g-700`})],4)]),d(br,{ref_key:`menuRef`,ref:h,"menu-items":k.value,"menu-width":140,onSelect:ie},null,8,[`menu-items`])],2)):o(``,!0)}}),[[`__scopeId`,`data-v-a6142ee7`]]),Er={class:`flex-c flex-1 min-w-0 leading-15`},Dr=[`title`],Or={class:`flex-c gap-2.5 pr-4`},kr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(e){let t=U(),{width:n}=oe(),r=$(),l=X(),u=cn(),{isMobile:f}=An(),p=i(()=>r.menuType===K.LEFT),m=i(()=>r.menuType===K.DUAL_MENU),h=i(()=>r.menuType===K.TOP),g=i(()=>r.menuType===K.TOP_LEFT),_=()=>{r.menuOpen=!r.menuOpen},v=()=>{r.refresh=!r.refresh},b=e=>{let t=e.clientX,n=e.clientY,i=Math.hypot(Math.max(t,innerWidth-t),Math.max(n,innerHeight-n));document.documentElement.style.setProperty(`--x`,t+`px`),document.documentElement.style.setProperty(`--y`,n+`px`),document.documentElement.style.setProperty(`--r`,i+`px`);let a=()=>{Yn().switchThemeStyles(r.systemThemeType===q.LIGHT?q.DARK:q.LIGHT),v()};document.startViewTransition?document.startViewTransition(a):a()},S=()=>{t.push(l.homePath)},C=()=>{v()},T=()=>{l.settingVisible=!0};return(e,t)=>(w(),s(`div`,{class:y([`w-full bg-[var(--default-bg-color)]`,[M(r).tabStyle===`tab-card`||M(r).tabStyle===`tab-google`?`mb-5 max-sm:mb-3 !bg-box`:``]])},[c(`div`,{class:y([`relative box-border flex-b h-15 leading-15 select-none`,[M(r).tabStyle===`tab-card`||M(r).tabStyle===`tab-google`?`border-b border-[var(--layout-card-border)]`:``]])},[c(`div`,Er,[h.value?(w(),s(`div`,{key:0,class:`flex-c c-p min-w-0`,onClick:S},[d(hn,{class:`pl-4.5`}),M(n)>=1400?(w(),s(`p`,{key:0,title:M(l).title,class:`my-0 mx-2 ml-2 text-lg min-w-0 overflow-hidden text-ellipsis whitespace-nowrap`},j(M(l).title),9,Dr)):o(``,!0)])):o(``,!0),d(hn,{class:`!hidden pl-3.5 overflow-hidden align-[-0.15em] fill-current`,onClick:S}),M(r).showMenuButton&&(p.value||M(f))?(w(),a(an,{key:1,icon:`ri:menu-2-fill`,class:`ml-3 max-sm:ml-[7px]`,onClick:_})):o(``,!0),M(r).showRefreshButton?(w(),a(an,{key:2,icon:`ri:refresh-line`,class:`!ml-3 refresh-btn max-sm:!hidden`,style:x({marginLeft:p.value?`0`:`10px`}),onClick:C},null,8,[`style`])):o(``,!0),D(e.$slots,`quick`,{},void 0,!0),M(r).showCrumbs&&(p.value||m.value)?(w(),a(gr,{key:3})):o(``,!0),h.value?(w(),a(rr,{key:4,list:M(u).menulist},null,8,[`list`])):o(``,!0),g.value?(w(),a(ur,{key:5,list:M(u).menulist},null,8,[`list`])):o(``,!0)]),c(`div`,Or,[D(e.$slots,`header-left`,{},void 0,!0),d(an,{onClick:b,icon:M(r).isDark?`ri:sun-fill`:`ri:moon-line`},null,8,[`icon`]),M(l).showSetting?(w(),a(an,{key:0,icon:`ri:settings-line`,class:`setting-btn`,onClick:T})):o(``,!0),D(e.$slots,`header-right`,{},void 0,!0)])],2),d(Tr)],2))}}),[[`__scopeId`,`data-v-becc2b08`]]),Ar={key:0,class:`px-2 py-1.5 mb-3 text-sm text-g-500 bg-g-200 border-full-d rounded-md`},jr=[`src`],Mr={class:`fixed top-0 left-0 z-[2000] w-screen h-screen pointer-events-none bg-box`},Nr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(l){let u=H(),f=$(),p=sn(),m=i(()=>p.tabs.filter(e=>e.keepAlive).map(e=>e.name)),h=T(),g=T(),{height:_}=ne(h),{height:b}=ne(g),C=i(()=>`calc(100vh - ${_.value+b.value+15}px)`);S(()=>{h.value=document.getElementById(`app-header`)??void 0});let D=i(()=>u.meta.isIframe===!0&&!!u.meta.link),N=T([]);L(()=>u.fullPath,()=>{D.value&&!N.value.some(e=>e.path===u.fullPath)&&N.value.push({path:u.fullPath,link:`${u.meta.link}`})},{immediate:!0}),L(()=>p.tabs.map(e=>e.path),e=>{e.length>0&&(N.value=N.value.filter(t=>e.includes(t.path)))});let P=A(!0),F=T(!1),R=T(!0),V=i(()=>u.matched.some(e=>e.meta?.isFullPage)),U=T(V.value),W=i(()=>R.value||U.value&&!V.value?``:f.pageTransition);L(V,(e,t)=>{e!==t&&(F.value=!0,setTimeout(()=>{F.value=!1},50)),v(()=>{U.value=e})});let ee=i(()=>V.value?{position:`fixed`,top:0,left:0,width:`100%`,height:`100vh`,zIndex:2500,background:`var(--default-bg-color)`}:{maxWidth:f.containerWidth}),te=i(()=>({minHeight:C.value}));return L(()=>f.refresh,()=>{P.value=!1,v(()=>{P.value=!0})},{flush:`post`}),S(()=>{v(()=>{R.value=!1})}),(i,l)=>{let f=O(`RouterView`);return w(),s(`div`,{class:y([`layout-content`,{"overflow-auto":V.value}]),style:x(ee.value)},[c(`div`,{id:`app-content-header`,ref_key:`contentHeaderRef`,ref:g},[M(void 0)===`true`?(w(),s(`div`,Ar,`router meta:`+j(M(u).meta),1)):o(``,!0)],512),B(c(`div`,{class:`layout-page-view`,style:x(te.value)},[P.value?(w(),a(f,{key:0},{default:z(({Component:e,route:n})=>[d(r,{name:F.value?``:W.value,mode:`out-in`,appear:``},{default:z(()=>[(w(),a(t,{max:10,include:m.value},[n.meta.isKeepAlive?(w(),a(k(e),{key:n.path})):o(``,!0)],1032,[`include`]))]),_:2},1032,[`name`]),d(r,{name:F.value?``:W.value,mode:`out-in`,appear:``},{default:z(()=>[n.meta.isKeepAlive?o(``,!0):(w(),a(k(e),{key:n.path}))]),_:2},1032,[`name`])]),_:1})):o(``,!0)],4),[[I,!D.value]]),(w(!0),s(e,null,E(N.value,e=>B((w(),s(`div`,{key:e.path,class:`layout-iframe-view`},[c(`iframe`,{class:`layout-iframe-frame`,src:e.link,frameborder:`0`},null,8,jr)])),[[I,D.value&&e.path===M(u).fullPath]])),128)),(w(),a(n,{to:`body`},[B(c(`div`,Mr,null,512),[[I,F.value]])]))],6)}}}),[[`__scopeId`,`data-v-2bfd26ec`]]),Pr={class:`app-layout`},Fr={id:`app-sidebar`},Ir={id:`app-main`},Lr={id:`app-header`},Rr={id:`app-content`},zr=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,Pr,[c(`aside`,Fr,[d(Ln)]),c(`main`,Ir,[c(`div`,Lr,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Rr,[d(Nr)])])]))}}),Br=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`menu-drawer`,setup(e){P(e=>({be543622:u.value}));let t=$(),n=cn(),{routerPath:r}=kn(),{isMobile:a}=An(),l=i(()=>n.menulist),u=i(()=>t.getMenuOpenWidth),f=()=>{t.menuOpen=!1};return(e,n)=>{let i=O(`ElMenu`),u=O(`ElScrollbar`);return M(a)&&M(t).menuOpen?(w(),s(`div`,{key:0,class:`layout-menu-drawer`,style:x({background:M(t).getMenuTheme.background})},[d(u,null,{default:z(()=>[d(i,{class:y(`el-menu-`+M(t).getMenuTheme.theme),"default-active":M(r),"text-color":M(t).getMenuTheme.textColor,"unique-opened":M(t).uniqueOpened,"background-color":M(t).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(t).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:l.value,theme:M(t).getMenuTheme,onClose:f},null,8,[`list`,`theme`])]),_:1},8,[`class`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1}),c(`div`,{class:`layout-menu-drawer-model`,onClick:f})],4)):o(``,!0)}}}),[[`__scopeId`,`data-v-00799230`]]),Vr={class:`app-layout`},Hr={id:`app-main`},Ur={id:`app-header`},Wr={id:`app-content`},Gr=/* @__PURE__ */ f({__name:`index`,setup(t){return(t,n)=>(w(),s(e,null,[c(`div`,Vr,[c(`main`,Hr,[c(`div`,Ur,[d(kr,null,l({_:2},[t.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(t.$slots,`header-left`)]),key:`0`}:void 0,t.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(t.$slots,`header-right`)]),key:`1`}:void 0,t.$slots.quick?{name:`quick`,fn:z(()=>[D(t.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Wr,[d(Nr)])])]),d(Br)],64))}}),Kr=[`title`],qr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(e){let t=$(),n=X(),{showLeftMenu:r,isDualMenu:i,menuList:l,routerPath:u,scrollbarStyle:f,navigateToHome:p}=kn(),{isMobile:m}=An(),{showMobileModal:h,toggleMenuVisibility:g,handleMenuClose:_}=jn(m);return(e,m)=>{let v=O(`ElMenu`),b=O(`ElScrollbar`);return M(r)?(w(),s(`div`,{key:0,class:y([`layout-sidebar`,{"no-border":M(l).length===0}]),style:x({"--layout-menu-open-width":M(t).getMenuOpenWidth,"--layout-menu-close-width":`64px`})},[B(c(`div`,{class:y([`menu-left`,`menu-left-${M(t).getMenuTheme.theme} menu-left-${M(t).menuOpen?`open`:`close`}`]),style:x({background:M(t).getMenuTheme.background})},[c(`div`,{class:`header`,onClick:m[0]||=(...e)=>M(p)&&M(p)(...e),style:x({background:M(t).getMenuTheme.background})},[M(i)?o(``,!0):(w(),a(hn,{key:0,class:`logo`})),c(`p`,{title:M(n).title,class:y({"is-dual-menu-name":M(i)}),style:x({color:M(t).getMenuTheme.systemNameColor,opacity:+!!M(t).menuOpen})},j(M(n).title),15,Kr)],4),d(b,{style:x(M(f))},{default:z(()=>[d(v,{class:y(`el-menu-`+M(t).getMenuTheme.theme),collapse:!M(t).menuOpen,"default-active":M(u),"text-color":M(t).getMenuTheme.textColor,"unique-opened":M(t).uniqueOpened,"background-color":M(t).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(t).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:M(l),theme:M(t).getMenuTheme,onClose:M(_)},null,8,[`list`,`theme`,`onClose`])]),_:1},8,[`class`,`collapse`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1},8,[`style`]),c(`div`,{class:`menu-model`,onClick:m[1]||=(...e)=>M(g)&&M(g)(...e),style:x({opacity:+!!M(t).menuOpen,transform:M(h)?`scale(1)`:`scale(0)`})},null,4)],6),[[I,M(l).length>0]])],6)):o(``,!0)}}}),[[`__scopeId`,`data-v-ad1d6b09`]]),Jr={class:`app-layout`},Yr={id:`app-sidebar`},Xr={id:`app-main`},Zr={id:`app-header`},Qr={id:`app-content`},$r=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,Jr,[c(`aside`,Yr,[d(qr)]),c(`main`,Xr,[c(`div`,Zr,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Qr,[d(Nr)])])]))}}),ei={class:`app-layout`},ti={id:`app-sidebar`},ni={id:`app-main`},ri={id:`app-header`},ii={id:`app-content`},ai=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,ei,[c(`aside`,ti,[d(qr)]),c(`main`,ni,[c(`div`,ri,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,ii,[d(Nr)])])]))}}),oi={[K.LEFT]:ai,[K.TOP]:Gr,[K.TOP_LEFT]:$r,[K.DUAL_MENU]:zr};function si(){let e=$();return{switchMenuLayouts:t=>{(t===K.LEFT||t===K.TOP_LEFT)&&(e.menuOpen=!0),e.menuType=t,t===K.DUAL_MENU&&(e.menuThemeType=J.DESIGN,e.menuOpen=!0)}}}var ci=`sys-responsive-menu-type`;function li(){let e=$(),t=X(),{setSystemTheme:n,setSystemAutoTheme:r}=Yn(),{switchMenuLayouts:a}=si(),o=i({get:()=>t.settingVisible,set:e=>t.settingVisible=e}),s=i(()=>e.systemThemeColor),c=ee({tablet:1e3}).smaller(`tablet`),l=()=>{let e=localStorage.getItem(ci);return Object.values(K).includes(e)?e:void 0},u=e=>{localStorage.setItem(ci,e)},d=()=>{localStorage.removeItem(ci)},f=l(),p=T(f),m=T(!!f);L(c,t=>{t?(m.value||(p.value=e.menuType,e.menuType!==K.LEFT&&(u(e.menuType),a(K.LEFT),m.value=!0)),e.menuOpen=!1):(m.value&&p.value&&(e.menuType===K.LEFT&&a(p.value),d(),m.value=!1),e.menuOpen=!0)},{immediate:!0});let h=null,g=()=>{h&&clearTimeout(h),h=setTimeout(()=>{document.getElementsByTagName(`body`)[0].classList.add(`theme-change`),h=null},500)},_=()=>{h&&=(clearTimeout(h),null),document.getElementsByTagName(`body`)[0].classList.remove(`theme-change`)},v=()=>{o.value=!1},y=()=>{Q.systemMainColor.includes(s.value)||(e.systemThemeColor=Q.systemMainColor[0],e.refresh=!e.refresh)},b=()=>{e.systemThemeMode===q.AUTO?r():n(e.systemThemeType)},x=null;return S(()=>{y();let t=window.matchMedia(`(prefers-color-scheme: dark)`);t.addEventListener(`change`,b),x=()=>{t.removeEventListener(`change`,b)},document.documentElement.setAttribute(`data-box-mode`,e.boxBorderMode?`border-mode`:`shadow-mode`),b()}),C(()=>{x?.()}),{showDrawer:o,handleOpen:g,handleClose:_,closeDrawer:v}}var ui={class:`flex-cb mb-4 last:mb-2`},di={class:`flex-cb mb-4 last:mb-2`},fi={class:`flex-cb mb-4 last:mb-2`},pi={class:`flex-cb mb-4 last:mb-2`},mi={class:`flex-cb mb-4 last:mb-2 mobile-hide`},hi={class:`flex-cb mb-4 last:mb-2`},gi={class:`flex-cb mb-4 last:mb-2`},_i={class:`flex-cb mb-4 last:mb-2`},vi={class:`flex-cb mb-4 last:mb-2`},yi={class:`flex-cb mb-4 last:mb-2`},bi={class:`flex-cb mb-4 last:mb-2`},xi=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`BasicSettings`,setup(e){let t=$();return(e,n)=>{let r=O(`ElSwitch`),i=O(`ElInputNumber`),a=O(`ElOption`),o=O(`ElSelect`);return w(),s(`div`,null,[n[22]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`基础配置`,-1),c(`div`,ui,[n[11]||=c(`span`,{class:`text-sm`},`开启多标签页`,-1),d(r,{modelValue:M(t).showWorkTab,"onUpdate:modelValue":n[0]||=e=>M(t).showWorkTab=e},null,8,[`modelValue`])]),c(`div`,di,[n[12]||=c(`span`,{class:`text-sm`},`侧边栏开启手风琴模式`,-1),d(r,{modelValue:M(t).uniqueOpened,"onUpdate:modelValue":n[1]||=e=>M(t).uniqueOpened=e},null,8,[`modelValue`])]),c(`div`,fi,[n[13]||=c(`span`,{class:`text-sm`},`显示折叠侧边栏按钮`,-1),d(r,{modelValue:M(t).showMenuButton,"onUpdate:modelValue":n[2]||=e=>M(t).showMenuButton=e},null,8,[`modelValue`])]),c(`div`,pi,[n[14]||=c(`span`,{class:`text-sm`},`显示重载页面按钮`,-1),d(r,{modelValue:M(t).showRefreshButton,"onUpdate:modelValue":n[3]||=e=>M(t).showRefreshButton=e},null,8,[`modelValue`])]),c(`div`,mi,[n[15]||=c(`span`,{class:`text-sm`},`显示全局面包屑导航`,-1),d(r,{modelValue:M(t).showCrumbs,"onUpdate:modelValue":n[4]||=e=>M(t).showCrumbs=e},null,8,[`modelValue`])]),c(`div`,hi,[n[16]||=c(`span`,{class:`text-sm`},`色弱模式`,-1),d(r,{modelValue:M(t).colorWeak,"onUpdate:modelValue":n[5]||=e=>M(t).colorWeak=e},null,8,[`modelValue`])]),c(`div`,gi,[n[17]||=c(`span`,{class:`text-sm`},`全局水印`,-1),d(r,{modelValue:M(t).watermarkVisible,"onUpdate:modelValue":n[6]||=e=>M(t).watermarkVisible=e},null,8,[`modelValue`])]),c(`div`,_i,[n[18]||=c(`span`,{class:`text-sm`},`菜单宽度`,-1),d(i,{"model-value":M(t).menuOpenWidth,min:180,max:320,step:10,style:{width:`120px`},"controls-position":`right`,onChange:n[7]||=e=>M(t).menuOpenWidth=e},null,8,[`model-value`])]),c(`div`,vi,[n[19]||=c(`span`,{class:`text-sm`},`标签页风格`,-1),d(o,{modelValue:M(t).tabStyle,"onUpdate:modelValue":n[8]||=e=>M(t).tabStyle=e,style:{width:`120px`}},{default:z(()=>[d(a,{label:`默认`,value:`tab-default`}),d(a,{label:`卡片`,value:`tab-card`}),d(a,{label:`谷歌`,value:`tab-google`})]),_:1},8,[`modelValue`])]),c(`div`,yi,[n[20]||=c(`span`,{class:`text-sm`},`页面切换动画`,-1),d(o,{"model-value":M(t).pageTransition,style:{width:`120px`},onChange:n[9]||=e=>M(t).pageTransition=e},{default:z(()=>[d(a,{label:`无动画`,value:``}),d(a,{label:`淡入淡出`,value:`fade`}),d(a,{label:`左侧滑入`,value:`slide-left`}),d(a,{label:`下方滑入`,value:`slide-bottom`}),d(a,{label:`上方滑入`,value:`slide-top`})]),_:1},8,[`model-value`])]),c(`div`,bi,[n[21]||=c(`span`,{class:`text-sm`},`自定义圆角`,-1),d(o,{modelValue:M(t).customRadius,"onUpdate:modelValue":n[10]||=e=>M(t).customRadius=e,style:{width:`120px`}},{default:z(()=>[d(a,{label:`0`,value:`0`}),d(a,{label:`0.25`,value:`0.25`}),d(a,{label:`0.5`,value:`0.5`}),d(a,{label:`0.75`,value:`0.75`}),d(a,{label:`1`,value:`1`})]),_:1},8,[`modelValue`])])])}}}),[[`__scopeId`,`data-v-6aee8682`]]),Si={class:`box-border flex-cb p-1 mt-5 rounded-lg bg-g-200`},Ci=/* @__PURE__ */ f({__name:`BoxStyleSettings`,setup(e){let t=$(),n=e=>{e===`shadow-mode`&&t.boxBorderMode===!1||e===`border-mode`&&t.boxBorderMode===!0||setTimeout(()=>{document.documentElement.setAttribute(`data-box-mode`,e),t.boxBorderMode=!t.boxBorderMode},50)};return(e,r)=>(w(),s(`div`,null,[r[2]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`盒子样式`,-1),c(`div`,Si,[c(`div`,{class:y([`w-[calc(50%-3px)] h-8.5 leading-8.5 text-sm text-center c-p select-none rounded-md transition-all duration-200`,M(t).boxBorderMode?`text-g-800 bg-[var(--default-box-color)] dark:!text-white dark:bg-g-300`:`hover:text-g-800 hover:bg-black/[0.04] dark:hover:bg-black/20`]),onClick:r[0]||=e=>n(`border-mode`)},`边框`,2),c(`div`,{class:y([`w-[calc(50%-3px)] h-8.5 leading-8.5 text-sm text-center c-p select-none rounded-md transition-all duration-200`,M(t).boxBorderMode?`hover:text-g-800 hover:bg-black/[0.04] dark:hover:bg-black/20`:`text-g-800 bg-[var(--default-box-color)] dark:!text-white dark:bg-g-300`]),onClick:r[1]||=e=>n(`shadow-mode`)},`阴影`,2)])]))}}),wi={class:`-mr-4`},Ti={class:`flex flex-wrap`},Ei=[`onClick`],Di=/* @__PURE__ */ f({__name:`ColorSettings`,setup(t){let n=$(),r=e=>{n.systemThemeColor=e,n.refresh=!n.refresh};return(t,i)=>(w(),s(`div`,null,[i[0]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`系统主题色`,-1),c(`div`,wi,[c(`div`,Ti,[(w(!0),s(e,null,E(M(Q).systemMainColor,e=>(w(),s(`div`,{key:e,class:`flex items-center justify-center size-[23px] mr-4 mb-2.5 cursor-pointer rounded-full transition-all duration-200 hover:opacity-85`,style:x({background:`${e} !important`}),onClick:t=>r(e)},[B(d(Y,{icon:`ri:check-fill`,class:`text-base !text-white`},null,512),[[I,e===M(n).systemThemeColor]])],12,Ei))),128))])])]))}}),Oi={class:`flex`},ki=/* @__PURE__ */ f({__name:`ContainerSettings`,setup(e){let t=$(),n=e=>{t.containerWidth=e,t.refresh=!t.refresh};return(e,r)=>(w(),s(`div`,null,[r[4]||=c(`p`,{class:`relative mt-12.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`容器宽度`,-1),c(`div`,Oi,[c(`div`,{class:y([`flex-cc flex-1 h-16 mt-5 mr-3.5 mb-3.5 cursor-pointer !border-2 rounded-lg !text-g-800`,M(t).containerWidth===M(ye).FULL?`border-theme [&_svg]:!text-theme`:`border-full-d`]),onClick:r[0]||=e=>n(M(ye).FULL)},[d(Y,{icon:`icon-park-outline:auto-width`,class:`mr-2 text-lg`}),r[2]||=c(`span`,{class:`text-sm`},`铺满`,-1)],2),c(`div`,{class:y([`flex-cc flex-1 h-16 mt-5 mb-3.5 cursor-pointer !border-2 rounded-lg !text-g-800`,M(t).containerWidth===M(ye).BOXED?`border-theme [&_svg]:!text-theme`:`border-full-d`]),onClick:r[1]||=e=>n(M(ye).BOXED)},[d(Y,{icon:`ix:width`,class:`mr-2 text-lg`}),r[3]||=c(`span`,{class:`text-sm`},`定宽`,-1)],2)])]))}}),Ai={key:0},ji={class:`setting-box-wrap`},Mi=[`src`],Ni=[`src`],Pi=[`src`],Fi=[`src`],Ii=/* @__PURE__ */ f({__name:`MenuLayoutSettings`,setup(e){let{width:t}=oe(),n=$(),{switchMenuLayouts:r}=si();return(e,i)=>M(t)>1e3?(w(),s(`div`,Ai,[i[8]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`菜单布局`,-1),c(`div`,ji,[c(`div`,{class:`setting-item`,onClick:i[0]||=e=>M(r)(M(K).LEFT)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).LEFT}])},[c(`img`,{src:M(Z).menuLayouts.vertical},null,8,Mi)],2),i[4]||=c(`p`,{class:`name`},`垂直`,-1)]),c(`div`,{class:`setting-item`,onClick:i[1]||=e=>M(r)(M(K).TOP)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).TOP}])},[c(`img`,{src:M(Z).menuLayouts.horizontal},null,8,Ni)],2),i[5]||=c(`p`,{class:`name`},`水平`,-1)]),c(`div`,{class:`setting-item`,onClick:i[2]||=e=>M(r)(M(K).TOP_LEFT)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).TOP_LEFT}])},[c(`img`,{src:M(Z).menuLayouts.mixed},null,8,Pi)],2),i[6]||=c(`p`,{class:`name`},`混合`,-1)]),c(`div`,{class:`setting-item`,onClick:i[3]||=e=>M(r)(M(K).DUAL_MENU)},[c(`div`,{class:y([`box mt-16`,{"is-active":M(n).menuType===M(K).DUAL_MENU}])},[c(`img`,{src:M(Z).menuLayouts.dualColumn},null,8,Fi)],2),i[7]||=c(`p`,{class:`name`},`双列`,-1)])])])):o(``,!0)}}),Li={class:`setting-box-wrap`},Ri=[`onClick`],zi=[`src`],Bi=/* @__PURE__ */ f({__name:`MenuStyleSettings`,setup(t){let n=Q.themeList,r=$(),a=i(()=>r.menuType===K.TOP),o=i(()=>r.menuType===K.DUAL_MENU),l=i(()=>a.value||o.value||r.isDark),u=e=>{o.value||a.value||r.isDark||(r.menuThemeType=e)};return(t,i)=>(w(),s(e,null,[i[0]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`菜单风格`,-1),c(`div`,Li,[(w(!0),s(e,null,E(M(n),e=>(w(),s(`div`,{class:`setting-item`,key:e.theme,onClick:t=>u(e.theme)},[c(`div`,{class:y([`box`,{"is-active":e.theme===M(r).menuThemeType}]),style:x({cursor:l.value?`no-drop`:`pointer`})},[c(`img`,{src:e.img},null,8,zi)],6)],8,Ri))),128))])],64))}}),Vi={class:`setting-box-wrap`},Hi=[`src`],Ui=[`src`],Wi=[`src`],Gi=/* @__PURE__ */ f({__name:`ThemeSettings`,setup(t){let n=$(),{switchThemeStyles:r}=Yn();return(t,i)=>(w(),s(e,null,[i[6]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`主题风格`,-1),c(`div`,Vi,[c(`div`,{class:`setting-item`,onClick:i[0]||=e=>M(r)(M(q).LIGHT)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).LIGHT}])},[c(`img`,{src:M(Z).themeStyles.light},null,8,Hi)],2),i[3]||=c(`p`,{class:`name`},`浅色`,-1)]),c(`div`,{class:`setting-item`,onClick:i[1]||=e=>M(r)(M(q).DARK)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).DARK}])},[c(`img`,{src:M(Z).themeStyles.dark},null,8,Ui)],2),i[4]||=c(`p`,{class:`name`},`深色`,-1)]),c(`div`,{class:`setting-item`,onClick:i[2]||=e=>M(r)(M(q).AUTO)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).AUTO}])},[c(`img`,{src:M(Z).themeStyles.system},null,8,Wi)],2),i[5]||=c(`p`,{class:`name`},`系统`,-1)])])],64))}}),Ki={class:`layout-settings`},qi={class:`setting-drawer`},Ji={class:`drawer-con`},Yi={class:`flex justify-end`},Xi={class:`mt-10 flex gap-8 border-t border-[var(--default-border)] bg-[var(--layout-bg-color)] pt-5`},Zi=/* @__PURE__ */ f({__name:`index`,setup(e){let t=$(),{showDrawer:n,handleOpen:r,handleClose:i,closeDrawer:a}=li(),{copy:o,copied:l}=te(),{switchThemeStyles:f}=Yn(),p={menuType:{left:`MenuTypeEnum.LEFT`,top:`MenuTypeEnum.TOP`,"top-left":`MenuTypeEnum.TOP_LEFT`,"dual-menu":`MenuTypeEnum.DUAL_MENU`},systemTheme:{auto:`SystemThemeEnum.AUTO`,light:`SystemThemeEnum.LIGHT`,dark:`SystemThemeEnum.DARK`},menuTheme:{design:`MenuThemeEnum.DESIGN`,light:`MenuThemeEnum.LIGHT`,dark:`MenuThemeEnum.DARK`},containerWidth:{"100%":`ContainerWidthEnum.FULL`,"1200px":`ContainerWidthEnum.BOXED`}},m=[{comment:`菜单类型`,key:`menuType`,enumMap:p.menuType},{comment:`菜单展开宽度`,key:`menuOpenWidth`},{comment:`菜单是否展开`,key:`menuOpen`},{comment:`双菜单是否显示文本`,key:`dualMenuShowText`},{comment:`系统主题类型`,key:`systemThemeType`,enumMap:p.systemTheme},{comment:`系统主题模式`,key:`systemThemeMode`,enumMap:p.systemTheme},{comment:`菜单风格`,key:`menuThemeType`,enumMap:p.menuTheme},{comment:`系统主题颜色`,key:`systemThemeColor`},{comment:`是否显示菜单按钮`,key:`showMenuButton`},{comment:`是否显示刷新按钮`,key:`showRefreshButton`},{comment:`是否显示面包屑`,key:`showCrumbs`},{comment:`是否显示工作台标签`,key:`showWorkTab`},{comment:`是否显示水印`,key:`watermarkVisible`},{comment:`是否唯一展开`,key:`uniqueOpened`},{comment:`是否色弱模式`,key:`colorWeak`},{comment:`是否刷新`,key:`refresh`},{comment:`边框模式`,key:`boxBorderMode`},{comment:`页面过渡效果`,key:`pageTransition`},{comment:`标签页样式`,key:`tabStyle`},{comment:`自定义圆角`,key:`customRadius`},{comment:`容器宽度`,key:`containerWidth`,enumMap:p.containerWidth}],h=(e,t)=>e===null?`null`:e===void 0?`undefined`:t&&typeof e==`string`&&t[e]?t[e]:typeof e==`string`?`'${e}'`:typeof e==`boolean`||typeof e==`number`?String(e):JSON.stringify(e),_=()=>{let e=[`export const SETTING_DEFAULT_CONFIG = {`];return m.forEach(n=>{e.push(` /** ${n.comment} */`),e.push(` ${String(n.key)}: ${h(t[n.key],n.enumMap)},`)}),e.push(`}`),e.join(`
|
|
2
|
-
`)},y=async()=>{try{let e=_();await o(e),l.value&&se.success({message:`配置已复制到剪贴板,可粘贴到 anvero-layout/config.ts 的 SETTING_DEFAULT_CONFIG 中`,duration:3e3})}catch(e){console.error(`复制配置失败:`,e),se.error(`复制失败,请重试`)}},b=async()=>{try{let e=fn;t.menuType=e.menuType,t.menuOpenWidth=e.menuOpenWidth,t.menuOpen=e.menuOpen,t.dualMenuShowText=e.dualMenuShowText,f(e.systemThemeMode),await v(),t.menuThemeType=t.isDark?J.DARK:e.menuThemeType,t.systemThemeColor=e.systemThemeColor,t.showMenuButton=e.showMenuButton,t.showRefreshButton=e.showRefreshButton,t.showCrumbs=e.showCrumbs,t.showWorkTab=e.showWorkTab,t.watermarkVisible=e.watermarkVisible,t.uniqueOpened=e.uniqueOpened,t.colorWeak=e.colorWeak,t.boxBorderMode=e.boxBorderMode,t.pageTransition=e.pageTransition,t.tabStyle=e.tabStyle,t.customRadius=e.customRadius,t.containerWidth=e.containerWidth,location.reload()}catch(e){console.error(`重置配置失败:`,e),se.error(`重置失败,请刷新页面后重试`)}};return(e,t)=>{let o=O(`ElButton`),l=O(`ElDrawer`);return w(),s(`div`,Ki,[c(`div`,qi,[d(l,{size:`300px`,modelValue:M(n),"onUpdate:modelValue":t[1]||=e=>g(n)?n.value=e:null,"lock-scroll":!0,"with-header":!1,"destroy-on-close":!1,"modal-class":`setting-modal`,onOpen:M(r),onClose:M(i)},{default:z(()=>[c(`div`,Ji,[c(`div`,null,[c(`div`,Yi,[c(`div`,{onClick:t[0]||=(...e)=>M(a)&&M(a)(...e),class:`flex-cc c-p size-7.5 !transition-all duration-200 rounded hover:bg-g-300/80`},[d(Y,{icon:`ri:close-fill`,class:`block text-xl text-g-600`})])])]),d(Gi),d(Ii),d(Bi),d(Di),d(Ci),d(ki),d(xi),c(`div`,Xi,[d(o,{type:`primary`,class:`flex-1 !h-8`,onClick:y},{default:z(()=>[...t[2]||=[u(`复制配置`,-1)]]),_:1}),d(o,{type:`danger`,plain:``,class:`flex-1 !h-8`,onClick:b},{default:z(()=>[...t[3]||=[u(`重置配置`,-1)]]),_:1})])])]),_:1},8,[`modelValue`,`onOpen`,`onClose`])])])}}}),Qi=/* @__PURE__ */ f({__name:`index`,props:{content:{type:String,default:``},fontSize:{type:Number,default:16},fontColor:{type:String,default:`rgba(128, 128, 128, 0.2)`},rotate:{type:Number,default:-22},gapX:{type:Number,default:100},gapY:{type:Number,default:100},offsetX:{type:Number,default:50},offsetY:{type:Number,default:50},zIndex:{type:Number,default:3100}},setup(e){let t=$(),n=e,r=X(),a=i(()=>n.content||r.watermark);return(n,r)=>{let i=O(`ElWatermark`);return M(t).watermarkVisible?(w(),s(`div`,{key:0,class:`fixed left-0 top-0 h-screen w-screen pointer-events-none`,style:x({zIndex:e.zIndex})},[d(i,{content:a.value,font:{fontSize:e.fontSize,color:e.fontColor},rotate:e.rotate,gap:[e.gapX,e.gapY],offset:[e.offsetX,e.offsetY]},{default:z(()=>[...r[0]||=[c(`div`,{style:{height:`100vh`}},null,-1)]]),_:1},8,[`content`,`font`,`rotate`,`gap`,`offset`])],4)):o(``,!0)}}}),$i={class:`page-layout-root`},ea=/* @__PURE__ */ f({__name:`index`,props:{routes:{type:Array,default:()=>[]},settings:{type:Object,default:()=>({})},title:{type:String,default:`后台管理`},logo:{type:String,default:void 0},watermark:{type:String,default:`watermark`},homePath:{type:String,default:``},showSetting:{type:Boolean,default:!1}},setup(e){let t=e;Jn();let n=$(),r=cn(),i=sn(),o=X();R(()=>{t.title!==void 0&&(o.title=t.title),t.logo!==void 0&&(o.logo=t.logo),t.watermark!==void 0&&(o.watermark=t.watermark),t.homePath&&(o.homePath=t.homePath),o.showSetting=t.showSetting}),(Array.isArray(t.routes)&&t.routes.length>0||t.routes&&!Array.isArray(t.routes))&&r.setRoutes(t.routes),n.$patch(Object.fromEntries(Object.entries(t.settings).filter(([,e])=>e!=null)));let c=H();return L(()=>c.fullPath,()=>{c.path&&c.path!==`/`&&c.meta?.isHiddenTab!==!0&&i.openTab({name:c.name,path:c.path,title:c.meta?.title,icon:c.meta?.icon,keepAlive:c.meta?.isKeepAlive===!0,fixedTab:c.meta?.isFixedTab===!0,query:c.query})},{immediate:!0}),(e,r)=>(w(),s(`div`,$i,[(w(),a(k(M(oi)[M(n).menuType]),b(m(t)),l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1040)),d(Zi),d(Qi)]))}}),ta=/* @__PURE__ */ f({inheritAttrs:!1,__name:`index`,props:{icon:{type:String,required:!0},size:{type:[Number,String],default:void 0},color:{type:String,default:void 0}},setup(e){return(t,n)=>(w(),a(M(rn),_({icon:e.icon,width:e.size,height:e.size,color:e.color},t.$attrs),null,16,[`icon`,`width`,`height`,`color`]))}}),na={install(e){e.component(`PageLayout`,ea),e.component(`PageMain`,ve),e.component(`FlexRow`,me),e.component(`FlexCol`,pe),e.component(`FlexItem`,le),e.component(`IconifyIcon`,ta)}};export{ye as ContainerWidthEnum,J as MenuThemeEnum,K as MenuTypeEnum,q as SystemThemeEnum,na as default};
|
|
1
|
+
import"./style.css";import{Fragment as e,KeepAlive as t,Teleport as n,Transition as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createSlots as l,createTextVNode as u,createVNode as d,defineComponent as f,getCurrentInstance as p,guardReactiveProps as m,h,isRef as g,mergeProps as _,nextTick as v,normalizeClass as y,normalizeProps as b,normalizeStyle as x,onMounted as S,onUnmounted as C,openBlock as w,ref as T,renderList as E,renderSlot as D,resolveComponent as O,resolveDynamicComponent as k,shallowRef as A,toDisplayString as j,unref as M,useAttrs as N,useCssVars as P,useSlots as F,vShow as I,watch as L,watchEffect as R,withCtx as z,withDirectives as B,withModifiers as V}from"vue";import{useRoute as H,useRouter as U}from"vue-router";import{defineStore as W}from"pinia";import{useBreakpoints as ee,useClipboard as te,useElementSize as ne,usePreferredDark as re,useThrottleFn as ie,useTimeoutFn as ae,useWindowSize as oe}from"@vueuse/core";import{ElMessage as se}from"element-plus";var ce=/*@__PURE__*/ f({__name:`index`,props:{cell:{default:0,type:[Number,String]},order:{default:0,type:[Number,String]},fill:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean}},setup(e){let t=e,n=i(()=>{let e=[],n=[{class:`flex-top`,value:t.top},{class:`flex-middle`,value:t.middle},{class:`flex-bottom`,value:t.bottom}].filter(e=>e.value==1),r=[{class:`flex-left`,value:t.left},{class:`flex-right`,value:t.right},{class:`flex-center`,value:t.center}].filter(e=>e.value==1);return n.length>1&&console.warn(`[ flex-item ] 中 top,middle,bottom 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),r.length>1&&console.warn(`[ flex-item ] 中 left,right,center 只能有一个,已取第一个 ${r[0].class}`),r[0]?.class&&e.push(r[0].class),t.cell&&parseInt(`${t.cell}`)>0&&parseInt(`${t.cell}`)<=24&&e.push(`flex-item-${t.cell}`),t.order&&parseInt(`${t.order}`)>0&&parseInt(`${t.order}`)<=24&&e.push(`flex-order-${t.order}`),e.push(t.nowrap?`flex-nowrap`:``,t.fill?`flex-fill`:``,t.mdHidden?`flex-md-hide`:``,t.smHidden?`flex-sm-hide`:``),e.filter(Boolean)});return(e,t)=>(w(),s(`section`,{class:y([`flex flex-item`,n.value])},[D(e.$slots,`default`,{},void 0,!0)],2))}}),G=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},le=/*#__PURE__*/ G(ce,[[`__scopeId`,`data-v-9e25f076`]]),ue=`flex-item-`,de=()=>{let e=F();return i(()=>(e.default?.()??[]).map(e=>{if(!e.props)return e;let t={},n={...e.props};for(let e of Object.keys(n)){if(!e.startsWith(ue))continue;let r=e.slice(10);r===`style`?t.style=n[e]:t[r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())]=n[e],delete n[e]}return Object.keys(t).length?h(le,t,{default:()=>h(e.type,n,e.children??void 0)}):e}))},fe=e=>e.vnodes;fe.props=[`vnodes`];var pe=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{fill:{default:!1,type:Boolean},space:{default:0,type:[Number,String]},reverse:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},around:{default:!1,type:Boolean},evenly:{default:!1,type:Boolean},between:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean},width:{type:[Number,String,Boolean],default:!1},minWidth:{type:[Number,String],default:0},maxWidth:{type:[Number,String],default:0},height:{type:[Number,String,Boolean],default:!1},minHeight:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:0}},setup(e){let t=p()?.proxy,n=T(null),r=de(),a=/^\d+(\.\d+)?[a-z%]+$/i,o=e,c=i(()=>{let e=[],t=[{class:`flex-top`,value:o.top},{class:`flex-middle`,value:o.middle},{class:`flex-bottom`,value:o.bottom},{class:`flex-around`,value:o.around},{class:`flex-evenly`,value:o.evenly},{class:`flex-between`,value:o.between}].filter(e=>e.value==1),n=[{class:`flex-left`,value:o.left},{class:`flex-right`,value:o.right},{class:`flex-center`,value:o.center}].filter(e=>e.value==1);return t.length>1&&console.warn(`[ flex-col ] 中 top,middle,bottom,around,evenly,between 只能有一个,已取第一个 ${t[0].class}`),t[0]?.class&&e.push(t[0].class),n.length>1&&console.warn(`[ flex-col ] 中 left,right,center 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),e.push(o.reverse?`flex-col-reverse`:``,o.nowrap?`flex-nowrap`:``,o.fill?`flex-fill`:``,o.mdHidden?`flex-md-hide`:``,o.smHidden?`flex-sm-hide`:``),e.filter(Boolean)}),l=i(()=>{let e=`${o.space}`;return!e||e===`0`?``:`gap:${/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}`}),u=i(()=>{let e=[],t=n.value;for(let[n,r]of[[`width`,`minWidth`],[`height`,`minHeight`]]){let i=o[n],s=parseFloat(`${o[r]}`);i!==!1&&(typeof i==`string`&&a.test(i)?e.push(`${n}:${i}`):i!==!0&&i!==``?e.push(`${n}:${Math.max(parseFloat(`${i}`),s)}px`):t&&e.push(t[n]>0?`${n}:${Math.max(t[n],s)}px`:`${n}:100%`))}for(let[t,n]of[[`width`,`maxWidth`],[`height`,`maxHeight`]]){let r=o[n];typeof r==`string`&&a.test(r)?e.push(`max-${t}:${r}`):parseFloat(`${r}`)>0&&e.push(`max-${t}:${parseFloat(`${r}`)}px`)}return e}),f=i(()=>o.width===!1||u.value.some(e=>e.startsWith(`width`))),m,h=()=>{let e=t?.$el?.parentNode||(t?.$parent?.$el instanceof Element?t?.$parent.$el:t?.$parent?.$el?.parentElement);if(!e){n.value={width:0,height:0};return}let r=window.getComputedStyle(e),i=e=>parseFloat(r.getPropertyValue(e))||0;return n.value={width:e.clientWidth-i(`padding-left`)-i(`padding-right`)-i(`border-left-width`)-i(`border-right-width`)-.01,height:e.clientHeight-i(`padding-top`)-i(`padding-bottom`)-i(`border-top-width`)-i(`border-bottom-width`)-.01},e};return S(()=>{v(()=>{if(o.width===!1&&o.height===!1)return;let e=h();e&&(m=new ResizeObserver(()=>h()),m.observe(e))})}),C(()=>{m?.disconnect()}),(e,t)=>B((w(),s(`section`,{class:y([`flex flex-col`,c.value]),style:x([u.value,l.value])},[d(M(fe),{vnodes:M(r)},null,8,[`vnodes`])],6)),[[I,f.value]])}}),[[`__scopeId`,`data-v-6641cdee`]]),me=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{fill:{default:!1,type:Boolean},space:{default:0,type:[Number,String]},reverse:{default:!1,type:Boolean},nowrap:{default:!1,type:Boolean},top:{default:!1,type:Boolean},middle:{default:!1,type:Boolean},bottom:{default:!1,type:Boolean},left:{default:!1,type:Boolean},right:{default:!1,type:Boolean},center:{default:!1,type:Boolean},around:{default:!1,type:Boolean},evenly:{default:!1,type:Boolean},between:{default:!1,type:Boolean},mdHidden:{default:!1,type:Boolean},smHidden:{default:!1,type:Boolean},width:{type:[Number,String,Boolean],default:!1},minWidth:{type:[Number,String],default:0},maxWidth:{type:[Number,String],default:0},height:{type:[Number,String,Boolean],default:!1},minHeight:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:0}},setup(e){let t=p()?.proxy,n=T(null),r=de(),a=/^\d+(\.\d+)?[a-z%]+$/i,o=e,c=i(()=>{let e=[],t=[{class:`flex-left`,value:o.left},{class:`flex-right`,value:o.right},{class:`flex-center`,value:o.center},{class:`flex-around`,value:o.around},{class:`flex-evenly`,value:o.evenly},{class:`flex-between`,value:o.between}].filter(e=>e.value==1),n=[{class:`flex-top`,value:o.top},{class:`flex-middle`,value:o.middle},{class:`flex-bottom`,value:o.bottom}].filter(e=>e.value==1);return t.length>1&&console.warn(`[ flex-row ] 中 left,right,center,around,evenly,between 只能有一个,已取第一个 ${t[0].class}`),t[0]?.class&&e.push(t[0].class),n.length>1&&console.warn(`[ flex-row ] 中 top,middle,bottom 只能有一个,已取第一个 ${n[0].class}`),n[0]?.class&&e.push(n[0].class),e.push(o.reverse?`flex-row-reverse`:``,o.nowrap?`flex-nowrap`:``,o.fill?`flex-fill`:``,o.mdHidden?`flex-md-hide`:``,o.smHidden?`flex-sm-hide`:``),e.filter(Boolean)}),l=i(()=>{let e=`${o.space}`;return!e||e===`0`?``:`gap:${/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}`}),u=i(()=>{let e=[],t=n.value;for(let[n,r]of[[`width`,`minWidth`],[`height`,`minHeight`]]){let i=o[n],s=parseFloat(`${o[r]}`);i!==!1&&(typeof i==`string`&&a.test(i)?e.push(`${n}:${i}`):i!==!0&&i!==``?e.push(`${n}:${Math.max(parseFloat(`${i}`),s)}px`):t&&e.push(t[n]>0?`${n}:${Math.max(t[n],s)}px`:`${n}:100%`))}for(let[t,n]of[[`width`,`maxWidth`],[`height`,`maxHeight`]]){let r=o[n];typeof r==`string`&&a.test(r)?e.push(`max-${t}:${r}`):parseFloat(`${r}`)>0&&e.push(`max-${t}:${parseFloat(`${r}`)}px`)}return e}),f=i(()=>o.width===!1||u.value.some(e=>e.startsWith(`width`))),m,h=()=>{let e=t?.$el?.parentNode||(t?.$parent?.$el instanceof Element?t?.$parent.$el:t?.$parent?.$el?.parentElement);if(!e){n.value={width:0,height:0};return}let r=window.getComputedStyle(e),i=e=>parseFloat(r.getPropertyValue(e))||0;return n.value={width:e.clientWidth-i(`padding-left`)-i(`padding-right`)-i(`border-left-width`)-i(`border-right-width`)-.01,height:e.clientHeight-i(`padding-top`)-i(`padding-bottom`)-i(`border-top-width`)-i(`border-bottom-width`)-.01},e};return S(()=>{v(()=>{if(o.width===!1&&o.height===!1)return;let e=h();e&&(m=new ResizeObserver(()=>h()),m.observe(e))})}),C(()=>{m?.disconnect()}),(e,t)=>B((w(),s(`section`,{class:y([`flex flex-row`,c.value]),style:x([u.value,l.value])},[d(M(fe),{vnodes:M(r)},null,8,[`vnodes`])],6)),[[I,f.value]])}}),[[`__scopeId`,`data-v-22d08fe9`]]),he={key:0,class:`page-main-header`},ge={class:`page-main-body`},_e={key:1,class:`page-main-footer`},ve=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{title:{type:String,default:``},fill:{type:Boolean,default:!1},plain:{type:Boolean,default:!1}},setup(e){let t=e;return(e,n)=>(w(),s(`section`,{class:y([`--layout-page-main`,{"page-main-fill":t.fill,"page-main-plain":t.plain}])},[t.title||e.$slots.header?(w(),s(`header`,he,[D(e.$slots,`header`,{},()=>[u(j(t.title),1)],!0)])):o(``,!0),c(`div`,ge,[D(e.$slots,`default`,{},void 0,!0)]),e.$slots.footer?(w(),s(`footer`,_e,[D(e.$slots,`footer`,{},void 0,!0)])):o(``,!0)],2))}}),[[`__scopeId`,`data-v-f69a3074`]]),K=/* @__PURE__ */ function(e){return e.LEFT=`left`,e.TOP=`top`,e.TOP_LEFT=`top-left`,e.DUAL_MENU=`dual-menu`,e}({}),q=/* @__PURE__ */ function(e){return e.DARK=`dark`,e.LIGHT=`light`,e.AUTO=`auto`,e}({}),J=/* @__PURE__ */ function(e){return e.DARK=`dark`,e.LIGHT=`light`,e.DESIGN=`design`,e}({}),ye=/* @__PURE__ */ function(e){return e.FULL=`100%`,e.BOXED=`1200px`,e}({}),be=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Se(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Se(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Se(e,n)?null:e}return null},Se=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function Ce(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var we=Object.freeze({left:0,top:0,width:16,height:16}),Te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ee=Object.freeze({...we,...Te}),De=Object.freeze({...Ee,body:``,hidden:!1});function Oe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ke(e,t){let n=Oe(e,t);for(let r in De)r in Te?r in e&&!(r in n)&&(n[r]=Te[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Ae(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=ke(r[e]||i[e],a)}return o(t),n.forEach(o),ke(e,a)}function je(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=Ce(e);for(let i in r){let a=r[i];a&&(t(i,Ae(e,i,a)),n.push(i))}return n}var Me={provider:``,aliases:{},not_found:{},...we};function Ne(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Pe(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!Ne(e,Me))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!Ne(t,De))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!Ne(t,De))return null}return t}var Fe=Object.create(null);function Ie(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:/* @__PURE__ */ new Set}}function Le(e,t){let n=Fe[e]||(Fe[e]=Object.create(null));return n[t]||(n[t]=Ie(e,t))}function Re(e,t){return Pe(t)?je(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function ze(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var Be=!1;function Ve(e){return typeof e==`boolean`&&(Be=e),Be}function He(e){let t=typeof e==`string`?xe(e,!0,Be):e;if(t){let e=Le(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ue(e,t){let n=xe(e,!0,Be);if(!n)return!1;let r=Le(n.provider,n.prefix);return t?ze(r,n.name,t):(r.missing.add(n.name),!0)}function We(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),Be&&!t&&!e.prefix){let t=!1;return Pe(e)&&(e.prefix=``,je(e,(e,n)=>{Ue(e,n)&&(t=!0)})),t}let n=e.prefix;return Se({prefix:n,name:`a`})?!!Re(Le(t,n),e):!1}var Ge=Object.freeze({width:null,height:null}),Ke=Object.freeze({...Ge,...Te}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Je=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ye(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(qe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Je.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Xe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Ze(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Qe(e,t,n){let r=Xe(e);return Ze(r.defs,t+r.content+n)}var $e=e=>e===`unset`||e===`undefined`||e===`none`;function et(e,t){let n={...Ee,...e},r={...Ke,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Qe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Ye(d,c/l)):(u=o===`auto`?c:o,d=s===null?Ye(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{$e(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var tt=/\sid="(\S+)"/g,nt=/* @__PURE__ */ new Map;function rt(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=nt.get(e)||0;return nt.set(e,t+1),t?`${e}${t}`:e}function it(e){let t=[],n;for(;n=tt.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=rt(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var at=Object.create(null);function ot(e,t){at[e]=t}function st(e){return at[e]||at[``]}function ct(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||2e3,timeout:e.timeout||1e4,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var lt=Object.create(null);lt[``]=ct({resources:[`https://api.iconify.design`,`https://api2.iconify.design`]});function ut(e,t){let n=ct(t);return n!==null&&(lt[e]=n,!0)}function dt(e){return lt[e]}var ft=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function pt(e,t){let n=dt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function mt(e){return e===404}var ht=(e,t,n)=>{let r=[],i=pt(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function gt(e){if(typeof e==`string`){let t=dt(e);if(t)return t.path}return`/`}var _t={prepare:ht,send:(e,t,n)=>{if(!ft){n(`abort`,424);return}let r=gt(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;ft(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(mt(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function vt(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function yt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||vt([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var bt=0;function xt(e,t,n){let r=bt++,i=vt.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function St(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=Le(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function Ct(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?xe(e,t,n):e;i&&r.push(i)}),r}var wt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tt(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function Et(e){let t={...wt,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=Tt(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function Dt(){}var Ot=Object.create(null);function kt(e){if(!Ot[e]){let t=dt(e);if(!t)return;Ot[e]={config:t,redundancy:Et(t)}}return Ot[e]}function At(e,t,n){let r,i;if(typeof e==`string`){let t=st(e);if(!t)return n(void 0,424),Dt;i=t.send;let a=kt(e);a&&(r=a.redundancy)}else{let t=ct(e);if(t){r=Et(t);let n=st(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),Dt):r.query(t,i,n)().abort}function jt(){}function Mt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,yt(e)}))}function Nt(e){let t=[],n=[];return e.forEach(e=>{(e.match(be)?t:n).push(e)}),{valid:t,invalid:n}}function Pt(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!Re(e,n).length){r();return}}catch(e){console.error(e)}r(),Mt(e)}function Ft(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function It(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){Ft(e.loadIcons(r,n,t),t=>{Pt(e,r,t)});return}if(i){r.forEach(r=>{Ft(i(r,n,t),t=>{Pt(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=Nt(r);if(o.length&&Pt(e,o,null),!a.length)return;let s=n.match(be)?st(t):null;s?s.prepare(t,n,a).forEach(n=>{At(t,n,t=>{Pt(e,n.icons,t)})}):Pt(e,a,null)}))}var Lt=(e,t)=>{let n=St(Ct(e,!0,Ve()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,jt)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(Le(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=Le(t,n),o=a.pendingIcons||=/* @__PURE__ */ new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&It(e,t)}),t?xt(t,n,i):jt};function Rt(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in Ge?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var zt=/[\s,]+/;function Bt(e,t){t.split(zt).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function Vt(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function Ht(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function Ut(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `).replace(/:/g,`%3A`).replace(/\//g,`%2F`)}function Wt(e){return`data:image/svg+xml,`+Ut(e)}function Gt(e){return`url("`+Wt(e)+`")`}var Kt={...Ke,inline:!1},qt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Jt={display:`inline-block`},Yt={backgroundColor:`currentColor`},Xt={backgroundColor:`transparent`},Zt={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},Qt={webkitMask:Yt,mask:Yt,background:Xt};for(let e in Qt){let t=Qt[e];for(let n in Zt)t[e+n]=Zt[n]}var $t={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;$t[e+`-flip`]=t,$t[e.slice(0,1)+`-flip`]=t,$t[e+`Flip`]=t});function en(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var tn=(e,t)=>{let n=Rt(Kt,t),r={...qt},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=Vt(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=$t[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):Kt[e]===void 0&&(r[e]=i)}}}typeof t.flip==`string`&&Bt(n,t.flip);let c=et(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=it(c.body),h(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=Ht(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Gt(m),width:en(l.width),height:en(l.height),...Jt,...p?Yt:Xt,...s},h(`span`,r)};if(Ve(!0),ot(``,_t),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!We(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;ut(e,r)||console.error(n)}catch{console.error(n)}}}}var nn={...Ee,body:``},rn=f((e,{emit:t})=>{let n=T(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=T(!!e.ssr),a=T(``),o=A(null);function s(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return a.value=``,{data:i};let o;if(typeof i!=`string`||(o=xe(i,!1,!0))===null)return null;let s=He(o);if(!s){let e=n.value;return e&&e.name===i||(s===null?n.value={name:i}:n.value={name:i,abort:Lt([o],c)}),null}r(),a.value!==i&&(a.value=i,v(()=>{t(`load`,i)}));let l=e.customise;if(l){s=Object.assign({},s);let e=l(s.body,o.name,o.prefix,o.provider);typeof e==`string`&&(s.body=e)}let u=[`iconify`];return o.prefix!==``&&u.push(`iconify--`+o.prefix),o.provider!==``&&u.push(`iconify--`+o.provider),{data:s,classes:u}}function c(){let e=s();e?e.data!==o.value?.data&&(o.value=e):o.value=null}return i.value?c():S(()=>{i.value=!0,c()}),L(()=>e.icon,c),C(r),()=>{let t=o.value;if(!t)return tn(nn,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),tn({...Ee,...t.data},n)}},{props:{icon:{type:[String,Object],required:!0},mode:{type:String},ssr:{type:Boolean},width:{type:[String,Number]},height:{type:[String,Number]},style:{type:[String,Object]},color:{type:String},inline:{type:Boolean},rotate:{type:[Number,String]},hFlip:{type:Boolean},horizontalFlip:{type:Boolean},vFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{type:String},id:{type:String},ariaHidden:{type:[Boolean,String],default:void 0},customise:{type:Function},title:{type:String}},emits:[`load`]}),Y=/* @__PURE__ */ f({inheritAttrs:!1,__name:`index`,props:{icon:{type:String,default:void 0}},setup(e){let t=N(),n=i(()=>({class:t.class||``,style:t.style||``}));return(t,r)=>e.icon?(w(),a(M(rn),_({key:0,icon:e.icon},n.value,{class:`iconify-svg inline`}),null,16,[`icon`])):o(``,!0)}}),an=/* @__PURE__ */ f({__name:`index`,props:{icon:{type:String,required:!0},circle:{type:Boolean,default:void 0}},setup(e){return(t,n)=>(w(),s(`div`,{class:y([`size-8.5 inline-flex flex-cc c-p text-g-600 dark:text-g-800 text-xl rounded tad-300 hover:bg-hover-color`,{"rounded-full":e.circle}])},[d(Y,{icon:e.icon},null,8,[`icon`]),D(t.$slots,`default`)],2))}}),on=`data:image/webp;base64,UklGRqwJAABXRUJQVlA4WAoAAAAQAAAAxwAAxwAAQUxQSKkEAAABoAP/v9pGekrW4ywHijhwtIwVQ8Xkfqk7pmWqPJ6nHC5Vx8y83KW8bhky6Za81MW7ex7PgtZ6v4PEfu///vof30XEBKj//f9f6DsWrMuty45LSW/TRfRfPJKWXOsFVBtl5dYRofroGak1llCrmSe0c6g9Sns0dHdv362+vlLvvtGJk4XNo74EM0qoNn58aKKkjRXM86PlDGq9sy1JvoDdUuBDFrXGMdCdSoxxsL3Tg2dgt29oUlyAsWSayWVh+04mGTbB/lFqoyJrKKSSoNE4wEpawT04fCMJDgHGWCulSL0Ll/Fo/kbB7U5KjSUnOM1eUHSETkI5uI07uNsB1xcCOrcdYSdzjcYZ5pNpimDcFHgLjoJgisoyA8cxb7MAGGf7qHTBeT1rMUiOI/KjuybO9oLmOSrGwLiZwdgoQwRricDAcTtjx0A1aiHx/m+Mk4CvlaB7iMQywJViewgoz6LQblxd4+sIqUIdAXUbjnNsdYKwATZRyDl6kOGq7gIlANEwAg8bN2cU1ytB/WjgTh3pz1gazVVDTM7MIpA2/Vh+X3F9CPRLBNQCBxdTXI2Dj+8SUK/aG6m4LsbkDIBxBFTO2Ck9rLjeCT/PUVCbjLFwIa24br7nCbIU1Kjrte0cpNg+BF9LDRSUWl+AqaK0r1HxPQn+7qOhgqlPHrtnTGyOPjmhUTE+6HbsDybRSMwcfC6kBNEUe4XHBXEMnsthAXw/J4bbQOyXmSeE9+F/MRBBKzjcIYLzLKBTAGvB44XkazE8GGQT7xNwWWygMHLy5ICtDvD5rrsZ1wA8eDxg6jwAwwRGu8pW0O82nh4HDNgs1LkZcQcDZjiqj8DqSjdvYOBrHB00vJi0i3Godh0/kwyY3efiVlV3RnATlMHuLHs7Uf23ATN58FustzUZtU7npbXMELos1Z2u6Q4vB8HyEDszUPtuTuaD56NWUrCZ4aOhDMMS1trotnKaj1cNV8UhtY2rWMFSLkaA75219cLunQYmjjGG5lrWwfb7PMwH54UahlWsoZODVPQbwxVWVncM9gt1DLwP5tPVzILLx/1rNdx9UUWq4OTBUO9ugP3RA22D227fngH/9wYYCVScYKJfzeUEwKv9BMdQgdtbfu1FEsaZ3yyF+20+jYgSAYd+UyGADn/qbiAh5yv1Pih+6896JOXt9DjQnOHLkCgxkOsl0pfy5CDk+YYf0yDRjBdlkfT68CZkupReJhLKHXpHINVvqc2CXCfSSpUFcy0g9Sok+wylVoi2NIJQj2zQTWctpDuRSjoST6GeyCeQ7zoarRBwnCZxQ0LoDgg8DxlPd9dYFtKtwNknkPL7rkZBzhk3QY+gTruZCkkvc3JdVKUmBy2Q9U4HXcJCvb0eab1hLXVDWgVrTZG04o7fC5j+u2GZrWHl3wuqR1zTrb0vrg5rk6VVUPZvCOsNB9NkdSftQPWI6lvlMh0Jqq/BiXo4ElMloxx3loV0Z6Jy3nJeRIUmRXFTWTylnYGiOWRBj2iuLW1ShINB2XwYhlprHYZah3mtQ119qLUOwzDUoQ516DCv+w1DrfNaa53X1ee11jqv82EX3W0j69X//v/f/3/hBQBWUDgg3AQAADAkAJ0BKsgAyAA+0WaqUCglo6amFgo5ABoJQ4zpQNNNiIBltyJ/r9au8Bxy3S8uKAt4f+q86jzAOcf/9PQT5yPos3kf0K+mByFfrH+AFNFXMOwGWfEhEAaw/764BBN5bC4y0XGWi4y0XGWi4yl2QNiQ+6rjbckRVbRWyfyioLgolNlbERnDuMCtVqkPr/5I/lsWoeBbdEgkhEDA5J/LQh/A3e1FXszyZLIG5TBVQl/jlFeF5cT5r9VnoUnzn6rWrLlZ+Od7rVIAxbNWHHRccwwVbRCTy2oSKDZUluyL5OEiTglFqrwddz+KMqwXnjsekENrJieip7KQVuuK+7nG1Wg26/3k4l+LMRXhJxM+ZtN9S9G6bjxjb/dDVF1qfZXxcflNZMDrJgdZJAAA/pO6AAAAAAErtVQBL3Uqe/yL24dJTcEnUka/cX9me5ou3ugIE3hjbvg47ku32SiODOxU35OrjLemenwmg3bbGqbneID+4RNeztHmO0wMeYxoVjdDGlpBXh+sk6g5ZnJeWlAboNrQ+2wVrhOq1vVqenruRVn8egJ72oSJB6NmUXPfzJv31pRgtPldTHSvKIVFXL/ECQN17ONway4UhVNYrJ3rabPG6qEy0C5EqfFKyw+4ovBz3xuBhkhgql7dIZ7cUHW1VkC9cJYsweaMeUDr4vgRyEXJ3fl4LZjHtNIjMcWA5Ulhcle/Tzf4wrpK6Uh9HhX116BQA7uRVsBAwMTt/CqkBPw90zTedop1mJ6CRbUlyqeFr+ONfY6qXe3KfcAALNV2bfCl8t7Iec3p4+L1R3/Ab7JE6XCGoABI3aVq/HwK2SDOe8+Oep+ORabtvhH3utlaOhlUw6+eeOJjuPpBauJ+CS476bKXD7P1u5fc2UKmFak824+Z8WkRJUnzOMFA3sT+fyeSVlv7QYe9xq3sUqqjmNTI9wSdrm/Qu9WBI9vgCO/VnoNNK4INOdwjiXEb7PW3wUXAMHj4P3SnGHSauVNCNYj+hlj93qcklodDOlAxG68U3gokfB7NTbBHev+02ydeVg1/Bfe3vCt1dj5GGcs1tWJTGOkYHm70uucOWNRXukdNnbzXKCF88+21/g+yPJ/8mCP9oH6ZpKY220U1fA6yzuqaTObScdiZmOn7ZCeusOlA3Ftyh/LtnSNcBwLzrQ3bCjXknXs3Fm4HXTxLVSGFRJnKqL+giozrgoqVFZUPUAPsoWVi2eDR8Z8JaVdgW1p/kcrZG1SemGRtCGcIMbDsrRP3iDiV8a2vxlayAxbI+0lLHkCM0pjccAmqj8sBjVm8PNd3YKHrAnFYiKJfHfP2BtkRH+W9Zz8/BDgTu1l850a9LMoWKskDyEtEuxrgzEgRUEpmPn/Esb4qJiMehtQNvFG69oBpr+Bmy1QvH+h5zlV62sZzMfs+UkkocwOS76AlGyJBqwdxr2XaCOxyz6o2cJFrU+LW4HS+cU3hbE0rLxAcAAb6VyYCXhkbni9Z92AAPnZbIhRIG/e0Cg5ZvQrBa59Xjn7u+4E+1Y877AbudyZyOY0bOtzg8ByALuOdjoBLjvfMV7Z8CLFxSC1Y7wHGe/9CzUGqAHeZnBqLivyKsuP41TciOqz/xqx+3ufN02q1I2/zeknKm6sUfhScft+rGkG/c2YWuAAActAAAAAA`,X=W(`layout-runtime`,{state:()=>({title:`后台管理`,logo:on,watermark:`watermark`,homePath:``,showSetting:!1,settingVisible:!1}),persist:void 0}),sn=W(`layout-worktab`,{state:()=>({tabs:[],activeTab:``}),actions:{openTab(e){if(e.path){if(!this.tabs.find(t=>t.path===e.path)){if(e.fixedTab){let t=this.tabs.findIndex(e=>!e.fixedTab);this.tabs.splice(t===-1?this.tabs.length:t,0,e)}else this.tabs.push(e)}this.activeTab=e.path}},removeTab(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1||this.tabs[t].fixedTab)return null;this.tabs.splice(t,1);let n=X().homePath;if(this.tabs.length===0)return e===n?null:n;if(this.activeTab===e){let e=this.tabs[Math.min(t,this.tabs.length-1)];return this.activeTab=e.path,e.path}return null},removeLeft(e){let t=this.tabs.findIndex(t=>t.path===e);if(t<=0)return null;let n=this.tabs.slice(0,t).filter(e=>!e.fixedTab);return n.length===0?null:(this.tabs=this.tabs.filter((e,n)=>n>=t||e.fixedTab),n.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeRight(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1||t===this.tabs.length-1)return null;let n=this.tabs.slice(t+1).filter(e=>!e.fixedTab);return n.length===0?null:(this.tabs=this.tabs.filter((e,n)=>n<=t||e.fixedTab),n.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeOthers(e){if(!this.tabs.find(t=>t.path===e))return null;let t=this.tabs.filter(t=>t.path!==e&&!t.fixedTab);return t.length===0?null:(this.tabs=this.tabs.filter(t=>t.path===e||t.fixedTab),t.some(e=>e.path===this.activeTab)?(this.activeTab=e,e):null)},removeAll(){let e=this.tabs.filter(e=>!e.fixedTab);return e.length===0?null:(this.tabs=this.tabs.filter(e=>e.fixedTab),this.tabs.length===0?X().homePath:e.some(e=>e.path===this.activeTab)?(this.activeTab=this.tabs[0].path,this.tabs[0].path):null)},toggleFixedTab(e){let t=this.tabs.findIndex(t=>t.path===e);if(t===-1)return;let n={...this.tabs[t],fixedTab:!this.tabs[t].fixedTab};if(this.tabs.splice(t,1),n.fixedTab){let e=this.tabs.findIndex(e=>!e.fixedTab);this.tabs.splice(e===-1?this.tabs.length:e,0,n)}else{let e=this.tabs.filter(e=>e.fixedTab).length;this.tabs.splice(e,0,n)}}}}),cn=W(`layout-menu`,{state:()=>({menulist:[],menumaps:{}}),actions:{setRoutes(e){let{menulist:t,menumaps:n}=un(e);this.menulist=t,this.menumaps=n},resolveMenu(e){let t=Object.values(this.menumaps);return t.find(t=>t.path===e)??t.filter(t=>e.startsWith(`${t.path}/`)).sort((e,t)=>t.path.length-e.path.length)[0]}}}),ln=/* @__PURE__ */ new Set,un=(e,t,n={})=>{t||ln.clear();let r=[];for(let[i,a]of Object.entries(Array.isArray(e)?e:[e]))a.meta=a.meta||{},a.meta.key=t?.meta?.key?`${t.meta?.key}-${i}`:`menu-${i}`,a.meta.parentKey=t?.meta?.key,a.meta?.isHidden||(a.name&&typeof a.name==`string`&&(ln.has(a.name)?console.warn(`[anvero-layout] 路由 name 重复:"${a.name}"(path: ${a.path}, title: ${a.meta?.title}),KeepAlive 缓存互串 / 路由覆盖,请检查宿主 routes.ts`):ln.add(a.name)),/(http|https):\/\/\S*/.test(a?.path)&&t?.path&&a?.path?.substring(0,1)!=`/`&&(a.path=`${t.path}-${a.path}`),/(http|https):\/\/\S*/.test(a?.path)&&a?.path&&(a.path=`/${a.path}`.replace(/(\/){2,}/g,`/`)),!a.path&&t&&(a.path=t.path),a.path&&t&&!a.path.startsWith(`/`)&&(a.path=`${t.path}/${a.path}`.replace(/(\/){2,}/g,`/`)),a?.children?.length&&(a.children=un(a.children,a,n)?.menulist||[]),(a.path||a?.children?.length)&&(n[a.meta.key]=a,r.push(a)));return{menulist:r,menumaps:n}},Z={themeStyles:{light:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vX////29vj9/f34+Pox8uq3AAABTElEQVRo3u2VwW3EMAwEhcs1QKuBE5QCYlfg9N9UcjHyMUQQtlaASOz89jWwzCUTIYQQQgghhJCUPleBo9ueYoDVrTIAwMdBdEUMsLpvGQHg10F0ojBat6VU9YDWbe9Q9YDV5dc7PFY9QHXLkYoeoLqvI33oAap7HemhB6juP+qBull19qh4LoJdc89LzFzRvg/QH3GvOXXUzahLWKhrQB111P0SS1elj+2S7im97Fd0RXpZruhW6SVf0Uk/E+sAjznxqACKMHHNG0TamWeoo24OXe1sccJe8x2qK/YGtoAeoAzViYlnnf2YnkfFLoLnmjeItDPPUEfdHLoqd9igS8xmR65omwV5gGwy9LzauNDdfkwXo3K7CC5q3iDSzjxDHXVz6GpHj4FLbB+iKx07GHmA8hCdqETQ6Y8ZYVT0IkSoeYNIO/MMddQN1v0AFy9OBRBx85QAAAAASUVORK5CYII=`,dark:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAG1BMVEUnJyo/P0ZSUlxKSlNOTlc5OT8vLzJDQ0s0NDkX0J24AAABYElEQVRo3u2XMWrEMBBFVW47LM4BHEPqTZPeN3CzvQtD6uQCzs1j4lRGw2DPF2jEf900eqxW/w9OhBBCCCGEEEJS+pwEjm67iQFWN0kBHD8OqpvFAKv7kRI4/jqoThx4dN/j8KEPaN2933joA1g39huDPmB19/6Phz5AdV/7oW/6ANW974e+6gNUN+6HDvoA1fX/6ENknX2ZkZ+KHYTIMTdLLHZFGwso+nqljjrqJGGhLgN11FG30ZZuER/PU7qbeFnP6Gbx8nJGN4mX7oxO/FSsA1xmxU8FEISKY56hpc48Qh11degWZ4oTdpuvUN1sN7AFdAF1UJ2YRNbZlxn5qdhBiBzzDC115hHqqKtDt8gVntASs1mxFe1qbvznZAddrzYhdJcvM8RTuRyEEDHP0FJnHqGOujp0iyPHwBJbi+hmRwcjF1BXRCcqLej0y2zhqehBaCHmGVrqzCPUUVdY9wter4K58MOVTQAAAABJRU5ErkJggg==`,system:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAJFBMVEXy8vUREREzMzP////4+Pr19fgcHBz8/P0rKysyMjIwMDAjIyPGISqaAAABlElEQVRo3u3XsUoEMRAGYItdrNMc1hZhY5t7AMHCduEE67MSKyG+gM09iIX9vqFeooRwhGGTIZfk/umm+iA3/8ztVWKJtAIHDhw4cODAgQMHDhy4Orkno+N1m1ZxbdC6JGeKcoMuyu3Kcg9lOVOW02fiPubx8aSx3EGIV25u639I31juW/zWGzM3H5sxaBx3tz9ymy9Wbuvn1DeWk8LWCyv37rrroLHcp+NuWLl71w1BY7m94zas3Oy6MWgsJ/6Klftvg6Ybjn7MlkeFDkLLMaeXWNMrmjhArZ9XcODAaebPSXDgwIG7BO45b0WrwypuyL4Iyxpul83JNZzJ5qY1nM7mVMUcw2NWPCoMQag45p3vTHDg6uQiMfcppor3mi8kxLqiJStnKG5i5TTFqZY5+jFbHhU6CC3HvPOdCQ5cnVzCn/Yw/UW+zRfOFU2X5DxAdE2c55Uu1QSX/JhNjEpyEJqIeec7Exy4OrnTmIc5LvRtvpAA64qWJMB6gCYSYD2vqgcu/pg9jEo8CD3EvPOdCQ5cYe4H2qWIxMTt67gAAAAASUVORK5CYII=`},menuLayouts:{vertical:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX6+vrd3d339/jx8fLu7vHj4+RfzH3aAAABXUlEQVRo3u2bwW3DMAxFCdgdgOAGBpqztIEPGqDoCNl/iDZBgVhpAsogJdvyfzeeHv4hMBlSBAAAAGR8XKeMyxfV5Ht64pNqcn3WXagm0z9oAXRrdbwAui50ka3ICt3A0Uwo10VhM1KuY452yn/mImxH0yEd0iHdlukii51y3eCQLpTrKIqZHX9eb0AH3Xl0fU9Ap9QpM4K46vQZIbjqorA9nmevQjqevQrSbZ+OF7im03VI10M6fUbw1OkzQvDU6TPCsT+vN6Bz040pzUrhqBvTL7NS+OnSHaVw043pzvy+OLIu/fG+gK7FHkHW6wZ2WCA02iOIa6+i49qr6CBdi3Q51dPlIF0P6Wx7BHrQYI8Q6EGDPcIR2loi6Hb+1zd00EGn7BFMiKqrfmuU43xrhJsHpEO6U6bjBfXS6XsEO5rO+dZI0+HWCLr9jCQd60oedxz36cqLhzkAAAC25QfLWMrPbjC6qQAAAABJRU5ErkJggg==`,horizontal:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAGFBMVEXy8vX4+Pjd3d36+vrx8fL09Pbu7vHj4+RNYWVgAAABPElEQVRo3u3XMUoEQRCFYQPHvCi8wAQaF7K5wRzAvoF4BO8fKI3giF3gMPPKWfi/rDfYx6MYuusGALDZ3fus9fi6jnub1R7Wcdpyvd46btYjjrgriXtamw/8iTjiiPt0is/8B+KIO0NcwcOv+Flb/WgHAOCXyWReBnHNQuV+EGduKjGK07WzQZzL2rkP27mI1baL2tnVtvPa2Vltu6idnZW289rZmQ3bNVG7iLgML6CQ6BcQvt0uy3N+EKT1f00Px1q6/CAo10tkh2uOW77kB+KI+2Pc+T+ESbHq5JpJVp1OtAHFhjgTrDo5d8mq02leYlbbLmpnV9vOa2dnte2idna17bx2drapXXPBqpObjFUHAPAPJsW2k2t2wLaj24BiZ5wJtp2c0452tKPdjnb7N6DL3gvIt2DbAQAg9wFGfUhczPxdQQAAAABJRU5ErkJggg==`,mixed:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX6+vrd3d3x8fL4+Pjf39/l5eb3qVelAAABVUlEQVRo3u2bUQqCQBRFB2wDA65AqG9h6L+2UNACgva/hUSC1FfdzPto1Hv+xvdxeILvPoQJQgghRlPcqh6XOniyrwacgyfXoW5nmp6AeV+nYXVrmp6AeV+2+myaxA7rThWPLdZVTP6qix2kW4huUMBP7CPpPHV9pFuIbhGJIN2ydP6rkd/iB0a041prdfylHejYSNci3ThdH+mky1x3jATKb3WbSOGAdaY5QntIF0msTtctSyeddA3sIZbniCYFUK7xavDXFSnV4EDUFamhBgeeLrWAA01XpJb6/WHOuvTg/UG6zyNaOqKO+iFg3cQAKn/UbUh5Sl0ecHveq9G4z1w66aRbjc5tiBl8R7RhUgDl9+tbOumky+hXQAjSSUcLIExJjVfMgbk8YEqsi0zWpOtWpJNOugaXIZbdiGYGUIbxygRcXTG4XsyxzPba0YtLVUIIkT93VIcamQMOVTAAAAAASUVORK5CYII=`,dualColumn:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAFVBMVEXy8vX4+Pjd3d36+vru7u7x8fLj4+QsU3hHAAABqElEQVRo3u2bUU6EMBRFO4n+c/N2QIzfEjdgjAvghw24/0VYh0xqqqFyaV+AueevXydnmikQHkEIIdqAxHX98NnfeH6rbrsg0YXIe594qq4DsrwYl/La6/qfSNdABxpGd4GRoPul+5hJuteZpIOBZACjw0BijM7YOoNRdcYBz7rrHnjuHeBZZxHHvUOE+JuzdUOE0LF751tn31B1xgCy7oKB3boX7gLEbt0RLq/SSbd0REsnnXSRc/zN96fDMoyOf75DV1cHwxKGyrpCXWWdFepMdaoj6tgjmqrjdaqrX1d+vrOuri4U6vZ886B7FemkW9ZNY7jxOGWLFrppTIJ80UI3hZkpki2a6MbUky9OoJvSz5cvKh/RSYf1sDruDRc6XgfDWgwbdETdBp0RdcbpRt+60bcusHXkEc3WcRcgz7q4pusoneoKdR5vuKzjdYGoO8CNn3Q7f5yUTjrpTn+q3L0O/2KXE4wF3cYJRkaHgcQI3aYJRqrOOOBbt2YKThOMy8C3bvCdPvWtM9+9A1FXaYKxrNMEo3R70v35Yc5RPzsqfFQlhBDCny+6r+IVe0J7SwAAAABJRU5ErkJggg==`},menuStyles:{design:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vX////5+fnx8fHd3d0ah087AAAAyklEQVRo3u3Z0Q2AIAxFUeIGbmBYgRXcfyYXaEh8PhXKvQucvzaUsncq9uDg4ODg4OAK3G3uDIJLxFU1idtk7lC4qvcrFwcHBwfn5YwjWuCcC6gF+dYrHBzcAE8SOEO2ES1x+gI67FztBgf3BteC4ODm4KQRrXOlx82/XuHg4OBG5VrQx2cc45FK4aoeHFye4zAcXPp/hNzbPDeX+9IOBzcm5x/Rj7lNXzofrFc4OLiluRa0Fmcc0f4j1UjrFW7eJwkcHBwcHBycswty2jT2B1pWhwAAAABJRU5ErkJggg==`,dark:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAD1BMVEXy8vUnJyr5+fk/P0bz8/YkmYUBAAAA0ElEQVRo3u3ZwQ3EMAhEUR/SwHZgWenADVjbf1FpwCIyIg6QPw28GyOg/IQU88DBwcHBwcEVuGWuTwKXhzuaNkPD/dXcqeGaPq9y88DBwcHZcnYjui5wFgUUoF7h4NJzuTcguEOewlLMC+g055oYOLgnuD4JHFwMThzRde+RakSvVzg4ODi3HH+EdhO/fwS4uJzD4zAcXPo/Qu42z83lvrTDwfnk7Ef0ePSPIO8FG+oVDg7u01yf5Fvc2oiue49Uw1G9wsVdSeDg4ODg4OAscwFb7y6GSsIW5AAAAABJRU5ErkJggg==`,light:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACSBAMAAADcJrmuAAAAElBMVEXy8vX////5+fnx8fHd3d1VVVVl+HYBAAAAzklEQVRo3u3ZYQ2FMAxF4QUHzwGZhVl4FvBvBQE0S7hcYCvnGPj+tVlXfp2KPTg4ODg4OLgCd5rb/sfgEnFVTeIWmVsVruq9ysXBwcHBeTnjiBY45wJqQb71CgcHN8CTBM6QbURLnL6AVjtXu8HB3cG1IDi4OThpROtc6XHzr1c4ODi4UbkW9PAZx3ikUriqBweX5zgMB5f+HyH3Ns/N5b60w8GNyflH9GVu0ZfOA+sVDg7u01wL+hZnHNH+I9VI6xVu3icJHBwcHBwcnLMdqYI1ftKrSesAAAAASUVORK5CYII=`}},dn={systemThemeStyles:{[q.LIGHT]:{className:``},[q.DARK]:{className:q.DARK}},settingThemeList:[{name:`Light`,theme:q.LIGHT,color:[`#fff`,`#fff`],leftLineColor:`#EDEEF0`,rightLineColor:`#EDEEF0`,img:Z.themeStyles.light},{name:`Dark`,theme:q.DARK,color:[`#22252A`],leftLineColor:`#3F4257`,rightLineColor:`#3F4257`,img:Z.themeStyles.dark},{name:`System`,theme:q.AUTO,color:[`#fff`,`#22252A`],leftLineColor:`#EDEEF0`,rightLineColor:`#3F4257`,img:Z.themeStyles.system}],menuLayoutList:[{name:`Left`,value:K.LEFT,img:Z.menuLayouts.vertical},{name:`Top`,value:K.TOP,img:Z.menuLayouts.horizontal},{name:`Mixed`,value:K.TOP_LEFT,img:Z.menuLayouts.mixed},{name:`Dual Column`,value:K.DUAL_MENU,img:Z.menuLayouts.dualColumn}],themeList:[{theme:J.DESIGN,background:`#FFFFFF`,systemNameColor:`var(--layout-gray-800)`,iconColor:`#6B6B6B`,textColor:`#29343D`,img:Z.menuStyles.design},{theme:J.DARK,background:`#191A23`,systemNameColor:`#D9DADB`,iconColor:`#BABBBD`,textColor:`#BABBBD`,img:Z.menuStyles.dark},{theme:J.LIGHT,background:`#ffffff`,systemNameColor:`var(--layout-gray-800)`,iconColor:`#6B6B6B`,textColor:`#29343D`,img:Z.menuStyles.light}],darkMenuStyles:[{theme:J.DARK,background:`var(--default-box-color)`,systemNameColor:`#DDDDDD`,iconColor:`#BABBBD`,textColor:`rgba(#FFFFFF, 0.7)`}],systemMainColor:[`#5D87FF`,`#B48DF3`,`#1D84FF`,`#60C041`,`#38C0FC`,`#F9901F`,`#FF80C8`]},Q=Object.freeze(dn),fn={menuType:K.LEFT,menuOpenWidth:230,menuOpen:!0,dualMenuShowText:!1,systemThemeType:q.AUTO,systemThemeMode:q.AUTO,menuThemeType:J.DESIGN,systemThemeColor:dn.systemMainColor[0],showMenuButton:!0,showRefreshButton:!0,showCrumbs:!0,showWorkTab:!0,watermarkVisible:!1,uniqueOpened:!0,colorWeak:!1,refresh:!1,boxBorderMode:!0,pageTransition:`slide-left`,tabStyle:`tab-default`,customRadius:`0.75`,containerWidth:ye.FULL},$=W(`layout-setting`,{state:()=>({...fn}),getters:{isDark:e=>e.systemThemeType===q.DARK,getMenuTheme:e=>{let t=Q.themeList.filter(t=>t.theme===e.menuThemeType);return e.systemThemeType===q.DARK?Q.darkMenuStyles[0]:t[0]},getMenuOpenWidth:e=>e.menuOpenWidth+`px`},persist:{key:`layout-setting`,storage:localStorage}}),pn={class:`flex-cc`},mn=[`src`],hn=/* @__PURE__ */ f({__name:`index`,props:{size:{type:[Number,String],default:36}},setup(e){let t=e,n=X(),r=i(()=>({width:`${t.size}px`}));return(e,t)=>(w(),s(`div`,pn,[c(`img`,{style:x(r.value),src:M(n).logo,alt:`logo`,class:`w-full h-full`},null,12,mn)]))}}),gn=e=>e?e.startsWith(`menus.`)&&e.split(`.`).pop()||e:``,_n=e=>!e.path||!e.path.trim()?!1:!e.meta?.isHidden||e.meta?.isFullPage===!0,vn=e=>{window.open(e,`_blank`)},yn=(e,t,n=!1)=>{let{link:r,isIframe:i}=t.meta??{};if(r&&!i)return vn(r);if(!n||!t.children?.length)return e.push(t.path);let a=e=>{for(let t of e)if(_n(t))return t.children?.length&&a(t.children)||t},o=a(t.children);if(!o)return e.push(t.path);if(o.meta?.link)return vn(o.meta.link);e.push(o.path)},bn={class:`menu-icon flex-cc`},xn={class:`menu-name`},Sn={key:0,class:`layout-badge`,style:{right:`10px`}},Cn={class:`menu-icon flex-cc`},wn={class:`layout-badge`,style:{right:`5px`}},Tn={class:`menu-name`},En={key:0,class:`layout-badge`},Dn={key:1,class:`layout-text-badge`},On=/* @__PURE__ */ f({name:`PageLayoutMenuItem`,__name:`index`,props:{list:{type:Array,default:()=>[]},theme:{type:Object,default:()=>({})},level:{type:Number,default:0}},emits:[`close`],setup(t,{emit:n}){let r=t,l=n,u=$(),f=U(),p=i(()=>_(r.list)),m=e=>{h(),yn(f,e)},h=()=>{l(`close`)},g=e=>{let t=e.meta;return!!(t&&!t.isHidden&&(e.path&&e.path.trim()||t.link||t.isIframe===!0)&&(e.component||t.link||t.isIframe===!0))},_=e=>e.filter(e=>!e.meta?.isHidden).map(e=>e.children?{...e,children:_(e.children)}:e).filter(e=>(e.children?.length??0)>0||g(e)),v=e=>!(!e.meta?.link||e.meta?.isIframe),y=(e,t)=>`${e.path||e.meta?.title||`menu`}-${r.level}-${t}`;return(n,r)=>{let i=O(`ElSubMenu`),l=O(`ElMenuItem`);return w(!0),s(e,null,E(p.value,(n,r)=>(w(),s(e,{key:y(n,r)},[n.children?.length?(w(),a(i,{key:0,index:n.path||n.meta?.title||``,level:t.level},{title:z(()=>[c(`div`,bn,[d(Y,{icon:n.meta?.icon,color:t.theme?.iconColor,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`])]),c(`span`,xn,j(M(gn)(n.meta?.title??``)),1),n.meta?.isShowBadge?(w(),s(`div`,Sn)):o(``,!0)]),default:z(()=>[d(On,{list:n.children,level:t.level+1,theme:t.theme,onClose:h},null,8,[`list`,`level`,`theme`])]),_:2},1032,[`index`,`level`])):(w(),a(l,{key:1,index:v(n)?void 0:n.path||n.meta?.title||``,"level-item":t.level+1,onClick:e=>m(n)},{title:z(()=>[c(`span`,Tn,j(M(gn)(n.meta?.title??``)),1),n.meta?.isShowBadge?(w(),s(`div`,En)):o(``,!0),n.meta?.textBadge&&(t.level>0||M(u).menuOpen)?(w(),s(`div`,Dn,j(n.meta?.textBadge),1)):o(``,!0)]),default:z(()=>[c(`div`,Cn,[d(Y,{icon:n.meta?.icon,color:t.theme?.iconColor,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`])]),B(c(`div`,wn,null,512),[[I,n.meta?.isShowBadge&&t.level===0&&!M(u).menuOpen]])]),_:2},1032,[`index`,`level-item`,`onClick`]))],64))),128)}}}),kn=()=>{let e=H(),t=U(),n=$(),r=cn(),a=i(()=>n.menuType===K.TOP_LEFT),o=i(()=>n.menuType===K.LEFT||a.value),s=i(()=>n.menuType===K.DUAL_MENU),c=i(()=>s.value&&!n.menuOpen),l=i(()=>String(e.meta.activePath||e.path)),u=i(()=>{let e=r.resolveMenu(l.value);for(;e?.meta?.parentKey;)e=r.menumaps[e.meta.parentKey];return e});return{router:t,showLeftMenu:o,isDualMenu:s,isDualMenuCollapsed:c,routerPath:l,activeTopMenu:u,firstLevelMenus:i(()=>r.menulist),menuList:i(()=>!a.value&&!s.value?r.menulist:u.value?.children??[]),scrollbarStyle:i(()=>c.value?{position:`absolute`,top:`60px`,right:0,left:0,height:`calc(100% - 10px)`,transform:`translateY(-50px)`,transition:`transform 0.3s ease`}:{transform:`translateY(0)`,height:`calc(100% - 60px)`,transition:`transform 0.3s ease`}),navigateToHome:()=>{t.push(X().homePath)}}},An=()=>{let e=$(),t=T(!1),n,r=n=>{t.value=n.matches,n.matches&&(e.menuOpen=!1)};return S(()=>{n=window.matchMedia(`(max-width: 800px)`),r({matches:n.matches}),n.addEventListener(`change`,r)}),C(()=>{n?.removeEventListener(`change`,r)}),{isMobile:t}},jn=e=>{let t=$(),n=T(!1),{start:r}=ae(()=>n.value=!1,350,{immediate:!1});return L(()=>t.menuOpen,t=>{e.value?t?n.value=!0:r():n.value=!1}),{showMobileModal:n,toggleMenuVisibility:()=>{t.menuOpen=!t.menuOpen,e.value&&!t.menuOpen&&(n.value=!0)},handleMenuClose:()=>{e.value&&(t.menuOpen=!1,r())}}},Mn=[`onClick`],Nn={key:0,class:`text-md text-g-700`},Pn={key:1,class:`layout-badge layout-badge-dual`},Fn=[`title`],In=`64px`,Ln=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`dual-menu`,setup(t){let n=$(),r=X(),{isDualMenu:i,isDualMenuCollapsed:l,activeTopMenu:u,firstLevelMenus:f,menuList:p,routerPath:m,scrollbarStyle:h,navigateToHome:g,router:_}=kn(),{isMobile:v}=An(),{showMobileModal:b,toggleMenuVisibility:S,handleMenuClose:C}=jn(v),T=e=>{yn(_,e,!0)},D=()=>{n.dualMenuShowText=!n.dualMenuShowText};return(t,_)=>{let v=O(`ElTooltip`),k=O(`ElScrollbar`),A=O(`ElMenu`);return M(i)?(w(),s(`div`,{key:0,class:y([`layout-sidebar`,{"no-border":M(p).length===0}]),style:x({"--layout-menu-open-width":M(n).getMenuOpenWidth,"--layout-menu-close-width":`64px`})},[c(`div`,{class:`dual-menu-left`,style:x({width:M(n).dualMenuShowText?`80px`:`64px`,background:M(n).getMenuTheme.background})},[d(hn,{class:`logo`,onClick:M(g)},null,8,[`onClick`]),d(k,{style:{height:`calc(100% - 135px)`}},{default:z(()=>[c(`ul`,null,[(w(!0),s(e,null,E(M(f),e=>(w(),s(`li`,{key:e.path,onClick:t=>T(e)},[d(v,{class:`box-item`,effect:`dark`,content:e.meta?.title??``,placement:`right`,offset:15,"hide-after":0,disabled:M(n).dualMenuShowText},{default:z(()=>[c(`div`,{class:y({"is-active":e.meta?.key===M(u)?.meta?.key}),style:x({height:M(n).dualMenuShowText?`60px`:`46px`})},[d(Y,{class:`menu-icon text-g-700 dark:text-g-800`,icon:e.meta?.icon,style:x({marginBottom:M(n).dualMenuShowText?`5px`:`0`})},null,8,[`icon`,`style`]),M(n).dualMenuShowText?(w(),s(`span`,Nn,j(e.meta?.title??``),1)):o(``,!0),e.meta?.isShowBadge?(w(),s(`div`,Pn)):o(``,!0)],6)]),_:2},1032,[`content`,`disabled`])],8,Mn))),128))])]),_:1}),d(an,{class:`switch-btn size-10`,icon:`ri:arrow-left-right-fill`,onClick:D})],4),B(c(`div`,{class:y([`menu-left`,`menu-left-${M(n).getMenuTheme.theme} menu-left-${M(n).menuOpen?`open`:`close`}`]),style:x({background:M(n).getMenuTheme.background,width:M(l)?In:void 0})},[c(`div`,{class:`header`,onClick:_[0]||=(...e)=>M(g)&&M(g)(...e),style:x({background:M(n).getMenuTheme.background})},[M(i)?o(``,!0):(w(),a(hn,{key:0,class:`logo`})),c(`p`,{title:M(r).title,class:y({"is-dual-menu-name":M(i)}),style:x({color:M(n).getMenuTheme.systemNameColor,opacity:+!!M(n).menuOpen})},j(M(r).title),15,Fn)],4),d(k,{style:x(M(h))},{default:z(()=>[d(A,{class:y(`el-menu-`+M(n).getMenuTheme.theme),collapse:!M(n).menuOpen,"default-active":M(m),"text-color":M(n).getMenuTheme.textColor,"unique-opened":M(n).uniqueOpened,"background-color":M(n).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(n).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:M(p),theme:M(n).getMenuTheme,onClose:M(C)},null,8,[`list`,`theme`,`onClose`])]),_:1},8,[`class`,`collapse`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1},8,[`style`]),M(i)?(w(),s(`div`,{key:0,class:`dual-menu-collapse-btn`,onClick:_[1]||=(...e)=>M(S)&&M(S)(...e)},[d(Y,{class:`text-g-500/70`,icon:M(n).menuOpen?`ri:arrow-left-wide-fill`:`ri:arrow-right-wide-fill`},null,8,[`icon`])])):o(``,!0),c(`div`,{class:`menu-model`,onClick:_[2]||=(...e)=>M(S)&&M(S)(...e),style:x({opacity:+!!M(n).menuOpen,transform:M(b)?`scale(1)`:`scale(0)`})},null,4)],6),[[I,M(p).length>0]])],6)):o(``,!0)}}}),[[`__scopeId`,`data-v-5651e7af`]]);function Rn(e){let t=e.trim().replace(/^#/,``);return/^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(t)}function zn(e,t,n){let r=e=>Number.isInteger(e)&&e>=0&&e<=255;return r(e)&&r(t)&&r(n)}function Bn(e){if(!Rn(e))throw se.warning(`输入错误的hex颜色值`),Error(`Invalid hex color format`);let t=e.replace(/^#/,``);t.length===3&&(t=t.split(``).map(e=>e.repeat(2)).join(``));let n=t.match(/../g);if(!n)throw Error(`Invalid hex color format`);return n.map(e=>parseInt(e,16))}function Vn(e,t,n){if(!zn(e,t,n))throw se.warning(`输入错误的RGB颜色值`),Error(`Invalid RGB color values`);let r=e=>{let t=e.toString(16);return t.length===1?`0${t}`:t};return`#${r(e)}${r(t)}${r(n)}`}function Hn(e,t,n){let r=Math.max(0,Math.min(1,Number(n))),i=Bn(e),a=Bn(t),o=i.map((e,t)=>{let n=a[t];return Math.round(e*(1-r)+n*r)});return Vn(o[0],o[1],o[2])}function Un(e,t,n=!1){if(n)return Wn(e,t);let r=Bn(e).map(e=>Math.floor((255-e)*t+e));return Vn(r[0],r[1],r[2])}function Wn(e,t){let n=Bn(e).map(e=>Math.floor(e*(1-t)));return Vn(n[0],n[1],n[2])}function Gn(e,t=!1){document.documentElement.style.setProperty(`--el-color-primary`,e);for(let n=1;n<=9;n++)document.documentElement.style.setProperty(`--el-color-primary-light-${n}`,Un(e,n/10,t));for(let t=1;t<=9;t++)document.documentElement.style.setProperty(`--el-color-primary-dark-${t}`,Wn(e,t/10))}function Kn(e){let t=document.documentElement.style;t.setProperty(`--el-color-primary`,e),Gn(e,$().isDark);for(let n=1;n<16;n++){let r=Hn(e,`#ffffff`,n/16);t.setProperty(`--el-color-primary-custom-${n}`,r)}}var qn=!1;function Jn(){if(!qn){qn=!0;let e=$(),t=re();R(()=>{let n=e.systemThemeType;e.systemThemeMode===q.AUTO&&(n=t.value?q.DARK:q.LIGHT,e.systemThemeType=n);let r=Q.systemThemeStyles[n]?.className??``,i=e.colorWeak?` color-weak`:``;document.getElementsByTagName(`html`)[0].setAttribute(`class`,`${r}${i}`.trim())}),R(()=>{Kn(e.systemThemeColor)}),R(()=>{document.documentElement.style.setProperty(`--custom-radius`,`${e.customRadius}rem`)})}}function Yn(){let e=()=>{let e=document.createElement(`style`);e.setAttribute(`id`,`disable-transitions`),e.textContent=`* { transition: none !important; }`,document.head.appendChild(e)},t=()=>{let e=document.getElementById(`disable-transitions`);e&&e.remove()},n=(n,r)=>{e();let i=$();i.systemThemeType=n,i.systemThemeMode=r??n,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})},r=()=>{n(q.AUTO,q.AUTO)};return{setSystemTheme:n,setSystemAutoTheme:r,switchThemeStyles:e=>{e===q.AUTO?r():n(e)}}}var Xn={class:`text-md`},Zn={key:0,class:`layout-badge layout-badge-horizontal`},Qn={key:1,class:`layout-text-badge`},$n={class:`text-md`},er={key:1,class:`layout-text-badge`},tr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`horizontal-submenu`,props:{item:{type:Object,required:!0},theme:{type:Object,default:()=>({})},level:{type:Number,default:0}},setup(t){let n=t,r=i(()=>n.item.children?.filter(e=>!e.meta?.isHidden)||[]),l=i(()=>{let e=n.item.meta;return!!(e&&!e.isHidden&&(n.item.path&&n.item.path.trim()||e.link||e.isIframe===!0)&&(n.item.component||e.link||e.isIframe===!0))}),u=U(),f=i(()=>r.value.length>0),p=e=>{yn(u,e)};return(n,i)=>{let u=O(`HorizontalSubmenu`,!0),m=O(`ElSubMenu`),h=O(`ElMenuItem`);return f.value?(w(),a(m,{key:0,index:t.item.path||t.item.meta?.title||``,class:`!p-0`},{title:z(()=>[d(Y,{icon:t.item.meta?.icon,color:t.theme?.iconColor,class:`mr-1 text-lg`},null,8,[`icon`,`color`]),c(`span`,Xn,j(M(gn)(t.item.meta?.title??``)),1),t.item.meta?.isShowBadge?(w(),s(`div`,Zn)):o(``,!0),t.item.meta?.textBadge?(w(),s(`div`,Qn,j(t.item.meta?.textBadge),1)):o(``,!0)]),default:z(()=>[(w(!0),s(e,null,E(r.value,e=>(w(),a(u,{key:e.path,item:e,theme:t.theme,level:t.level+1},null,8,[`item`,`theme`,`level`]))),128))]),_:1},8,[`index`])):l.value?(w(),a(h,{key:1,index:t.item.path||t.item.meta?.title||``,onClick:i[0]||=e=>p(t.item)},{default:z(()=>[d(Y,{icon:t.item.meta?.icon,color:t.theme?.iconColor,class:`mr-1 text-lg`,style:x({color:t.theme.iconColor})},null,8,[`icon`,`color`,`style`]),c(`span`,$n,j(M(gn)(t.item.meta?.title??``)),1),t.item.meta?.isShowBadge?(w(),s(`div`,{key:0,class:`layout-badge`,style:x({right:t.level===0?`10px`:`20px`})},null,4)):o(``,!0),t.item.meta?.textBadge&&t.level!==0?(w(),s(`div`,er,j(t.item.meta?.textBadge),1)):o(``,!0)]),_:1},8,[`index`])):o(``,!0)}}}),[[`__scopeId`,`data-v-30ddc54f`]]),nr={class:`flex-1 overflow-hidden`},rr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`horizontal-menu`,props:{list:{type:Array,default:()=>[]}},setup(t){let n=$(),r=H(),o=t,c=i(()=>u(o.list)),l=i(()=>String(r.meta.activePath||r.path)),u=e=>e.filter(e=>e.meta?.isHidden?!1:e.children&&e.children.length>0?u(e.children).length>0:!0).map(e=>e.children?{...e,children:u(e.children)}:e);return(t,r)=>{let i=O(`ElMenu`);return w(),s(`div`,nr,[d(i,{ellipsis:!0,mode:`horizontal`,"default-active":l.value,"text-color":M(n).isDark?`var(--layout-gray-800)`:`var(--layout-gray-700)`,"popper-offset":-6,"background-color":`transparent`,"show-timeout":50,"hide-timeout":50,"popper-class":`horizontal-menu-popper`,class:`w-full border-none`},{default:z(()=>[(w(!0),s(e,null,E(c.value,e=>(w(),a(tr,{key:e.path,item:e,level:0},null,8,[`item`]))),128))]),_:1},8,[`default-active`,`text-color`])])}}}),[[`__scopeId`,`data-v-7e49dd08`]]),ir=/* @__PURE__ */ f({name:`ArrowLeft`,__name:`arrow-left`,setup(e){return(e,t)=>(w(),s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[c(`path`,{fill:`currentColor`,d:`M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0`})]))}}),ar=/* @__PURE__ */ f({name:`ArrowRight`,__name:`arrow-right`,setup(e){return(e,t)=>(w(),s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`},[c(`path`,{fill:`currentColor`,d:`M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z`})]))}}),or={class:`relative box-border flex-c w-full overflow-hidden`},sr={class:`box-border flex-c flex-shrink-0 flex-nowrap h-15 whitespace-nowrap`},cr=[`onClick`],lr={key:0,class:`layout-badge layout-badge-mixed`},ur=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`mixed-menu`,props:{list:{type:Array,default:()=>[]}},setup(t){let n=t,{activeTopMenu:r,router:a}=kn(),l=e=>{yn(a,e,!0)},u=T(),f=T(!1),p=T(!1),m={BUTTON_SCROLL_DISTANCE:200,WHEEL_FAST_STEP:35,WHEEL_SLOW_STEP:30,WHEEL_FAST_THRESHOLD:100},h=i(()=>n.list.map(e=>({...e,isActive:e.meta?.key===r.value?.meta?.key,formattedTitle:gn(e.meta?.title??``)}))),g=()=>{if(!u.value?.wrapRef)return;let{scrollLeft:e,scrollWidth:t,clientWidth:n}=u.value.wrapRef;f.value=e>0,p.value=e+n<t},_=ie(g,16),b=e=>{if(!u.value?.wrapRef)return;let t=u.value.wrapRef.scrollLeft,n=e===`left`?t-m.BUTTON_SCROLL_DISTANCE:t+m.BUTTON_SCROLL_DISTANCE;u.value.wrapRef.scrollTo({left:n,behavior:`smooth`})},x=e=>{if(e.preventDefault(),e.stopPropagation(),!u.value?.wrapRef)return;let{wrapRef:t}=u.value,{scrollLeft:n,scrollWidth:r,clientWidth:i}=t,a=Math.abs(e.deltaY)>m.WHEEL_FAST_THRESHOLD?m.WHEEL_FAST_STEP:m.WHEEL_SLOW_STEP,o=e.deltaY>0?a:-a;t.scrollLeft=Math.max(0,Math.min(n+o,r-i)),g()};return S(()=>{v(()=>{g()})}),(t,n)=>{let r=O(`ElIcon`),i=O(`ElScrollbar`);return w(),s(`div`,or,[B(c(`div`,{class:`button-arrow`,onClick:n[0]||=e=>b(`left`)},[d(r,null,{default:z(()=>[d(M(ir))]),_:1})],512),[[I,f.value]]),d(i,{ref_key:`scrollbarRef`,ref:u,"wrap-class":`scrollbar-wrapper`,horizontal:!0,onScroll:M(_),onWheel:x},{default:z(()=>[c(`div`,sr,[(w(!0),s(e,null,E(h.value,t=>(w(),s(e,{key:t.meta?.title},[t.meta?.isHidden?o(``,!0):(w(),s(`div`,{key:0,class:y([`menu-item relative flex-shrink-0 h-10 px-3 text-sm flex-c c-p hover:text-theme`,{"menu-item-active text-theme":t.isActive}]),onClick:e=>l(t)},[d(Y,{icon:t.meta?.icon,class:y([`text-lg text-g-700 dark:text-g-800 mr-1`,t.isActive&&`!text-theme`])},null,8,[`icon`,`class`]),c(`span`,{class:y([`text-md text-g-700 dark:text-g-800`,t.isActive&&`!text-theme`])},j(t.formattedTitle),3),t.meta?.isShowBadge?(w(),s(`div`,lr)):o(``,!0)],10,cr))],64))),128))])]),_:1},8,[`onScroll`]),B(c(`div`,{class:`button-arrow right-2`,onClick:n[1]||=e=>b(`right`)},[d(r,null,{default:z(()=>[d(M(ar))]),_:1})],512),[[I,p.value]])])}}}),[[`__scopeId`,`data-v-16e72ed5`]]),dr={class:`ml-2.5 max-lg:!hidden`,"aria-label":`breadcrumb`},fr={class:`flex-c h-full`},pr=[`onClick`],mr={class:`block max-w-46 overflow-hidden text-ellipsis whitespace-nowrap px-1.5 text-sm text-g-600 dark:text-g-800`},hr={key:0,class:`mx-1 text-sm not-italic text-g-500`,"aria-hidden":`true`},gr=/* @__PURE__ */ f({__name:`index`,setup(t){let n=H(),r=U(),a=cn(),l=i(()=>{let e=[],t=a.resolveMenu(String(n.meta.activePath||n.path));for(;t;)e.unshift(t),t=t.meta?.parentKey?a.menumaps[t.meta.parentKey]:void 0;return e.filter(e=>!!e?.meta?.title)}),u=e=>e===l.value.length-1,d=e=>!u(e),f=e=>{e.path&&r.push(e.path)};return(t,n)=>(w(),s(`nav`,dr,[c(`ul`,fr,[(w(!0),s(e,null,E(l.value,(e,t)=>(w(),s(`li`,{key:e.meta?.key,class:`box-border flex-c h-7 text-sm leading-7`},[c(`div`,{class:y(d(t)?`c-p py-1 rounded tad-200 hover:bg-active-color hover:[&_span]:text-g-600`:``),onClick:t=>f(e)},[c(`span`,mr,j(M(gn)(e.meta?.title)),1)],10,pr),u(t)?o(``,!0):(w(),s(`div`,hr,`/`))]))),128))])]))}}),_r={class:`menu-right`},vr=[`onClick`],yr={class:`menu-label flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-g-800`},br=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,props:{menuItems:{type:Array,required:!0},menuWidth:{type:Number,default:120},animationDuration:{type:Number,default:100},itemHeight:{type:Number,default:32},boundaryDistance:{type:Number,default:10},menuPadding:{type:Number,default:5},itemPaddingX:{type:Number,default:6}},emits:[`select`],setup(t,{expose:n,emit:l}){P(e=>({v60d919b2:u.menuWidth+`px`,v74fb4398:u.animationDuration+`ms`}));let u=t,f=l,p=T(!1),m=T({x:0,y:0}),h=null,g=!1,_=i(()=>({position:`fixed`,left:`${m.value.x}px`,top:`${m.value.y}px`,zIndex:2e3,width:`${u.menuWidth}px`})),v=i(()=>({padding:`${u.menuPadding}px`})),b=i(()=>({height:`${u.itemHeight}px`,padding:`0 ${u.itemPaddingX}px`,borderRadius:`4px`})),S=()=>{let e=u.menuPadding*2;return u.menuItems.forEach(t=>{e+=u.itemHeight,t.showLine&&(e+=10)}),e},D=e=>{let t=window.innerWidth,n=window.innerHeight,r=S(),i=e.clientX,a=e.clientY;return i+u.menuWidth>t-u.boundaryDistance&&(i=Math.max(u.boundaryDistance,i-u.menuWidth)),a+r>n-u.boundaryDistance&&(a=Math.max(u.boundaryDistance,n-r-u.boundaryDistance)),i=Math.max(u.boundaryDistance,Math.min(i,t-u.menuWidth-u.boundaryDistance)),a=Math.max(u.boundaryDistance,Math.min(a,n-r-u.boundaryDistance)),{x:i,y:a}},O=()=>{g||=(document.addEventListener(`click`,A),document.addEventListener(`contextmenu`,M),document.addEventListener(`keydown`,N),!0)},k=()=>{g&&=(document.removeEventListener(`click`,A),document.removeEventListener(`contextmenu`,M),document.removeEventListener(`keydown`,N),!1)},A=e=>{let t=e.target,n=document.querySelector(`.context-menu`);n&&n.contains(t)||L()},M=()=>{L()},N=e=>{e.key===`Escape`&&L()},F=e=>{e.preventDefault(),e.stopPropagation(),h&&=(window.clearTimeout(h),null),m.value=D(e),p.value=!0,h=window.setTimeout(()=>{p.value&&O(),h=null},50)},L=()=>{p.value&&(p.value=!1,h&&=(window.clearTimeout(h),null),k())},R=e=>{e.disabled||(f(`select`,e),L())},V=e=>{let t=e;t.style.transformOrigin=`top left`},H=()=>{k(),h&&=(window.clearTimeout(h),null)};return C(()=>{k(),h&&=(window.clearTimeout(h),null)}),n({show:F}),(n,i)=>(w(),s(`div`,_r,[d(r,{name:`context-menu`,onBeforeEnter:V,onAfterLeave:H,persisted:``},{default:z(()=>[B(c(`div`,{style:x(_.value),class:`context-menu layout-card-xs !shadow-xl min-w-[var(--menu-width)] w-[var(--menu-width)]`},[c(`ul`,{class:`menu-list m-0 list-none`,style:x(v.value)},[(w(!0),s(e,null,E(t.menuItems,e=>(w(),s(`li`,{key:e.key,class:y([`menu-item relative flex-c c-p select-none rounded text-xs transition-colors duration-150 hover:bg-g-200`,{"is-disabled":e.disabled,"has-line":e.showLine}]),style:x(b.value),onClick:t=>R(e)},[e.icon?(w(),a(Y,{key:0,class:`mr-2 shrink-0 text-base text-g-800`,icon:e.icon},null,8,[`icon`])):o(``,!0),c(`span`,yr,j(e.label),1)],14,vr))),128))],4)],4),[[I,p.value]])]),_:1})]))}}),[[`__scopeId`,`data-v-cc7ef87d`]]),xr=[`id`,`onClick`,`onContextmenu`],Sr=[`onClick`],Cr={key:1,class:`line absolute top-0 bottom-0 left-0 w-px h-4 my-auto bg-g-400 transition-opacity duration-150`},wr={class:`flex`},Tr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(t){let n=sn(),r=U(),{currentRoute:a}=r,l=$(),f=()=>{l.refresh=!l.refresh},p=T(null),m=T(null),h=T(),g=T({translateX:0,transition:``}),_=T(0),v=T(``),b=i(()=>n.tabs),D=i(()=>a.value.path),O=i(()=>b.value.findIndex(e=>e.path===D.value)),k=i(()=>{let e=b.value.findIndex(e=>e.path===v.value),t=b.value[e],n=e=>e.length>0&&e.every(e=>e.fixedTab);return[{key:`refresh`,label:`刷新`,icon:`ri:refresh-line`,disabled:v.value!==D.value},{key:`fixed`,label:t?.fixedTab?`取消固定`:`固定`,icon:`ri:pushpin-2-line`,disabled:!1,showLine:!0},{key:`left`,label:`关闭左侧`,icon:`ri:arrow-left-s-line`,disabled:e===0||n(b.value.slice(0,e))},{key:`right`,label:`关闭右侧`,icon:`ri:arrow-right-s-line`,disabled:e===b.value.length-1||n(b.value.slice(e+1))},{key:`other`,label:`关闭其他`,icon:`ri:close-fill`,disabled:b.value.length===1||n(b.value.filter((t,n)=>n!==e))},{key:`all`,label:`关闭全部`,icon:`ri:close-circle-line`,disabled:b.value.length===1||n(b.value)}]}),A=()=>{g.value.transition=`transform 0.5s cubic-bezier(0.15, 0, 0.15, 1)`,setTimeout(()=>{g.value.transition=``},250)},N=()=>{if(!p.value||!m.value)return;let e=document.getElementById(`scroll-li-${O.value}`);if(!e)return;let t=p.value.offsetWidth,n=m.value.offsetWidth,{offsetLeft:r,clientWidth:i}=e,a=r+i;return{scrollWidth:t,ulWidth:n,offsetLeft:r,clientWidth:i,curTabRight:a,targetLeft:t-a}},P=()=>{let e=N();if(!e)return;let{scrollWidth:t,ulWidth:n,offsetLeft:r,curTabRight:i,targetLeft:a}=e;r>Math.abs(g.value.translateX)&&i<=t||g.value.translateX<a&&a<0||requestAnimationFrame(()=>{i>t?g.value.translateX=Math.max(a-6,t-n):r<Math.abs(g.value.translateX)&&(g.value.translateX=-r)})},F=()=>{let e=N();if(!e)return;let{scrollWidth:t,ulWidth:n,offsetLeft:r,clientWidth:i}=e,a=r+i;requestAnimationFrame(()=>{g.value.translateX=a>t?t-n:0})},R=e=>{if(!p.value||!m.value||(e.preventDefault(),m.value.offsetWidth<=p.value.offsetWidth))return;let t=p.value.offsetWidth-m.value.offsetWidth,n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;g.value.translateX=Math.min(Math.max(g.value.translateX-n,t),0)},z=e=>{_.value=e.touches[0].clientX},H=e=>{if(!p.value||!m.value)return;let t=p.value.offsetWidth-m.value.offsetWidth,n=e.touches[0].clientX-_.value;g.value.translateX=Math.min(Math.max(g.value.translateX+n,t),0),_.value=e.touches[0].clientX},W=()=>{m.value&&(m.value.addEventListener(`wheel`,R,{passive:!1}),m.value.addEventListener(`touchstart`,z,{passive:!0}),m.value.addEventListener(`touchmove`,H,{passive:!0}),m.value.addEventListener(`touchend`,A,{passive:!0}))},ee=()=>{m.value&&(m.value.removeEventListener(`wheel`,R),m.value.removeEventListener(`touchstart`,z),m.value.removeEventListener(`touchmove`,H),m.value.removeEventListener(`touchend`,A))},te=e=>{r.push({path:e.path,query:e.query})},ne=(e,t)=>{let i={current:()=>n.removeTab(t),left:()=>n.removeLeft(t),right:()=>n.removeRight(t),other:()=>n.removeOthers(t),all:()=>n.removeAll()}[e]?.();i&&i!==a.value.path&&r.push(i),setTimeout(F,100)},re=(e,t)=>{v.value=t||``,h.value?.show(e),e.preventDefault(),e.stopPropagation()},ie=e=>{let{key:t}=e;if(t===`refresh`){f();return}if(t===`fixed`){n.toggleFixedTab(v.value);return}let i=b.value.findIndex(e=>e.path===D.value),a=b.value.findIndex(e=>e.path===v.value);(t===`other`||(t===`left`?i<a:i>a))&&r.push(v.value),ne(t,v.value)};return S(()=>{W(),P()}),C(ee),L(a,()=>{A(),P()}),(t,n)=>M(l).showWorkTab?(w(),s(`div`,{key:0,class:y([`box-border flex-b w-full px-5 mb-3 select-none max-sm:px-[15px]`,[M(l).tabStyle===`tab-card`?`py-1 border-b border-[var(--layout-card-border)]`:``,M(l).tabStyle===`tab-google`?`pt-1 pb-0 border-b border-[var(--layout-card-border)]`:``]])},[c(`div`,{class:`w-full overflow-hidden`,ref_key:`scrollRef`,ref:p},[c(`ul`,{class:y([`float-left whitespace-nowrap !bg-transparent flex`,[M(l).tabStyle===`tab-google`?`pl-1`:``]]),ref_key:`tabsRef`,ref:m,style:x({transform:`translateX(${g.value.translateX}px)`,transition:`${g.value.transition}`})},[(w(!0),s(e,null,E(b.value,(e,t)=>(w(),s(`li`,{class:y([`layout-card-xs inline-flex flex-cc h-8 mr-1.5 text-xs c-p hover:text-theme group`,[e.path===D.value?`activ-tab !text-theme`:`text-g-600 dark:text-g-800`,M(l).tabStyle===`tab-google`?`google-tab relative !h-8 !leading-8 !border-none`:``]]),style:x({padding:e.fixedTab?`0 10px`:`0 8px 0 12px`,borderRadius:M(l).tabStyle===`tab-google`?`calc(var(--custom-radius) / 2.5 + 4px) !important`:`calc(var(--custom-radius) / 2.5 + 2px) !important`}),key:e.path,ref_for:!0,ref:e.path,id:`scroll-li-${t}`,onClick:t=>te(e),onContextmenu:V(t=>re(t,e.path),[`prevent`])},[B(d(Y,{icon:e.icon,class:y([`text-base mr-1 group-hover:text-theme`,e.path===D.value?`text-theme`:`text-g-600`])},null,8,[`icon`,`class`]),[[I,e.icon]]),u(` `+j(e.customTitle||M(gn)(e.title))+` `,1),b.value.length>1&&!e.fixedTab?(w(),s(`span`,{key:0,class:`inline-flex flex-cc relative ml-0.5 p-1 rounded-full tad-200 hover:bg-g-200`,onClick:V(t=>ne(`current`,e.path),[`stop`])},[d(Y,{icon:`ri:close-large-fill`,class:`text-[10px] text-g-600`})],8,Sr)):o(``,!0),M(l).tabStyle===`tab-google`?(w(),s(`div`,Cr)):o(``,!0)],46,xr))),128))],6)],512),c(`div`,wr,[c(`div`,{class:`flex-cc layout-card-xs relative top-0 size-8 leading-8 text-center c-p tad-200 hover:!bg-hover-color`,style:x({borderRadius:`calc(var(--custom-radius) / 2.5 + 0px)`,marginTop:M(l).tabStyle===`tab-google`?`-2px`:``}),onClick:n[0]||=e=>re(e,D.value)},[d(Y,{icon:`iconamoon:arrow-down-2-thin`,class:`text-2xl text-g-700`})],4)]),d(br,{ref_key:`menuRef`,ref:h,"menu-items":k.value,"menu-width":140,onSelect:ie},null,8,[`menu-items`])],2)):o(``,!0)}}),[[`__scopeId`,`data-v-a6142ee7`]]),Er={class:`flex-c flex-1 min-w-0 leading-15`},Dr=[`title`],Or={class:`flex-c gap-2.5 pr-4`},kr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(e){let t=U(),{width:n}=oe(),r=$(),l=X(),u=cn(),{isMobile:f}=An(),p=i(()=>r.menuType===K.LEFT),m=i(()=>r.menuType===K.DUAL_MENU),h=i(()=>r.menuType===K.TOP),g=i(()=>r.menuType===K.TOP_LEFT),_=()=>{r.menuOpen=!r.menuOpen},v=()=>{r.refresh=!r.refresh},b=e=>{let t=e.clientX,n=e.clientY,i=Math.hypot(Math.max(t,innerWidth-t),Math.max(n,innerHeight-n));document.documentElement.style.setProperty(`--x`,t+`px`),document.documentElement.style.setProperty(`--y`,n+`px`),document.documentElement.style.setProperty(`--r`,i+`px`);let a=()=>{Yn().switchThemeStyles(r.systemThemeType===q.LIGHT?q.DARK:q.LIGHT),v()};document.startViewTransition?document.startViewTransition(a):a()},S=()=>{t.push(l.homePath)},C=()=>{v()},T=()=>{l.settingVisible=!0};return(e,t)=>(w(),s(`div`,{class:y([`w-full bg-[var(--default-bg-color)]`,[M(r).tabStyle===`tab-card`||M(r).tabStyle===`tab-google`?`mb-5 max-sm:mb-3 !bg-box`:``]])},[c(`div`,{class:y([`relative box-border flex-b h-15 leading-15 select-none`,[M(r).tabStyle===`tab-card`||M(r).tabStyle===`tab-google`?`border-b border-[var(--layout-card-border)]`:``]])},[c(`div`,Er,[h.value?(w(),s(`div`,{key:0,class:`flex-c c-p min-w-0`,onClick:S},[d(hn,{class:`pl-4.5`}),M(n)>=1400?(w(),s(`p`,{key:0,title:M(l).title,class:`my-0 mx-2 ml-2 text-lg min-w-0 overflow-hidden text-ellipsis whitespace-nowrap`},j(M(l).title),9,Dr)):o(``,!0)])):o(``,!0),d(hn,{class:`!hidden pl-3.5 overflow-hidden align-[-0.15em] fill-current`,onClick:S}),M(r).showMenuButton&&(p.value||M(f))?(w(),a(an,{key:1,icon:`ri:menu-2-fill`,class:`ml-3 max-sm:ml-[7px]`,onClick:_})):o(``,!0),M(r).showRefreshButton?(w(),a(an,{key:2,icon:`ri:refresh-line`,class:`!ml-3 refresh-btn max-sm:!hidden`,style:x({marginLeft:p.value?`0`:`10px`}),onClick:C},null,8,[`style`])):o(``,!0),D(e.$slots,`quick`,{},void 0,!0),M(r).showCrumbs&&(p.value||m.value)?(w(),a(gr,{key:3})):o(``,!0),h.value?(w(),a(rr,{key:4,list:M(u).menulist},null,8,[`list`])):o(``,!0),g.value?(w(),a(ur,{key:5,list:M(u).menulist},null,8,[`list`])):o(``,!0)]),c(`div`,Or,[D(e.$slots,`header-left`,{},void 0,!0),d(an,{onClick:b,icon:M(r).isDark?`ri:sun-fill`:`ri:moon-line`},null,8,[`icon`]),M(l).showSetting?(w(),a(an,{key:0,icon:`ri:settings-line`,class:`setting-btn`,onClick:T})):o(``,!0),D(e.$slots,`header-right`,{},void 0,!0)])],2),d(Tr)],2))}}),[[`__scopeId`,`data-v-becc2b08`]]),Ar={key:0,class:`px-2 py-1.5 mb-3 text-sm text-g-500 bg-g-200 border-full-d rounded-md`},jr=[`src`],Mr={class:`fixed top-0 left-0 z-[2000] w-screen h-screen pointer-events-none bg-box`},Nr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(l){let u=H(),f=$(),p=sn(),m=i(()=>p.tabs.filter(e=>e.keepAlive).map(e=>e.name)),h=T(),g=T(),{height:_}=ne(h),{height:b}=ne(g),C=i(()=>`calc(100vh - ${_.value+b.value+15}px)`);S(()=>{h.value=document.getElementById(`app-header`)??void 0});let D=i(()=>u.meta.isIframe===!0&&!!u.meta.link),N=T([]);L(()=>u.fullPath,()=>{D.value&&!N.value.some(e=>e.path===u.fullPath)&&N.value.push({path:u.fullPath,link:`${u.meta.link}`})},{immediate:!0}),L(()=>p.tabs.map(e=>e.path),e=>{e.length>0&&(N.value=N.value.filter(t=>e.includes(t.path)))});let P=A(!0),F=T(!1),R=T(!0),V=i(()=>u.matched.some(e=>e.meta?.isFullPage)),U=T(V.value),W=i(()=>R.value||U.value&&!V.value?``:f.pageTransition);L(V,(e,t)=>{e!==t&&(F.value=!0,setTimeout(()=>{F.value=!1},50)),v(()=>{U.value=e})});let ee=i(()=>V.value?{position:`fixed`,top:0,left:0,width:`100%`,height:`100vh`,zIndex:2500,background:`var(--default-bg-color)`}:{maxWidth:f.containerWidth}),te=i(()=>({minHeight:C.value}));return L(()=>f.refresh,()=>{P.value=!1,v(()=>{P.value=!0})},{flush:`post`}),S(()=>{v(()=>{R.value=!1})}),(i,l)=>{let f=O(`RouterView`);return w(),s(`div`,{class:y([`layout-content`,{"overflow-auto":V.value}]),style:x(ee.value)},[c(`div`,{id:`app-content-header`,ref_key:`contentHeaderRef`,ref:g},[M(void 0)===`true`?(w(),s(`div`,Ar,`router meta:`+j(M(u).meta),1)):o(``,!0)],512),B(c(`div`,{class:`layout-page-view`,style:x(te.value)},[P.value?(w(),a(f,{key:0},{default:z(({Component:e,route:n})=>[d(r,{name:F.value?``:W.value,mode:`out-in`,appear:``},{default:z(()=>[(w(),a(t,{max:10,include:m.value},[n.meta.isKeepAlive?(w(),a(k(e),{key:n.path})):o(``,!0)],1032,[`include`]))]),_:2},1032,[`name`]),d(r,{name:F.value?``:W.value,mode:`out-in`,appear:``},{default:z(()=>[n.meta.isKeepAlive?o(``,!0):(w(),a(k(e),{key:n.path}))]),_:2},1032,[`name`])]),_:1})):o(``,!0)],4),[[I,!D.value]]),(w(!0),s(e,null,E(N.value,e=>B((w(),s(`div`,{key:e.path,class:`layout-iframe-view`},[c(`iframe`,{class:`layout-iframe-frame`,src:e.link,frameborder:`0`},null,8,jr)])),[[I,D.value&&e.path===M(u).fullPath]])),128)),(w(),a(n,{to:`body`},[B(c(`div`,Mr,null,512),[[I,F.value]])]))],6)}}}),[[`__scopeId`,`data-v-2bfd26ec`]]),Pr={class:`app-layout`},Fr={id:`app-sidebar`},Ir={id:`app-main`},Lr={id:`app-header`},Rr={id:`app-content`},zr=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,Pr,[c(`aside`,Fr,[d(Ln)]),c(`main`,Ir,[c(`div`,Lr,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Rr,[d(Nr)])])]))}}),Br=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`menu-drawer`,setup(e){P(e=>({be543622:u.value}));let t=$(),n=cn(),{routerPath:r}=kn(),{isMobile:a}=An(),l=i(()=>n.menulist),u=i(()=>t.getMenuOpenWidth),f=()=>{t.menuOpen=!1};return(e,n)=>{let i=O(`ElMenu`),u=O(`ElScrollbar`);return M(a)&&M(t).menuOpen?(w(),s(`div`,{key:0,class:`layout-menu-drawer`,style:x({background:M(t).getMenuTheme.background})},[d(u,null,{default:z(()=>[d(i,{class:y(`el-menu-`+M(t).getMenuTheme.theme),"default-active":M(r),"text-color":M(t).getMenuTheme.textColor,"unique-opened":M(t).uniqueOpened,"background-color":M(t).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(t).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:l.value,theme:M(t).getMenuTheme,onClose:f},null,8,[`list`,`theme`])]),_:1},8,[`class`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1}),c(`div`,{class:`layout-menu-drawer-model`,onClick:f})],4)):o(``,!0)}}}),[[`__scopeId`,`data-v-00799230`]]),Vr={class:`app-layout`},Hr={id:`app-main`},Ur={id:`app-header`},Wr={id:`app-content`},Gr=/* @__PURE__ */ f({__name:`index`,setup(t){return(t,n)=>(w(),s(e,null,[c(`div`,Vr,[c(`main`,Hr,[c(`div`,Ur,[d(kr,null,l({_:2},[t.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(t.$slots,`header-left`)]),key:`0`}:void 0,t.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(t.$slots,`header-right`)]),key:`1`}:void 0,t.$slots.quick?{name:`quick`,fn:z(()=>[D(t.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Wr,[d(Nr)])])]),d(Br)],64))}}),Kr=[`title`],qr=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`index`,setup(e){let t=$(),n=X(),{showLeftMenu:r,isDualMenu:i,menuList:l,routerPath:u,scrollbarStyle:f,navigateToHome:p}=kn(),{isMobile:m}=An(),{showMobileModal:h,toggleMenuVisibility:g,handleMenuClose:_}=jn(m);return(e,m)=>{let v=O(`ElMenu`),b=O(`ElScrollbar`);return M(r)?(w(),s(`div`,{key:0,class:y([`layout-sidebar`,{"no-border":M(l).length===0}]),style:x({"--layout-menu-open-width":M(t).getMenuOpenWidth,"--layout-menu-close-width":`64px`})},[B(c(`div`,{class:y([`menu-left`,`menu-left-${M(t).getMenuTheme.theme} menu-left-${M(t).menuOpen?`open`:`close`}`]),style:x({background:M(t).getMenuTheme.background})},[c(`div`,{class:`header`,onClick:m[0]||=(...e)=>M(p)&&M(p)(...e),style:x({background:M(t).getMenuTheme.background})},[M(i)?o(``,!0):(w(),a(hn,{key:0,class:`logo`})),c(`p`,{title:M(n).title,class:y({"is-dual-menu-name":M(i)}),style:x({color:M(t).getMenuTheme.systemNameColor,opacity:+!!M(t).menuOpen})},j(M(n).title),15,Kr)],4),d(b,{style:x(M(f))},{default:z(()=>[d(v,{class:y(`el-menu-`+M(t).getMenuTheme.theme),collapse:!M(t).menuOpen,"default-active":M(u),"text-color":M(t).getMenuTheme.textColor,"unique-opened":M(t).uniqueOpened,"background-color":M(t).getMenuTheme.background,"popper-class":`menu-left-popper menu-left-${M(t).getMenuTheme.theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:z(()=>[d(On,{list:M(l),theme:M(t).getMenuTheme,onClose:M(_)},null,8,[`list`,`theme`,`onClose`])]),_:1},8,[`class`,`collapse`,`default-active`,`text-color`,`unique-opened`,`background-color`,`popper-class`])]),_:1},8,[`style`]),c(`div`,{class:`menu-model`,onClick:m[1]||=(...e)=>M(g)&&M(g)(...e),style:x({opacity:+!!M(t).menuOpen,transform:M(h)?`scale(1)`:`scale(0)`})},null,4)],6),[[I,M(l).length>0]])],6)):o(``,!0)}}}),[[`__scopeId`,`data-v-ad1d6b09`]]),Jr={class:`app-layout`},Yr={id:`app-sidebar`},Xr={id:`app-main`},Zr={id:`app-header`},Qr={id:`app-content`},$r=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,Jr,[c(`aside`,Yr,[d(qr)]),c(`main`,Xr,[c(`div`,Zr,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,Qr,[d(Nr)])])]))}}),ei={class:`app-layout`},ti={id:`app-sidebar`},ni={id:`app-main`},ri={id:`app-header`},ii={id:`app-content`},ai=/* @__PURE__ */ f({__name:`index`,setup(e){return(e,t)=>(w(),s(`div`,ei,[c(`aside`,ti,[d(qr)]),c(`main`,ni,[c(`div`,ri,[d(kr,null,l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1024)]),c(`div`,ii,[d(Nr)])])]))}}),oi={[K.LEFT]:ai,[K.TOP]:Gr,[K.TOP_LEFT]:$r,[K.DUAL_MENU]:zr};function si(){let e=$();return{switchMenuLayouts:t=>{(t===K.LEFT||t===K.TOP_LEFT)&&(e.menuOpen=!0),e.menuType=t,t===K.DUAL_MENU&&(e.menuThemeType=J.DESIGN,e.menuOpen=!0)}}}var ci=`sys-responsive-menu-type`;function li(){let e=$(),t=X(),{setSystemTheme:n,setSystemAutoTheme:r}=Yn(),{switchMenuLayouts:a}=si(),o=i({get:()=>t.settingVisible,set:e=>t.settingVisible=e}),s=i(()=>e.systemThemeColor),c=ee({tablet:1e3}).smaller(`tablet`),l=()=>{let e=localStorage.getItem(ci);return Object.values(K).includes(e)?e:void 0},u=e=>{localStorage.setItem(ci,e)},d=()=>{localStorage.removeItem(ci)},f=l(),p=T(f),m=T(!!f);L(c,t=>{t?(m.value||(p.value=e.menuType,e.menuType!==K.LEFT&&(u(e.menuType),a(K.LEFT),m.value=!0)),e.menuOpen=!1):(m.value&&p.value&&(e.menuType===K.LEFT&&a(p.value),d(),m.value=!1),e.menuOpen=!0)},{immediate:!0});let h=null,g=()=>{h&&clearTimeout(h),h=setTimeout(()=>{document.getElementsByTagName(`body`)[0].classList.add(`theme-change`),h=null},500)},_=()=>{h&&=(clearTimeout(h),null),document.getElementsByTagName(`body`)[0].classList.remove(`theme-change`)},v=()=>{o.value=!1},y=()=>{Q.systemMainColor.includes(s.value)||(e.systemThemeColor=Q.systemMainColor[0],e.refresh=!e.refresh)},b=()=>{e.systemThemeMode===q.AUTO?r():n(e.systemThemeType)},x=null;return S(()=>{y();let t=window.matchMedia(`(prefers-color-scheme: dark)`);t.addEventListener(`change`,b),x=()=>{t.removeEventListener(`change`,b)},document.documentElement.setAttribute(`data-box-mode`,e.boxBorderMode?`border-mode`:`shadow-mode`),b()}),C(()=>{x?.()}),{showDrawer:o,handleOpen:g,handleClose:_,closeDrawer:v}}var ui={class:`flex-cb mb-4 last:mb-2`},di={class:`flex-cb mb-4 last:mb-2`},fi={class:`flex-cb mb-4 last:mb-2`},pi={class:`flex-cb mb-4 last:mb-2`},mi={class:`flex-cb mb-4 last:mb-2 mobile-hide`},hi={class:`flex-cb mb-4 last:mb-2`},gi={class:`flex-cb mb-4 last:mb-2`},_i={class:`flex-cb mb-4 last:mb-2`},vi={class:`flex-cb mb-4 last:mb-2`},yi={class:`flex-cb mb-4 last:mb-2`},bi={class:`flex-cb mb-4 last:mb-2`},xi=/*#__PURE__*/ G(/* @__PURE__ */ f({__name:`BasicSettings`,setup(e){let t=$();return(e,n)=>{let r=O(`ElSwitch`),i=O(`ElInputNumber`),a=O(`ElOption`),o=O(`ElSelect`);return w(),s(`div`,null,[n[22]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`基础配置`,-1),c(`div`,ui,[n[11]||=c(`span`,{class:`text-sm`},`开启多标签页`,-1),d(r,{modelValue:M(t).showWorkTab,"onUpdate:modelValue":n[0]||=e=>M(t).showWorkTab=e},null,8,[`modelValue`])]),c(`div`,di,[n[12]||=c(`span`,{class:`text-sm`},`侧边栏开启手风琴模式`,-1),d(r,{modelValue:M(t).uniqueOpened,"onUpdate:modelValue":n[1]||=e=>M(t).uniqueOpened=e},null,8,[`modelValue`])]),c(`div`,fi,[n[13]||=c(`span`,{class:`text-sm`},`显示折叠侧边栏按钮`,-1),d(r,{modelValue:M(t).showMenuButton,"onUpdate:modelValue":n[2]||=e=>M(t).showMenuButton=e},null,8,[`modelValue`])]),c(`div`,pi,[n[14]||=c(`span`,{class:`text-sm`},`显示重载页面按钮`,-1),d(r,{modelValue:M(t).showRefreshButton,"onUpdate:modelValue":n[3]||=e=>M(t).showRefreshButton=e},null,8,[`modelValue`])]),c(`div`,mi,[n[15]||=c(`span`,{class:`text-sm`},`显示全局面包屑导航`,-1),d(r,{modelValue:M(t).showCrumbs,"onUpdate:modelValue":n[4]||=e=>M(t).showCrumbs=e},null,8,[`modelValue`])]),c(`div`,hi,[n[16]||=c(`span`,{class:`text-sm`},`色弱模式`,-1),d(r,{modelValue:M(t).colorWeak,"onUpdate:modelValue":n[5]||=e=>M(t).colorWeak=e},null,8,[`modelValue`])]),c(`div`,gi,[n[17]||=c(`span`,{class:`text-sm`},`全局水印`,-1),d(r,{modelValue:M(t).watermarkVisible,"onUpdate:modelValue":n[6]||=e=>M(t).watermarkVisible=e},null,8,[`modelValue`])]),c(`div`,_i,[n[18]||=c(`span`,{class:`text-sm`},`菜单宽度`,-1),d(i,{"model-value":M(t).menuOpenWidth,min:180,max:320,step:10,style:{width:`120px`},"controls-position":`right`,onChange:n[7]||=e=>M(t).menuOpenWidth=e},null,8,[`model-value`])]),c(`div`,vi,[n[19]||=c(`span`,{class:`text-sm`},`标签页风格`,-1),d(o,{modelValue:M(t).tabStyle,"onUpdate:modelValue":n[8]||=e=>M(t).tabStyle=e,style:{width:`120px`}},{default:z(()=>[d(a,{label:`默认`,value:`tab-default`}),d(a,{label:`卡片`,value:`tab-card`}),d(a,{label:`谷歌`,value:`tab-google`})]),_:1},8,[`modelValue`])]),c(`div`,yi,[n[20]||=c(`span`,{class:`text-sm`},`页面切换动画`,-1),d(o,{"model-value":M(t).pageTransition,style:{width:`120px`},onChange:n[9]||=e=>M(t).pageTransition=e},{default:z(()=>[d(a,{label:`无动画`,value:``}),d(a,{label:`淡入淡出`,value:`fade`}),d(a,{label:`左侧滑入`,value:`slide-left`}),d(a,{label:`下方滑入`,value:`slide-bottom`}),d(a,{label:`上方滑入`,value:`slide-top`})]),_:1},8,[`model-value`])]),c(`div`,bi,[n[21]||=c(`span`,{class:`text-sm`},`自定义圆角`,-1),d(o,{modelValue:M(t).customRadius,"onUpdate:modelValue":n[10]||=e=>M(t).customRadius=e,style:{width:`120px`}},{default:z(()=>[d(a,{label:`0`,value:`0`}),d(a,{label:`0.25`,value:`0.25`}),d(a,{label:`0.5`,value:`0.5`}),d(a,{label:`0.75`,value:`0.75`}),d(a,{label:`1`,value:`1`})]),_:1},8,[`modelValue`])])])}}}),[[`__scopeId`,`data-v-6aee8682`]]),Si={class:`box-border flex-cb p-1 mt-5 rounded-lg bg-g-200`},Ci=/* @__PURE__ */ f({__name:`BoxStyleSettings`,setup(e){let t=$(),n=e=>{e===`shadow-mode`&&t.boxBorderMode===!1||e===`border-mode`&&t.boxBorderMode===!0||setTimeout(()=>{document.documentElement.setAttribute(`data-box-mode`,e),t.boxBorderMode=!t.boxBorderMode},50)};return(e,r)=>(w(),s(`div`,null,[r[2]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`盒子样式`,-1),c(`div`,Si,[c(`div`,{class:y([`w-[calc(50%-3px)] h-8.5 leading-8.5 text-sm text-center c-p select-none rounded-md transition-all duration-200`,M(t).boxBorderMode?`text-g-800 bg-[var(--default-box-color)] dark:!text-white dark:bg-g-300`:`hover:text-g-800 hover:bg-black/[0.04] dark:hover:bg-black/20`]),onClick:r[0]||=e=>n(`border-mode`)},`边框`,2),c(`div`,{class:y([`w-[calc(50%-3px)] h-8.5 leading-8.5 text-sm text-center c-p select-none rounded-md transition-all duration-200`,M(t).boxBorderMode?`hover:text-g-800 hover:bg-black/[0.04] dark:hover:bg-black/20`:`text-g-800 bg-[var(--default-box-color)] dark:!text-white dark:bg-g-300`]),onClick:r[1]||=e=>n(`shadow-mode`)},`阴影`,2)])]))}}),wi={class:`-mr-4`},Ti={class:`flex flex-wrap`},Ei=[`onClick`],Di=/* @__PURE__ */ f({__name:`ColorSettings`,setup(t){let n=$(),r=e=>{n.systemThemeColor=e,n.refresh=!n.refresh};return(t,i)=>(w(),s(`div`,null,[i[0]||=c(`p`,{class:`relative mt-10 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`系统主题色`,-1),c(`div`,wi,[c(`div`,Ti,[(w(!0),s(e,null,E(M(Q).systemMainColor,e=>(w(),s(`div`,{key:e,class:`flex items-center justify-center size-[23px] mr-4 mb-2.5 cursor-pointer rounded-full transition-all duration-200 hover:opacity-85`,style:x({background:`${e} !important`}),onClick:t=>r(e)},[B(d(Y,{icon:`ri:check-fill`,class:`text-base !text-white`},null,512),[[I,e===M(n).systemThemeColor]])],12,Ei))),128))])])]))}}),Oi={class:`flex`},ki=/* @__PURE__ */ f({__name:`ContainerSettings`,setup(e){let t=$(),n=e=>{t.containerWidth=e,t.refresh=!t.refresh};return(e,r)=>(w(),s(`div`,null,[r[4]||=c(`p`,{class:`relative mt-12.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`容器宽度`,-1),c(`div`,Oi,[c(`div`,{class:y([`flex-cc flex-1 h-16 mt-5 mr-3.5 mb-3.5 cursor-pointer !border-2 rounded-lg !text-g-800`,M(t).containerWidth===M(ye).FULL?`border-theme [&_svg]:!text-theme`:`border-full-d`]),onClick:r[0]||=e=>n(M(ye).FULL)},[d(Y,{icon:`icon-park-outline:auto-width`,class:`mr-2 text-lg`}),r[2]||=c(`span`,{class:`text-sm`},`铺满`,-1)],2),c(`div`,{class:y([`flex-cc flex-1 h-16 mt-5 mb-3.5 cursor-pointer !border-2 rounded-lg !text-g-800`,M(t).containerWidth===M(ye).BOXED?`border-theme [&_svg]:!text-theme`:`border-full-d`]),onClick:r[1]||=e=>n(M(ye).BOXED)},[d(Y,{icon:`ix:width`,class:`mr-2 text-lg`}),r[3]||=c(`span`,{class:`text-sm`},`定宽`,-1)],2)])]))}}),Ai={key:0},ji={class:`setting-box-wrap`},Mi=[`src`],Ni=[`src`],Pi=[`src`],Fi=[`src`],Ii=/* @__PURE__ */ f({__name:`MenuLayoutSettings`,setup(e){let{width:t}=oe(),n=$(),{switchMenuLayouts:r}=si();return(e,i)=>M(t)>1e3?(w(),s(`div`,Ai,[i[8]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`菜单布局`,-1),c(`div`,ji,[c(`div`,{class:`setting-item`,onClick:i[0]||=e=>M(r)(M(K).LEFT)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).LEFT}])},[c(`img`,{src:M(Z).menuLayouts.vertical},null,8,Mi)],2),i[4]||=c(`p`,{class:`name`},`垂直`,-1)]),c(`div`,{class:`setting-item`,onClick:i[1]||=e=>M(r)(M(K).TOP)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).TOP}])},[c(`img`,{src:M(Z).menuLayouts.horizontal},null,8,Ni)],2),i[5]||=c(`p`,{class:`name`},`水平`,-1)]),c(`div`,{class:`setting-item`,onClick:i[2]||=e=>M(r)(M(K).TOP_LEFT)},[c(`div`,{class:y([`box`,{"is-active":M(n).menuType===M(K).TOP_LEFT}])},[c(`img`,{src:M(Z).menuLayouts.mixed},null,8,Pi)],2),i[6]||=c(`p`,{class:`name`},`混合`,-1)]),c(`div`,{class:`setting-item`,onClick:i[3]||=e=>M(r)(M(K).DUAL_MENU)},[c(`div`,{class:y([`box mt-16`,{"is-active":M(n).menuType===M(K).DUAL_MENU}])},[c(`img`,{src:M(Z).menuLayouts.dualColumn},null,8,Fi)],2),i[7]||=c(`p`,{class:`name`},`双列`,-1)])])])):o(``,!0)}}),Li={class:`setting-box-wrap`},Ri=[`onClick`],zi=[`src`],Bi=/* @__PURE__ */ f({__name:`MenuStyleSettings`,setup(t){let n=Q.themeList,r=$(),a=i(()=>r.menuType===K.TOP),o=i(()=>r.menuType===K.DUAL_MENU),l=i(()=>a.value||o.value||r.isDark),u=e=>{o.value||a.value||r.isDark||(r.menuThemeType=e)};return(t,i)=>(w(),s(e,null,[i[0]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`菜单风格`,-1),c(`div`,Li,[(w(!0),s(e,null,E(M(n),e=>(w(),s(`div`,{class:`setting-item`,key:e.theme,onClick:t=>u(e.theme)},[c(`div`,{class:y([`box`,{"is-active":e.theme===M(r).menuThemeType}]),style:x({cursor:l.value?`no-drop`:`pointer`})},[c(`img`,{src:e.img},null,8,zi)],6)],8,Ri))),128))])],64))}}),Vi={class:`setting-box-wrap`},Hi=[`src`],Ui=[`src`],Wi=[`src`],Gi=/* @__PURE__ */ f({__name:`ThemeSettings`,setup(t){let n=$(),{switchThemeStyles:r}=Yn();return(t,i)=>(w(),s(e,null,[i[6]||=c(`p`,{class:`relative mt-7.5 mb-5.5 text-sm text-center text-g-800 before:absolute before:top-[10px] before:left-0 before:w-[50px] before:m-auto before:content-[''] before:border-b before:border-[var(--layout-gray-300)] after:absolute after:top-[10px] after:right-0 after:w-[50px] after:m-auto after:content-[''] after:border-b after:border-g-300`},`主题风格`,-1),c(`div`,Vi,[c(`div`,{class:`setting-item`,onClick:i[0]||=e=>M(r)(M(q).LIGHT)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).LIGHT}])},[c(`img`,{src:M(Z).themeStyles.light},null,8,Hi)],2),i[3]||=c(`p`,{class:`name`},`浅色`,-1)]),c(`div`,{class:`setting-item`,onClick:i[1]||=e=>M(r)(M(q).DARK)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).DARK}])},[c(`img`,{src:M(Z).themeStyles.dark},null,8,Ui)],2),i[4]||=c(`p`,{class:`name`},`深色`,-1)]),c(`div`,{class:`setting-item`,onClick:i[2]||=e=>M(r)(M(q).AUTO)},[c(`div`,{class:y([`box`,{"is-active":M(n).systemThemeMode===M(q).AUTO}])},[c(`img`,{src:M(Z).themeStyles.system},null,8,Wi)],2),i[5]||=c(`p`,{class:`name`},`系统`,-1)])])],64))}}),Ki={class:`layout-settings`},qi={class:`setting-drawer`},Ji={class:`drawer-con`},Yi={class:`flex justify-end`},Xi={class:`mt-10 flex gap-8 border-t border-[var(--default-border)] bg-[var(--layout-bg-color)] pt-5`},Zi=/* @__PURE__ */ f({__name:`index`,setup(e){let t=$(),{showDrawer:n,handleOpen:r,handleClose:i,closeDrawer:a}=li(),{copy:o,copied:l}=te(),{switchThemeStyles:f}=Yn(),p={menuType:{left:`MenuTypeEnum.LEFT`,top:`MenuTypeEnum.TOP`,"top-left":`MenuTypeEnum.TOP_LEFT`,"dual-menu":`MenuTypeEnum.DUAL_MENU`},systemTheme:{auto:`SystemThemeEnum.AUTO`,light:`SystemThemeEnum.LIGHT`,dark:`SystemThemeEnum.DARK`},menuTheme:{design:`MenuThemeEnum.DESIGN`,light:`MenuThemeEnum.LIGHT`,dark:`MenuThemeEnum.DARK`},containerWidth:{"100%":`ContainerWidthEnum.FULL`,"1200px":`ContainerWidthEnum.BOXED`}},m=[{comment:`菜单类型`,key:`menuType`,enumMap:p.menuType},{comment:`菜单展开宽度`,key:`menuOpenWidth`},{comment:`菜单是否展开`,key:`menuOpen`},{comment:`双菜单是否显示文本`,key:`dualMenuShowText`},{comment:`系统主题类型`,key:`systemThemeType`,enumMap:p.systemTheme},{comment:`系统主题模式`,key:`systemThemeMode`,enumMap:p.systemTheme},{comment:`菜单风格`,key:`menuThemeType`,enumMap:p.menuTheme},{comment:`系统主题颜色`,key:`systemThemeColor`},{comment:`是否显示菜单按钮`,key:`showMenuButton`},{comment:`是否显示刷新按钮`,key:`showRefreshButton`},{comment:`是否显示面包屑`,key:`showCrumbs`},{comment:`是否显示工作台标签`,key:`showWorkTab`},{comment:`是否显示水印`,key:`watermarkVisible`},{comment:`是否唯一展开`,key:`uniqueOpened`},{comment:`是否色弱模式`,key:`colorWeak`},{comment:`是否刷新`,key:`refresh`},{comment:`边框模式`,key:`boxBorderMode`},{comment:`页面过渡效果`,key:`pageTransition`},{comment:`标签页样式`,key:`tabStyle`},{comment:`自定义圆角`,key:`customRadius`},{comment:`容器宽度`,key:`containerWidth`,enumMap:p.containerWidth}],h=(e,t)=>e===null?`null`:e===void 0?`undefined`:t&&typeof e==`string`&&t[e]?t[e]:typeof e==`string`?`'${e}'`:typeof e==`boolean`||typeof e==`number`?String(e):JSON.stringify(e),_=()=>{let e=[`export const SETTING_DEFAULT_CONFIG = {`];return m.forEach(n=>{e.push(` /** ${n.comment} */`),e.push(` ${String(n.key)}: ${h(t[n.key],n.enumMap)},`)}),e.push(`}`),e.join(`
|
|
2
|
+
`)},y=async()=>{try{let e=_();await o(e),l.value&&se.success({message:`配置已复制到剪贴板,可粘贴到 anvero-layout/config.ts 的 SETTING_DEFAULT_CONFIG 中`,duration:3e3})}catch(e){console.error(`复制配置失败:`,e),se.error(`复制失败,请重试`)}},b=async()=>{try{let e=fn;t.menuType=e.menuType,t.menuOpenWidth=e.menuOpenWidth,t.menuOpen=e.menuOpen,t.dualMenuShowText=e.dualMenuShowText,f(e.systemThemeMode),await v(),t.menuThemeType=t.isDark?J.DARK:e.menuThemeType,t.systemThemeColor=e.systemThemeColor,t.showMenuButton=e.showMenuButton,t.showRefreshButton=e.showRefreshButton,t.showCrumbs=e.showCrumbs,t.showWorkTab=e.showWorkTab,t.watermarkVisible=e.watermarkVisible,t.uniqueOpened=e.uniqueOpened,t.colorWeak=e.colorWeak,t.boxBorderMode=e.boxBorderMode,t.pageTransition=e.pageTransition,t.tabStyle=e.tabStyle,t.customRadius=e.customRadius,t.containerWidth=e.containerWidth,location.reload()}catch(e){console.error(`重置配置失败:`,e),se.error(`重置失败,请刷新页面后重试`)}};return(e,t)=>{let o=O(`ElButton`),l=O(`ElDrawer`);return w(),s(`div`,Ki,[c(`div`,qi,[d(l,{size:`300px`,modelValue:M(n),"onUpdate:modelValue":t[1]||=e=>g(n)?n.value=e:null,"lock-scroll":!0,"with-header":!1,"destroy-on-close":!1,"modal-class":`setting-modal`,onOpen:M(r),onClose:M(i)},{default:z(()=>[c(`div`,Ji,[c(`div`,null,[c(`div`,Yi,[c(`div`,{onClick:t[0]||=(...e)=>M(a)&&M(a)(...e),class:`flex-cc c-p size-7.5 !transition-all duration-200 rounded hover:bg-g-300/80`},[d(Y,{icon:`ri:close-fill`,class:`block text-xl text-g-600`})])])]),d(Gi),d(Ii),d(Bi),d(Di),d(Ci),d(ki),d(xi),c(`div`,Xi,[d(o,{type:`primary`,class:`flex-1 !h-8`,onClick:y},{default:z(()=>[...t[2]||=[u(`复制配置`,-1)]]),_:1}),d(o,{type:`danger`,plain:``,class:`flex-1 !h-8`,onClick:b},{default:z(()=>[...t[3]||=[u(`重置配置`,-1)]]),_:1})])])]),_:1},8,[`modelValue`,`onOpen`,`onClose`])])])}}}),Qi=/* @__PURE__ */ f({__name:`index`,props:{content:{type:String,default:``},fontSize:{type:Number,default:16},fontColor:{type:String,default:`rgba(128, 128, 128, 0.2)`},rotate:{type:Number,default:-22},gapX:{type:Number,default:100},gapY:{type:Number,default:100},offsetX:{type:Number,default:50},offsetY:{type:Number,default:50},zIndex:{type:Number,default:3100}},setup(e){let t=$(),n=e,r=X(),a=i(()=>n.content||r.watermark);return(n,r)=>{let i=O(`ElWatermark`);return M(t).watermarkVisible?(w(),s(`div`,{key:0,class:`fixed left-0 top-0 h-screen w-screen pointer-events-none`,style:x({zIndex:e.zIndex})},[d(i,{content:a.value,font:{fontSize:e.fontSize,color:e.fontColor},rotate:e.rotate,gap:[e.gapX,e.gapY],offset:[e.offsetX,e.offsetY]},{default:z(()=>[...r[0]||=[c(`div`,{style:{height:`100vh`}},null,-1)]]),_:1},8,[`content`,`font`,`rotate`,`gap`,`offset`])],4)):o(``,!0)}}}),$i={class:`page-layout-root`},ea=/* @__PURE__ */ f({__name:`index`,props:{routes:{type:Array,default:()=>[]},settings:{type:Object,default:()=>({})},title:{type:String,default:`后台管理`},logo:{type:String,default:void 0},watermark:{type:String,default:`watermark`},homePath:{type:String,default:``},showSetting:{type:Boolean,default:!1}},setup(e){let t=e;Jn();let n=$(),r=cn(),i=sn(),o=X();R(()=>{t.title!==void 0&&(o.title=t.title),t.logo!==void 0&&(o.logo=t.logo),t.watermark!==void 0&&(o.watermark=t.watermark),t.homePath&&(o.homePath=t.homePath),o.showSetting=t.showSetting}),(Array.isArray(t.routes)&&t.routes.length>0||t.routes&&!Array.isArray(t.routes))&&r.setRoutes(t.routes),n.$patch(Object.fromEntries(Object.entries(t.settings).filter(([,e])=>e!=null)));let c=H();return L(()=>c.fullPath,()=>{c.path&&c.path!==`/`&&c.meta?.isHiddenTab!==!0&&i.openTab({name:c.name,path:c.path,title:c.meta?.title,icon:c.meta?.icon,keepAlive:c.meta?.isKeepAlive===!0,fixedTab:c.meta?.isFixedTab===!0,query:c.query})},{immediate:!0}),(e,r)=>(w(),s(`div`,$i,[(w(),a(k(M(oi)[M(n).menuType]),b(m(t)),l({_:2},[e.$slots[`header-left`]?{name:`header-left`,fn:z(()=>[D(e.$slots,`header-left`)]),key:`0`}:void 0,e.$slots[`header-right`]?{name:`header-right`,fn:z(()=>[D(e.$slots,`header-right`)]),key:`1`}:void 0,e.$slots.quick?{name:`quick`,fn:z(()=>[D(e.$slots,`quick`)]),key:`2`}:void 0]),1040)),d(Zi),d(Qi)]))}}),ta=/* @__PURE__ */ f({inheritAttrs:!1,__name:`index`,props:{icon:{type:String,required:!0},size:{type:[Number,String],default:void 0},color:{type:String,default:void 0}},setup(e){return(t,n)=>(w(),a(M(rn),_({icon:e.icon,width:e.size,height:e.size,color:e.color},t.$attrs),null,16,[`icon`,`width`,`height`,`color`]))}}),na={install(e){e.component(`PageLayout`,ea),e.component(`PageMain`,ve),e.component(`FlexRow`,me),e.component(`FlexCol`,pe),e.component(`FlexItem`,le),e.component(`IconifyIcon`,ta)}};export{ye as ContainerWidthEnum,J as MenuThemeEnum,K as MenuTypeEnum,q as SystemThemeEnum,na as default,cn as useLayoutMenuStore,X as useLayoutRuntimeStore,$ as useLayoutSettingStore,sn as useLayoutTabsStore};
|