mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 19:42:07 +08:00
13 lines
117 KiB
JavaScript
13 lines
117 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-CAmfQl2y.js","js/dayjs@1.11.10-C8LoRVP6.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-BdoEj60G.js","js/vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js","js/@vue_reactivity@3.5.12-Bs6EYLxJ.js","js/@vue_shared@3.5.12--5_uv9t5.js","js/@vue_runtime-core@3.5.12-rIgKm_Vg.js","js/lodash@4.17.21-Cw59kuJw.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-DmMZCkhi.js","js/jsbarcode@3.11.6-DGNGFp02.js","js/@logicflow_core@2.0.6-CHqfytjt.js","js/mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js","js/preact@10.22.0-D1_UwAj3.js","js/mobx@5.15.7-CEMJDQot.js","js/lodash-es@4.17.21-B-5kLwAl.js","js/uuid@9.0.1-CQkTLCs1.js","js/classnames@2.5.1-nUTIn1-D.js","js/mousetrap@1.6.5-BTGDluHR.js","js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js","css/@logicflow_core@2.0-DY-ASpx_.css","js/currency.js@2.0.4-9OAR_aOO.js","js/naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js","js/date-fns@3.6.0-q9PkOyxq.js","js/seemly@0.3.8-DjGKl9dV.js","js/vueuc@0.4.64_vue@3.5.12_typescript@5.6.3_-BcAtcaHt.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.12_typescript@5.6.3_-BZYDXyJG.js","js/vooks@0.2.12_vue@3.5.12_typescript@5.6.3_--iLh4DJ5.js","js/vdirs@0.1.8_vue@3.5.12_typescript@5.6.3_-C0KV5pCE.js","js/@juggle_resize-observer@3.4.0-C8OzoCMD.js","js/css-render@0.15.14-C5toWlUr.js","js/@emotion_hash@0.8.0-WldOFDRm.js","js/@vue_runtime-dom@3.5.12-BKraWVUW.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-ztskLDQQ.js","js/async-validator@4.2.5-DKvM95Vc.js","js/@css-render_plugin-bem@0.15.14_css-render@0.15.14-Be8eOoM-.js","js/@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js","js/@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js","js/utils-DJWgFDlo.js","js/pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js","js/vue-demi@0.14.10_vue@3.5.12_typescript@5.6.3_-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js","js/vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js","js/@intlify_shared@9.13.1-BxU0OzX2.js","js/@intlify_core-base@9.13.1-C6DqbPB6.js","js/@intlify_message-compiler@9.13.1-GrLDMuy_.js","js/echarts@5.5.0-CezqL3m-.js","js/zrender@5.5.0-DW8ownf1.js","js/tslib@2.3.0-BDyQ-Jie.js","js/interactjs@1.10.26-DZL_TZzP.js","js/zh-CN-BW8ylN7B.js","js/index-pNGX5TLZ.js","js/index-CPnIe1iT.js","css/index-D_4DGt8i.css","js/Flow-BIVYLQ0q.js","js/index-B4MM6uWb.js","js/instance-DGp8AH04.js","js/axios@1.7.5-C8DqakIB.js","css/index-QAd2IBUs.css","js/BarcodeDemo-ChSS4k2S.js","js/index-D4yh857T.js","js/index-yX6ilmeX.js","js/index-CMTstbS_.js","js/index-DsPYwXwT.js","css/index-DHYYVpM7.css","js/index-Dma-XXes.js","js/index-DLHH4nqK.js","js/index-BLhKipa_.js","js/index-C8iQ720y.js","js/index-sIqE1um6.js","js/index-BjjUm4zh.js","js/index-BfILLugh.js","js/index-DyDrKyTs.js","js/index-PlxeXsXD.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-et2AKeWS.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-CG4VaxS5.css","js/ray-dCjhX_JK.js","js/index-DLfdzB8P.js","css/index-B6yUFiKH.css","js/index-DHRMhslY.js","js/index-Cq14wQ9z.js","js/index-1zvmv80z.js","css/index-Dig957GB.css","js/index-C6a7JFW7.js","js/index-N8Hty4TD.js","css/index-Eq1L-L2-.css","js/TablePro-Ce1OT4eD.js","js/mockjs@1.1.0-CxlURkif.js","js/index-BYUR34wX.js","js/index-C55lNPAm.js","js/index-CCykVugW.js","css/index-74sXJ5VP.css","js/index-BYpwN2eY.js","css/index-b1h4j9PV.css"])))=>i.map(i=>d[i]);
|
||
var ao=Object.defineProperty;var lo=(e,n,t)=>n in e?ao(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Vt=(e,n,t)=>lo(e,typeof n!="symbol"?n+"":n,t);import{s as mt,c as Ze,l as Rt,v as cn,p as Fe,y as Ve,z as ro}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Nt,d as Ut,f as so,g as io,N as lt,a as uo,b as co,c as L,e as rt,m as po,h as dn,u as mo,S as Pt,i as fo,j as Ae,k as go,l as pn,n as Be,o as ho,p as vo,q as ie,t as yo,r as bo,s as mn,v as _o,w as fn,x as Qe,y as $t,A as gn,B as So,C as wo,D as Co,E as ae,F as To,G as Kt,H as z,I as Q,J as q,K as ko,L as xt,M as hn,O as Y,P as Oo,Q as Ao,R as We,T as Ro,U as Po,V as xo,W as Mo,X as Eo,Y as vn,Z as Do,_ as Wt,$ as zo}from"./naive-ui@2.40.1_vue@3.5.12_typescript@5.6.3_-D3cUk1tG.js";import{o as Io,u as je,a as Lo,b as Fo,c as yn,d as Bo,e as ft,f as jo}from"./@vueuse_core@11.1.0_vue@3.5.12_typescript@5.6.3_-ZDBD96r1.js";import{k as E,l as ye,e as le,n as Vo,x as _e,a as bn,s as _n,u as ee}from"./@vue_reactivity@3.5.12-Bs6EYLxJ.js";import{n as te,j as ce,l as R,b as r,m as N,p as ge,q as ue,f as w,w as Pe,t as No,k as xe,v as Mt,h as st,i as Me,x as Sn,F as wn,y as Uo,z as we,A as $o,C as gt,D as Ko,E as Ie,S as Wo,K as qo,G as qt,H as Go,I as $}from"./@vue_runtime-core@3.5.12-rIgKm_Vg.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as K}from"./dayjs@1.11.10-C8LoRVP6.js";import{p as Ho}from"./print-js@1.6.0-BdoEj60G.js";import{u as Cn}from"./vue-hooks-plus@2.2.1_vue@3.5.12_typescript@5.6.3_--wFVw10U.js";import"./lodash@4.17.21-Cw59kuJw.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DmMZCkhi.js";import{b as Yo}from"./jsbarcode@3.11.6-DGNGFp02.js";import{L as Gt}from"./@logicflow_core@2.0.6-CHqfytjt.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-q-IhwcFu.js";import"./preact@10.22.0-D1_UwAj3.js";import{u as Et,g as et,i as fe,s as Dt,a as Tt,c as Xo,b as tt,l as Tn,d as kn,e as Jo,f as V,r as be,h as F,j as Zo,k as nt,q as ot,m as On,p as An,n as zt,o as Ht,t as Ce,v as Qo,w as ea,x as ta,y as na,z as oa,A as pe}from"./utils-DJWgFDlo.js";import{s as aa}from"./pinia-plugin-persistedstate@4.1.1_pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3____dh65odvamx6uymfx32yexjadga-_Zka_ujQ.js";import{d as it,c as la}from"./pinia@2.2.4_typescript@5.6.3_vue@3.5.12_typescript@5.6.3_-BdVsFNKX.js";import{t as ra,a as sa,b as ia,c as ua,d as ca,e as da}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as ut,a as pa,o as ma,c as fa,b as ga}from"./vue-router@4.3.2_vue@3.5.12_typescript@5.6.3_-Brd4YmBy.js";import{c as ha}from"./vue-i18n@9.13.1_vue@3.5.12_typescript@5.6.3_-DVUVmCuN.js";import{r as va,u as Le,i as ya,a as ba,b as _a,c as Sa,d as wa,e as Ca,f as Ta,g as ka,h as Oa,j as Aa,k as Ra,l as Pa,m as xa,n as Ma,o as Ea,p as Da,q as za,s as Ia}from"./echarts@5.5.0-CezqL3m-.js";import{g as La}from"./@vueuse_shared@11.1.0_vue@3.5.12_typescript@5.6.3_-DnrABUGp.js";import{T as Fa,a as Ba}from"./@vue_runtime-dom@3.5.12-BKraWVUW.js";import{i as Yt}from"./interactjs@1.10.26-DZL_TZzP.js";const ri=(e,n)=>{if(typeof n!="string"||!n.trim())throw new TypeError("Expected prefix to be a non-empty string");const t={};return Object.keys(e).forEach(o=>{const a=e[o].default;let l=o.replace(`./${n}/`,"").replace(/^\.\//,"");const s=l.lastIndexOf(".");l=l.substring(0,s);const i=l.split("/"),u=i.shift(),c=i.join(".");u&&(c?(mt(t,u,t[u]||{}),mt(t[u],c,a)):mt(t,u,a||{}))}),t},ja="modulepreload",Va=function(e){return"/ray-template/"+e},Xt={},I=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=Promise.all(t.map(i=>{if(i=Va(i),i in Xt)return;Xt[i]=!0;const u=i.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${c}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":ja,u||(p.as="script"),p.crossOrigin="",p.href=i,s&&p.setAttribute("nonce",s),document.head.appendChild(p),u)return new Promise((g,v)=>{p.addEventListener("load",g),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${i}`)))})}))}return a.then(()=>n()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})},Na=(e,n,t)=>{const o=e[n];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((a,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+n+(n.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Ua=async e=>{var t;const n={};for(const o of e){const a=await Na(Object.assign({"../lang/en-US.ts":()=>I(()=>import("./en-US-CAmfQl2y.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),"../lang/zh-CN.ts":()=>I(()=>import("./zh-CN-BW8ylN7B.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]))}),`../lang/${o.key}.ts`,3),l=o.key;l&&(n[l]=((t=a==null?void 0:a.default)==null?void 0:t.message)??{})}return n},si=e=>{switch(e){case"zh-CN":return{locale:Nt,dateLocal:Ut};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Nt,dateLocal:Ut}}},$a={darkClassName:"ray-template--dark",lightClassName:"ray-template--light",rayTemplateThemePrimaryColor:"--ray-theme-primary-color",rayTemplateThemePrimaryFadeColor:"--ray-theme-primary-fade-color",preLoadingAnimation:"pre-loading-animation",htmlHeight:"--html-height",htmlWidth:"--html-width"},ii={max:5,closable:!1},ui="loading",ci="",Z={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ka=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],re={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18A058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"},appNaiveUIThemeOverrides:{dark:{},light:{}},appNaiveUIThemeOverridesCommon:{dark:{},light:{}},echartTheme:"macarons"},Rn=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Wa="zh-CN",qa="zh-CN",Ga={"zh-CN":"zh-cn","en-US":"en"},Ha="zh-cn",di={cssUnit:/^\d+(\.\d+)?(px|em|rem|%|vw|vh|vmin|vmax|cm|mm|in|pt|pc|ch|ex|q|s|ms|deg|rad|turn|grad|hz|khz|dpi|dpcm|dppx|fr|auto)$/,cssSize:/^auto|unset|fit-content|max-content|min-content|initial|inherit|revert|revert-layer|[-\w]+-webkit-fill-available$/},pi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},ke=E(null),Pn=E(null),Ya={setupRouterLoadingBar:!0,setupRouterGuard:!0},Xa=["RLogin","ErrorPage","RayTemplateDoc"],qe=[],mi=(e,n)=>{const t=E(0),o=E(0),a=E(!1),{clickOutside:l}={},s=g=>{a.value=g},i=g=>{g.preventDefault(),s(!1),te().then(()=>{const{clientX:v,clientY:f}=g;t.value=v,o.value=f,s(!0)})};l&&Io(e,g=>{l(g)});const u=je(e,"contextmenu",i,n),c=je(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:ye(t),y:ye(o),show:ye(a),updateShow:s}},It=le({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function me(e,n,t){Et(It,e,n,t)}function ct(e){return ye(Vo(It,e))}function Ja(){return{..._e(ye(It))}}let de;const Za=async()=>{const e=Zn(),n=await Ua(Rn);return ha({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:qa})},fi=async e=>{const n=await Za();e.use(n),de=n},Jt=(e,n)=>n,Ne=e=>{if(!de)return{t:l=>Jt(e,l),locale:l=>{}};const{t:n,...t}=de.global;return{...t,t:(l,...s)=>l?!l.includes(".")&&!e?l:n(Jt(e,l),...s):"",locale:l=>{de.mode==="legacy"?de.global.locale=l:bn(de.global.locale)?de.global.locale.value=l:de.global.locale=l}}},j=e=>e,Qa={path:"/dashboard",component:()=>I(()=>import("./index-pNGX5TLZ.js"),__vite__mapDeps([58,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,59,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,60])),meta:{i18nKey:j("menu.Dashboard"),icon:"dashboard",order:0}},el=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"})),tl={path:"/flow",component:()=>I(()=>import("./Flow-BIVYLQ0q.js"),__vite__mapDeps([61,22,1,2,3,4,5,6,7,8,9,10,11,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,39,40,12,13,14,15,17,18,19,20,21,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Flow"),icon:"other",order:2}},nl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),ol={path:"/axios",name:"RAxios",component:()=>I(()=>import("./index-B4MM6uWb.js"),__vite__mapDeps([62,4,5,6,7,8,2,9,10,63,64,1,3,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,65])),meta:{i18nKey:j("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},al=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ll={path:"barcode",component:()=>I(()=>import("./BarcodeDemo-ChSS4k2S.js"),__vite__mapDeps([66,22,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,11,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},rl=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),sl={path:"/cache-demo",component:()=>I(()=>import("./index-D4yh857T.js"),__vite__mapDeps([67,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CacheDemo"),icon:"other",order:3}},il=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ul={path:"/context-menu",component:()=>I(()=>import("./index-yX6ilmeX.js"),__vite__mapDeps([68,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.ContextMenu"),icon:"other",order:2}},cl=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),dl={path:"/directive",component:()=>I(()=>import("./index-CMTstbS_.js"),__vite__mapDeps([69,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},pl=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),ml={path:"/echart",component:()=>I(()=>import("./index-DsPYwXwT.js"),__vite__mapDeps([70,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,71])),meta:{i18nKey:j("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},fl=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),gl={path:"/form",component:()=>I(()=>import("./index-Dma-XXes.js"),__vite__mapDeps([72,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},hl=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),vl={path:"/iframe",component:()=>I(()=>import("./index-DLHH4nqK.js"),__vite__mapDeps([73,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{icon:"other",order:2,noLocalTitle:"iframe"}},yl=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),bl={path:"/mock-demo",component:()=>I(()=>import("./index-BLhKipa_.js"),__vite__mapDeps([74,22,1,2,3,11,12,13,14,15,16,17,18,19,20,21,4,5,6,7,8,9,10,63,64,41,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},_l=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),Sl={path:"/modal-demo",component:()=>I(()=>import("./index-C8iQ720y.js"),__vite__mapDeps([75,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Modal"),icon:"other",order:3}},wl=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),Je=()=>I(()=>Promise.resolve().then(()=>Xr),void 0),Cl={path:"/multi",component:Je,meta:{i18nKey:j("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>I(()=>import("./index-sIqE1um6.js"),__vite__mapDeps([76,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-1",keepAlive:!0}},{path:"multi-menu-two",name:"MultiMenuTwo",component:Je,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>I(()=>import("./index-BjjUm4zh.js"),__vite__mapDeps([77,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-1",keepAlive:!0}},{path:"sub-menu",name:"SubMenu",component:Je,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>I(()=>import("./index-BfILLugh.js"),__vite__mapDeps([78,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"多级菜单-2-2-1",keepAlive:!0}}]}]}]},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),kl={path:"/precision",component:()=>I(()=>import("./index-DyDrKyTs.js"),__vite__mapDeps([79,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.CalculatePrecision"),icon:"other",order:2}},Ol=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Al={path:"/qrcode",component:()=>I(()=>import("./index-PlxeXsXD.js"),__vite__mapDeps([80,81,7,5,6,82,83,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{i18nKey:j("menu.QRCode"),icon:"other",order:2}},Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Pl={path:"rely-about",component:()=>I(()=>import("./index-DLfdzB8P.js"),__vite__mapDeps([84,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,85])),meta:{i18nKey:j("menu.RelyAbout"),icon:"rely",order:999}},xl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),Ml={path:"/router-demo",component:Je,meta:{i18nKey:j("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>I(()=>import("./index-DHRMhslY.js"),__vite__mapDeps([86,22,1,2,3,48,5,6,7,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,4,8,9,10,41,42,43,44,45,46,47,49,50,51,52,53,54,55,56])),meta:{noLocalTitle:"人员信息(平级模式)"}},{path:"router-demo-detail",component:()=>I(()=>import("./index-Cq14wQ9z.js"),__vite__mapDeps([87,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38])),meta:{noLocalTitle:"信息详情",sameLevel:!0}}]},El=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Dl={path:"/scroll-reveal",component:()=>I(()=>import("./index-1zvmv80z.js"),__vite__mapDeps([88,7,5,6,23,24,25,26,27,28,29,30,31,32,33,34,16,35,36,37,38,89])),meta:{i18nKey:j("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},zl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Il={path:"/segment",component:()=>I(()=>import("./index-C6a7JFW7.js"),__vite__mapDeps([90,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Fl={path:"/svg-icons",component:()=>I(()=>import("./index-N8Hty4TD.js"),__vite__mapDeps([91,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,92])),meta:{i18nKey:j("menu.SvgIcon"),icon:"other",order:3}},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),jl={path:"/table-pro",component:()=>I(()=>import("./TablePro-Ce1OT4eD.js"),__vite__mapDeps([93,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,63,64,94,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},Vl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Nl={path:"/table",component:()=>I(()=>import("./index-BYUR34wX.js"),__vite__mapDeps([95,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Ul=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),$l={path:"/template-hooks",component:()=>I(()=>import("./index-C55lNPAm.js"),__vite__mapDeps([96,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56])),meta:{i18nKey:j("menu.TemplateHooks"),icon:"other",order:1}},Kl=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Wl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":el,"/src/router/modules/demo/axios copy.ts":nl,"/src/router/modules/demo/axios.ts":al,"/src/router/modules/demo/barcode.ts":rl,"/src/router/modules/demo/cache-demo.ts":il,"/src/router/modules/demo/context-menu.ts":cl,"/src/router/modules/demo/directive.ts":pl,"/src/router/modules/demo/echart.ts":fl,"/src/router/modules/demo/form.ts":hl,"/src/router/modules/demo/iframe.ts":yl,"/src/router/modules/demo/mock.ts":_l,"/src/router/modules/demo/modal.ts":wl,"/src/router/modules/demo/multi-menu.ts":Tl,"/src/router/modules/demo/precision.ts":Ol,"/src/router/modules/demo/qrcode.ts":Rl,"/src/router/modules/demo/rely.ts":xl,"/src/router/modules/demo/router-demo.ts":El,"/src/router/modules/demo/scroll-reveal.ts":zl,"/src/router/modules/demo/segment.ts":Ll,"/src/router/modules/demo/svg-icons.ts":Bl,"/src/router/modules/demo/table-pro.ts":Vl,"/src/router/modules/demo/table.ts":Ul,"/src/router/modules/demo/template-hooks.ts":Kl});return Object.keys(e).reduce((t,o)=>{const a=e[o].default;if(a)t.push(a);else throw new Error(`[combineRawRouteModules]: ${o} module must export default.`);return t},[])},ql=e=>e[0]==="/",xn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(ql(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){xn(a.children,n,l);continue}else n.push({...a,path:l})}return n},Gl=e=>Array.isArray(e)?xn(Ze(e)):[],Hl=e=>e.sort((n,t)=>{var l,s;const o=((l=n.meta)==null?void 0:l.order)??1,a=((s=t.meta)==null?void 0:s.order)??0;if(typeof o!="number"||typeof a!="number")throw new TypeError("orderRoutes error: order must be a number!");return o===a?n.name?t.name?n.name.localeCompare(t.name):-1:1:o-a}),Yl=e=>{const{beforeEach:n}=e,{getRootPath:t}=ze(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=et(Z.token,"localStorage"),u=et(Z.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:p}=a;i!==null?o(a,l)?ht(!0):!fe(p,"Symbol")&&p&&Xa.includes(p)?s():qn(c)?o(a,l)?u?s(u):ht(!0):s():ht(!0):o(a,l)?s():s("/")})},ht=(e=!0)=>{const{router:n}=Ft(),{push:t,replace:o}=n,{getRootPath:a}=ze();Dt(Z.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},Xl=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=ke.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},Jl=e=>{e.beforeEach(()=>{var n;(n=window.$loadingBar)==null||n.start()}),e.afterEach(()=>{var n;(n=window.$loadingBar)==null||n.finish()}),e.onError(()=>{var n;(n=window.$loadingBar)==null||n.error()})},Mn=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Tt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))};var Zl={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Re=it("setting",()=>{const{appPrimaryColor:{primaryColor:e}}=Zl,{locale:n}=Ne(),{locale:t}=As(),o=le({drawerPlacement:"right",primaryColorOverride:{common:{primaryColor:e,primaryColorHover:e,primaryColorPressed:e}},_appTheme:!1,appTheme:"light",menuTagSwitch:!0,breadcrumbSwitch:!0,localeLanguage:Zn(),lockScreenSwitch:!1,copyrightSwitch:!0,contentTransition:"scale",watermarkSwitch:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,xGap:0,yGap:0,yOffset:60,rotate:-15,cross:!0},appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},keepAliveConfig:{setupKeepAlive:!0,keepAliveExclude:[],maxKeepAliveLength:10},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},colorWeakness:!1,dynamicDocumentTitle:!0}),a=u=>{n(u),t(u),Dt(Z.localeLanguage,u,"localStorage"),o.localeLanguage=u},l=(u,c=.3)=>{const p=Xo(u,c),g={primaryColor:u,primaryColorHover:u,primaryColorPressed:u},{rayTemplateThemePrimaryColor:v,rayTemplateThemePrimaryFadeColor:f}=$a,m=document.documentElement;o.primaryColorOverride.common=g,m.style.setProperty(v,u),m.style.setProperty(f,p)},s=(u,c,p)=>{Et(o,u,c,p)},i=u=>{const c=document.documentElement;s("colorWeakness",u),tt(c,{filter:u?"invert(100%)":""})};return ce(()=>{var u;o.appTheme?o.primaryColorOverride=Object.assign({},o.primaryColorOverride,re.appNaiveUIThemeOverrides.dark,re.appNaiveUIThemeOverridesCommon.dark):o.primaryColorOverride=Object.assign({},o.primaryColorOverride,re.appNaiveUIThemeOverrides.light,re.appNaiveUIThemeOverridesCommon.light),i(o.colorWeakness),o.dynamicDocumentTitle||(document.title=((u=o.sideBarLogo)==null?void 0:u.title)||"Ray Template")}),{..._e(o),updateLocale:a,changePrimaryColor:l,updateSettingState:s,toggleColorWeakness:i}},{persist:{key:Z.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),En={...so,onRegister:{type:[Function,Array],default:null}},Dn={actionAlign:{type:String,default:"end"},open:{type:Boolean,default:!1},collapseToggleText:{type:Array,default:()=>["展开","收起"]},bordered:{type:Boolean,default:!0},onUpdateOpen:{type:[Function,Array],default:null},"onUpdate:open":{type:[Function,Array],default:null},...io};function Ql(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const gi=R({name:"RCollapse",props:Object.assign({},En,{...Dn,open:{type:Boolean,default:!0},cols:{type:Number,default:4},bordered:{type:Boolean,default:!0}}),render(){const{$slots:e,$props:n}=this,{labelPlacement:t,showFeedback:o,...a}=n;return r(Tr,N(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(nr,a,Ql(e)?e:{default:()=>[e]})]})}}),er={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>Tn()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>kn()},onRegister:{type:[Function,Array],default:null}},tr=Jo(),Zt="__R_CHART_DOWN_LOAD_CHART__";tr.forEach(e=>{va(e.name,e.theme)});const hi=R({name:"RChart",props:er,setup(e,{expose:n}){const{getAppTheme:t}=G(),o=ue("rayChartRef"),a=ue("rayChartWrapperRef"),l=_n();let s,i;const{echartTheme:u}=re;let c;const p=w(()=>[{label:"下载图片",key:Zt,disabled:!(l.value&&l.value.getDom())}]),g=w(()=>({"--ray-chart-width":V(e.width),"--ray-chart-height":V(e.height)})),v=E(!1);let f;const m={aria:e.showAria},_=async()=>{var k;Le([ba,_a,Sa,wa,Ca,Ta,ka,Oa]),Le([Aa,Ra,Pa,xa,Ma,Ea]),Le([Da,za]),Le([Ia]);try{Le((k=e.use)==null?void 0:k.filter(Boolean))}catch(O){console.error("[RChart register error]: ",O)}},h=()=>{if(l.value&&T(),e.theme==="default"){e.autoChangeTheme?d("dark"):d("");return}if(e.theme)d(e.theme);else{const k=e.autoChangeTheme&&t.value?`${u}-dark`:u;d(k)}},S=k=>{let O=ee(k);return O=(H=>Object.assign({},O,H))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),O},d=(k=u)=>{var he;const O=o.value,B=S(e.options),{height:H,width:W}=O.getBoundingClientRect(),{onSuccess:ne,onError:X}=e;try{l.value=ya(O,k,{width:W===0?200:void 0,height:H===0?200:void 0}),ne&&F(ne,l.value),e.nextTick?(l.value.setOption({}),te(()=>{var oe;B&&((oe=l.value)==null||oe.setOption(B))})):B&&((he=l.value)==null||he.setOption(B))}catch(oe){throw X&&F(X),new Error(`[RChart render error]: ${oe}`)}finally{const{onFinally:oe}=e;oe&&F(oe)}},y=()=>{var k;return!!((k=l.value)!=null&&k.isDisposed())},T=()=>{var k;y()||(k=l.value)==null||k.dispose()},C=()=>{l.value&&l.value.resize()},b=(k,O)=>{if(k===Zt&&!y()){const{filename:H,...W}=e.downloadOptions;Zo(l.value.getDataURL(W),H??`${new Date().getTime()}`)}const{onDropdownSelect:B}=e;B&&F(B,k,O)},M=()=>{var O;if(e.autoResize&&(s||(s=Rt(C,500)),i||(i=Fo(e.autoResizeObserverTarget||a,s))),(O=l.value)!=null&&O.getDom()||!v.value&&e.intersectionObserver)return;h(),f==null||f.stop();const{onRegister:k}=e;k&&l.value&&F(k,l.value,M,P)},P=()=>{T(),s==null||s.cancel(),i==null||i.stop(),f==null||f.stop(),f=null,s=null,i=null};return Pe(()=>t.value,()=>{e.autoChangeTheme&&(T(),h())}),ce(()=>{var k,O;e.intersectionObserver&&(f=Lo(e.intersectionObserverTarget||a,([B])=>{v.value=B.isIntersecting},e.intersectionOptions)),e.watchOptions?c=La(()=>e.options,B=>{var ne;const H=S(B),W=Object.assign({},kn(),e.setChartOptions);(ne=l.value)==null||ne.setOption(H,W)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(k=l.value)==null||k.showLoading(Tn(e.loadingOptions)):(O=l.value)==null||O.hideLoading(),e.showAria!==m.aria&&l.value&&(l.value.setOption(S(e.options)),m.aria=e.showAria),v.value&&!y()&&M()}),n(),No(async()=>{await _()}),xe(()=>{M()}),Mt(()=>{P(),c==null||c()}),{rayChartRef:o,cssVarsRef:g,rayChartWrapperRef:a,moreDropDownOptions:p,dropdownSelect:b}},render(){const{title:e,contentStyle:n,preset:t,moreDropDownOptions:o,dropdownSelect:a,bordered:l,dropdownOptions:s}=this,{cardExtra:i}=this.$slots;return t==="card"?r(lt,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:be(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:be(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":be(i,{defaultElement:r(Ln,{iconSize:18,cursor:"pointer",options:s||o,trigger:"click",onSelect:a.bind(this),placement:"bottom-end"},null)})}):r("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartWrapperRef"},[r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)])}}),vi=()=>{let e,n,t;const o=(u,c,p)=>{u&&(e=u,n=p,t=c)},a=()=>{if(!e)throw new Error("[useChart]: echart instance is not ready yet. if you are using useChart, please make sure you have called register method in onRegister event.");return{dispose:n,render:t,echartInst:e}};return[o,{getChartInstance:a,isDisposed:()=>{var u;return!!((u=a().echartInst)!=null&&u.isDisposed())},dispose:()=>a().dispose.call(null),render:()=>a().render.call(null)}]},nr=R({name:"RCollapseGrid",props:Dn,setup(e){const n=E(!e.open),t=w(()=>({"--r-collapse-grid-action-align":e.actionAlign})),o=()=>{const{onUpdateOpen:l,"onUpdate:open":s}=e;n.value=!n.value,l&&F(l,n.value),s&&F(s,n.value)},a=l=>r("div",{class:"collapse-icon",onClick:o.bind(this)},[r("span",null,[l?e.collapseToggleText[0]:e.collapseToggleText[1]]),r(x,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ce(()=>{n.value=!e.open}),{modelCollapsed:n,collapseClick:o,CollapseIcon:a,cssVars:t}},render(){const{$slots:{collapse:e,action:n,default:t},CollapseIcon:o,$props:a,modelCollapsed:l,xGap:s,yGap:i,collapsedRows:u,cssVars:c,bordered:p}=this;return r(lt,{bordered:p,style:[c]},{default:()=>r(uo,N({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(co,{suffix:!0,class:"ray-collapse-grid__suffix--btn"},{default:()=>[r(L,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),or={color:{type:String,default:"currentColor"},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:"default"},onClick:{type:[Function,Array],default:null}},x=R({name:"RIcon",props:or,setup(e){const n=w(()=>`#${e.prefix}-${e.name}`),t=w(()=>({"--ray-icon-width":e.width?V(e.width):V(e.size),"--ray-icon-height":e.height?V(e.height):V(e.size),"--ray-icon-depth":e.depth,"--ray-icon-cursor":e.cursor,"--ray-icon-color":e.color}));return{symbolId:n,cssVars:t,iconClick:a=>{const{onClick:l}=e;l&&F(l,a)}}},render(){return r("span",{class:["ray-icon",this.customClassName],style:[this.cssVars],onClick:this.iconClick.bind(this)},[r("svg",{RayIconAttribute:"ray-icon",ariaHidden:!0},[r("use",N({"xlink:href":this.symbolId},{fill:this.color}),null)])])}}),ar={src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},yi=R({name:"RIframe",props:ar,setup(e,{expose:n}){const t=w(()=>({"--ray-iframe-frameborder":V(e.frameborder),"--ray-iframe-width":V(e.width),"--ray-iframe-height":V(e.height)})),o=ue("iframeRef"),a=E(!0),l=i=>{a.value=!1;const{onSuccess:u}=e;u&&F(u,o.value,i)},s=i=>{a.value=!1;const{onError:u}=e;u&&F(u,i)};return je(o,"load",l),je(o,"error",s),n({iframeInst:o}),{cssVars:t,iframeRef:o,spinShow:a}},render(){return r("div",{class:["ray-iframe",this.iframeWrapperClass],style:[this.cssVars]},[r(rt,N(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>r("iframe",{class:["ray-iframe__container",this.iframeClass],ref:"iframeRef",src:this.src,allow:this.allow,name:this.name,title:this.title,loading:typeof this.lazy=="boolean"?"lazy":this.lazy},null)})])}}),lr={...po,memo:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446},dad:{type:Boolean,default:!1}},rr=(e,n,t)=>{const{scheduler:o}=t??{};return new Promise(a=>{setTimeout(()=>{const l=n==="card"?".n-card-header__main":".n-dialog__title";if(e){const s=Yt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[Yt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);a(s)}},30)})},zn=(e,n)=>{const t=typeof e=="string"?document.querySelector(e):e;return new Promise((o,a)=>{if(t){t.setAttribute("can-drag","true");const{preset:l,dargCallback:s}=n;let{x:i,y:u}=n;rr(t,l,{scheduler:c=>{const p=c.target;i+=c.dx,u+=c.dy,p.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,c)}}).then(c=>{o(c)})}else a()})},sr="r-modal__preset-card--fullscreen",In="r-modal",Oe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},bi=R({name:"RModal",props:lr,setup(e){const n=w(()=>({[Oe.width]:V(e.width??600),[Oe.cardWidth]:V(e.cardWidth??600),[Oe.dialogWidth]:V(e.dialogWidth??446)})),t=nt();let o;const a={x:0,y:0},l=w(()=>e.preset==="card"&&e.fullscreen);return Pe(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?te(()=>{const i=document.getElementById(t);i&&zn(i,{preset:e.preset,x:a.x,y:a.y,dargCallback:(u,c)=>{a.x=u,a.y=c}}).then(u=>{o=u}),e.memo&&i&&(i.style.transform=`translate(${a.x}px, ${a.y}px)`)}):(o==null||o.unset(),o=null)},{immediate:!0}),{cssVars:n,isFullscreenCardType:l,uuidEl:t}},render(){const{$props:e,$slots:n,$attrs:t}=this,{preset:o,...a}=e,{cssVars:l,uuidEl:s,isFullscreenCardType:i}=this;return r(dn,N({class:[In,i?sr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),ir=()=>{const{create:e,destroyAll:n}=mo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>st(Pt,{themeOverrides:{color:"rgba(0, 0, 0, 0)",colorHover:"rgba(0, 0, 0, 0)"},trigger:"none",style:{width:"auto",height:"calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))"}},{default:()=>typeof a=="function"?a():a}));const{preset:i,dad:u,fullscreen:c,width:p,cardWidth:g,dialogWidth:v}=o,f=e({...l,content:s}),{key:m}=f,_={[Oe.width]:V(p??600),[Oe.cardWidth]:V(g??600),[Oe.dialogWidth]:V(v??446)};return te(()=>{const[h]=ot(`[internalkey="${m}"]`)||[];h&&(u&&zn(h,{preset:i,x:0,y:0}),c&&i==="card"&&tt(h,{width:"100%",height:"100vh"}),tt(h,_),On(h,In))}),f},destroyAll:n}},ur={...fo,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function cr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ln=R({name:"RMoreDropdown",props:ur,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(Ae,N(this.$props,this.$attrs,{placement:"bottom-start"}),cr(e=be(a,{defaultElement:r(x,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),Ee={...go,tableFlexHeight:{type:[String,Number],default:void 0},renderWrapperHeader:{type:Boolean,default:!0},cardProps:{type:Object,default:()=>({})},tool:{type:Boolean,default:!0},downloadCsvTableOptions:{type:Object,default:()=>({})},title:{type:[String,Number,Object],default:null},toolOptions:{type:Array},coverTool:{type:Boolean,default:!1},contextMenuOptions:{type:Array},disabledContextMenu:{type:Boolean,default:!1},onContextMenuClick:{type:[Function,Array],default:null},wrapperBordered:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},printTableOptions:{type:Object,default:()=>({})},onUpdateColumns:{type:[Function,Array],default:null},"onUpdate:columns":{type:[Function,Array],default:null},onContextmenu:{type:[Function,Array],default:null},onRegister:{type:[Function,Array],default:null}},se={tableIconSize:"18",tableKey:Symbol("r-table")},dr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],pr=R({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...Ee},setup(e){return{size:E(e.size),sizeOptions:[{label:"默认",value:"medium"},{label:"紧凑",value:"small"},{label:"宽松",value:"large"}],updatePopselectValue:a=>{const{onChangeSize:l}=e;l&&F(l,a)}}},render(){return r(pn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"adjustment",size:se.tableIconSize,cursor:"pointer"},null)]})}}),mr=R({name:"TableFullscreen",setup(){const{wrapperRef:e}=Me(se.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=Cn(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(x,{name:"fullscreen",size:se.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),fr=()=>r(x,{name:"draggable",size:14,cursor:"grab"},null),Qt=({icon:e,title:n,onClick:t,customClassName:o})=>r(Be,{showArrow:!1},{trigger:()=>r(x,{name:e,size:se.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),kt=(e,n)=>{if(!n)return[null,null];for(let t=0;t<n.length;++t){const o=n[t];if(o.key===e.key)return[n,t];const[a,l]=kt(e,o.children);if(a&&l!==null)return[a,l]}return[null,null]},vt="r-table__c-tool-icon--active",gr=R({name:"TableC",props:{...Ee,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=w({get:()=>Ze(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:p,title:g,children:v,fixed:f,isResizable:m,..._}=u,h=f==="left",S=f==="right",d={..._,title:g,key:p,fixed:f,isLeftFixedActivated:h,isRightFixedActivated:S,isResizable:m};return{...d,suffix:()=>r(L,{style:"padding-left: 32px;"},{default:()=>[r(Qt,{icon:"row_head",title:"固定在列首",customClassName:h?vt:"",onClick:l.bind(this,"left",d,c)},null),r(Be,{showArrow:!1},{trigger:()=>r(x,{name:"resize_h",size:se.tableIconSize,cursor:"pointer",customClassName:m?vt:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(Qt,{icon:"row_end",title:"固定在列尾",customClassName:S?vt:"",onClick:l.bind(this,"right",d,c)},null)]})}}),set:()=>{}}),o=i=>{const{onUpdateColumn:u}=e;u&&F(u,i)},a=(i,u)=>{i.isResizable=!i.isResizable,i.resizable=i.isResizable,t.value[u]=i,o(t.value)},l=(i,u,c)=>{const p=`${i}FixedActivated`,g=`${i==="left"?"right":"left"}FixedActivated`;u[g]=!1,u[p]=!u[p],u[p]?u.fixed=i:u.fixed=void 0,t.value[c]=u,o(t.value)};return{treeDataSource:t,treeDrop:({node:i,dragNode:u,dropPosition:c})=>{const[p,g]=kt(u,t.value);if(p===null||g===null)return;p.splice(g,1);const[v,f]=kt(i,t.value);v===null||f===null||(c==="before"?v.splice(f,0,u):v.splice(f+1,0,u),cn(n)||v.unshift(n),o(v))}}},render(){return r(Be,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(x,{name:"setting",size:se.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(ho,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:fr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),hr=R({name:"TablePrint",props:Ee,setup(e){const{wrapperRef:n}=Me(se.tableKey,{});return{printTableClick:()=>{const{printTableOptions:{printOptions:o={},domToImageOptions:a}={},title:l}=e;(o.documentTitle===""||o.documentTitle===void 0||o.documentTitle===null)&&(o.documentTitle=typeof l=="string"?l:""),An(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(x,{name:"print",size:se.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),vr=R({name:"TablePropsSelect",props:{...Ee,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=E(!1),t=E([]),o=l=>{const{onPopselectChange:s}=e;s&&F(s,l)};return(()=>{const{striped:l,bordered:s,onInitialed:i}=e;l&&t.value.push("striped"),s&&t.value.push("bordered"),i&&F(i,t.value)})(),{propsPopselectValue:t,popoverShow:n,updatePopselectValue:o}},render(){return r(pn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:dr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(x,{name:"expanded",size:se.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function yr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const br=R({name:"RTable",inheritAttrs:!1,props:Ee,setup(e,n){const{expose:t,emit:o}=n,a=ue("rTableInst"),l=ue("wrapperRef"),s=nt(16),i=nt(16),u=le({x:0,y:0,showContextMenu:!1}),c=le({size:e.size}),p=E(Object.assign({striped:!1,bordered:!1},Fe(e,"striped","bordered"))),g=(d,y)=>{const{onContextMenuClick:T}=e;T&&F(T,d,y),u.showContextMenu=!1},v=(d,y)=>{var C;return{...(C=e.rowProps)==null?void 0:C.call(e,d,y),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),u.showContextMenu=!1,te().then(()=>{u.showContextMenu=!0,u.x=b.clientX,u.y=b.clientY})}}},f=d=>{c.size=d},m=d=>{const{onUpdateColumns:y,"onUpdate:columns":T}=e;y&&F(y,d),T&&F(T,d)},_=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(y=>typeof y=="function"?y():y)},h=d=>{Object.keys(p.value).forEach(T=>{p.value[T]=d.includes(T)})},S=d=>{const{tool:y}=d;if(!y)return;const T=()=>r(L,{align:"center"},{default:()=>[r(hr,d,null),r(pr,N(d,{onChangeSize:f.bind(this)}),null),r(mr,null,null),r(gr,N(d,{onUpdateColumn:m.bind(this)}),null),r(vr,N(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let C;return r(L,{align:"center"},yr(C=_())?C:{default:()=>[C]})}:()=>r(L,{align:"center"},{default:()=>[T(),_()]}):T};return xe(()=>{const{onRegister:d}=e;d&&a.value&&F(d,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Sn(se.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:v,contextMenuSelect:g,privateReactive:c,tool:S,wrapperRef:l,propsPopselectValue:p}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i}=this,{class:u,...c}=n,{tool:p,combineRowProps:g,contextMenuSelect:v}=this,{renderWrapperHeader:f,wrapperBordered:m,disabledContextMenu:_,contextMenuOptions:h,title:S,tableFlexHeight:d,cardProps:y,...T}=e;return r(lt,N(y,{id:l},c,{ref:"wrapperRef",bordered:m,class:u}),{default:()=>r(wn,null,[r(vo,N({id:o},T,i,{rowProps:g.bind(this),size:s.size,ref:"rTableInst",style:{height:d!=null?V(d):null}}),{...t}),_?null:r(Ae,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:h,onClickoutside:()=>a.showContextMenu=!1,onSelect:v.bind(this)},null)]),header:f?be(S,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":p(e),footer:()=>{var C;return(C=t.tableFooter)==null?void 0:C.call(t)},action:()=>{var C;return(C=t.tableAction)==null?void 0:C.call(t)}})}}),_r=()=>{const e=E();let n={};const t=(f,m)=>{f&&(e.value=f,n=m)},o=()=>{if(!e.value)throw new Error("[useTable]: table instance is not ready yet. if you are using useTable, please make sure you have called register method in onRegister event.");return e.value};return[t,{getTableInstance:o,clearFilters:()=>o().clearFilters.call(null),clearSorter:()=>o().clearSorter.call(null),downloadCsv:f=>o().downloadCsv.call(null,f),filters:f=>o().filters.call(null,f),page:f=>o().page.call(null,f),scrollTo:f=>o().scrollTo(f),sort:(f,m)=>o().sort.call(null,f,m),print:f=>{const{uuidWrapper:m}=n;if(m){const _=document.getElementById(m);An(_,f)}},filter:f=>o().filter.call(null,f)}]},Fn=(e,n,t)=>{var o;if(e.length)for(const a of e){if(a[n]===t)return a;if((o=a==null?void 0:a.children)!=null&&o.length){const l=Fn(a.children,n,t);if(l)return l}}},en=e=>{const n=ee(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},Sr=(e,n,t,o)=>{const a=ee(e);return a?n.reduce((l,s)=>{const i=ee(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(ee(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},_i=(e,n,t)=>{const o=E([]),a=E([]),{rowKey:l="key",onChange:s}=t||{},i=w(()=>en(n)),u=(m,_,h)=>{o.value=m,a.value=ee(Sr(e,m,a,l)),s==null||s(m,a.value,h),en(n)},c=()=>o.value,p=()=>a.value,g=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},v=m=>{if(m==null)return;let _;o.value=o.value.filter(h=>h!==m),a.value=a.value.filter(h=>h[l]===m?(_=h,!1):!0),s==null||s(o.value,a.value,{row:_,action:"uncheck"})},f=m=>{if(o.value.includes(m))return;const _=!i.value&&o.value.length>=1,h=Fn(ee(e)||[],l,m);_?o.value=[m]:o.value.push(m),h&&(_?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return zt(()=>{g()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:p,clearAll:g,clearKey:v,selectKey:f}]},wr={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Cr=R({name:"RTransitionComponent",__name:"index",props:Uo({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},wr),setup(e){const{getKeepAliveInclude:n}=Vr(),{getKeepAliveConfig:t}=G();return(o,a)=>{const l=Ko("RouterView");return we(),$o("div",null,[r(l,null,{default:gt(({Component:s,route:i})=>[s?(we(),Ie(Fa,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:gt(()=>[(we(),Ie(Wo,null,{default:gt(()=>[ee(t).setupKeepAlive?(we(),Ie(qo,{key:0,max:ee(t).maxKeepAliveLength,include:ee(n),exclude:ee(t).keepAliveExclude},[(we(),Ie(qt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(we(),Ie(qt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Go("",!0)]),_:1})])}}}),Tr=R({name:"RForm",props:En,setup(e,{expose:n}){const t=ue("formRef");return xe(()=>{const{onRegister:o}=e;o&&t.value&&F(o,t.value)}),n(),{formRef:t}},render(){const{$attrs:e,$props:n,$slots:t}=this;return r(ie,N(e,n,{ref:"formRef"}),{...t})}}),Si=(e,n)=>{const t=E(),o=c=>{c&&(t.value=c)},a=()=>{if(!t.value)throw new Error("[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.");return t.value};return[o,{getFormInstance:a,validate:(c,p)=>a().validate.call(null,c,p),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>Ze(e)||{},formRules:()=>Ze(n)||{}}]},kr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],Or={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Ar=Ve({...yo,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...kr);function Rr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ot=e=>{const{icon:n,label:t}=e;return n?r(L,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=be(n))==null?void 0:o(),r("div",null,[t])]}}):t},Pr=e=>{if(typeof e.popover=="string")return r(Be,null,{trigger:()=>Ot(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(Be,o,{trigger:()=>Ot(e),default:()=>t})}},xr=R({name:"RSegment",props:Ar,setup(e,{expose:n}){const t=w(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?V(o):"fit-content"}return{"--r-segment-width":a}});return n(),{cssVars:t}},render(){let e;const{$props:n,options:t,cssVars:o,themeOverrides:a}=this;return r(mn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},Or,a)}),Rr(e=t.map(l=>r(bo,{key:l.key,name:l.key,tab:l.popover?Pr(l):Ot(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),Mr={width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:"canvas",validator:e=>["canvas","svg"].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>"CODE128"},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]}},wi=R({name:"RBarcode",props:Mr,setup(e){const n=ue("barcodeRef"),t=w(()=>({"--r-barcode-width":V(e.width),"--r-barcode-height":V(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});Yo(n.value,s!=null?s.toString():"",c),u&&F(u,s,l,i)}catch(l){const{onError:s}=e;s&&F(s,l)}finally{const{onFinally:l}=e;l&&F(l)}};return ce(()=>{e.watchText?o=Pe(()=>e.text,a):o==null||o()}),xe(()=>{a()}),Mt(()=>{o==null||o()}),{barcodeRef:n,cssVars:t}},render(){const{barcodeRender:e,loading:n,cssVars:t}=this,o=["r-barcode",{"r-barcode--loading":n}];return r(rt,{class:"r-barcode-spin",show:n},{default:()=>[e==="canvas"?r("canvas",{class:o,style:t,ref:"barcodeRef"},null):r("svg",{class:o,style:t,ref:"barcodeRef"},null)]})}}),Er={...Ve(Ee,["pagination"]),paginationCount:{type:Number,default:1},onRegister:{type:Function,default:void 0},manual:{type:Boolean,default:!1},request:{type:Function},onTablePaginationUpdate:{type:Function},requestConfig:{type:Object,default:()=>({})},showPagination:{type:Boolean,default:!1},remote:{type:Boolean,default:!0}};function Dr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ci=R({name:"RTablePro",props:Er,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:p}]=_r(),[g,{getPage:v,getPageSize:f,setCallback:m,setItemCount:_,resetPagination:h,getItemCount:S}]=xs(void 0,{prefix:P=>`共 ${P.itemCount} 条`}),d=w(()=>e.request),y=()=>({getItemCount:S,getPage:v,getPageSize:f}),T=()=>{const{onTablePaginationUpdate:P}=e;P&&F(P,y())},C=P=>{const k=Object.assign({},e.requestConfig,P),{params:O,formatRangeTime:B}=k;return B!=null&&B.length&&O&&B.forEach(W=>{const{key:ne,target:X}=W,he=O[ne];if(he&&(X!=null&&X.length)){const[oe,dt]=he;O[X[0]]=oe,O[X[1]]=dt}else O[ne]=null,O[X[0]]=null,O[X[1]]=null}),Object.assign({},O,{page:v(),pageSize:f()})},b=P=>{var O;h();const k=C(P);(O=d.value)==null||O.call(d,k)},M=P=>{var O;const k=C(P);(O=d.value)==null||O.call(d,k)};return ce(()=>{_(e.paginationCount),m(()=>{const{manual:P}=e;P||M(),T()})}),xe(()=>{const{onRegister:P}=e;P&&F(P,{getTablePagination:y,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:p,getCurrentTableRequestParams:C})}),{register:n,paginationRef:g}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(br,N(s,{onRegister:e,pagination:l?t:void 0}),Dr(o)?o:{default:()=>[o]})}}),Ti=()=>{const e=E(),n=m=>{m&&(e.value=m)},t=()=>{if(!e.value)throw new Error("[useTablePro]: table instance is not ready yet. if you are using useTablePro, please make sure you have called register method in onRegister event.");return e.value};return[n,{clearFilters:()=>t().clearFilters.call(null),getTableProInstance:t,clearSorter:()=>t().clearSorter.call(null),downloadCsv:m=>t().downloadCsv.call(null,m),filters:m=>t().filters.call(null,m),page:m=>t().page.call(null,m),scrollTo:m=>t().scrollTo(m),sort:(m,_)=>t().sort.call(null,m,_),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:m=>t().runTableRequest.call(null,m),print:m=>t().print.call(null,m),getCurrentTableRequestParams:m=>t().getCurrentTableRequestParams.call(null,m)}]},zr=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Ir={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},data:{type:Object,default:void 0},options:{type:Object,default:zr()},onRegister:{type:[Function,Array],default:void 0}};let tn=!1;const ki=R({name:"RFlow",props:Ir,setup(e){const n=ue("flowDomRef"),t=w(()=>{const{width:g,height:v}=e;return{"--r-flow-width":V(g),"--r-flow-height":V(v)}}),o=_n(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var g;tn||((g=e.use)==null||g.filter(Boolean).forEach(v=>Gt.use(v)),tn=!0)},c=g=>{if(!o.value)return;const v=Object.entries(a).reduce((f,[m])=>(f[m]=!g,f),{});Object.assign(a,v,{isSilentMode:g}),o.value.updateEditConfig(a)},p=g=>{if(u(),!n.value)return;const{options:v,readonly:f}=e;o.value=new Gt({container:ee(n.value),...Ve(v,"container")}),o.value.render(g||s),c(f)};return ce(()=>{e.watchData?l=Pe(()=>e.data,g=>{o.value?g&&o.value.renderRawData(g):p(g)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),xe(()=>{p();const{onRegister:g}=e;g&&o.value&&F(g,o.value)}),{flowDomRef:n,cssVars:t}},render(){const{cssVars:e}=this;return r("div",{class:"r-flow",style:[e],ref:"flowDomRef"},null)}}),Oi=()=>{let e;return[o=>{o&&(e=o)},{getFlowInstance:()=>{if(!e)throw new Error("[useFlow]: flow instance is not ready yet. if you are using useFlow, please make sure you have called register method in onRegister event.");return e}}]},Lr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Bn=(e,n,t)=>{const o=[];if(Lr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=Bn(a,n,t);l.length>0&&o.push(e,...l)}return o},Fr=(e,n,t)=>{const o=[];for(const a of e){const l=Bn(a,n,t);l.length>0&&o.push(...l)}return o},nn=e=>{const{dynamicDocumentTitle:n}=Re();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Re(),a=o?o.title:"";document.title=t+" - "+a},Br=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Re(),{collapsed:o}=Lt(),a=st(x,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},jn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=Ne(),{label:a,icon:l,type:s,i18nLabel:i}=n,u={type:"primary",size:"small",round:!0,bordered:!1,strong:!0},c=()=>i?o(i):a||null,p=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>st(_o,{...u,type:s||"primary",style:p()},{default:()=>c(),icon:()=>l})},on=()=>{const{getRootPath:e}=ze();return et(Z.appMenuKey,"sessionStorage",{defaultValue:e.value})},Vn=()=>Hl(Wl()),jr=()=>Gl(Vn()),At=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ge;const Nn=(e,n)=>{var t;if(Ge&&Ht(Ge.fullPath,n))return Ge;for(const o of e){if(Ht(o.fullPath,n))return Ge=o,o;if((t=o.children)!=null&&t.length){Nn(o.children,n);continue}}},Lt=it("menu",()=>{const{push:e,getRoutes:n}=ut(),t=pa(),{t:o}=Ne(),{setKeepAliveInclude:a}=Nr(),l=le({menuKey:on(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=E(!0),i=(d,y,T)=>{Et(l,d,y,T)},u=d=>{const{meta:y}=d,{i18nKey:T,noLocalTitle:C}=y,b=w(()=>T?o(`${T}`):C),M={...d,key:d.fullPath,label:()=>st(fn,null,{default:()=>b.value}),breadcrumbLabel:b.value},P=Object.assign({},M,{icon:Br(d),extra:jn(d)});return d.fullPath===on()&&(l.currentMenuOption=P),P.show=Mn(P),P},c=d=>{l.breadcrumbOptions=Fr(l.options,"fullPath",d)},p=(d,y=!0)=>{const C=Array.isArray(d)?[...d]:[d];y?l.menuTagOptions.push(...C):l.menuTagOptions=C},g=(d,y)=>{l.menuTagOptions.find(C=>C.fullPath===d)||l.menuTagOptions.push(y)},v=(d,y,T)=>{const{meta:C}=y;if(C.windowOpen)window.open(C.windowOpen);else{e({path:String(d),query:T});const{sameLevel:b}=C;if(a(y),nn(y),!b)g(d,y),c(d),l.menuKey=d,l.currentMenuOption=y,Dt(Z.appMenuKey,d);else{const M=Fe(u(y),At);l.breadcrumbOptions.find(k=>k.key===M.key)||l.breadcrumbOptions.push({...M,fullPath:String(M.key)})}}},f=async(d,y)=>{const[T]=d.split("?"),C=n().find(b=>b.path===T);if(!((C==null?void 0:C.path)==="/"||!(C!=null&&C.path)||(C==null?void 0:C.path)==="/login")&&C){const b=Fe(C,At);v(T,u({...b,fullPath:b.path}),y)}},m=()=>new Promise(d=>{const y=(C,b)=>{var P;const M=[];for(const k of C){let O=`${b.endsWith("/")?b:b+"/"}${k.path}`;if(O=O.replace(/\/+/g,"/"),(P=k.children)!=null&&P.length)k.children=y(k.children,O);else if(!qn(k.meta))continue;M.push(u({...k,fullPath:O}))}return M};l.options=y(Vn(),"");const T=l.currentMenuOption||$r(l.options);T&&(l.breadcrumbOptions.length||c(T.key),g(T.fullPath,T),nn(T)),d()}),_=d=>l.collapsed=d,h=(d,y=1)=>l.menuTagOptions.splice(d,y),S=async()=>{s.value&&(await m(),s.value=!1)};return Pe(()=>t.fullPath,async(d,y)=>{await S(),d!==y&&await f(d,t.query)},{immediate:!0}),{..._e(l),changeMenuModelValue:v,collapsedMenu:_,spliceMenTagOptions:h,setMenuTagOptions:p,resolveOption:u,updateMenuState:i,setupAppMenu:m}},{persist:{key:Z.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Un=it("signing",()=>{const e=le({signingCallback:{}}),n=a=>new Promise((l,s)=>{cn(a)?s({code:1,message:"登陆失败",data:null}):(e.signingCallback={role:"admin",name:a.name,avatar:"https://avatars.githubusercontent.com/u/51957438?v=4"},l({code:0,message:"登陆成功",data:e.signingCallback}))}),t=a=>{const{closeAll:l}=Jn(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:c,appMenuKey:p}=Z;window.$message.info("账号退出中..."),Ce("__all_sessionStorage__","sessionStorage"),Ce(i,"localStorage"),Ce(s,"localStorage"),Ce(u,"localStorage"),Ce(c,"localStorage"),Ce(p,"localStorage"),l(),a&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{..._e(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:Z.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),$n=it("keepAlive",()=>{const e=le({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Re().keepAliveConfig;if(i){if(l<u&&!e.keepAliveInclude.includes(s)){e.keepAliveInclude.push(s);return}l>=u&&(e.keepAliveInclude.splice(0,1),e.keepAliveInclude.push(s))}},o=()=>e.keepAliveInclude;return{..._e(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:Z.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Se=()=>{const e=Lt(),n=w(()=>e.options),t=w(()=>e.breadcrumbOptions),o=w(()=>e.menuKey),a=w(()=>{const{getRootPath:i}=ze();return e.menuTagOptions.map((u,c,p)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),p.length<=1&&(u.closeable=!1),u))}),l=w(()=>e.currentMenuOption),s=w(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},De=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=Lt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},G=()=>{const e=Re(),n=w(()=>e.drawerPlacement),t=w(()=>e.primaryColorOverride),o=w(()=>e._appTheme),a=w(()=>e.appTheme),l=w(()=>e.menuTagSwitch),s=w(()=>e.breadcrumbSwitch),i=w(()=>e.localeLanguage),u=w(()=>e.lockScreenSwitch),c=w(()=>e.copyrightSwitch),p=w(()=>e.contentTransition),g=w(()=>e.watermarkSwitch),v=w(()=>e.watermarkConfig),f=w(()=>e.appRootRoute),m=w(()=>e.sideBarLogo),_=w(()=>e.keepAliveConfig),h=w(()=>e.menuConfig),S=w(()=>e.colorWeakness),d=w(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:p,getWatermarkSwitch:g,getWatermarkConfig:v,getAppRootRoute:f,getSideBarLogo:m,getKeepAliveConfig:_,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:S,getDynamicDocumentTitle:d}},U=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Re();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Kn=()=>{const e=Un();return{getSigningCallback:w(()=>e.signingCallback)}},Wn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Un();return{signing:e,logout:n,clearSigningCallback:t}},Vr=()=>{const e=$n();return{getKeepAliveInclude:w(()=>e.keepAliveInclude)}},Nr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=$n();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ai=e=>{const n=la();e.use(n),n.use(aa)},qn=e=>{const{getSigningCallback:n}=Kn(),{role:t}=e;return qe!=null&&qe.length&&qe.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},Ur=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Ya;n&&Jl(e),t&&Yl(e)},$r=e=>{if(!Array.isArray(e))return;const n=t=>{for(const o of t){if((!o.children||o.children.length===0)&&!o.meta.windowOpen)return o;{const a=n(o.children||[]);if(a)return a}}};return n(e)},Kr=E(),Wr=R({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=ut(),{getSideBarLogo:n}=G();return{sideBarLogo:n,sideBarLogoClick:()=>{n.value&&n.value.url&&(n.value.jumpType==="station"?e.push(n.value.url):window.open(n.value.url))},TemplateLogo:({cursor:a})=>{if(!n.value)return null;if(typeof n.value.icon=="string")return r(x,{name:n.value.icon,size:"30",cursor:a},null);if(fe(n.value.icon,"Object"))return be(n.value.icon)}}},render(){const{sideBarLogo:e,collapsed:n,TemplateLogo:t,sideBarLogoClick:o}=this;return e!=null&&e.title?r("div",{class:["ray-menu__logo",e!=null&&e.url?"ray-menu__logo-url":null],onClick:o.bind(this),ref:Kr},[e!=null&&e.icon?n?r(Qe,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(Qe,{placement:"right"},{trigger:()=>r($t,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r($t,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(fn,null,{default:()=>[e.title]})]})]):null}}),qr=R({name:"AppMenu",setup(){const e=E(null),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=De(),{getMenuConfig:a}=G(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Se(),u=w({get:()=>(setTimeout(()=>{g()},300),i.value),set:()=>{c.value&&me("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=$e({observer:f=>{f&&o("collapsed",!1)}}),p=w({get:()=>ct("globalDrawerValue").value,set:f=>{me("globalDrawerValue",f)}}),g=()=>{const f=u.value;f!=null&&te(()=>{var m,_;return(_=(m=e.value)==null?void 0:m.showOption)==null?void 0:_.call(m,f)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(wo,{class:"app-menu__sider",showTrigger:!c.value,collapseMode:a.value.collapsedMode,collapsedWidth:a.value.collapsedWidth,onUpdateCollapsed:t.bind(this),width:a.value.menuWidth,nativeScrollbar:a.value.nativeScrollbar,ref:Pn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(Wr,{collapsed:s.value},null):null,r(So,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":f=>u.value=f,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(f,m)=>{n(f,m)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:p}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(gn,{class:"app-menu__drawer",show:this.modelGlobalDrawerValue,"onUpdate:show":t=>this.modelGlobalDrawerValue=t,placement:"left",displayDirective:"show",autoFocus:!1},{default:()=>[r(n,null,null)]}):r(n,null,null)}});class Gr{constructor(){Vt(this,"pendingRequest");this.pendingRequest=new Map}isAppending(n){var t;return((t=n.cancelConfig)==null?void 0:t.cancel)??!0}generateRequestKey(n){const{method:t,url:o}=n;return[o||"",t||"",JSON.stringify(n.params),JSON.stringify(n.data)].join("&")}addPendingRequest(n){var t;if(this.isAppending(n)){n.__CANCELER_TAG_RAY_TEMPLATE__="__CANCELER_TAG_RAY_TEMPLATE__";const o=this.generateRequestKey(n);if(this.pendingRequest.has(o))n.signal=(t=this.pendingRequest.get(o))==null?void 0:t.signal;else{const a=new AbortController;n.signal=a.signal,this.pendingRequest.set(o,a)}}}removePendingRequest(n){const t=this.generateRequestKey(n);this.pendingRequest.has(t)&&(this.pendingRequest.get(t).abort(),this.pendingRequest.delete(t))}cancelAllRequest(){this.pendingRequest.forEach(n=>{n.abort()})}}const yt={requestInstance:null,responseInstance:null},bt={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},He={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Hr=new Gr,Ri=()=>{const e=(i,u)=>{u==="requestInstance"?yt.requestInstance=i:yt.responseInstance=i},n=i=>yt[i],t=(i,u,c)=>{c==="ok"?bt[i]=u:He[i]=u},o=(i,u)=>u==="ok"?bt[i]:He[i],a=(i,...u)=>{Array.isArray(i)&&i.forEach(c=>{typeof c=="function"&&c(...u)})};return{createAxiosInstance:e,setImplement:t,getImplement:o,getAxiosInstance:n,beforeFetch:(i,u,c)=>{const p=c==="ok"?bt[u]:He[u],g=n(i),{MODE:v}=Tt();g&&a(p,g,v)},fetchError:(i,u,c)=>{const p=He[c],{MODE:g}=Tt();a(p,u,g)}}},Yr=R({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ma(()=>{Hr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Gn=R({name:"LayoutContentWrapper",setup(){ut();const{maximize:e}=Xn(),{getContentTransition:n}=G(),t=E(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=Ja();return{globalMainLayoutLoad:a,spinning:t,themeOverridesSpin:o,getContentTransition:n,layoutContentMaximize:l,maximize:e,layoutContentSpinning:s}},render(){const{globalMainLayoutLoad:e,layoutContentMaximize:n,layoutContentSpinning:t,maximize:o,spinning:a,themeOverridesSpin:l,getContentTransition:s}=this;return r(rt,{show:a||!e||t,description:"loading...",size:"large",themeOverrides:l,class:[n?"r-layout-full__viewer-content--maximize":null]},{default:()=>[n?r("div",{class:"layout-content__maximize-out",onClick:()=>{o(!1)}},[r(x,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Yr,null,null),e?r(Cr,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));var Jr={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^11.1.0",axios:"^1.7.5",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.10",echarts:"^5.5.0","html-to-image":"1.11.11",interactjs:"1.10.26",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.1",pinia:"^2.2.4","pinia-plugin-persistedstate":"^4.1.1","print-js":"^1.6.0",vue:"^3.5.12","vue-demi":"0.14.6","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.3.2","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^17.8.1","@commitlint/config-conventional":"^17.8.1","@interactjs/types":"1.10.21","@intlify/unplugin-vue-i18n":"^4.0.0","@types/crypto-js":"^4.2.2","@types/jsbarcode":"3.11.4","@types/lodash-es":"^4.17.12","@types/mockjs":"1.0.7","@typescript-eslint/eslint-plugin":"^8.13.0","@typescript-eslint/parser":"^8.13.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.0.1","@vitest/ui":"1.4.0","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"2.4.3",autoprefixer:"^10.4.16",depcheck:"^1.4.7",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-standard-with-typescript":"^43.0.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.25.0","happy-dom":"14.3.1",husky:"8.0.3","lint-staged":"^15.2.0",postcss:"^8.4.38","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.2.5","rollup-plugin-gzip":"4.0.1",sass:"1.71.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^5.4.3","vite-bundle-analyzer":"0.9.4","vite-plugin-cdn2":"1.1.0","vite-plugin-ejs":"^1.7.0","vite-plugin-eslint":"1.8.1","vite-plugin-inspect":"^0.8.3","vite-plugin-mock-dev-server":"1.4.7","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^4.0.0","vite-tsconfig-paths":"4.3.2",vitest:"1.5.2","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.5"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.3)"}};const Zr=R({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=Jr;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),Qr=R({name:"TooltipIcon",props:{...Co,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["click"],setup(e,{emit:n}){const t=a=>{n("click",a)};return{iconClick:t,Icon:()=>r(x,{name:e.iconName,size:"18",customClassName:`tooltip-text__icon ${e.customClassName}`,cursor:"pointer",onClick:t.bind(this)},null)}},render(){const{Icon:e}=this;return this.tooltipText?r(Qe,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),es=R({name:"ThemeSegment",setup(){const{system:e}=yn(),{getAppThemeStr:n,getAppTheme:t}=G(),{updateSettingState:o}=U(),a=[{label:"深色",key:"dark",icon:()=>r(x,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(x,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(x,{name:"system_os",size:"16"},null)}],l=w({get:()=>n.value==="auto"?"auto":t.value?"dark":"light",set:i=>{s(i,e.value)}}),s=(i,u)=>{if(i==="auto"){o("_appTheme",u==="dark"),o("appTheme","auto");return}o("_appTheme",i==="dark"),o("appTheme",i)};return ce(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(xr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),ts={contentTransition:"scale",watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:"width",collapsedIconSize:16,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:16,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:"right",colorWeakness:!1,watermarkConfig:{content:"Trying be better~",fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},ns=()=>ts,Ue=Symbol("segmentDrawer"),os=R({name:"SegmentViewsAppearance",setup(){const e=Me(Ue,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=U();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("系统主题")]}),r(es,null,null),r(ae,null,{default:()=>[$("内置主题")]}),r(To,{showPreview:!0,swatches:re.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(ae,null,{default:()=>[$("切换动画")]}),r(Kt,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Ka,onUpdateValue:a=>{o("contentTransition",a)}},null),r(ae,null,{default:()=>[$("配置入口出现位置")]}),r(Kt,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(ae,null,{default:()=>[$("其他设置")]}),r(ie,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"面包屑"},{default:()=>[r(Q,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(z,{label:"标签页"},{default:()=>[r(Q,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(z,{label:"页底信息"},{default:()=>[r(Q,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(z,{label:"色弱模式"},{default:()=>[r(Q,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),as=R({name:"SegmentViewsCommon",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("基础设置")]}),r(ie,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(z,{label:"页面缓存"},{default:()=>[r(Q,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(z,{label:"动态浏览器标题"},{default:()=>[r(Q,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(ae,null,{default:()=>[$("缓存设置")]}),r(ie,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(z,{label:"最大缓存数",feedback:w(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时,缓存将会失效":"").value},{default:()=>[r(q,{disabled:!e.keepAliveConfig.setupKeepAlive,value:e.keepAliveConfig.maxKeepAliveLength,"onUpdate:value":t=>e.keepAliveConfig.maxKeepAliveLength=t,min:0,precision:0,showButton:!1,onUpdateValue:t=>n("keepAliveConfig",{maxKeepAliveLength:t})},null)]}),r(z,{label:"排除缓存"},{default:()=>[r(ko,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ls=R({name:"SegmentViewsWatermark",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,null,{default:()=>[$("基础设置")]}),r(ie,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"全屏水印"},{default:()=>[r(Q,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(z,{label:"跨边界显示"},{default:()=>[r(Q,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(ae,null,{default:()=>[$("个性化水印")]}),r(ie,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"水印内容"},{default:()=>[r(xt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(z,{label:"字体尺寸"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(z,{label:"字体行高"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(z,{label:"字体宽度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(z,{label:"字体高度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(z,{label:"x轴偏移"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(z,{label:"x轴间隙"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(z,{label:"y轴偏移"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(z,{label:"y轴间隙"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(z,{label:"旋转角度"},{default:()=>[r(q,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),rs=R({name:"SegmentViewsCustomMenu",setup(){const e=Me(Ue,{}),{updateSettingState:n}=U();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(L,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(ae,{titlePlacement:"center"},{default:()=>[r(L,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(Qe,{placement:"top",showArrow:!1},{trigger:()=>r(x,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(hn,null,{default:()=>[$("菜单样式")]})]})]}),r(ie,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(z,{label:"每级菜单缩进"},{default:()=>[r(q,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(z,{label:"菜单图标尺寸"},{default:()=>[r(q,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(z,{label:"折叠菜单图标尺寸"},{default:()=>[r(q,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(z,{label:"菜单宽度"},{default:()=>[r(q,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(z,{label:"折叠菜单宽度"},{default:()=>[r(q,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(z,{showFeedback:!1,showLabel:!1},{default:()=>[r(Y,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[$("更新菜单")]})]})]}),r(ae,null,{default:()=>[$("其他设置")]}),r(ie,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(z,{label:"反转色菜单"},{default:()=>[r(Q,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(z,{label:"菜单标题"},{default:()=>[r(Q,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(z,{label:"手风琴菜单"},{default:()=>[r(Q,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(z,{label:"原生滚动条"},{default:()=>[r(Q,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),ss=R({name:"SettingDrawer",props:Oo,setup(){const{create:e}=ir(),{changePrimaryColor:n,updateSettingState:t}=U(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:p,getMenuConfig:g,getDrawerPlacement:v,getColorWeakness:f,getWatermarkConfig:m,getDynamicDocumentTitle:_}=G(),{setupAppMenu:h}=De(),S=Rt(h,300),d=le({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:p.value,menuConfig:g.value,drawerPlacement:v.value,colorWeakness:f.value,primaryColorOverride:a.value,watermarkConfig:m.value,dynamicDocumentTitle:_.value,throttleSetupAppMenu:S}),y=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{ro(ns(),(T,C)=>{d[C]=T,t(C,T)}),S()}})};return Sn(Ue,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:y}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(gn,N(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Ao,{title:"个性化配置",closable:!0},{default:()=>r(mn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(We,{name:"appearance",tab:"外观"},{default:()=>[r(os,null,null)]}),r(We,{name:"menu",tab:"菜单"},{default:()=>[r(rs,null,null)]}),r(We,{name:"watermark",tab:"水印"},{default:()=>[r(ls,null,null)]}),r(We,{name:"common",tab:"通用"},{default:()=>[r(as,null,null)]})]}),footer:()=>r(L,{justify:"flex-start"},{default:()=>[r(Y,{type:"warning",onClick:e},{icon:()=>r(x,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function is(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const us=R({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=De(),{getBreadcrumbOptions:n}=Se(),{isTabletOrSmaller:t}=$e();return{getBreadcrumbOptions:n,dropdownSelect:(l,s)=>{e(l,s)},breadcrumbItemClick:l=>{var s;if(!((s=l.children)!=null&&s.length)){const{meta:i={}}=l;i.sameLevel||e(l.fullPath,l)}},isTabletOrSmaller:t}},render(){let e;const{isTabletOrSmaller:n,getBreadcrumbOptions:t}=this,{dropdownSelect:o,breadcrumbItemClick:a}=this;return n?r("div",{style:"display: none;"},null):r(Po,null,{default:()=>[r(Ba,{tag:"li",name:"breadcrumb",appear:!0},is(e=t.map(l=>r(Ro,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(Ae,{labelField:"breadcrumbLabel",keyField:"fullPath",options:l.children&&((s=l.children)==null?void 0:s.length)>1?l.children:[],onSelect:o.bind(this)},{default:()=>r("span",null,[l.label&&typeof l.label=="function"?l.label():l.breadcrumbLabel])})]}})))?e:{default:()=>[e]})]})}});function _t(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const cs=R({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=De(),{getRoutes:a}=ut(),l=w({get:()=>e.show,set:b=>{n("update:show",b),b||f()}}),s=le({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:p}=$e(),g=E(!1),v="content-item--active",f=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},m=b=>{l.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),f(),l.value=!0)},_=b=>{if(b)g.value=!0;else{g.value=!1,s.searchOptions=[];return}const M=a().reduce((P,k)=>{var W;const O=Fe(k,["children","meta","path","name"]),B=o({...O,fullPath:k.path}),{breadcrumbLabel:H}=B;return(W=H==null?void 0:H.toLocaleLowerCase())!=null&&W.includes(b.toLocaleLowerCase())&&Mn(B)&&P.push(B),P},[]);setTimeout(()=>{s.searchOptions=M,te().then(()=>{S()}),g.value=!1},300)},h=b=>{if(b){const{meta:M}=b;M.windowOpen?window.open(M.windowOpen):(l.value=!1,t(b.fullPath,b),setTimeout(Qo,300))}},S=()=>{const b=s.searchOptions[u],M=s.searchOptions[c];b&&te().then(()=>{const P=ot(`attr:data_path="${b.path}"`),k=M?ot(`attr:data_path="${M==null?void 0:M.path}"`):null;if(k!=null&&k.length){const[O]=k;ea(O,v)}if(P!=null&&P.length){const[O]=P;On(O,v)}})},d=b=>{const{icon:M}=b;return typeof M=="string"&&M?r(x,{name:M,size:"24"},null):typeof M=="function"?r(M,null,null):r(x,{name:"search",size:"24"},null)},y=b=>{b==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),b==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},T=b=>{const M=b.key;switch((M==="ArrowUp"||M==="ArrowDown"||M==="Enter")&&(b.preventDefault(),b.stopPropagation()),c=u<=0?0:u,M){case"ArrowUp":y("up");break;case"ArrowDown":y("down");break;case"Enter":const P=s.searchOptions[u];P&&h(P);break}S()},C=({menuOption:b})=>r(L,N({align:"center",class:"content-item"},{onClick:h.bind(this,b),data_path:b.path}),{default:()=>[r("div",{class:"content-item-icon"},[d(b.meta)]),r("div",{class:"content-item-label"},[b.breadcrumbLabel]),r(x,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ce(()=>{p.value&&(l.value=!1)}),je(window,"keydown",b=>{m(b),T(b)},!0),{..._e(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Rt(_,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:p,SearchItem:C,loading:g}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a}=this;return e?r("div",{style:"display: none;"},null):r(dn,{show:this.modelShow,"onUpdate:show":l=>this.modelShow=l,transformOrigin:"center",displayDirective:"if"},{default:()=>[r("div",{class:"global-search global-search--dark global-search--light"},[r("div",{class:"global-search__wrapper"},[r(lt,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(xt,{size:"large",value:this.searchValue,"onUpdate:value":l=>this.searchValue=l,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(x,{name:"search",size:"24"},null)}),default:()=>{let l;return r(Pt,null,{default:()=>[r(rt,{show:t},{default:()=>[n.length?r(L,{vertical:!0,size:[0,6],class:"global-search__card-content"},_t(l=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?l:{default:()=>[l]}):r(xo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(L,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(hn,null,{default:()=>[$("没有搜索结果")]})]})})]})]})},action:()=>{let l;return r(L,{justify:"flex-start",align:"center",size:[16,0]},_t(l=this.helperTipOptions.map(s=>r(L,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(L,{class:"item-icon",align:"center",justify:"center"},_t(i)?i:{default:()=>[i]})),r(L,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?l:{default:()=>[l]})}})])])]})}}),ds=R({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=ta();return o==="MacOS"?"⌘ + K":"CTRL + K"},click:o=>{const{onClick:a}=e;a&&F(a,o)}}},render(){const{getShortcutKeyAboutSystem:e,click:n,$t:t}=this;return r(Y,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(x,{name:"search",size:"16"},null),default:()=>r(L,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),Hn=R({name:"AppAvatar",props:{...Mo,cursor:{type:String,default:"auto"},spaceSize:{type:[String,Number,Array],default:"medium"},avatarSize:{type:[String,Number],default:"medium"},vertical:{type:Boolean,default:!1}},setup(){const{getSigningCallback:e}=Kn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(Y,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(L,{align:"center",size:t,vertical:a},{default:()=>[r(Eo,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),null),e==null?void 0:e.name]})]})}}),ps=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],ms={logout:()=>{const{logout:e}=Wn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=U();e("lockScreenSwitch",!0)}},fs=e=>{const n=ms[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},gs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},hs=e=>{const{isTabletOrSmaller:n}=e,t=[{name:"fullscreen",size:18,eventKey:"screen"},{name:"github",size:18,eventKey:"github"},{name:"setting",size:18,eventKey:"setting"}],o=[...t],a=[...t];return n.value?a:o},vs=R({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=U(),{t}=Ne(),[o,{toggleFullscreen:a,isEnabled:l}]=Cn(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=G(),u=E(!1),c=E(!1),{isTabletOrSmaller:p}=$e(),g=ct("globalDrawerValue"),v=w(()=>gs({isFullscreen:o,isTabletOrSmaller:p})),f=w(()=>hs({isFullscreen:o,isTabletOrSmaller:p})),m={search:()=>{c.value=!0},setting:()=>{u.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},fullscreen:()=>{l||window.$message.warning(t("globalMessage.isEnabledFullscreen")),a()},lock:()=>{n("lockScreenSwitch",!0)},menu:()=>{me("globalDrawerValue",!g.value)}};return{leftIconOptions:v,rightTooltipIconOptions:f,toolIconClick:S=>{var d;(d=m[S])==null||d.call(m)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:S=>p.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(vn,{class:"layout-header"},{default:()=>[r(cs,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(L,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(L,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(Qr,{key:i.name,iconName:i.name,tooltipText:bn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(us,null,null):null]}),r(L,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ds,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(Y,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(x,{name:i.name,size:16,cursor:"pointer"},null)]})),r(Ae,{options:Rn,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(Y,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(x,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(Ae,{options:ps(),onSelect:fs.bind(this),trigger:"click"},{default:()=>[r(Hn,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(ss,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),ys=R({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(L,{size:[0,0]},{default:()=>[r(vs,null,null)]})}});function bs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const _s=R({name:"AppMenuTag",setup(e,{expose:n}){const t=ue("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Se(),{changeMenuModelValue:l}=De(),{getRootPath:s}=ze(),{maximize:i}=Xn(),{reload:u}=Ms(),{close:c,closeAll:p,closeRight:g,closeLeft:v,closeOther:f,checkCloseLeft:m,checkCloseRight:_}=Jn(),h=["closeAll","closeRight","closeLeft","closeOther"];let S=1/0;const d={size:16},y=E([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(x,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(x,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(x,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(x,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(x,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(x,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(x,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(x,{name:"resize_h",size:d.size},null),disabled:!1}]),T=nt(16),C={closeCurrentPage:()=>{o.value!==s.value&&c(S)},reloadCurrentPage:()=>{u()},closeAll:()=>{p()},closeRight:()=>{g(S)},closeLeft:()=>{v(S)},closeOther:()=>{f(S)},windowOpenTab:()=>{const A=a.value[S];if(!(A!=null&&A.fullPath))return;const D=A.fullPath.startsWith("#")?A.fullPath:`#${A.fullPath}`;window.open(D,"_blank")},maximizeLayoutContent:()=>{const A=a.value[S];i(!0),A&&ne(A)}},b=le({x:0,y:0,actionDropdownShow:!1}),M="menu_tag_data",P=ct("globalMainLayoutLoad"),k="n-scrollbar-container";let O=o.value;const B=E(!1),H=A=>{c(A)},W=(A,D)=>{for(const J of y.value)if(J.key===A){J.disabled=D;break}},ne=A=>{b.actionDropdownShow=!1,l(A.fullPath,A)},X=()=>{const A=document.getElementById(T);if(A)return Array.from(A.childNodes).find(Ke=>na(Ke,k).value)},he=A=>{var J;const D=X();if(D){const Ke=D.scrollLeft||0,jt=A==="left"?Math.max(0,Ke-200):Ke+200;(J=t.value)==null||J.scrollTo({left:jt,behavior:"smooth"})}},oe=A=>{b.actionDropdownShow=!1;const D=C[A];D==null||D()},dt=(A,D)=>{D.preventDefault(),S=A,b.actionDropdownShow=!1,te(()=>{b.x=D.clientX,b.y=D.clientY,b.actionDropdownShow=!0})},Bt=()=>{_(S)?W("closeRight",!1):W("closeRight",!0),m(S)?W("closeLeft",!1):W("closeLeft",!0)},Qn=()=>{S=a.value.findIndex(D=>D.fullPath===o.value),Bt()},eo=A=>{a.value.length>1&&A.fullPath!==s.value&&(A.closeable=!0),B.value=!0},to=A=>{A.fullPath!==o.value&&(A.closeable=!1),B.value=!1},no=()=>{X()&&te().then(()=>{var D;(D=t.value)==null||D.scrollTo({left:99999,behavior:"smooth"})})},pt=()=>{te().then(()=>{const A=ot(`attr:${M}="${o.value}"`);if(A!=null&&A.length){const[D]=A;te().then(()=>{var J;(J=t.value)==null||J.scrollTo({left:D.offsetLeft,behavior:"smooth"})})}})},oo=()=>{i(!0)};return Pe(()=>a.value,(A,D)=>{y.value.forEach(J=>{h.includes(J.key)&&(A.length>1?J.disabled=!1:J.disabled=!0)}),D!=null&&D.length&&(A.length>(D==null?void 0:D.length)?no():A.length===(D==null?void 0:D.length)&&pt()),D===void 0&&pt()},{immediate:!0}),ce(()=>{b.actionDropdownShow&&Bt(),O!==o.value&&(O=o.value,pt())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:H,getMenuKey:o,menuTagClick:ne,moreOptions:y,scrollX:he,scrollRef:t,uuidScrollBar:T,actionDropdownSelect:oe,actionState:b,menuTagContextMenu:dt,setCurrentContextmenuIndex:Qn,menuTagMouseenter:eo,menuTagMouseleave:to,MENU_TAG_DATA:M,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:P,maximizeBtnClick:oo,isMouseInMenuTag:B}},render(){let e;const{iconConfig:n,uuidScrollBar:t,getMenuTagOptions:o,MENU_TAG_DATA:a,globalMainLayoutLoad:l,isMouseInMenuTag:s}=this,{maximizeBtnClick:i,closeCurrentMenuTag:u,scrollX:c,$t:p,menuTagClick:g,menuTagContextMenu:v,menuTagMouseenter:f,menuTagMouseleave:m,actionDropdownSelect:_,reload:h}=this;return r(vn,null,{default:()=>[r("div",{class:"menu-tag"},[r(Ae,{class:"menu-tag__dropdown",options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:"manual",placement:"bottom-start",onSelect:_.bind(this),onClickoutside:()=>{s||(this.actionState.actionDropdownShow=!1)}},null),r(L,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Pt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(L,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},bs(e=o.map((S,d)=>r(Y,N({key:S.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:S.fullPath===this.getMenuKey?"primary":"default"},{onClick:g.bind(this,S),onContextmenu:v.bind(this,d),onMouseenter:f.bind(this,S),onMouseleave:m.bind(this,S),[a]:S.fullPath},{size:"small",focusable:!1}),{default:()=>r(wn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:y,meta:{i18nKey:T}}=S;return T?p(T):y}}),r(Do,N({class:"menu-tag__btn-icon"},{onMousedown:u.bind(this,d)}),{default:()=>[r(x,{name:"close",size:"14"},null)]})])})))?e:{default:()=>[e]})]}),r(L,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(x,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(x,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(x,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(Ln,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(Y,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(x,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Ss=R({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(_s,null,null)}}),ws={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},an=()=>({lockPassword:null}),ln=Bo(Z.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),Yn=()=>({setLockAppScreen:t=>{ln.value=t},getLockAppScreen:()=>ln.value}),Cs=R({name:"UnlockScreen",setup(){const e=E(null),n=E(null),{logout:t}=Wn(),{updateSettingState:o}=U(),{setLockAppScreen:a}=Yn(),{isTabletOrSmaller:l}=$e(),s="HH:mm",i="A",u="YY年MM月DD日",c="ddd",p=le({lockCondition:an(),HH_MM:K().format(s),AM_PM:K().locale("en").format(i),YY_MM_DD:K().format(u),DDD:K().format(c)}),g=setInterval(()=>{p.HH_MM=K().format(s),p.AM_PM=K().format(i)},6e3),v=setInterval(()=>{p.YY_MM_DD=K().format(u),p.DDD=K().format(c)},864e5),f=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{t(),setTimeout(()=>{o("lockScreenSwitch",!1)})}})},m=()=>{var _;(_=e.value)==null||_.validate(h=>{h||(a(!1),o("lockScreenSwitch",!1),p.lockCondition=an())})};return Mt(()=>{clearInterval(g),clearInterval(v)}),{..._e(p),backToSigning:f,unlockScreen:m,formRef:e,inputInstRef:n,isTabletOrSmaller:l}},render(){const{isTabletOrSmaller:e}=this,{HH_MM:n,AM_PM:t,YY_MM_DD:o,DDD:a}=this,l=n.split(":"),{unlockScreen:s,backToSigning:i}=this;return r("div",{class:"app-lock-screen__content app-lock-screen__content--full"},[r("div",{class:"app-lock-screen__unlock"},[r("div",{class:"app-lock-screen__unlock__content"},[r("div",{class:"app-lock-screen__unlock__content-wrapper"},[r("div",{class:["app-lock-screen__unlock__content-bg__wrapper","app-lock-screen__unlock__content-bg",e?"app-lock-screen__unlock__content-bg--smaller":""]},[r("div",{class:"left"},[l[0]]),r("div",{class:"right"},[l[1]])])]),r("div",{class:"app-lock-screen__unlock__content-avatar"},[r(Hn,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r(ie,{ref:"formRef",model:this.lockCondition,rules:ws},{default:()=>[r(z,{path:"lockPassword"},{default:()=>[r(xt,{ref:"inputInstRef",value:this.lockCondition.lockPassword,"onUpdate:value":u=>this.lockCondition.lockPassword=u,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,maxlength:12,onKeydown:u=>{u.code==="Enter"&&s()}},null)]}),r(L,{justify:"space-between"},{default:()=>[r(Y,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[$("返回登陆")]}),r(Y,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[$("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-date"},[n,$(" "),r("span",null,[t])]),r("div",{class:"current-year"},[o,$(" "),r("span",null,[a])])])])])])}}),Ts=e=>{const n=ft(e[0]),t=ft(e[1]),o=ft(e[2]);return w(()=>({"--window-width":"var(--html-width)","--window-height":"var(--html-height)","--layout-content-height":`calc(var(--html-height) - ${n.height.value}px - ${t.height.value}px - ${o.height.value}px)`,"--layout-content-width":`${n.width.value}px`,"--layout-siderbar-height":`${n.height.value}px`,"--layout-menutag-height":`${t.height.value}px`,"--layout-footer-height":`${o.height.value}px`}))},ks=R({name:"RLayout",setup(){const e=E(),n=E(),t=E(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=G(),{getLockAppScreen:l}=Yn(),s=Ts([e,n,t]);return{getMenuTagSwitch:o,cssVarsRef:s,getLockAppScreen:l,layoutSiderBarRef:e,layoutMenuTagRef:n,layoutFooterRef:t,getCopyrightSwitch:a}},render(){const{getMenuTagSwitch:e,cssVarsRef:n,getCopyrightSwitch:t}=this,{getLockAppScreen:o}=this;return o()?r(Cs,null,null):r(zo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(qr,null,null),r(Wt,{class:"r-layout-full__viewer"},{default:()=>[r(ys,{ref:"layoutSiderBarRef"},null),e?r(Ss,{ref:"layoutMenuTagRef"},null):null,r(Wt,{ref:ke,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Gn,null,null)]}),t?r(Zr,{ref:"layoutFooterRef"},null):null]})]})}}),Os=[{path:"/",name:"RLogin",component:()=>I(()=>import("./index-CCykVugW.js"),__vite__mapDeps([97,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,81,82,83,39,40,59,42,43,44,45,46,47,49,50,51,52,53,54,55,56,98]))},{path:"/",name:"RLayout",component:ks,children:[...jr(),{path:"/:catchAll(.*)",component:()=>I(()=>import("./index-BYpwN2eY.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,41,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,100])),meta:{i18nKey:j("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],at=fa({history:ga(),routes:Os,scrollBehavior:e=>{Xl(e)}}),Pi=e=>{e.use(at),Ur(at)},Ft=()=>at?{router:at}:{router:{}},rn="YYYY-MM-DD HH:mm:ss",As=()=>({locale:s=>{const i=Ga[s];i?K.locale(i):K.locale(Ha)},getStartAndEndOfDay:s=>{const{format:i=rn}=s??{},u=K(),c=u.startOf("day"),p=u.endOf("day"),g=u.format(i),v=c.format(i),f=p.format(i);return{today:u,startOfDay:c,endOfDay:p,formatToday:g,formatStartOfDay:v,formatEndOfDay:f}},format:(s,i)=>{const{format:u=rn}=i??{};return K(s).format(u)},isDayjs:s=>K.isDayjs(s),daysDiff:(s,i)=>{const u=K(s);return K(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,p=K(s);return p.isAfter(u)&&p.isBefore(c)}});function $e(e){const{width:n,height:t}=jo(e),o=E(!1),{observer:a}=e??{};return oa(()=>{const{media:s=768}=e??{};o.value=n.value<=s,a==null||a(o.value,{width:n.value,height:t.value})}),{width:n,height:t,isTabletOrSmaller:ye(o)}}let Ye=999,St=!1;const ve="ELEMENT-FULLSCREEN-RAY",sn=document.createElement("style"),Rs=(e,n)=>{const{beforeEnter:t,beforeExit:o,enter:a,exit:l,backgroundColor:s,zIndex:i,transition:u="transform 0.3s var(--r-bezier)"}=n??{};let c=!1;const p={x:null,y:null},g=E(!1),v=()=>{const h=pe(e);if(!h)return;const{left:S,top:d}=h.getBoundingClientRect();p.x===null&&p.y===null&&(p.x=-S,p.y=-d),tt(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?Ye:i,"--element-fullscreen-transition":u,"--element-fullscreen-background-color":s,"--element-fullscreen-width":"var(--html-width)","--element-fullscreen-height":"var(--html-height)","--element-fullscreen-transform-x":`${p.x}px`,"--element-fullscreen-transform-y":`${p.y}px`});const y=`
|
||
[${ve}] {
|
||
position: fixed;
|
||
width: var(--element-fullscreen-width) !important;
|
||
height: var(--element-fullscreen-height) !important;
|
||
transform: translate(var(--element-fullscreen-transform-x), var(--element-fullscreen-transform-y)) !important;
|
||
transition: var(--element-fullscreen-transition);
|
||
z-index: var(--element-fullscreen-z-index) !important;
|
||
background-color: var(--element-fullscreen-background-color);
|
||
}
|
||
`.trim();sn.innerHTML=y,St||document.head.appendChild(sn)},f=()=>{const h=pe(e);t==null||t(),h&&(h.getAttribute(ve)||h.setAttribute(ve,ve),c||(c=!0,Ye+=1),St||(v(),St=!0),h.style.transition=u,g.value=!0,a==null||a())},m=()=>{o==null||o();const h=pe(e);h&&h.removeAttribute(ve),g.value=!1,l==null||l()},_=()=>{const h=pe(e);h&&(h.getAttribute(ve)?m():f())};return zt(()=>{const h=pe(e);h&&h.removeAttribute(ve),Ye=Math.max(999,Ye-1),g.value=!1}),{enter:f,exit:m,toggleFullscreen:_,isFullscreen:ye(g)}},wt={svg:ra,png:sa,jpeg:ia,blob:ua,pixelData:ca,canvas:da},xi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n??{};return{create:u=>new Promise((c,p)=>{var f;const g=pe(e);if(t==null||t(g),!g)return a==null||a(),p("useDomToImage: element is undefined.");(f=wt[u??s??"jpeg"])==null||f.call(wt,g,n).then(m=>(o==null||o(m,g),c(m))).catch(m=>(a==null||a(m),p(m))).finally(()=>{l==null||l(g)})})}},Mi=(e,n)=>({print:()=>{const o=pe(e)||e;Ho({...Ve(n,["printable"]),printable:o})}}),Ps={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},xs=(e,n)=>{const t=E(e),o=Ve(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size"]),l=E(Object.assign({},Ps,o,{onUpdatePage:d=>{var y;l.value.page=d,(y=t.value)==null||y.call(t)},onUpdatePageSize:d=>{var y;l.value.pageSize=d,l.value.page=1,(y=t.value)==null||y.call(t)}})),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},p=()=>l.value.page,g=d=>{s(d)},v=()=>l.value.pageSize,f=d=>{i(d)},m=()=>l.value,_=e,h=d=>{t.value=d},S=()=>{const{pageSizes:d}=l.value;l.value.page=1,l.value.pageSize=(d==null?void 0:d[0])||10};return zt(()=>{t.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:p,setPage:g,getPageSize:v,setPageSize:f,getPagination:m,getCallback:_,setCallback:h,resetPagination:S}]},Xn=()=>({isLayoutContentMaximized:w(()=>ct("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=pe(ke),{toggleFullscreen:s}=Rs(l,o);me("layoutContentMaximize",t),s(),a&&t&&((i=ke==null?void 0:ke.value)==null||i.scrollTo(a))}}),Ms=()=>({reload:(o=800)=>{me("globalMainLayoutLoad",!1),setTimeout(()=>me("globalMainLayoutLoad",!0),o)},openSpin:()=>{me("layoutContentSpinning",!0)},closeSpin:()=>{me("layoutContentSpinning",!1)}}),Ei=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=G(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=U();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=U();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=U();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=G(),{updateSettingState:l}=U();l("watermarkSwitch",!a.value)}}),Xe=e=>{const{getPrimaryColorOverride:n}=G(),{updateSettingState:t}=U();t("primaryColorOverride",e?Object.assign({},n.value,re.appNaiveUIThemeOverrides.dark,re.appNaiveUIThemeOverridesCommon.dark):Object.assign({},n.value,re.appNaiveUIThemeOverrides.light,re.appNaiveUIThemeOverridesCommon.light))},Di=()=>{const e=()=>{const{getAppTheme:l}=G(),{t:s}=Ne();return{theme:l.value,themeI18nLabel:l.value?s("headerSettingOptions.ThemeOptions.Dark"):s("headerSettingOptions.ThemeOptions.Light"),themeLabel:l.value?"Dark":"Light"}};return{darkTheme:()=>{const{updateSettingState:l}=U();l("_appTheme",!0),l("appTheme","dark"),Xe(!0)},lightTheme:()=>{const{updateSettingState:l}=U();l("_appTheme",!1),l("appTheme","light"),Xe(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=U();s("_appTheme",!l),s("appTheme",l?"light":"dark"),Xe(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=G(),{updateSettingState:s}=U(),{system:i}=yn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),Xe(l.value)}}},Te=(e,n)=>{const{getMenuTagOptions:t}=Se();if(typeof e=="number"){if(isNaN(e)){console.warn(`${n}: The ${e} is NaN, expect number.`);return}if(e>t.value.length||e<-1){console.warn(`${n}: The incoming index ${e} did not match the corresponding item.`);return}return{option:t.value[e],index:e}}else if(typeof e=="string"){const o=t.value.findIndex(a=>a.fullPath===e);return o>-1?{option:t.value[o],index:o}:console.warn(`${n}: The incoming key ${e} did not match the corresponding item.`)}else{const{fullPath:o}=e,a=t.value.findIndex(l=>l.fullPath===o);if(a===-1){console.warn(`${n}: The incoming menuTag option ${e.fullPath} did not match the corresponding item.`);return}return{option:e,index:a}}};function Jn(){const{getMenuTagOptions:e,getMenuKey:n}=Se(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=De(),s=()=>e.value.findIndex(m=>m.fullPath===n.value),i=m=>{const _=Te(m,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return!(h>=S)}return!1},u=m=>{const _=Te(m,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return h===0?!1:h>0&&S>0}return!1};return{close:m=>{const _=Te(m,"close");if(e.value.length!==1&&_){const{index:h,option:S}=_;if(o(h),S.fullPath===n.value){let d=u(h)?h-1:i(h)?h:h-1;d<0&&(d=0);const y=e.value[d];y&&t(y.fullPath,y)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:m}=ze(),{router:{getRoutes:_}}=Ft(),h=_().find(S=>S.path===m.value);if(h){const S=Fe(h,At),d=l(S);t(d.path,l({...d,fullPath:d.path}))}},closeRight:m=>{const _=Te(m,"closeRight");if(_){const{option:h,index:S}=_,d=e.value.length-S,y=s();o(S+1,d),S<=y&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:m=>{const _=Te(m,"closeLeft");if(_){const{option:h,index:S}=_,d=s();o(0,S),d<=S&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:m=>{const _=Te(m,"closeOther");if(_){const{option:h}=_;n.value!==h.fullPath?(o(0,e.value.length),t(h.fullPath,h)):a(h,!1)}},getCurrentTagIndex:s,checkCloseRight:i,checkCloseLeft:u}}function zi(){return{navigationTo:(n,t)=>{const{router:{getRoutes:o,push:a,replace:l}}=Ft(),{isPush:s=!0,query:i}=t||{},u=c=>s?a({path:c,query:i}):l({path:c,query:i});if(typeof n=="number"){if(isNaN(n)){console.warn(`[navigationTo]: The ${n} is NaN, expect number.`);return}const{getMenuOptions:c}=Se();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const p=c.value[n],g=v=>{if(v.children&&v.children.length>0){const{children:[f]}=v;g(f);return}u(v.fullPath)};g(p)}else if(typeof n=="string"){const c=o().find(p=>p.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function ze(){const{getAppRootRoute:e}=G(),{updateSettingState:n}=U(),t=e,o=w(()=>e.value.path),a=w(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Es=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=jn(e)},un=(e,n,t)=>{const o=Nn(e,n);o&&Es(o,t)},Ct=(e,n,t)=>{const{getMenuOptions:o}=Se();if(typeof e=="string")un(o.value,e,t);else if(fe(e,"Object")){const{fullPath:a}=e;un(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ii(){return{hidden:o=>{Ct(o,"hidden",{show:!1})},show:(o,a)=>{Ct(o,"show",{...a,show:!0})},update:(o,a)=>{Ct(o,"update",a)}}}const Li=()=>{const e=Pn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},Zn=()=>et(Z.localeLanguage,"localStorage",{defaultValue:Wa});export{Ri as $,ci as A,Tr as B,ki as C,Ha as D,Oi as E,wi as F,$a as G,mi as H,hi as I,vi as J,Si as K,Pn as L,ii as M,yi as N,xs as O,gi as P,br as Q,bi as R,Kr as S,ir as T,xr as U,Ti as V,_i as W,Ci as X,As as Y,Hr as Z,I as _,xi as a,pi as a0,_r as a1,Ln as a2,Xn as a3,zi as a4,Ms as a5,Ei as a6,Ii as a7,Mi as b,Li as c,di as d,G as e,Z as f,si as g,re as h,U as i,an as j,Yn as k,ct as l,Wn as m,ui as n,fi as o,Pi as p,ze as q,ws as r,Ai as s,Ne as t,Di as u,x as v,Rn as w,ht as x,Ft as y,ri as z};
|