Files
workspace/code/fms/fms-vue/.tmp-build/assets/index-sucQhSWr.js
T
2026-09-05 17:25:35 +08:00

2 lines
34 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FpsMonitor-oLfS2k-j.js","assets/_plugin-vue_export-helper-Ktpf6lZe.js","assets/ui-BhP3ZSBa.js","assets/ui-C2R7GMB-.css","assets/rotate-ccw-AQ4L8JGg.js","assets/FpsMonitor-k8r4Qkkz.css"])))=>i.map(i=>d[i]);
import{A as e,D as t,E as n,Jt as r,M as i,N as a,Q as o,R as s,T as c,U as l,W as u,Wt as d,_ as f,a as p,dt as m,ft as h,gt as g,i as _,it as v,lt as ee,p as y,q as b,ut as x,x as te}from"./_plugin-vue_export-helper-Ktpf6lZe.js";import{n as S,t as ne}from"./pinia-C_7Z-Pt5.js";import{n as re,r as C}from"./stk-table-vue-DM4qMzbH.js";import{i as ie,n as w,o as ae}from"./routes-w7ij2FJx.js";import{a as oe,c as se,d as ce,f as T,g as E,i as D,l as le,n as O,o as k,p as ue,r as A,s as j,t as de,u as M}from"./useApi-CROJJdhE-BKbQ20nt.js";import{t as N}from"./app-BeHz6434.js";import{t as P}from"./i18n-Tza9fYNM.js";import{l as F,n as I}from"./api-BHfsXASe.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function L(e,t){if(e==null)return;let n=e;for(let e=0;e<t.length;e++){if(n===void 0||n[t[e]]===void 0)return;if(n===null||n[t[e]]===null)return null;n=n[t[e]]}return n}function R(e,t,n){if(n.length===0)return t;let r=n[0];return n.length>1&&(t=R(typeof e!=`object`||!e||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function z(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);let n={};for(let t in e)n[t]=e[t];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);let n={};for(let t in e)n[t]=e[t];return n}return R(e,z(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function B(e,t){return t.map(e=>e.split(`.`)).map(t=>[t,L(e,t)]).filter(e=>e[1]!==void 0).reduce((e,t)=>R(e,t[1],t[0]),{})}function V(e,t){return t.map(e=>e.split(`.`)).reduce((e,t)=>z(e,t),e)}function H(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o,beforeHydrate:s,afterHydrate:c},l,u=!0){try{u&&s?.(l);let i=t.getItem(r);if(i){let t=n.deserialize(i),r=a?B(t,a):t,s=o?V(r,o):r;e.$patch(s)}u&&c?.(l)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function U(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o}){try{let i=a?B(e,a):e,s=o?V(i,o):i,c=n.serialize(s);t.setItem(r,c)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function fe(e,t){return typeof e==`function`?e(t):typeof e==`string`?e:t}function pe(e,t,n){let{pinia:r,store:i,options:{persist:a=n}}=e;if(!a)return;if(!(i.$id in r.state.value)){let e=r._s.get(i.$id.replace(`__hot:`,``));e&&Promise.resolve().then(()=>e.$persist());return}let o=(Array.isArray(a)?a:a===!0?[{}]:[a]).map(t);i.$hydrate=({runHooks:t=!0}={})=>{o.forEach(n=>{H(i,n,e,t)})},i.$persist=()=>{o.forEach(e=>{U(i.$state,e)})},o.forEach(t=>{H(i,t,e),i.$subscribe((e,n)=>U(n,t),{detached:!0})})}function me(e={}){return function(t){pe(t,n=>{let r=fe(n.key,t.store.$id);return{key:(e.key?e.key:e=>e)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var he=me();i(),v();var ge={__name:`App`,setup(e){let t=n(()=>ae(()=>import(`./FpsMonitor-oLfS2k-j.js`),__vite__mapDeps([0,1,2,3,4,5])));return(e,n)=>{let r=b(`router-view`);return l(),te(y,null,[c(r),c(g(t))],64)}}},W=typeof document<`u`,_e=/#/g,ve=/&/g,ye=/\//g,be=/=/g,xe=/\?/g,Se=/\+/g,Ce=/%5B/g,we=/%5D/g,Te=/%5E/g,Ee=/%60/g,De=/%7B/g,Oe=/%7C/g,ke=/%7D/g,Ae=/%20/g;function G(e){return e==null?``:encodeURI(``+e).replace(Oe,`|`).replace(Ce,`[`).replace(we,`]`)}function je(e){return G(e).replace(De,`{`).replace(ke,`}`).replace(Te,`^`)}function Me(e){return G(e).replace(Se,`%2B`).replace(Ae,`+`).replace(_e,`%23`).replace(ve,`%26`).replace(Ee,"`").replace(De,`{`).replace(ke,`}`).replace(Te,`^`)}function Ne(e){return Me(e).replace(be,`%3D`)}function Pe(e){return G(e).replace(_e,`%23`).replace(xe,`%3F`)}function Fe(e){return Pe(e).replace(ye,`%2F`)}function K(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ie=/\/$/,Le=e=>e.replace(Ie,``);function Re(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Ge(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:K(o)}}function ze(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Ve(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&q(t.matched[r],n.matched[i])&&He(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function He(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ue(e[n],t[n]))return!1;return!0}function Ue(e,t){return D(e)?We(e,t):D(t)?We(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function We(e,t){return D(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Ge(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Ke(e){if(!e){if(W){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Le(e)}var qe=/^[^#]+#/;function Je(e,t){return e.replace(qe,`#`)+t}function Ye(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Y=()=>({left:window.scrollX,top:window.scrollY});function Xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Ye(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ze(e,t){return(history.state?history.state.position-t:-1)+e}var X=new Map;function Qe(e,t){X.set(e,t)}function $e(e){let t=X.get(e);return X.delete(e),t}function et(e){return typeof e==`string`||e&&typeof e==`object`}function tt(e){return typeof e==`string`||typeof e==`symbol`}function nt(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Se,` `),i=r.indexOf(`=`),a=K(i<0?r:r.slice(0,i)),o=i<0?null:K(r.slice(i+1));if(a in t){let e=t[a];D(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function rt(e){let t=``;for(let n in e){let r=e[n];if(n=Ne(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(D(r)?r.map(e=>e&&Me(e)):[r&&Me(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function it(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=D(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Z(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Q(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(A(4,{from:n,to:t})):e instanceof Error?c(e):et(e)?c(A(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function at(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(j(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Q(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=oe(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Q(c,n,r,o,e,i)()}))}}}return a}function ot(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>q(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>q(e,s))||i.push(s))}return[n,r,i]}i(),v();var st=()=>location.protocol+`//`+location.host;function ct(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Be(n,``)}return Be(n,e)+r+i}function lt(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=ct(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(O({},e.state,{scroll:Y()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ut(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Y():null}}function dt(e){let{history:t,location:n}=window,r={value:ct(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:st()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,O({},t.state,ut(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=O({},i.value,t.state,{forward:e,scroll:Y()});a(o.current,o,!0),a(e,O({},ut(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ft(e){e=Ke(e);let t=dt(e),n=lt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=O({location:``,base:e,go:r,createHref:Je.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var pt={type:0,value:``},mt=/[a-zA-Z0-9_]/;function ht(e){if(!e)return[[]];if(e===`/`)return[[pt]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:mt.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var gt=`[^/]+?`,_t={sensitive:!1,strict:!1,start:!0,end:!0},vt=/[.+*?^${}()[\]/\\]/g;function yt(e,t){let n=O({},_t,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(vt,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||gt;if(u!==gt){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(D(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=D(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function bt(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function xt(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=bt(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(St(r))return 1;if(St(i))return-1}return i.length-r.length}function St(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ct={strict:!1,end:!0,sensitive:!1};function wt(e,t,n){let r=yt(ht(e.path),n),i=O(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Tt(e,t){let n=[],r=new Map;t=le(Ct,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Dt(e);s.aliasOf=r&&r.record;let l=le(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Dt(O({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=wt(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!kt(d)&&o(e.name)),Nt(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:M}function o(e){if(tt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=jt(e,n);n.splice(t,0,e),e.record.name&&!kt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw A(1,{location:e});s=i.record.name,a=O(Et(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Et(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw A(1,{location:e,currentLocation:t});s=i.record.name,a=O({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:At(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Et(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Dt(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ot(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ot(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function kt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function At(e){return e.reduce((e,t)=>O(e,t.meta),{})}function jt(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;xt(e,t[i])<0?r=i:n=i+1}let i=Mt(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Mt(e){let t=e;for(;t=t.parent;)if(Nt(t)&&xt(e,t)===0)return t}function Nt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pt(e){let t=a(T),n=a(ce),r=f(()=>{let n=g(e.to);return t.resolve(n)}),i=f(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(q.bind(null,i));if(o>-1)return o;let s=zt(e[t-2]);return t>1&&zt(i)===s&&a[a.length-1].path!==s?a.findIndex(q.bind(null,e[t-2])):o}),o=f(()=>i.value>-1&&Rt(n.params,r.value.params)),s=f(()=>i.value>-1&&i.value===n.matched.length-1&&He(n.params,r.value.params));function c(n={}){if(Lt(n)){let n=t[g(e.replace)?`replace`:`push`](g(e.to)).catch(M);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:f(()=>r.value.href),isActive:o,isExactActive:s,navigate:c}}function Ft(e){return e.length===1?e[0]:e}var It=t({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Pt,setup(t,{slots:n}){let r=ee(Pt(t)),{options:i}=a(T),o=f(()=>({[Bt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[Bt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&Ft(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}});function Lt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Rt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!D(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function zt(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Bt=(e,t,n)=>e??t??n,Vt=t({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){let i=a(ue),s=f(()=>t.route||i.value),c=a(E,0),l=f(()=>{let e=g(c),{matched:t}=s.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),d=f(()=>s.value.matched[l.value]);u(E,f(()=>l.value+1)),u(se,d),u(ue,s);let p=x();return o(()=>[p.value,d.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!q(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let i=s.value,a=t.name,o=d.value,c=o&&o.components[a];if(!c)return Ht(r.default,{Component:c,route:i});let l=o.props[a],u=l?l===!0?i.params:typeof l==`function`?l(i):l:null,f=e(c,O({},u,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:p}));return Ht(r.default,{Component:f,route:i})||f}}});function Ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Ut=Vt;function Wt(e){let t=Tt(e.routes,e),n=e.parseQuery||nt,r=e.stringifyQuery||rt,i=e.history,a=Z(),o=Z(),c=Z(),l=h(J),u=J;W&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=de.bind(null,e=>``+e),f=de.bind(null,Fe),p=de.bind(null,K);function _(e,n){let r,i;return tt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function v(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function ee(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(a=O({},a||l.value),typeof e==`string`){let r=Re(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return O(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=O({},e,{path:Re(n,e.path,a.path).path});else{let t=O({},e.params);for(let e in t)t[e]??delete t[e];o=O({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),c=e.hash||``;s.params=d(p(s.params));let u=ze(r,O({},e,{hash:je(c),path:s.path})),m=i.createHref(u);return O({fullPath:u,hash:c,query:r===rt?it(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function x(e){return typeof e==`string`?Re(n,e,l.value.path):O({},e)}function te(e,t){if(u!==e)return A(8,{from:t,to:e})}function S(e){return C(e)}function ne(e){return S(O(x(e),{replace:!0}))}function re(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),O({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=u=b(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=re(n,i);if(c)return C(O(x(c),{state:typeof c==`object`?O({},a,c.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Ve(r,i,n)&&(f=A(16,{to:d,from:i}),R(i,i,!0,!1)),(f?Promise.resolve(f):ae(d,i)).catch(e=>k(e)?k(e,2)?e:L(e):F(e,d,i)).then(e=>{if(e){if(k(e,2))return C(O({replace:s},x(e.to),{state:typeof e.to==`object`?O({},a,e.to.state):a,force:o}),t||d)}else e=se(d,i,!0,s,a);return oe(d,i,e),e})}function ie(e,t){let n=te(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=V.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ae(e,t){let n,[r,i,s]=ot(e,t);n=at(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Q(r,e,t))});let c=ie.bind(null,e,t);return n.push(c),U(n).then(()=>{n=[];for(let r of a.list())n.push(Q(r,e,t));return n.push(c),U(n)}).then(()=>{n=at(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Q(r,e,t))});return n.push(c),U(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(D(r.beforeEnter))for(let i of r.beforeEnter)n.push(Q(i,e,t));else n.push(Q(r.beforeEnter,e,t))}return n.push(c),U(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=at(s,`beforeRouteEnter`,e,t,w),n.push(c),U(n))).then(()=>{n=[];for(let r of o.list())n.push(Q(r,e,t));return n.push(c),U(n)}).catch(e=>k(e,8)?e:Promise.reject(e))}function oe(e,t,n){c.list().forEach(r=>w(()=>r(e,t,n)))}function se(e,t,n,r,a){let o=te(e,t);if(o)return o;let s=t===J,c=W?history.state:{};n&&(r||s?i.replace(e.fullPath,O({scroll:s&&c&&c.scroll},a)):i.push(e.fullPath,a)),l.value=e,R(e,t,n,s),L()}let E;function le(){E||=i.listen((e,t,n)=>{if(!H.listening)return;let r=b(e),a=re(r,H.currentRoute.value);if(a){C(O(a,{replace:!0,force:!0}),r).catch(M);return}u=r;let o=l.value;W&&Qe(Ze(o.fullPath,n.delta),Y()),ae(r,o).catch(e=>k(e,12)?e:k(e,2)?(C(O(x(e.to),{force:!0}),r).then(e=>{k(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(M),Promise.reject()):(n.delta&&i.go(-n.delta,!1),F(e,r,o))).then(e=>{e||=se(r,o,!1),e&&(n.delta&&!k(e,8)?i.go(-n.delta,!1):n.type===`pop`&&k(e,20)&&i.go(-1,!1)),oe(r,o,e)}).catch(M)})}let j=Z(),N=Z(),P;function F(e,t,n){L(e);let r=N.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function I(){return P&&l.value!==J?Promise.resolve():new Promise((e,t)=>{j.add([e,t])})}function L(e){return P||(P=!e,le(),j.list().forEach(([t,n])=>e?n(e):t()),j.reset()),e}function R(t,n,r,i){let{scrollBehavior:a}=e;if(!W||!a)return Promise.resolve();let o=!r&&$e(Ze(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return s().then(()=>a(t,n,o)).then(e=>t===l.value&&e&&Xe(e)).catch(e=>t===l.value&&F(e,t,n))}let z=e=>i.go(e),B,V=new Set,H={currentRoute:l,listening:!0,addRoute:_,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:ee,resolve:b,options:e,push:S,replace:ne,go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:a.add,beforeResolve:o.add,afterEach:c.add,onError:N.add,isReady:I,install(e){e.component(`RouterLink`,It),e.component(`RouterView`,Ut),e.config.globalProperties.$router=H,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>g(l)}),W&&!B&&l.value===J&&(B=!0,S(i.location).catch(e=>{}));let t={};for(let e in J)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(T,H),e.provide(ce,m(t)),e.provide(ue,l);let n=e.unmount;V.add(e),e.unmount=function(){V.delete(e),V.size<1&&(u=J,E&&E(),E=null,l.value=J,B=!1,P=!1),n()}}};function U(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return H}var Gt=r(d(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof e==`object`?t.exports=r():n.NProgress=r()})(e,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`};return a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){return(typeof e==`string`?e:u(e)).indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})}))(),1);i(),v();var Kt=S(`permissions`,()=>{let e=F(),t=x(``),n=x([]),r=x([]),i=x([]),a=x([]),s=null,c=``,l=0,u=f(()=>new Map(n.value.map(e=>[String(e.b_id||``),e]))),d=f(()=>new Map(n.value.map(e=>[String(e.b_id||``),e]))),p=f(()=>new Set(r.value)),m=f(()=>new Set(a.value)),h=f(()=>String(e.loginInfo.user?.account||``).trim().toLowerCase()===`g3soft`);async function g(){let o=String(e.loginInfo.user?.id||``),u=`${String(e.userInfo.orgId||``)}:${o}`;if(h.value){let e=`g3soft:${u}`;if(t.value===e)return;s=null,c=``;let o=++l,d=I(`s_module`,`b_canuse = 1`,`b_id ASC`).then(s=>{o===l&&(n.value=s.data||[],r.value=[],i.value=[],a.value=[],t.value=e)}).finally(()=>{o===l&&(s=null,c=``)});return s=d,d}if(t.value===u)return;if(s&&c===u)return s;let d=++l;c=u;let f=()=>({data:[]}),p=`N'${String(o).replaceAll(`'`,`''`)}'`,m=Promise.all([I(`s_module`,`b_canuse = 1`,`b_id ASC`),I(`b_user_module`,`b_user_id = ${p}`,`b_id ASC`).catch(f),I(`b_user_power`,`b_user_id = ${p}`,`b_id ASC`).catch(f),I(`s_module_power`,`b_canuse = 1`,`b_id ASC`).catch(f)]).then(([e,o,s,c])=>{if(d!==l)return;let f=e.data||[],p=new Map(f.map(e=>[String(e.b_id),e])),m=new Map(c.data.map(e=>[String(e.b_id),e])),h=o.data.map(e=>String(e.b_module_id||``)).filter(Boolean);n.value=f,r.value=h,i.value=o.data.map(e=>p.get(String(e.b_module_id))?.b_id).filter(Boolean),a.value=s.data.map(e=>m.get(String(e.b_power_id))).filter(e=>!!e).map(e=>`${String(e.b_module_id)}.${e.b_id}`),t.value=u}).finally(()=>{d===l&&(s=null,c=``)});return s=m,m}function _(e){let t=u.value.get(String(e||``)),n=new Set;for(;t;){let e=String(t.b_id||``);if(!e||n.has(e))return``;if(n.add(e),t.b_module_type===`page`)return e;let r=String(t.b_parent_id||``);t=r?d.value.get(r):void 0}return``}function v(e){if(h.value||!e)return!0;let t=u.value.get(String(e));if(!t)return!1;let n=String(t.b_id||``),r=_(e);return p.value.has(n)||!!r&&p.value.has(r)}function ee(e,t){if(h.value)return!0;let n=u.value.get(String(e||``));if(!n||!v(e))return!1;let r=String(n.b_id||``),i=_(e||``);return m.value.has(`${r}.${t}`)||!!i&&m.value.has(`${i}.${t}`)}function y(){let o=String(e.loginInfo.user?.id||``),u=`${String(e.userInfo.orgId||``)}:${o}`;c&&c!==u&&(l++,s=null,c=``),t.value=``,n.value=[],r.value=[],i.value=[],a.value=[]}return o(()=>[e.userInfo.orgId,e.loginInfo.user?.id,e.loginInfo.user?.account,e.loginInfo.token],y),{load:g,canAccess:v,canPower:ee,clear:y,modules:n,grantedPageIds:r,moduleCodes:i,powerCodes:a,isG3soft:h}});Gt.default.configure({showSpinner:!1});var $=Wt({history:ft(),routes:w});$.beforeEach(async e=>{Gt.default.start();let t=F();if(e.path===`/login`)return t.isAuthenticated?`/dashboard`:void 0;if(e.matched.some(e=>e.meta.requiresAuth)){if(!t.isAuthenticated)return{path:`/login`,query:{redirect:e.fullPath}};let n=Kt(),r=ie();await Promise.all([n.load().catch(()=>{}),r.load().catch(()=>{})]),await P().loadLanguages().catch(()=>{});let i=e.meta.moduleId;if(i&&!n.canAccess(i)||e.path.startsWith(`/module/`)&&!n.isG3soft)return`/dashboard`}}),$.afterEach(()=>{Gt.default.done()}),p(),re(C);var qt=ne();qt.use(he);var Jt=_(ge);Jt.use(qt),Jt.use($),N(qt);function Yt(e){console.error(`Application bootstrap failed`,e);let t=document.querySelector(`#app-boot`),n=document.querySelector(`#app-boot-message`),r=document.querySelector(`#app-boot-retry`);!t||!n||!r||(t.classList.add(`app-boot--error`),t.setAttribute(`aria-busy`,`false`),t.setAttribute(`aria-label`,`应用加载失败`),n.textContent=`应用加载失败,请检查网络后重试`,n.hidden=!1,r.hidden=!1,r.addEventListener(`click`,()=>window.location.reload(),{once:!0}))}async function Xt(){try{await $.isReady();let e=document.querySelector(`#app-boot`);if(e&&document.body.appendChild(e),Jt.mount(`#app`),requestAnimationFrame(()=>{e&&e.classList.add(`app-boot--hide`)}),e){let t=()=>{e.remove(),document.documentElement.classList.remove(`boot-dark`)};e.addEventListener(`transitionend`,t,{once:!0}),setTimeout(()=>{e.isConnected&&t()},600)}}catch(e){Yt(e)}}Xt();