mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-27 23:13:38 +08:00
545 lines
126 KiB
JavaScript
545 lines
126 KiB
JavaScript
import{f as jn,k as Qe,g as Hn,a as Ze,c as Vt,i as zr,I as _r,u as Ir,b as ft,d as wt,o as on,s as Ar,S as Dn,e as Un,C as Er,h as Tr,r as Je,T as Or,D as Fr,j as Pt,V as $r,m as Br,l as Mr,n as zt,_ as Vr,R as Kn,p as Nr,F as qr,q as Lr,t as jr}from"./Icon.DgnQbY0f.js";import{a as _t,u as Hr}from"./index.CRUCD9CF.js";import{z as mt,b as We,e as F,j as D,d as W,o as Pe,p as N,n as j,s as He,_ as Dr,k as R,t as vt,v as Se,A as an,B as Wn,g as Yt,C as Ur,h as ln,D as Gn,l as Ue,w as Kr,m as sn,L as Wr,I as Gr}from"./Loading.CYk0ZDH9.js";import{L as xe,ag as Yn,q as tt,$ as Xn,d as ce,j as se,o as S,c as q,X as Ie,p as oe,h as k,N as Ae,E as H,T as Yr,af as Me,v as Qn,F as ke,K as Fe,b as ne,P as Xt,a2 as et,s as cn,G as ct,a as Zn,ab as Xr,k as Re,aM as Qr,aN as Zr,w as Le,n as Jr,t as It,B as eo,e as to,_ as no}from"./framework.BNdm2jZV.js";import{r as $e,f as ro,b as oo,u as Jn,a as Be,c as io,d as dn,X as un,e as pe,F as ao,i as At,B as er}from"./Button.B5dXaugh.js";import{u as lo,p as Et,d as Ve}from"./call.Cml8M0xk.js";import"./manifest.BPHdGMSY.js";import"./isSymbol.BJY0fdHu.js";function so(e,t){const n=r=>{var o;return r.fullPath===t||!!((o=r.children)!=null&&o.some(n))};return e.find(r=>r.show!==!1&&n(r))}function tr(e){var t;if(e.show!==!1){if(!((t=e.children)!=null&&t.length))return e;for(const n of e.children){const r=tr(n);if(r)return r}}}function co(e,t,n){var l;const r=xe(e,null);if(r===null)return;const o=(l=Yn())==null?void 0:l.proxy;tt(n,i),i(n.value),Xn(()=>{i(void 0,n.value)});function i(f,u){if(!r)return;const c=r[t];u!==void 0&&a(c,u),f!==void 0&&s(c,f)}function a(f,u){f[u]||(f[u]=[]),f[u].splice(f[u].findIndex(c=>c===o),1)}function s(f,u){f[u]||(f[u]=[]),~f[u].findIndex(c=>c===o)||f[u].push(o)}}var uo=ce({name:"Add",render(){return(()=>{const e=mt("b30130fbba5c5b23");return e[0]||(e[0]=se("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[se("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"})],-1))})()}}),fo=ce({name:"Remove",render(){return(()=>{const e=mt("a77472467b8adb0a");return e[0]||(e[0]=se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[se("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
|
||
fill: none;
|
||
stroke: currentColor;
|
||
stroke-linecap: round;
|
||
stroke-linejoin: round;
|
||
stroke-width: 32px;
|
||
`})],-1))})()}});const gt=We("n-form"),nr=We("n-form-item-insts");var ho=F("form",[D("inline",`
|
||
width: 100%;
|
||
display: inline-flex;
|
||
align-items: flex-start;
|
||
align-content: space-around;
|
||
`,[F("form-item",{width:"auto",marginRight:"18px"},[W("&:last-child",{marginRight:0})])])]);const mo=["onSubmit"],vo={...Pe.props,inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object},fn=()=>!0;function go(e){return e===void 0?{paths:null,shouldRuleBeApplied:fn}:typeof e=="function"?{paths:null,shouldRuleBeApplied:e}:Array.isArray(e)?{paths:e,shouldRuleBeApplied:fn}:e}var po=ce({name:"Form",props:vo,setup(e){const{mergedClsPrefixRef:t}=He(e);Pe("Form","-form",ho,jn,e,t);const n={},r=oe(void 0),o=l=>{const f=r.value;(f===void 0||l>=f)&&(r.value=l)};function i(){var l;for(const f of Qe(n)){const u=n[f];for(const c of u)(l=c.invalidateLabelWidth)==null||l.call(c)}}async function a(l,f){const{paths:u,shouldRuleBeApplied:c}=go(f);return await new Promise((h,m)=>{const y=[];for(const v of Qe(n)){if(u!==null&&!u.includes(v))continue;const b=n[v];for(const p of b)p.path&&y.push(p.internalValidate(null,c))}Promise.all(y).then(v=>{const b=v.some(w=>!w.valid),p=[],E=[];v.forEach(w=>{var I,z;(I=w.errors)!=null&&I.length&&p.push(w.errors),(z=w.warnings)!=null&&z.length&&E.push(w.warnings)}),l&&l(p.length?p:void 0,{warnings:E.length?E:void 0}),b?m(p.length?p:void 0):h({warnings:E.length?E:void 0})})})}function s(){for(const l of Qe(n)){const f=n[l];for(const u of f)u.restoreValidation()}}return Ie(gt,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),Ie(nr,{formItems:n}),Object.assign({validate:a,restoreValidation:s,invalidateLabelWidth:i},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return S(),q("form",{class:j([`${e}-form`,this.inline&&`${e}-form--inline`]),onSubmit:this.onSubmit},[N(()=>{var t,n;return(n=(t=this.$slots).default)==null?void 0:n.call(t)})],42,mo)}});const{cubicBezierEaseInOut:hn}=Dr;function bo({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=hn,leaveCubicBezier:i=hn}={}){return[W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),W(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),W(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),W(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}var yo=F("form-item",`
|
||
display: grid;
|
||
line-height: var(--n-line-height);
|
||
`,[F("form-item-label",`
|
||
grid-area: label;
|
||
align-items: center;
|
||
line-height: 1.25;
|
||
text-align: var(--n-label-text-align);
|
||
font-size: var(--n-label-font-size);
|
||
min-height: var(--n-label-height);
|
||
padding: var(--n-label-padding);
|
||
color: var(--n-label-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
font-weight: var(--n-label-font-weight);
|
||
`,[R("asterisk",`
|
||
white-space: nowrap;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
color: var(--n-asterisk-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`),R("asterisk-placeholder",`
|
||
grid-area: mark;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
visibility: hidden;
|
||
`)]),F("form-item-blank",`
|
||
grid-area: blank;
|
||
min-height: var(--n-blank-height);
|
||
`),D("auto-label-width",[F("form-item-label","white-space: nowrap;")]),D("left-labelled",`
|
||
grid-template-areas:
|
||
"label blank"
|
||
"label feedback";
|
||
grid-template-columns: auto minmax(0, 1fr);
|
||
grid-template-rows: auto 1fr;
|
||
align-items: flex-start;
|
||
`,[F("form-item-label",`
|
||
display: grid;
|
||
grid-template-columns: 1fr auto;
|
||
min-height: var(--n-blank-height);
|
||
height: auto;
|
||
box-sizing: border-box;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
`,[D("reverse-columns-space",`
|
||
grid-template-columns: auto 1fr;
|
||
`),D("left-mark",`
|
||
grid-template-areas:
|
||
"mark text"
|
||
". text";
|
||
`),D("right-mark",`
|
||
grid-template-areas:
|
||
"text mark"
|
||
"text .";
|
||
`),D("right-hanging-mark",`
|
||
grid-template-areas:
|
||
"text mark"
|
||
"text .";
|
||
`),R("text",`
|
||
grid-area: text;
|
||
`),R("asterisk",`
|
||
grid-area: mark;
|
||
align-self: end;
|
||
`)])]),D("top-labelled",`
|
||
grid-template-areas:
|
||
"label"
|
||
"blank"
|
||
"feedback";
|
||
grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
|
||
grid-template-columns: minmax(0, 100%);
|
||
`,[D("no-label",`
|
||
grid-template-areas:
|
||
"blank"
|
||
"feedback";
|
||
grid-template-rows: 1fr;
|
||
`),F("form-item-label",`
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: var(--n-label-text-align);
|
||
`)]),F("form-item-blank",`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
`),F("form-item-feedback-wrapper",`
|
||
grid-area: feedback;
|
||
box-sizing: border-box;
|
||
min-height: var(--n-feedback-height);
|
||
font-size: var(--n-feedback-font-size);
|
||
line-height: 1.25;
|
||
transform-origin: top left;
|
||
`,[W("&:not(:empty)",`
|
||
padding: var(--n-feedback-padding);
|
||
`),F("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[D("warning",{color:"var(--n-feedback-text-color-warning)"}),D("error",{color:"var(--n-feedback-text-color-error)"}),bo({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);function xo(e){const t=xe(gt,null),{mergedComponentPropsRef:n}=He(e);return{mergedSize:k(()=>{var o,i;if(e.size!==void 0)return e.size;if((t==null?void 0:t.props.size)!==void 0)return t.props.size;const r=(i=(o=n==null?void 0:n.value)==null?void 0:o.Form)==null?void 0:i.size;return r||"medium"})}}function wo(e){const t=xe(gt,null),n=k(()=>{const{labelPlacement:c}=e;return c!==void 0?c:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=k(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=k(()=>{if(n.value==="top")return;const{labelWidth:c}=e;if(c!==void 0&&c!=="auto")return Ze(c);if(r.value){const h=t==null?void 0:t.maxChildLabelWidthRef.value;return h!==void 0?Ze(h):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ze(t.props.labelWidth)}),i=k(()=>{const{labelAlign:c}=e;if(c)return c;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=k(()=>{var c;return[(c=e.labelProps)==null?void 0:c.style,e.labelStyle,{width:o.value}]}),s=k(()=>{const{showRequireMark:c}=e;return c!==void 0?c:t==null?void 0:t.props.showRequireMark}),l=k(()=>{const{requireMarkPlacement:c}=e;return c!==void 0?c:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),f=oe(!1),u=oe(!1);return{validationErrored:f,validationWarned:u,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:k(()=>{const{validationStatus:c}=e;if(c!==void 0)return c;if(f.value)return"error";if(u.value)return"warning"}),mergedShowFeedback:k(()=>{const{showFeedback:c}=e;return c!==void 0?c:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),mergedShowLabel:k(()=>{const{showLabel:c}=e;return c!==void 0?c:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0}),isAutoLabelWidth:r}}function Co(e){const t=xe(gt,null),n=k(()=>{const{rulePath:i}=e;if(i!==void 0)return i;const{path:a}=e;if(a!==void 0)return a}),r=k(()=>{const i=[],{rule:a}=e;if(a!==void 0&&(Array.isArray(a)?i.push(...a):i.push(a)),t){const{rules:s}=t.props,{value:l}=n;if(s!==void 0&&l!==void 0){const f=Hn(s,l);f!==void 0&&(Array.isArray(f)?i.push(...f):i.push(f))}}return i}),o=k(()=>r.value.some(i=>i.required));return{mergedRules:r,mergedRequired:k(()=>o.value||e.required)}}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke.apply(this,arguments)}function So(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ht(e,t)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nt(e)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ht(e,t)}function Ro(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xt(e,t,n){return Ro()?xt=Reflect.construct.bind():xt=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),f=new l;return a&&ht(f,a.prototype),f},xt.apply(null,arguments)}function ko(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qt(e){var t=typeof Map=="function"?new Map:void 0;return qt=function(r){if(r===null||!ko(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return xt(r,arguments,Nt(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ht(o,r)},qt(e)}var Po=/%[sdj%]/g,zo=function(){};function Lt(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Po,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function _o(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function be(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||_o(t)&&typeof e=="string"&&!e)}function Io(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function mn(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function Ao(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var vn=(function(e){So(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t})(qt(Error));function Eo(e,t,n,r,o){if(t.first){var i=new Promise(function(h,m){var y=function(p){return r(p),p.length?m(new vn(p,Lt(p))):h(o)},v=Ao(e);mn(v,n,y)});return i.catch(function(h){return h}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,f=0,u=[],c=new Promise(function(h,m){var y=function(b){if(u.push.apply(u,b),f++,f===l)return r(u),u.length?m(new vn(u,Lt(u))):h(o)};s.length||(r(u),h(o)),s.forEach(function(v){var b=e[v];a.indexOf(v)!==-1?mn(b,n,y):Io(b,n,y)})});return c.catch(function(h){return h}),c}function To(e){return!!(e&&e.message!==void 0)}function Oo(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function gn(e,t){return function(n){var r;return e.fullFields?r=Oo(t,e.fullFields):r=t[n.field||e.fullField],To(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function pn(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ke({},e[n],r):e[n]=r}}return e}var rr=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||be(n,a||t.type))&&o.push(Ee(i.messages.required,t.fullField))},Fo=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Ee(i.messages.whitespace,t.fullField))},bt,$o=(function(){if(bt)return bt;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
|
||
(?:
|
||
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(I){return I&&I.exact?i:new RegExp("(?:"+t(I)+n+t(I)+")|(?:"+t(I)+o+t(I)+")","g")};l.v4=function(w){return w&&w.exact?a:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var f="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",c=l.v4().source,h=l.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',E="(?:"+f+"|www\\.)"+u+"(?:localhost|"+c+"|"+h+"|"+m+y+v+")"+b+p;return bt=new RegExp("(?:^"+E+"$)","i"),bt}),bn={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},st={integer:function(t){return st.number(t)&&parseInt(t,10)===t},float:function(t){return st.number(t)&&!st.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!st.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(bn.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($o())},hex:function(t){return typeof t=="string"&&!!t.match(bn.hex)}},Bo=function(t,n,r,o,i){if(t.required&&n===void 0){rr(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?st[s](n)||o.push(Ee(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Ee(i.messages.types[s],t.fullField,t.type))},Mo=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,c=null,h=typeof n=="number",m=typeof n=="string",y=Array.isArray(n);if(h?c="number":m?c="string":y&&(c="array"),!c)return!1;y&&(u=n.length),m&&(u=n.replace(f,"_").length),a?u!==t.len&&o.push(Ee(i.messages[c].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Ee(i.messages[c].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Ee(i.messages[c].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Ee(i.messages[c].range,t.fullField,t.min,t.max))},Ye="enum",Vo=function(t,n,r,o,i){t[Ye]=Array.isArray(t[Ye])?t[Ye]:[],t[Ye].indexOf(n)===-1&&o.push(Ee(i.messages[Ye],t.fullField,t[Ye].join(", ")))},No=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ee(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Ee(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Q={required:rr,whitespace:Fo,type:Bo,range:Mo,enum:Vo,pattern:No},qo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n,"string")&&!t.required)return r();Q.required(t,n,o,a,i,"string"),be(n,"string")||(Q.type(t,n,o,a,i),Q.range(t,n,o,a,i),Q.pattern(t,n,o,a,i),t.whitespace===!0&&Q.whitespace(t,n,o,a,i))}r(a)},Lo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&Q.type(t,n,o,a,i)}r(a)},jo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&(Q.type(t,n,o,a,i),Q.range(t,n,o,a,i))}r(a)},Ho=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&Q.type(t,n,o,a,i)}r(a)},Do=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),be(n)||Q.type(t,n,o,a,i)}r(a)},Uo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&(Q.type(t,n,o,a,i),Q.range(t,n,o,a,i))}r(a)},Ko=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&(Q.type(t,n,o,a,i),Q.range(t,n,o,a,i))}r(a)},Wo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Q.required(t,n,o,a,i,"array"),n!=null&&(Q.type(t,n,o,a,i),Q.range(t,n,o,a,i))}r(a)},Go=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&Q.type(t,n,o,a,i)}r(a)},Yo="enum",Xo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i),n!==void 0&&Q[Yo](t,n,o,a,i)}r(a)},Qo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n,"string")&&!t.required)return r();Q.required(t,n,o,a,i),be(n,"string")||Q.pattern(t,n,o,a,i)}r(a)},Zo=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n,"date")&&!t.required)return r();if(Q.required(t,n,o,a,i),!be(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Q.type(t,l,o,a,i),l&&Q.range(t,l.getTime(),o,a,i)}}r(a)},Jo=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;Q.required(t,n,o,a,i,s),r(a)},Tt=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(be(n,a)&&!t.required)return r();Q.required(t,n,o,s,i,a),be(n,a)||Q.type(t,n,o,s,i)}r(s)},ei=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(be(n)&&!t.required)return r();Q.required(t,n,o,a,i)}r(a)},dt={string:qo,method:Lo,number:jo,boolean:Ho,regexp:Do,integer:Uo,float:Ko,array:Wo,object:Go,enum:Xo,pattern:Qo,date:Zo,url:Tt,hex:Tt,email:Tt,required:Jo,any:ei};function jt(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ht=jt(),nt=(function(){function e(n){this.rules=null,this._messages=Ht,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=pn(jt(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,f=i;if(typeof l=="function"&&(f=l,l={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function u(v){var b=[],p={};function E(I){if(Array.isArray(I)){var z;b=(z=b).concat.apply(z,I)}else b.push(I)}for(var w=0;w<v.length;w++)E(v[w]);b.length?(p=Lt(b),f(b,p)):f(null,s)}if(l.messages){var c=this.messages();c===Ht&&(c=jt()),pn(c,l.messages),l.messages=c}else l.messages=this.messages();var h={},m=l.keys||Object.keys(this.rules);m.forEach(function(v){var b=a.rules[v],p=s[v];b.forEach(function(E){var w=E;typeof w.transform=="function"&&(s===r&&(s=Ke({},s)),p=s[v]=w.transform(p)),typeof w=="function"?w={validator:w}:w=Ke({},w),w.validator=a.getValidationMethod(w),w.validator&&(w.field=v,w.fullField=w.fullField||v,w.type=a.getType(w),h[v]=h[v]||[],h[v].push({rule:w,value:p,source:s,field:v}))})});var y={};return Eo(h,l,function(v,b){var p=v.rule,E=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");E=E&&(p.required||!p.required&&v.value),p.field=v.field;function w(A,M){return Ke({},M,{fullField:p.fullField+"."+A,fullFields:p.fullFields?[].concat(p.fullFields,[A]):[A]})}function I(A){A===void 0&&(A=[]);var M=Array.isArray(A)?A:[A];!l.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&p.message!==void 0&&(M=[].concat(p.message));var Y=M.map(gn(p,s));if(l.first&&Y.length)return y[p.field]=1,b(Y);if(!E)b(Y);else{if(p.required&&!v.value)return p.message!==void 0?Y=[].concat(p.message).map(gn(p,s)):l.error&&(Y=[l.error(p,Ee(l.messages.required,p.field))]),b(Y);var B={};p.defaultField&&Object.keys(v.value).map(function(ee){B[ee]=p.defaultField}),B=Ke({},B,v.rule.fields);var re={};Object.keys(B).forEach(function(ee){var te=B[ee],U=Array.isArray(te)?te:[te];re[ee]=U.map(w.bind(null,ee))});var J=new e(re);J.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),J.validate(v.value,v.rule.options||l,function(ee){var te=[];Y&&Y.length&&te.push.apply(te,Y),ee&&ee.length&&te.push.apply(te,ee),b(te.length?te:null)})}}var z;if(p.asyncValidator)z=p.asyncValidator(p,v.value,I,v.source,l);else if(p.validator){try{z=p.validator(p,v.value,I,v.source,l)}catch(A){console.error==null||console.error(A),l.suppressValidatorError||setTimeout(function(){throw A},0),I(A.message)}z===!0?I():z===!1?I(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||(p.fullField||p.field)+" fails"):z instanceof Array?I(z):z instanceof Error&&I(z.message)}z&&z.then&&z.then(function(){return I()},function(A){return I(A)})},function(v){u(v)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!dt.hasOwnProperty(r.type))throw new Error(Ee("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?dt.required:dt[this.getType(r)]||void 0},e})();nt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");dt[t]=n};nt.warning=zo;nt.messages=Ht;nt.validators=dt;const ti={...Pe.props,label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]};function yn(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r!=null&&r.then?r:(r===void 0||an("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){an("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}var it=ce({name:"FormItem",props:ti,slots:Object,setup(e){co(nr,"formItems",Me(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=xe(gt,null),o=xo(e),i=wo(e),{validationErrored:a,validationWarned:s}=i,{mergedRequired:l,mergedRules:f}=Co(e),{mergedSize:u}=o,{mergedLabelPlacement:c,mergedLabelAlign:h,mergedRequireMarkPlacement:m}=i,y=oe([]),v=oe(Vt()),b=oe(null),p=r?Me(r.props,"disabled"):oe(!1),E=Pe("Form","-form-item",yo,jn,e,t);tt(Me(e,"path"),()=>{e.ignorePathChange||I()});function w(){if(!i.isAutoLabelWidth.value)return;const U=b.value;if(U!==null){const fe=U.style.whiteSpace;U.style.whiteSpace="nowrap",U.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(U).width.slice(0,-2))),U.style.whiteSpace=fe}}function I(){y.value=[],a.value=!1,s.value=!1,e.feedback&&(v.value=Vt())}const z=async(U=null,fe=()=>!0,he={suppressWarning:!0})=>{const{path:de}=e;he?he.first||(he.first=e.first):he={};const{value:ye}=f,ae=r?Hn(r.props.model,de||""):void 0,we={},V={},L=(U?ye.filter(x=>Array.isArray(x.trigger)?x.trigger.includes(U):x.trigger===U):ye).filter(fe).map((x,_)=>{const T=Object.assign({},x);if(T.validator&&(T.validator=yn(T.validator,!1)),T.asyncValidator&&(T.asyncValidator=yn(T.asyncValidator,!0)),T.renderMessage){const ie=`__renderMessage__${_}`;V[ie]=T.message,T.message=ie,we[ie]=T.renderMessage}return T}),g=L.filter(x=>x.level!=="warning"),$=L.filter(x=>x.level==="warning"),K={valid:!0,errors:void 0,warnings:void 0};if(!L.length)return K;const ve=de??"__n_no_path__",ge=new nt({[ve]:g}),ue=new nt({[ve]:$}),{validateMessages:d}=(r==null?void 0:r.props)||{};d&&(ge.messages(d),ue.messages(d));const P=x=>{y.value=x.map(_=>{const T=(_==null?void 0:_.message)||"";return{key:T,render:()=>T.startsWith("__renderMessage__")?we[T]():T}}),x.forEach(_=>{var T;(T=_.message)!=null&&T.startsWith("__renderMessage__")&&(_.message=V[_.message])})};if(g.length){const x=await new Promise(_=>{ge.validate({[ve]:ae},he,_)});x!=null&&x.length&&(K.valid=!1,K.errors=x,P(x))}if($.length&&!K.errors){const x=await new Promise(_=>{ue.validate({[ve]:ae},he,_)});x!=null&&x.length&&(P(x),K.warnings=x)}return!K.errors&&!K.warnings?I():(a.value=!!K.errors,s.value=!!K.warnings),K};function A(){z("blur")}function M(){z("change")}function Y(){z("focus")}function B(){z("input")}async function re(U,fe){let he,de,ye,ae;return typeof U=="string"?(he=U,de=fe):U!==null&&typeof U=="object"&&(he=U.trigger,de=U.callback,ye=U.shouldRuleBeApplied,ae=U.options),await new Promise((we,V)=>{z(he,ye,ae).then(({valid:L,errors:g,warnings:$})=>{L?(de&&de(void 0,{warnings:$}),we({warnings:$})):(de&&de(g,{warnings:$}),V(g))})})}Ie(ro,{path:Me(e,"path"),disabled:p,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:I,handleContentBlur:A,handleContentChange:M,handleContentFocus:Y,handleContentInput:B});const J={validate:re,restoreValidation:I,internalValidate:z,invalidateLabelWidth:w};Qn(w);const ee=k(()=>{const{value:U}=u,{value:fe}=c,he=fe==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:de},self:{labelTextColor:ye,asteriskColor:ae,lineHeight:we,feedbackTextColor:V,feedbackTextColorWarning:L,feedbackTextColorError:g,feedbackPadding:$,labelFontWeight:K,[Se("labelHeight",U)]:ve,[Se("blankHeight",U)]:ge,[Se("feedbackFontSize",U)]:ue,[Se("feedbackHeight",U)]:d,[Se("labelPadding",he)]:P,[Se("labelTextAlign",he)]:x,[Se(Se("labelFontSize",fe),U)]:_}}=E.value;let T=h.value??x;return fe==="top"&&(T=T==="right"?"flex-end":"flex-start"),{"--n-bezier":de,"--n-line-height":we,"--n-blank-height":ge,"--n-label-font-size":_,"--n-label-text-align":T,"--n-label-height":ve,"--n-label-padding":P,"--n-label-font-weight":K,"--n-asterisk-color":ae,"--n-label-text-color":ye,"--n-feedback-padding":$,"--n-feedback-font-size":ue,"--n-feedback-height":d,"--n-feedback-text-color":V,"--n-feedback-text-color-warning":L,"--n-feedback-text-color-error":g}}),te=n?vt("form-item",k(()=>{var U;return`${u.value[0]}${c.value[0]}${((U=h.value)==null?void 0:U[0])||""}`}),ee,e):void 0;return{labelElementRef:b,mergedClsPrefix:t,mergedRequired:l,feedbackId:v,renderExplains:y,reverseColSpace:k(()=>c.value==="left"&&m.value==="left"&&h.value==="left"),...i,...o,...J,cssVars:n?void 0:ee,themeClass:te==null?void 0:te.themeClass,onRender:te==null?void 0:te.onRender}},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const f=(S(),q("span",{class:j(`${t}-form-item-label__text`)},[N(()=>l)],2)),u=a?(S(),q("span",{key:1,class:j(`${t}-form-item-label__asterisk`)},[o!=="left"?N(()=>" *"):N(()=>"* ")],2)):o==="right-hanging"&&(S(),q("span",{key:2,class:j(`${t}-form-item-label__asterisk-placeholder`)}," *",2)),{labelProps:c}=this;return S(),q("label",Fe(c,{class:[c==null?void 0:c.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),[o==="left"?(S(),q(ke,{key:0},[N(()=>[u,f])],64)):(S(),q(ke,{key:1},[N(()=>[f,u])],64))],16)};return S(),q("div",{class:j([`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`]),style:Ae(this.cssVars)},[N(()=>n&&s()),se("div",{class:j([`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]),style:Ae(this.contentStyle)},[N(()=>{var l;return(l=e.default)==null?void 0:l.call(e)})],6),this.mergedShowFeedback?(S(),q("div",{key:this.feedbackId,style:Ae(this.feedbackStyle),class:j([`${t}-form-item-feedback-wrapper`,this.feedbackClass])},[H(Yr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return $e(e.feedback,f=>{var h;const{feedback:u}=this,c=f||u?(S(),q("div",{key:"__feedback__",class:j(`${t}-form-item-feedback__line`)},[N(()=>f||u)],2)):this.renderExplains.length?(h=this.renderExplains)==null?void 0:h.map(({key:m,render:y})=>(S(),q("div",{key:m,class:j(`${t}-form-item-feedback__line`)},[N(()=>y())],2))):null;return c?l==="warning"?(S(),q("div",{key:"controlled-warning",class:j(`${t}-form-item-feedback ${t}-form-item-feedback--warning`)},[N(()=>c)],2)):l==="error"?(S(),q("div",{key:"controlled-error",class:j(`${t}-form-item-feedback ${t}-form-item-feedback--error`)},[N(()=>c)],2)):l==="success"?(S(),q("div",{key:"controlled-success",class:j(`${t}-form-item-feedback ${t}-form-item-feedback--success`)},[N(()=>c)],2)):(S(),q("div",{key:"controlled-default",class:j(`${t}-form-item-feedback`)},[N(()=>c)],2)):null})}},1024)],6)):N(()=>null)],6)}});function ni(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const ri=Wn({name:"InputNumber",common:Yt,peers:{Button:oo,Input:zr},self:ni});var oi=W([F("input-number-suffix",`
|
||
display: inline-block;
|
||
margin-right: 10px;
|
||
`),F("input-number-prefix",`
|
||
display: inline-block;
|
||
margin-left: 10px;
|
||
`)]);function ii(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function ai(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function Ot(e){return e==null?!0:!Number.isNaN(e)}function xn(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function Ft(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const wn=800,Cn=100,li={...Pe.props,autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]};var Sn=ce({name:"InputNumber",props:li,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:o}=He(e),i=Pe("InputNumber","-input-number",oi,ri,e,n),{localeRef:a}=Ir("InputNumber"),s=Jn(e,{mergedSize:C=>{var ze,_e;const{size:O}=e;if(O)return O;const{mergedSize:Z}=C||{};if(Z!=null&&Z.value)return Z.value;const Ce=(_e=(ze=o==null?void 0:o.value)==null?void 0:ze.InputNumber)==null?void 0:_e.size;return Ce||"medium"}}),{mergedSizeRef:l,mergedDisabledRef:f,mergedStatusRef:u}=s,c=oe(null),h=oe(null),m=oe(null),y=oe(e.defaultValue),v=Me(e,"value"),b=ft(v,y),p=oe(""),E=C=>{const O=String(C).split(".")[1];return O?O.length:0},w=C=>{const O=[e.min,e.max,e.step,C].map(Z=>Z===void 0?0:E(Z));return Math.max(...O)},I=Be(()=>{const{placeholder:C}=e;return C!==void 0?C:a.value.placeholder}),z=Be(()=>{const C=Ft(e.step);return C!==null?C===0?1:Math.abs(C):1}),A=Be(()=>{const C=Ft(e.min);return C!==null?C:null}),M=Be(()=>{const C=Ft(e.max);return C!==null?C:null}),Y=()=>{const{value:C}=b;if(Ot(C)){const{format:O,precision:Z}=e;O?p.value=O(C):C===null||Z===void 0||E(C)>Z?p.value=xn(C,void 0):p.value=xn(C,Z)}else p.value=String(C)};Y();const B=C=>{const{value:O}=b;if(C===O){Y();return}const{"onUpdate:value":Z,onUpdateValue:Ce,onChange:ze}=e,{nTriggerFormInput:_e,nTriggerFormChange:Ge}=s;ze&&pe(ze,C),Ce&&pe(Ce,C),Z&&pe(Z,C),y.value=C,_e(),Ge()},re=({offset:C,doUpdateIfValid:O,fixPrecision:Z,isInputing:Ce})=>{const{value:ze}=p;if(Ce&&ai(ze))return!1;const _e=(e.parse||ii)(ze);if(_e===null)return O&&B(null),null;if(Ot(_e)){const Ge=E(_e),{precision:St}=e;if(St!==void 0&&St<Ge&&!Z)return!1;let qe=Number.parseFloat((_e+C).toFixed(St??w(_e)));if(Ot(qe)){const{value:Rt}=M,{value:kt}=A;if(Rt!==null&&qe>Rt){if(!O||Ce)return!1;qe=Rt}if(kt!==null&&qe<kt){if(!O||Ce)return!1;qe=kt}return e.validator&&!e.validator(qe)?!1:(O&&B(qe),qe)}}return!1},J=Be(()=>re({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),ee=Be(()=>{const{value:C}=b;if(e.validator&&C===null)return!1;const{value:O}=z;return re({offset:-O,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),te=Be(()=>{const{value:C}=b;if(e.validator&&C===null)return!1;const{value:O}=z;return re({offset:+O,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function U(C){const{onFocus:O}=e,{nTriggerFormFocus:Z}=s;O&&pe(O,C),Z()}function fe(C){var ze,_e;if(C.target===((ze=c.value)==null?void 0:ze.wrapperElRef))return;const O=re({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(O!==!1){const Ge=(_e=c.value)==null?void 0:_e.inputElRef;Ge&&(Ge.value=String(O||"")),b.value===O&&Y()}else Y();const{onBlur:Z}=e,{nTriggerFormBlur:Ce}=s;Z&&pe(Z,C),Ce(),Xt(()=>{Y()})}function he(C){const{onClear:O}=e;O&&pe(O,C)}function de(){const{value:C}=te;if(!C){d();return}const{value:O}=b;if(O===null)e.validator||B(V());else{const{value:Z}=z;re({offset:Z,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function ye(){const{value:C}=ee;if(!C){ge();return}const{value:O}=b;if(O===null)e.validator||B(V());else{const{value:Z}=z;re({offset:-Z,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const ae=U,we=fe;function V(){if(e.validator)return null;const{value:C}=A,{value:O}=M;return C!==null?Math.max(0,C):O!==null?Math.min(0,O):0}function L(C){he(C),B(null)}function g(C){var O,Z,Ce;(O=m.value)!=null&&O.$el.contains(C.target)&&C.preventDefault(),(Z=h.value)!=null&&Z.$el.contains(C.target)&&C.preventDefault(),(Ce=c.value)==null||Ce.activate()}let $=null,K=null,ve=null;function ge(){ve&&(window.clearTimeout(ve),ve=null),$&&(window.clearInterval($),$=null)}let ue=null;function d(){ue&&(window.clearTimeout(ue),ue=null),K&&(window.clearInterval(K),K=null)}function P(){ge(),ve=window.setTimeout(()=>{$=window.setInterval(()=>{ye()},Cn)},wn),on("mouseup",document,ge,{once:!0})}function x(){d(),ue=window.setTimeout(()=>{K=window.setInterval(()=>{de()},Cn)},wn),on("mouseup",document,d,{once:!0})}const _=()=>{K||de()},T=()=>{$||ye()};function ie(C){var O,Z;if(C.key==="Enter"){if(C.target===((O=c.value)==null?void 0:O.wrapperElRef))return;re({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((Z=c.value)==null||Z.deactivate())}else if(C.key==="ArrowUp"){if(!te.value||e.keyboard.ArrowUp===!1)return;C.preventDefault(),re({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&de()}else if(C.key==="ArrowDown"){if(!ee.value||e.keyboard.ArrowDown===!1)return;C.preventDefault(),re({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ye()}}function X(C){p.value=C,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&re({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}tt(b,()=>{Y()});const G={focus:()=>{var C;return(C=c.value)==null?void 0:C.focus()},blur:()=>{var C;return(C=c.value)==null?void 0:C.blur()},select:()=>{var C;return(C=c.value)==null?void 0:C.select()}},me=io("InputNumber",r,n);return{...G,rtlEnabled:me,inputInstRef:c,minusButtonInstRef:h,addButtonInstRef:m,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:y,mergedValue:b,mergedPlaceholder:I,displayedValueInvalid:J,mergedSize:l,mergedDisabled:f,displayedValue:p,addable:te,minusable:ee,mergedStatus:u,handleFocus:ae,handleBlur:we,handleClear:L,handleMouseDown:g,handleAddClick:_,handleMinusClick:T,handleAddMousedown:x,handleMinusMousedown:P,handleKeyDown:ie,handleUpdateDisplayedValue:X,mergedTheme:i,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:k(()=>{const{self:{iconColorDisabled:C}}=i.value,[O,Z,Ce,ze]=Ur(C);return{textColorTextDisabled:`rgb(${O}, ${Z}, ${Ce})`,opacityDisabled:`${ze}`}})}},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>(S(),ne(un,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>dn(t["minus-icon"],()=>[(S(),ne(wt,{clsPrefix:e},{default:()=>(S(),ne(fo))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"])),r=()=>(S(),ne(un,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>dn(t["add-icon"],()=>[(S(),ne(wt,{clsPrefix:e},{default:()=>(S(),ne(uo))},1032,["clsPrefix"]))])},1032,["disabled","theme","themeOverrides","builtinThemeOverrides","onClick","onMousedown"]));return S(),q("div",{class:j([`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`])},[(S(),ne(_r,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),$e(t.prefix,i=>i?(S(),q("span",{key:1,class:j(`${e}-input-number-prefix`)},[N(()=>i)],2)):null)]:(o=t.prefix)==null?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[$e(t.suffix,i=>i?(S(),q("span",{key:2,class:j(`${e}-input-number-suffix`)},[N(()=>i)],2)):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)==null?void 0:o.call(t)}},1032,["autofocus","status","bordered","loading","value","onUpdateValue","theme","themeOverrides","builtinThemeOverrides","size","placeholder","disabled","readonly","round","textDecoration","onFocus","onBlur","onKeydown","onMousedown","onClear","clearable","inputProps"]))],2)}});function si(e){const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:f}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:f,footerColor:a,footerColorInverted:f,headerBorderColor:i,headerBorderColorInverted:f,footerBorderColor:i,footerBorderColorInverted:f,siderBorderColor:i,siderBorderColorInverted:f,siderColor:o,siderColorInverted:f,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ln(r,s),siderToggleBarColorHover:ln(r,l),__invertScrollbar:"true"}}const or=Wn({name:"Layout",common:Yt,peers:{Scrollbar:Ar},self:si}),ir=We("n-layout-sider"),ar={type:String,default:"static"};var ci=F("layout",`
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: auto;
|
||
flex: auto;
|
||
overflow: hidden;
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[F("layout-scroll-container",`
|
||
overflow-x: hidden;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
`),D("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]);const di={embedded:Boolean,position:ar,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},lr=We("n-layout");function sr(e){return ce({name:e?"LayoutContent":"Layout",props:{...Pe.props,...di},setup(t){const n=oe(null),r=oe(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Pe("Layout","-layout",ci,or,t,o);function s(v,b){if(t.nativeScrollbar){const{value:p}=n;p&&(b===void 0?p.scrollTo(v):p.scrollTo(v,b))}else{const{value:p}=r;p&&p.scrollTo(v,b)}}Ie(lr,t);let l=0,f=0;const u=v=>{var p;const b=v.target;l=b.scrollLeft,f=b.scrollTop,(p=t.onScroll)==null||p.call(t,v)};Un(()=>{if(t.nativeScrollbar){const v=n.value;v&&(v.scrollTop=f,v.scrollLeft=l)}});const c={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:s},m=k(()=>{const{common:{cubicBezierEaseInOut:v},self:b}=a.value;return{"--n-bezier":v,"--n-color":t.embedded?b.colorEmbedded:b.color,"--n-text-color":b.textColor}}),y=i?vt("layout",k(()=>t.embedded?"e":""),m,t):void 0;return{mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:c,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender,...h}},render(){var i;const{mergedClsPrefix:t,hasSider:n}=this;(i=this.onRender)==null||i.call(this);const r=n?this.hasSiderStyle:void 0,o=[this.themeClass,e&&`${t}-layout-content`,`${t}-layout`,`${t}-layout--${this.position}-positioned`];return S(),q("div",{class:j(o),style:Ae(this.cssVars)},[this.nativeScrollbar?(S(),q("div",{key:0,ref:"scrollableElRef",class:j([`${t}-layout-scroll-container`,this.contentClass]),style:Ae([this.contentStyle,r]),onScroll:this.handleNativeElScroll},[N(()=>{var a,s;return(s=(a=this.$slots).default)==null?void 0:s.call(a)})],46,["onScroll"])):(S(),ne(Dn,Fe({key:1},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),Gn(this.$slots),1040,["onScroll","theme","themeOverrides","contentClass","contentStyle"]))],6)}})}var ui=sr(!1),Rn=sr(!0),fi=F("layout-sider",`
|
||
flex-shrink: 0;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: 1;
|
||
color: var(--n-text-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
min-width .3s var(--n-bezier),
|
||
max-width .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
background-color: var(--n-color);
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
`,[D("bordered",[R("border",`
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
background-color: var(--n-border-color);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`)]),R("left-placement",[D("bordered",[R("border",`
|
||
right: 0;
|
||
`)])]),D("right-placement",`
|
||
justify-content: flex-start;
|
||
`,[D("bordered",[R("border",`
|
||
left: 0;
|
||
`)]),D("collapsed",[F("layout-toggle-button",[F("base-icon",`
|
||
transform: rotate(180deg);
|
||
`)]),F("layout-toggle-bar",[W("&:hover",[R("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),R("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),F("layout-toggle-button",`
|
||
left: 0;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[F("base-icon",`
|
||
transform: rotate(0);
|
||
`)]),F("layout-toggle-bar",`
|
||
left: -28px;
|
||
transform: rotate(180deg);
|
||
`,[W("&:hover",[R("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),R("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),D("collapsed",[F("layout-toggle-bar",[W("&:hover",[R("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),R("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),F("layout-toggle-button",[F("base-icon",`
|
||
transform: rotate(0);
|
||
`)])]),F("layout-toggle-button",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
right .3s var(--n-bezier),
|
||
left .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
cursor: pointer;
|
||
width: 24px;
|
||
height: 24px;
|
||
position: absolute;
|
||
top: 50%;
|
||
right: 0;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 18px;
|
||
color: var(--n-toggle-button-icon-color);
|
||
border: var(--n-toggle-button-border);
|
||
background-color: var(--n-toggle-button-color);
|
||
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
|
||
transform: translateX(50%) translateY(-50%);
|
||
z-index: 1;
|
||
`,[F("base-icon",`
|
||
transition: transform .3s var(--n-bezier);
|
||
transform: rotate(180deg);
|
||
`)]),F("layout-toggle-bar",`
|
||
cursor: pointer;
|
||
height: 72px;
|
||
width: 32px;
|
||
position: absolute;
|
||
top: calc(50% - 36px);
|
||
right: -28px;
|
||
`,[R("top, bottom",`
|
||
position: absolute;
|
||
width: 4px;
|
||
border-radius: 2px;
|
||
height: 38px;
|
||
left: 14px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier);
|
||
`),R("bottom",`
|
||
position: absolute;
|
||
top: 34px;
|
||
`),W("&:hover",[R("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),R("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),R("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),W("&:hover",[R("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),R("border",`
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),F("layout-sider-scroll-container",`
|
||
flex-grow: 1;
|
||
flex-shrink: 0;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
opacity: 0;
|
||
transition: opacity .3s var(--n-bezier);
|
||
max-width: 100%;
|
||
`),D("show-content",[F("layout-sider-scroll-container",{opacity:1})]),D("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]);const hi=["onClick"];var mi=ce({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return S(),q("div",{onClick:this.onClick,class:j(`${e}-layout-toggle-bar`)},[se("div",{class:j(`${e}-layout-toggle-bar__top`)},null,2),se("div",{class:j(`${e}-layout-toggle-bar__bottom`)},null,2)],10,hi)}});const vi=["onClick"];var gi=ce({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return S(),q("div",{class:j(`${e}-layout-toggle-button`),onClick:this.onClick},[(S(),ne(wt,{clsPrefix:e},{default:()=>(S(),ne(Er))},1032,["clsPrefix"]))],10,vi)}});const pi=["onTransitionend"],bi={position:ar,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function};var yi=ce({name:"LayoutSider",props:{...Pe.props,...bi},setup(e){const t=xe(lr),n=oe(null),r=oe(null),o=oe(e.defaultCollapsed),i=ft(Me(e,"collapsed"),o),a=k(()=>Ze(i.value?e.collapsedWidth:e.width)),s=k(()=>e.collapseMode!=="transform"?{}:{minWidth:Ze(e.width)}),l=k(()=>t?t.siderPlacement:"left");function f(z,A){if(e.nativeScrollbar){const{value:M}=n;M&&(A===void 0?M.scrollTo(z):M.scrollTo(z,A))}else{const{value:M}=r;M&&M.scrollTo(z,A)}}function u(){const{"onUpdate:collapsed":z,onUpdateCollapsed:A,onExpand:M,onCollapse:Y}=e,{value:B}=i;A&&pe(A,!B),z&&pe(z,!B),o.value=!B,B?M&&pe(M):Y&&pe(Y)}let c=0,h=0;const m=z=>{var M;const A=z.target;c=A.scrollLeft,h=A.scrollTop,(M=e.onScroll)==null||M.call(e,z)};Un(()=>{if(e.nativeScrollbar){const z=n.value;z&&(z.scrollTop=h,z.scrollLeft=c)}}),Ie(ir,{collapsedRef:i,collapseModeRef:Me(e,"collapseMode")});const{mergedClsPrefixRef:y,inlineThemeDisabled:v}=He(e),b=Pe("Layout","-layout-sider",fi,or,e,y);function p(z){var A,M;z.propertyName==="max-width"&&(i.value?(A=e.onAfterLeave)==null||A.call(e):(M=e.onAfterEnter)==null||M.call(e))}const E={scrollTo:f},w=k(()=>{const{common:{cubicBezierEaseInOut:z},self:A}=b.value,{siderToggleButtonColor:M,siderToggleButtonBorder:Y,siderToggleBarColor:B,siderToggleBarColorHover:re}=A,J={"--n-bezier":z,"--n-toggle-button-color":M,"--n-toggle-button-border":Y,"--n-toggle-bar-color":B,"--n-toggle-bar-color-hover":re};return e.inverted?(J["--n-color"]=A.siderColorInverted,J["--n-text-color"]=A.textColorInverted,J["--n-border-color"]=A.siderBorderColorInverted,J["--n-toggle-button-icon-color"]=A.siderToggleButtonIconColorInverted,J.__invertScrollbar=A.__invertScrollbar):(J["--n-color"]=A.siderColor,J["--n-text-color"]=A.textColor,J["--n-border-color"]=A.siderBorderColor,J["--n-toggle-button-icon-color"]=A.siderToggleButtonIconColor),J}),I=v?vt("layout-sider",k(()=>e.inverted?"a":"b"),w,e):void 0;return{scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:y,mergedTheme:b,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:m,handleTransitionend:p,handleTriggerClick:u,inlineThemeDisabled:v,cssVars:w,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender,...E}},render(){var r;const{mergedClsPrefix:e,mergedCollapsed:t,showTrigger:n}=this;return(r=this.onRender)==null||r.call(this),S(),q("aside",{class:j([`${e}-layout-sider`,this.themeClass,`${e}-layout-sider--${this.position}-positioned`,`${e}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${e}-layout-sider--bordered`,t&&`${e}-layout-sider--collapsed`,(!t||this.showCollapsedContent)&&`${e}-layout-sider--show-content`]),onTransitionend:this.handleTransitionend,style:Ae([this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ze(this.width)}])},[this.nativeScrollbar?(S(),q("div",{key:1,class:j([`${e}-layout-sider-scroll-container`,this.contentClass]),onScroll:this.handleNativeElScroll,style:Ae([this.scrollContainerStyle,{overflow:"auto"},this.contentStyle]),ref:"scrollableElRef"},[N(()=>{var o,i;return(i=(o=this.$slots).default)==null?void 0:i.call(o)})],46,["onScroll"])):(S(),ne(Dn,Fe({key:0},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),Gn(this.$slots),1040,["onScroll","style","contentStyle","contentClass","theme","themeOverrides","builtinThemeOverrides"])),n?(S(),q(ke,{key:2},[n==="bar"?(S(),ne(mi,{key:0,clsPrefix:e,class:j(t?this.collapsedTriggerClass:this.triggerClass),style:Ae(t?this.collapsedTriggerStyle:this.triggerStyle),onClick:this.handleTriggerClick},null,8,["clsPrefix","class","style","onClick"])):(S(),ne(gi,{key:1,clsPrefix:e,class:j(t?this.collapsedTriggerClass:this.triggerClass),style:Ae(t?this.collapsedTriggerStyle:this.triggerStyle),onClick:this.handleTriggerClick},null,8,["clsPrefix","class","style","onClick"]))],64)):N(()=>null),this.bordered?(S(),q("div",{key:4,class:j(`${e}-layout-sider__border`)},null,2)):N(()=>null)],46,pi)}});const pt=We("n-menu"),cr=We("n-submenu"),Qt=We("n-menu-item-group"),kn=[W("&::before","background-color: var(--n-item-color-hover);"),R("arrow",`
|
||
color: var(--n-arrow-color-hover);
|
||
`),R("icon",`
|
||
color: var(--n-item-icon-color-hover);
|
||
`),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover);
|
||
`,[W("a",`
|
||
color: var(--n-item-text-color-hover);
|
||
`),R("extra",`
|
||
color: var(--n-item-text-color-hover);
|
||
`)])],Pn=[R("icon",`
|
||
color: var(--n-item-icon-color-hover-horizontal);
|
||
`),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`,[W("a",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`),R("extra",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`)])];var xi=W([F("menu",`
|
||
background-color: var(--n-color);
|
||
color: var(--n-item-text-color);
|
||
overflow: hidden;
|
||
transition: background-color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
font-size: var(--n-font-size);
|
||
padding-bottom: 6px;
|
||
`,[D("horizontal",`
|
||
max-width: 100%;
|
||
width: 100%;
|
||
display: flex;
|
||
overflow: hidden;
|
||
padding-bottom: 0;
|
||
`,[F("submenu","margin: 0;"),F("menu-item","margin: 0;"),F("menu-item-content",`
|
||
padding: 0 20px;
|
||
border-bottom: 2px solid #0000;
|
||
`,[W("&::before","display: none;"),D("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),F("menu-item-content",[D("selected",[R("icon","color: var(--n-item-icon-color-active-horizontal);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-horizontal);
|
||
`,[W("a","color: var(--n-item-text-color-active-horizontal);"),R("extra","color: var(--n-item-text-color-active-horizontal);")])]),D("child-active",`
|
||
border-bottom: 2px solid var(--n-border-color-horizontal);
|
||
`,[F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`,[W("a",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`),R("extra",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`)]),R("icon",`
|
||
color: var(--n-item-icon-color-child-active-horizontal);
|
||
`)]),Ue("disabled",[Ue("selected, child-active",[W("&:focus-within",Pn)]),D("selected",[De(null,[R("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover-horizontal);
|
||
`,[W("a","color: var(--n-item-text-color-active-hover-horizontal);"),R("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),D("child-active",[De(null,[R("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover-horizontal);
|
||
`,[W("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),R("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),De("border-bottom: 2px solid var(--n-border-color-horizontal);",Pn)]),F("menu-item-content-header",[W("a","color: var(--n-item-text-color-horizontal);")])])]),Ue("responsive",[F("menu-item-content-header",`
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
`)]),D("collapsed",[F("menu-item-content",[D("selected",[W("&::before",`
|
||
background-color: var(--n-item-color-active-collapsed) !important;
|
||
`)]),F("menu-item-content-header","opacity: 0;"),R("arrow","opacity: 0;"),R("icon","color: var(--n-item-icon-color-collapsed);")])]),F("menu-item",`
|
||
height: var(--n-item-height);
|
||
margin-top: 6px;
|
||
position: relative;
|
||
`),F("menu-item-content",`
|
||
box-sizing: border-box;
|
||
line-height: 1.75;
|
||
height: 100%;
|
||
display: grid;
|
||
grid-template-areas: "icon content arrow";
|
||
grid-template-columns: auto 1fr auto;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding-right: 18px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
padding-left .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[W("> *","z-index: 1;"),W("&::before",`
|
||
z-index: auto;
|
||
content: "";
|
||
background-color: #0000;
|
||
position: absolute;
|
||
left: 8px;
|
||
right: 8px;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border-radius: var(--n-border-radius);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),D("disabled",`
|
||
opacity: .45;
|
||
cursor: not-allowed;
|
||
`),D("collapsed",[R("arrow","transform: rotate(0);")]),D("selected",[W("&::before","background-color: var(--n-item-color-active);"),R("arrow","color: var(--n-arrow-color-active);"),R("icon","color: var(--n-item-icon-color-active);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active);
|
||
`,[W("a","color: var(--n-item-text-color-active);"),R("extra","color: var(--n-item-text-color-active);")])]),D("child-active",[F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`,[W("a",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`),R("extra",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`)]),R("arrow",`
|
||
color: var(--n-arrow-color-child-active);
|
||
`),R("icon",`
|
||
color: var(--n-item-icon-color-child-active);
|
||
`)]),Ue("disabled",[Ue("selected, child-active",[W("&:focus-within",kn)]),D("selected",[De(null,[R("arrow","color: var(--n-arrow-color-active-hover);"),R("icon","color: var(--n-item-icon-color-active-hover);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover);
|
||
`,[W("a","color: var(--n-item-text-color-active-hover);"),R("extra","color: var(--n-item-text-color-active-hover);")])])]),D("child-active",[De(null,[R("arrow","color: var(--n-arrow-color-child-active-hover);"),R("icon","color: var(--n-item-icon-color-child-active-hover);"),F("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover);
|
||
`,[W("a","color: var(--n-item-text-color-child-active-hover);"),R("extra","color: var(--n-item-text-color-child-active-hover);")])])]),D("selected",[De(null,[W("&::before","background-color: var(--n-item-color-active-hover);")])]),De(null,kn)]),R("icon",`
|
||
grid-area: icon;
|
||
color: var(--n-item-icon-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
font-size .3s var(--n-bezier),
|
||
margin-right .3s var(--n-bezier);
|
||
box-sizing: content-box;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`),R("arrow",`
|
||
grid-area: arrow;
|
||
font-size: 16px;
|
||
color: var(--n-arrow-color);
|
||
transform: rotate(180deg);
|
||
opacity: 1;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
transform 0.2s var(--n-bezier),
|
||
opacity 0.2s var(--n-bezier);
|
||
`),F("menu-item-content-header",`
|
||
grid-area: content;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
opacity: 1;
|
||
white-space: nowrap;
|
||
color: var(--n-item-text-color);
|
||
`,[W("a",`
|
||
outline: none;
|
||
text-decoration: none;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-item-text-color);
|
||
`,[W("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),R("extra",`
|
||
font-size: .93em;
|
||
color: var(--n-group-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`)])]),F("submenu",`
|
||
cursor: pointer;
|
||
position: relative;
|
||
margin-top: 6px;
|
||
`,[F("menu-item-content",`
|
||
height: var(--n-item-height);
|
||
`),F("submenu-children",`
|
||
overflow: hidden;
|
||
padding: 0;
|
||
`,[Tr({duration:".2s"})])]),F("menu-item-group",[F("menu-item-group-title",`
|
||
margin-top: 6px;
|
||
color: var(--n-group-text-color);
|
||
cursor: default;
|
||
font-size: .93em;
|
||
height: 36px;
|
||
display: flex;
|
||
align-items: center;
|
||
transition:
|
||
padding-left .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)])]),F("menu-tooltip",[W("a",`
|
||
color: inherit;
|
||
text-decoration: none;
|
||
`)]),F("menu-divider",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-divider-color);
|
||
height: 1px;
|
||
margin: 6px 18px;
|
||
`)]);function De(e,t){return[D("hover",e,t),W("&:hover",e,t)]}var wi=ce({name:"MenuDivider",setup(){const{mergedClsPrefixRef:e,isHorizontalRef:t}=xe(pt);return()=>t.value?null:(S(),q("div",{key:1,class:j(`${e.value}-menu-divider`)},null,2))}}),Ci=ce({name:"ChevronDownFilled",render(){return(()=>{const e=mt("f3af82a2aab086a5");return e[0]||(e[0]=se("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[se("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"})],-1))})()}});const Si=["onClick"];var dr=ce({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=xe(pt);return{menuProps:t,style:k(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:k(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):Je(this.icon);return(()=>{const s=mt("7bb10afc6caf8fa4");return S(),q("div",{onClick:l=>{var f;(f=this.onClick)==null||f.call(this,l)},role:"none",class:j([`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}]),style:Ae(this.style)},[N(()=>a&&(S(),q("div",{class:j(`${e}-menu-item-content__icon`),style:Ae(this.iconStyle),role:"none"},[N(()=>[a])],6))),se("div",{class:j(`${e}-menu-item-content-header`),role:"none"},[this.isEllipsisPlaceholder?(S(),q(ke,{key:0},[N(()=>this.title)],64)):(S(),q(ke,{key:1},[r?(S(),q(ke,{key:0},[N(()=>r(t.rawNode))],64)):(S(),q(ke,{key:1},[N(()=>Je(this.title))],64))],64)),this.extra||o?(S(),q("span",{key:2,class:j(`${e}-menu-item-content-header__extra`)},[s[0]||(s[0]=N(" ",-1)),o?(S(),q(ke,{key:0},[N(()=>o(t.rawNode))],64)):(S(),q(ke,{key:1},[N(()=>Je(this.extra))],64))],2)):N(()=>null)],2),this.showArrow?(S(),ne(wt,{key:0,ariaHidden:!0,class:j(`${e}-menu-item-content__arrow`),clsPrefix:e},{default:()=>i?i(t.rawNode):(S(),ne(Ci,{key:1}))},1032,["class","clsPrefix"])):N(()=>null)],14,Si)})()}});const yt=8;function Zt(e){const t=xe(pt),{props:n,mergedCollapsedRef:r}=t,o=xe(cr,null),i=xe(Qt,null),a=k(()=>n.mode==="horizontal"),s=k(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=k(()=>Math.max(n.collapsedIconSize??n.iconSize,n.iconSize));return{dropdownPlacement:s,activeIconSize:k(()=>!a.value&&e.root&&r.value?n.collapsedIconSize??n.iconSize:n.iconSize),maxIconSize:l,paddingLeft:k(()=>{if(a.value)return;const{collapsedWidth:f,indent:u,rootIndent:c}=n,{root:h,isGroup:m}=e,y=c===void 0?u:c;return h?r.value?f/2-l.value/2:y:i&&typeof i.paddingLeftRef.value=="number"?r.value?f/2-l.value/2:u/2+i.paddingLeftRef.value:o&&typeof o.paddingLeftRef.value=="number"?(m?u/2:u)+o.paddingLeftRef.value:0}),iconMarginRight:k(()=>{const{collapsedWidth:f,indent:u,rootIndent:c}=n,{value:h}=l,{root:m}=e;return a.value||!m||!r.value?yt:(c===void 0?u:c)+h+yt-(f+h)/2}),NMenu:t,NSubmenu:o,NMenuOptionGroup:i}}const Jt={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},ur={...Jt,tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function},Ri=Qe(ur),ki=ce({name:"MenuOption",props:ur,setup(e){const t=Zt(e),{NSubmenu:n,NMenu:r,NMenuOptionGroup:o}=t,{props:i,mergedClsPrefixRef:a,mergedCollapsedRef:s}=r,l=n?n.mergedDisabledRef:o?o.mergedDisabledRef:{value:!1},f=k(()=>l.value||e.disabled);function u(h){const{onClick:m}=e;m&&m(h)}function c(h){f.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),u(h))}return{mergedClsPrefix:a,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:i,dropdownEnabled:Be(()=>e.root&&s.value&&i.mode!=="horizontal"&&!f.value),selected:Be(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:f,handleClick:c}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return S(),q("div",Fe(i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),[(S(),ne(Or,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):Je(this.title),trigger:()=>(S(),ne(dr,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick},null,8,["tmNode","clsPrefix","paddingLeft","iconMarginRight","maxIconSize","activeIconSize","selected","title","extra","disabled","icon","onClick"]))},1032,["theme","themeOverrides","placement","disabled"]))],16)}}),fr={...Jt,tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}},Pi=Qe(fr),zi=ce({name:"MenuOptionGroup",props:fr,setup(e){const t=Zt(e),{NSubmenu:n}=t,r=k(()=>n!=null&&n.mergedDisabledRef.value?!0:e.tmNode.disabled);Ie(Qt,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:r});const{mergedClsPrefixRef:o,props:i}=xe(pt);return function(){const{value:a}=o,s=t.paddingLeft.value,{nodeProps:l}=i,f=l==null?void 0:l(e.tmNode.rawNode);return(()=>{const u=mt("45eca6a63be5028b");return S(),q("div",{class:j(`${a}-menu-item-group`),role:"group"},[se("div",Fe(f,{class:[`${a}-menu-item-group-title`,f==null?void 0:f.class],style:[(f==null?void 0:f.style)||"",s!==void 0?`padding-left: ${s}px;`:""]}),[N(()=>Je(e.title)),e.extra?(S(),q(ke,{key:0},[u[0]||(u[0]=N(" ",-1)),N(()=>Je(e.extra))],64)):N(()=>null)],16),se("div",null,[N(()=>e.tmNodes.map(c=>en(c,i)))])],2)})()}}}),_i=["aria-expanded","id"],Ii=["aria-expanded","id"],hr={...Jt,rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean},Ai=Qe(hr),Dt=ce({name:"Submenu",props:hr,setup(e){const t=Zt(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,s=k(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),l=oe(!1);Ie(cr,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),Ie(Qt,null);function f(){const{onClick:h}=e;h&&h()}function u(){s.value||(i.value||n.toggleExpand(e.internalKey),f())}function c(h){l.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:Be(()=>e.virtualChildActive??n.activePathRef.value.includes(e.internalKey)),collapsed:k(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:k(()=>!s.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:c,handleClick:u}},render(){var i;const{mergedClsPrefix:e,menuProps:{renderIcon:t,renderLabel:n}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:f,maxIconSize:u,activeIconSize:c,title:h,childActive:m,icon:y,handleClick:v,menuProps:{nodeProps:b},dropdownShow:p,iconMarginRight:E,tmNode:w,mergedClsPrefix:I,isEllipsisPlaceholder:z,extra:A}=this,M=b==null?void 0:b(w.rawNode);return S(),q("div",Fe(M,{class:[`${I}-menu-item`,M==null?void 0:M.class],role:"menuitem"}),[(S(),ne(dr,{tmNode:w,paddingLeft:s,collapsed:l,disabled:f,iconMarginRight:E,maxIconSize:u,activeIconSize:c,title:h,extra:A,showArrow:!a,childActive:m,clsPrefix:I,icon:y,hover:p,onClick:v,isEllipsisPlaceholder:z},null,8,["tmNode","paddingLeft","collapsed","disabled","iconMarginRight","maxIconSize","activeIconSize","title","extra","showArrow","childActive","clsPrefix","icon","hover","onClick","isEllipsisPlaceholder"]))],16)},o=()=>(S(),ne(ao,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:(S(),q("div",{key:1,class:j(`${e}-submenu-children`),role:"menu"},[N(()=>a.map(l=>en(l,this.menuProps)))],2))}},1024));return this.root?(S(),ne(Fr,Fe({key:2,size:"large",trigger:"hover"},(i=this.menuProps)==null?void 0:i.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:t,renderLabel:n}),{default:()=>(S(),q("div",{class:j(`${e}-submenu`),role:"menu","aria-expanded":!this.collapsed,id:this.domId},[N(()=>r()),this.isHorizontal?N(()=>null):(S(),q(ke,{key:1},[N(()=>o())],64))],10,_i))},1040,["themeOverrides","theme","value","disabled","placement","keyField","labelField","childrenField","onUpdateShow","options","onSelect","inverted","renderIcon","renderLabel"])):(S(),q("div",{key:3,class:j(`${e}-submenu`),role:"menu","aria-expanded":!this.collapsed,id:this.domId},[N(()=>r()),N(()=>o())],10,Ii))}});function Ut(e){return e.type==="divider"||e.type==="render"}function Ei(e){return e.type==="divider"}function en(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(Ut(n))return Ei(n)?(S(),ne(wi,Fe({key:e.key},n.props),null,16)):null;const{labelField:o}=t,{key:i,level:a,isGroup:s}=e,l={...n,title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s};return e.children?e.isGroup?et(zi,Pt(l,Pi,{tmNode:e,tmNodes:e.children,key:i})):et(Dt,Pt(l,Ai,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):et(ki,Pt(l,Ri,{key:i,tmNode:e}))}const Ti={...Pe.props,options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array};var mr=ce({name:"Menu",inheritAttrs:!1,props:Ti,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Pe("Menu","-menu",xi,Br,e,t),o=xe(ir,null),i=k(()=>{const{collapsed:V}=e;if(V!==void 0)return V;if(o){const{collapseModeRef:L,collapsedRef:g}=o;if(L.value==="width")return g.value??!1}return!1}),a=k(()=>{const{keyField:V,childrenField:L,disabledField:g}=e;return zt(e.items||e.options,{getIgnored($){return Ut($)},getChildren($){return $[L]},getDisabled($){return $[g]},getKey($){return $[V]??$.name}})}),s=k(()=>new Set(a.value.treeNodes.map(V=>V.key))),{watchProps:l}=e,f=oe(null);l!=null&&l.includes("defaultValue")?cn(()=>{f.value=e.defaultValue}):f.value=e.defaultValue;const u=Me(e,"value"),c=ft(u,f),h=oe([]),m=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(c.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?cn(m):m();const y=lo(e,["expandedNames","expandedKeys"]),v=ft(y,h),b=k(()=>a.value.treeNodes),p=k(()=>a.value.getPath(c.value).keyPath);Ie(pt,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:c,mergedExpandedKeysRef:v,activePathRef:p,mergedClsPrefixRef:t,isHorizontalRef:k(()=>e.mode==="horizontal"),invertedRef:Me(e,"inverted"),doSelect:E,toggleExpand:I});function E(V,L){const{"onUpdate:value":g,onUpdateValue:$,onSelect:K}=e;$&&pe($,V,L),g&&pe(g,V,L),K&&pe(K,V,L),f.value=V}function w(V){const{"onUpdate:expandedKeys":L,onUpdateExpandedKeys:g,onExpandedNamesChange:$,onOpenNamesChange:K}=e;L&&pe(L,V),g&&pe(g,V),$&&pe($,V),K&&pe(K,V),h.value=V}function I(V){const L=Array.from(v.value),g=L.findIndex($=>$===V);if(~g)L.splice(g,1);else{if(e.accordion&&s.value.has(V)){const $=L.findIndex(K=>s.value.has(K));$>-1&&L.splice($,1)}L.push(V)}w(L)}const z=V=>{const L=a.value.getPath(V??c.value,{includeSelf:!1}).keyPath;if(!L.length)return;const g=Array.from(v.value),$=new Set([...g,...L]);e.accordion&&s.value.forEach(K=>{$.has(K)&&!L.includes(K)&&$.delete(K)}),w(Array.from($))},A=k(()=>{const{inverted:V}=e,{common:{cubicBezierEaseInOut:L},self:g}=r.value,{borderRadius:$,borderColorHorizontal:K,fontSize:ve,itemHeight:ge,dividerColor:ue}=g,d={"--n-divider-color":ue,"--n-bezier":L,"--n-font-size":ve,"--n-border-color-horizontal":K,"--n-border-radius":$,"--n-item-height":ge};return V?(d["--n-group-text-color"]=g.groupTextColorInverted,d["--n-color"]=g.colorInverted,d["--n-item-text-color"]=g.itemTextColorInverted,d["--n-item-text-color-hover"]=g.itemTextColorHoverInverted,d["--n-item-text-color-active"]=g.itemTextColorActiveInverted,d["--n-item-text-color-child-active"]=g.itemTextColorChildActiveInverted,d["--n-item-text-color-child-active-hover"]=g.itemTextColorChildActiveInverted,d["--n-item-text-color-active-hover"]=g.itemTextColorActiveHoverInverted,d["--n-item-icon-color"]=g.itemIconColorInverted,d["--n-item-icon-color-hover"]=g.itemIconColorHoverInverted,d["--n-item-icon-color-active"]=g.itemIconColorActiveInverted,d["--n-item-icon-color-active-hover"]=g.itemIconColorActiveHoverInverted,d["--n-item-icon-color-child-active"]=g.itemIconColorChildActiveInverted,d["--n-item-icon-color-child-active-hover"]=g.itemIconColorChildActiveHoverInverted,d["--n-item-icon-color-collapsed"]=g.itemIconColorCollapsedInverted,d["--n-item-text-color-horizontal"]=g.itemTextColorHorizontalInverted,d["--n-item-text-color-hover-horizontal"]=g.itemTextColorHoverHorizontalInverted,d["--n-item-text-color-active-horizontal"]=g.itemTextColorActiveHorizontalInverted,d["--n-item-text-color-child-active-horizontal"]=g.itemTextColorChildActiveHorizontalInverted,d["--n-item-text-color-child-active-hover-horizontal"]=g.itemTextColorChildActiveHoverHorizontalInverted,d["--n-item-text-color-active-hover-horizontal"]=g.itemTextColorActiveHoverHorizontalInverted,d["--n-item-icon-color-horizontal"]=g.itemIconColorHorizontalInverted,d["--n-item-icon-color-hover-horizontal"]=g.itemIconColorHoverHorizontalInverted,d["--n-item-icon-color-active-horizontal"]=g.itemIconColorActiveHorizontalInverted,d["--n-item-icon-color-active-hover-horizontal"]=g.itemIconColorActiveHoverHorizontalInverted,d["--n-item-icon-color-child-active-horizontal"]=g.itemIconColorChildActiveHorizontalInverted,d["--n-item-icon-color-child-active-hover-horizontal"]=g.itemIconColorChildActiveHoverHorizontalInverted,d["--n-arrow-color"]=g.arrowColorInverted,d["--n-arrow-color-hover"]=g.arrowColorHoverInverted,d["--n-arrow-color-active"]=g.arrowColorActiveInverted,d["--n-arrow-color-active-hover"]=g.arrowColorActiveHoverInverted,d["--n-arrow-color-child-active"]=g.arrowColorChildActiveInverted,d["--n-arrow-color-child-active-hover"]=g.arrowColorChildActiveHoverInverted,d["--n-item-color-hover"]=g.itemColorHoverInverted,d["--n-item-color-active"]=g.itemColorActiveInverted,d["--n-item-color-active-hover"]=g.itemColorActiveHoverInverted,d["--n-item-color-active-collapsed"]=g.itemColorActiveCollapsedInverted):(d["--n-group-text-color"]=g.groupTextColor,d["--n-color"]=g.color,d["--n-item-text-color"]=g.itemTextColor,d["--n-item-text-color-hover"]=g.itemTextColorHover,d["--n-item-text-color-active"]=g.itemTextColorActive,d["--n-item-text-color-child-active"]=g.itemTextColorChildActive,d["--n-item-text-color-child-active-hover"]=g.itemTextColorChildActiveHover,d["--n-item-text-color-active-hover"]=g.itemTextColorActiveHover,d["--n-item-icon-color"]=g.itemIconColor,d["--n-item-icon-color-hover"]=g.itemIconColorHover,d["--n-item-icon-color-active"]=g.itemIconColorActive,d["--n-item-icon-color-active-hover"]=g.itemIconColorActiveHover,d["--n-item-icon-color-child-active"]=g.itemIconColorChildActive,d["--n-item-icon-color-child-active-hover"]=g.itemIconColorChildActiveHover,d["--n-item-icon-color-collapsed"]=g.itemIconColorCollapsed,d["--n-item-text-color-horizontal"]=g.itemTextColorHorizontal,d["--n-item-text-color-hover-horizontal"]=g.itemTextColorHoverHorizontal,d["--n-item-text-color-active-horizontal"]=g.itemTextColorActiveHorizontal,d["--n-item-text-color-child-active-horizontal"]=g.itemTextColorChildActiveHorizontal,d["--n-item-text-color-child-active-hover-horizontal"]=g.itemTextColorChildActiveHoverHorizontal,d["--n-item-text-color-active-hover-horizontal"]=g.itemTextColorActiveHoverHorizontal,d["--n-item-icon-color-horizontal"]=g.itemIconColorHorizontal,d["--n-item-icon-color-hover-horizontal"]=g.itemIconColorHoverHorizontal,d["--n-item-icon-color-active-horizontal"]=g.itemIconColorActiveHorizontal,d["--n-item-icon-color-active-hover-horizontal"]=g.itemIconColorActiveHoverHorizontal,d["--n-item-icon-color-child-active-horizontal"]=g.itemIconColorChildActiveHorizontal,d["--n-item-icon-color-child-active-hover-horizontal"]=g.itemIconColorChildActiveHoverHorizontal,d["--n-arrow-color"]=g.arrowColor,d["--n-arrow-color-hover"]=g.arrowColorHover,d["--n-arrow-color-active"]=g.arrowColorActive,d["--n-arrow-color-active-hover"]=g.arrowColorActiveHover,d["--n-arrow-color-child-active"]=g.arrowColorChildActive,d["--n-arrow-color-child-active-hover"]=g.arrowColorChildActiveHover,d["--n-item-color-hover"]=g.itemColorHover,d["--n-item-color-active"]=g.itemColorActive,d["--n-item-color-active-hover"]=g.itemColorActiveHover,d["--n-item-color-active-collapsed"]=g.itemColorActiveCollapsed),d}),M=n?vt("menu",k(()=>e.inverted?"a":"b"),A,e):void 0,Y=Vt(),B=oe(null),re=oe(null);let J=!0;const ee=()=>{var V;J?J=!1:(V=B.value)==null||V.sync({showAllItemsBeforeCalculate:!0})};function te(){return document.getElementById(Y)}const U=oe(-1);function fe(V){U.value=e.options.length-V}function he(V){V||(U.value=-1)}const de=k(()=>{const V=U.value;return{children:V===-1?[]:e.options.slice(V)}}),ye=k(()=>{const{childrenField:V,disabledField:L,keyField:g}=e;return zt([de.value],{getIgnored($){return Ut($)},getChildren($){return $[V]},getDisabled($){return $[L]},getKey($){return $[g]??$.name}})}),ae=k(()=>zt([{}]).treeNodes[0]);function we(){var $;if(U.value===-1)return S(),ne(Dt,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ae.value,domId:Y,isEllipsisPlaceholder:!0},null,8,["tmNode","domId"]);const V=ye.value.treeNodes[0],L=p.value,g=!!(($=V.children)!=null&&$.some(K=>L.includes(K.key)));return S(),ne(Dt,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:g,tmNode:V,domId:Y,rawNodes:V.rawNode.children||[],tmNodes:V.children||[],isEllipsisPlaceholder:!0},null,8,["virtualChildActive","tmNode","domId","rawNodes","tmNodes"])}return{mergedClsPrefix:t,controlledExpandedKeys:y,uncontrolledExpanededKeys:h,mergedExpandedKeys:v,uncontrolledValue:f,mergedValue:c,activePath:p,tmNodes:b,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:A,themeClass:M==null?void 0:M.themeClass,overflowRef:B,counterRef:re,updateCounter:()=>{},onResize:ee,onUpdateOverflow:he,onUpdateCount:fe,renderCounter:we,getCounter:te,onRender:M==null?void 0:M.onRender,showOption:z,deriveResponsiveState:ee}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;r==null||r();const o=()=>this.tmNodes.map(s=>en(s,this.$props)),i=t==="horizontal"&&this.responsive,a=()=>et("div",Fe(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,i&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),i?(S(),ne(Mr,{key:2,ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:o,counter:this.renderCounter},1032,["onUpdateOverflow","getCounter","onUpdateCount","updateCounter"])):o());return i?(S(),ne($r,{key:3,onResize:this.onResize},{default:a},1032,["onResize"])):a()}});function Oi(e){const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e;return{...Vr,iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${Kr(t,{alpha:.2})}`}}const Fi={common:Yt,self:Oi};var $i=F("switch",`
|
||
height: var(--n-height);
|
||
min-width: var(--n-width);
|
||
vertical-align: middle;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: inline-flex;
|
||
outline: none;
|
||
justify-content: center;
|
||
align-items: center;
|
||
`,[R("children-placeholder",`
|
||
height: var(--n-rail-height);
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
visibility: hidden;
|
||
`),R("rail-placeholder",`
|
||
display: flex;
|
||
flex-wrap: none;
|
||
`),R("button-placeholder",`
|
||
width: calc(1.75 * var(--n-rail-height));
|
||
height: var(--n-rail-height);
|
||
`),F("base-loading",`
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
font-size: calc(var(--n-button-width) - 4px);
|
||
color: var(--n-loading-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[sn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),R("checked, unchecked",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
white-space: nowrap;
|
||
top: 0;
|
||
bottom: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
line-height: 1;
|
||
`),R("checked",`
|
||
right: 0;
|
||
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
||
`),R("unchecked",`
|
||
left: 0;
|
||
justify-content: flex-end;
|
||
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
||
`),W("&:focus",[R("rail",`
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
`)]),D("round",[R("rail","border-radius: calc(var(--n-rail-height) / 2);",[R("button","border-radius: calc(var(--n-button-height) / 2);")])]),Ue("disabled",[Ue("icon",[D("rubber-band",[D("pressed",[R("rail",[R("button","max-width: var(--n-button-width-pressed);")])]),R("rail",[W("&:active",[R("button","max-width: var(--n-button-width-pressed);")])]),D("active",[D("pressed",[R("rail",[R("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),R("rail",[W("&:active",[R("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),D("active",[R("rail",[R("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),R("rail",`
|
||
overflow: hidden;
|
||
height: var(--n-rail-height);
|
||
min-width: var(--n-rail-width);
|
||
border-radius: var(--n-rail-border-radius);
|
||
cursor: pointer;
|
||
position: relative;
|
||
transition:
|
||
opacity .3s var(--n-bezier),
|
||
background .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
background-color: var(--n-rail-color);
|
||
`,[R("button-icon",`
|
||
color: var(--n-icon-color);
|
||
transition: color .3s var(--n-bezier);
|
||
font-size: calc(var(--n-button-height) - 4px);
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
line-height: 1;
|
||
`,[sn()]),R("button",`
|
||
align-items: center;
|
||
top: var(--n-offset);
|
||
left: var(--n-offset);
|
||
height: var(--n-button-height);
|
||
width: var(--n-button-width-pressed);
|
||
max-width: var(--n-button-width);
|
||
border-radius: var(--n-button-border-radius);
|
||
background-color: var(--n-button-color);
|
||
box-shadow: var(--n-button-box-shadow);
|
||
box-sizing: border-box;
|
||
cursor: inherit;
|
||
content: "";
|
||
position: absolute;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
left .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
max-width .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
`)]),D("active",[R("rail","background-color: var(--n-rail-color-active);")]),D("loading",[R("rail",`
|
||
cursor: wait;
|
||
`)]),D("disabled",[R("rail",`
|
||
cursor: not-allowed;
|
||
opacity: .5;
|
||
`)])]);const Bi=["aria-checked","tabindex","onClick","onFocus","onBlur","onKeyup","onKeydown"],Mi={...Pe.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]};let at;var zn=ce({name:"Switch",props:Mi,slots:Object,setup(e){at===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?at=CSS.supports("width","max(1px)"):at=!1:at=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=He(e),o=Pe("Switch","-switch",$i,Fi,e,t),i=Jn(e,{mergedSize(B){var J,ee;if(e.size!==void 0)return e.size;if(B)return B.mergedSize.value;const re=(ee=(J=r==null?void 0:r.value)==null?void 0:J.Switch)==null?void 0:ee.size;return re||"medium"}}),{mergedSizeRef:a,mergedDisabledRef:s}=i,l=oe(e.defaultValue),f=Me(e,"value"),u=ft(f,l),c=k(()=>u.value===e.checkedValue),h=oe(!1),m=oe(!1),y=k(()=>{const{railStyle:B}=e;if(B)return B({focused:m.value,checked:c.value})});function v(B){const{"onUpdate:value":re,onChange:J,onUpdateValue:ee}=e,{nTriggerFormInput:te,nTriggerFormChange:U}=i;re&&pe(re,B),ee&&pe(ee,B),J&&pe(J,B),l.value=B,te(),U()}function b(){const{nTriggerFormFocus:B}=i;B()}function p(){const{nTriggerFormBlur:B}=i;B()}function E(){e.loading||s.value||(u.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue))}function w(){m.value=!0,b()}function I(){m.value=!1,p(),h.value=!1}function z(B){e.loading||s.value||B.key===" "&&(u.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue),h.value=!1)}function A(B){e.loading||s.value||B.key===" "&&(B.preventDefault(),h.value=!0)}const M=k(()=>{const{value:B}=a,{self:{opacityDisabled:re,railColor:J,railColorActive:ee,buttonBoxShadow:te,buttonColor:U,boxShadowFocus:fe,loadingColor:he,textColor:de,iconColor:ye,[Se("buttonHeight",B)]:ae,[Se("buttonWidth",B)]:we,[Se("buttonWidthPressed",B)]:V,[Se("railHeight",B)]:L,[Se("railWidth",B)]:g,[Se("railBorderRadius",B)]:$,[Se("buttonBorderRadius",B)]:K},common:{cubicBezierEaseInOut:ve}}=o.value;let ge,ue,d;return at?(ge=`calc((${L} - ${ae}) / 2)`,ue=`max(${L}, ${ae})`,d=`max(${g}, calc(${g} + ${ae} - ${L}))`):(ge=Et((Ve(L)-Ve(ae))/2),ue=Et(Math.max(Ve(L),Ve(ae))),d=Ve(L)>Ve(ae)?g:Et(Ve(g)+Ve(ae)-Ve(L))),{"--n-bezier":ve,"--n-button-border-radius":K,"--n-button-box-shadow":te,"--n-button-color":U,"--n-button-width":we,"--n-button-width-pressed":V,"--n-button-height":ae,"--n-height":ue,"--n-offset":ge,"--n-opacity-disabled":re,"--n-rail-border-radius":$,"--n-rail-color":J,"--n-rail-color-active":ee,"--n-rail-height":L,"--n-rail-width":g,"--n-width":d,"--n-box-shadow-focus":fe,"--n-loading-color":he,"--n-text-color":de,"--n-icon-color":ye}}),Y=n?vt("switch",k(()=>a.value[0]),M,e):void 0;return{handleClick:E,handleBlur:I,handleFocus:w,handleKeyup:z,handleKeydown:A,mergedRailStyle:y,pressed:h,mergedClsPrefix:t,mergedValue:u,checked:c,mergedDisabled:s,cssVars:n?void 0:M,themeClass:Y==null?void 0:Y.themeClass,onRender:Y==null?void 0:Y.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:s,icon:l,"checked-icon":f,"unchecked-icon":u}=i,c=!(At(l)&&At(f)&&At(u));return S(),q("div",{role:"switch","aria-checked":n,class:j([`${e}-switch`,this.themeClass,c&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:Ae(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[se("div",{class:j(`${e}-switch__rail`),"aria-hidden":"true",style:Ae(r)},[N(()=>$e(a,h=>$e(s,m=>h||m?(S(),q("div",{key:4,"aria-hidden":!0,class:j(`${e}-switch__children-placeholder`)},[se("div",{class:j(`${e}-switch__rail-placeholder`)},[se("div",{class:j(`${e}-switch__button-placeholder`)},null,2),N(()=>h)],2),se("div",{class:j(`${e}-switch__rail-placeholder`)},[se("div",{class:j(`${e}-switch__button-placeholder`)},null,2),N(()=>m)],2)],2)):null))),se("div",{class:j(`${e}-switch__button`)},[N(()=>$e(l,h=>$e(f,m=>$e(u,y=>(S(),ne(Gr,null,{default:()=>this.loading?(S(),ne(Wr,Fe({key:"loading",clsPrefix:e,strokeWidth:20},this.spinProps),null,16,["clsPrefix"])):this.checked&&(m||h)?(S(),q("div",{class:j(`${e}-switch__button-icon`),key:m?"checked-icon":"icon"},[N(()=>m||h)],2)):!this.checked&&(y||h)?(S(),q("div",{class:j(`${e}-switch__button-icon`),key:y?"unchecked-icon":"icon"},[N(()=>y||h)],2)):null},1024)))))),N(()=>$e(a,h=>h&&(S(),q("div",{key:"checked",class:j(`${e}-switch__checked`)},[N(()=>h)],2)))),N(()=>$e(s,h=>h&&(S(),q("div",{key:"unchecked",class:j(`${e}-switch__unchecked`)},[N(()=>h)],2))))],2)],6)],46,Bi)}});const Vi=e=>{const t=_t(e[0]),n=_t(e[1]),r=_t(e[2]);return k(()=>({"--window-width":"var(--html-width, 100vw)","--window-height":"var(--html-height, 100dvh)","--layout-content-height":`calc(var(--html-height, 100dvh) - ${t.height.value}px - ${n.height.value}px - ${r.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${r.height.value}px`}))},Ni=["side","top","mixed","right","split"],qi=ce({name:"RayAdminShell",props:{layout:{type:Object,required:!0},mode:{type:String,default:void 0},groupedSidebar:Boolean,showTabs:Boolean,showFooter:Boolean,busy:Boolean,contentRef:{type:Object,default:void 0},maximized:Boolean,maximizedStyle:{type:Object,default:void 0},restore:{type:Function,default:void 0},restoreLabel:{type:String,default:"Restore layout"}},setup(e,{slots:t}){const n=ct(),r=ct(),o=ct(),i=Vi([n,r,o]);let a=null;Hr(typeof window>"u"?void 0:window,"keydown",u=>{var c;u instanceof KeyboardEvent&&u.key==="Escape"&&!u.defaultPrevented&&e.maximized&&((c=e.restore)==null||c.call(e))}),tt(()=>e.maximized,u=>{if(!u)return;const c=document.activeElement;a=c instanceof HTMLElement?c:null},{flush:"sync"}),tt(()=>e.maximized,u=>{!u&&(a!=null&&a.isConnected)&&a.focus({preventScroll:!0})},{flush:"post"}),Xn(()=>{var u;e.maximized&&((u=e.restore)==null||u.call(e))});const s=()=>{var u;return H("div",{ref:n,class:"r-layout-header-region",inert:e.maximized},[(u=t.header)==null?void 0:u.call(t)])},l=()=>{var u;return e.showTabs?H("div",{ref:r,class:"r-layout-tabs-region",inert:e.maximized},[(u=t.tabs)==null?void 0:u.call(t)]):null},f=()=>{var u;return e.showFooter?H("div",{ref:o,class:"r-layout-footer-region",inert:e.maximized},[(u=t.footer)==null?void 0:u.call(t)]):null};return()=>{const u=e.layout,c=e.mode??u.mode,h=c==="split"&&u.fixedHeader,m=c==="side"||c==="right"||(c==="mixed"||c==="split")&&e.groupedSidebar,y=()=>{var v;return m?(v=t.sidebar)==null?void 0:v.call(t):null};return H("div",{class:"r-layout-full",style:[i.value,{"--layout-content-padding":`${u.contentPadding}px`,"--layout-content-max-width":u.contentWidth==="fixed"?`${u.contentMaxWidth}px`:"100%"}]},[h?s():null,H(ui,{class:"r-layout-full__body",hasSider:m,siderPlacement:c==="right"?"right":"left",embedded:!0},{default:()=>[c!=="right"?y():null,H(Rn,{class:"r-layout-full__viewer"},{default:()=>{var v;return[u.fixedHeader?H(ke,null,[h?null:s(),l()]):null,H("div",{class:["r-layout-content-viewport",{"r-layout-content--maximized":e.maximized}],style:e.maximized?e.maximizedStyle:void 0},[H(Rn,{ref:e.contentRef,class:"r-layout-full__viewer-content",nativeScrollbar:!1,contentClass:"r-layout-content-scroll"},{default:()=>{var b;return[u.fixedHeader?null:H(ke,null,[s(),l()]),H("main",{class:"r-layout-content-inner","aria-busy":e.busy},[(b=t.default)==null?void 0:b.call(t)]),u.fixedFooter?null:f()]}}),(v=t.loading)==null?void 0:v.call(t),e.maximized?H("button",Fe({type:"button",class:"r-layout-content-restore__button","aria-label":e.restoreLabel,title:e.restoreLabel},{onVnodeMounted:({el:b})=>{b instanceof HTMLElement&&b.focus({preventScroll:!0})}},{onClick:()=>{var b;return(b=e.restore)==null?void 0:b.call(e)}}),[H(Kn,{name:"action/fullscreen_fold",size:16},null)]):null]),u.fixedFooter?f():null]}}),c==="right"?y():null]})])}}});function Li(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Xr(e)}const ji=ce({name:"LayoutSettings",props:{showDescription:Boolean,layout:{type:Object,required:!0},defaults:{type:Object,required:!0},translate:{type:Function,required:!0},update:{type:Function,required:!0}},setup(e){const t=e.translate,n=e.update;return()=>{let r;return H(qr,{vertical:!0,size:16,class:"r-layout-settings"},{default:()=>[e.showDescription?H("p",{class:"r-layout-settings__hint"},[t("description")]):null,H("div",{class:"r-layout-presets",role:"group","aria-label":t("tab")},[Ni.map(o=>H("button",{type:"button",class:"r-layout-preset",key:o,"aria-label":t(o),title:t(o),"aria-pressed":e.layout.mode===o,onClick:()=>n({mode:o})},[H("span",{class:["r-layout-preview",`r-layout-preview--${o}`],"aria-hidden":"true"},[H("span",{class:"r-layout-preview__header"},null),H("span",{class:"r-layout-preview__aside"},null),H("span",{class:"r-layout-preview__body"},null)]),H("span",{class:"r-layout-preset__label"},[t(o)]),e.layout.mode===o?H("span",{class:"r-layout-preset__selected","aria-hidden":"true"},[Zn("✓")]):null]))]),e.showDescription?H("p",{class:"r-layout-settings__hint"},[t(`modeHint.${e.layout.mode}`)]):null,H(po,{labelPlacement:"top",showFeedback:!1},{default:()=>[H(it,{label:t("contentWidth")},{default:()=>[H(Nr,{value:e.layout.contentWidth,options:["fluid","fixed"].map(o=>({value:o,label:t(o)})),onUpdateValue:o=>n({contentWidth:o})},null)]}),H(it,{label:t("maxWidth")},{default:()=>[H(Sn,{value:e.layout.contentMaxWidth,disabled:e.layout.contentWidth!=="fixed",min:640,max:2560,step:40,precision:0,onUpdateValue:o=>{o!==null&&n({contentMaxWidth:o})}},null)]}),H(it,{label:t("padding")},{default:()=>[H(Sn,{value:e.layout.contentPadding,min:0,max:48,step:4,precision:0,onUpdateValue:o=>{o!==null&&n({contentPadding:o})}},null)]}),H(it,{label:t("fixedHeader")},{default:()=>[H(zn,{value:e.layout.fixedHeader,onUpdateValue:o=>n({fixedHeader:o})},null)]}),H(it,{label:t("fixedFooter")},{default:()=>[H(zn,{value:e.layout.fixedFooter,onUpdateValue:o=>n({fixedFooter:o})},null)]})]}),H(er,{onClick:()=>n({...e.defaults})},Li(r=t("reset"))?r:{default:()=>[r]})]})}}}),Hi=ce({name:"ShellTopNavigation",props:{items:{type:Array,required:!0},active:{type:[String,Number],default:null},label:{type:String,required:!0},grouped:Boolean,select:{type:Function,required:!0}},setup(e,{slots:t}){const n=k(()=>e.grouped),r=k(()=>n.value?e.items.filter(a=>a.show!==!1).map(a=>({...a,children:void 0})):e.items),o=k(()=>{var a;return n.value?(a=so(e.items,String(e.active)))==null?void 0:a.fullPath:e.active}),i=(a,s)=>{const l=n.value?e.items.find(u=>u.fullPath===a):s,f=l&&tr(l);f&&e.select(f)};return()=>{var a;return H("nav",{class:"r-layout-top-navigation","aria-label":e.label},[(a=t.logo)==null?void 0:a.call(t),H(mr,{mode:"horizontal",responsive:!0,keyField:"fullPath",value:o.value,options:r.value,onUpdateValue:(s,l)=>i(String(s),l)},null)])}}}),Di=ce({name:"ShellTab",props:{label:{type:String,required:!0},active:Boolean,closeLabel:{type:String,default:""},select:{type:Function,required:!0},close:{type:Function,default:void 0},contextMenu:{type:Function,default:void 0}},setup(e){return()=>H("div",{class:["menu-tag__item",{"menu-tag__item--active":e.active}],onContextmenu:e.contextMenu},[H("button",{type:"button",class:"menu-tag__tab","aria-current":e.active?"page":void 0,title:e.label,onClick:e.select,onKeydown:t=>{t.key==="Delete"&&e.close&&(t.preventDefault(),e.close(!0))}},[e.label]),e.close?H("button",{type:"button",class:"menu-tag__close","aria-label":e.closeLabel,onClick:t=>{var n;return(n=e.close)==null?void 0:n.call(e,t.detail===0)}},[H(Kn,{name:"action/close",size:14,"aria-hidden":"true"},null)]):null])}});/*!
|
||
* vue-router v5.4.0
|
||
* (c) 2026 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const tn=e=>e.startsWith("/");function vr(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ui(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&vr(e.default)}const le=Object.assign;function $t(e,t){const n={};for(const r in t){const o=t[r];n[r]=Te(o)?o.map(e):e(o)}return n}const ut=()=>{},Te=Array.isArray;function _n(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const gr=Symbol("");function rt(e,t){return le(new Error,{type:e,[gr]:!0},t)}function Ne(e,t){return e instanceof Error&&gr in e&&(t==null||!!(e.type&t))}const Ki=Symbol(""),In=Symbol(""),nn=Symbol(""),pr=Symbol(""),Kt=Symbol(""),Wi=Symbol("");/*!
|
||
* vue-router v5.4.0
|
||
* (c) 2026 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Xe=typeof document<"u",br=/#/g,Gi=/&/g,Yi=/\//g,Xi=/=/g,Qi=/\?/g,yr=/\+/g,Zi=/%5B/g,Ji=/%5D/g,xr=/%5E/g,ea=/%60/g,wr=/%7B/g,ta=/%7C/g,Cr=/%7D/g,na=/%20/g;function rn(e){return e==null?"":encodeURI(""+e).replace(ta,"|").replace(Zi,"[").replace(Ji,"]")}function ra(e){return rn(e).replace(wr,"{").replace(Cr,"}").replace(xr,"^")}function Wt(e){return rn(e).replace(yr,"%2B").replace(na,"+").replace(br,"%23").replace(Gi,"%26").replace(ea,"`").replace(wr,"{").replace(Cr,"}").replace(xr,"^")}function oa(e){return Wt(e).replace(Xi,"%3D")}function ia(e){return rn(e).replace(br,"%23").replace(Qi,"%3F")}function aa(e){return ia(e).replace(Yi,"%2F")}function Ct(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const la=/\/$/,sa=e=>e.replace(la,"");function Bt(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,s>0?s:t.length),o=e(i.slice(1))),s>=0&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=fa(r??t,n),{fullPath:r+i+a,path:r,query:o,hash:Ct(a)}}function ca(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function da(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ot(t.matched[r],n.matched[o])&&Sr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ua(e[n],t[n]))return!1;return!0}function ua(e,t){return Te(e)?An(e,t):Te(t)?An(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function An(e,t){return Te(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fa(e,t){if(tn(e))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}const Oe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function ha(e){if(!e)if(Xe){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sa(e)}const ma=/^[^#]+#/;function va(e,t){return e.replace(ma,"#")+t}function ga(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const pa=()=>history.scrollRestoration==="manual"?{left:window.scrollX,top:window.scrollY}:null;function ba(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ga(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function En(e,t){return(history.state?history.state.position-t:-1)+e}const Gt=new Map;function ya(e){Gt.set(e,pa())}function xa(e){const t=Gt.get(e);return Gt.delete(e),t}function wa(e){return typeof e=="string"||e&&typeof e=="object"}function Rr(e){return typeof e=="string"||typeof e=="symbol"}function Ca(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(yr," "),i=o.indexOf("="),a=Ct(i<0?o:o.slice(0,i)),s=i<0?null:Ct(o.slice(i+1));if(a in t){let l=t[a];Te(l)||(l=t[a]=[l]),l.push(s)}else t[a]=s}return t}function Tn(e){let t="";for(let n in e){const r=e[n];if(n=oa(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Te(r)?r.map(o=>o&&Wt(o)):[r&&Wt(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Sa(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Te(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function lt(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function je(e,t,n,r,o,i=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const f=h=>{h===!1?l(rt(4,{from:n,to:t})):h instanceof Error?l(h):wa(h)?l(rt(2,{from:t,to:h})):(a&&r.enterCallbacks[o]===a&&typeof h=="function"&&a.push(h),s())},u=i(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(u);e.length<3&&(c=c.then(f)),c.catch(h=>l(h))})}function Mt(e,t,n,r,o=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(vr(l)){const f=(l.__vccOpts||l)[t];f&&i.push(je(f,n,r,a,s,o))}else{let f=l();i.push(()=>f.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const c=Ui(u)?u.default:u;a.mods[s]=u,a.components[s]=c;const h=(c.__vccOpts||c)[t];return h&&je(h,n,r,a,s,o)()}))}}return i}function Ra(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(f=>ot(f,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(f=>ot(f,l))||o.push(l))}return[n,r,o]}/*!
|
||
* vue-router v5.4.0
|
||
* (c) 2026 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/function ka(e=""){let t=[],n=[["",{}]],r=0;e=ha(e);function o(s,l={}){r++,r!==n.length&&n.splice(r),n.push([s,l])}function i(s,l,{direction:f,delta:u}){const c={direction:f,delta:u,type:"pop"};for(const h of t)h(s,l,c)}const a={location:"",state:{},base:e,createHref:va.bind(null,e),replace(s,l){n.splice(r--,1),o(s,l)},push(s,l){o(s,l)},listen(s){return t.push(s),()=>{const l=t.indexOf(s);l>-1&&t.splice(l,1)}},destroy(){t=[],n=[["",{}]],r=0},go(s,l=!0){const f=this.location,u=s<0?"back":"forward";r=Math.max(0,Math.min(r+s,n.length-1)),l&&i(this.location,f,{direction:u,delta:s})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n[r][1]}),a}const Pa={type:0,value:""},za=/[a-zA-Z0-9_]/;function _a(e){if(!e)return[[]];if(e==="/")return[[Pa]];if(!tn(e))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${f}": ${m}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,l,f="",u="";function c(){f&&(n===0?i.push({type:0,value:f}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:f,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function h(){f+=l}for(;s<e.length;)switch(l=e[s++],n){case 0:l==="\\"?(r=n,n=4):l==="/"?(f&&c(),a()):l===":"?(c(),n=1):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:za.test(l)?h():(c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:c(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,u="";break;default:t("Unknown state")}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),a(),o}const On="[^/]+?",Ia={sensitive:!1,strict:!1,start:!0,end:!0},Aa=/[.+*?^${}()[\]/\\]/g;function Ea(e,t){const n=le({},Ia,t),r=[];let o=n.start?"^":"";const i=[];for(const f of e){const u=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const h=f[c];let m=40+(n.sensitive?.25:0);if(h.type===0)c||(o+="/"),o+=h.value.replace(Aa,"\\$&"),m+=40;else if(h.type===1){const{value:y,repeatable:v,optional:b,regexp:p}=h;i.push({name:y,repeatable:v,optional:b});const E=p||On;if(E!==On){m+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${y}" (${E}): `+I.message)}}let w=v?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(w=b&&f.length<2?`(?:/${w})`:"/"+w),b&&(w+="?"),o+=w,m+=20,b&&(m+=-8),v&&(m+=-20),E===".*"&&(m+=-50)}u.push(m)}r.push(u)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(f){const u=f.match(a),c={};if(!u)return null;for(let h=1;h<u.length;h++){const m=u[h]||"",y=i[h-1];c[y.name]=m&&y.repeatable?m.split("/"):m}return c}function l(f){let u="",c=!1;for(const h of e){(!c||!u.endsWith("/"))&&(u+="/"),c=!1;for(const m of h)if(m.type===0)u+=m.value;else if(m.type===1){const{value:y,repeatable:v,optional:b}=m,p=y in f?f[y]:"";if(Te(p)&&!v)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const E=Te(p)?p.join("/"):p;if(!E)if(b)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):c=!0);else throw new Error(`Missing required param "${y}"`);u+=E}}return u||"/"}return{re:a,score:r,keys:i,parse:s,stringify:l}}function Ta(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function kr(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=Ta(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Fn(r))return 1;if(Fn(o))return-1}return o.length-r.length}function Fn(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Oa={strict:!1,end:!0,sensitive:!1};function Fa(e,t,n){const r=Ea(_a(e.path),n),o=le(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function $a(e,t){const n=[],r=new Map;t=_n(Oa,t);function o(c){return r.get(c)}function i(c,h,m){const y=!m,v=Bn(c);v.aliasOf=m&&m.record;const b=_n(t,c),p=[v];if("alias"in c){const I=typeof c.alias=="string"?[c.alias]:c.alias;for(const z of I)p.push(Bn(le({},v,{components:m?m.record.components:v.components,path:z,aliasOf:m?m.record:v})))}let E,w;for(const I of p){const{path:z}=I;if(h&&!tn(z)){const A=h.record.path,M=A[A.length-1]==="/"?"":"/";I.path=h.record.path+(z&&M+z)}if(E=Fa(I,h,b),m?m.alias.push(E):(w=w||E,w!==E&&w.alias.push(E),y&&c.name&&!Mn(E)&&a(c.name)),Pr(E)&&l(E),v.children){const A=v.children;for(let M=0;M<A.length;M++)i(A[M],E,m&&m.children[M])}m=m||E}return w?()=>{a(w)}:ut}function a(c){if(Rr(c)){const h=r.get(c);h&&(r.delete(c),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(c);h>-1&&(n.splice(h,1),c.record.name&&r.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function s(){return n}function l(c){const h=Va(c,n);n.splice(h,0,c),c.record.name&&!Mn(c)&&r.set(c.record.name,c)}function f(c,h){let m,y={},v,b;if("name"in c&&c.name){if(m=r.get(c.name),!m)throw rt(1,{location:c});b=m.record.name,y=le($n(h.params,m.keys.filter(w=>!w.optional).concat(m.parent?m.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),c.params&&$n(c.params,m.keys.map(w=>w.name))),v=m.stringify(y)}else if(c.path!=null)v=c.path,m=n.find(w=>w.re.test(v)),m&&(y=m.parse(v),b=m.record.name,m.keys.forEach(w=>{w.optional&&!y[w.name]&&delete y[w.name]}));else{if(m=h.name?r.get(h.name):n.find(w=>w.re.test(h.path)),!m)throw rt(1,{location:c,currentLocation:h});b=m.record.name,y=le({},h.params,c.params),v=m.stringify(y)}const p=[];let E=m;for(;E;)p.unshift(E.record),E=E.parent;return{name:b,path:v,params:y,matched:p,meta:Ma(p)}}e.forEach(c=>i(c));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:f,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:o}}function $n(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Bn(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ba(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ba(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Mn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ma(e){return e.reduce((t,n)=>le(t,n.meta),{})}function Va(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;kr(e,t[i])<0?r=i:n=i+1}const o=Na(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Na(e){let t=e;for(;t=t.parent;)if(Pr(t)&&kr(e,t)===0)return t}function Pr({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Vn(e){const t=xe(nn),n=xe(pr),r=k(()=>{const l=Re(e.to);return t.resolve(l)}),o=k(()=>{const{matched:l}=r.value,{length:f}=l,u=l[f-1],c=n.matched;if(!u||!c.length)return-1;const h=c.findIndex(ot.bind(null,u));if(h>-1)return h;const m=Nn(l[f-2]);return f>1&&Nn(u)===m&&c[c.length-1].path!==m?c.findIndex(ot.bind(null,l[f-2])):h}),i=k(()=>o.value>-1&&Ha(n.params,r.value.params)),a=k(()=>o.value>-1&&o.value===n.matched.length-1&&Sr(n.params,r.value.params));function s(l={}){if(ja(l)){const f=t[Re(e.replace)?"replace":"push"](Re(e.to)).catch(ut);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:k(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}function qa(e){return e.length===1?e[0]:e}const La=ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Vn,setup(e,{slots:t}){const n=Zr(Vn(e)),{options:r}=xe(nn),o=k(()=>({[qn(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[qn(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&qa(t.default(n));return e.custom?i:et("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}});function ja(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ha(e,t){for(const n in t){const r=t[n],o=e[n];if(Te(r)){if(!Te(o)||o.length!==r.length||r.some((i,a)=>i.valueOf()!==o[a].valueOf()))return!1}else if(r!==o)return!1}return!0}function Nn(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qn=(e,t,n)=>e??t??n,Da=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=xe(Kt),o=k(()=>e.route||r.value),i=xe(In,0),a=k(()=>{let h=Re(i);const{matched:m}=o.value;let y;for(;(y=m[h])&&!y.components;)h++;return h}),s=k(()=>o.value.matched[a.value]);Ie(In,k(()=>a.value+1)),Ie(Ki,s),Ie(Kt,o);const l=new Set;Ie(Wi,l);const f=oe();let u=Oe;const{app:c}=Yn().appContext;return tt(()=>[f.value,s.value,e.name],([h,m,y],[v,b,p])=>{m&&(m.instances[y]=h,b&&b!==m&&h&&h===v&&(m.leaveGuards.size||(m.leaveGuards=b.leaveGuards),m.updateGuards.size||(m.updateGuards=b.updateGuards))),h&&m&&(!b||!ot(m,b)||!v)&&(m.enterCallbacks[y]||[]).forEach(E=>E(h))},{flush:"post"}),()=>{const h=o.value,m=e.name,y=s.value,v=y&&y.components[m];if(!v)return Ln(n.default,{Component:v,route:h});const b=y.props[m],p=b?b===!0?h.params:typeof b=="function"?b(h):b:null,E=z=>{z.component.isUnmounted&&(y.instances[m]=null)},w=z=>Xt(()=>{if(u===h||o.value!==h||z.el.getRootNode()!==c._container.getRootNode())return;const A=u;u=h;for(const M of l)M(h,A)}),I=et(v,le({},p,t,{onVnodeUnmounted:E,onVnodeMounted:w,onVnodeUpdated:w,ref:f}));return Ln(n.default,{Component:I,route:h})||I}}});function Ln(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ua=Da;function Ka(e){const t=e.matcher||$a(e.routes,e),n=e.parseQuery||Ca,r=e.stringifyQuery||Tn,o=e.history,i=lt(),a=lt(),s=lt(),l=ct(Oe),f=ct(0);let u=Oe;Xe&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$t.bind(null,d=>""+d),h=$t.bind(null,aa),m=$t.bind(null,Ct);function y(d,P){let x,_;Rr(d)?(x=t.getRecordMatcher(d),_=P):_=d;const T=t.addRoute(_,x);return f.value++,()=>{T(),f.value++}}function v(d){const P=t.getRecordMatcher(d);P&&(t.removeRoute(P),f.value++)}function b(){t.clearRoutes(),f.value++}function p(){return t.getRoutes().map(d=>d.record)}function E(d){return!!t.getRecordMatcher(d)}function w(d,P){if(f.value,typeof d=="string"){P=P||(d.startsWith("/")?Oe:l.value);const G=Bt(n,d,P.path),me=t.resolve({path:G.path},P),C=o.createHref(G.fullPath);return le(G,me,{params:m(me.params),redirectedFrom:void 0,href:C})}P=le({},P||(d.path!=null&&d.path.startsWith("/")&&!("name"in d&&d.name)?Oe:l.value));let x;if(d.path!=null)x=le({},d,{path:Bt(n,d.path,P.path).path});else{const G=le({},d.params);for(const me in G)G[me]==null&&delete G[me];x=le({},d,{params:h(G)}),P.params=h(P.params)}const _=t.resolve(x,P),T=d.hash||"";_.params=c(m(_.params));const ie=ca(r,le({},d,{hash:ra(T),path:_.path})),X=o.createHref(ie);return le({fullPath:ie,hash:T,query:r===Tn?Sa(d.query):d.query||{}},_,{redirectedFrom:void 0,href:X})}function I(d){return typeof d=="string"?Bt(n,d,l.value.path):le({},d)}function z(d,P){if(u!==d)return rt(8,{from:P,to:d})}function A(d){return B(d)}function M(d){return A(le(I(d),{replace:!0}))}function Y(d,P){const x=d.matched[d.matched.length-1];if(x&&x.redirect){const{redirect:_}=x;let T=typeof _=="function"?_(d,P):_;return typeof T=="string"&&(T=T.includes("?")||T.includes("#")?T=I(T):{path:T},T.params={}),le({query:d.query,hash:d.hash,params:T.path!=null?{}:d.params},T)}}function B(d,P){const x=u=w(d),_=l.value,T=d.state,ie=d.force,X=d.replace===!0,G=Y(x,_);if(G)return B(le(I(G),{state:typeof G=="object"?le({},T,G.state):T,force:ie,replace:X}),P||x);const me=x;me.redirectedFrom=P;let C;return!ie&&da(r,_,x)&&(C=rt(16,{to:me,from:_}),g(_,_,!0,!1)),(C?Promise.resolve(C):ee(me,_)).catch(O=>Ne(O)?Ne(O,2)?O:L(O):we(O,me,_)).then(O=>{if(O){if(Ne(O,2))return B(le({replace:X},I(O.to),{state:typeof O.to=="object"?le({},T,O.to.state):T,force:ie}),P||me)}else O=U(me,_,!0,X,T);return te(me,_,O),O})}function re(d,P){const x=z(d,P);return x?Promise.reject(x):Promise.resolve()}function J(d){const P=ve.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(d):d()}function ee(d,P){let x;const[_,T,ie]=Ra(d,P);x=Mt(_.reverse(),"beforeRouteLeave",d,P);for(const G of _)G.leaveGuards.forEach(me=>{x.push(je(me,d,P))});const X=re.bind(null,d,P);return x.push(X),ue(x).then(()=>{x=[];for(const G of i.list())x.push(je(G,d,P));return x.push(X),ue(x)}).then(()=>{x=Mt(T,"beforeRouteUpdate",d,P);for(const G of T)G.updateGuards.forEach(me=>{x.push(je(me,d,P))});return x.push(X),ue(x)}).then(()=>{x=[];for(const G of ie)if(G.beforeEnter)if(Te(G.beforeEnter))for(const me of G.beforeEnter)x.push(je(me,d,P));else x.push(je(G.beforeEnter,d,P));return x.push(X),ue(x)}).then(()=>(d.matched.forEach(G=>G.enterCallbacks={}),x=Mt(ie,"beforeRouteEnter",d,P,J),x.push(X),ue(x))).then(()=>{x=[];for(const G of a.list())x.push(je(G,d,P));return x.push(X),ue(x)}).catch(G=>Ne(G,8)?G:Promise.reject(G))}function te(d,P,x){s.list().forEach(_=>J(()=>_(d,P,x)))}function U(d,P,x,_,T){const ie=z(d,P);if(ie)return ie;const X=P===Oe,G=Xe?history.state:{};x&&(_||X?o.replace(d.fullPath,le({scroll:X&&G&&G.scroll},T)):o.push(d.fullPath,T)),l.value=d,g(d,P,x,X),L()}let fe;function he(){fe||(fe=o.listen((d,P,x)=>{if(!ge.listening)return;const _=w(d),T=Y(_,ge.currentRoute.value);if(T){B(le(T,{replace:!0,force:!0}),_).catch(ut);return}u=_;const ie=l.value;Xe&&x.delta&&ya(En(ie.fullPath,x.delta)),ee(_,ie).catch(X=>Ne(X,12)?X:Ne(X,2)?(B(le(I(X.to),{force:!0}),_).then(G=>{Ne(G,20)&&!x.delta&&x.type==="pop"&&o.go(-1,!1)}).catch(ut),Promise.reject()):(x.delta&&o.go(-x.delta,!1),we(X,_,ie))).then(X=>{X=X||U(_,ie,!1),X&&(x.delta&&!Ne(X,8)?o.go(-x.delta,!1):x.type==="pop"&&Ne(X,20)&&o.go(-1,!1)),te(_,ie,X)}).catch(ut)}))}let de=lt(),ye=lt(),ae;function we(d,P,x){L(d);const _=ye.list();return _.length?_.forEach(T=>T(d,P,x)):console.error(d),Promise.reject(d)}function V(){return ae&&l.value!==Oe?Promise.resolve():new Promise((d,P)=>{de.add([d,P])})}function L(d){return ae||(ae=!d,he(),de.list().forEach(([P,x])=>d?x(d):P()),de.reset()),d}function g(d,P,x,_){const{scrollBehavior:T}=e;if(!Xe||!T)return Promise.resolve();const ie=!x&&xa(En(d.fullPath,0))||(_||!x)&&history.state&&history.state.scroll||null;return Xt().then(()=>T(d,P,ie)).then(X=>d===l.value&&X&&ba(X)).catch(X=>d===l.value&&we(X,d,P))}const $=d=>o.go(d);let K;const ve=new Set,ge={currentRoute:l,listening:!0,addRoute:y,removeRoute:v,clearRoutes:b,hasRoute:E,getRoutes:p,resolve:w,options:e,push:A,replace:M,go:$,back:()=>$(-1),forward:()=>$(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:ye.add,isReady:V,install(d){d.component("RouterLink",La),d.component("RouterView",Ua),d.config.globalProperties.$router=ge,Object.defineProperty(d.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(l)}),Xe&&!K&&l.value===Oe&&(K=!0,A(o.location).catch(_=>{}));const P={};for(const _ in Oe)Object.defineProperty(P,_,{get:()=>l.value[_],enumerable:!0});d.provide(nn,ge),d.provide(pr,Qr(P)),d.provide(Kt,l);const x=d.unmount;ve.add(d),d.unmount=function(){ve.delete(d),ve.size<1&&(u=Oe,fe&&fe(),fe=null,l.value=Oe,K=!1,ae=!1),x()}}};function ue(d){return d.reduce((P,x)=>P.then(()=>J(x)),Promise.resolve())}return ge}const Wa=["lang"],Ga={class:"shell-bar"},Ya={class:"shell-bar"},Xa={class:"shell-bar"},Qa=ce({__name:"ShellDemo",props:{locale:{default:"zh-CN"}},setup(e){const t=e,n=k(()=>t.locale==="en"?{dashboard:"Dashboard",reports:"Reports",navigation:"Navigation",light:"Light theme",dark:"Dark theme",footer:"Layout preview",settings:"Layout",side:"Left",top:"Top",mixed:"Mixed",right:"Right",split:"Split",contentWidth:"Content width",fluid:"Fluid",fixed:"Fixed",maxWidth:"Maximum width",padding:"Padding",fixedHeader:"Fixed header",fixedFooter:"Fixed footer",reset:"Reset layout"}:{dashboard:"工作台",reports:"报表",navigation:"导航",light:"浅色主题",dark:"深色主题",footer:"布局预览",settings:"布局",side:"侧边导航",top:"顶部导航",mixed:"混合导航",right:"右侧导航",split:"通栏分组",contentWidth:"内容宽度",fluid:"流式铺满",fixed:"定宽居中",maxWidth:"最大宽度",padding:"内容间距",fixedHeader:"固定顶栏",fixedFooter:"固定页脚",reset:"恢复默认布局"}),r=y=>n.value[y==="tab"?"settings":y]??y,o={mode:"side",contentWidth:"fluid",contentMaxWidth:1200,contentPadding:16,fixedHeader:!0,fixedFooter:!0},i=oe({...o}),a=y=>{i.value={...i.value,...y}},s=oe(!1),l=k(()=>[{path:"/",label:n.value.dashboard},{path:"/reports",label:n.value.reports}]),f=Ka({history:ka(),routes:l.value.map(({path:y})=>({path:y,component:{render:()=>null}}))}),u=k(()=>f.currentRoute.value.path),c=k(()=>{var y;return(y=l.value.find(({path:v})=>v===u.value))==null?void 0:y.label}),h=k(()=>l.value.map(({path:y,label:v})=>({key:y,label:v,path:y,fullPath:y,name:y,meta:{}}))),m=y=>{f.push(y)};return Qn(()=>m("/")),(y,v)=>(S(),ne(Re(jr),{theme:s.value?Re(Lr):void 0},{default:Le(()=>[se("div",{class:Jr(["shell-demo",{"r-template--dark":s.value}]),lang:e.locale},[H(Re(qi),{layout:i.value,groupedSidebar:!0,showTabs:"",showFooter:""},{header:Le(()=>[se("div",Ga,[v[1]||(v[1]=se("strong",null,"Ray Admin",-1)),H(Re(er),{size:"small",onClick:v[0]||(v[0]=b=>s.value=!s.value)},{default:Le(()=>[Zn(It(s.value?n.value.light:n.value.dark),1)]),_:1})]),["top","mixed","split"].includes(i.value.mode)?(S(),ne(Re(Hi),{key:0,items:h.value,active:u.value,grouped:i.value.mode!=="top",label:n.value.navigation,select:b=>m(b.fullPath)},null,8,["items","active","grouped","label","select"])):to("",!0)]),sidebar:Le(()=>[H(Re(yi),{width:132,bordered:""},{default:Le(()=>[H(Re(mr),{options:h.value,value:u.value,"onUpdate:value":m},null,8,["options","value"])]),_:1})]),tabs:Le(()=>[se("div",Ya,[(S(!0),q(ke,null,eo(l.value,b=>(S(),ne(Re(Di),{key:b.path,label:b.label,active:u.value===b.path,select:()=>m(b.path)},null,8,["label","active","select"]))),128))])]),footer:Le(()=>[se("div",Xa,It(n.value.footer),1)]),default:Le(()=>[se("h2",null,It(c.value),1),H(Re(ji),{layout:i.value,defaults:o,translate:r,update:a},null,8,["layout"])]),_:1},8,["layout"])],10,Wa)]),_:1},8,["theme"]))}}),al=no(Qa,[["__scopeId","data-v-aae3d615"]]);export{al as default};
|