ray-template/js/hooks-DkwyRhJW.js

13 lines
114 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/en-US-B646O6g0.js","js/dayjs@1.11.13-DmclB1g0.js","js/call-bind@1.0.7-Cpj98o6Y.js","js/print-js@1.6.0-CSPo0Tcq.js","js/vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-aIJXVmKG.js","js/@vue_reactivity@3.5.13-BUI-9P27.js","js/@vue_shared@3.5.13-DbMIZLZJ.js","js/@vue_runtime-core@3.5.13-C4z9ybNO.js","js/lodash@4.17.21-DdnujIRq.js","js/js-cookie@3.0.5-Z_8Sd105.js","js/screenfull@5.2.0-Beyjefx-.js","js/jsbarcode@3.11.6-oBoQ6a3L.js","js/@logicflow_core@2.0.6-RNiIy_D6.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-CXGZkgDa.js","js/mousetrap@1.6.5-CZlDLqk3.js","js/mobx-utils@5.6.2_mobx@5.15.7-C1xBETkd.js","css/@logicflow_core@2.0-CugW5BGX.css","js/currency.js@2.0.4-9OAR_aOO.js","js/naive-ui@2.40.3_vue@3.5.13_typescript@5.6.3_-RzgJ2d66.js","js/date-fns@3.6.0-C0m45l1x.js","js/seemly@0.3.8-BnJ6M8Cl.js","js/vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-Cg_JnYIl.js","js/evtd@0.2.4-CI_DDEu_.js","js/@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-C_O0aIg6.js","js/vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-D2QHhDIA.js","js/vdirs@0.1.8_vue@3.5.13_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.13-DuNN1sOR.js","js/treemate@0.3.11-DKekKYbv.js","js/date-fns-tz@3.1.3_date-fns@3.6.0-8suFmB8o.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@12.0.0_typescript@5.6.3-C9IHWe-R.js","js/@vueuse_shared@12.0.0_typescript@5.6.3-CGbtf1AB.js","js/utils-D0vAZTsb.js","js/pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____kx5gunx5jwh3gvgzh5d2u2kbi4-_Zka_ujQ.js","js/destr@2.0.3-CVtkxrq9.js","js/deep-pick-omit@1.2.1-CegYQlcN.js","js/pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D-tw8_dX.js","js/vue-demi@0.14.10_vue@3.5.13_typescript@5.6.3_-Dq6ymT-8.js","js/html-to-image@1.11.11-BOFdlgi9.js","js/vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-DqBemXrF.js","js/vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-Dwqb-Fsg.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.1-BLGAYSDN.js","js/zrender@5.6.0-9xYeh_X5.js","js/tslib@2.3.0-BDyQ-Jie.js","js/interactjs@1.10.27-dRxyG-hL.js","js/zh-CN-CqOSoT6c.js","js/index-DWW5vg8T.js","js/index-D_DPsZIk.js","css/index-BPwDcGFh.css","js/Flow-DCqcurDk.js","js/index-BUopvfLh.js","js/instance-C-vNTEAZ.js","js/axios@1.7.9-upsvKRUO.js","css/index-C60eEB5E.css","js/BarcodeDemo-D624lXo0.js","js/index-V-oJaMdW.js","js/index-I3xpnre6.js","js/index-U26O7WwT.js","js/index-DKkExQAm.js","css/index-D9y7XLpS.css","js/index-BFzAoRGl.js","js/index-N37L1C-K.js","js/index-BbSfprCi.js","js/index-DGR2_5oV.js","js/index-fmPn6wyD.js","js/index-DoGcqTsi.js","js/index-DLkGvx97.js","js/index-D5fhwujG.js","js/index-BygkQGdX.js","js/vue3-next-qrcode@2.0.10_typescript@5.6.3-HdfsjwmG.js","css/vue3-next-qrcode@2.0.10_typescript@5.6-BnS3AyZU.css","js/ray-dCjhX_JK.js","js/index-DK4lohxs.js","css/index-C7SBslZD.css","js/index-WnzGdd3P.js","js/index-Ck25fYhF.js","js/index-BNgVMC1w.js","css/index-CCBgYJcK.css","js/index-DjSyCcZw.js","js/index-BWR4H4SE.js","css/index-Bit-kagu.css","js/TablePro-DXjCj7SW.js","js/mockjs@1.1.0-lzRjfrGS.js","js/index-BNleOBFy.js","js/index-BEXPkOU2.js","js/index-Kt1C3Us_.js","css/index-DId3lj_V.css","js/index-Bw2xty29.js","css/index-CEBSONXB.css"])))=>i.map(i=>d[i]);
var co=Object.defineProperty;var po=(e,n,t)=>n in e?co(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Kt=(e,n,t)=>po(e,typeof n!="symbol"?n+"":n,t);import{s as ht,c as tt,m as nt,l as Et,v as fn,p as Ve,y as Ue,z as mo}from"./lodash-es@4.17.21-B-5kLwAl.js";import{z as Wt,d as qt,f as fo,g as go,N as ut,a as ho,b as vo,c as I,e as ct,m as yo,h as gn,u as bo,S as Dt,i as _o,j as xe,k as So,l as hn,n as wo,o as je,p as Co,q as me,t as To,r as ko,s as vn,v as Oo,w as yn,x as ot,y as Gt,A as bn,B as Ao,C as Ro,D as Po,E as le,F as xo,G as Ht,H as D,I as ee,J as H,K as Mo,L as zt,M as _n,O as X,P as Eo,Q as Do,R as Ge,T as zo,U as Io,V as Lo,W as Fo,X as Bo,Y as Sn,Z as Yt,_ as Vo}from"./naive-ui@2.40.3_vue@3.5.13_typescript@5.6.3_-RzgJ2d66.js";import{o as jo,u as Ne,a as No,b as Uo,c as wn,d as $o,e as vt,f as Ko}from"./@vueuse_core@12.0.0_typescript@5.6.3-C9IHWe-R.js";import{s as ne,k as B,l as be,e as re,n as Wo,x as we,a as Cn,u as Q}from"./@vue_reactivity@3.5.13-BUI-9P27.js";import{n as te,j as ue,l as R,b as r,m as N,p as ge,q as ie,f as T,i as Ce,w as Ee,t as qo,k as De,v as It,h as dt,x as Tn,F as kn,y as Go,z as Oe,A as Ho,C as yt,D as Yo,E as Fe,S as Xo,K as Jo,G as Xt,H as Zo,I as W}from"./@vue_runtime-core@3.5.13-C4z9ybNO.js";import"./currency.js@2.0.4-9OAR_aOO.js";import{d as G}from"./dayjs@1.11.13-DmclB1g0.js";import{p as Qo}from"./print-js@1.6.0-CSPo0Tcq.js";import{u as On}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-aIJXVmKG.js";import"./lodash@4.17.21-DdnujIRq.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-Beyjefx-.js";import{b as ea}from"./jsbarcode@3.11.6-oBoQ6a3L.js";import{L as Jt}from"./@logicflow_core@2.0.6-RNiIy_D6.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 Lt,g as at,i as fe,s as Ft,a as Rt,c as bt,b as lt,l as An,d as Rn,e as ta,f as j,r as _e,h as F,j as na,k as rt,q as st,m as Pn,p as xn,n as Bt,o as Zt,t as ve,v as Mn,w as oa,x as aa,y as la,z as ra,A as de}from"./utils-D0vAZTsb.js";import{s as sa}from"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____kx5gunx5jwh3gvgzh5d2u2kbi4-_Zka_ujQ.js";import{d as pt,c as ia}from"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D-tw8_dX.js";import{t as ua,a as ca,b as da,c as pa,d as ma,e as fa}from"./html-to-image@1.11.11-BOFdlgi9.js";import{u as mt,a as ga,o as ha,c as va,b as ya}from"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-DqBemXrF.js";import{c as ba}from"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-Dwqb-Fsg.js";import{r as _a,u as Be,i as Sa,a as wa,b as Ca,c as Ta,d as ka,e as Oa,f as Aa,g as Ra,h as Pa,j as xa,k as Ma,l as Ea,m as Da,n as za,o as Ia,p as La,q as Fa,s as Ba}from"./echarts@5.5.1-BLGAYSDN.js";import{g as Va}from"./@vueuse_shared@12.0.0_typescript@5.6.3-CGbtf1AB.js";import{T as ja,a as Na}from"./@vue_runtime-dom@3.5.13-DuNN1sOR.js";import{i as Qt}from"./interactjs@1.10.27-dRxyG-hL.js";const si=(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?(ht(t,u,t[u]||{}),ht(t[u],c,a)):ht(t,u,a||{}))}),t},Ua="modulepreload",$a=function(e){return"/ray-template/"+e},en={},z=function(n,t,o){let a=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));a=Promise.allSettled(t.map(u=>{if(u=$a(u),u in en)return;en[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Ua,c||(m.as="script"),m.crossOrigin="",m.href=u,i&&m.setAttribute("nonce",i),document.head.appendChild(m),c)return new Promise((y,g)=>{m.addEventListener("load",y),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return a.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return n().catch(l)})},Ka=(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.":""))))})},Wa=async e=>{var t;const n={};for(const o of e){const a=await Ka(Object.assign({"../lang/en-US.ts":()=>z(()=>import("./en-US-B646O6g0.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":()=>z(()=>import("./zh-CN-CqOSoT6c.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},ii=e=>{switch(e){case"zh-CN":return{locale:Wt,dateLocal:qt};case"en-US":return{locale:null,dateLocal:null};default:return{locale:Wt,dateLocal:qt}}},qa={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"},ui={max:5,closable:!1},ci="loading",di="",J={signing:"signing",localeLanguage:"localeLanguage",token:"token",appMenuKey:"menuKey",appPiniaSettingStore:"piniaSettingStore",appPiniaKeepAliveStore:"piniaKeepAliveStore",appPiniaMenuStore:"piniaMenuStore",appPiniaSigningStore:"piniaSigningStore",appVersionProvider:"appVersionProvider",isAppLockScreen:"isAppLockScreen",appGlobalSearchOptions:"appGlobalSearchOptions"},Ga=[{label:"无",value:"none"},{label:"缩放出现",value:"scale"},{label:"缩放消退",value:"fade-scale"},{label:"滑入出现",value:"fade-slide"},{label:"淡入消退",value:"opacity"},{label:"底部消退",value:"fade-bottom"}],Se={appThemeColors:["#2d8cf0","#3f9eff","#ff42bc","#ee4f12","#dbcb02","#18a058"],appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.8)"},appNaiveUIThemeOverrides:{dark:{common:{borderRadius:"4px",baseColor:"rgb(18, 18, 18)",textColorBase:"rgb(255, 255, 255)"}},light:{common:{borderRadius:"4px",baseColor:"rgb(255, 255, 255)",textColorBase:"rgb(31, 31, 31)"}}},echartTheme:"macarons"},En=[{key:"zh-CN",label:"中文(简体)"},{key:"en-US",label:"English(US)"}],Ha="zh-CN",Ya="zh-CN",Xa={"zh-CN":"zh-cn","en-US":"en"},Ja="zh-cn",pi={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$/},mi={baseURL:"",withCredentials:!1,timeout:5*1e3,headers:{"Content-Type":"application/json"}},Re=ne(null),Dn=ne(null),Za={setupRouterLoadingBar:!0,setupRouterGuard:!0},Qa=["RLogin","ErrorPage","RayTemplateDoc"],He=[],fi=(e,n)=>{const t=B(0),o=B(0),a=B(!1),{clickOutside:l}={},s=m=>{a.value=m},i=m=>{m.preventDefault(),s(!1),te().then(()=>{const{clientX:y,clientY:g}=m;t.value=y,o.value=g,s(!0)})};l&&jo(e,m=>{l(m)});const u=Ne(e,"contextmenu",i,n),c=Ne(e,"click",()=>{s(!1)});return{stop:()=>{u(),c()},x:be(t),y:be(o),show:be(a),updateShow:s}},Vt=re({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentSpinning:!1});function pe(e,n,t){Lt(Vt,e,n,t)}function ft(e){return be(Wo(Vt,e))}function el(){return{...we(be(Vt))}}let ce;const tl=async()=>{const e=ao(),n=await Wa(En);return ba({legacy:!1,locale:e,messages:n,sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:Ya})},gi=async e=>{const n=await tl();e.use(n),ce=n},tn=(e,n)=>n,$e=e=>{if(!ce)return{t:l=>tn(e,l),locale:l=>{}};const{t:n,...t}=ce.global;return{...t,t:(l,...s)=>l?!l.includes(".")&&!e?l:n(tn(e,l),...s):"",locale:l=>{ce.mode==="legacy"?ce.global.locale=l:Cn(ce.global.locale)?ce.global.locale.value=l:ce.global.locale=l}}},V=e=>e,nl={path:"/dashboard",component:()=>z(()=>import("./index-DWW5vg8T.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:V("menu.Dashboard"),icon:"dashboard",order:0}},ol=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),al={path:"/flow",component:()=>z(()=>import("./Flow-DCqcurDk.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:V("menu.Flow"),icon:"other",order:2}},ll=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),rl={path:"/axios",name:"RAxios",component:()=>z(()=>import("./index-BUopvfLh.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:V("menu.Axios"),icon:"axios",order:3,keepAlive:!0}},sl=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il={path:"barcode",component:()=>z(()=>import("./BarcodeDemo-D624lXo0.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:V("menu.Barcode"),icon:"other",order:2,extra:{label:"new"}}},ul=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl={path:"/cache-demo",component:()=>z(()=>import("./index-V-oJaMdW.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:V("menu.CacheDemo"),icon:"other",order:3}},dl=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),pl={path:"/context-menu",component:()=>z(()=>import("./index-I3xpnre6.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:V("menu.ContextMenu"),icon:"other",order:2}},ml=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),fl={path:"/directive",component:()=>z(()=>import("./index-U26O7WwT.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:V("menu.Directive"),icon:"other",order:2,extra:{label:"ellipsis"}}},gl=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),hl={path:"/echart",component:()=>z(()=>import("./index-DKkExQAm.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:V("menu.Echart"),icon:"echart",order:1,extra:{label:"useChart"}}},vl=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),yl={path:"/form",component:()=>z(()=>import("./index-BFzAoRGl.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:V("menu.Form"),icon:"other",order:2,extra:{label:"useForm"}}},bl=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),_l={path:"/iframe",component:()=>z(()=>import("./index-N37L1C-K.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"}},Sl=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),wl={path:"/mock-demo",component:()=>z(()=>import("./index-BbSfprCi.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:V("menu.Mock"),icon:"other",order:3,keepAlive:!1,extra:{label:"usePagination"}}},Cl=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Tl={path:"/modal-demo",component:()=>z(()=>import("./index-DGR2_5oV.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:V("menu.Modal"),icon:"other",order:3}},kl=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),et=()=>z(()=>Promise.resolve().then(()=>es),void 0),Ol={path:"/multi",component:et,meta:{i18nKey:V("menu.MultiMenu"),icon:"other",order:4,extra:{label:"cache"}},children:[{path:"multi-menu-one",name:"MultiMenuOne",component:()=>z(()=>import("./index-fmPn6wyD.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:et,meta:{noLocalTitle:"多级菜单-2"},children:[{path:"sub-menu-other",name:"SubMenuOther",component:()=>z(()=>import("./index-DoGcqTsi.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:et,meta:{noLocalTitle:"多级菜单-2-2",keepAlive:!0},children:[{path:"sub-menu-one",name:"MultiMenuTwoOne",component:()=>z(()=>import("./index-DLkGvx97.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}}]}]}]},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Rl={path:"/precision",component:()=>z(()=>import("./index-D5fhwujG.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:V("menu.CalculatePrecision"),icon:"other",order:2}},Pl=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),xl={path:"/qrcode",component:()=>z(()=>import("./index-BygkQGdX.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:V("menu.QRCode"),icon:"other",order:2}},Ml=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),El={path:"rely-about",component:()=>z(()=>import("./index-DK4lohxs.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:V("menu.RelyAbout"),icon:"rely",order:999}},Dl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),zl={path:"/router-demo",component:et,meta:{i18nKey:V("menu.RouterDemo"),icon:"other",order:3},children:[{path:"router-demo-home",component:()=>z(()=>import("./index-WnzGdd3P.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:()=>z(()=>import("./index-Ck25fYhF.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}}]},Il=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),Ll={path:"/scroll-reveal",component:()=>z(()=>import("./index-BNgVMC1w.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:V("menu.scrollReveal"),icon:"scroll_reveal",hidden:!0}},Fl=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Bl={path:"/segment",component:()=>z(()=>import("./index-DjSyCcZw.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:V("menu.Segment"),icon:"other",order:3,extra:{label:"segment"}}},Vl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),jl={path:"/svg-icons",component:()=>z(()=>import("./index-BWR4H4SE.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:V("menu.SvgIcon"),icon:"other",order:3}},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Ul={path:"/table-pro",component:()=>z(()=>import("./TablePro-DXjCj7SW.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:V("menu.TablePro"),icon:"other",order:2,extra:{label:"TablePro"}}},$l=Object.freeze(Object.defineProperty({__proto__:null,default:Ul},Symbol.toStringTag,{value:"Module"})),Kl={path:"/table",component:()=>z(()=>import("./index-BNleOBFy.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:V("menu.Table"),icon:"other",order:2,extra:{label:"useTable"}}},Wl=Object.freeze(Object.defineProperty({__proto__:null,default:Kl},Symbol.toStringTag,{value:"Module"})),ql={path:"/template-hooks",component:()=>z(()=>import("./index-BEXPkOU2.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:V("menu.TemplateHooks"),icon:"other",order:1}},Gl=Object.freeze(Object.defineProperty({__proto__:null,default:ql},Symbol.toStringTag,{value:"Module"})),Hl=()=>{const e=Object.assign({"/src/router/modules/dashboard.ts":ol,"/src/router/modules/demo/axios copy.ts":ll,"/src/router/modules/demo/axios.ts":sl,"/src/router/modules/demo/barcode.ts":ul,"/src/router/modules/demo/cache-demo.ts":dl,"/src/router/modules/demo/context-menu.ts":ml,"/src/router/modules/demo/directive.ts":gl,"/src/router/modules/demo/echart.ts":vl,"/src/router/modules/demo/form.ts":bl,"/src/router/modules/demo/iframe.ts":Sl,"/src/router/modules/demo/mock.ts":Cl,"/src/router/modules/demo/modal.ts":kl,"/src/router/modules/demo/multi-menu.ts":Al,"/src/router/modules/demo/precision.ts":Pl,"/src/router/modules/demo/qrcode.ts":Ml,"/src/router/modules/demo/rely.ts":Dl,"/src/router/modules/demo/router-demo.ts":Il,"/src/router/modules/demo/scroll-reveal.ts":Fl,"/src/router/modules/demo/segment.ts":Vl,"/src/router/modules/demo/svg-icons.ts":Nl,"/src/router/modules/demo/table-pro.ts":$l,"/src/router/modules/demo/table.ts":Wl,"/src/router/modules/demo/template-hooks.ts":Gl});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},[])},Yl=e=>e[0]==="/",zn=(e,n=[],t="")=>{var o;if(!Array.isArray(e))return[];for(const a of e){const l=t+(Yl(a.path)?a.path:"/"+a.path);if((o=a.children)!=null&&o.length){zn(a.children,n,l);continue}else n.push({...a,path:l})}return n},Xl=e=>Array.isArray(e)?zn(tt(e)):[],Jl=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}),Zl=e=>{const{beforeEach:n}=e,{getRootPath:t}=Le(),o=(a,l)=>a.path==="/"||l.path==="/login";n((a,l,s)=>{const i=at(J.token,"localStorage"),u=at(J.appMenuKey,"sessionStorage",{defaultValue:t.value}),{meta:c,name:f}=a;i!==null?o(a,l)?_t(!0):!fe(f,"Symbol")&&f&&Qa.includes(f)?s():Zn(c)?o(a,l)?u?s(u):_t(!0):s():_t(!0):o(a,l)?s():s("/")})},_t=(e=!0)=>{const{router:n}=Nt(),{push:t,replace:o}=n,{getRootPath:a}=Le();Ft(J.appMenuKey,a.value,"localStorage"),e?o(a.value):t(a.value)},Ql=e=>{var t;const{meta:n}=e;n!=null&&n.ignoreAutoResetScroll||(t=Re.value)==null||t.scrollTo({top:0,left:0,behavior:"smooth"})},er=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()})},In=e=>{const{meta:n={}}=e,{hidden:t,sameLevel:o,env:a}=n,{MODE:l}=Rt();return!(o||t||a&&typeof a=="string"&&a!==l||a&&Array.isArray(a)&&!a.includes(l))},tr={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},Ln=()=>tr,Me=pt("setting",()=>{const{appPrimaryColor:{primaryColor:e,primaryFadeColor:n}}=Se,{locale:t}=$e(),{locale:o}=Ps(),a=re({primaryColorOverride:{common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:n,primaryColorSuppl:bt(e,.9)}},_appTheme:!1,appTheme:"light",localeLanguage:ao(),lockScreenSwitch:!1,appRootRoute:{name:"Dashboard",path:"/dashboard"},sideBarLogo:{icon:"ray",title:"Ray Template",url:"/dashboard",jumpType:"station"},...Ln()}),l=c=>{t(c),o(c),Ft(J.localeLanguage,c,"localStorage"),a.localeLanguage=c},s=(c,f=.8)=>{const m=bt(c,f),y=bt(c,.9),g={primaryColor:c,primaryColorHover:m,primaryColorPressed:m,primaryColorSuppl:y},{rayTemplateThemePrimaryColor:p,rayTemplateThemePrimaryFadeColor:_}=qa,h=document.documentElement;a.primaryColorOverride.common=g,h.style.setProperty(p,c),h.style.setProperty(_,m)},i=(c,f,m)=>{Lt(a,c,f,m)},u=c=>{const f=document.documentElement;i("colorWeakness",c),lt(f,{filter:c?"invert(100%)":""})};return ue(()=>{var c;a._appTheme?a.primaryColorOverride=nt({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.dark):a.primaryColorOverride=nt({},a.primaryColorOverride,Se.appNaiveUIThemeOverrides.light),u(a.colorWeakness),a.dynamicDocumentTitle||(document.title=((c=a.sideBarLogo)==null?void 0:c.title)||"Ray Template")}),{...we(a),updateLocale:l,changePrimaryColor:s,updateSettingState:i,toggleColorWeakness:u}},{persist:{key:J.appPiniaSettingStore,omit:["lockScreenSwitch"],storage:window.localStorage}}),Fn={...fo,onRegister:{type:[Function,Array],default:null}},Bn={actionSpan:{type:Number,default:1},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},...go};function nr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const hi=R({name:"RCollapse",props:Object.assign({},Fn,{...Bn,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($n,N(a,{labelPlacement:"top",showFeedback:!1}),{default:()=>[r(rr,a,nr(e)?e:{default:()=>[e]})]})}}),or={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:()=>An()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>Rn()},onRegister:{type:[Function,Array],default:null}},ar=Symbol("USE_CHART_PROVIDER_KEY"),lr=ta(),nn="__R_CHART_DOWN_LOAD_CHART__";lr.forEach(e=>{_a(e.name,e.theme)});const vi=R({name:"RChart",props:or,setup(e,{expose:n}){const{getAppTheme:t}=Y(),o=ie("rayChartRef"),a=ie("rayChartWrapperRef"),l=ne();let s,i;const{echartTheme:u}=Se;let c;const f=T(()=>[{label:"下载图片",key:nn,disabled:!(l.value&&l.value.getDom())}]),m=T(()=>({"--ray-chart-width":j(e.width),"--ray-chart-height":j(e.height)})),y=B(!1);let g;const p={aria:e.showAria},_=Ce(ar,{}),h=async()=>{var C;Be([wa,Ca,Ta,ka,Oa,Aa,Ra,Pa]),Be([xa,Ma,Ea,Da,za,Ia]),Be([La,Fa]),Be([Ba]);try{Be((C=e.use)==null?void 0:C.filter(Boolean))}catch(E){console.error("[RChart register error]: ",E)}},S=()=>{const{theme:C}=_||{};if(l.value&&k(),C){v(C);return}if(e.theme==="default"){e.autoChangeTheme?v("dark"):v("");return}if(e.theme)v(e.theme);else{const E=e.autoChangeTheme&&t.value?`${u}-dark`:u;v(E)}},d=C=>{let E=Q(C);return E=(K=>Object.assign({},E,K))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),E},v=(C=u)=>{var ke;const E=o.value,U=d(e.options),{height:K,width:oe}=E.getBoundingClientRect(),{onSuccess:q,onError:he}=e;try{l.value=Sa(E,C,{width:oe===0?200:void 0,height:K===0?200:void 0}),q&&F(q,l.value),e.nextTick?(l.value.setOption({}),te(()=>{var ae;U&&((ae=l.value)==null||ae.setOption(U))})):U&&((ke=l.value)==null||ke.setOption(U))}catch(ae){throw he&&F(he),new Error(`[RChart render error]: ${ae}`)}finally{const{onFinally:ae}=e;ae&&F(ae)}},w=()=>{var C;return!!((C=l.value)!=null&&C.isDisposed())},k=()=>{var C;w()||(C=l.value)==null||C.dispose()},b=()=>{l.value&&l.value.resize()},x=(C,E)=>{if(C===nn&&!w()){const{filename:K,...oe}=e.downloadOptions;na(l.value.getDataURL(oe),K??`${new Date().getTime()}`)}const{onDropdownSelect:U}=e;U&&F(U,C,E)},A=()=>{var E;if(e.autoResize&&(s||(s=Et(b,500)),i||(i=Uo(e.autoResizeObserverTarget||a,s))),(E=l.value)!=null&&E.getDom()||!y.value&&e.intersectionObserver)return;S(),g==null||g.stop();const{onRegister:C}=e;C&&l.value&&F(C,l.value,A,L)},L=()=>{k(),s==null||s.cancel(),i==null||i.stop(),g==null||g.stop(),g=null,s=null,i=null};return Ee(()=>t.value,()=>{e.autoChangeTheme&&(k(),S())}),ue(()=>{var C,E;e.intersectionObserver&&(g=No(e.intersectionObserverTarget||a,([U])=>{y.value=U.isIntersecting},e.intersectionOptions)),e.watchOptions?c=Va(()=>e.options,U=>{var q;const K=d(U),oe=Object.assign({},Rn(),e.setChartOptions);(q=l.value)==null||q.setOption(K,oe)},{deep:!0,throttle:e.watchOptionsThrottleWait}):c==null||c(),e.loading?(C=l.value)==null||C.showLoading(An(e.loadingOptions)):(E=l.value)==null||E.hideLoading(),e.showAria!==p.aria&&l.value&&(l.value.setOption(d(e.options)),p.aria=e.showAria),y.value&&!w()&&A()}),n(),qo(async()=>{await h()}),De(()=>{A()}),It(()=>{L(),c==null||c()}),{rayChartRef:o,cssVarsRef:m,rayChartWrapperRef:a,moreDropDownOptions:f,dropdownSelect:x}},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(ut,{class:"ray-chart",ref:"rayChartWrapperRef",style:[this.cssVarsRef],contentStyle:n,bordered:l,embedded:!0},{default:_e(r("div",{class:"ray-chart__container",ref:"rayChartRef"},null)),header:_e(e,{defaultElement:r("div",{style:"display: none;"},null)}),"header-extra":_e(i,{defaultElement:r(Nn,{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)])}}),yi=()=>{let e,n,t;const o=(u,c,f)=>{u&&(e=u,n=f,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)}]},rr=R({name:"RCollapseGrid",props:Bn,setup(e){const n=B(!e.open),t=T(()=>({"--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(P,{customClassName:`collapse-icon--arrow ${l?"":"collapse-icon--arrow__expanded"}`,name:"expanded",size:"14"},null)]);return ue(()=>{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,actionSpan:f,bordered:m}=this;return r(ut,{bordered:m,style:[c]},{default:()=>r(ho,N({class:"ray-collapse-grid"},a,{collapsed:l,xGap:s||12,yGap:i||12,collapsedRows:u}),{default:()=>[t==null?void 0:t(),r(vo,{suffix:!0,class:"ray-collapse-grid__suffix--btn",span:f},{default:()=>[r(I,{justify:"end",align:"center"},{default:()=>[n==null?void 0:n(),e?e(l):o(l)]})]})]})})}}),sr={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}},P=R({name:"RIcon",props:sr,setup(e){const n=T(()=>`#${e.prefix}-${e.name}`),t=T(()=>({"--ray-icon-width":e.width?j(e.width):j(e.size),"--ray-icon-height":e.height?j(e.height):j(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)])])}}),ir={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}},bi=R({name:"RIframe",props:ir,setup(e,{expose:n}){const t=T(()=>({"--ray-iframe-frameborder":j(e.frameborder),"--ray-iframe-width":j(e.width),"--ray-iframe-height":j(e.height)})),o=ie("iframeRef"),a=B(!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 Ne(o,"load",l),Ne(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(ct,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)})])}}),ur={...yo,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}},cr=(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=Qt(e).draggable({inertia:!0,autoScroll:!0,allowFrom:l,modifiers:[Qt.modifiers.restrictRect({restriction:"parent",endOnly:!0})],listeners:{move:i=>{o==null||o(i)}}}).resizable(!1);a(s)}},30)})},Vn=(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;cr(t,l,{scheduler:c=>{const f=c.target;i+=c.dx,u+=c.dy,f.style.transform=`translate(${i}px, ${u}px)`,s==null||s(i,u,c)}}).then(c=>{o(c)})}else a()})},dr="r-modal__preset-card--fullscreen",jn="r-modal",Pe={width:"--r-modal-width",cardWidth:"--r-modal-card-width",dialogWidth:"--r-modal-dialog-width"},_i=R({name:"RModal",props:ur,setup(e){const n=T(()=>({[Pe.width]:j(e.width??600),[Pe.cardWidth]:j(e.cardWidth??600),[Pe.dialogWidth]:j(e.dialogWidth??446)})),t=rt();let o;const a={x:0,y:0},l=T(()=>e.preset==="card"&&e.fullscreen);return Ee(()=>e.show,s=>{s&&e.dad&&(e.preset==="card"||e.preset==="dialog")?te(()=>{const i=document.getElementById(t);i&&Vn(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(gn,N({class:[jn,i?dr:""],style:[l,i?"height: 100vh":""],preset:o},{id:s},a,t),{...n})}}),pr=()=>{const{create:e,destroyAll:n}=bo();return{create:o=>{const{content:a,...l}=o;let s=a;l.preset==="card"&&l.fullscreen&&(s=()=>dt(Dt,{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:f,cardWidth:m,dialogWidth:y}=o,g=e({...l,content:s}),{key:p}=g,_={[Pe.width]:j(f??600),[Pe.cardWidth]:j(m??600),[Pe.dialogWidth]:j(y??446)};return te(()=>{const[h]=st(`[internalkey="${p}"]`)||[];h&&(u&&Vn(h,{preset:i,x:0,y:0}),c&&i==="card"&&lt(h,{width:"100%",height:"100vh"}),lt(h,_),Pn(h,jn))}),g},destroyAll:n}},mr={..._o,icon:{type:String,default:"more"},iconSize:{type:Number,default:14},cursor:{type:String,default:"default"}};function fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Nn=R({name:"RMoreDropdown",props:mr,render(){let e;const{iconSize:n,cursor:t,icon:o}=this,{default:a}=this.$slots;return r(xe,N(this.$props,this.$attrs,{placement:"bottom-start"}),fr(e=_e(a,{defaultElement:r(P,{name:o,size:n,cursor:t},null)}))?e:{default:()=>[e]})}}),ze={...So,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")},gr=[{label:"斑马条纹",value:"striped"},{label:"表格边框",value:"bordered"}],hr=R({name:"TableSizeSelect",props:{onChangeSize:{type:[Function,Array],default:null},...ze},setup(e){return{size:B(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(hn,{value:this.size,"onUpdate:value":e=>this.size=e,options:this.sizeOptions,trigger:"click",onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"adjustment",size:se.tableIconSize,cursor:"pointer"},null)]})}}),vr=R({name:"TableFullscreen",setup(){const{wrapperRef:e}=Ce(se.tableKey,{}),[n,{toggleFullscreen:t,isEnabled:o}]=On(e);return{toggleFullscreen:t,isEnabled:o}},render(){const{toggleFullscreen:e,isEnabled:n,$t:t}=this;return r(P,{name:"fullscreen",size:se.tableIconSize,cursor:"pointer",onClick:()=>{n||window.$message.warning(t("globalMessage.isEnabledFullscreen")),e()}},null)}}),yr=()=>r(P,{name:"draggable",size:14,cursor:"grab"},null),on=({icon:e,title:n,onClick:t,customClassName:o})=>r(je,{showArrow:!1},{trigger:()=>r(P,{name:e,size:se.tableIconSize,cursor:"pointer",customClassName:o,onClick:t==null?void 0:t.bind(null)},null),default:()=>n}),Pt=(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]=Pt(e,o.children);if(a&&l!==null)return[a,l]}return[null,null]},St="r-table__c-tool-icon--active",br=R({name:"TableC",props:{...ze,onUpdateColumn:{type:[Function,Array],default:null}},setup(e){let n;const t=T({get:()=>tt(e.columns).filter(u=>u.type?(n=u,!1):!0).map((u,c)=>{const{key:f,title:m,children:y,fixed:g,isResizable:p,..._}=u,h=g==="left",S=g==="right",d={..._,title:m,key:f,fixed:g,isLeftFixedActivated:h,isRightFixedActivated:S,isResizable:p};return{...d,suffix:()=>r(I,{style:"padding-left: 32px;"},{default:()=>[r(on,{icon:"row_head",title:"固定在列首",customClassName:h?St:"",onClick:l.bind(this,"left",d,c)},null),r(je,{showArrow:!1},{trigger:()=>r(P,{name:"resize_h",size:se.tableIconSize,cursor:"pointer",customClassName:p?St:"",onClick:a.bind(this,d,c)},null),default:()=>"修改列宽"}),r(on,{icon:"row_end",title:"固定在列尾",customClassName:S?St:"",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 f=`${i}FixedActivated`,m=`${i==="left"?"right":"left"}FixedActivated`;u[m]=!1,u[f]=!u[f],u[f]?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[f,m]=Pt(u,t.value);if(f===null||m===null)return;f.splice(m,1);const[y,g]=Pt(i,t.value);y===null||g===null||(c==="before"?y.splice(g,0,u):y.splice(g+1,0,u),fn(n)||y.unshift(n),o(y))}}},render(){return r(je,{displayDirective:"show",trigger:"click",showArrow:!1},{trigger:()=>r(P,{name:"setting",size:se.tableIconSize,cursor:"pointer",customClassName:"r-table__setting"},null),default:()=>r(wo,{class:"r-table__c-tree",data:this.treeDataSource,blockLine:!0,draggable:!0,keyboard:!1,labelField:"title",selectable:!1,renderSwitcherIcon:yr.bind(this),onDrop:this.treeDrop.bind(this)},null)})}}),_r=R({name:"TablePrint",props:ze,setup(e){const{wrapperRef:n}=Ce(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:""),xn(n,{printOptions:o,domToImageOptions:a})}}},render(){return r(P,{name:"print",size:se.tableIconSize,cursor:"pointer",onClick:this.printTableClick.bind(this)},null)}}),Sr=R({name:"TablePropsSelect",props:{...ze,onPopselectChange:{type:[Function,Array],default:null},onInitialed:{type:[Function,Array],default:null}},setup(e){const n=B(!1),t=B([]),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(hn,{value:this.propsPopselectValue,"onUpdate:value":e=>this.propsPopselectValue=e,options:gr,trigger:"click",multiple:!0,onUpdateValue:this.updatePopselectValue.bind(this)},{default:()=>[r(P,{name:"expanded",size:se.tableIconSize,cursor:"pointer",style:"transform: rotate(270deg);"},null)]})}});function wr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Cr=R({name:"RTable",inheritAttrs:!1,props:ze,setup(e,n){const{expose:t,emit:o}=n,a=ie("rTableInst"),l=ie("wrapperRef"),s=rt(16),i=rt(16),u=re({x:0,y:0,showContextMenu:!1}),c=re({size:e.size}),f=B(Object.assign({striped:!1,bordered:!1},Ve(e,"striped","bordered"))),m=(d,v)=>{const{onContextMenuClick:w}=e;w&&F(w,d,v),u.showContextMenu=!1},y=(d,v)=>{var k;return{...(k=e.rowProps)==null?void 0:k.call(e,d,v),onContextmenu:e.disabledContextMenu?void 0:b=>{b.preventDefault(),u.showContextMenu=!1,te().then(()=>{u.showContextMenu=!0,u.x=b.clientX,u.y=b.clientY})}}},g=d=>{c.size=d},p=d=>{const{onUpdateColumns:v,"onUpdate:columns":w}=e;v&&F(v,d),w&&F(w,d)},_=()=>{const{toolOptions:d}=e;return d==null?void 0:d.filter(Boolean).map(v=>typeof v=="function"?v():v)},h=d=>{Object.keys(f.value).forEach(w=>{f.value[w]=d.includes(w)})},S=d=>{const{tool:v}=d;if(!v)return;const w=()=>r(I,{align:"center"},{default:()=>[r(_r,d,null),r(hr,N(d,{onChangeSize:g.bind(this)}),null),r(vr,null,null),r(br,N(d,{onUpdateColumn:p.bind(this)}),null),r(Sr,N(d,{onPopselectChange:h.bind(this),onInitialed:h.bind(this)}),null)]});return e.toolOptions?e.coverTool?()=>{let k;return r(I,{align:"center"},wr(k=_())?k:{default:()=>[k]})}:()=>r(I,{align:"center"},{default:()=>[w(),_()]}):w};return De(()=>{const{onRegister:d}=e;d&&a.value&&F(d,a.value,{uuidTable:i,uuidWrapper:s,wrapperRef:l})}),Tn(se.tableKey,{uuidTable:i,uuidWrapper:s,wrapperRef:l}),t(),{uuidWrapper:s,uuidTable:i,contextMenuReactive:u,rTableInst:a,combineRowProps:y,contextMenuSelect:m,privateReactive:c,tool:S,wrapperRef:l,propsPopselectValue:f}},render(){const{$props:e,$attrs:n,$slots:t,uuidTable:o,contextMenuReactive:a,uuidWrapper:l,privateReactive:s,propsPopselectValue:i}=this,{class:u,...c}=n,{tool:f,combineRowProps:m,contextMenuSelect:y}=this,{renderWrapperHeader:g,wrapperBordered:p,disabledContextMenu:_,contextMenuOptions:h,title:S,tableFlexHeight:d,cardProps:v,...w}=e;return r(ut,N(v,{id:l},c,{ref:"wrapperRef",bordered:p,class:u}),{default:()=>r(kn,null,[r(Co,N({id:o},w,i,{rowProps:m.bind(this),size:s.size,ref:"rTableInst",style:{height:d!=null?j(d):null}}),{...t}),_?null:r(xe,{show:a.showContextMenu,placement:"bottom-start",trigger:"manual",x:a.x,y:a.y,options:h,onClickoutside:()=>a.showContextMenu=!1,onSelect:y.bind(this)},null)]),header:g?_e(S,{defaultElement:r("div",{style:"display: none;"},null)}):null,"header-extra":f(e),footer:()=>{var k;return(k=t.tableFooter)==null?void 0:k.call(t)},action:()=>{var k;return(k=t.tableAction)==null?void 0:k.call(t)}})}}),Tr=()=>{const e=ne();let n={};const t=(g,p)=>{g&&(e.value=g,n=p)},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:g=>o().downloadCsv.call(null,g),filters:g=>o().filters.call(null,g),page:g=>o().page.call(null,g),scrollTo:g=>o().scrollTo(g),sort:(g,p)=>o().sort.call(null,g,p),print:g=>{const{uuidWrapper:p}=n;if(p){const _=document.getElementById(p);xn(_,g)}},filter:g=>o().filter.call(null,g)}]},Un=(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=Un(a.children,n,t);if(l)return l}}},an=e=>{const n=Q(e);return n?n.findIndex(o=>{const{type:a,multiple:l}=o;if(a==="selection"&&(l==null||l===!0))return!0})!==-1:!0},kr=(e,n,t,o)=>{const a=Q(e);return a?n.reduce((l,s)=>{const i=Q(t).findIndex(c=>c[o]===s);if(i!==-1)return l.push(Q(t)[i]),l;const u=a.findIndex(c=>c[o]===s);return u!==-1&&l.push(a[u]),l},[]):t},Si=(e,n,t)=>{const o=B([]),a=B([]),{rowKey:l="key",onChange:s}=t||{},i=T(()=>an(n)),u=(p,_,h)=>{o.value=p,a.value=Q(kr(e,p,a,l)),s==null||s(p,a.value,h),an(n)},c=()=>o.value,f=()=>a.value,m=()=>{o.value=[],a.value=[],s==null||s(o.value,a.value,{row:void 0,action:"uncheckAll"})},y=p=>{if(p==null)return;let _;o.value=o.value.filter(h=>h!==p),a.value=a.value.filter(h=>h[l]===p?(_=h,!1):!0),s==null||s(o.value,a.value,{row:_,action:"uncheck"})},g=p=>{if(o.value.includes(p))return;const _=!i.value&&o.value.length>=1,h=Un(Q(e)||[],l,p);_?o.value=[p]:o.value.push(p),h&&(_?a.value=[h]:a.value.push(h),s==null||s(o.value,a.value,{row:h,action:"check"}))};return Bt(()=>{m()}),[o,{checkedRows:a,checkedRowKeysBind:u,getKeys:c,getRows:f,clearAll:m,clearKey:y,selectKey:g}]},Or={transitionPropName:"fade",transitionMode:"out-in",transitionAppear:!0},Ar=R({name:"RTransitionComponent",__name:"index",props:Go({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},Or),setup(e){const{getKeepAliveInclude:n}=Kr(),{getKeepAliveConfig:t}=Y();return(o,a)=>{const l=Yo("RouterView");return Oe(),Ho("div",null,[r(l,null,{default:yt(({Component:s,route:i})=>[s?(Oe(),Fe(ja,{key:0,name:o.transitionPropName,mode:o.transitionMode,appear:o.transitionAppear},{default:yt(()=>[(Oe(),Fe(Xo,null,{default:yt(()=>[Q(t).setupKeepAlive?(Oe(),Fe(Jo,{key:0,max:Q(t).maxKeepAliveLength,include:Q(n),exclude:Q(t).keepAliveExclude},[(Oe(),Fe(Xt(s),{key:i.fullPath}))],1032,["max","include","exclude"])):(Oe(),Fe(Xt(s),{key:i.fullPath}))]),_:2},1024))]),_:2},1032,["name","mode","appear"])):Zo("",!0)]),_:1})])}}}),$n=R({name:"RForm",props:Fn,setup(e,{expose:n}){const t=ie("formRef");return De(()=>{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(me,N(e,n,{ref:"formRef"}),{...t})}}),Rr=(e,n)=>{const t=ne(),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,f)=>a().validate.call(null,c,f),restoreValidation:()=>a().restoreValidation.call(null),formModel:()=>tt(e)||{},formRules:()=>tt(n)||{}}]},Pr=["addTabClass","addTabStyle","paneClass","paneStyle","paneWrapperStyle","tabClass","tabStyle","type","label","addable","closable","onAdd","onClose","placement","animated","justifyContent","builtinThemeOverrides","displayDirective"],xr={tabPaddingSmallSegment:"4px 7px",tabPaddingMediumSegment:"6px 11px",tabPaddingLargeSegment:"8px 11px"},Mr=Ue({...To,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:"fitContent"}},...Pr);function Er(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const xt=e=>{const{icon:n,label:t}=e;return n?r(I,{align:"center",wrap:!1,size:"small"},{default:()=>{var o;return[(o=_e(n))==null?void 0:o(),r("div",null,[t])]}}):t},Dr=e=>{if(typeof e.popover=="string")return r(je,null,{trigger:()=>xt(e),default:()=>e.popover});if(fe(e.popover,"Object")){const{popover:n}=e,{label:t,...o}=n;return r(je,o,{trigger:()=>xt(e),default:()=>t})}},zr=R({name:"RSegment",props:Mr,setup(e,{expose:n}){const t=T(()=>{const{width:o}=e;let a="";switch(o){case"block":a="100%";break;case"fitContent":a="fit-content";break;default:a=typeof o=="number"?j(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(vn,N(n,{ref:"segmentRef",style:[o],class:"r-segment",type:"segment",animated:!0,themeOverrides:Object.assign({},xr,a)}),Er(e=t.map(l=>r(ko,{key:l.key,name:l.key,tab:l.popover?Dr(l):xt(l),disabled:l.disabled},{...l.slots})))?e:{default:()=>[e]})}}),Ir={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:Ir,setup(e){const n=ie("barcodeRef"),t=T(()=>({"--r-barcode-width":j(e.width),"--r-barcode-height":j(e.height)}));let o;const a=()=>{try{const{format:l,text:s,options:i,onSuccess:u}=e,c=Object.assign({},i,{format:l});ea(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 ue(()=>{e.watchText?o=Ee(()=>e.text,a):o==null||o()}),De(()=>{a()}),It(()=>{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(ct,{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)]})}}),Lr={...Ue(ze,["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 Fr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const Ci=R({name:"RTablePro",props:Lr,setup(e){const[n,{clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f}]=Tr(),[m,{getPage:y,getPageSize:g,setCallback:p,setItemCount:_,resetPagination:h,getItemCount:S}]=Ms(void 0,{prefix:A=>`${A.itemCount}`}),d=T(()=>e.request),v=()=>({getItemCount:S,getPage:y,getPageSize:g}),w=()=>{const{onTablePaginationUpdate:A}=e;A&&F(A,v())},k=A=>{const L=Object.assign({},e.requestConfig,A),{params:C,formatRangeTime:E}=L;return E!=null&&E.length&&C&&E.forEach(K=>{const{key:oe,target:q}=K,he=C[oe];if(he&&(q!=null&&q.length)){const[ke,ae]=he;C[q[0]]=ke,C[q[1]]=ae}else C[oe]=null,C[q[0]]=null,C[q[1]]=null}),Object.assign({},C,{page:y(),pageSize:g()})},b=A=>{var C;h();const L=k(A);(C=d.value)==null||C.call(d,L)},x=A=>{var C;const L=k(A);(C=d.value)==null||C.call(d,L)};return ue(()=>{_(e.paginationCount),p(()=>{const{manual:A}=e;A||x(),w()})}),De(()=>{const{onRegister:A}=e;A&&F(A,{getTablePagination:v,runTableRequest:b,clearFilters:t,clearSorter:o,downloadCsv:a,filters:l,page:s,scrollTo:i,sort:u,print:c,filter:f,getCurrentTableRequestParams:k})}),{register:n,paginationRef:m}},render(){const{register:e,$props:n,paginationRef:t,$slots:o}=this,{onRegister:a,showPagination:l,...s}=n;return r(Cr,N(s,{onRegister:e,pagination:l?t:void 0}),Fr(o)?o:{default:()=>[o]})}}),Ti=()=>{const e=B(),n=p=>{p&&(e.value=p)},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:p=>t().downloadCsv.call(null,p),filters:p=>t().filters.call(null,p),page:p=>t().page.call(null,p),scrollTo:p=>t().scrollTo(p),sort:(p,_)=>t().sort.call(null,p,_),getTablePagination:()=>t().getTablePagination.call(null),runTableRequest:p=>t().runTableRequest.call(null,p),print:p=>t().print.call(null,p),getCurrentTableRequestParams:p=>t().getCurrentTableRequestParams.call(null,p)}]},Br=()=>({grid:!0,partial:!1,keyboard:{enabled:!0}}),Vr={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:Br()},onRegister:{type:[Function,Array],default:void 0}};let ln=!1;const ki=R({name:"RFlow",props:Vr,setup(e){const n=ie("flowDomRef"),t=T(()=>{const{width:m,height:y}=e;return{"--r-flow-width":j(m),"--r-flow-height":j(y)}}),o=ne(),a={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1};let l;const s={nodes:[],edges:[]},i={readonly:e.readonly},u=()=>{var m;ln||((m=e.use)==null||m.filter(Boolean).forEach(y=>Jt.use(y)),ln=!0)},c=m=>{if(!o.value)return;const y=Object.entries(a).reduce((g,[p])=>(g[p]=!m,g),{});Object.assign(a,y,{isSilentMode:m}),o.value.updateEditConfig(a)},f=m=>{if(u(),!n.value)return;const{options:y,readonly:g}=e;o.value=new Jt({container:Q(n.value),...Ue(y,"container")}),o.value.render(m||s),c(g)};return ue(()=>{e.watchData?l=Ee(()=>e.data,m=>{o.value?m&&o.value.renderRawData(m):f(m)}):l==null||l(),e.readonly!==i.readonly&&(c(e.readonly),i.readonly=e.readonly)}),De(()=>{f();const{onRegister:m}=e;m&&o.value&&F(m,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}}]},jr=(e,n,t)=>!e||typeof e!="object"?!1:e[n]===t,Kn=(e,n,t)=>{const o=[];if(jr(e,n,t))return o.push(e),o;if(e.children&&e.children.length>0)for(const a of e.children){const l=Kn(a,n,t);l.length>0&&o.push(e,...l)}return o},Nr=(e,n,t)=>{const o=[];for(const a of e){const l=Kn(a,n,t);l.length>0&&o.push(...l)}return o},rn=e=>{const{dynamicDocumentTitle:n}=Me();if(!n)return;const{breadcrumbLabel:t}=e;if(!t)return;const{sideBarLogo:o}=Me(),a=o?o.title:"";document.title=t+" - "+a},Ur=e=>{const{meta:{icon:n}}=e;if(!n)return;if(fe(n,"Object"))return()=>n;const{menuConfig:t}=Me(),{collapsed:o}=jt(),a=dt(P,{name:n,size:o?t.collapsedIconSize:t.iconSize,cursor:"pointer"},{});return()=>a},Wn=e=>{const{meta:{extra:n}}=e;if(!n)return;const{show:t}=n;if(t===!1)return;const{t:o}=$e(),{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,f=()=>l&&(i||a)||!l&&(i||a)?null:{"padding-right":"0"};if(fe(n,"Object"))return()=>dt(Oo,{...u,type:s||"primary",style:f()},{default:()=>c(),icon:()=>l})},sn=()=>{const{getRootPath:e}=Le();return at(J.appMenuKey,"sessionStorage",{defaultValue:e.value})},qn=()=>Jl(Hl()),$r=()=>Xl(qn()),Mt=["redirect","breadcrumbLabel","children","key","meta","name","path","show","fullPath"];let Ye;const Gn=(e,n)=>{var t;if(Ye&&Zt(Ye.fullPath,n))return Ye;for(const o of e){if(Zt(o.fullPath,n))return Ye=o,o;if((t=o.children)!=null&&t.length){Gn(o.children,n);continue}}},jt=pt("menu",()=>{const{push:e,getRoutes:n}=mt(),t=ga(),{t:o}=$e(),{setKeepAliveInclude:a}=Wr(),l=re({menuKey:sn(),options:[],collapsed:!1,menuTagOptions:[],breadcrumbOptions:[],currentMenuOption:null}),s=B(!0),i=(d,v,w)=>{Lt(l,d,v,w)},u=d=>{const{meta:v}=d,{i18nKey:w,noLocalTitle:k}=v,b=T(()=>w?o(`${w}`):k),x={...d,key:d.fullPath,label:()=>dt(yn,null,{default:()=>b.value}),breadcrumbLabel:b.value},A=Object.assign({},x,{icon:Ur(d),extra:Wn(d)});return d.fullPath===sn()&&(l.currentMenuOption=A),A.show=In(A),A},c=d=>{l.breadcrumbOptions=Q(Nr(l.options,"fullPath",d))},f=(d,v=!0)=>{const k=Array.isArray(d)?[...d]:[d];v?l.menuTagOptions.push(...k):l.menuTagOptions=k},m=(d,v)=>{l.menuTagOptions.find(k=>k.fullPath===d)||l.menuTagOptions.push(v)},y=(d,v,w)=>{const{meta:k}=v;if(k.windowOpen)window.open(k.windowOpen);else{e({path:String(d),query:w});const{sameLevel:b}=k;if(a(v),rn(v),!b)m(d,v),c(d),l.menuKey=d,l.currentMenuOption=v,Ft(J.appMenuKey,d);else{const x=Ve(u(v),Mt);l.breadcrumbOptions.find(L=>L.key===x.key)||l.breadcrumbOptions.push({...x,fullPath:String(x.key)})}}},g=async(d,v)=>{const[w]=d.split("?"),k=n().find(b=>b.path===w);if(!((k==null?void 0:k.path)==="/"||!(k!=null&&k.path)||(k==null?void 0:k.path)==="/login")&&k){const b=Ve(k,Mt);y(w,u({...b,fullPath:b.path}),v)}},p=()=>new Promise(d=>{const v=(k,b)=>{var A;const x=[];for(const L of k){let C=`${b.endsWith("/")?b:b+"/"}${L.path}`;if(C=C.replace(/\/+/g,"/"),(A=L.children)!=null&&A.length)L.children=v(L.children,C);else if(!Zn(L.meta))continue;x.push(u({...L,fullPath:C}))}return x};l.options=v(qn(),"");const w=l.currentMenuOption||Gr(l.options);w&&(l.breadcrumbOptions.length||c(w.key),m(w.fullPath,w),rn(w)),d()}),_=d=>l.collapsed=d,h=(d,v=1)=>l.menuTagOptions.splice(d,v),S=async()=>{s.value&&(await p(),s.value=!1)};return Ee(()=>t.fullPath,async(d,v)=>{await S(),d!==v&&await g(d,t.query)},{immediate:!0}),{...we(l),changeMenuModelValue:y,collapsedMenu:_,spliceMenTagOptions:h,setMenuTagOptions:f,resolveOption:u,updateMenuState:i,setupAppMenu:p}},{persist:{key:J.appPiniaMenuStore,storage:window.localStorage,pick:["breadcrumbOptions","menuKey","menuTagOptions","collapsed"]}}),Hn=pt("signing",()=>{const e=re({signingCallback:{}}),n=a=>new Promise((l,s)=>{fn(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}=oo(),{appPiniaMenuStore:s,appPiniaSigningStore:i,token:u,signing:c,appMenuKey:f}=J;window.$message.info("账号退出中..."),ve("__all_sessionStorage__","sessionStorage"),ve(i,"localStorage"),ve(s,"localStorage"),ve(u,"localStorage"),ve(c,"localStorage"),ve(f,"localStorage"),ve(J.isAppLockScreen,"localStorage"),l(),a&&(window.location.replace("#/"),setTimeout(()=>{window.location.reload()},0))},o=()=>{t(!0)};return{...we(e),signing:n,logout:o,clearSigningCallback:t}},{persist:{key:J.appPiniaSigningStore,pick:["signingCallback"],storage:window.localStorage}}),Yn=pt("keepAlive",()=>{const e=re({keepAliveInclude:[]}),n=()=>e.keepAliveInclude.length,t=a=>{const l=n(),{name:s,meta:{keepAlive:i}}=a,{maxKeepAliveLength:u}=Me().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{...we(e),setKeepAliveInclude:t,getKeepAliveInclude:o}},{persist:{key:J.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:["keepAliveInclude"]}}),Te=()=>{const e=jt(),n=T(()=>e.options),t=T(()=>e.breadcrumbOptions),o=T(()=>e.menuKey),a=T(()=>{const{getRootPath:i}=Le();return e.menuTagOptions.map((u,c,f)=>(u.key===o.value&&u.key!==i.value?u.closeable=!0:u.closeable=!1,u.key===i.value&&(u.closeable=!1),f.length<=1&&(u.closeable=!1),u))}),l=T(()=>e.currentMenuOption),s=T(()=>e.collapsed);return{getMenuOptions:n,getBreadcrumbOptions:t,getMenuKey:o,getMenuTagOptions:a,getCurrentMenuOption:l,getCollapsed:s}},Ie=()=>{const{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}=jt();return{changeMenuModelValue:e,collapsedMenu:n,spliceMenTagOptions:t,setMenuTagOptions:o,resolveOption:a,updateMenuState:l,setupAppMenu:s}},Y=()=>{const e=Me(),n=T(()=>e.drawerPlacement),t=T(()=>e.primaryColorOverride),o=T(()=>e._appTheme),a=T(()=>e.appTheme),l=T(()=>e.menuTagSwitch),s=T(()=>e.breadcrumbSwitch),i=T(()=>e.localeLanguage),u=T(()=>e.lockScreenSwitch),c=T(()=>e.copyrightSwitch),f=T(()=>e.contentTransition),m=T(()=>e.watermarkSwitch),y=T(()=>e.watermarkConfig),g=T(()=>e.appRootRoute),p=T(()=>e.sideBarLogo),_=T(()=>e.keepAliveConfig),h=T(()=>e.menuConfig),S=T(()=>e.colorWeakness),d=T(()=>e.dynamicDocumentTitle);return{getDrawerPlacement:n,getPrimaryColorOverride:t,getAppTheme:o,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getLocaleLanguage:i,getLockScreenSwitch:u,getCopyrightSwitch:c,getContentTransition:f,getWatermarkSwitch:m,getWatermarkConfig:y,getAppRootRoute:g,getSideBarLogo:p,getKeepAliveConfig:_,getMenuConfig:h,getAppThemeStr:a,getColorWeakness:S,getDynamicDocumentTitle:d}},$=()=>{const{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=Me();return{updateLocale:e,changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}},Xn=()=>{const e=Hn();return{getSigningCallback:T(()=>e.signingCallback)}},Jn=()=>{const{signing:e,logout:n,clearSigningCallback:t}=Hn();return{signing:e,logout:n,clearSigningCallback:t}},Kr=()=>{const e=Yn();return{getKeepAliveInclude:T(()=>e.keepAliveInclude)}},Wr=()=>{const{setKeepAliveInclude:e,getKeepAliveInclude:n}=Yn();return{setKeepAliveInclude:e,getKeepAliveInclude:n}},Ai=e=>{const n=ia();e.use(n),n.use(sa)},Zn=e=>{const{getSigningCallback:n}=Xn(),{role:t}=e;return He!=null&&He.length&&He.includes(n.value.role)||!t||!(t!=null&&t.length)?!0:t?t.includes(n.value.role):!0},qr=e=>{const{setupRouterLoadingBar:n,setupRouterGuard:t}=Za;n&&er(e),t&&Zl(e)},Gr=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)},Hr=ne(),Yr=R({name:"SiderBarLogo",props:{collapsed:{type:Boolean,required:!0}},setup(){const e=mt(),{getSideBarLogo:n}=Y();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(P,{name:n.value.icon,size:"30",cursor:a},null);if(fe(n.value.icon,"Object"))return _e(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:Hr},[e!=null&&e.icon?n?r(ot,{placement:"right"},{trigger:()=>t({cursor:"pointer"}),default:()=>e.title}):t({cursor:"pointer"}):n?r(ot,{placement:"right"},{trigger:()=>r(Gt,{type:"primary",size:18},{default:()=>{var a;return[((a=e.title)==null?void 0:a[0])||null]}}),default:()=>e.title}):null,r(Gt,{class:[n?null:"ray-menu__logo-title--open","ray-menu__logo-title",'class="n-menu-item-content"'],type:"primary",size:18},{default:()=>[r(yn,null,{default:()=>[e.title]})]})]):null}}),Xr=R({name:"AppMenu",setup(){const e=ne(),{changeMenuModelValue:n,collapsedMenu:t,updateMenuState:o}=Ie(),{getMenuConfig:a}=Y(),{getMenuOptions:l,getCollapsed:s,getMenuKey:i}=Te(),u=T({get:()=>(setTimeout(()=>{m(),Mn()},300),i.value),set:()=>{c.value&&pe("globalDrawerValue",!1)}}),{isTabletOrSmaller:c}=We({observer:g=>{g&&o("collapsed",!1)}}),f=T({get:()=>ft("globalDrawerValue").value,set:g=>{pe("globalDrawerValue",g)}}),m=()=>{const g=u.value;g!=null&&te(()=>{var p,_;return(_=(p=e.value)==null?void 0:p.showOption)==null?void 0:_.call(p,g)})};return{isTabletOrSmaller:c,BasicMenu:()=>r(Ro,{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:Dn,collapsed:s.value,onExpand:()=>{o("collapsed",!1)},onCollapse:()=>{o("collapsed",!0)},inverted:a.value.inverted},{default:()=>[a.value.menuSiderBarLogo?r(Yr,{collapsed:s.value},null):null,r(Ao,{ref:e,class:"r-menu--app",keyField:"fullPath",value:u.value,"onUpdate:value":g=>u.value=g,options:l.value,indent:a.value.collapsedIndent,collapsed:s.value,collapsedIconSize:a.value.collapsedIconSize,collapsedWidth:a.value.collapsedWidth,onUpdateValue:(g,p)=>{n(g,p)},accordion:a.value.accordion,iconSize:a.value.iconSize,inverted:a.value.inverted},null)]}),modelGlobalDrawerValue:f}},render(){const{isTabletOrSmaller:e,BasicMenu:n}=this;return e?r(bn,{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 Jr{constructor(){Kt(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 wt={requestInstance:null,responseInstance:null},Ct={implementRequestInterceptorArray:[],implementResponseInterceptorArray:[]},Xe={implementRequestInterceptorErrorArray:[],implementResponseInterceptorErrorArray:[]},Zr=new Jr,Ri=()=>{const e=(i,u)=>{u==="requestInstance"?wt.requestInstance=i:wt.responseInstance=i},n=i=>wt[i],t=(i,u,c)=>{c==="ok"?Ct[i]=u:Xe[i]=u},o=(i,u)=>u==="ok"?Ct[i]:Xe[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 f=c==="ok"?Ct[u]:Xe[u],m=n(i),{MODE:y}=Rt();m&&a(f,m,y)},fetchError:(i,u,c)=>{const f=Xe[c],{MODE:m}=Rt();a(f,u,m)}}},Qr=R({name:"AppRequestCancelerProvider",setup(e,{expose:n}){ha(()=>{Zr.cancelAllRequest()}),n()},render(){return r("div",{class:"app-style-provider"},null)}}),Qn=R({name:"LayoutContentWrapper",setup(){mt();const{maximize:e}=no(),{getContentTransition:n}=Y(),t=B(!1),o={opacitySpinning:"0"},{globalMainLayoutLoad:a,layoutContentMaximize:l,layoutContentSpinning:s}=el();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(ct,{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(P,{name:"out",size:"16",cursor:"pointer"},null)]):null,r(Qr,null,null),e?r(Ar,{class:"content-wrapper",transitionPropName:s+"-transform"},null):null]})}}),es=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"}));var ts={pkg:{dependencies:{"@logicflow/core":"2.0.6","@logicflow/extension":"2.0.10","@vueuse/core":"^12.0.0",axios:"^1.7.9",clipboard:"^2.0.11","currency.js":"^2.0.4",dayjs:"^1.11.13",echarts:"^5.5.1","html-to-image":"1.11.11",interactjs:"1.10.27",jsbarcode:"3.11.6","lodash-es":"^4.17.21",mockjs:"1.1.0","naive-ui":"^2.40.3",pinia:"^2.3.0","pinia-plugin-persistedstate":"^4.1.3","print-js":"^1.6.0",vue:"^3.5.13","vue-demi":"0.14.10","vue-hooks-plus":"2.2.1","vue-i18n":"^9.13.1","vue-router":"^4.4.0","vue3-next-qrcode":"2.0.10"},devDependencies:{"@commitlint/cli":"^19.3.0","@commitlint/config-conventional":"^19.2.2","@eslint/eslintrc":"3.1.0","@eslint/js":"9.11.0","@interactjs/types":"1.10.27","@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.10","@typescript-eslint/eslint-plugin":"^8.16.0","@typescript-eslint/parser":"^8.16.0","@vitejs/plugin-vue":"^5.1.0","@vitejs/plugin-vue-jsx":"^4.1.1","@vitest/ui":"1.5.2","@vue/eslint-config-prettier":"^9.0.0","@vue/eslint-config-typescript":"^14.1.4","@vue/test-utils":"2.4.6",autoprefixer:"^10.4.20",depcheck:"^1.4.7",eslint:"^9.11.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-vue":"^9.26.0",globals:"15.12.0","happy-dom":"14.12.3",husky:"8.0.3","lint-staged":"^15.2.2",postcss:"^8.4.49","postcss-px-to-viewport-8-with-include":"1.2.2",prettier:"^3.3.2","rollup-plugin-gzip":"4.0.1",sass:"1.77.1","svg-sprite-loader":"^6.0.11",typescript:"^5.6.3","unplugin-auto-import":"^0.18.2","unplugin-vue-components":"^0.27.4",vite:"^6.0.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.4","vite-plugin-mock-dev-server":"1.8.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^5.1.0",vitest:"2.0.5","vue-tsc":"^2.1.10"},name:"ray-template",version:"5.0.7"},layout:{copyright:"Copyright © 2022-present Ray"},appPrimaryColor:{primaryColor:"#2d8cf0",primaryFadeColor:"rgba(45, 140, 240, 0.8)"}};const ns=R({name:"LayoutFooterWrapper",setup(){const{layout:{copyright:e}}=ts;return{copyright:e}},render(){return this.copyright?r("div",{class:"layout-footer-wrapper"},[this.copyright]):""}}),os=R({name:"TooltipIcon",props:{...Po,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(P,{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(ot,this.$props,{trigger:()=>r(e,null,null),default:()=>this.tooltipText}):r(e,null,null)}}),as=R({name:"ThemeSegment",setup(){const{system:e}=wn(),{getAppThemeStr:n,getAppTheme:t}=Y(),{updateSettingState:o}=$(),a=[{label:"深色",key:"dark",icon:()=>r(P,{name:"dark",size:"16"},null)},{label:"浅色",key:"light",icon:()=>r(P,{name:"light",size:"16"},null)},{label:"自动",key:"auto",icon:()=>r(P,{name:"system_os",size:"16"},null)}],l=T({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 ue(()=>{s(l.value,e.value)}),{options:a,modelAppTheme:l}},render(){const{options:e}=this;return r(zr,{options:e,size:"small",width:"block",value:this.modelAppTheme,"onUpdate:value":n=>this.modelAppTheme=n},null)}}),Ke=Symbol("segmentDrawer"),ls=R({name:"SegmentViewsAppearance",setup(){const e=Ce(Ke,{}),{changePrimaryColor:n,updateSettingState:t,toggleColorWeakness:o}=$();return{toggleColorWeakness:o,model:e,changePrimaryColor:n,updateSettingState:t}},render(){const{toggleColorWeakness:e,model:n,changePrimaryColor:t,updateSettingState:o}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("系统主题")]}),r(as,null,null),r(le,null,{default:()=>[W("内置主题")]}),r(xo,{showPreview:!0,swatches:Se.appThemeColors,value:n.primaryColorOverride.common.primaryColor,"onUpdate:value":a=>n.primaryColorOverride.common.primaryColor=a,onUpdateValue:t.bind(this)},null),r(le,null,{default:()=>[W("切换动画")]}),r(Ht,{value:n.contentTransition,"onUpdate:value":a=>n.contentTransition=a,options:Ga,onUpdateValue:a=>{o("contentTransition",a)}},null),r(le,null,{default:()=>[W("配置入口出现位置")]}),r(Ht,{value:n.drawerPlacement,"onUpdate:value":a=>n.drawerPlacement=a,options:[{label:"右边",value:"right"},{label:"左边",value:"left"}],onUpdateValue:a=>{o("drawerPlacement",a)}},null),r(le,null,{default:()=>[W("其他设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(D,{label:"面包屑"},{default:()=>[r(ee,{value:n.breadcrumbSwitch,"onUpdate:value":a=>n.breadcrumbSwitch=a,onUpdateValue:a=>o("breadcrumbSwitch",a)},null)]}),r(D,{label:"标签页"},{default:()=>[r(ee,{value:n.menuTagSwitch,"onUpdate:value":a=>n.menuTagSwitch=a,onUpdateValue:a=>o("menuTagSwitch",a)},null)]}),r(D,{label:"页底信息"},{default:()=>[r(ee,{value:n.copyrightSwitch,"onUpdate:value":a=>n.copyrightSwitch=a,onUpdateValue:a=>o("copyrightSwitch",a)},null)]}),r(D,{label:"色弱模式"},{default:()=>[r(ee,{value:n.colorWeakness,"onUpdate:value":a=>n.colorWeakness=a,onUpdateValue:a=>{o("colorWeakness",a),e(a)}},null)]})]})]})}}),rs=R({name:"SegmentViewsCommon",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("基础设置")]}),r(me,{labelPlacement:"left",class:"setting-drawer__overrides-form",showFeedback:!1},{default:()=>[r(D,{label:"页面缓存"},{default:()=>[r(ee,{value:e.keepAliveConfig.setupKeepAlive,"onUpdate:value":t=>e.keepAliveConfig.setupKeepAlive=t,onUpdateValue:t=>n("keepAliveConfig",{setupKeepAlive:t})},null)]}),r(D,{label:"动态浏览器标题"},{default:()=>[r(ee,{value:e.dynamicDocumentTitle,"onUpdate:value":t=>e.dynamicDocumentTitle=t,onUpdateValue:t=>n("dynamicDocumentTitle",t)},null)]})]}),r(le,null,{default:()=>[W("缓存设置")]}),r(me,{labelPlacement:"top",showFeedback:!0,showRequireMark:!1,model:e.keepAliveConfig},{default:()=>[r(D,{label:"最大缓存数",feedback:T(()=>e.keepAliveConfig.maxKeepAliveLength<=0?"设置为【0】时缓存将会失效":"").value},{default:()=>[r(H,{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(D,{label:"排除缓存"},{default:()=>[r(Mo,{type:"success",value:e.keepAliveConfig.keepAliveExclude,"onUpdate:value":t=>e.keepAliveConfig.keepAliveExclude=t},null)]})]})]})}}),ss=R({name:"SegmentViewsWatermark",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,null,{default:()=>[W("基础设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(D,{label:"全屏水印"},{default:()=>[r(ee,{value:e.watermarkSwitch,"onUpdate:value":t=>e.watermarkSwitch=t,onUpdateValue:t=>n("watermarkSwitch",t)},null)]}),r(D,{label:"跨边界显示"},{default:()=>[r(ee,{value:e.watermarkConfig.cross,"onUpdate:value":t=>e.watermarkConfig.cross=t,onUpdateValue:t=>n("watermarkConfig",{cross:t})},null)]})]}),r(le,null,{default:()=>[W("个性化水印")]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(D,{label:"水印内容"},{default:()=>[r(zt,{value:e.watermarkConfig.content,"onUpdate:value":t=>e.watermarkConfig.content=t,onUpdateValue:t=>n("watermarkConfig",{content:t})},null)]}),r(D,{label:"字体尺寸"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.fontSize,"onUpdate:value":t=>e.watermarkConfig.fontSize=t,onUpdateValue:t=>n("watermarkConfig",{fontSize:t})},null)]}),r(D,{label:"字体行高"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.lineHeight,"onUpdate:value":t=>e.watermarkConfig.lineHeight=t,onUpdateValue:t=>n("watermarkConfig",{lineHeight:t})},null)]}),r(D,{label:"字体宽度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.width,"onUpdate:value":t=>e.watermarkConfig.width=t,onUpdateValue:t=>n("watermarkConfig",{width:t})},null)]}),r(D,{label:"字体高度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.height,"onUpdate:value":t=>e.watermarkConfig.height=t,onUpdateValue:t=>n("watermarkConfig",{height:t})},null)]}),r(D,{label:"x轴偏移"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.xOffset,"onUpdate:value":t=>e.watermarkConfig.xOffset=t,onUpdateValue:t=>n("watermarkConfig",{xOffset:t})},null)]}),r(D,{label:"x轴间隙"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.xGap,"onUpdate:value":t=>e.watermarkConfig.xGap=t,onUpdateValue:t=>n("watermarkConfig",{xGap:t})},null)]}),r(D,{label:"y轴偏移"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.yOffset,"onUpdate:value":t=>e.watermarkConfig.yOffset=t,onUpdateValue:t=>n("watermarkConfig",{yOffset:t})},null)]}),r(D,{label:"y轴间隙"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.yGap,"onUpdate:value":t=>e.watermarkConfig.yGap=t,onUpdateValue:t=>n("watermarkConfig",{yGap:t})},null)]}),r(D,{label:"旋转角度"},{default:()=>[r(H,{precision:0,showButton:!1,value:e.watermarkConfig.rotate,"onUpdate:value":t=>e.watermarkConfig.rotate=t,onUpdateValue:t=>n("watermarkConfig",{rotate:t})},null)]})]})]})}}),is=R({name:"SegmentViewsCustomMenu",setup(){const e=Ce(Ke,{}),{updateSettingState:n}=$();return{model:e,updateSettingState:n}},render(){const{model:e,updateSettingState:n}=this;return r(I,{vertical:!0,style:"width: 100%;",size:[0,0]},{default:()=>[r(le,{titlePlacement:"center"},{default:()=>[r(I,{wrap:!1,align:"center",size:[4,0]},{default:()=>[r(ot,{placement:"top",showArrow:!1},{trigger:()=>r(P,{name:"question",size:"16"},null),default:()=>"菜单更新是一个复杂、耗时的操作,请手动点击【更新菜单】按钮更新设置"}),r(_n,null,{default:()=>[W("菜单样式")]})]})]}),r(me,{showFeedback:!0,showRequireMark:!1,class:"setting-drawer__overrides-form"},{default:()=>[r(D,{label:"每级菜单缩进"},{default:()=>[r(H,{value:e.menuConfig.collapsedIndent,"onUpdate:value":t=>e.menuConfig.collapsedIndent=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIndent:t})},null)]}),r(D,{label:"菜单图标尺寸"},{default:()=>[r(H,{value:e.menuConfig.iconSize,"onUpdate:value":t=>e.menuConfig.iconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{iconSize:t})},null)]}),r(D,{label:"折叠菜单图标尺寸"},{default:()=>[r(H,{value:e.menuConfig.collapsedIconSize,"onUpdate:value":t=>e.menuConfig.collapsedIconSize=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedIconSize:t})},null)]}),r(D,{label:"菜单宽度"},{default:()=>[r(H,{value:e.menuConfig.menuWidth,"onUpdate:value":t=>e.menuConfig.menuWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{menuWidth:t})},null)]}),r(D,{label:"折叠菜单宽度"},{default:()=>[r(H,{value:e.menuConfig.collapsedWidth,"onUpdate:value":t=>e.menuConfig.collapsedWidth=t,min:0,precision:0,onUpdateValue:t=>n("menuConfig",{collapsedWidth:t})},null)]}),r(D,{showFeedback:!1,showLabel:!1},{default:()=>[r(X,{onClick:e.throttleSetupAppMenu,block:!0,type:"primary"},{default:()=>[W("更新菜单")]})]})]}),r(le,null,{default:()=>[W("其他设置")]}),r(me,{showFeedback:!1,showRequireMark:!1,class:"setting-drawer__overrides-form",labelPlacement:"left"},{default:()=>[r(D,{label:"反转色菜单"},{default:()=>[r(ee,{value:e.menuConfig.inverted,"onUpdate:value":t=>e.menuConfig.inverted=t,onUpdateValue:t=>n("menuConfig",{inverted:t})},null)]}),r(D,{label:"菜单标题"},{default:()=>[r(ee,{value:e.menuConfig.menuSiderBarLogo,"onUpdate:value":t=>e.menuConfig.menuSiderBarLogo=t,onUpdateValue:t=>n("menuConfig",{menuSiderBarLogo:t})},null)]}),r(D,{label:"手风琴菜单"},{default:()=>[r(ee,{value:e.menuConfig.accordion,"onUpdate:value":t=>e.menuConfig.accordion=t,onUpdateValue:t=>n("menuConfig",{accordion:t})},null)]}),r(D,{label:"原生滚动条"},{default:()=>[r(ee,{value:e.menuConfig.nativeScrollbar,"onUpdate:value":t=>e.menuConfig.nativeScrollbar=t,onUpdateValue:t=>n("menuConfig",{nativeScrollbar:t})},null)]})]})]})}}),us=R({name:"SettingDrawer",props:Eo,setup(){const{create:e}=pr(),{changePrimaryColor:n,updateSettingState:t}=$(),{getAppTheme:o,getPrimaryColorOverride:a,getMenuTagSwitch:l,getBreadcrumbSwitch:s,getCopyrightSwitch:i,getContentTransition:u,getWatermarkSwitch:c,getKeepAliveConfig:f,getMenuConfig:m,getDrawerPlacement:y,getColorWeakness:g,getWatermarkConfig:p,getDynamicDocumentTitle:_}=Y(),{setupAppMenu:h}=Ie(),S=Et(h,300),d=re({menuTagSwitch:l.value,breadcrumbSwitch:s.value,copyrightSwitch:i.value,contentTransition:u.value,watermarkSwitch:c.value,keepAliveConfig:f.value,menuConfig:m.value,drawerPlacement:y.value,colorWeakness:g.value,primaryColorOverride:a.value,watermarkConfig:p.value,dynamicDocumentTitle:_.value,throttleSetupAppMenu:S}),v=()=>{e({preset:"dialog",title:"恢复默认配置",type:"warning",content:"点击【确认初始化】按钮会恢复默认系统配置,是否继续?",positiveText:"确认初始化",negativeText:"取消",onPositiveClick:()=>{mo(Ln(),(w,k)=>{d[k]=w,t(k,w)}),S()}})};return Tn(Ke,d),{changePrimaryColor:n,getAppTheme:o,getPrimaryColorOverride:a,updateSettingState:t,modelReactive:d,defaultSettingBtnClick:v}},render(){const{defaultSettingBtnClick:e,$props:n}=this,{trapFocus:t,autoFocus:o,nativeScrollbar:a,...l}=n;return r(bn,N(l,{trapFocus:!1,autoFocus:!1,width:320}),{default:()=>[r(Do,{title:"个性化配置",closable:!0},{default:()=>r(vn,{type:"bar",animated:!0,defaultValue:"appearance"},{default:()=>[r(Ge,{name:"appearance",tab:"外观"},{default:()=>[r(ls,null,null)]}),r(Ge,{name:"menu",tab:"菜单"},{default:()=>[r(is,null,null)]}),r(Ge,{name:"watermark",tab:"水印"},{default:()=>[r(ss,null,null)]}),r(Ge,{name:"common",tab:"通用"},{default:()=>[r(rs,null,null)]})]}),footer:()=>r(I,{justify:"flex-start"},{default:()=>[r(X,{type:"warning",onClick:e},{icon:()=>r(P,{name:"reload"},null),default:()=>"初始化配置"})]})})]})}});function cs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ds=R({name:"SiderBarBreadcrumb",setup(){const{changeMenuModelValue:e}=Ie(),{getBreadcrumbOptions:n}=Te(),{isTabletOrSmaller:t}=We();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(Io,null,{default:()=>[r(Na,{tag:"li",name:"breadcrumb",appear:!0},cs(e=t.map(l=>r(zo,{key:l.fullPath,onClick:a.bind(this,l)},{default:()=>{var s;return[r(xe,{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 Tt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ps=R({name:"GlobalSearch",props:{show:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:n}){const{changeMenuModelValue:t,resolveOption:o}=Ie(),{getRoutes:a}=mt(),l=T({get:()=>e.show,set:b=>{n("update:show",b),b||g()}}),s=re({searchValue:null,searchOptions:[]}),i=[{icon:["↑","↓"],label:"切换",plain:!0},{icon:["↵"],label:"选择",plain:!0},{icon:["esc"],label:"关闭",plain:!0}];let u=0,c=u;const{isTabletOrSmaller:f}=We(),m=B(!1),y="content-item--active",g=()=>{s.searchOptions=[],s.searchValue=null,u=0,c=u},p=b=>{l.value||(b.ctrlKey||b.metaKey)&&b.key==="k"&&(b.preventDefault(),b.stopPropagation(),g(),l.value=!0)},_=b=>{if(b)m.value=!0;else{m.value=!1,s.searchOptions=[];return}const x=a().reduce((A,L)=>{var K;const C=Ve(L,["children","meta","path","name"]),E=o({...C,fullPath:L.path}),{breadcrumbLabel:U}=E;return(K=U==null?void 0:U.toLocaleLowerCase())!=null&&K.includes(b.toLocaleLowerCase())&&In(E)&&A.push(E),A},[]);setTimeout(()=>{s.searchOptions=x,te().then(()=>{S()}),m.value=!1},300)},h=b=>{if(b){const{meta:x}=b;x.windowOpen?window.open(x.windowOpen):(l.value=!1,t(b.fullPath,b),setTimeout(Mn,300))}},S=()=>{const b=s.searchOptions[u],x=s.searchOptions[c];b&&te().then(()=>{const A=st(`attr:data_path="${b.path}"`),L=x?st(`attr:data_path="${x==null?void 0:x.path}"`):null;if(L!=null&&L.length){const[C]=L;oa(C,y)}if(A!=null&&A.length){const[C]=A;Pn(C,y)}})},d=b=>{const{icon:x}=b;return typeof x=="string"&&x?r(P,{name:x,size:"24"},null):typeof x=="function"?r(x,null,null):r(P,{name:"search",size:"24"},null)},v=b=>{b==="up"&&(u-=1,u<0&&(u=s.searchOptions.length-1)),b==="down"&&(u+=1,u>=s.searchOptions.length&&(u=0))},w=b=>{const x=b.key;switch((x==="ArrowUp"||x==="ArrowDown"||x==="Enter")&&(b.preventDefault(),b.stopPropagation()),c=u<=0?0:u,x){case"ArrowUp":v("up");break;case"ArrowDown":v("down");break;case"Enter":const A=s.searchOptions[u];A&&h(A);break}S()},k=({menuOption:b})=>r(I,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(P,{name:"enter",size:"18",customClassName:"content-item-icon__enter"},null)]});return ue(()=>{f.value&&(l.value=!1)}),Ne(window,"keydown",b=>{p(b),w(b)},!0),{...we(s),modelShow:l,helperTipOptions:i,fuzzySearchMenuOptions:Et(_,300),searchItemClick:h,RenderPreIcon:d,isTabletOrSmaller:f,SearchItem:k,loading:m}},render(){const{isTabletOrSmaller:e,searchOptions:n,loading:t}=this,{SearchItem:o,fuzzySearchMenuOptions:a}=this;return e?r("div",{style:"display: none;"},null):r(gn,{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(ut,{class:"global-search__card",headerStyle:{padding:"12px 12px 0 12px"},contentStyle:{padding:"12px"},segmented:{action:"soft"}},{header:()=>r(zt,{size:"large",value:this.searchValue,"onUpdate:value":l=>this.searchValue=l,clearable:!0,onInput:a.bind(this)},{prefix:()=>r(P,{name:"search",size:"24"},null)}),default:()=>{let l;return r(Dt,null,{default:()=>[r(ct,{show:t},{default:()=>[n.length?r(I,{vertical:!0,size:[0,6],class:"global-search__card-content"},Tt(l=n.map((s,i)=>r(o,{menuOption:s,key:s.fullPath},null)))?l:{default:()=>[l]}):r(Lo,{size:"large",class:"global-search__empty"},{icon:()=>null,default:()=>r(I,{justify:"center",class:"global-search__empty-content"},{default:()=>[r(_n,null,{default:()=>[W("没有搜索结果")]})]})})]})]})},action:()=>{let l;return r(I,{justify:"flex-start",align:"center",size:[16,0]},Tt(l=this.helperTipOptions.map(s=>r(I,{key:s.label,size:[4,0]},{default:()=>[s.icon.map(i=>r(I,{class:"item-icon",align:"center",justify:"center"},Tt(i)?i:{default:()=>[i]})),r(I,{class:"item-label",align:"center"},{default:()=>[s.label]})]})))?l:{default:()=>[l]})}})])])]})}}),ms=R({name:"GlobalSearchButton",props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>{const o=aa();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(X,{bordered:!1,onClick:n.bind(this),round:!0,tertiary:!0,style:"margin-right: 16px"},{icon:()=>r(P,{name:"search",size:"16"},null),default:()=>r(I,{align:"center"},{default:()=>[t("headerTooltip.Search"),r("div",{class:"global-search-btn__label"},[e()])]})})}}),eo=R({name:"AppAvatar",props:{...Fo,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}=Xn();return{getSigningCallback:e}},render(){const{getSigningCallback:e,avatarSize:n,spaceSize:t,$props:o,vertical:a}=this;return r(X,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[r(I,{align:"center",size:t,vertical:a},{default:()=>[r(Bo,N(o,{src:e==null?void 0:e.avatar,objectFit:"cover",round:!0,size:n}),{default:()=>{var l;return e.avatar?null:(l=e==null?void 0:e.name)==null?void 0:l[0]}}),e==null?void 0:e.name]})]})}}),fs=()=>[{key:"person",label:"个人信息"},{key:"lockScreen",label:"锁定屏幕"},{type:"divider",key:"d1"},{key:"logout",label:"退出登陆"}],gs={logout:()=>{const{logout:e}=Jn();window.$dialog.warning({title:"提示",content:"您确定要退出登录吗",positiveText:"确定",negativeText:"不确定",onPositiveClick:()=>{e()}})},lockScreen:()=>{const{updateSettingState:e}=$();e("lockScreenSwitch",!0)}},hs=e=>{const n=gs[e];n?n():window.$message.info("这个人很懒, 没做这个功能~")},vs=e=>{const{isTabletOrSmaller:n}=e,t=[],o=[{name:"menu",size:18,eventKey:"menu"}];return n.value?o:t},ys=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},bs=R({name:"AppSiderBar",setup(){const{updateLocale:e,updateSettingState:n}=$(),{t}=$e(),[o,{toggleFullscreen:a,isEnabled:l}]=On(document.getElementsByTagName("html")[0]),{getDrawerPlacement:s,getBreadcrumbSwitch:i}=Y(),u=B(!1),c=B(!1),{isTabletOrSmaller:f}=We(),m=ft("globalDrawerValue"),y=T(()=>vs({isFullscreen:o,isTabletOrSmaller:f})),g=T(()=>ys({isFullscreen:o,isTabletOrSmaller:f})),p={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:()=>{pe("globalDrawerValue",!m.value)}};return{leftIconOptions:y,rightTooltipIconOptions:g,toolIconClick:S=>{var d;(d=p[S])==null||d.call(p)},showSettings:u,updateLocale:e,getDrawerPlacement:s,getBreadcrumbSwitch:i,globalSearchShown:c,isRenderVNode:S=>f.value?null:S}},render(){const{rightTooltipIconOptions:e,leftIconOptions:n,getDrawerPlacement:t,getBreadcrumbSwitch:o}=this,{toolIconClick:a,updateLocale:l,isRenderVNode:s}=this;return r(Sn,{class:"layout-header"},{default:()=>[r(ps,{show:this.globalSearchShown,"onUpdate:show":i=>this.globalSearchShown=i},null),r(I,{class:"layout-header__method",align:"center",justify:"space-between",wrap:!1},{default:()=>[r(I,{align:"center",wrap:!1},{default:()=>[n.map(i=>r(os,{key:i.name,iconName:i.name,tooltipText:Cn(i.tooltip)?i.tooltip.value:i.tooltip,customClassName:i.iconClass,onClick:a.bind(this,i.name)},null)),o?r(ds,null,null):null]}),r(I,{justify:"end",align:"center",size:[0,0],wrap:!1},{default:()=>[s(r(ms,{onClick:i=>{i.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(i=>r(X,{class:"override-button__layout",quaternary:!0,size:"medium",key:i.name,onClick:a.bind(this,i.name),focusable:!1},{default:()=>[r(P,{name:i.name,size:16,cursor:"pointer"},null)]})),r(xe,{options:En,onSelect:i=>l(String(i)),trigger:"click"},{default:()=>[r(X,{quaternary:!0,class:"override-button__layout",focusable:!1},{default:()=>[r(P,{customClassName:"layout-header__method--icon",name:"language",size:"16",cursor:"pointer"},null)]})]}),r(xe,{options:fs(),onSelect:hs.bind(this),trigger:"click"},{default:()=>[r(eo,{avatarSize:24,spaceSize:[8,0],class:"override-button__layout"},null)]})]})]}),r(us,{show:this.showSettings,"onUpdate:show":i=>this.showSettings=i,placement:t},null)]})}}),_s=R({name:"LayoutHeaderWrapper",setup(){return{}},render(){return r(I,{size:[0,0]},{default:()=>[r(bs,null,null)]})}});function Ss(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}const ws=R({name:"AppMenuTag",setup(e,{expose:n}){const t=ie("scrollRef"),{getMenuKey:o,getMenuTagOptions:a}=Te(),{changeMenuModelValue:l}=Ie(),{getRootPath:s}=Le(),{maximize:i}=no(),{reload:u}=Es(),{close:c,closeAll:f,closeRight:m,closeLeft:y,closeOther:g,checkCloseLeft:p,checkCloseRight:_}=oo(),h=["closeAll","closeRight","closeLeft","closeOther"];let S=1/0;const d={size:16},v=B([{label:"关闭当前页面",key:"closeCurrentPage",icon:()=>r(P,{name:"close",size:d.size},null)},{label:"最大化当前页面",key:"maximizeLayoutContent",icon:()=>r(P,{name:"fullscreen_fold",size:d.size},null)},{label:"刷新当前页面",key:"reloadCurrentPage",icon:()=>r(P,{name:"reload",size:d.size},null)},{label:"新窗口打开",key:"windowOpenTab",icon:()=>r(P,{name:"shared",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭左侧标签页",key:"closeLeft",icon:()=>r(P,{name:"close_left",size:d.size},null)},{label:"关闭右侧标签页",key:"closeRight",icon:()=>r(P,{name:"close_right",size:d.size},null)},{type:"divider",key:"d1"},{label:"关闭其他标签页",key:"closeOther",icon:()=>r(P,{name:"close_other",size:d.size},null)},{label:"关闭所有标签页",key:"closeAll",icon:()=>r(P,{name:"resize_h",size:d.size},null),disabled:!1}]),w=rt(16),k={closeCurrentPage:()=>{o.value!==s.value&&c(S)},reloadCurrentPage:()=>{u()},closeAll:()=>{f()},closeRight:()=>{m(S)},closeLeft:()=>{y(S)},closeOther:()=>{g(S)},windowOpenTab:()=>{const O=a.value[S];if(!(O!=null&&O.fullPath))return;const M=O.fullPath.startsWith("#")?O.fullPath:`#${O.fullPath}`;window.open(M,"_blank")},maximizeLayoutContent:()=>{const O=a.value[S];i(!0),O&&oe(O)}},b=re({x:0,y:0,actionDropdownShow:!1}),x="menu_tag_data",A=ft("globalMainLayoutLoad"),L="n-scrollbar-container";let C=o.value;const E=B(!1),U=O=>{c(O)},K=(O,M)=>{for(const Z of v.value)if(Z.key===O){Z.disabled=M;break}},oe=O=>{b.actionDropdownShow=!1,l(O.fullPath,O)},q=()=>{const O=document.getElementById(w);if(O)return Array.from(O.childNodes).find(qe=>la(qe,L).value)},he=O=>{var Z;const M=q();if(M){const qe=M.scrollLeft||0,$t=O==="left"?Math.max(0,qe-200):qe+200;(Z=t.value)==null||Z.scrollTo({left:$t,behavior:"smooth"})}},ke=O=>{b.actionDropdownShow=!1;const M=k[O];M==null||M()},ae=(O,M)=>{M.preventDefault(),S=O,b.actionDropdownShow=!1,te(()=>{b.x=M.clientX,b.y=M.clientY,b.actionDropdownShow=!0})},Ut=()=>{_(S)?K("closeRight",!1):K("closeRight",!0),p(S)?K("closeLeft",!1):K("closeLeft",!0)},lo=()=>{S=a.value.findIndex(M=>M.fullPath===o.value),Ut()},ro=O=>{a.value.length>1&&O.fullPath!==s.value&&(O.closeable=!0),E.value=!0},so=O=>{O.fullPath!==o.value&&(O.closeable=!1),E.value=!1},io=()=>{q()&&te().then(()=>{var M;(M=t.value)==null||M.scrollTo({left:99999,behavior:"smooth"})})},gt=()=>{te().then(()=>{const O=st(`attr:${x}="${o.value}"`);if(O!=null&&O.length){const[M]=O;te().then(()=>{var Z;(Z=t.value)==null||Z.scrollTo({left:M.offsetLeft,behavior:"smooth"})})}})},uo=()=>{i(!0)};return Ee(()=>a.value,(O,M)=>{v.value.forEach(Z=>{h.includes(Z.key)&&(O.length>1?Z.disabled=!1:Z.disabled=!0)}),M!=null&&M.length&&(O.length>(M==null?void 0:M.length)?io():O.length===(M==null?void 0:M.length)&&gt()),M===void 0&&gt()},{immediate:!0}),ue(()=>{b.actionDropdownShow&&Ut(),C!==o.value&&(C=o.value,gt())}),n(),{getMenuTagOptions:a,closeCurrentMenuTag:U,getMenuKey:o,menuTagClick:oe,moreOptions:v,scrollX:he,scrollRef:t,uuidScrollBar:w,actionDropdownSelect:ke,actionState:b,menuTagContextMenu:ae,setCurrentContextmenuIndex:lo,menuTagMouseenter:ro,menuTagMouseleave:so,MENU_TAG_DATA:x,iconConfig:d,maximize:i,reload:u,globalMainLayoutLoad:A,maximizeBtnClick:uo,isMouseInMenuTag:E}},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:f,menuTagClick:m,menuTagContextMenu:y,menuTagMouseenter:g,menuTagMouseleave:p,actionDropdownSelect:_,reload:h}=this;return r(Sn,null,{default:()=>[r("div",{class:"menu-tag"},[r(xe,{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(I,{class:"menu-tag-space",wrap:!1,align:"center",justify:"space-between",inline:!0},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.scrollX.bind(this,"left")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,customClassName:"menu-tag__left-arrow"},null)}),r(Dt,N({xScrollable:!0,ref:"scrollRef"},{id:t},{themeOverrides:{width:"0px",height:"0px"}}),{default:()=>[r(I,{class:"menu-tag-wrapper",wrap:!1,align:"center",justify:"start"},Ss(e=o.map((S,d)=>r(X,N({key:S.fullPath,class:["menu-tag__btn"],strong:!0,secondary:!0,type:S.fullPath===this.getMenuKey?"primary":"default"},{onClick:m.bind(this,S),onContextmenu:y.bind(this,d),onMouseenter:g.bind(this,S),onMouseleave:p.bind(this,S),[a]:S.fullPath},{size:"small",focusable:!1,iconPlacement:"right"}),{default:()=>r(kn,null,[r("span",null,{default:()=>{const{breadcrumbLabel:v,meta:{i18nKey:w}}=S;return w?f(w):v}})]),icon:()=>r(P,N({customClassName:"menu-tag__btn-icon",name:"close",size:"15"},{onMousedown:u.bind(this,d)}),null)})))?e:{default:()=>[e]})]}),r(I,{align:"center",inline:!0,wrap:!1,size:[0,0]},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:c.bind(this,"right")},{icon:()=>r(P,{name:"expanded",width:n.size,height:n.size,style:{transform:"rotate(180deg)"}},null)}),r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:i},{icon:()=>r(P,{name:"fullscreen_fold",width:n.size,height:n.size},null)}),r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:()=>{h()}},{icon:()=>r(P,{name:"reload",width:n.size,height:n.size,customClassName:`${l?"":"menu-tag__right-setting--spinning"}`},null)}),r(Nn,{class:"menu-tag__dropdown",options:this.moreOptions,trigger:"click",onSelect:this.actionDropdownSelect.bind(this),iconSize:18,keyboard:!1},{default:()=>[r(X,{quaternary:!0,class:"override-button__menu-tag",focusable:!1,onClick:this.setCurrentContextmenuIndex.bind(this)},{icon:()=>r(P,{name:"more",width:n.size,height:n.size},null)})]})]})]})])]})}}),Cs=R({name:"LayoutFeatureWrapper",setup(){return{}},render(){return r(ws,null,null)}}),Ts={lockPassword:{required:!0,message:"请输入正确格式密码",min:6,max:12,trigger:["input"]}},un=()=>({lockPassword:null}),cn=$o(J.isAppLockScreen,!1,window.localStorage,{mergeDefaults:!0}),to=()=>({setLockAppScreen:t=>{cn.value=t},getLockAppScreen:()=>cn.value}),ks=R({name:"UnlockScreen",setup(){const[e,{validate:n}]=Rr(),{logout:t}=Jn(),{updateSettingState:o}=$(),{setLockAppScreen:a}=to(),{isTabletOrSmaller:l}=We(),s="HH:mm",i="A",u="YYYY-MM-DD",c="ddd",f=re({lockCondition:un(),HH_MM:G().format(s),AM_PM:G().format(i),YY_MM_DD:G().format(u),DDD:G().format(c)}),m=setInterval(()=>{f.HH_MM=G().format(s),f.AM_PM=G().format(i)},6e3),y=setInterval(()=>{f.YY_MM_DD=G().format(u),f.DDD=G().format(c)},864e5),g=()=>{window.$dialog.warning({title:"警告",content:"是否返回到登陆页?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{o("lockScreenSwitch",!1),setTimeout(()=>{t()},100)}})},p=()=>{n().then(()=>{a(!1),o("lockScreenSwitch",!1),f.lockCondition=un()})};return It(()=>{clearInterval(m),clearInterval(y)}),{...we(f),backToSigning:g,unlockScreen:p,isTabletOrSmaller:l,register:e}},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,register:u}=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(eo,{avatarSize:52,style:"pointer-events: none;",vertical:!0},null)]),r("div",{class:"app-lock-screen__unlock__content-input"},[r($n,{onRegister:u,model:this.lockCondition,rules:Ts},{default:()=>[r(D,{path:"lockPassword"},{default:()=>[r(zt,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":c=>this.lockCondition.lockPassword=c,type:"password",placeholder:"请输入解锁密码",clearable:!0,minlength:6,onKeydown:c=>{c.code==="Enter"&&s()}},null)]}),r(I,{justify:"space-between"},{default:()=>[r(X,{type:"primary",text:!0,onClick:i.bind(this)},{default:()=>[W("返回登陆")]}),r(X,{type:"primary",text:!0,onClick:s.bind(this)},{default:()=>[W("进入系统")]})]})]})]),r("div",{class:"app-lock-screen__unlock__content-date"},[r("div",{class:"current-year"},[o,W(" "),r("span",null,[a]),W(" "),r("span",null,[t])])])])])])}}),Os=e=>{const n=vt(e[0]),t=vt(e[1]),o=vt(e[2]);return T(()=>({"--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`}))},As=R({name:"RLayout",setup(){const e=ne(),n=ne(),t=ne(),{getMenuTagSwitch:o,getCopyrightSwitch:a}=Y(),{getLockAppScreen:l}=to(),s=Os([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(ks,null,null):r(Vo,{class:"r-layout-full",style:[n],hasSider:!0,embedded:!0},{default:()=>[r(Xr,null,null),r(Yt,{class:"r-layout-full__viewer"},{default:()=>[r(_s,{ref:"layoutSiderBarRef"},null),e?r(Cs,{ref:"layoutMenuTagRef"},null):null,r(Yt,{ref:Re,class:["r-layout-full__viewer-content"],nativeScrollbar:!1},{default:()=>[r(Qn,null,null)]}),t?r(ns,{ref:"layoutFooterRef"},null):null]})]})}}),Rs=[{path:"/",name:"RLogin",component:()=>z(()=>import("./index-Kt1C3Us_.js"),__vite__mapDeps([97,41,22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,48,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:As,children:[...$r(),{path:"/:catchAll(.*)",component:()=>z(()=>import("./index-Bw2xty29.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,48,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,49,50,51,52,53,54,55,56,100])),meta:{i18nKey:V("menu.Error"),icon:"error",hidden:!0,sameLevel:!0}}]}],it=va({history:ya(),routes:Rs,scrollBehavior:e=>{Ql(e)}}),Pi=e=>{e.use(it),qr(it)},Nt=()=>it?{router:it}:{router:{}},dn="YYYY-MM-DD HH:mm:ss",Ps=()=>({locale:s=>{const i=Xa[s];i?G.locale(i):G.locale(Ja)},getStartAndEndOfDay:s=>{const{format:i=dn}=s??{},u=G(),c=u.startOf("day"),f=u.endOf("day"),m=u.format(i),y=c.format(i),g=f.format(i);return{today:u,startOfDay:c,endOfDay:f,formatToday:m,formatStartOfDay:y,formatEndOfDay:g}},format:(s,i)=>{const{format:u=dn}=i??{};return G(s).format(u)},isDayjs:s=>G.isDayjs(s),daysDiff:(s,i)=>{const u=G(s);return G(i).diff(u,"days")},isDateInRange:(s,i)=>{const{start:u,end:c}=i,f=G(s);return f.isAfter(u)&&f.isBefore(c)}});function We(e){const{width:n,height:t}=Ko(e),o=B(!1),{observer:a}=e??{};return ra(()=>{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:be(o)}}let Je=999,kt=!1;const ye="ELEMENT-FULLSCREEN-RAY",pn=document.createElement("style"),xs=(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 f={x:null,y:null},m=B(!1),y=()=>{const h=de(e);if(!h)return;const{left:S,top:d}=h.getBoundingClientRect();f.x===null&&f.y===null&&(f.x=-S,f.y=-d),lt(document.body,{"--element-fullscreen-z-index":fe(i,"Null")||fe(i,"Undefined")?Je: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":`${f.x}px`,"--element-fullscreen-transform-y":`${f.y}px`});const v=`
[${ye}] {
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();pn.innerHTML=v,kt||document.head.appendChild(pn)},g=()=>{const h=de(e);t==null||t(),h&&(h.getAttribute(ye)||h.setAttribute(ye,ye),c||(c=!0,Je+=1),kt||(y(),kt=!0),h.style.transition=u,m.value=!0,a==null||a())},p=()=>{o==null||o();const h=de(e);h&&h.removeAttribute(ye),m.value=!1,l==null||l()},_=()=>{const h=de(e);h&&(h.getAttribute(ye)?p():g())};return Bt(()=>{const h=de(e);h&&h.removeAttribute(ye),Je=Math.max(999,Je-1),m.value=!1}),{enter:g,exit:p,toggleFullscreen:_,isFullscreen:be(m)}},Ot={svg:ua,png:ca,jpeg:da,blob:pa,pixelData:ma,canvas:fa},xi=(e,n)=>{const{beforeCreate:t,created:o,createdError:a,finally:l,imageType:s}=n??{};return{create:u=>new Promise((c,f)=>{var g;const m=de(e);if(t==null||t(m),!m)return a==null||a(),f("[useDomToImage]: target element is undefined.");(g=Ot[u??s??"jpeg"])==null||g.call(Ot,m,n).then(p=>(o==null||o(p,m),c(p))).catch(p=>(a==null||a(p),f(p))).finally(()=>{l==null||l(m)})})}},Mi=(e,n)=>({print:()=>{const o=de(e)||e;Qo({...Ue(n,["printable"]),printable:o})}}),Ze={page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,20,50,100]},Ms=(e,n)=>{const t=T(()=>({...Ze,...Ue(n,["on-update:page","on-update:page-size","onUpdatePage","onUpdatePageSize","onUpdate:page","onUpdate:page-size","onUpdate:pageSize"]),...a})),o=ne(e),a={onUpdatePage:d=>{var w;const{pageChange:v}=t.value;l.value.page=d,(w=o.value)==null||w.call(o),v==null||v(d)},onUpdatePageSize:d=>{var w;const{pageSizeChange:v}=t.value;l.value.pageSize=d,l.value.page=Ze.page,(w=o.value)==null||w.call(o),v==null||v(d)}},l=B(t.value),s=l.value.onUpdatePage,i=l.value.onUpdatePageSize,u=()=>l.value.itemCount,c=d=>{l.value.itemCount=d},f=()=>l.value.page,m=d=>{s(d)},y=()=>l.value.pageSize,g=d=>{i(d)},p=()=>l.value,_=o.value,h=d=>{o.value=d},S=()=>{const{pageSizes:d}=l.value;l.value.page=Ze.page,l.value.pageSize=(d==null?void 0:d[0])||Ze.pageSize};return Bt(()=>{o.value=void 0}),[l,{getItemCount:u,setItemCount:c,getPage:f,setPage:m,getPageSize:y,setPageSize:g,getPagination:p,getCallback:_,setCallback:h,resetPagination:S}]},no=()=>({isLayoutContentMaximized:T(()=>ft("layoutContentMaximize").value),maximize:(t,o)=>{var i;const{scrollToOptions:a}=o??{},l=de(Re),{toggleFullscreen:s}=xs(l,o);pe("layoutContentMaximize",t),s(),a&&t&&((i=Re==null?void 0:Re.value)==null||i.scrollTo(a))}}),Es=()=>({reload:(o=800)=>{pe("globalMainLayoutLoad",!1),setTimeout(()=>pe("globalMainLayoutLoad",!0),o)},openSpin:()=>{pe("layoutContentSpinning",!0)},closeSpin:()=>{pe("layoutContentSpinning",!1)}}),Ei=()=>({setWatermarkContent:a=>{const{getWatermarkConfig:l}=Y(),s=Object.assign({},l.value,{content:a}),{updateSettingState:i}=$();i("watermarkConfig",s)},showWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!0)},hiddenWatermark:()=>{const{updateSettingState:a}=$();a("watermarkSwitch",!1)},toggleWatermark:()=>{const{getWatermarkSwitch:a}=Y(),{updateSettingState:l}=$();l("watermarkSwitch",!a.value)}}),Qe=e=>{const{getPrimaryColorOverride:n}=Y(),{updateSettingState:t}=$();t("primaryColorOverride",e?nt({},n.value,Se.appNaiveUIThemeOverrides.dark):nt({},n.value,Se.appNaiveUIThemeOverrides.light))},Di=()=>{const e=()=>{const{getAppTheme:l}=Y(),{t:s}=$e();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}=$();l("_appTheme",!0),l("appTheme","dark"),Qe(!0)},lightTheme:()=>{const{updateSettingState:l}=$();l("_appTheme",!1),l("appTheme","light"),Qe(!1)},toggleTheme:()=>{const{theme:l}=e(),{updateSettingState:s}=$();s("_appTheme",!l),s("appTheme",l?"light":"dark"),Qe(!l)},getAppTheme:e,syncSystemTheme:()=>{const{getAppTheme:l}=Y(),{updateSettingState:s}=$(),{system:i}=wn();s("_appTheme",i.value==="dark"),s("appTheme","auto"),Qe(l.value)}}},Ae=(e,n)=>{const{getMenuTagOptions:t}=Te();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 oo(){const{getMenuTagOptions:e,getMenuKey:n}=Te(),{changeMenuModelValue:t,spliceMenTagOptions:o,setMenuTagOptions:a,resolveOption:l}=Ie(),s=()=>e.value.findIndex(p=>p.fullPath===n.value),i=p=>{const _=Ae(p,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return!(h>=S)}return!1},u=p=>{const _=Ae(p,"checkCloseRight");if(_){const{index:h}=_,S=e.value.length-1;return h===0?!1:h>0&&S>0}return!1};return{close:p=>{const _=Ae(p,"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 v=e.value[d];v&&t(v.fullPath,v)}}},closeAll:()=>{o(0,e.value.length);const{getRootPath:p}=Le(),{router:{getRoutes:_}}=Nt(),h=_().find(S=>S.path===p.value);if(h){const S=Ve(h,Mt),d=l(S);t(d.path,l({...d,fullPath:d.path}))}},closeRight:p=>{const _=Ae(p,"closeRight");if(_){const{option:h,index:S}=_,d=e.value.length-S,v=s();o(S+1,d),S<=v&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeLeft:p=>{const _=Ae(p,"closeLeft");if(_){const{option:h,index:S}=_,d=s();o(0,S),d<=S&&n.value!==h.fullPath&&t(h.fullPath,h)}},closeOther:p=>{const _=Ae(p,"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}}=Nt(),{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}=Te();if(n>c.value.length){console.warn(`[navigationTo]: The current ${n} exceeds the maximum number of menus.`);return}const f=c.value[n],m=y=>{if(y.children&&y.children.length>0){const{children:[g]}=y;m(g);return}u(y.fullPath)};m(f)}else if(typeof n=="string"){const c=o().find(f=>f.path===n);c?u(c.path):console.warn(`[navigationTo]: The path "${n}" is not found.`)}else u(n.fullPath)}}}function Le(){const{getAppRootRoute:e}=Y(),{updateSettingState:n}=$(),t=e,o=T(()=>e.value.path),a=T(()=>e.value.name);return{getRootRoute:t,getRootPath:o,getRootName:a,setRootRoute:s=>{n("appRootRoute",Object.assign({},e.value,s))}}}const Ds=(e,n)=>{const{show:t,...o}=n;e.meta.extra=Object.assign({},e.meta.extra,{...o,show:t}),e.extra=Wn(e)},mn=(e,n,t)=>{const o=Gn(e,n);o&&Ds(o,t)},At=(e,n,t)=>{const{getMenuOptions:o}=Te();if(typeof e=="string")mn(o.value,e,t);else if(fe(e,"Object")){const{fullPath:a}=e;mn(o.value,a,t)}else console.warn(`[useBadge ${n}]: target expect string or object.`)};function Ii(){return{hidden:o=>{At(o,"hidden",{show:!1})},show:(o,a)=>{At(o,"show",{...a,show:!0})},update:(o,a)=>{At(o,"update",a)}}}const Li=()=>{const e=Dn.value,{scrollTo:n}=e||{};if(!n)throw new Error("[useSiderScroll]: LAYOUT_SIDER_REF is not ready yet. please wait component mounted!");return n},ao=()=>at(J.localeLanguage,"localStorage",{defaultValue:Ha});export{Zr as $,di as A,En as B,_t as C,Xa as D,si as E,ki as F,qa as G,Oi as H,wi as I,fi as J,vi as K,Dn as L,ui as M,yi as N,bi as O,Ms as P,hi as Q,$n as R,Hr as S,Cr as T,pr as U,zr as V,Ti as W,Si as X,Ci as Y,Ps as Z,z as _,xi as a,Ri as a0,mi as a1,Tr as a2,Nn as a3,no as a4,zi as a5,Es as a6,Ei as a7,Ii as a8,Mi as b,Li as c,pi as d,Y as e,J as f,ii as g,Se as h,Rr as i,$ as j,un as k,eo as l,to as m,_i as n,ft as o,Jn as p,ci as q,Ts as r,Ja as s,Ai as t,Di as u,gi as v,Pi as w,Le as x,$e as y,P as z};