2 lines
67 KiB
JavaScript
2 lines
67 KiB
JavaScript
var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(t,a,n)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[a]=n,r=(e,t)=>{for(var a in t||(t={}))l.call(t,a)&&s(e,a,t[a]);if(n)for(var a of n(t))o.call(t,a)&&s(e,a,t[a]);return e},i=(e,n)=>t(e,a(n));import{i as u,d as c,_ as d,o as p,c as h,a as v,b as f,e as m,h as g,w as b,g as y,f as w,j as A,r as k,u as x,E as C,N as E,k as S,l as T,m as M,n as B,p as I,q as V,s as _,t as z,v as L,x as P,y as O,z as D,A as N,B as R,C as F,D as H,F as j,G as Y,H as q,I as U,J as Q,K,L as G,M as W,O as X,P as J,Q as Z,R as $,T as ee,S as te,U as ae,V as ne,W as le,X as oe,Y as se,Z as re,$ as ie,a0 as ue,a1 as ce,a2 as de,a3 as pe,a4 as he,a5 as ve,a6 as fe,a7 as me,a8 as ge,a9 as be,aa as ye,ab as we,ac as Ae,ad as ke,ae as xe,af as Ce,ag as Ee,ah as Se,ai as Te,aj as Me,ak as Be,al as Ie,am as Ve,an as _e,ao as ze,ap as Le,aq as Pe,ar as Oe,as as De,at as Ne}from"./index-131368df.js";import{o as Re,a as Fe,T as He,b as je,E as Ye,_ as qe,c as Ue,d as Qe,e as Ke,f as Ge}from"./index-6931cb6a.js";import{t as We,U as Xe,C as Je,I as Ze,u as $e,a as et,b as tt,d as at}from"./index-dc1c8b9b.js";import{a as nt}from"./arrow-right-2e7d3193.js";import{m as lt}from"./typescript-7283c357.js";const ot=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter((e=>st(e)&&(e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent)(e))),st=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},rt=function(e,t,...a){let n;n=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const l=document.createEvent(n);return l.initEvent(t,...a),e.dispatchEvent(l),e},it=function(e){for(const t of e){const e=t.target.__resizeListeners__||[];e.length&&e.forEach((e=>{e()}))}};let ut;const ct=c({name:"Expand"}),dt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pt=[v("path",{fill:"currentColor",d:"M128 192h768v128H128V192zm0 256h512v128H128V448zm0 256h768v128H128V704zm576-352 192 160-192 128V352z"},null,-1)];var ht=d(ct,[["render",function(e,t,a,n,l,o){return p(),h("svg",dt,pt)}]]);const vt=c({name:"Fold"}),ft={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mt=[v("path",{fill:"currentColor",d:"M896 192H128v128h768V192zm0 256H384v128h512V448zm0 256H128v128h768V704zM320 384 128 512l192 128V384z"},null,-1)];var gt=d(vt,[["render",function(e,t,a,n,l,o){return p(),h("svg",ft,mt)}]]);const bt=c({name:"FullScreen"}),yt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wt=[v("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1)];var At=d(bt,[["render",function(e,t,a,n,l,o){return p(),h("svg",yt,wt)}]]);const kt=c({name:"More"}),xt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ct=[v("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1)];var Et=d(kt,[["render",function(e,t,a,n,l,o){return p(),h("svg",xt,Ct)}]]);const St=c({name:"Setting"}),Tt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Mt=[v("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1)];var Bt=d(St,[["render",function(e,t,a,n,l,o){return p(),h("svg",Tt,Mt)}]]);const It=c({name:"UserFilled"}),Vt={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_t=[v("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0zm544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"},null,-1)];var zt=d(It,[["render",function(e,t,a,n,l,o){return p(),h("svg",Vt,_t)}]]);var Lt=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Lt||{});const Pt=Symbol("breadcrumbKey"),Ot=e=>{if(m(e)||We("[useLockscreen]","You need to pass a ref param to this function"),!u||g(document.body,"el-popup-parent--hidden"))return;let t=0,a=!1,n="0",l=0;const o=()=>{k(document.body,"el-popup-parent--hidden"),a&&(document.body.style.paddingRight=n)};b(e,(e=>{if(!e)return void o();a=!g(document.body,"el-popup-parent--hidden"),a&&(n=document.body.style.paddingRight,l=Number.parseInt(y(document.body,"paddingRight"),10)),t=(()=>{var e;if(!u)return 0;if(void 0!==ut)return ut;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const a=t.offsetWidth;t.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",t.appendChild(n);const l=n.offsetWidth;return null==(e=t.parentNode)||e.removeChild(t),ut=a-l,ut})();const s=document.documentElement.clientHeight<document.body.scrollHeight,r=y(document.body,"overflowY");t>0&&(s||"scroll"===r)&&a&&(document.body.style.paddingRight=`${l+t}px`),w(document.body,"el-popup-parent--hidden")})),A((()=>o()))},Dt=[];u&&x(document,"keydown",(e=>{if(0!==Dt.length&&e.code===C.esc){e.stopPropagation();Dt[Dt.length-1].handleClose()}}));const Nt={LIGHT:"light",DARK:"dark"};S({autoClose:{type:Number,default:0},cutoff:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}});const Rt=S({size:{type:[Number,String],values:f,default:"",validator:e=>"number"==typeof e},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:T},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:M(String),default:"cover"}}),Ft={error:e=>e instanceof Event},Ht=["src","alt","srcset"];const jt=q(Y(c(i(r({},{name:"ElAvatar"}),{props:Rt,emits:Ft,setup(e,{emit:t}){const a=e,n=B("avatar"),l=I(!1),o=V((()=>{const{size:e,icon:t,shape:l}=a,o=[n.b()];return _(e)&&o.push(n.m(e)),t&&o.push(n.m("icon")),l&&o.push(n.m(l)),o})),s=V((()=>{const{size:e}=a;return z(e)?{"--el-avatar-size":L(e)}:void 0})),r=V((()=>({objectFit:a.fit})));function i(e){l.value=!0,t("error",e)}return b((()=>a.src),(()=>l.value=!1)),(e,t)=>(p(),h("span",{class:j(O(o)),style:P(O(s))},[!e.src&&!e.srcSet||l.value?e.icon?(p(),D(O(F),{key:1},{default:N((()=>[(p(),D(R(e.icon)))])),_:1})):H(e.$slots,"default",{key:2}):(p(),h("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:P(O(r)),onError:i},null,44,Ht))],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]])),Yt=S({separator:{type:String,default:"/"},separatorIcon:{type:T,default:""}});var qt=Y(c(i(r({},{name:"ElBreadcrumb"}),{props:Yt,setup(e){const t=e,a=B("breadcrumb"),n=I();return U(Pt,t),Q((()=>{const e=n.value.querySelectorAll(`.${a.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>(p(),h("div",{ref_key:"breadcrumb",ref:n,class:j(O(a).b()),"aria-label":"Breadcrumb",role:"navigation"},[H(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Ut=S({to:{type:M([String,Object]),default:""},replace:{type:Boolean,default:!1}});var Qt=Y(c(i(r({},{name:"ElBreadcrumbItem"}),{props:Ut,setup(e){const t=e,a=W().appContext.config.globalProperties.$router,n=K(Pt,{}),l=B("breadcrumb"),{separator:o,separatorIcon:s}=n,r=I(),i=()=>{t.to&&a&&(t.replace?a.replace(t.to):a.push(t.to))};return(e,t)=>(p(),h("span",{class:j(O(l).e("item"))},[v("span",{ref_key:"link",ref:r,class:j([O(l).e("inner"),O(l).is("link",!!e.to)]),role:"link",onClick:i},[H(e.$slots,"default")],2),O(s)?(p(),D(O(F),{key:0,class:j(O(l).e("separator"))},{default:N((()=>[(p(),D(R(O(s))))])),_:1},8,["class"])):(p(),h("span",{key:1,class:j(O(l).e("separator")),role:"presentation"},G(O(o)),3))],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Kt=q(qt,{BreadcrumbItem:Qt}),Gt=X(Qt),Wt=[],Xt=e=>{if(0===Wt.length)return;const t=Wt[Wt.length-1]["_trap-focus-children"];if(t.length>0&&e.code===C.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const a=e.shiftKey,n=e.target===t[0],l=e.target===t[t.length-1];n&&a&&(e.preventDefault(),t[t.length-1].focus()),l&&!a&&(e.preventDefault(),t[0].focus())}},Jt={beforeMount(e){e["_trap-focus-children"]=ot(e),Wt.push(e),Wt.length<=1&&Re(document,"keydown",Xt)},updated(e){J((()=>{e["_trap-focus-children"]=ot(e)}))},unmounted(){Wt.shift(),0===Wt.length&&Fe(document,"keydown",Xt)}},Zt={beforeMount(e,t){var a,n;e._handleResize=()=>{var a;e&&(null==(a=t.value)||a.call(t,e))},a=e,n=e._handleResize,u&&a&&(a.__resizeListeners__||(a.__resizeListeners__=[],a.__ro__=new ResizeObserver(it),a.__ro__.observe(a)),a.__resizeListeners__.push(n))},beforeUnmount(e){var t,a,n;t=e,a=e._handleResize,t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(a),1),t.__resizeListeners__.length||null==(n=t.__ro__)||n.disconnect())}};var $t=Y(c({name:"ElCollapseTransition",setup:()=>({ns:B("collapse-transition"),on:{beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}})}),[["render",function(e,t,a,n,l,o){return p(),D(ee,Z({name:e.ns.b()},$(e.on)),{default:N((()=>[H(e.$slots,"default")])),_:3},16,["name"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);$t.install=e=>{e.component($t.name,$t)};const ea=$t;const ta=c({name:"ElOverlay",props:S({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:M([String,Array,Object])},zIndex:{type:M([String,Number])}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:a}){const n=B("overlay"),{onClick:l,onMousedown:o,onMouseup:s}=(e=>{if(!e)return{onClick:E,onMousedown:E,onMouseup:E};let t=!1,a=!1;return{onClick:n=>{t&&a&&e(n),t=a=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{a=e.target===e.currentTarget}}})(e.customMaskEvent?void 0:e=>{a("click",e)});return()=>e.mask?te("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:o,onMouseup:s},[H(t,"default")],Lt.STYLE|Lt.CLASS|Lt.PROPS,["onClick","onMouseup","onMousedown"]):ae("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[H(t,"default")])}}),aa=S({center:{type:Boolean,default:!1},closeIcon:{type:T,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),na=S(i(r({},aa),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:M(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),la={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Xe]:e=>ne(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},oa=(e,t)=>{const a=W().emit,{nextZIndex:n}=le();let l="";const o=I(!1),s=I(!1),r=I(!1),i=I(e.zIndex||n());let c,d;const p=V((()=>z(e.width)?`${e.width}px`:e.width)),h=V((()=>{const t={};return e.fullscreen||(e.top&&(t["--el-dialog-margin-top"]=e.top),e.width&&(t["--el-dialog-width"]=p.value)),t}));function v(){null==d||d(),null==c||c(),e.openDelay&&e.openDelay>0?({stop:c}=oe((()=>y()),e.openDelay)):y()}function f(){null==c||c(),null==d||d(),e.closeDelay&&e.closeDelay>0?({stop:d}=oe((()=>w()),e.closeDelay)):w()}function g(){e.beforeClose?e.beforeClose((function(e){e||(s.value=!0,o.value=!1)})):f()}function y(){u&&(o.value=!0)}function w(){o.value=!1}return e.lockScroll&&Ot(o),e.closeOnPressEscape&&((e,t)=>{b(t,(t=>{t?Dt.push(e):Dt.splice(Dt.indexOf(e),1)}))})({handleClose:g},o),((e,t)=>{let a;b((()=>e.value),(e=>{var n,l;e?(a=document.activeElement,m(t)&&(null==(l=(n=t.value).focus)||l.call(n))):a.focus()}))})(o),b((()=>e.modelValue),(l=>{l?(s.value=!1,v(),r.value=!0,a("open"),i.value=e.zIndex?i.value++:n(),J((()=>{t.value&&(t.value.scrollTop=0)}))):o.value&&f()})),b((()=>e.fullscreen),(e=>{t.value&&(e?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)})),Q((()=>{e.modelValue&&(o.value=!0,r.value=!0,v())})),{afterEnter:function(){a("opened")},afterLeave:function(){a("closed"),a(Xe,!1),e.destroyOnClose&&(r.value=!1)},beforeLeave:function(){a("close")},handleClose:g,onModalClick:function(){e.closeOnClickModal&&g()},close:f,doClose:w,closed:s,style:h,rendered:r,visible:o,zIndex:i}},sa=S(i(r({},na),{direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}})),ra=c({name:"ElDrawer",components:{ElOverlay:ta,ElIcon:F,Close:se},directives:{TrapFocus:Jt},props:sa,emits:la,setup(e,t){const a=I(),n=B("drawer"),l=V((()=>"rtl"===e.direction||"ltr"===e.direction)),o=V((()=>"number"==typeof e.size?`${e.size}px`:e.size));return i(r({},oa(e,t)),{drawerRef:a,isHorizontal:l,drawerSize:o,ns:n})}}),ia=["aria-labelledby","aria-label"],ua=["id"],ca=["title"],da=["aria-label"];const pa=q(Y(ra,[["render",function(e,t,a,n,l,o){const s=re("close"),r=re("el-icon"),i=re("el-overlay"),u=ie("trap-focus");return p(),D(he,{to:"body",disabled:!e.appendToBody},[te(ee,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave},{default:N((()=>[ue(te(i,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:N((()=>[ue((p(),h("div",{ref:"drawerRef","aria-modal":"true","aria-labelledby":e.ns.e("title"),"aria-label":e.title,class:j([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:P(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=pe((()=>{}),["stop"]))},[e.withHeader?(p(),h("header",{key:0,id:e.ns.e("title"),class:j(e.ns.e("header"))},[H(e.$slots,"title",{},(()=>[v("span",{role:"heading",title:e.title},G(e.title),9,ca)])),e.showClose?(p(),h("button",{key:0,"aria-label":"close "+(e.title||"drawer"),class:j(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...t)=>e.handleClose&&e.handleClose(...t))},[te(r,{class:j(e.ns.e("close"))},{default:N((()=>[te(s)])),_:1},8,["class"])],10,da)):de("v-if",!0)],10,ua)):de("v-if",!0),e.rendered?(p(),h("section",{key:1,class:j(e.ns.e("body"))},[H(e.$slots,"default")],2)):de("v-if",!0),e.$slots.footer?(p(),h("div",{key:2,class:j(e.ns.e("footer"))},[H(e.$slots,"footer")],2)):de("v-if",!0)],14,ia)),[[u]])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[ce,e.visible]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]));class ha{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let a=!1;switch(t.code){case C.down:this.gotoSubIndex(this.subIndex+1),a=!0;break;case C.up:this.gotoSubIndex(this.subIndex-1),a=!0;break;case C.tab:rt(e,"mouseleave");break;case C.enter:case C.space:a=!0,t.currentTarget.click()}return a&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}class va{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new ha(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case C.down:rt(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case C.up:rt(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case C.tab:rt(e.currentTarget,"mouseleave");break;case C.enter:case C.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}}class fa{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new va(t,e)}))}}var ma=Y(c({name:"ElMenuCollapseTransition",setup(){const e=B("menu");return{listeners:{onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,a){w(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",a()},onAfterEnter(t){k(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),g(t,e.m("collapse"))?(k(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),w(t,e.m("collapse"))):(w(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),k(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){w(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}}}}}),[["render",function(e,t,a,n,l,o){return p(),D(ee,Z({mode:"out-in"},e.listeners),{default:N((()=>[H(e.$slots,"default")])),_:3},16)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function ga(e,t){const a=K("rootMenu");a||We("useMenu","can not inject root menu");const n=V((()=>{let a=e.parent;const n=[t.value];for(;"ElMenu"!==a.type.name;)a.props.index&&n.unshift(a.props.index),a=a.parent;return n}));return{parentMenu:V((()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t})),paddingStyle:V((()=>{let t=e.parent;if("vertical"!==a.props.mode)return{};let n=20;if(a.props.collapse)n=20;else for(;t&&"ElMenu"!==t.type.name;)"ElSubMenu"===t.type.name&&(n+=20),t=t.parent;return{paddingLeft:`${n}px`}})),indexPath:n}}function ba(e){return V((()=>{const t=e.backgroundColor;return t?new He(t).shade(20).toString():""}))}const ya=e=>V((()=>({"--el-menu-text-color":e.textColor||"","--el-menu-hover-text-color":e.textColor||"","--el-menu-bg-color":e.backgroundColor||"","--el-menu-hover-bg-color":ba(e).value||"","--el-menu-active-color":e.activeTextColor||""}))),wa=S({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}});var Aa=c({name:"ElSubMenu",props:wa,setup(e,{slots:t,expose:a}){const n=W(),{paddingStyle:l,indexPath:o,parentMenu:s}=ga(n,V((()=>e.index))),r=B("menu"),i=B("sub-menu"),u=K("rootMenu");u||We("ElSubMenu","can not inject root menu");const c=K(`subMenu:${s.value.uid}`);c||We("ElSubMenu","can not inject sub menu");const d=I({}),p=I({});let h;const v=I(!1),f=I(),m=I(null),g=V((()=>"horizontal"===_.value&&w.value?"bottom-start":"right-start")),y=V((()=>"horizontal"===_.value&&w.value||"vertical"===_.value&&!u.props.collapse?je:nt)),w=V((()=>{let e=!0,t=n.parent;for(;t&&"ElMenu"!==t.type.name;){if(["ElSubMenu","ElMenuItemGroup"].includes(t.type.name)){e=!1;break}t=t.parent}return e})),A=V((()=>void 0===e.popperAppendToBody?w.value:Boolean(e.popperAppendToBody))),k=V((()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`)),x=V((()=>"horizontal"===_.value&&w.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"])),C=V((()=>u.openedMenus.includes(e.index))),E=V((()=>{let e=!1;return Object.values(d.value).forEach((t=>{t.active&&(e=!0)})),Object.values(p.value).forEach((t=>{t.active&&(e=!0)})),e})),S=V((()=>u.props.backgroundColor||"")),T=V((()=>u.props.activeTextColor||"")),M=V((()=>u.props.textColor||"")),_=V((()=>u.props.mode)),z=ve({index:e.index,indexPath:o,active:E}),L=V((()=>"horizontal"!==_.value?{color:M.value}:{borderBottomColor:E.value?u.props.activeTextColor?T.value:"":"transparent",color:E.value?T.value:M.value})),P=e=>{var t,a,n;e||null==(n=null==(a=null==(t=m.value)?void 0:t.popperRef)?void 0:a.popperInstanceRef)||n.destroy()},O=()=>{"hover"===u.props.menuTrigger&&"horizontal"===u.props.mode||u.props.collapse&&"vertical"===u.props.mode||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:E.value})},D=(t,a=e.showTimeout)=>{var n;("focus"!==t.type||t.relatedTarget)&&("click"===u.props.menuTrigger&&"horizontal"===u.props.mode||!u.props.collapse&&"vertical"===u.props.mode||e.disabled||(c.mouseInChild.value=!0,null==h||h(),({stop:h}=oe((()=>{u.openMenu(e.index,o.value)}),a)),A.value&&(null==(n=s.value.vnode.el)||n.dispatchEvent(new MouseEvent("mouseenter")))))},N=(t=!1)=>{var a,l;"click"===u.props.menuTrigger&&"horizontal"===u.props.mode||!u.props.collapse&&"vertical"===u.props.mode||(null==h||h(),c.mouseInChild.value=!1,({stop:h}=oe((()=>!v.value&&u.closeMenu(e.index,o.value)),e.hideTimeout)),A.value&&t&&"ElSubMenu"===(null==(a=n.parent)?void 0:a.type.name)&&(null==(l=c.handleMouseleave)||l.call(c,!0)))};b((()=>u.props.collapse),(e=>P(Boolean(e))));{const e=e=>{p.value[e.index]=e},t=e=>{delete p.value[e.index]};U(`subMenu:${n.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:N,mouseInChild:v})}return a({opened:C}),Q((()=>{u.addSubMenu(z),c.addSubMenu(z)})),fe((()=>{c.removeSubMenu(z),u.removeSubMenu(z)})),()=>{var a;const n=[null==(a=t.title)?void 0:a.call(t),ae(F,{class:i.e("icon-arrow")},{default:()=>ae(y.value)})],o=ya(u.props),s=u.isMenuPopup?ae(Ye,{ref:m,visible:C.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:A.value,fallbackPlacements:x.value,transition:k.value,gpuAcceleration:!1},{content:()=>{var a;return ae("div",{class:[r.m(_.value),e.popperClass],onMouseenter:e=>D(e,100),onMouseleave:()=>N(!0),onFocus:e=>D(e,100)},[ae("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${g.value}`)],style:o.value},[null==(a=t.default)?void 0:a.call(t)])])},default:()=>ae("div",{class:i.e("title"),style:[l.value,L.value,{backgroundColor:S.value}],onClick:O},n)}):ae(me,{},[ae("div",{class:i.e("title"),style:[l.value,L.value,{backgroundColor:S.value}],ref:f,onClick:O},n),ae(ea,{},{default:()=>{var e;return ue(ae("ul",{role:"menu",class:[r.b(),r.m("inline")],style:o.value},[null==(e=t.default)?void 0:e.call(t)]),[[ce,C.value]])}})]);return ae("li",{class:[i.b(),i.is("active",E.value),i.is("opened",C.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:D,onMouseleave:()=>N(!0),onFocus:D},[s])}}});const ka=S({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:M(Array),default:()=>lt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),xa=e=>Array.isArray(e)&&e.every((e=>_(e)));var Ca=c({name:"ElMenu",props:ka,emits:{close:(e,t)=>_(e)&&xa(t),open:(e,t)=>_(e)&&xa(t),select:(e,t,a,n)=>_(e)&&xa(t)&&ge(a)&&(void 0===n||n instanceof Promise)},setup(e,{emit:t,slots:a,expose:n}){const l=W(),o=l.appContext.config.globalProperties.$router,s=I(),r=B("menu"),i=B("sub-menu"),u=I(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=I(e.defaultActive),d=I({}),p=I({}),h=V((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),v=()=>{const t=c.value&&d.value[c.value];if(!t||"horizontal"===e.mode||e.collapse)return;t.indexPath.forEach((e=>{const t=p.value[e];t&&f(e,t.indexPath)}))},f=(a,n)=>{u.value.includes(a)||(e.uniqueOpened&&(u.value=u.value.filter((e=>n.includes(e)))),u.value.push(a),t("open",a,n))},m=(e,a)=>{const n=u.value.indexOf(e);-1!==n&&u.value.splice(n,1),t("close",e,a)},g=({index:e,indexPath:t})=>{u.value.includes(e)?m(e,t):f(e,t)},y=a=>{("horizontal"===e.mode||e.collapse)&&(u.value=[]);const{index:n,indexPath:l}=a;if(void 0!==n&&void 0!==l)if(e.router&&o){const e=a.route||n,s=o.push(e).then((e=>(e||(c.value=n),e)));t("select",n,l,{index:n,indexPath:l,route:e},s)}else c.value=n,t("select",n,l,{index:n,indexPath:l})},w=()=>{J((()=>l.proxy.$forceUpdate()))};b((()=>e.defaultActive),(t=>{d.value[t]||(c.value=""),(t=>{const a=d.value,n=a[t]||c.value&&a[c.value]||a[e.defaultActive];n?(c.value=n.index,v()):c.value=t})(t)})),b(d.value,(()=>v())),b((()=>e.collapse),(e=>{e&&(u.value=[])}));{const t=e=>{p.value[e.index]=e},a=e=>{delete p.value[e.index]},n=e=>{d.value[e.index]=e},o=e=>{delete d.value[e.index]};U("rootMenu",ve({props:e,openedMenus:u,items:d,subMenus:p,activeIndex:c,isMenuPopup:h,addMenuItem:n,removeMenuItem:o,addSubMenu:t,removeSubMenu:a,openMenu:f,closeMenu:m,handleMenuItemClick:y,handleSubMenuClick:g})),U(`subMenu:${l.uid}`,{addSubMenu:t,removeSubMenu:a,mouseInChild:I(!1)})}Q((()=>{v(),"horizontal"===e.mode&&new fa(l.vnode.el,r.namespace.value)}));n({open:e=>{const{indexPath:t}=p.value[e];t.forEach((e=>f(e,t)))},close:m,handleResize:w});const A=e=>{const t=Array.isArray(e)?e:[e],a=[];return t.forEach((e=>{Array.isArray(e.children)?a.push(...A(e.children)):a.push(e)})),a};return()=>{var t,n,l,o;let u=null!=(n=null==(t=a.default)?void 0:t.call(a))?n:[];const c=[];if("horizontal"===e.mode&&s.value){const t=Array.from(null!=(o=null==(l=s.value)?void 0:l.childNodes)?o:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),a=A(u),n=64,r=Number.parseInt(getComputedStyle(s.value).paddingLeft,10),d=Number.parseInt(getComputedStyle(s.value).paddingRight,10),p=s.value.clientWidth-r-d;let h=0,v=0;t.forEach(((e,t)=>{h+=e.offsetWidth||0,h<=p-n&&(v=t+1)}));const f=a.slice(0,v),m=a.slice(v);(null==m?void 0:m.length)&&e.ellipsis&&(u=f,c.push(ae(Aa,{index:"sub-menu-more",class:i.e("hide-arrow")},{title:()=>ae(F,{class:i.e("icon-more")},{default:()=>ae(Et)}),default:()=>m})))}const d=ya(e),p=(h=ae("ul",{key:String(e.collapse),role:"menubar",ref:s,style:d.value,class:{[r.b()]:!0,[r.m("horizontal")]:"horizontal"===e.mode,[r.m("collapse")]:e.collapse}},[...u,...c]),e.ellipsis?(v=h,"horizontal"===e.mode?ue(v,[[Zt,w]]):v):h);var h,v;return e.collapseTransition&&"vertical"===e.mode?ae(ma,(()=>p)):p}}});const Ea=S({index:{type:M([String,null]),default:null},route:{type:M([String,Object])},disabled:Boolean});var Sa=Y(c({name:"ElMenuItem",components:{ElTooltip:Ye},props:Ea,emits:{click:e=>_(e.index)&&Array.isArray(e.indexPath)},setup(e,{emit:t}){const a=W(),n=K("rootMenu"),l=B("menu"),o=B("menu-item");n||We("ElMenuItem","can not inject root menu");const{parentMenu:s,paddingStyle:r,indexPath:i}=ga(a,be(e,"index")),u=K(`subMenu:${s.value.uid}`);u||We("ElMenuItem","can not inject sub menu");const c=V((()=>e.index===n.activeIndex)),d=ve({index:e.index,indexPath:i,active:c});return Q((()=>{u.addSubMenu(d),n.addMenuItem(d)})),fe((()=>{u.removeSubMenu(d),n.removeMenuItem(d)})),{Effect:Nt,parentMenu:s,rootMenu:n,paddingStyle:r,active:c,nsMenu:l,nsMenuItem:o,handleClick:()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",d))}}}}),[["render",function(e,t,a,n,l,o){const s=re("el-tooltip");return p(),h("li",{class:j([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",style:P(e.paddingStyle),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?(p(),D(s,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:N((()=>[H(e.$slots,"title")])),default:N((()=>[v("div",{class:j(e.nsMenu.be("tooltip","trigger"))},[H(e.$slots,"default")],2)])),_:3},8,["effect"])):(p(),h(me,{key:1},[H(e.$slots,"default"),H(e.$slots,"title")],64))],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);var Ta=Y(c({name:"ElMenuItemGroup",props:{title:String},setup(){const e=W(),t=K("rootMenu");t||We("ElMenuItemGroup","can not inject root menu");const a=B("menu-item-group");return{levelPadding:V((()=>{if(t.props.collapse)return 20;let a=20,n=e.parent;for(;n&&"ElMenu"!==n.type.name;)"ElSubMenu"===n.type.name&&(a+=20),n=n.parent;return a})),ns:a}}}),[["render",function(e,t,a,n,l,o){return p(),h("li",{class:j(e.ns.b())},[v("div",{class:j(e.ns.e("title")),style:P({paddingLeft:`${e.levelPadding}px`})},[e.$slots.title?H(e.$slots,"title",{key:1}):(p(),h(me,{key:0},[ye(G(e.title),1)],2112))],6),v("ul",null,[H(e.$slots,"default")])],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const Ma=q(Ca,{MenuItem:Sa,MenuItemGroup:Ta,SubMenu:Aa}),Ba=X(Sa);X(Ta);const Ia=X(Aa),Va=S({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:T,default:""},inactiveIcon:{type:T,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:M(Function)},size:{type:String,validator:e=>["",...f].includes(e)}}),_a=c({name:"ElSwitch",components:{ElIcon:F,Loading:we},props:Va,emits:{[Xe]:e=>ne(e)||_(e)||z(e),[Je]:e=>ne(e)||_(e)||z(e),[Ze]:e=>ne(e)||_(e)||z(e)},setup(e,{emit:t}){const{formItem:a}=$e(),n=et(V((()=>e.loading))),l=B("switch"),o=tt(),s=I(!1!==e.modelValue),r=I(),i=I(),u=V((()=>[l.b(),l.m(o.value),l.is("disabled",n.value),l.is("checked",d.value)]));b((()=>e.modelValue),(()=>{s.value=!0})),b((()=>e.value),(()=>{s.value=!1}));const c=V((()=>s.value?e.modelValue:e.value)),d=V((()=>c.value===e.activeValue));[e.activeValue,e.inactiveValue].includes(c.value)||(t(Xe,e.inactiveValue),t(Je,e.inactiveValue),t(Ze,e.inactiveValue)),b(d,(()=>{var t;r.value.checked=d.value,(e.activeColor||e.inactiveColor)&&h(),e.validateEvent&&(null==(t=null==a?void 0:a.validate)||t.call(a,"change").catch((e=>at())))}));const p=()=>{const a=d.value?e.inactiveValue:e.activeValue;t(Xe,a),t(Je,a),t(Ze,a),J((()=>{r.value.checked=d.value}))},h=()=>{const t=d.value?e.activeColor:e.inactiveColor,a=i.value;e.borderColor?a.style.borderColor=e.borderColor:e.borderColor||(a.style.borderColor=t),a.style.backgroundColor=t,a.children[0].style.color=t};return Q((()=>{(e.activeColor||e.inactiveColor||e.borderColor)&&h(),r.value.checked=d.value})),{ns:l,input:r,core:i,switchDisabled:n,checked:d,switchKls:u,handleChange:p,switchValue:()=>{if(n.value)return;const{beforeChange:t}=e;if(!t)return void p();const a=t();[Ae(a),ne(a)].some((e=>e))||We("ElSwitch","beforeChange must return type `Promise<boolean>` or `boolean`"),Ae(a)?a.then((e=>{e&&p()})).catch((e=>{})):a&&p()},focus:()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.focus)||t.call(e)}}}}),za=["aria-checked","aria-disabled"],La=["id","name","true-value","false-value","disabled"],Pa=["aria-hidden"],Oa=["aria-hidden"],Da=["aria-hidden"],Na=["aria-hidden"];const Ra=q(Y(_a,[["render",function(e,t,a,n,l,o){const s=re("el-icon"),r=re("loading");return p(),h("div",{class:j(e.switchKls),role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled,onClick:t[2]||(t[2]=pe(((...t)=>e.switchValue&&e.switchValue(...t)),["prevent"]))},[v("input",{id:e.id,ref:"input",class:j(e.ns.e("input")),type:"checkbox",name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled,onChange:t[0]||(t[0]=(...t)=>e.handleChange&&e.handleChange(...t)),onKeydown:t[1]||(t[1]=ke(((...t)=>e.switchValue&&e.switchValue(...t)),["enter"]))},null,42,La),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?de("v-if",!0):(p(),h("span",{key:0,class:j([e.ns.e("label"),e.ns.em("label","left"),e.ns.is("active",!e.checked)])},[e.inactiveIcon?(p(),D(s,{key:0},{default:N((()=>[(p(),D(R(e.inactiveIcon)))])),_:1})):de("v-if",!0),!e.inactiveIcon&&e.inactiveText?(p(),h("span",{key:1,"aria-hidden":e.checked},G(e.inactiveText),9,Pa)):de("v-if",!0)],2)),v("span",{ref:"core",class:j(e.ns.e("core")),style:P({width:(e.width||40)+"px"})},[e.inlinePrompt?(p(),h("div",{key:0,class:j(e.ns.e("inner"))},[e.activeIcon||e.inactiveIcon?(p(),h(me,{key:0},[e.activeIcon?(p(),D(s,{key:0,class:j([e.ns.is("icon"),e.checked?e.ns.is("show"):e.ns.is("hide")])},{default:N((()=>[(p(),D(R(e.activeIcon)))])),_:1},8,["class"])):de("v-if",!0),e.inactiveIcon?(p(),D(s,{key:1,class:j([e.ns.is("icon"),e.checked?e.ns.is("hide"):e.ns.is("show")])},{default:N((()=>[(p(),D(R(e.inactiveIcon)))])),_:1},8,["class"])):de("v-if",!0)],64)):e.activeText||e.inactiveIcon?(p(),h(me,{key:1},[e.activeText?(p(),h("span",{key:0,class:j([e.ns.is("text"),e.checked?e.ns.is("show"):e.ns.is("hide")]),"aria-hidden":!e.checked},G(e.activeText.substring(0,3)),11,Oa)):de("v-if",!0),e.inactiveText?(p(),h("span",{key:1,class:j([e.ns.is("text"),e.checked?e.ns.is("hide"):e.ns.is("show")]),"aria-hidden":e.checked},G(e.inactiveText.substring(0,3)),11,Da)):de("v-if",!0)],64)):de("v-if",!0)],2)):de("v-if",!0),v("div",{class:j(e.ns.e("action"))},[e.loading?(p(),D(s,{key:0,class:j(e.ns.is("loading"))},{default:N((()=>[te(r)])),_:1},8,["class"])):de("v-if",!0)],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?de("v-if",!0):(p(),h("span",{key:1,class:j([e.ns.e("label"),e.ns.em("label","right"),e.ns.is("active",e.checked)])},[e.activeIcon?(p(),D(s,{key:0},{default:N((()=>[(p(),D(R(e.activeIcon)))])),_:1})):de("v-if",!0),!e.activeIcon&&e.activeText?(p(),h("span",{key:1,"aria-hidden":!e.checked},G(e.activeText),9,Na)):de("v-if",!0)],2))],10,za)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]])),Fa=!0,Ha=!0,ja=!1,Ya=!0,qa=!0,Ua=!0,Qa=xe({id:"settings",state:()=>({fixedHeader:ja,showSettings:Fa,showTagsView:Ha,showSidebarLogo:Ya,showThemeSwitch:qa,showScreenfull:Ua}),actions:{changeSetting(e){const{key:t,value:a}=e;switch(t){case"fixedHeader":this.fixedHeader=a;break;case"showSettings":this.showSettings=a;break;case"showSidebarLogo":this.showSidebarLogo=a;break;case"showTagsView":this.showTagsView=a;break;case"showThemeSwitch":this.showThemeSwitch=a;break;case"showScreenfull":this.showScreenfull=a}}}});const Ka={class:"app-main"};var Ga=Ce(c({setup(e){const t=Ee(),a=V((()=>t.path));return(e,t)=>{const n=re("router-view");return p(),h("section",Ka,[te(n,null,{default:N((({Component:e})=>[te(ee,{name:"fade-transform",mode:"out-in"},{default:N((()=>[(p(),D(R(e),{key:O(a)}))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-cb070c30"]]);function Wa(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var n=e[a];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:a,value:e[a++]});else{var l=1,o="";if("?"===e[r=a+1])throw new TypeError('Pattern cannot start with "?" at '+r);for(;r<e.length;)if("\\"!==e[r]){if(")"===e[r]){if(0==--l){r++;break}}else if("("===e[r]&&(l++,"?"!==e[r+1]))throw new TypeError("Capturing groups are not allowed at "+r);o+=e[r++]}else o+=e[r++]+e[r++];if(l)throw new TypeError("Unbalanced pattern at "+a);if(!o)throw new TypeError("Missing pattern at "+a);t.push({type:"PATTERN",index:a,value:o}),a=r}else{for(var s="",r=a+1;r<e.length;){var i=e.charCodeAt(r);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i))break;s+=e[r++]}if(!s)throw new TypeError("Missing parameter name at "+a);t.push({type:"NAME",index:a,value:s}),a=r}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),n=t.prefixes,l=void 0===n?"./":n,o="[^"+function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?")+"]+?",s=[],r=0,i=0,u="",c=function(e){if(i<a.length&&a[i].type===e)return a[i++].value},d=function(e){var t=c(e);if(void 0!==t)return t;var n=a[i],l=n.type,o=n.index;throw new TypeError("Unexpected "+l+" at "+o+", expected "+e)},p=function(){for(var e,t="";e=c("CHAR")||c("ESCAPED_CHAR");)t+=e;return t};i<a.length;){var h=c("CHAR"),v=c("NAME"),f=c("PATTERN");if(v||f){var m=h||"";-1===l.indexOf(m)&&(u+=m,m=""),u&&(s.push(u),u=""),s.push({name:v||r++,prefix:m,suffix:"",pattern:f||o,modifier:c("MODIFIER")||""})}else{var g=h||c("ESCAPED_CHAR");if(g)u+=g;else if(u&&(s.push(u),u=""),c("OPEN")){m=p();var b=c("NAME")||"",y=c("PATTERN")||"",w=p();d("CLOSE"),s.push({name:b||(y?r++:""),pattern:b&&!y?o:y,prefix:m,suffix:w,modifier:c("MODIFIER")||""})}else d("END")}}return s}function Xa(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),n=t.encode,l=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,r=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",a)}));return function(t){for(var a="",n=0;n<e.length;n++){var o=e[n];if("string"!=typeof o){var i=t?t[o.name]:void 0,u="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(i)){if(!c)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===i.length){if(u)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var d=0;d<i.length;d++){var p=l(i[d],o);if(s&&!r[n].test(p))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');a+=o.prefix+p+o.suffix}}else if("string"!=typeof i&&"number"!=typeof i){if(!u){var h=c?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+h)}}else{p=l(String(i),o);if(s&&!r[n].test(p))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');a+=o.prefix+p+o.suffix}}else a+=o}return a}}(Wa(e,t),t)}const Ja={key:0,class:"no-redirect"},Za=["onClick"];var $a=Ce(c({setup(e){const t=Ee(),a=Se(),n=ve({breadcrumbs:[],getBreadcrumb:()=>{const e=t.matched.filter((e=>e.meta&&e.meta.title));n.breadcrumbs=e.filter((e=>e.meta&&e.meta.title&&!1!==e.meta.breadcrumb))},handleLink(e){const{redirect:n,path:l}=e;n?a.push(n).catch((e=>{console.warn(e)})):a.push((e=>{const{params:a}=t;return Xa(e)(a)})(l)).catch((e=>{console.warn(e)}))}});return b((()=>t.path),(e=>{e.startsWith("/redirect/")||n.getBreadcrumb()})),Te((()=>{n.getBreadcrumb()})),(e,t)=>{const a=Gt,l=Kt;return p(),D(l,{class:"app-breadcrumb"},{default:N((()=>[te(Be,{name:"breadcrumb"},{default:N((()=>[(p(!0),h(me,null,Me(O(n).breadcrumbs,((e,t)=>(p(),D(a,{key:e.path},{default:N((()=>["noRedirect"===e.redirect||t===O(n).breadcrumbs.length-1?(p(),h("span",Ja,G(e.meta.title),1)):(p(),h("a",{key:1,onClick:pe((t=>O(n).handleLink(e)),["prevent"])},G(e.meta.title),9,Za))])),_:2},1024)))),128))])),_:1})])),_:1})}}}),[["__scopeId","data-v-ec43d4d4"]]);var en=Ce(c({props:{isActive:{type:Boolean,default:!1}},emits:["toggle-click"],setup(e,{emit:t}){const a=()=>{t("toggle-click")};return(t,n)=>{const l=F;return p(),h("div",{onClick:a},[te(l,{size:20,class:"icon"},{default:N((()=>[e.isActive?(p(),D(O(gt),{key:0})):(p(),D(O(ht),{key:1}))])),_:1})])}}}),[["__scopeId","data-v-185d6f6c"]]);const tn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],an=(()=>{const e=tn[0],t={};for(const a of tn){if((null==a?void 0:a[1])in document){for(const[n,l]of a.entries())t[e[n]]=l;return t}}return!1})(),nn={change:an.fullscreenchange,error:an.fullscreenerror};let ln={request:(e=document.documentElement,t)=>new Promise(((a,n)=>{const l=()=>{ln.off("change",l),a()};ln.on("change",l);const o=e[an.requestFullscreen](t);o instanceof Promise&&o.then(l).catch(n)})),exit:()=>new Promise(((e,t)=>{if(!ln.isFullscreen)return void e();const a=()=>{ln.off("change",a),e()};ln.on("change",a);const n=document[an.exitFullscreen]();n instanceof Promise&&n.then(a).catch(t)})),toggle:(e,t)=>ln.isFullscreen?ln.exit():ln.request(e,t),onchange(e){ln.on("change",e)},onerror(e){ln.on("error",e)},on(e,t){const a=nn[e];a&&document.addEventListener(a,t,!1)},off(e,t){const a=nn[e];a&&document.removeEventListener(a,t,!1)},raw:an};Object.defineProperties(ln,{isFullscreen:{get:()=>Boolean(document[an.fullscreenElement])},element:{enumerable:!0,get:()=>{var e;return null!=(e=document[an.fullscreenElement])?e:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[an.fullscreenEnabled])}}),an||(ln={isEnabled:!1});var on=ln;const sn=c({setup(e){const t=()=>{on.isEnabled?on.toggle():Ie.warning("您的浏览器无法工作")};return(e,a)=>{const n=F,l=Ye;return p(),h("div",{onClick:t},[te(l,{effect:"dark",content:"全屏",placement:"bottom"},{default:N((()=>[te(n,{size:20},{default:N((()=>[te(O(At))])),_:1})])),_:1})])}}});const rn=e=>(ze("data-v-c841ea90"),e=e(),Le(),e),un={class:"navbar"},cn={class:"right-menu"},dn={target:"_blank",href:"https://juejin.cn/post/7089377403717287972"},pn=ye("V3-Admin-Vite 中文文档"),hn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},vn=ye("V3-Admin-Vite GitHub"),fn={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},mn=ye("V3-Admin-Vite Gitee"),gn={target:"_blank",href:"https://juejin.cn/post/6963876125428678693"},bn=ye("V3-Admin 中文文档"),yn={target:"_blank",href:"https://github.com/un-pany/v3-admin/blob/master/README.en.md"},wn=ye("V3-Admin English Docs"),An={target:"_blank",href:"https://github.com/un-pany/v3-admin"},kn=ye("V3-Admin GitHub"),xn={target:"_blank",href:"https://gitee.com/un-pany/v3-admin"},Cn=ye("V3-Admin Gitee"),En=rn((()=>v("span",{style:{display:"block"}},"退出登录",-1)));var Sn=Ce(c({setup(e){const t=Se(),a=Ve(),n=Qa(),l=_e(),o=V((()=>a.sidebar)),s=V((()=>n.showThemeSwitch)),r=V((()=>n.showScreenfull)),i=ve({toggleSideBar:()=>{a.toggleSidebar(!1)},logout:()=>{l.logout(),t.push("/login").catch((e=>{console.warn(e)}))}});return(e,t)=>{const a=jt,n=Ue,l=Qe,u=Ke;return p(),h("div",un,[te(en,{"is-active":O(o).opened,class:"hamburger",onToggleClick:O(i).toggleSideBar},null,8,["is-active","onToggleClick"]),te($a,{class:"breadcrumb"}),v("div",cn,[O(r)?(p(),D(sn,{key:0,class:"right-menu-item"})):de("",!0),O(s)?(p(),D(qe,{key:1,class:"right-menu-item"})):de("",!0),te(u,{class:"right-menu-item"},{dropdown:N((()=>[te(l,null,{default:N((()=>[v("a",dn,[te(n,null,{default:N((()=>[pn])),_:1})]),v("a",hn,[te(n,null,{default:N((()=>[vn])),_:1})]),v("a",fn,[te(n,null,{default:N((()=>[mn])),_:1})]),v("a",gn,[te(n,{divided:""},{default:N((()=>[bn])),_:1})]),v("a",yn,[te(n,null,{default:N((()=>[wn])),_:1})]),v("a",An,[te(n,null,{default:N((()=>[kn])),_:1})]),v("a",xn,[te(n,null,{default:N((()=>[Cn])),_:1})]),te(n,{divided:"",onClick:O(i).logout},{default:N((()=>[En])),_:1},8,["onClick"])])),_:1})])),default:N((()=>[te(a,{icon:O(zt),size:34},null,8,["icon"])])),_:1})])])}}}),[["__scopeId","data-v-c841ea90"]]);const Tn=e=>(ze("data-v-849cdd1a"),e=e(),Le(),e),Mn={class:"drawer-container"},Bn=Tn((()=>v("h3",{class:"drawer-title"},"系统布局配置",-1))),In={class:"drawer-item"},Vn=Tn((()=>v("span",null,"显示 Tags-View",-1))),_n={class:"drawer-item"},zn=Tn((()=>v("span",null,"显示侧边栏 Logo",-1))),Ln={class:"drawer-item"},Pn=Tn((()=>v("span",null,"固定 Header",-1))),On={class:"drawer-item"},Dn=Tn((()=>v("span",null,"显示换肤按钮",-1))),Nn={class:"drawer-item"},Rn=Tn((()=>v("span",null,"显示全屏按钮",-1)));var Fn=Ce(c({setup(e){const t=Qa(),a=ve({fixedHeader:t.fixedHeader,showTagsView:t.showTagsView,showSidebarLogo:t.showSidebarLogo,showThemeSwitch:t.showThemeSwitch,showScreenfull:t.showScreenfull});return b((()=>a.fixedHeader),(e=>{t.changeSetting({key:"fixedHeader",value:e})})),b((()=>a.showTagsView),(e=>{t.changeSetting({key:"showTagsView",value:e})})),b((()=>a.showSidebarLogo),(e=>{t.changeSetting({key:"showSidebarLogo",value:e})})),b((()=>a.showThemeSwitch),(e=>{t.changeSetting({key:"showThemeSwitch",value:e})})),b((()=>a.showScreenfull),(e=>{t.changeSetting({key:"showScreenfull",value:e})})),(e,t)=>{const n=Ra;return p(),h("div",Mn,[v("div",null,[Bn,v("div",In,[Vn,te(n,{modelValue:O(a).showTagsView,"onUpdate:modelValue":t[0]||(t[0]=e=>O(a).showTagsView=e),class:"drawer-switch"},null,8,["modelValue"])]),v("div",_n,[zn,te(n,{modelValue:O(a).showSidebarLogo,"onUpdate:modelValue":t[1]||(t[1]=e=>O(a).showSidebarLogo=e),class:"drawer-switch"},null,8,["modelValue"])]),v("div",Ln,[Pn,te(n,{modelValue:O(a).fixedHeader,"onUpdate:modelValue":t[2]||(t[2]=e=>O(a).fixedHeader=e),class:"drawer-switch"},null,8,["modelValue"])]),v("div",On,[Dn,te(n,{modelValue:O(a).showThemeSwitch,"onUpdate:modelValue":t[3]||(t[3]=e=>O(a).showThemeSwitch=e),class:"drawer-switch"},null,8,["modelValue"])]),v("div",Nn,[Rn,te(n,{modelValue:O(a).showScreenfull,"onUpdate:modelValue":t[4]||(t[4]=e=>O(a).showScreenfull=e),class:"drawer-switch"},null,8,["modelValue"])])])])}}}),[["__scopeId","data-v-849cdd1a"]]);const Hn=e=>/^(https?:|mailto:|tel:)/.test(e);function jn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Yn(e,t){for(var a,n="",l=0,o=-1,s=0,r=0;r<=e.length;++r){if(r<e.length)a=e.charCodeAt(r);else{if(47===a)break;a=47}if(47===a){if(o===r-1||1===s);else if(o!==r-1&&2===s){if(n.length<2||2!==l||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var i=n.lastIndexOf("/");if(i!==n.length-1){-1===i?(n="",l=0):l=(n=n.slice(0,i)).length-1-n.lastIndexOf("/"),o=r,s=0;continue}}else if(2===n.length||1===n.length){n="",l=0,o=r,s=0;continue}t&&(n.length>0?n+="/..":n="..",l=2)}else n.length>0?n+="/"+e.slice(o+1,r):n=e.slice(o+1,r),l=r-o-1;o=r,s=0}else 46===a&&-1!==s?++s:s=-1}return n}var qn={resolve:function(){for(var e,t="",a=!1,n=arguments.length-1;n>=-1&&!a;n--){var l;n>=0?l=arguments[n]:(void 0===e&&(e=process.cwd()),l=e),jn(l),0!==l.length&&(t=l+"/"+t,a=47===l.charCodeAt(0))}return t=Yn(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(jn(e),0===e.length)return".";var t=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=Yn(e,!t)).length||t||(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return jn(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var a=arguments[t];jn(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":qn.normalize(e)},relative:function(e,t){if(jn(e),jn(t),e===t)return"";if((e=qn.resolve(e))===(t=qn.resolve(t)))return"";for(var a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var n=e.length,l=n-a,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var s=t.length-o,r=l<s?l:s,i=-1,u=0;u<=r;++u){if(u===r){if(s>r){if(47===t.charCodeAt(o+u))return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else l>r&&(47===e.charCodeAt(a+u)?i=u:0===u&&(i=0));break}var c=e.charCodeAt(a+u);if(c!==t.charCodeAt(o+u))break;47===c&&(i=u)}var d="";for(u=a+i+1;u<=n;++u)u!==n&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+i):(o+=i,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(jn(e),0===e.length)return".";for(var t=e.charCodeAt(0),a=47===t,n=-1,l=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!l){n=o;break}}else l=!1;return-1===n?a?"/":".":a&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');jn(e);var a,n=0,l=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,r=-1;for(a=e.length-1;a>=0;--a){var i=e.charCodeAt(a);if(47===i){if(!o){n=a+1;break}}else-1===r&&(o=!1,r=a+1),s>=0&&(i===t.charCodeAt(s)?-1==--s&&(l=a):(s=-1,l=r))}return n===l?l=r:-1===l&&(l=e.length),e.slice(n,l)}for(a=e.length-1;a>=0;--a)if(47===e.charCodeAt(a)){if(!o){n=a+1;break}}else-1===l&&(o=!1,l=a+1);return-1===l?"":e.slice(n,l)},extname:function(e){jn(e);for(var t=-1,a=0,n=-1,l=!0,o=0,s=e.length-1;s>=0;--s){var r=e.charCodeAt(s);if(47!==r)-1===n&&(l=!1,n=s+1),46===r?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!l){a=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===a+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var a=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return a?a===t.root?a+n:a+e+n:n}("/",e)},parse:function(e){jn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var a,n=e.charCodeAt(0),l=47===n;l?(t.root="/",a=1):a=0;for(var o=-1,s=0,r=-1,i=!0,u=e.length-1,c=0;u>=a;--u)if(47!==(n=e.charCodeAt(u)))-1===r&&(i=!1,r=u+1),46===n?-1===o?o=u:1!==c&&(c=1):-1!==o&&(c=-1);else if(!i){s=u+1;break}return-1===o||-1===r||0===c||1===c&&o===r-1&&o===s+1?-1!==r&&(t.base=t.name=0===s&&l?e.slice(1,r):e.slice(s,r)):(0===s&&l?(t.name=e.slice(1,o),t.base=e.slice(1,r)):(t.name=e.slice(s,o),t.base=e.slice(s,r)),t.ext=e.slice(o,r)),s>0?t.dir=e.slice(0,s-1):l&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};qn.posix=qn;var Un=qn;const Qn=["href"],Kn=c({props:{to:{type:String,required:!0}},setup(e){const t=e,a=Se(),n=()=>{a.push(t.to).catch((e=>{console.warn(e)}))};return(t,a)=>O(Hn)(e.to)?(p(),h("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[H(t.$slots,"default")],8,Qn)):(p(),h("div",{key:1,onClick:n},[H(t.$slots,"default")]))}});const Gn={key:1};var Wn=Ce(c({props:{item:{type:Object,required:!0},isCollapse:{type:Boolean,required:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{type:String,required:!0}},setup(e){const t=e,a=V((()=>!(!t.item.meta||!t.item.meta.alwaysShow))),n=V((()=>{if(t.item.children){return t.item.children.filter((e=>!(e.meta&&e.meta.hidden))).length}return 0})),l=V((()=>{if(n.value>1)return null;if(t.item.children)for(const e of t.item.children)if(!e.meta||!e.meta.hidden)return e;return i(r({},t.item),{path:""})})),o=e=>Hn(e)?e:Hn(t.basePath)?t.basePath:Un.resolve(t.basePath,e);return(t,n)=>{const s=Oe,r=Ba,i=re("sidebar-item",!0),u=Ia;return e.item.meta&&e.item.meta.hidden?de("",!0):(p(),h("div",{key:0,class:j({"simple-mode":e.isCollapse,"first-level":e.isFirstLevel})},[O(a)||!O(l)||O(l).children?(p(),D(u,{key:1,index:o(e.item.path),"popper-append-to-body":""},{title:N((()=>[e.item.meta&&e.item.meta.icon?(p(),D(s,{key:0,name:e.item.meta.icon},null,8,["name"])):de("",!0),e.item.meta&&e.item.meta.title?(p(),h("span",Gn,G(e.item.meta.title),1)):de("",!0)])),default:N((()=>[e.item.children?(p(!0),h(me,{key:0},Me(e.item.children,(t=>(p(),D(i,{key:t.path,item:t,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":o(t.path)},null,8,["item","is-collapse","base-path"])))),128)):de("",!0)])),_:1},8,["index"])):(p(),h(me,{key:0},[O(l).meta?(p(),D(Kn,{key:0,to:o(O(l).path)},{default:N((()=>[te(r,{index:o(O(l).path)},Pe({default:N((()=>[O(l).meta.icon?(p(),D(s,{key:0,name:O(l).meta.icon},null,8,["name"])):de("",!0)])),_:2},[O(l).meta.title?{name:"title",fn:N((()=>[ye(G(O(l).meta.title),1)]))}:void 0]),1032,["index"])])),_:1},8,["to"])):de("",!0)],64))],2))}}}),[["__scopeId","data-v-c9234b78"]]);const Xn=e=>(ze("data-v-8bd5fe78"),e=e(),Le(),e),Jn=Xn((()=>v("img",{src:"data:image/png;base64,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",class:"sidebar-logo"},null,-1))),Zn=Xn((()=>v("img",{src:"./static/png/logo-text-1-0f451132.png",class:"sidebar-logo-text"},null,-1)));var $n=Ce(c({props:{collapse:{type:Boolean,default:!0}},setup:e=>(t,a)=>{const n=re("router-link");return p(),h("div",{class:j(["sidebar-logo-container",{collapse:e.collapse}])},[te(ee,{name:"sidebarLogoFade"},{default:N((()=>[e.collapse?(p(),D(n,{key:"collapse",class:"sidebar-logo-link",to:"/"},{default:N((()=>[Jn])),_:1})):(p(),D(n,{key:"expand",class:"sidebar-logo-link",to:"/"},{default:N((()=>[Zn])),_:1}))])),_:1})],2)}}),[["__scopeId","data-v-8bd5fe78"]]);var el=Ce(c({setup(e){const t=Ee(),a=V((()=>Ve().sidebar)),n=V((()=>De().routes)),l=V((()=>Qa().showSidebarLogo)),o=V((()=>{const{meta:e,path:a}=t;return null===e&&void 0===e||!e.activeMenu?a:e.activeMenu})),s=V((()=>!a.value.opened));return(e,t)=>{const a=Ma,r=Ge;return p(),h("div",{class:j({"has-logo":O(l)})},[O(l)?(p(),D($n,{key:0,collapse:O(s)},null,8,["collapse"])):de("",!0),te(r,{"wrap-class":"scrollbar-wrapper"},{default:N((()=>[te(a,{collapse:O(s),"unique-opened":!0,"default-active":O(o),"background-color":"#152d3d","text-color":"#C0C4CC","active-text-color":"#fff",mode:"vertical"},{default:N((()=>[(p(!0),h(me,null,Me(O(n),(e=>(p(),D(Wn,{key:e.path,item:e,"base-path":e.path,"is-collapse":O(s)},null,8,["item","base-path","is-collapse"])))),128))])),_:1},8,["collapse","default-active"])])),_:1})],2)}}}),[["__scopeId","data-v-9d37e1e8"]]);const tl=xe({id:"tags-view",state:()=>({visitedViews:[]}),actions:{addVisitedView(e){var t;this.visitedViews.some((t=>t.path===e.path))||this.visitedViews.push(Object.assign({},e,{title:(null==(t=e.meta)?void 0:t.title)||"no-name"}))},delVisitedView(e){for(const[t,a]of this.visitedViews.entries())if(a.path===e.path){this.visitedViews.splice(t,1);break}},delOthersVisitedViews(e){this.visitedViews=this.visitedViews.filter((t=>{var a;return(null==(a=t.meta)?void 0:a.affix)||t.path===e.path}))},delAllVisitedViews(){const e=this.visitedViews.filter((e=>{var t;return null==(t=e.meta)?void 0:t.affix}));this.visitedViews=e},updateVisitedView(e){for(let t of this.visitedViews)if(t.path===e.path){t=Object.assign(t,e);break}}}});var al=Ce({},[["render",function(e,t){const a=Ge;return p(),D(a,{vertical:!1,class:"scroll-container"},{default:N((()=>[H(e.$slots,"default",{},void 0,!0)])),_:3})}],["__scopeId","data-v-2924169c"]]);const nl={class:"tags-view-container"};var ll=Ce(c({setup(e){const t=W(),a=Se(),n=Ee(),l=tl(),o=De(),s=(e,t)=>{const n=e.slice(-1)[0];void 0!==n&&void 0!==n.fullPath?a.push(n.fullPath).catch((e=>{console.warn(e)})):"Dashboard"===t.name?a.push({path:"/redirect"+t.fullPath}).catch((e=>{console.warn(e)})):a.push("/").catch((e=>{console.warn(e)}))},i=ve({visible:!1,top:0,left:0,selectedTag:{},affixTags:[],isActive:e=>e.path===n.path,isAffix:e=>e.meta&&e.meta.affix,refreshSelectedTag:e=>{const{fullPath:t}=e;J((()=>{a.replace({path:"/redirect"+t}).catch((e=>{console.warn(e)}))}))},closeSelectedTag:e=>{l.delVisitedView(e),i.isActive(e)&&s(l.visitedViews,e)},closeOthersTags:()=>{i.selectedTag.fullPath!==n.path&&void 0!==i.selectedTag.fullPath&&a.push(i.selectedTag.fullPath).catch((e=>{console.warn(e)})),l.delOthersVisitedViews(i.selectedTag)},closeAllTags:e=>{l.delAllVisitedViews(),i.affixTags.some((e=>e.path===n.path))||s(l.visitedViews,e)},openMenu:(e,a)=>{const n=t.proxy.$el.getBoundingClientRect().left,l=t.proxy.$el.offsetWidth-105,o=a.clientX-n+15;i.left=o>l?l:o,i.top=a.clientY,i.visible=!0,i.selectedTag=e},closeMenu:()=>{i.visible=!1}}),u=V((()=>l.visitedViews)),c=V((()=>o.routes)),d=(e,t="/")=>{let a=[];return e.forEach((e=>{if(e.meta&&e.meta.affix){const n=Un.resolve(t,e.path);a.push({fullPath:n,path:n,name:e.name,meta:r({},e.meta)})}if(e.children){const t=d(e.children,e.path);t.length>=1&&(a=a.concat(t))}})),a},f=()=>(n.name&&l.addVisitedView(n),!1);return b((()=>n.name),(()=>{f(),(()=>{const e=null==t?void 0:t.refs.tag;if(null!=e&&Array.isArray(e))for(const t of e)t.to.path===n.path&&t.to.fullPath!==n.fullPath&&l.updateVisitedView(n)})()})),b((()=>i.visible),(e=>{e?document.body.addEventListener("click",i.closeMenu):document.body.removeEventListener("click",i.closeMenu)})),Te((()=>{(()=>{i.affixTags=d(c.value);for(const e of i.affixTags)e.name&&l.addVisitedView(e)})(),f()})),(e,t)=>{const a=F,n=re("router-link");return p(),h("div",nl,[te(al,{class:"tags-view-wrapper"},{default:N((()=>[(p(!0),h(me,null,Me(O(u),(e=>(p(),D(n,{ref_for:!0,ref:"tag",key:e.path,class:j([O(i).isActive(e)?"active":"","tags-view-item"]),to:{path:e.path,query:e.query,fullPath:e.fullPath},onMouseup:pe((t=>O(i).isAffix(e)?"":O(i).closeSelectedTag(e)),["middle"]),onContextmenu:pe((t=>O(i).openMenu(e,t)),["prevent"])},{default:N((()=>{var t;return[ye(G(null==(t=e.meta)?void 0:t.title)+" ",1),O(i).isAffix(e)?de("",!0):(p(),D(a,{key:0,size:12,onClick:pe((t=>O(i).closeSelectedTag(e)),["prevent","stop"])},{default:N((()=>[te(O(se))])),_:2},1032,["onClick"]))]})),_:2},1032,["class","to","onMouseup","onContextmenu"])))),128))])),_:1}),ue(v("ul",{style:P({left:O(i).left+"px",top:O(i).top+"px"}),class:"contextmenu"},[v("li",{onClick:t[0]||(t[0]=e=>O(i).refreshSelectedTag(O(i).selectedTag))},"刷新"),O(i).isAffix(O(i).selectedTag)?de("",!0):(p(),h("li",{key:0,onClick:t[1]||(t[1]=e=>O(i).closeSelectedTag(O(i).selectedTag))},"关闭")),v("li",{onClick:t[2]||(t[2]=(...e)=>O(i).closeOthersTags&&O(i).closeOthersTags(...e))},"关闭其它"),v("li",{onClick:t[3]||(t[3]=e=>O(i).closeAllTags(O(i).selectedTag))},"关闭所有")],4),[[ce,O(i).visible]])])}}}),[["__scopeId","data-v-1cfad969"]]);var ol=Ce(c({props:{buttonTop:{type:Number,default:250}},setup(e){const t=I(!1);return(a,n)=>{const l=F,o=pa;return p(),h(me,null,[v("div",{class:"handle-button",style:P({top:e.buttonTop+"px"}),onClick:n[0]||(n[0]=e=>t.value=!0)},[te(l,{size:24},{default:N((()=>[te(O(Bt))])),_:1})],4),te(o,{modelValue:t.value,"onUpdate:modelValue":n[1]||(n[1]=e=>t.value=e),size:"300px","with-header":!1},{default:N((()=>[H(a.$slots,"default",{},void 0,!0)])),_:3},8,["modelValue"])],64)}}}),[["__scopeId","data-v-c033e252"]]);var sl=Ce(c({setup(e){const t=Ve(),a=Qa(),{sidebar:n,device:l,addEventListenerOnResize:o,resizeMounted:s,removeEventListenerResize:r,watchRouter:i}=(()=>{const e=Ee(),t=Ve(),a=V((()=>t.device)),n=V((()=>t.sidebar)),l=b((()=>e.name),(()=>{t.device===Ne.Mobile&&t.sidebar.opened&&t.closeSidebar(!1)})),o=()=>document.body.getBoundingClientRect().width-1<992,s=()=>{document.hidden||(t.toggleDevice(o()?Ne.Mobile:Ne.Desktop),o()&&t.closeSidebar(!0))};return{device:a,sidebar:n,resizeMounted:()=>{o()&&(t.toggleDevice(Ne.Mobile),t.closeSidebar(!0))},addEventListenerOnResize:()=>{window.addEventListener("resize",s)},removeEventListenerResize:()=>{window.removeEventListener("resize",s)},watchRouter:l}})(),u=ve({handleClickOutside:()=>{t.closeSidebar(!1)}}),c=V((()=>({hideSidebar:!n.value.opened,openSidebar:n.value.opened,withoutAnimation:n.value.withoutAnimation,mobile:l.value===Ne.Mobile}))),d=V((()=>a.showSettings)),f=V((()=>a.showTagsView)),m=V((()=>a.fixedHeader));return i(),Te((()=>{o()})),Q((()=>{s()})),fe((()=>{r()})),(e,t)=>(p(),h("div",{class:j([O(c),"app-wrapper"])},[O(c).mobile&&O(n).opened?(p(),h("div",{key:0,class:"drawer-bg",onClick:t[0]||(t[0]=(...e)=>O(u).handleClickOutside&&O(u).handleClickOutside(...e))})):de("",!0),te(O(el),{class:"sidebar-container"}),v("div",{class:j([{hasTagsView:O(f)},"main-container"])},[v("div",{class:j({"fixed-header":O(m)})},[te(O(Sn)),O(f)?(p(),D(O(ll),{key:0})):de("",!0)],2),te(O(Ga)),O(d)?(p(),D(O(ol),{key:0},{default:N((()=>[te(O(Fn))])),_:1})):de("",!0)],2)],2))}}),[["__scopeId","data-v-6d663fee"]]);export{sl as default};
|