xframelib 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -10
- package/dist/assets/{worker-XXTEA-B_zM6owJ.js → worker-XXTEA-BTkdAuVi.js} +1 -1
- package/dist/assets/worker-webcache-JMcB6mHT.js +6 -0
- package/dist/controls/vuewindow/window/index.vue.d.ts +1 -1
- package/dist/index.css +43 -43
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/public/mitm.html +2 -2
- package/dist/utils/WebCacheTool.d.ts +72 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/workers/index.d.ts +7 -1
- package/dist/workers/worker-webcache.d.ts +13 -0
- package/dist/workerservice/frontWorker.d.ts +3 -0
- package/dist/workerservice/index.d.ts +9 -0
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,createElementBlock as n,openBlock as r,withModifiers as i,normalizeStyle as o,renderSlot as s,reactive as a,getCurrentInstance as c,computed as l,watch as u,onMounted as d,onBeforeUnmount as h,nextTick as f,resolveComponent as p,createBlock as m,Transition as g,withCtx as v,withDirectives as y,createElementVNode as w,createCommentVNode as b,Fragment as S,createTextVNode as x,toDisplayString as C,vShow as E,markRaw as k,onErrorCaptured as z,Suspense as M,createVNode as A,KeepAlive as I,resolveDynamicComponent as L,renderList as R,unref as _,normalizeClass as T,TransitionGroup as D,onUnmounted as P,useCssVars as B,h as N}from"vue";import $ from"iconv-lite";export{default as iconv}from"iconv-lite";import*as O from"@microsoft/signalr";import U from"axios";import W from"qs";import{Client as j,ClientContext as F}from"@hprose/rpc-core";import{ByteStream as H,Writer as q,Reader as X,ValueReader as Y}from"@hprose/io";import{HttpTransport as G}from"@hprose/rpc-html5";import{Icon as V}from"@iconify/vue";function Z(e){if(e){const{width:t,height:n}=e.style;e.style.width="auto",e.style.height="auto";const r=K(e);return e.style.width=t,e.style.height=n,r}return{width:0,height:0,top:0,left:0,bottom:0,right:0}}function K(e){const t=e.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left;return{width:n,height:r,top:i,left:o,bottom:i+r,right:o+n}}function J(e){return window.TouchEvent&&e instanceof TouchEvent}class Q{e;constructor(e){this.e=e}stopPropagation(){this.e.stopPropagation()}preventDefault(){this.e.preventDefault()}get clientX(){return J(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientX:this.e.clientX}get clientY(){return J(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientY:this.e.clientY}get clientCoord(){return new ee(this.clientX,this.clientY)}static bindDown(e,t,n,r=!1){const i=e=>{t(new Q(e))},o=e=>{1===e.touches.length&&t(new Q(e)),e.touches.length>1&&n&&n(new Q(e))};return e.addEventListener("mousedown",i,r),e.addEventListener("touchstart",o,r),()=>{e.removeEventListener("mousedown",i,r),e.removeEventListener("touchstart",o,r)}}static bindMove(e,t,n=!1){const r=e=>{t(new Q(e))},i=e=>{1===e.touches.length&&t(new Q(e))};return e.addEventListener("mousemove",r,n),e.addEventListener("touchmove",i,n),()=>{e.removeEventListener("mousemove",r,n),e.removeEventListener("touchmove",i,n)}}static bindUp(e,t,n=!1){const r=e=>{t(new Q(e))},i=e=>{0===e.touches.length&&t(new Q(e))};return e.addEventListener("mouseup",r,n),e.addEventListener("touchend",i,n),()=>{e.removeEventListener("mouseup",r,n),e.removeEventListener("touchend",i,n)}}originalEvent({mouse:e,touch:t}){J(this.e)?t&&t(this.e):e&&e(this.e)}}class ee{x;y;constructor(e,t){this.x=e,this.y=t}clone(){return new ee(this.x,this.y)}}class te{handle;container;options;unbindDown;unbindMove;unbindUp;constructor(e,t,n={}){this.handle=e,this.container=t,this.options=n,e&&(this.unbindDown=Q.bindDown(e,this.mousedown),e.classList.add("draggable-handle"))}teardown(){this.handle?.classList.remove("draggable-handle"),this.unbindDown&&this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove()}offsetX;offsetY;mousedown=e=>{e.preventDefault(),this.handle&&(this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMoveStart&&this.options.onMoveStart(),this.unbindMove=Q.bindMove(document,this.mousemove),this.unbindUp=Q.bindUp(document,this.mouseup)};mousemove=e=>{this.container&&(this.container.style.left=`calc(${e.clientX-this.offsetX}px + ${this.container.style.left})`,this.container.style.top=`calc(${e.clientY-this.offsetY}px + ${this.container.style.top})`,this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMove&&this.options.onMove()};mouseup=e=>{this.options.onMoveEnd&&this.options.onMoveEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0}}class ne{container;options;handles;constructor(e,t){if(this.container=e,this.options=t,e&&t){this.handles=re.map(t=>new t(e,this));const{width:n,height:r}=Z(e),i=t.maxWidth||window.innerWidth,o=t.maxHeight||window.innerHeight;let s=!1;(n<t.minWidth||n>i)&&(e.style.width=`${oe(n,t.minWidth,i)}px`,s=!0),(r<t.minHeight||r>o)&&(e.style.height=`${oe(r,t.minHeight,o)}px`,s=!0),s&&t.onResize&&t.onResize()}}teardown(){this.handles?.forEach(e=>e.teardown())}}const re=[];class ie{container;helper;handle;handleSize=8;unbindDown;unbindMove;unbindUp;constructor(e,t){this.container=e,this.helper=t,this.handle=this.createHandleElement(),this.unbindDown=Q.bindDown(this.handle,this.mousedown)}teardown(){this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove(),this.handle.parentElement.removeChild(this.handle)}x0;y0;left0;top0;width0;height0;mousedown=e=>{e.preventDefault(),e.stopPropagation();const{left:t,top:n,width:r,height:i}=K(this.container);this.x0=e.clientX,this.y0=e.clientY,this.left0=t,this.top0=n,this.width0=r,this.height0=i,this.calcSafeBoundaries(),this.helper.options&&this.helper.options.onResizeStart&&this.helper.options.onResizeStart(),this.unbindMove=Q.bindMove(document,this.mousemove),this.unbindUp=Q.bindUp(document,this.mouseup)};minLeft;maxLeft;minRight;maxRight;minTop;maxTop;minBottom;maxBottom;calcSafeBoundaries(){if(!this.helper.options)return;const{left:e,top:t,right:n,bottom:r}=K(this.container),i=this.helper.options,o=i.maxWidth||window.innerWidth,s=i.maxHeight||window.innerHeight;this.minLeft=Math.max(n-o,0),this.maxLeft=n-i.minWidth,this.minRight=e+i.minWidth,this.maxRight=Math.min(e+o,window.innerWidth),this.minTop=Math.max(r-s,0),this.maxTop=r-i.minHeight,this.minBottom=t+i.minHeight,this.maxBottom=Math.min(t+s,window.innerHeight)}mousemove=e=>{e.preventDefault(),e.stopPropagation(),this.setPosition(e),this.fixPosition(),this.helper.options&&this.helper.options.onResize&&this.helper.options.onResize()};fixPosition(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=K(this.container),s=this.helper.options;s&&(n<this.minLeft?(this.container.style.width=e+n-this.minLeft+"px",this.container.style.left=`${this.minLeft}px`):n>this.maxLeft?(this.container.style.width=`${s.minWidth}px`,this.container.style.left=`${this.maxLeft}px`):i<this.minRight?this.container.style.width=`${s.minWidth}px`:i>this.maxRight&&(this.container.style.width=this.maxRight-n+"px"),r<this.minTop?(this.container.style.height=t+r-this.minTop+"px",this.container.style.top=`${this.minTop}px`):r>this.maxTop?(this.container.style.height=`${s.minHeight}px`,this.container.style.top=`${this.maxTop}px`):o<this.minBottom?this.container.style.height=`${s.minHeight}px`:o>this.maxBottom&&(this.container.style.height=this.maxBottom-r+"px"))}mouseup=e=>{e.preventDefault(),e.stopPropagation(),this.helper.options&&this.helper.options.onResizeEnd&&this.helper.options.onResizeEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0};createHandleElement(){const e=document.createElement("div"),t=e.style;return t.position="absolute",this.applyStyle(t),this.container.appendChild(e),e}}function oe(e,t,n){return e<t?t:e>n?n:e}re.push(class extends ie{setPosition(e){this.container.style.width=this.width0+e.clientX-this.x0+"px",this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.right=-this.handleSize+"px",e.bottom=-this.handleSize+"px",e.cursor="nwse-resize"}},class extends ie{setPosition(e){this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.right=`${this.handleSize}px`,e.left=`${this.handleSize}px`,e.height=2*this.handleSize+"px",e.bottom=-this.handleSize+"px",e.cursor="ns-resize"}},class extends ie{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px",this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.bottom=-this.handleSize+"px",e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.cursor="nesw-resize"}},class extends ie{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.bottom=`${this.handleSize}px`,e.width=2*this.handleSize+"px",e.top=`${this.handleSize}px`,e.cursor="ew-resize"}},class extends ie{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px",this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.top=-this.handleSize+"px",e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.cursor="nwse-resize"}},class extends ie{setPosition(e){this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px"}applyStyle(e){e.left=`${this.handleSize}px`,e.right=`${this.handleSize}px`,e.height=2*this.handleSize+"px",e.top=-this.handleSize+"px",e.cursor="ns-resize"}},class extends ie{setPosition(e){this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px",this.container.style.width=this.width0+e.clientX-this.x0+"px"}applyStyle(e){e.right=-this.handleSize+"px",e.top=-this.handleSize+"px",e.height=2*this.handleSize+"px",e.width=2*this.handleSize+"px",e.cursor="nesw-resize"}},class extends ie{setPosition(e){this.container.style.width=this.width0+e.clientX-this.x0+"px"}applyStyle(e){e.right=-this.handleSize+"px",e.top=`${this.handleSize}px`,e.bottom=`${this.handleSize}px`,e.width=2*this.handleSize+"px",e.cursor="ew-resize"}});class se{_group;onChange;zIndex;constructor(e,t){this._group=e,this.onChange=t,this.a(e=>e.push(this))}set group(e){this._group=e;const t=le(this._group),n=le(e);t.splice(t.indexOf(this),1),n.push(this),de()}get group(){return this._group}unregister(){this.a(e=>e.splice(e.indexOf(this),1))}raise(){this.a(e=>{e.splice(e.indexOf(this),1),e.push(this)})}a(e){e(le(this._group)),de()}}const ae=new Map,ce=0;function le(e){return ae.has(e)||ae.set(e,[]),ae.get(e)}function ue(e,t){return e>t?-ue(t,e):e<0&&t>=0?1:e-t}function de(){let e=ce;for(const t of function(e){const t=[];return e.forEach((e,n)=>t.push(n)),t}(ae).sort(ue))for(const n of le(t))e!=n.zIndex&&(n.zIndex=e,n.onChange(e)),e++}const he=e({name:"",props:{disabled:{type:Boolean,default:!1},windowStyle:{type:Object,required:!0}},components:{},setup(e){const n=t(!1),r=t(!1);return{hover:n,active:r,style:function(){let t=e.windowStyle.button;return n.value&&(t={...t,...this.windowStyle.buttonHover}),r.value&&(t={...t,...this.windowStyle.buttonActive}),t},mouseup:function(e){this.active&&this.$emit("click")},mousedown:function(e){e.preventDefault(),r.value=!0;const t=Q.bindUp(document,()=>{r.value=!1,t()})}}}}),fe=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},pe=["disabled"];const me=fe(he,[["render",function(e,t,a,c,l,u){return r(),n("div",{class:"btn",style:o(e.style()),onMouseenter:t[0]||(t[0]=t=>e.hover=!0),onMouseleave:t[1]||(t[1]=t=>e.hover=!1),onMousedown:t[2]||(t[2]=i((...t)=>e.mousedown&&e.mousedown(...t),["stop"])),onTouchstart:t[3]||(t[3]=i((...t)=>e.mousedown&&e.mousedown(...t),["stop"])),onMouseup:t[4]||(t[4]=(...t)=>e.mouseup&&e.mouseup(...t)),onTouchend:t[5]||(t[5]=(...t)=>e.mouseup&&e.mouseup(...t)),disabled:e.disabled},[s(e.$slots,"default",{},void 0,!0)],44,pe)}],["__scopeId","data-v-2231c0f9"]]);var ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye,we={exports:{}};var be=(ye||(ye=1,we.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function s(e){var t,r,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function h(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),r}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return c(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),p.prototype.append=function(e){return this.appendBinary(l(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(l(e),t)},p.hashBinary=function(e,t){var n=c(o(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=h(this._buff.buffer,e),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=d(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=c(s(new Uint8Array(e)));return t?f(n):n},p}()),we.exports);const Se=ve(be),xe=Object.prototype.toString;function Ce(e,t){return xe.call(e)===`[object ${t}]`}function Ee(e){return Ce(e,"Function")}const ke=e=>void 0!==e,ze=e=>!ke(e);function Me(e){return null===e}function Ae(e){return ze(e)&&Me(e)}function Ie(e){return ze(e)||Me(e)}const Le=e=>null!=e&&null!==e&&Ce(e,"Object");function Re(e){return Ce(e,"Date")}function _e(e){return Ce(e,"Number")}function Te(e){return Ce(e,"AsyncFunction")}function De(e){return Ce(e,"Promise")&&Le(e)&&Ee(e.then)&&Ee(e.catch)}function Pe(e){return Ce(e,"String")}function Be(e){return!0===e||!1===e||Ce(e,"Boolean")}function Ne(e){return e&&Array.isArray(e)}const $e=()=>"undefined"!=typeof window,Oe=e=>"undefined"!=typeof window&&Ce(e,"Window"),Ue=e=>xe.call(e).startsWith("[object HTML")&&!!e.tagName,We="undefined"==typeof window;function je(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function Fe(e){return null==e||(Pe(e)||Ne(e)?0===e.length:!!Le(e)&&"{}"===JSON.stringify(e))}function He(e){return Ce(e,"Error")}function qe(e){return Ce(e,"WeakSet")}function Xe(e){return Ce(e,"WeakMap")}function Ye(e){return Ce(e,"Symbol")}function Ge(e){return Ce(e,"Map")}const Ve=e=>/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e);function Ze(e){return/^\s*[{[]/.test(String(e))}function Ke(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}const Je=[];let Qe;class et{static addHandler(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}static removeHandler(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t]}static windowResizeHandler(e){et.addHandler(window,"resize",e)}static offWindowResizeHandler(e){et.removeHandler(window,"resize",e)}static fullscreenEnabled(){const e=window.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=window.document;let t=window.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(window.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=window.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=window.document.documentElement){let t=e;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new window.ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=window.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return window.document.fullscreenElement||window.document.webkitFullscreenElement||window.document.mozFullscreenElement||window.document.msFullscreenElement}static isFullScreen(){return!!et.fullScreenElement()}static onFullScreenChanged(e){let t;"onfullscreenchange"in window.document?t="fullscreenchange":"onwebkitfullscreenchange"in window.document?t="webkitfullscreenchange":"onmozfullscreenchange"in window.document&&(t="mozfullscreenchange"),t?document.addEventListener(t,function(){const t=et.isFullScreen();e(t)}):document.addEventListener("MSFullscreenChange",function(){const t=et.isFullScreen();e(t)})}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Je.indexOf(t))return;Je.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,et.stringifyCircularHandler);return Je.length=0,t}static jsonParse(e){const t=et.jsonStringify(e);if(t.length>1){return JSON.parse(t)}}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=window.URL?t=window.URL.createObjectURL(e):null!=window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e;const o=new Se.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result);const n=o.end();t({isOK:!0,data:n})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=i.size?i.size:2097152;s.readAsArrayBuffer(r.call(i,0,e))}()}static getFileMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=2097152,s=Math.ceil(i.size/o);let a=0;const c=new Se.ArrayBuffer,l=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;l.readAsArrayBuffer(r.call(i,e,t))}l.onload=function(e){if(c.append(e.target?.result),a++,a<s)u();else{const e=c.end();t({isOK:!0,data:e})}},l.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return Se.hash(e,t)}static copyTextByCommand(e){return new Promise((t,n)=>{const r=document.createElement("input");r.value=e,document.body.appendChild(r),r.select(),document.execCommand("copy"),r.remove(),t(!0)})}static copyText=e=>navigator.clipboard?navigator.clipboard.writeText(e).then(function(){return!0},function(e){return!1}):et.copyTextByCommand(e);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{document.execCommand("copy");return n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(e){if(!navigator.clipboard)return et.copyElementTextByCommand(e);const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();return n.rangeCount>0&&n.removeAllRanges(),n.addRange(t),navigator.clipboard.writeText(n).then(function(){return n.removeRange(t),!0},function(e){return n.removeRange(t),console.error("Clipboard复制文本错误",e),!1})}static setGrayMode(e){et.toggleClass(e,"grayMode",document.documentElement)}static toggleClass(e,t,n){const r=n||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");window.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=Pe(e)?document.getElementById(e):e,r){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&r.addEventListener("ev",e=>{n(e)},!1),r.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e,r=Math.random();return e+Math.round(r*n)}static merge(e={},t={}){let n,r,i,o;for(e||(e={}),r=0,i=t.length;r<i;r++)for(n in o=t[r],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}()}static debounce(e,t){let n=null;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}static throttle(e,t){let n=!0;return function(){if(!n)return!1;n=!1,setTimeout(()=>{e(),n=!0},t)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}static create(e,t,n){let r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,r=n.length;t<r;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),i.appendChild(o),r&&r.appendChild(i),i}static parseDom(e,t=!0,n=""){t=t??!1;let r=document.createElement("div");return r.className=n||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,n){let r=this.create("video",t,n),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let o=this.create("source","",r);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),r}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise((r,i)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,"),n=e.substring(t+3);r(n)}else r(o.result);else i(o)},o.onerror=function(){i(o)}})}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise((n,r)=>{t.push(function(e,t){e?r(e):n(t)}),e.apply(this,t)})}}static wait(e){return new Promise(t=>setTimeout(t,e))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(e,t){if(!e)throw Error("传入Element对象不能为空!");let n;if(Pe(e)){let t=document.getElementById(e);if(t)n=t;else{const r=document.getElementsByClassName(e);if(!r||0==r.length)throw Error("未找到对应id或类名的HtmlElement对象!");t=r[0],n=t}}else{if(!Ue(e))throw Error("ele参数只能为string 或 Element对象!");n=e}n&&(n.addEventListener("dragenter",this.blockEvent,!1),n.addEventListener("dragover",this.blockEvent,!1),n.addEventListener("drop",function(e){et.blockEvent(e),t(e.dataTransfer.files)},!1))}static getInputElement(){var e=document.activeElement;return!e||"INPUT"!=e.tagName&&"TEXTAREA"!=e.tagName&&"true"!=e.contentEditable?null:e}static guessPasteTextToFileName(e,t){let n,r=t;return Pe(e)?r=(Ze(e)?"json":Ke(e)&&"kml")||"text":(Le(e)&&e.type||Ne(e))&&(r="json"),"text"==r?n="pasted.txt":"kml"==r?n="pasted.kml":"json"==r&&(n="pasted.json"),n}static pasteEventHanlder(e,t){const n=this;if(!!n.getInputElement())return;n.blockEvent(e);const r=e.clipboardData,i=Array.from(r.types||[]).join(","),o=Array.from(r.items||[]);let s;if(i.includes("text/plain")){const e=r.getData("text/plain");if(":"===e[1])return t(e);if(Ve(e))return t(e);const i=n.guessPasteTextToFileName(e);if(!i||"pasted.txt"===i)return t(e);{const t=new Blob([e]);s=[new File([t],i)]}}else s=o.map(function(e){return"file"==e.kind?e.getAsFile():null});s=s.filter(Boolean),s.length?t(s):t(void 0)}static onPasteHandler(e,t=document){const n=this;Qe=t=>{n.pasteEventHanlder(t,e)},et.addHandler(t,"paste",Qe)}static offPasteHandler(e=document){Qe&&et.removeHandler(e,"paste",Qe)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}}class tt{static isNullOrEmpty=e=>null===e||""===e||void 0===e||0===e.length;static isNotEmpty=e=>null!==e&&""!==e&&void 0!==e&&0!==e.length;static toHump(e){return e.replace(/[\-\/\_](\w)/g,(e,t)=>t.toUpperCase()).replace("views","")}static getFileName(e){const t=e.lastIndexOf("/")+1;let n=e.substring(t);return n=decodeURI(n.split("?")[0]),n}static UpperFirst(e){return(e=e.toLowerCase()).replace(/\b\w|\s\w/g,e=>e.toUpperCase())}}class nt{prefixKey;storage;constructor(e="",t=localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const t=JSON.parse(n),{value:r,expire:i}=t;if(null===i||i>=Date.now())return r;this.remove(this.getKey(e))}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(this.getKey(e))}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,r=t.length;n<r;n++){const r=t[n].split("=");if(r[0]===this.getKey(e))return r[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}}const rt=new nt("",localStorage);function it(){let e=[];const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n=0;n<36;n++){const r=Math.floor(16*Math.random());e[n]=t.substring(r,r+1)}e[14]="4";const r=3&Number(e[19])|8;return e[19]=t.substring(r,r+1),e[8]=e[13]=e[18]=e[23]="-",e.join("").toLowerCase()}function ot(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}var st={},at=Uint8Array,ct=Uint16Array,lt=Int32Array,ut=new at([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),dt=new at([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ht=new at([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ft=function(e,t){for(var n=new ct(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new lt(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},pt=ft(ut,2),mt=pt.b,gt=pt.r;mt[28]=258,gt[258]=28;for(var vt=ft(dt,0),yt=vt.b,wt=vt.r,bt=new ct(32768),St=0;St<32768;++St){var xt=(43690&St)>>1|(21845&St)<<1;xt=(61680&(xt=(52428&xt)>>2|(13107&xt)<<2))>>4|(3855&xt)<<4,bt[St]=((65280&xt)>>8|(255&xt)<<8)>>1}var Ct=function(e,t,n){for(var r=e.length,i=0,o=new ct(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new ct(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new ct(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[bt[d]>>c]=l}else for(s=new ct(r),i=0;i<r;++i)e[i]&&(s[i]=bt[a[e[i]-1]++]>>15-e[i]);return s},Et=new at(288);for(St=0;St<144;++St)Et[St]=8;for(St=144;St<256;++St)Et[St]=9;for(St=256;St<280;++St)Et[St]=7;for(St=280;St<288;++St)Et[St]=8;var kt=new at(32);for(St=0;St<32;++St)kt[St]=5;var zt=Ct(Et,9,0),Mt=Ct(Et,9,1),At=Ct(kt,5,0),It=Ct(kt,5,1),Lt=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Rt=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},_t=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Tt=function(e){return(e+7)/8|0},Dt=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new at(e.subarray(t,n))},Pt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Bt=function(e,t,n){var r=new Error(t||Pt[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Bt),!n)throw r;return r},Nt=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new at(0);var s=!n,a=s||2!=t.i,c=t.i;s&&(n=new at(3*i));var l=function(e){var t=n.length;if(e>t){var r=new at(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,h=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,v=8*i;do{if(!f){u=Rt(e,d,1);var y=Rt(e,d+1,3);if(d+=3,!y){var w=e[(L=Tt(d)+4)-4]|e[L-3]<<8,b=L+w;if(b>i){c&&Bt(0);break}a&&l(h+w),n.set(e.subarray(L,b),h),t.b=h+=w,t.p=d=8*b,t.f=u;continue}if(1==y)f=Mt,p=It,m=9,g=5;else if(2==y){var S=Rt(e,d,31)+257,x=Rt(e,d+10,15)+4,C=S+Rt(e,d+5,31)+1;d+=14;for(var E=new at(C),k=new at(19),z=0;z<x;++z)k[ht[z]]=Rt(e,d+3*z,7);d+=3*x;var M=Lt(k),A=(1<<M)-1,I=Ct(k,M,1);for(z=0;z<C;){var L,R=I[Rt(e,d,A)];if(d+=15&R,(L=R>>4)<16)E[z++]=L;else{var _=0,T=0;for(16==L?(T=3+Rt(e,d,3),d+=2,_=E[z-1]):17==L?(T=3+Rt(e,d,7),d+=3):18==L&&(T=11+Rt(e,d,127),d+=7);T--;)E[z++]=_}}var D=E.subarray(0,S),P=E.subarray(S);m=Lt(D),g=Lt(P),f=Ct(D,m,1),p=Ct(P,g,1)}else Bt(1);if(d>v){c&&Bt(0);break}}a&&l(h+131072);for(var B=(1<<m)-1,N=(1<<g)-1,$=d;;$=d){var O=(_=f[_t(e,d)&B])>>4;if((d+=15&_)>v){c&&Bt(0);break}if(_||Bt(2),O<256)n[h++]=O;else{if(256==O){$=d,f=null;break}var U=O-254;if(O>264){var W=ut[z=O-257];U=Rt(e,d,(1<<W)-1)+mt[z],d+=W}var j=p[_t(e,d)&N],F=j>>4;j||Bt(3),d+=15&j;P=yt[F];if(F>3){W=dt[F];P+=_t(e,d)&(1<<W)-1,d+=W}if(d>v){c&&Bt(0);break}a&&l(h+131072);var H=h+U;if(h<P){var q=o-P,X=Math.min(P,H);for(q+h<0&&Bt(3);h<X;++h)n[h]=r[q+h]}for(;h<H;++h)n[h]=n[h-P]}}t.l=f,t.p=$,t.b=h,t.f=u,f&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u);return h!=n.length&&s?Dt(n,0,h):n.subarray(0,h)},$t=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Ot=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Ut=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:Yt,l:0};if(1==i){var s=new at(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var f=new ct(h+1),p=Wt(n[u-1],f,0);if(p>t){r=0;var m=0,g=p-t,v=1<<g;for(o.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});r<i;++r){var y=o[r].s;if(!(f[y]>t))break;m+=v-(1<<p-f[y]),f[y]=t}for(m>>=g;m>0;){var w=o[r].s;f[w]<t?m-=1<<t-f[w]++-1:++r}for(;r>=0&&m;--r){var b=o[r].s;f[b]==t&&(--f[b],++m)}p=t}return{t:new at(f),l:p}},Wt=function(e,t,n){return-1==e.s?Math.max(Wt(e.l,t,n+1),Wt(e.r,t,n+1)):t[e.s]=n},jt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ct(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return{c:n.subarray(0,r),n:t}},Ft=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Ht=function(e,t,n){var r=n.length,i=Tt(t+2);e[i]=255&r,e[i+1]=r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},qt=function(e,t,n,r,i,o,s,a,c,l,u){$t(t,u++,n),++i[256];for(var d=Ut(i,15),h=d.t,f=d.l,p=Ut(o,15),m=p.t,g=p.l,v=jt(h),y=v.c,w=v.n,b=jt(m),S=b.c,x=b.n,C=new ct(19),E=0;E<y.length;++E)++C[31&y[E]];for(E=0;E<S.length;++E)++C[31&S[E]];for(var k=Ut(C,7),z=k.t,M=k.l,A=19;A>4&&!z[ht[A-1]];--A);var I,L,R,_,T=l+5<<3,D=Ft(i,Et)+Ft(o,kt)+s,P=Ft(i,h)+Ft(o,m)+s+14+3*A+Ft(C,z)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&T<=D&&T<=P)return Ht(t,u,e.subarray(c,c+l));if($t(t,u,1+(P<D)),u+=2,P<D){I=Ct(h,f,0),L=h,R=Ct(m,g,0),_=m;var B=Ct(z,M,0);$t(t,u,w-257),$t(t,u+5,x-1),$t(t,u+10,A-4),u+=14;for(E=0;E<A;++E)$t(t,u+3*E,z[ht[E]]);u+=3*A;for(var N=[y,S],$=0;$<2;++$){var O=N[$];for(E=0;E<O.length;++E){var U=31&O[E];$t(t,u,B[U]),u+=z[U],U>15&&($t(t,u,O[E]>>5&127),u+=O[E]>>12)}}}else I=zt,L=Et,R=At,_=kt;for(E=0;E<a;++E){var W=r[E];if(W>255){Ot(t,u,I[(U=W>>18&31)+257]),u+=L[U+257],U>7&&($t(t,u,W>>23&31),u+=ut[U]);var j=31&W;Ot(t,u,R[j]),u+=_[j],j>3&&(Ot(t,u,W>>5&8191),u+=dt[j])}else Ot(t,u,I[W]),u+=L[W]}return Ot(t,u,I[256]),u+L[256]},Xt=new lt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Yt=new at(0),Gt=function(e,t,n,r,i,o){var s=o.z||e.length,a=new at(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=o.l,u=7&(o.r||0);if(t){u&&(c[0]=o.r>>3);for(var d=Xt[t-1],h=d>>13,f=8191&d,p=(1<<n)-1,m=o.p||new ct(32768),g=o.h||new ct(p+1),v=Math.ceil(n/3),y=2*v,w=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&p},b=new lt(25e3),S=new ct(288),x=new ct(32),C=0,E=0,k=o.i||0,z=0,M=o.w||0,A=0;k+2<s;++k){var I=w(k),L=32767&k,R=g[I];if(m[L]=R,g[I]=L,M<=k){var _=s-k;if((C>7e3||z>24576)&&(_>423||!l)){u=qt(e,c,0,b,S,x,E,z,A,k-A,u),z=C=E=0,A=k;for(var T=0;T<286;++T)S[T]=0;for(T=0;T<30;++T)x[T]=0}var D=2,P=0,B=f,N=L-R&32767;if(_>2&&I==w(k-N))for(var $=Math.min(h,_)-1,O=Math.min(32767,k),U=Math.min(258,_);N<=O&&--B&&L!=R;){if(e[k+D]==e[k+D-N]){for(var W=0;W<U&&e[k+W]==e[k+W-N];++W);if(W>D){if(D=W,P=N,W>$)break;var j=Math.min(N,W-2),F=0;for(T=0;T<j;++T){var H=k-N+T&32767,q=H-m[H]&32767;q>F&&(F=q,R=H)}}}N+=(L=R)-(R=m[L])&32767}if(P){b[z++]=268435456|gt[D]<<18|wt[P];var X=31>[D],Y=31&wt[P];E+=ut[X]+dt[Y],++S[257+X],++x[Y],M=k+D,++C}else b[z++]=e[k],++S[e[k]]}}for(k=Math.max(k,M);k<s;++k)b[z++]=e[k],++S[e[k]];u=qt(e,c,l,b,S,x,E,z,A,k-A,u),l||(o.r=7&u|c[u/8|0]<<3,u-=7,o.h=g,o.p=m,o.i=k,o.w=M)}else{for(k=o.w||0;k<s+l;k+=65535){var G=k+65535;G>=s&&(c[u/8|0]=l,G=s),u=Ht(c,u+1,e.subarray(k,G))}o.i=s}return Dt(a,0,r+Tt(u)+i)},Vt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Zt=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Vt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},Kt=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new at(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return Gt(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,r,i)},Jt=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},Qt=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],c=o[s];if("function"==typeof a){t+=";"+c+"=";var l=a.toString();if(a.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var d in t+=l,a.prototype)t+=";"+c+".prototype."+d+"="+a.prototype[d].toString();else t+=l}else n[c]=a}return t},en=[],tn=function(e,t,n,r){if(!en[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=Qt(e[a],i,o);en[n]={c:Qt(e[s],i,o),e:o}}var c=Jt({},en[n].e);return function(e,t,n,r,i){var o=new Worker(st[t]||(st[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],i(r,null)}else i(null,t)},o.postMessage(n,r),o}(en[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),r)},nn=function(){return[at,ct,lt,ut,dt,ht,mt,yt,Mt,It,bt,Pt,Ct,Lt,Rt,_t,Tt,Dt,Bt,Nt,wn,an,cn]},rn=function(){return[at,ct,lt,ut,dt,ht,gt,wt,zt,Et,At,kt,bt,Xt,Yt,Ct,$t,Ot,Ut,Wt,jt,Ft,Ht,qt,Tt,Dt,Gt,Kt,yn,an]},on=function(){return[pn,vn,fn,Zt,Vt]},sn=function(){return[mn,gn]},an=function(e){return postMessage(e,[e.buffer])},cn=function(e){return e&&{out:e.size&&new at(e.size),dictionary:e.dictionary}},ln=function(e,t,n,r,i,o){var s=tn(n,r,i,function(e,t){s.terminate(),o(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},un=function(e,t){return e[t]|e[t+1]<<8},dn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},hn=function(e,t){return dn(e,t)+4294967296*dn(e,t+4)},fn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},pn=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&fn(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},mn=function(e){31==e[0]&&139==e[1]&&8==e[2]||Bt(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},gn=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},vn=function(e){return 10+(e.filename?e.filename.length+1:0)};function yn(e,t){return Kt(e,t||{},0,0)}function wn(e,t){return Nt(e,{i:2},t&&t.out,t&&t.dictionary)}function bn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Bt(7),ln(e,t,[rn,on,function(){return[Sn]}],function(e){return an(Sn(e.data[0],e.data[1]))},2,n)}function Sn(e,t){t||(t={});var n=Zt(),r=e.length;n.p(e);var i=Kt(e,t,vn(t),8),o=i.length;return pn(i,t),fn(i,o-8,n.d()),fn(i,o-4,r),i}function xn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Bt(7),ln(e,t,[nn,sn,function(){return[Cn]}],function(e){return an(Cn(e.data[0],e.data[1]))},3,n)}function Cn(e,t){var n=mn(e);return n+8>e.length&&Bt(6,"invalid gzip data"),Nt(e.subarray(n,-8),{i:2},t&&t.out||new at(gn(e)),t&&t.dictionary)}var En=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=Jt(r,o[1]),o=o[0]),o instanceof at?n[s]=[o,a]:(n[s+="/"]=[new at(0),a],En(o,s,n,r))}},kn="undefined"!=typeof TextEncoder&&new TextEncoder,zn="undefined"!=typeof TextDecoder&&new TextDecoder;try{zn.decode(Yt,{stream:!0})}catch(e){}function Mn(e,t){if(kn)return kn.encode(e);for(var n=e.length,r=new at(e.length+(e.length>>1)),i=0,o=function(e){r[i++]=e},s=0;s<n;++s){if(i+5>r.length){var a=new at(i+8+(n-s<<1));a.set(r),r=a}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|63&c)):(o(224|c>>12),o(128|c>>6&63),o(128|63&c))}return Dt(r,0,i)}function An(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(zn)return zn.decode(e);var i=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Dt(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}}(e),o=i.s;return(n=i.r).length&&Bt(8),o}var In=function(e,t){return t+30+un(e,t+26)+un(e,t+28)},Ln=function(e,t,n){var r=un(e,t+28),i=An(e.subarray(t+46,t+46+r),!(2048&un(e,t+8))),o=t+46+r,s=dn(e,t+20),a=n&&4294967295==s?Rn(e,o):[s,dn(e,t+24),dn(e,t+42)],c=a[0],l=a[1],u=a[2];return[un(e,t+10),c,l,i,o+un(e,t+30)+un(e,t+32),u]},Rn=function(e,t){for(;1!=un(e,t);t+=4+un(e,t+2));return[hn(e,t+12),hn(e,t+4),hn(e,t+20)]},_n=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Bt(9),t+=r+4}return t},Tn=function(e,t,n,r,i,o,s,a){var c=r.length,l=n.extra,u=a&&a.length,d=_n(l);fn(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&Bt(10),fn(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=o&&(fn(e,t,n.crc),fn(e,t+4,o<0?-o-2:o),fn(e,t+8,n.size)),fn(e,t+12,c),fn(e,t+14,d),t+=16,null!=s&&(fn(e,t,u),fn(e,t+6,n.attrs),fn(e,t+10,s),t+=14),e.set(r,t),t+=c,d)for(var p in l){var m=l[p],g=m.length;fn(e,t,+p),fn(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(a,t),t+=u),t},Dn=function(e,t,n,r,i){fn(e,t,101010256),fn(e,t+8,n),fn(e,t+10,n),fn(e,t+12,r),fn(e,t+16,i)};function Pn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Bt(7);var r={};En(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,c=o,l=new Array(o),u=[],d=function(){for(var e=0;e<u.length;++e)u[e]()},h=function(e,t){Bn(function(){n(e,t)})};Bn(function(){h=n});var f=function(){var e=new at(a+22),t=s,n=a-s;a=0;for(var r=0;r<c;++r){var i=l[r];try{var o=i.c.length;Tn(e,a,i,i.f,i.u,o);var u=30+i.f.length+_n(i.extra),d=a+u;e.set(i.c,d),Tn(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=d+o}catch(e){return h(e,null)}}Dn(e,s,l.length,n,t),h(null,e)};o||f();for(var p=function(e){var t=i[e],n=r[t],c=n[0],p=n[1],m=Zt(),g=c.length;m.p(c);var v=Mn(t),y=v.length,w=p.comment,b=w&&Mn(w),S=b&&b.length,x=_n(p.extra),C=0==p.level?0:8,E=function(n,r){if(n)d(),h(n,null);else{var i=r.length;l[e]=Jt(p,{size:g,crc:m.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:C}),s+=30+y+x+i,a+=76+2*(y+x)+(S||0)+i,--o||f()}};if(y>65535&&E(Bt(11,0,1),null),C)if(g<16e4)try{E(null,yn(c,p))}catch(e){E(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Bt(7),ln(e,t,[rn],function(e){return an(yn(e.data[0],e.data[1]))},0,n)}(c,p,E));else E(null,c)},m=0;m<c;++m)p(m);return d}var Bn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Nn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Bt(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Bn(function(){n(e,t)})};Bn(function(){s=n});for(var a=e.length-22;101010256!=dn(e,a);--a)if(!a||e.length-a>65558)return s(Bt(13,0,1),null),i;var c=un(e,a+8);if(c){var l=c,u=dn(e,a+16),d=4294967295==u||65535==l;if(d){var h=dn(e,a-12);(d=101075792==dn(e,h))&&(l=c=dn(e,h+32),u=dn(e,h+48))}for(var f=t&&t.filter,p=function(t){var n=Ln(e,u,d),a=n[0],l=n[1],h=n[2],p=n[3],m=n[4],g=n[5],v=In(e,g);u=m;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--c||s(null,o))};if(!f||f({name:p,size:l,originalSize:h,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+l);if(h<524288||l>.8*h)try{y(null,wn(w,{out:new at(h)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Bt(7),ln(e,t,[nn],function(e){return an(wn(e.data[0],cn(e.data[1])))},1,n)}(w,{size:h},y))}else y(Bt(14,"unknown compression type "+a,1),null);else y(null,Dt(e,v,v+l));else y(null,null)},m=0;m<l;++m)p()}else s(null,{});return i}function $n(e){return{all:e=e||new Map,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(e=>{e(n)}),r=e.get("*"),r&&r.slice().map(e=>{e(t,n)})}}}const On=$n(),Un={HproseServiceErrorEvent:"HproseServiceError",WebAPIErrorEvent:"WebAPIError",AlertInfoEvent:"AlertInfoEvent",CommonWarnEvent:"CommonWarnEvent",WidgetLoadedEvent:"WidgetLoaded",WidgetLoaded:"WidgetLoaded",WidgetToUnloadEvent:"WidgetToUnloadEvent",WidgetUnLoadedEvent:"WidgetUnLoaded",WidgetLoadedErrorEvent:"WidgetLoadedError",WidgetVisibleChanged:"WidgetVisibleChanged",AxiosRequestErrorEvent:"AxiosRequestErrorEvent",LayoutContainerLoaded:"LayoutContainerLoaded",ModalContainerWidget_LoadModal:"ModalContainerWidget_LoadModal",ModalContainerWidget_CloseModal:"ModalContainerWidget_CloseModal",WidgetClosed:"WidgetClosed"};function Wn(e){var t={filename:"",directory:"",basename:"",extension:""},n=function(e){return-1==e.indexOf("/")&&-1!=e.indexOf("\\")?"\\":"/"}(e),r=e.split(n),i=r.pop(),o=/\.([a-z][a-z0-9]*)$/i,s=o.test(i)?o.exec(i)[0]:"";return s||i.includes("*")?(t.filename=i,t.extension=s?s.slice(1):"",t.basename=i.slice(0,i.length-s.length),t.directory=r.join(n)):t.directory=i?e:r.join(n),t}function jn(e){return Wn(e).basename}function Fn(e){return Wn(e).extension}function Hn(e){var t=Wn(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function qn(e,t){var n=Hn(e);return t?n+"."+t:n}function Xn(e){var t=Fn(e);return t?Hn(e)+"."+t.toLowerCase():e}function Yn(e){return e.reduce(function(e,t,n){return e=0===n?jn(t):Gn(e,t)},"")}function Gn(e,t){var n;return e&&t&&(n=Vn(e,t).replace(/[-_]$/,"")),n||""}function Vn(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substr(0,n)}const Zn=(e,t)=>{Kn(e,t)};function Kn(e,t){const n=window.URL||window.webkitURL||window,r=new Blob([e]),i=n.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(i),setTimeout(function(){n.revokeObjectURL(i),document.body.removeChild(o)},400)}const Jn=(e,t)=>{const n=JSON.stringify(e,null,2);t?Zn(n,t+".json"):On.emit(Un.CommonWarnEvent,"参数JsonID不能为空!")},Qn=(e,t,n)=>{e.get(t,{responseType:"blob"}).then(function(e){Zn(e.data,n)}).catch(e=>{console.warn(e),On.emit(Un.CommonWarnEvent,"下载文件报错!")})};async function er(e,t,n){var r,i=function(e){var t=Fn(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(window.showSaveFilePicker){r=await window.showSaveFilePicker(i);var o=await r.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}class tr{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static encodeGBK(e){const t=$.encode(e,"ISO-8859-1");return $.decode(t,"gbk")}static async saveZipFromFiles(e,t){const n=[];for(let e=0;e<t.length;e++){const r=t[e],i=r.name,o=await et.readFilePromise(r,"ArrayBuffer"),s=new Uint8Array(o);n.push({filename:i,content:s})}n.length>0&&tr.zipAsync(n,function(t,n){if(t)throw t;Kn(new Blob([n]),e)})}static saveZipFile(e,t){tr.zipAsync(t,function(t,n){if(t)throw t;Kn(new Blob([n]),e)})}static saveZipFileSync(e,t){const n=tr.zipSync(t);return!!n&&(Kn(new Blob([n]),e),!0)}static unzipSync(e){let t;if(t=e instanceof ArrayBuffer?new Uint8Array(e):e,!tr.runningInBrowser())return;const n=function(e,t){for(var n={},r=e.length-22;101010256!=dn(e,r);--r)(!r||e.length-r>65558)&&Bt(13);var i=un(e,r+8);if(!i)return{};var o=dn(e,r+16),s=4294967295==o||65535==i;if(s){var a=dn(e,r-12);(s=101075792==dn(e,a))&&(i=dn(e,a+32),o=dn(e,a+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Ln(e,o,s),d=u[0],h=u[1],f=u[2],p=u[3],m=u[4],g=u[5],v=In(e,g);o=m,c&&!c({name:p,size:h,originalSize:f,compression:d})||(d?8==d?n[p]=wn(e.subarray(v,v+h),{out:new at(f)}):Bt(14,"unknown compression type "+d):n[p]=Dt(e,v,v+h))}return n}(t,{filter:tr.fflateFilter});return tr.fflatePostprocess(n)}static async readZipFromFile(e){const t={content:await et.readFilePromise(e,"ArrayBuffer"),name:e.name};return tr.readZipFile(t)}static async readZipFile(e){const t=await tr.unzipAsync.promise(e.content);return Object.keys(t).reduce(function(e,n){return e.push({filename:n,content:t[n]}),e},[])}static unzipAsync(e,t){if(!tr.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let n;n=e instanceof ArrayBuffer?new Uint8Array(e):e,Nn(n,{filter:tr.fflateFilter},function(e,n){e&&t(e),t(null,tr.fflatePostprocess(n))})}static zipSync(e){if(!tr.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];En(e,"",n,t);var i=0,o=0;for(var s in n){var a=n[s],c=a[0],l=a[1],u=0==l.level?0:8,d=(C=Mn(s)).length,h=l.comment,f=h&&Mn(h),p=f&&f.length,m=_n(l.extra);d>65535&&Bt(11);var g=u?yn(c,l):c,v=g.length,y=Zt();y.p(c),r.push(Jt(l,{size:c.length,crc:y.d(),c:g,f:C,m:f,u:d!=s.length||f&&h.length!=p,o:i,compression:u})),i+=30+d+m+v,o+=76+2*(d+m)+(p||0)+v}for(var w=new at(o+22),b=i,S=o-i,x=0;x<r.length;++x){var C=r[x];Tn(w,C.o,C,C.f,C.u,C.c.length);var E=30+C.f.length+_n(C.extra);w.set(C.c,C.o+E),Tn(w,i,C,C.f,C.u,C.c.length,C.o,C.m),i+=16+E+(C.m?C.m.length:0)}return Dn(w,i,r.length,S,b),w}(tr.fflatePreprocess(e))}static zipAsync(e,t){Pn(tr.fflatePreprocess(e),{},t)}static fflateFilter(e){return tr.isImportableZipPath(e.name)}static fflatePostprocess(e){return Object.keys(e).reduce(function(t,n){const r=Wn(n).filename,i=tr.encodeGBK(r),o=e[n];return t[i]=o,t},{})}static isImportableZipPath(e){const t=Wn(e),n=Fn(e).toLowerCase();return"gz"!=n&&"zip"!=n&&!/^__MACOSX/.test(e)&&"."!=t.filename[0]}static fflatePreprocess(e){const t={};return e.forEach(e=>{"string"==typeof e.content?e.content=Mn(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content}),t}}class nr{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static isGzipped(e){return e.length>2&&e.buffer instanceof ArrayBuffer&&31==e[0]&&139==e[1]}static gzipSync(e,t){return"string"==typeof e&&(e=Mn(e)),nr.runningInBrowser()?Sn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=Mn(e)),!nr.runningInBrowser())return;return et.promisify(bn)(n,t)}static async readGzipFromFile(e){const t={content:await et.readFilePromise(e,"ArrayBuffer"),name:e.name};return nr.readGzipFile(t)}static readGzipFile(e){var t=e.name.replace(/\.gz$/,"");return[{name:t,content:nr.gunzipSync(e.content,t)}]}static async gunzipAsync(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t=t||{},!nr.runningInBrowser())return;var n=et.promisify(xn);let r=await n(e,t);return t.filename&&(r=An(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=Cn(e);return t&&(n=An(n)),n}}class rr{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(Pe(e)||_e(e)?n=new Date(e):Le(e)&&(n=e),!n))throw"date对象为空";const r=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return t.replace("YYYY",String(r)).replace("MM",i).replace("DD",o)}static formatToTime(e,t="HH:mm:ss"){let n=new Date;if(e&&(Pe(e)||_e(e)?n=new Date(e):Le(e)&&(n=e),!n))throw"date对象为空";const r=String(n.getHours()).padStart(2,"0"),i=String(n.getMinutes()).padStart(2,"0"),o=String(n.getSeconds()).padStart(2,"0");return t.replace("HH",r).replace("mm",i).replace("ss",o)}static formatToDateTime(e,t="YYYY-MM-DD HH:mm:ss"){let n=new Date;if(e&&(Pe(e)||_e(e)?n=new Date(e):Le(e)&&(n=e),!n))throw"date对象为空";return this.formatToDate(n,t.split(" ")[0])+" "+this.formatToTime(n,t.split(" ")[1])}static formatStringDateTime(e){let t=`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`;if(14===e.length){t=`${t} ${e.substring(8,10)}:${e.substring(10,12)}:${e.substring(12,14)}`}return t}}let ir=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){ir=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var or=2654435769;function sr(e,t){var n=e.length,r=n<<2;if(t){var i=e[n-1];if(i<(r-=4)-3||i>r)return null;r=i}for(var o=new Uint8Array(r),s=0;s<r;++s)o[s]=e[s>>2]>>((3&s)<<3);return o}function ar(e,t){var n,r=e.length,i=r>>2;3&r&&++i,t?(n=new Uint32Array(i+1))[i]=r:n=new Uint32Array(i);for(var o=0;o<r;++o)n[o>>2]|=e[o]<<((3&o)<<3);return n}function cr(e){return 4294967295&e}function lr(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function ur(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function dr(e){for(var t=e.length,n=new Uint8Array(3*t),r=0,i=0;i<t;i++){var o=e.charCodeAt(i);if(o<128)n[r++]=o;else if(o<2048)n[r++]=192|o>>6,n[r++]=128|63&o;else{if(!(o<55296||o>57343)){if(i+1<t){var s=e.charCodeAt(i+1);if(o<56320&&56320<=s&&s<=57343){var a=65536+((1023&o)<<10|1023&s);n[r++]=240|a>>18,n[r++]=128|a>>12&63,n[r++]=128|a>>6&63,n[r++]=128|63&a,i++;continue}}throw new Error("Malformed string")}n[r++]=224|o>>12,n[r++]=128|o>>6&63,n[r++]=128|63&o}}return n.subarray(0,r)}function hr(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),r=0,i=0,o=e.length;r<t&&i<o;r++){var s=e[i++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[r]=s;break;case 12:case 13:if(!(i<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(31&s)<<6|63&e[i++];break;case 14:if(!(i+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(15&s)<<12|(63&e[i++])<<6|63&e[i++];break;case 15:if(!(i+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[r++]=a>>10&1023|55296,n[r]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return r<t&&(n.length=r),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],r=new Array(32768),i=0,o=0,s=e.length;i<t&&o<s;i++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r[i]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));r[i++]=c>>10&1023|55296,r[i]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var l=i+1;r.length=l,n.push(String.fromCharCode.apply(String,r)),t-=l,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function fr(e){var t=e.length;if(0===t)return"";var n=ir?e:function(e){for(var t=e.length,n=new Array(e.length),r=0;r<t;++r)n[r]=e[r];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var r=32767&t,i=t>>15,o=new Array(r?i+1:i),s=0;s<i;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return r&&(o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,t))),o.join("")}function pr(e,t){return"string"==typeof e&&(e=dr(e)),"string"==typeof t&&(t=dr(t)),null==e||0===e.length?e:sr(function(e,t){var n,r,i,o,s,a,c=e.length,l=c-1;for(r=e[l],i=0,a=0|Math.floor(6+52/c);a>0;--a){for(o=(i=cr(i+or))>>>2&3,s=0;s<l;++s)n=e[s+1],r=e[s]=cr(e[s]+lr(i,n,r,s,o,t));n=e[0],r=e[l]=cr(e[l]+lr(i,n,r,l,o,t))}return e}(ar(e,!0),ar(ur(t),!1)),!1)}function mr(e,t){return"string"==typeof e&&(e=function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}(e)),"string"==typeof t&&(t=dr(t)),null==e||0===e.length?e:sr(function(e,t){var n,r,i,o,s,a=e.length,c=a-1;for(n=e[0],i=cr(Math.floor(6+52/a)*or);0!==i;i=cr(i-or)){for(o=i>>>2&3,s=c;s>0;--s)r=e[s-1],n=e[s]=cr(e[s]-lr(i,n,r,s,o,t));r=e[c],n=e[0]=cr(e[0]-lr(i,n,r,0,o,t))}return e}(ar(e,!1),ar(ur(t),!1)),!0)}const gr={toBytes:dr,toString:hr,encrypt:pr,encryptToString:function(e,t){return window.btoa(fr(pr(e,t)))},decrypt:mr,decryptToString:function(e,t){return hr(mr(e,t))}},vr=e=>{const t="1.23452384164.123412416";null!==document.getElementById(t)&&document.body.removeChild(document.getElementById(t));const n=document.createElement("canvas");n.width=200,n.height=130;const r=n.getContext("2d");r.rotate(-20*Math.PI/180),r.font="12px Vedana",r.fillStyle="rgba(200, 200, 200, 0.30)",r.textBaseline="middle",r.fillText(e,n.width/10,n.height/2);const i=document.createElement("div");return i.id=t,i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.position="fixed",i.style.zIndex="10000000",i.style.width=`${document.documentElement.clientWidth}px`,i.style.height=`${document.documentElement.clientHeight}px`,i.style.background=`url(${n.toDataURL("image/png")}) left top repeat`,document.body.appendChild(i),t},yr={set:e=>{let t=vr(e);null===document.getElementById(t)&&(t=vr(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};var wr,br={exports:{}},Sr=br.exports;var xr=(wr||(wr=1,function(e){var t,n;t=Sr,n=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?a:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}(r)||l.apply(this,arguments)}function d(e,n){var s,a,l,d=this,h="loglevel";function f(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(h),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=n||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,n){return l=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{return void(window.localStorage[h]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+n+";"}catch(e){}}}(l),c.call(d)},d.setDefaultLevel=function(e){a=p(e),f()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,function(){if(typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(s=p(o.getLevel())),c.call(d),o===d)for(var e in i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var m=f();null!=m&&(l=p(m)),c.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new d(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o},e.exports?e.exports=n():t.log=n()}(br)),br.exports);class Cr{message;eventBus;constructor(e,t=void 0){e&&(this.message=e),t&&(this.eventBus=t)}msg(e,t=3,n="success"){if(this.message)if("function"==typeof this.message)this.message({type:n,message:e,duration:t});else switch(n){case"info":this.message.info(e,t);break;case"success":this.message.success(e,t);break;case"warning":this.message.warn?this.message.warn(e,t):this.message.warning&&this.message.warning(e,t);break;case"error":this.message.error(e,t)}else{switch(n){case"info":case"success":console.log(e);break;case"warning":console.warn(e);break;case"error":n="dark",console.error(e)}this.eventBus&&this.eventBus.emit(Un.AlertInfoEvent,{type:n,info:e})}}info(e,t=3){this.msg(e,t,"info")}warn(e,t=3){this.msg(e,t,"warning")}err(e,t=3){this.msg(e,t,"error")}success(e,t=3){this.msg(e,t,"success")}}let Er=!1,kr=!1;Function.prototype.promise=function(...e){const t=this;return function(){const n=e||[];return new Promise((r,i)=>{n.push(function(e,t){e?i(e):r(t)}),t.apply(t,e)})}()};const zr={Config:SysConfig,EventBus:On,DefaultProxyClient:null,Axios:U,Message:new Cr(void 0,On),LayoutMap:new Map,getLayoutManager:e=>{if(!Ar.WidgetConfigList||0===Ar.WidgetConfigList.length)return;const t=Ar.WidgetConfigList.find(t=>t.id===e);if(t){const e=t.layoutID;if(e&&Ar.LayoutMap.has(e))return Ar.LayoutMap.get(e)}},Logger:e=>{Er||(SysConfig.UI.ProductLog?xr.enableAll():xr.setDefaultLevel("warn"),Er=!0);const t=e||"default";return xr.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout(()=>{document.getElementById("apploading")?.remove()},300),kr=!0;else if(e)if(kr){const t=`加载Widget:${e}……`;On.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},Mr="99,111,110,115,116,32,118,97,108,105,100,75,101,121,115,61,91,39,54,65,50,53,51,65,69,70,54,54,68,48,69,56,65,66,57,54,49,55,49,55,51,49,50,52,50,66,65,70,53,65,39,44,39,66,54,53,48,52,57,53,55,54,55,49,49,56,66,50,70,50,50,48,55,67,66,52,69,70,51,49,51,52,49,65,68,39,44,39,54,66,52,66,57,49,65,67,52,51,56,70,70,57,69,54,65,69,52,68,49,49,70,48,50,70,56,51,50,68,51,52,39,44,39,70,54,69,52,57,50,52,57,57,69,70,57,57,48,65,49,50,66,57,66,57,55,48,66,54,57,68,69,68,49,48,70,39,44,39,57,67,55,55,56,67,66,69,66,56,54,51,70,68,68,52,70,49,66,65,51,56,49,52,50,69,48,52,53,53,69,49,39,44,39,70,66,66,55,57,67,57,66,51,57,53,70,65,70,55,49,53,56,50,50,65,70,52,50,52,57,54,56,70,48,54,67,39,44,39,53,57,51,66,67,70,68,50,54,70,48,53,53,53,65,53,50,57,51,67,68,49,49,56,55,49,56,53,49,68,52,52,39,44,39,50,48,54,55,69,66,51,54,57,55,69,55,49,67,53,49,53,68,68,68,54,49,65,53,52,70,67,57,51,53,53,69,39,44,39,70,52,65,50,68,67,69,65,48,53,56,69,68,52,55,48,53,67,67,52,70,54,69,66,51,70,67,70,48,66,53,66,39,93,59,105,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,38,38,118,97,108,105,100,75,101,121,115,46,105,110,100,101,120,79,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,41,62,61,48,41,123,99,111,110,115,111,108,101,46,108,111,103,40,39,117,115,105,110,103,32,97,117,116,104,111,114,105,122,101,100,32,120,102,114,97,109,101,108,105,98,46,84,104,97,110,107,32,121,111,117,33,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,101,108,115,101,32,105,102,40,33,83,121,115,67,111,110,102,105,103,46,75,69,89,41,123,105,102,40,110,101,119,32,68,97,116,101,40,50,48,50,55,44,49,44,49,41,60,110,101,119,32,68,97,116,101,40,41,41,123,105,102,40,99,111,110,102,105,114,109,40,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,116,114,105,97,108,32,104,97,115,32,101,120,112,105,114,101,100,46,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,46,32,83,101,108,101,99,116,32,79,75,32,116,111,32,110,97,118,105,103,97,116,101,32,116,111,32,116,104,101,32,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,32,85,82,76,46,39,41,41,123,108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,115,58,47,47,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,39,125,101,108,115,101,123,116,104,114,111,119,39,84,104,101,32,116,114,105,97,108,32,112,101,114,105,111,100,32,104,97,115,32,101,120,112,105,114,101,100,33,39,59,125,125,101,108,115,101,123,99,111,110,115,111,108,101,46,108,111,103,40,39,84,104,101,32,116,114,105,97,108,32,100,101,97,100,108,105,110,101,32,102,111,114,32,116,104,105,115,32,120,102,114,97,109,101,108,105,98,32,108,105,98,114,97,114,121,32,105,115,32,74,97,110,117,97,114,121,32,49,44,32,50,48,50,55,46,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,125,116,104,114,111,119,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,75,69,89,32,105,115,32,105,110,118,97,108,105,100,33,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,32,33,39,59".split(",").map(e=>Number(e));new Function("globObj","isdev",String.fromCharCode(...Mr));const Ar=zr;let Ir;function Lr(e){if(!e){if(Ir)return Ir;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new O.HubConnectionBuilder).configureLogging(O.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then(()=>{Ar.Logger().info("启动SignalR连接!")}),t.onclose(async()=>{Ar.Logger().info("断开SignalR连接!")}),t.onreconnecting(()=>{Ar.Logger().warn("SignalR服务已断线,重连中...!")}),t.onreconnected(()=>{Ar.Logger().warn("SignalR重连成功!")}),Ir||(Ir=t),t}function Rr(e){const t=e.toLowerCase().replace(/rgb?a?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(t[3]||"1"),r=Math.floor(n*parseInt(t[0])+255*(1-n)),i=Math.floor(n*parseInt(t[1])+255*(1-n)),o=Math.floor(n*parseInt(t[2])+255*(1-n));return"#"+("0"+r.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}function _r(e){var t=e.toLowerCase();if(Or(e)){if(4===t.length){for(var n="#",r=1;r<4;r+=1){const e=t.slice(r,r+1);n+=e.concat(e)}t=n}var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return"rgb("+i.join(",")+")"}return t}function Tr(e){const t=e;if(4===t.length){let e="#";for(var n=1;n<4;n+=1){const r=t.slice(n,n+1);e+=r.concat(r)}return e}return t}var Dr,Pr;function Br(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?Dr.Hex:"r"===t||"("===t?Dr.RGBA:"h"===t?Dr.Hsla:Dr.RGBA}function Nr(e){if(!e)return;var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(!t)return;var n,r,i,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=r=i=a;else{var c=a<=.5?a*(s+1):a+s-a*s,l=2*a-c;n=$r(l,c,o+1/3),r=$r(l,c,o),i=$r(l,c,o-1/3)}return`rgba(${n=Math.round(255*n)},${r=Math.round(255*r)},${i=Math.round(255*i)},${t[4]?parseFloat(t[4]):1})`}function $r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Or(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function Ur(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function Wr(e){let t=e.toLowerCase();if(Or(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function jr(e){if(!Or(e))return;const[t,n,r]=Wr(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e));return.299*t+.578*n+.114*r<192}function Fr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Gr(e.substring(0,2),t)}${Gr(e.substring(2,4),t)}${Gr(e.substring(4,6),t)}`}function Hr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${qr(e.substring(0,2),t)}${qr(e.substring(2,4),t)}${qr(e.substring(4,6),t)}`}function qr(e,t){const n=parseInt(e,16)+t,r=n>255?255:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function Xr(e,t,n){const r=[e,t,n].map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*r[0]+.7152*r[1]+.0722*r[2]}function Yr(e){const t=Wr(e.substring(1));var n,r;return(n=t.split(","),r=[0,0,0],(Xr(~~n[0],~~n[1],~~n[2])+.05)/(Xr(r[0],r[1],r[2])+.05))>=12?"#000000":"#FFFFFF"}function Gr(e,t){const n=parseInt(e,16)-t,r=n<0?0:n;return r.toString(16).length>1?r.toString(16):`0${r.toString(16)}`}function Vr(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${Zr}毫秒`)}function Zr(e){return new Promise(t=>setTimeout(t,e))}(Pr=Dr||(Dr={}))[Pr.RGBA=0]="RGBA",Pr[Pr.Hex=1]="Hex",Pr[Pr.Hsla=2]="Hsla";const Kr="access_token",Jr=new nt("user",localStorage);function Qr(){return Jr.get(Kr)}function ei(){Jr.remove(Kr)}function ti(){const e=Qr();return e?.refresh}function ni(e,t,n,r="json",i){const o={baseURL:Ar.Config.ServiceURL.DefaultWebAPI,timeout:6e4,params:e,paramsSerializer:{serialize:function(e){return W.stringify(e,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+Qr()?.token},responseType:r,cancelToken:i};if(n)for(let e in n)o.headers[e]=n[e];return Ar.SystemID&&(o.headers.sysid=Ar.SystemID,Ar.SystemGroup&&(o.headers.sysgroup=Ar.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function ri(e,t,n,r,i="json",o,s){const a=ni(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),Ar.Axios?.get(e,a).catch(function(t){ii(t,a.baseURL,e,"Get")})}function ii(e,t,n,r="Get"){const i=`${t}${n}`;if(e&&e.response){let t=!1;const n=e.response.status;switch(n){case 400:e.message="错误请求";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求错误,未找到该资源";break;case 405:e.message="请求方法未允许";break;case 408:e.message="请求超时";break;case 500:const n=e.response.data;if(n){const r=n.indexOf(":"),i=n.indexOf("\n");if(r>0&&i-r>2){const o=n.substring(r+2,i);o.indexOf("System.Exception")>0?e.message="后台服务内部出错!":(t=!0,e.message=o)}else t=!0,e.message=n}else e.message="服务器端出错";break;case 501:e.message="网络未实现";break;case 502:e.message="网络错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网络超时";break;case 505:e.message="http版本不支持该请求";break;default:e.message=`连接错误${e.response.status}`}let r={address:i,code:n,isExceptionInfo:t,message:e.message,result:e.response.data};if(Ar.EventBus.emit(Un.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function oi(e,t,n,r,i,o="json",s){const a=ni(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const c=function(e){let t=new FormData;e&&Object.keys(e).forEach(n=>{if(!e)return;let r=e[n];null!=r&&(Ne(r)?r.forEach(e=>{t.append(n,ui(e))}):t.append(n,ui(r)))});return t}(n);return Ar.Axios?.post(e,c,a).catch(function(e){ii(e,t,a.baseURL,"Post")})}function si(e,t,n,r,i,o="json",s){const a=ni(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),Ar.Axios?.post(e,n,a).catch(function(n){ii(n,t,e,"Post")})}function ai(e,t,n=!1){return e.startsWith("http")?ri("",e,t):n||t?ri(e,void 0,t):ri(e,"",void 0)}function ci(e,t){return oi(e,void 0,t)}function li(e,t){return Ar.Axios?.get(e,{params:t}).catch(function(t){ii(t,e,"","外部Get")})}function ui(e){return e instanceof Blob?e:e.toString()}function di(e,t,n){const r=t??tt.getFileName(e);ri("",e,n,void 0,"blob").then(e=>{e.data&&Zn(e.data,r)})}var hi,fi,pi,mi,gi,vi,yi,wi,bi,Si={exports:{}};function xi(){return fi?hi:(fi=1,e="undefined"!=typeof window?window:void 0!==ge?ge:"undefined"!=typeof self?self:{},hi=e);var e}function Ci(){if(mi)return pi;mi=1,pi=function(t){if(!t)return!1;var n=e.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return pi}function Ei(){if(vi)return gi;vi=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return gi=function(n){if(!n)return{};for(var r=Object.create(null),i=e(n).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),c=e(s.slice(0,a)).toLowerCase(),l=e(s.slice(a+1));void 0===r[c]?r[c]=l:t(r[c])?r[c].push(l):r[c]=[r[c],l]}return r},gi}var ki=function(){if(bi)return Si.exports;bi=1;var e=xi(),t=Ci(),n=Ei(),r=function(){if(wi)return yi;wi=1,yi=function(){for(var t={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)e.call(r,i)&&(t[i]=r[i])}return t};var e=Object.prototype.hasOwnProperty;return yi}();function i(e,n,i){var o=e;return t(n)?(i=n,"string"==typeof e&&(o={uri:e})):o=r(n,{uri:e}),o.callback=i,o}function o(e,t,n){return s(t=i(e,t,n))}function s(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,r=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function i(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function s(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,y)}function a(){if(!l){var t;clearTimeout(d),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:i(),statusCode:t,method:f,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(o.headers=n(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(s,o,o.body)}}var c,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var d,h=u.url=e.uri||e.url,f=u.method=e.method||"GET",p=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:h,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=s,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=s,u.open(f,h,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}},e.timeout)),u.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&u.setRequestHeader(c,m[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}return Si.exports=o,Si.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,n,r){return(n=i(t,n,r)).method=e.toUpperCase(),s(n)}}),Si.exports}();const zi=ve(ki),Mi=[200,201,202,204,308],Ai=[408,502,503,504];class Ii{endpoint;file;headers;method;chunkSize;attempts;delayBeforeAttempt;md5;chunkCount;chunkByteSize;cacheSize=3;currentMaxIndex=0;maxFileBytes;endpointValue;totalChunks;attemptCount;offline;paused;success;isResumed=!1;mapXhrRequest;okRecordList;eventTarget;fileName;constructor(e){this.endpoint=e.endpoint,this.file=e.file,this.fileName=encodeURI(this.file.name),this.headers=e.headers||{},this.method=e.method||"PUT",this.chunkSize=e.chunkSize||5120,this.attempts=e.attempts||5,this.delayBeforeAttempt=e.delayBeforeAttempt||1,this.md5=e.md5||"",null!=e.threadNumber&&e.threadNumber>=2&&(this.cacheSize=e.threadNumber),this.maxFileBytes=1024*(e.maxFileSize||0),this.chunkCount=0,this.chunkByteSize=1024*this.chunkSize,this.totalChunks=Math.ceil(this.file.size/this.chunkByteSize),this.attemptCount=0,this.offline=!1,this.paused=!1,this.success=!1,this.mapXhrRequest=new Map,this.okRecordList=[],this.eventTarget=$n(),this.validateOptions(),this.getEndpoint().then(()=>{for(let e=0;e<this.cacheSize;e++){const t=e;if(t<this.totalChunks){const e=100*t;e>0?Zr(e).then(e=>{this.sendChunks(t)}):this.sendChunks(t)}}}),"undefined"!=typeof window&&(window.addEventListener("online",()=>{this.offline&&(this.offline=!1,this.dispatch("online"),this.sendChunks())}),window.addEventListener("offline",()=>{this.offline=!0,this.dispatch("offline")}))}on(e,t){this.eventTarget.on(e,t)}abort(){this.pause(),this.mapXhrRequest.size>0&&(this.mapXhrRequest.forEach((e,t)=>{e&&e.abort()}),this.mapXhrRequest.clear())}pause(){this.paused=!0}async resume(){this.paused=!1,this.isResumed=!0;for(let e=0;e<this.totalChunks;e++){if(this.mapXhrRequest.size>=this.cacheSize){const e=500*(this.mapXhrRequest.size-this.cacheSize+1);await Zr(e)}this.sendChunks(e)}}dispatch(e,t){this.eventTarget.emit(e,t)}validateOptions(){if(!this.endpoint||"function"!=typeof this.endpoint&&"string"!=typeof this.endpoint)throw new TypeError("endpoint必须为:文件上传URL字符串,或返回地址的函数!");if(!(this.file instanceof File))throw new TypeError("file必须为文件对象");if(this.headers&&"object"!=typeof this.headers)throw new TypeError("文件头必须为对象或空!");if(this.chunkSize&&("number"!=typeof this.chunkSize||this.chunkSize<=0||this.chunkSize%256!=0))throw new TypeError("chunkSize必须大于0,并是256的整数倍");if(this.maxFileBytes>0&&this.maxFileBytes<this.file.size)throw new Error(`文件大小超过最大允许值:(${this.file.size} > ${this.maxFileBytes})`);if(this.attempts&&("number"!=typeof this.attempts||this.attempts<=0))throw new TypeError("重试次数必须为正数!");if(this.delayBeforeAttempt&&("number"!=typeof this.delayBeforeAttempt||this.delayBeforeAttempt<0))throw new TypeError("延时重试时间必须为正数!默认为1")}getEndpoint(){return"string"==typeof this.endpoint?(this.endpointValue=this.endpoint,Promise.resolve(this.endpoint)):this.endpoint(this.file).then(e=>(this.endpointValue=e,this.endpointValue))}getChunk(e=0){return new Promise(t=>{const n=1===this.totalChunks?this.file.size:this.chunkByteSize,r=n*e,i=new FileReader;i.onload=function(){if(null!==this.result){const n=new Blob([this.result],{type:"application/octet-stream"});t({chunkIndex:e,chunkContent:n})}else t(void 0)},i.readAsArrayBuffer(this.file.slice(r,r+n))})}xhrPromise(e){return new Promise((t,n)=>{const r=e.headers,i=Number(r.ChunkIndex),o=zi({...e},(e,r)=>(this.mapXhrRequest.delete(i),e?n(e):t(r)));this.mapXhrRequest.set(i,o)})}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,r=n+t.size-1,i={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${r}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:i,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){if(this.paused||this.offline||this.success)return;this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then(e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}}).then(t=>{if(t)if(Mi.includes(t.statusCode)){const n=JSON.parse(t.body).RESULTVALUE;if(n.STATE){this.attemptCount=0,this.chunkCount=this.chunkCount+1;const e=Math.round(n.INDEX/this.chunkByteSize);this.mapXhrRequest.delete(e),this.dispatch("chunkSuccess",{chunkCount:this.chunkCount,attempts:this.attemptCount,chunkNumber:e}),this.okRecordList.push(e),this.chunkCount<this.totalChunks&&!this.isResumed&&this.currentMaxIndex<this.totalChunks-1&&(this.currentMaxIndex++,this.sendChunks(this.currentMaxIndex));const t=100*this.chunkCount/this.totalChunks;this.dispatch("progress",t),n.END&&(this.success=!0,this.dispatch("success",this.fileName),this.okRecordList.length=0)}else{const t=`服务器错误:${n.NAME},停止上传。`;console.log(t),this.dispatch("error",{message:t,chunkNumber:e,attempts:0}),this.mapXhrRequest.delete(e),Zr(1e3).then(t=>this.sendChunks(e))}}else if(null!=t&&Ai.includes(t.statusCode)){if(this.paused||this.offline)return}else{if(this.paused||this.offline)return;console.log(`服务器错误:${t?.statusCode},停止上传。`),this.dispatch("error",{message:`服务器错误:${t?.statusCode},停止上传。`,chunkNumber:this.chunkCount,attempts:this.attemptCount})}else console.warn("上传失败的索引为:"+e)}).catch(e=>{!this.paused&&this.offline}))}}const Li=e=>new Ii(e);const Ri=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,s=window.pageXOffset,a=window.pageYOffset,c=this.getBoundingClientRect(e),{left:l,top:u,width:d,height:h}=c,f=l+s-((s||n)-(i||0)),p=u+a-((a||r)-(o||0)),m=window.document.documentElement.clientWidth,g=window.document.documentElement.clientHeight;return{left:f,top:p,right:m-d-f,bottom:g-h-p,rightIncludeBody:m-f,bottomIncludeBody:g-p}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach(r=>{n[`${r}${tt.UpperFirst(e)}`]=t}),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const r=function(...i){n&&n.apply(this,i),this.off(e,t,r)};this.on(e,t,r)}};class _i{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!tt.isNullOrEmpty(e)){if(_i.httpTransport||(_i.httpTransport=new G),this.client=new j(e),!this.client)throw Error("Hprose Client初始化错误");this.hproseURL=e,this.init()}}init(){this.client&&this.client.useServiceAsync().then(e=>{this.hproseProxy=e}).catch(e=>{String(e).indexOf("find this method ~")>0?(this.hproseProxy=this.client?.useService(),console.warn("旧版本不支持useServiceAsync")):On.emit(Un.HproseServiceErrorEvent,"初始化默认Hprose!"),console.warn(e)})}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}}class Ti{hproseClient;hpProxyObj;defaultContext=new F;constructor(e){this.hproseClient=new _i(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=Qr();i&&(r.token=i.token),Ar.SystemID&&(r.sysid=Ar.SystemID,Ar.SystemGroup&&(r.sysgroup=Ar.SystemGroup));return new F(n)}async getHproseProxy(){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");if(!this.hpProxyObj){const e=await this.hproseClient.getProxy();this.hpProxyObj=e}return this.hpProxyObj||On.emit(Un.HproseServiceErrorEvent,"HproseProxy对象为空,无法调用Hprose方法!"),this.hpProxyObj}async hproseInvoke(e,t,n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");return await this.hproseClient.invoke(e,t,n)}async hproseInvokeContext(e,t,...n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");const r=Qr();return console.log(r,"userToken3"),r&&(t||(t=new F({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new H(e).toBytes(),n=await(this.hproseClient.client?.request(t,this.defaultContext));return n?this.hproseClient.client?.codec.decode(n,this.defaultContext):n}encodeRequest(e,...t){const n=this.hproseClient.client?.codec,r=n?.encode(e,t,this.defaultContext);return H.toString(r)}}const Di=new Map,Pi=function(e,t,n){Ar.Config.ServiceURL&&Ar.Config.ServiceURL.DefaultHproseAPI&&(Ar.Config.DefaultHproseAPI=Ar.Config.ServiceURL.DefaultHproseAPI,Ar.DefaultProxyClient=new Ti(Ar.Config.ServiceURL.DefaultHproseAPI));const r=Ar.Config.UI.GrayMode;r&&et.setGrayMode(r);const i=new Cr(e,Ar.EventBus);Ar.Message=i,Ar.SystemID=t,Ar.SystemGroup=n,Ar.EventBus.on(Un.HproseServiceErrorEvent,e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)}),Ar.EventBus.on(Un.WebAPIErrorEvent,e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)}),Ar.EventBus.on(Un.AxiosRequestErrorEvent,e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)}),Ar.EventBus.on(Un.CommonWarnEvent,e=>{i.warn(e)})};function Bi(e){if(e&&tt.isNotEmpty(e)){if(Di.has(e))return Di.get(e);{const t=new Ti(e);return Di.set(e,t),t}}}function Ni(e){const t=Bi(e);return t&&(Ar.DefaultProxyClient=t),t}const $i=a({isLock:!1,lockTime:0});function Oi(e){$i.isLock=e,e&&(ei(),console.log("锁屏了……"))}function Ui(){return $i.isLock}let Wi;function ji(){clearInterval(Wi);window.location.href.indexOf("/login")>0||$i.isLock||(Oi(!1),$i.lockTime=function(){let e=3600;return Ar.Config.UI?.LockTime&&Ar.Config.UI?.LockTime>=10&&(e=Ar.Config.UI.LockTime),e}(),Wi=setInterval(()=>{if($i.lockTime--,$i.lockTime<=0)return Oi(!0),clearInterval(Wi)},1e3))}function Fi(){ji(),document.addEventListener("mousedown",ji),document.addEventListener("mousemove",ji)}function Hi(){document.removeEventListener("mousedown",ji),document.removeEventListener("mousemove",ji)}function qi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xi,Yi={exports:{}};
|
|
1
|
+
import{defineComponent as e,ref as t,createElementBlock as n,openBlock as i,withModifiers as r,normalizeStyle as o,renderSlot as s,reactive as a,getCurrentInstance as l,computed as c,watch as u,onMounted as h,onBeforeUnmount as d,nextTick as f,resolveComponent as p,createBlock as g,Transition as m,withCtx as v,withDirectives as y,createElementVNode as w,createCommentVNode as b,Fragment as S,createTextVNode as x,toDisplayString as E,vShow as C,markRaw as k,onErrorCaptured as z,Suspense as T,createVNode as A,KeepAlive as L,resolveDynamicComponent as M,renderList as _,unref as I,normalizeClass as R,TransitionGroup as D,onUnmounted as B,useCssVars as P,h as F}from"vue";import O from"iconv-lite";export{default as iconv}from"iconv-lite";import*as N from"@microsoft/signalr";import $ from"axios";import W from"qs";import{Client as U,ClientContext as j}from"@hprose/rpc-core";import{ByteStream as H,Writer as q,Reader as X,ValueReader as G}from"@hprose/io";import{HttpTransport as Y}from"@hprose/rpc-html5";import{Icon as V}from"@iconify/vue";function Z(e){if(e){const{width:t,height:n}=e.style;e.style.width="auto",e.style.height="auto";const i=K(e);return e.style.width=t,e.style.height=n,i}return{width:0,height:0,top:0,left:0,bottom:0,right:0}}function K(e){const t=e.getBoundingClientRect(),n=t.width,i=t.height,r=t.top,o=t.left;return{width:n,height:i,top:r,left:o,bottom:r+i,right:o+n}}function J(e){return window.TouchEvent&&e instanceof TouchEvent}class Q{e;constructor(e){this.e=e}stopPropagation(){this.e.stopPropagation()}preventDefault(){this.e.preventDefault()}get clientX(){return J(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientX:this.e.clientX}get clientY(){return J(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientY:this.e.clientY}get clientCoord(){return new ee(this.clientX,this.clientY)}static bindDown(e,t,n,i=!1){const r=e=>{t(new Q(e))},o=e=>{1===e.touches.length&&t(new Q(e)),e.touches.length>1&&n&&n(new Q(e))};return e.addEventListener("mousedown",r,i),e.addEventListener("touchstart",o,i),()=>{e.removeEventListener("mousedown",r,i),e.removeEventListener("touchstart",o,i)}}static bindMove(e,t,n=!1){const i=e=>{t(new Q(e))},r=e=>{1===e.touches.length&&t(new Q(e))};return e.addEventListener("mousemove",i,n),e.addEventListener("touchmove",r,n),()=>{e.removeEventListener("mousemove",i,n),e.removeEventListener("touchmove",r,n)}}static bindUp(e,t,n=!1){const i=e=>{t(new Q(e))},r=e=>{0===e.touches.length&&t(new Q(e))};return e.addEventListener("mouseup",i,n),e.addEventListener("touchend",r,n),()=>{e.removeEventListener("mouseup",i,n),e.removeEventListener("touchend",r,n)}}originalEvent({mouse:e,touch:t}){J(this.e)?t&&t(this.e):e&&e(this.e)}}class ee{x;y;constructor(e,t){this.x=e,this.y=t}clone(){return new ee(this.x,this.y)}}class te{handle;container;options;unbindDown;unbindMove;unbindUp;constructor(e,t,n={}){this.handle=e,this.container=t,this.options=n,e&&(this.unbindDown=Q.bindDown(e,this.mousedown),e.classList.add("draggable-handle"))}teardown(){this.handle?.classList.remove("draggable-handle"),this.unbindDown&&this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove()}offsetX;offsetY;mousedown=e=>{e.preventDefault(),this.handle&&(this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMoveStart&&this.options.onMoveStart(),this.unbindMove=Q.bindMove(document,this.mousemove),this.unbindUp=Q.bindUp(document,this.mouseup)};mousemove=e=>{this.container&&(this.container.style.left=`calc(${e.clientX-this.offsetX}px + ${this.container.style.left})`,this.container.style.top=`calc(${e.clientY-this.offsetY}px + ${this.container.style.top})`,this.offsetX=e.clientX,this.offsetY=e.clientY),this.options.onMove&&this.options.onMove()};mouseup=e=>{this.options.onMoveEnd&&this.options.onMoveEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0}}class ne{container;options;handles;constructor(e,t){if(this.container=e,this.options=t,e&&t){this.handles=ie.map(t=>new t(e,this));const{width:n,height:i}=Z(e),r=t.maxWidth||globalThis.innerWidth,o=t.maxHeight||globalThis.innerHeight;let s=!1;(n<t.minWidth||n>r)&&(e.style.width=`${oe(n,t.minWidth,r)}px`,s=!0),(i<t.minHeight||i>o)&&(e.style.height=`${oe(i,t.minHeight,o)}px`,s=!0),s&&t.onResize&&t.onResize()}}teardown(){this.handles?.forEach(e=>e.teardown())}}const ie=[];class re{container;helper;handle;handleSize=8;unbindDown;unbindMove;unbindUp;constructor(e,t){this.container=e,this.helper=t,this.handle=this.createHandleElement(),this.unbindDown=Q.bindDown(this.handle,this.mousedown)}teardown(){this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove(),this.handle.parentElement.removeChild(this.handle)}x0;y0;left0;top0;width0;height0;mousedown=e=>{e.preventDefault(),e.stopPropagation();const{left:t,top:n,width:i,height:r}=K(this.container);this.x0=e.clientX,this.y0=e.clientY,this.left0=t,this.top0=n,this.width0=i,this.height0=r,this.calcSafeBoundaries(),this.helper.options&&this.helper.options.onResizeStart&&this.helper.options.onResizeStart(),this.unbindMove=Q.bindMove(document,this.mousemove),this.unbindUp=Q.bindUp(document,this.mouseup)};minLeft;maxLeft;minRight;maxRight;minTop;maxTop;minBottom;maxBottom;calcSafeBoundaries(){if(!this.helper.options)return;const{left:e,top:t,right:n,bottom:i}=K(this.container),r=this.helper.options,o=r.maxWidth||globalThis.innerWidth,s=r.maxHeight||globalThis.innerHeight;this.minLeft=Math.max(n-o,0),this.maxLeft=n-r.minWidth,this.minRight=e+r.minWidth,this.maxRight=Math.min(e+o,globalThis.innerWidth),this.minTop=Math.max(i-s,0),this.maxTop=i-r.minHeight,this.minBottom=t+r.minHeight,this.maxBottom=Math.min(t+s,globalThis.innerHeight)}mousemove=e=>{e.preventDefault(),e.stopPropagation(),this.setPosition(e),this.fixPosition(),this.helper.options&&this.helper.options.onResize&&this.helper.options.onResize()};fixPosition(){const{width:e,height:t,left:n,top:i,right:r,bottom:o}=K(this.container),s=this.helper.options;s&&(n<this.minLeft?(this.container.style.width=e+n-this.minLeft+"px",this.container.style.left=`${this.minLeft}px`):n>this.maxLeft?(this.container.style.width=`${s.minWidth}px`,this.container.style.left=`${this.maxLeft}px`):r<this.minRight?this.container.style.width=`${s.minWidth}px`:r>this.maxRight&&(this.container.style.width=this.maxRight-n+"px"),i<this.minTop?(this.container.style.height=t+i-this.minTop+"px",this.container.style.top=`${this.minTop}px`):i>this.maxTop?(this.container.style.height=`${s.minHeight}px`,this.container.style.top=`${this.maxTop}px`):o<this.minBottom?this.container.style.height=`${s.minHeight}px`:o>this.maxBottom&&(this.container.style.height=this.maxBottom-i+"px"))}mouseup=e=>{e.preventDefault(),e.stopPropagation(),this.helper.options&&this.helper.options.onResizeEnd&&this.helper.options.onResizeEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0};createHandleElement(){const e=document.createElement("div"),t=e.style;return t.position="absolute",this.applyStyle(t),this.container.appendChild(e),e}}function oe(e,t,n){return e<t?t:e>n?n:e}ie.push(class extends re{setPosition(e){this.container.style.width=this.width0+e.clientX-this.x0+"px",this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.right=-this.handleSize+"px",e.bottom=-this.handleSize+"px",e.cursor="nwse-resize"}},class extends re{setPosition(e){this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.right=`${this.handleSize}px`,e.left=`${this.handleSize}px`,e.height=2*this.handleSize+"px",e.bottom=-this.handleSize+"px",e.cursor="ns-resize"}},class extends re{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px",this.container.style.height=this.height0+e.clientY-this.y0+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.bottom=-this.handleSize+"px",e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.cursor="nesw-resize"}},class extends re{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.bottom=`${this.handleSize}px`,e.width=2*this.handleSize+"px",e.top=`${this.handleSize}px`,e.cursor="ew-resize"}},class extends re{setPosition(e){this.container.style.left=this.left0+e.clientX-this.x0+"px",this.container.style.width=this.width0-(e.clientX-this.x0)+"px",this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px"}applyStyle(e){e.left=-this.handleSize+"px",e.top=-this.handleSize+"px",e.width=2*this.handleSize+"px",e.height=2*this.handleSize+"px",e.cursor="nwse-resize"}},class extends re{setPosition(e){this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px"}applyStyle(e){e.left=`${this.handleSize}px`,e.right=`${this.handleSize}px`,e.height=2*this.handleSize+"px",e.top=-this.handleSize+"px",e.cursor="ns-resize"}},class extends re{setPosition(e){this.container.style.top=this.top0+e.clientY-this.y0+"px",this.container.style.height=this.height0-(e.clientY-this.y0)+"px",this.container.style.width=this.width0+e.clientX-this.x0+"px"}applyStyle(e){e.right=-this.handleSize+"px",e.top=-this.handleSize+"px",e.height=2*this.handleSize+"px",e.width=2*this.handleSize+"px",e.cursor="nesw-resize"}},class extends re{setPosition(e){this.container.style.width=this.width0+e.clientX-this.x0+"px"}applyStyle(e){e.right=-this.handleSize+"px",e.top=`${this.handleSize}px`,e.bottom=`${this.handleSize}px`,e.width=2*this.handleSize+"px",e.cursor="ew-resize"}});class se{_group;onChange;zIndex;constructor(e,t){this._group=e,this.onChange=t,this.a(e=>e.push(this))}set group(e){this._group=e;const t=ce(this._group),n=ce(e);t.splice(t.indexOf(this),1),n.push(this),he()}get group(){return this._group}unregister(){this.a(e=>e.splice(e.indexOf(this),1))}raise(){this.a(e=>{e.splice(e.indexOf(this),1),e.push(this)})}a(e){e(ce(this._group)),he()}}const ae=new Map,le=0;function ce(e){return ae.has(e)||ae.set(e,[]),ae.get(e)}function ue(e,t){return e>t?-ue(t,e):e<0&&t>=0?1:e-t}function he(){let e=le;for(const t of function(e){const t=[];return e.forEach((e,n)=>t.push(n)),t}(ae).sort(ue))for(const n of ce(t))e!=n.zIndex&&(n.zIndex=e,n.onChange(e)),e++}const de=e({name:"",props:{disabled:{type:Boolean,default:!1},windowStyle:{type:Object,required:!0}},components:{},setup(e){const n=t(!1),i=t(!1);return{hover:n,active:i,style:function(){let t=e.windowStyle.button;return n.value&&(t={...t,...this.windowStyle.buttonHover}),i.value&&(t={...t,...this.windowStyle.buttonActive}),t},mouseup:function(e){this.active&&this.$emit("click")},mousedown:function(e){e.preventDefault(),i.value=!0;const t=Q.bindUp(document,()=>{i.value=!1,t()})}}}}),fe=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n},pe=["disabled"];const ge=fe(de,[["render",function(e,t,a,l,c,u){return i(),n("div",{class:"btn",style:o(e.style()),onMouseenter:t[0]||(t[0]=t=>e.hover=!0),onMouseleave:t[1]||(t[1]=t=>e.hover=!1),onMousedown:t[2]||(t[2]=r((...t)=>e.mousedown&&e.mousedown(...t),["stop"])),onTouchstart:t[3]||(t[3]=r((...t)=>e.mousedown&&e.mousedown(...t),["stop"])),onMouseup:t[4]||(t[4]=(...t)=>e.mouseup&&e.mouseup(...t)),onTouchend:t[5]||(t[5]=(...t)=>e.mouseup&&e.mouseup(...t)),disabled:e.disabled},[s(e.$slots,"default",{},void 0,!0)],44,pe)}],["__scopeId","data-v-2231c0f9"]]);var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye,we={exports:{}};var be=(ye||(ye=1,we.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],i=e[1],r=e[2],o=e[3];i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&r)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&i)+t[2]+606105819|0)<<17|r>>>15)+o|0)&o|~r&n)+t[3]-1044525330|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&r)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&i)+t[6]-1473231341|0)<<17|r>>>15)+o|0)&o|~r&n)+t[7]-45705983|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&r)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&i)+t[10]-42063|0)<<17|r>>>15)+o|0)&o|~r&n)+t[11]-1990404162|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+t[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&r)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&i)+t[14]-1502002290|0)<<17|r>>>15)+o|0)&o|~r&n)+t[15]+1236535329|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[1]-165796510|0)<<5|n>>>27)+i|0)&r|i&~r)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&i|n&~i)+t[11]+643717713|0)<<14|r>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[5]-701558691|0)<<5|n>>>27)+i|0)&r|i&~r)+t[10]+38016083|0)<<9|o>>>23)+n|0)&i|n&~i)+t[15]-660478335|0)<<14|r>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[9]+568446438|0)<<5|n>>>27)+i|0)&r|i&~r)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&i|n&~i)+t[3]-187363961|0)<<14|r>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+t[13]-1444681467|0)<<5|n>>>27)+i|0)&r|i&~r)+t[2]-51403784|0)<<9|o>>>23)+n|0)&i|n&~i)+t[7]+1735328473|0)<<14|r>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[5]-378558|0)<<4|n>>>28)+i|0)^i^r)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^i)+t[11]+1839030562|0)<<16|r>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[1]-1530992060|0)<<4|n>>>28)+i|0)^i^r)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^i)+t[7]-155497632|0)<<16|r>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[13]+681279174|0)<<4|n>>>28)+i|0)^i^r)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^i)+t[3]-722521979|0)<<16|r>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+t[9]-640364487|0)<<4|n>>>28)+i|0)^i^r)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^i)+t[15]+530742520|0)<<16|r>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|i>>>9)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[0]-198630844|0)<<6|n>>>26)+i|0)|~r))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[14]-1416354905|0)<<15|r>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[12]+1700485571|0)<<6|n>>>26)+i|0)|~r))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[10]-1051523|0)<<15|r>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[8]+1873313359|0)<<6|n>>>26)+i|0)|~r))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[6]-1560198380|0)<<15|r>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+t[4]-145523070|0)<<6|n>>>26)+i|0)|~r))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+t[2]+718787259|0)<<15|r>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|i>>>11)+r|0,e[0]=n+e[0]|0,e[1]=i+e[1]|0,e[2]=r+e[2]|0,e[3]=o+e[3]|0}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,r,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,i(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,n(u,o),u}function s(e){var t,i,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.subarray(t-64,t)));for(i=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,n(u,o),u}function a(e){var n,i="";for(n=0;n<4;n+=1)i+=t[e>>8*n+4&15]+t[e>>8*n&15];return i}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,i=e.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n<i;n+=1)o[n]=e.charCodeAt(n);return t?o:r}function h(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function d(e,t,n){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e)),i.set(new Uint8Array(t),e.byteLength),i}function f(e){var t,n=[],i=e.length;for(t=0;t<i-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return l(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,i){var r,o,s,a,l=this.byteLength,c=t(n,l),u=l;return i!==e&&(u=t(i,l)),c>u?new ArrayBuffer(0):(r=u-c,o=new ArrayBuffer(r),s=new Uint8Array(o),a=new Uint8Array(this,c,r),s.set(a),o)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)n(this._hash,i(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(o,r),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var i,r,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),o=parseInt(i[1],16)||0,e[14]=r,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var n=l(o(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,i=d(this._buff.buffer,e),o=i.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,r(i.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(i.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=i[t]<<(t%4<<3);return this._finish(o,r),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=h(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=l(s(new Uint8Array(e)));return t?f(n):n},p}()),we.exports);const Se=ve(be),xe=Object.prototype.toString;function Ee(e,t){return xe.call(e)===`[object ${t}]`}function Ce(e){return Ee(e,"Function")}const ke=e=>void 0!==e,ze=e=>!ke(e);function Te(e){return null===e}function Ae(e){return ze(e)&&Te(e)}function Le(e){return ze(e)||Te(e)}const Me=e=>null!=e&&null!==e&&Ee(e,"Object");function _e(e){return Ee(e,"Date")}function Ie(e){return Ee(e,"Number")}function Re(e){return Ee(e,"AsyncFunction")}function De(e){return Ee(e,"Promise")&&Me(e)&&Ce(e.then)&&Ce(e.catch)}function Be(e){return Ee(e,"String")}function Pe(e){return!0===e||!1===e||Ee(e,"Boolean")}function Fe(e){return e&&Array.isArray(e)}const Oe=()=>"undefined"!=typeof window,Ne=e=>"undefined"!=typeof window&&Ee(e,"Window"),$e=e=>xe.call(e).startsWith("[object HTML")&&!!e.tagName,We="undefined"==typeof window;function Ue(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function je(e){return null==e||(Be(e)||Fe(e)?0===e.length:!!Me(e)&&"{}"===JSON.stringify(e))}function He(e){return Ee(e,"Error")}function qe(e){return Ee(e,"WeakSet")}function Xe(e){return Ee(e,"WeakMap")}function Ge(e){return Ee(e,"Symbol")}function Ye(e){return Ee(e,"Map")}const Ve=e=>/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/.test(e);function Ze(e){return/^\s*[{[]/.test(String(e))}function Ke(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}const Je=[];let Qe;class et{static addHandler(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}static removeHandler(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):delete e["on"+t]}static windowResizeHandler(e){et.addHandler(window,"resize",e)}static offWindowResizeHandler(e){et.removeHandler(window,"resize",e)}static fullscreenEnabled(){const e=globalThis.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=globalThis.document;let t=globalThis.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(globalThis.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=globalThis.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=globalThis.document.documentElement){let t=e;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var i=new window.ActiveXObject("WScript.Shell");null!==i&&i.SendKeys("{F11}")}}static exitFullScreen(){const e=globalThis.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return globalThis.document.fullscreenElement||globalThis.document.webkitFullscreenElement||globalThis.document.mozFullscreenElement||globalThis.document.msFullscreenElement}static isFullScreen(){return!!et.fullScreenElement()}static onFullScreenChanged(e){let t;"onfullscreenchange"in globalThis.document?t="fullscreenchange":"onwebkitfullscreenchange"in globalThis.document?t="webkitfullscreenchange":"onmozfullscreenchange"in globalThis.document&&(t="mozfullscreenchange"),t?document.addEventListener(t,function(){const t=et.isFullScreen();e(t)}):document.addEventListener("MSFullscreenChange",function(){const t=et.isFullScreen();e(t)})}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Je.indexOf(t))return;Je.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,et.stringifyCircularHandler);return Je.length=0,t}static jsonParse(e){const t=et.jsonStringify(e);if(t.length>1){return JSON.parse(t)}}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=globalThis.URL?t=globalThis.URL.createObjectURL(e):null!=globalThis.webkitURL&&(t=globalThis.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,i=n.slice||n.mozSlice||n.webkitSlice,r=e;const o=new Se.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result);const n=o.end();t({isOK:!0,data:n})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=r.size?r.size:2097152;s.readAsArrayBuffer(i.call(r,0,e))}()}static getFileMD5(e,t){const n=File.prototype,i=n.slice||n.mozSlice||n.webkitSlice,r=e,o=2097152,s=Math.ceil(r.size/o);let a=0;const l=new Se.ArrayBuffer,c=new FileReader;function u(){const e=a*o,t=e+o>=r.size?r.size:e+o;c.readAsArrayBuffer(i.call(r,e,t))}c.onload=function(e){if(l.append(e.target?.result),a++,a<s)u();else{const e=l.end();t({isOK:!0,data:e})}},c.onerror=function(){const e=`${r.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return Se.hash(e,t)}static copyTextByCommand(e){return new Promise((t,n)=>{const i=document.createElement("input");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),i.remove(),t(!0)})}static copyText=e=>navigator.clipboard?navigator.clipboard.writeText(e).then(function(){return!0},function(e){return!1}):et.copyTextByCommand(e);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=globalThis.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{document.execCommand("copy");return n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(e){if(!navigator.clipboard)return et.copyElementTextByCommand(e);const t=document.createRange();t.selectNode(document.getElementById(e));const n=globalThis.getSelection();return n.rangeCount>0&&n.removeAllRanges(),n.addRange(t),navigator.clipboard.writeText(n).then(function(){return n.removeRange(t),!0},function(e){return n.removeRange(t),console.error("Clipboard复制文本错误",e),!1})}static setGrayMode(e){et.toggleClass(e,"grayMode",document.documentElement)}static toggleClass(e,t,n){const i=n||document.body;let{className:r}=i;r=r.replace(t,""),i.className=e?`${r} ${t} `:r}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");globalThis.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let i;if(i=Be(e)?document.getElementById(e):e,i){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&i.addEventListener("ev",e=>{n(e)},!1),i.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e,i=Math.random();return e+Math.round(i*n)}static merge(e={},t={}){let n,i,r,o;for(e||(e={}),i=0,r=t.length;i<r;i++)for(n in o=t[i],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}()}static debounce(e,t){let n=null;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}static throttle(e,t){let n=!0;return function(){if(!n)return!1;n=!1,setTimeout(()=>{e(),n=!0},t)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],i=atob(t[1]),r=i.length,o=new Uint8Array(r);for(;r--;)o[r]=i.charCodeAt(r);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let i=document.defaultView.getComputedStyle(e,null);n=i?i[t]:null}return"auto"===n?null:n}static create(e,t,n){let i=document.createElement(e);return i.className=t||"",n&&n.appendChild(i),i}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,i=n.length;t<i;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,i){let r=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");r.setAttribute("class","svg-path"),r.setAttribute("width",e),r.setAttribute("height",t),r.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),r.appendChild(o),i&&i.appendChild(r),r}static parseDom(e,t=!0,n=""){t=t??!1;let i=document.createElement("div");return i.className=n||"",i.innerHTML=e,t?i:i.childNodes}static createVideoHTML(e,t,n){let i=this.create("video",t,n),r=this.create("source","",i);r.setAttribute("src",e),r.setAttribute("type","video/map4");let o=this.create("source","",i);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),i}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise((i,r)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,"),n=e.substring(t+3);i(n)}else i(o.result);else r(o)},o.onerror=function(){r(o)}})}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise((n,i)=>{t.push(function(e,t){e?i(e):n(t)}),e.apply(this,t)})}}static wait(e){return new Promise(t=>setTimeout(t,e))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(e,t){if(!e)throw Error("传入Element对象不能为空!");let n;if(Be(e)){let t=document.getElementById(e);if(t)n=t;else{const i=document.getElementsByClassName(e);if(!i||0==i.length)throw Error("未找到对应id或类名的HtmlElement对象!");t=i[0],n=t}}else{if(!$e(e))throw Error("ele参数只能为string 或 Element对象!");n=e}n&&(n.addEventListener("dragenter",this.blockEvent,!1),n.addEventListener("dragover",this.blockEvent,!1),n.addEventListener("drop",function(e){et.blockEvent(e),t(e.dataTransfer.files)},!1))}static getInputElement(){var e=document.activeElement;return!e||"INPUT"!=e.tagName&&"TEXTAREA"!=e.tagName&&"true"!=e.contentEditable?null:e}static guessPasteTextToFileName(e,t){let n,i=t;return Be(e)?i=(Ze(e)?"json":Ke(e)&&"kml")||"text":(Me(e)&&e.type||Fe(e))&&(i="json"),"text"==i?n="pasted.txt":"kml"==i?n="pasted.kml":"json"==i&&(n="pasted.json"),n}static pasteEventHanlder(e,t){const n=this;if(!!n.getInputElement())return;n.blockEvent(e);const i=e.clipboardData,r=Array.from(i.types||[]).join(","),o=Array.from(i.items||[]);let s;if(r.includes("text/plain")){const e=i.getData("text/plain");if(":"===e[1])return t(e);if(Ve(e))return t(e);const r=n.guessPasteTextToFileName(e);if(!r||"pasted.txt"===r)return t(e);{const t=new Blob([e]);s=[new File([t],r)]}}else s=o.map(function(e){return"file"==e.kind?e.getAsFile():null});s=s.filter(Boolean),s.length?t(s):t(void 0)}static onPasteHandler(e,t=document){const n=this;Qe=t=>{n.pasteEventHanlder(t,e)},et.addHandler(t,"paste",Qe)}static offPasteHandler(e=document){Qe&&et.removeHandler(e,"paste",Qe)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}}class tt{static isNullOrEmpty=e=>null===e||""===e||void 0===e||0===e.length;static isNotEmpty=e=>null!==e&&""!==e&&void 0!==e&&0!==e.length;static toHump(e){return e.replace(/[\-\/\_](\w)/g,(e,t)=>t.toUpperCase()).replace("views","")}static getFileName(e){const t=e.lastIndexOf("/")+1;let n=e.substring(t);return n=decodeURI(n.split("?")[0]),n}static UpperFirst(e){return(e=e.toLowerCase()).replace(/\b\w|\s\w/g,e=>e.toUpperCase())}}class nt{prefixKey;storage;constructor(e="",t=globalThis.localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const i=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),i)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const t=JSON.parse(n),{value:i,expire:r}=t;if(null===r||r>=Date.now())return i;this.remove(this.getKey(e))}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(this.getKey(e))}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,i=t.length;n<i;n++){const i=t[n].split("=");if(i[0]===this.getKey(e))return i[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}}const it=new nt("",globalThis.localStorage);function rt(){let e=[];const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var n=0;n<36;n++){const i=Math.floor(16*Math.random());e[n]=t.substring(i,i+1)}e[14]="4";const i=3&Number(e[19])|8;return e[19]=t.substring(i,i+1),e[8]=e[13]=e[18]=e[23]="-",e.join("").toLowerCase()}function ot(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}var st={},at=Uint8Array,lt=Uint16Array,ct=Int32Array,ut=new at([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ht=new at([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),dt=new at([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ft=function(e,t){for(var n=new lt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new ct(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return{b:n,r:r}},pt=ft(ut,2),gt=pt.b,mt=pt.r;gt[28]=258,mt[258]=28;for(var vt=ft(ht,0),yt=vt.b,wt=vt.r,bt=new lt(32768),St=0;St<32768;++St){var xt=(43690&St)>>1|(21845&St)<<1;xt=(61680&(xt=(52428&xt)>>2|(13107&xt)<<2))>>4|(3855&xt)<<4,bt[St]=((65280&xt)>>8|(255&xt)<<8)>>1}var Et=function(e,t,n){for(var i=e.length,r=0,o=new lt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new lt(t);for(r=1;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new lt(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],u=t-e[r],h=a[e[r]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[bt[h]>>l]=c}else for(s=new lt(i),r=0;r<i;++r)e[r]&&(s[r]=bt[a[e[r]-1]++]>>15-e[r]);return s},Ct=new at(288);for(St=0;St<144;++St)Ct[St]=8;for(St=144;St<256;++St)Ct[St]=9;for(St=256;St<280;++St)Ct[St]=7;for(St=280;St<288;++St)Ct[St]=8;var kt=new at(32);for(St=0;St<32;++St)kt[St]=5;var zt=Et(Ct,9,0),Tt=Et(Ct,9,1),At=Et(kt,5,0),Lt=Et(kt,5,1),Mt=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},_t=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(7&t)&n},It=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Rt=function(e){return(e+7)/8|0},Dt=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new at(e.subarray(t,n))},Bt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pt=function(e,t,n){var i=new Error(t||Bt[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Pt),!n)throw i;return i},Ft=function(e,t,n,i){var r=e.length,o=i?i.length:0;if(!r||t.f&&!t.l)return n||new at(0);var s=!n,a=s||2!=t.i,l=t.i;s&&(n=new at(3*r));var c=function(e){var t=n.length;if(e>t){var i=new at(Math.max(2*t,e));i.set(n),n=i}},u=t.f||0,h=t.p||0,d=t.b||0,f=t.l,p=t.d,g=t.m,m=t.n,v=8*r;do{if(!f){u=_t(e,h,1);var y=_t(e,h+1,3);if(h+=3,!y){var w=e[(M=Rt(h)+4)-4]|e[M-3]<<8,b=M+w;if(b>r){l&&Pt(0);break}a&&c(d+w),n.set(e.subarray(M,b),d),t.b=d+=w,t.p=h=8*b,t.f=u;continue}if(1==y)f=Tt,p=Lt,g=9,m=5;else if(2==y){var S=_t(e,h,31)+257,x=_t(e,h+10,15)+4,E=S+_t(e,h+5,31)+1;h+=14;for(var C=new at(E),k=new at(19),z=0;z<x;++z)k[dt[z]]=_t(e,h+3*z,7);h+=3*x;var T=Mt(k),A=(1<<T)-1,L=Et(k,T,1);for(z=0;z<E;){var M,_=L[_t(e,h,A)];if(h+=15&_,(M=_>>4)<16)C[z++]=M;else{var I=0,R=0;for(16==M?(R=3+_t(e,h,3),h+=2,I=C[z-1]):17==M?(R=3+_t(e,h,7),h+=3):18==M&&(R=11+_t(e,h,127),h+=7);R--;)C[z++]=I}}var D=C.subarray(0,S),B=C.subarray(S);g=Mt(D),m=Mt(B),f=Et(D,g,1),p=Et(B,m,1)}else Pt(1);if(h>v){l&&Pt(0);break}}a&&c(d+131072);for(var P=(1<<g)-1,F=(1<<m)-1,O=h;;O=h){var N=(I=f[It(e,h)&P])>>4;if((h+=15&I)>v){l&&Pt(0);break}if(I||Pt(2),N<256)n[d++]=N;else{if(256==N){O=h,f=null;break}var $=N-254;if(N>264){var W=ut[z=N-257];$=_t(e,h,(1<<W)-1)+gt[z],h+=W}var U=p[It(e,h)&F],j=U>>4;U||Pt(3),h+=15&U;B=yt[j];if(j>3){W=ht[j];B+=It(e,h)&(1<<W)-1,h+=W}if(h>v){l&&Pt(0);break}a&&c(d+131072);var H=d+$;if(d<B){var q=o-B,X=Math.min(B,H);for(q+d<0&&Pt(3);d<X;++d)n[d]=i[q+d]}for(;d<H;++d)n[d]=n[d-B]}}t.l=f,t.p=O,t.b=d,t.f=u,f&&(u=1,t.m=g,t.d=p,t.n=m)}while(!u);return d!=n.length&&s?Dt(n,0,d):n.subarray(0,d)},Ot=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},Nt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},$t=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return{t:Gt,l:0};if(1==r){var s=new at(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,u=1,h=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=r-1;)a=n[n[c].f<n[h].f?c++:h++],l=n[c!=u&&n[c].f<n[h].f?c++:h++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var d=o[0].s;for(i=1;i<r;++i)o[i].s>d&&(d=o[i].s);var f=new lt(d+1),p=Wt(n[u-1],f,0);if(p>t){i=0;var g=0,m=p-t,v=1<<m;for(o.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});i<r;++i){var y=o[i].s;if(!(f[y]>t))break;g+=v-(1<<p-f[y]),f[y]=t}for(g>>=m;g>0;){var w=o[i].s;f[w]<t?g-=1<<t-f[w]++-1:++i}for(;i>=0&&g;--i){var b=o[i].s;f[b]==t&&(--f[b],++g)}p=t}return{t:new at(f),l:p}},Wt=function(e,t,n){return-1==e.s?Math.max(Wt(e.l,t,n+1),Wt(e.r,t,n+1)):t[e.s]=n},Ut=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lt(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return{c:n.subarray(0,i),n:t}},jt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Ht=function(e,t,n){var i=n.length,r=Rt(t+2);e[r]=255&i,e[r+1]=i>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},qt=function(e,t,n,i,r,o,s,a,l,c,u){Ot(t,u++,n),++r[256];for(var h=$t(r,15),d=h.t,f=h.l,p=$t(o,15),g=p.t,m=p.l,v=Ut(d),y=v.c,w=v.n,b=Ut(g),S=b.c,x=b.n,E=new lt(19),C=0;C<y.length;++C)++E[31&y[C]];for(C=0;C<S.length;++C)++E[31&S[C]];for(var k=$t(E,7),z=k.t,T=k.l,A=19;A>4&&!z[dt[A-1]];--A);var L,M,_,I,R=c+5<<3,D=jt(r,Ct)+jt(o,kt)+s,B=jt(r,d)+jt(o,g)+s+14+3*A+jt(E,z)+2*E[16]+3*E[17]+7*E[18];if(l>=0&&R<=D&&R<=B)return Ht(t,u,e.subarray(l,l+c));if(Ot(t,u,1+(B<D)),u+=2,B<D){L=Et(d,f,0),M=d,_=Et(g,m,0),I=g;var P=Et(z,T,0);Ot(t,u,w-257),Ot(t,u+5,x-1),Ot(t,u+10,A-4),u+=14;for(C=0;C<A;++C)Ot(t,u+3*C,z[dt[C]]);u+=3*A;for(var F=[y,S],O=0;O<2;++O){var N=F[O];for(C=0;C<N.length;++C){var $=31&N[C];Ot(t,u,P[$]),u+=z[$],$>15&&(Ot(t,u,N[C]>>5&127),u+=N[C]>>12)}}}else L=zt,M=Ct,_=At,I=kt;for(C=0;C<a;++C){var W=i[C];if(W>255){Nt(t,u,L[($=W>>18&31)+257]),u+=M[$+257],$>7&&(Ot(t,u,W>>23&31),u+=ut[$]);var U=31&W;Nt(t,u,_[U]),u+=I[U],U>3&&(Nt(t,u,W>>5&8191),u+=ht[U])}else Nt(t,u,L[W]),u+=M[W]}return Nt(t,u,L[256]),u+M[256]},Xt=new ct([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gt=new at(0),Yt=function(e,t,n,i,r,o){var s=o.z||e.length,a=new at(i+s+5*(1+Math.ceil(s/7e3))+r),l=a.subarray(i,a.length-r),c=o.l,u=7&(o.r||0);if(t){u&&(l[0]=o.r>>3);for(var h=Xt[t-1],d=h>>13,f=8191&h,p=(1<<n)-1,g=o.p||new lt(32768),m=o.h||new lt(p+1),v=Math.ceil(n/3),y=2*v,w=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<y)&p},b=new ct(25e3),S=new lt(288),x=new lt(32),E=0,C=0,k=o.i||0,z=0,T=o.w||0,A=0;k+2<s;++k){var L=w(k),M=32767&k,_=m[L];if(g[M]=_,m[L]=M,T<=k){var I=s-k;if((E>7e3||z>24576)&&(I>423||!c)){u=qt(e,l,0,b,S,x,C,z,A,k-A,u),z=E=C=0,A=k;for(var R=0;R<286;++R)S[R]=0;for(R=0;R<30;++R)x[R]=0}var D=2,B=0,P=f,F=M-_&32767;if(I>2&&L==w(k-F))for(var O=Math.min(d,I)-1,N=Math.min(32767,k),$=Math.min(258,I);F<=N&&--P&&M!=_;){if(e[k+D]==e[k+D-F]){for(var W=0;W<$&&e[k+W]==e[k+W-F];++W);if(W>D){if(D=W,B=F,W>O)break;var U=Math.min(F,W-2),j=0;for(R=0;R<U;++R){var H=k-F+R&32767,q=H-g[H]&32767;q>j&&(j=q,_=H)}}}F+=(M=_)-(_=g[M])&32767}if(B){b[z++]=268435456|mt[D]<<18|wt[B];var X=31&mt[D],G=31&wt[B];C+=ut[X]+ht[G],++S[257+X],++x[G],T=k+D,++E}else b[z++]=e[k],++S[e[k]]}}for(k=Math.max(k,T);k<s;++k)b[z++]=e[k],++S[e[k]];u=qt(e,l,c,b,S,x,C,z,A,k-A,u),c||(o.r=7&u|l[u/8|0]<<3,u-=7,o.h=m,o.p=g,o.i=k,o.w=T)}else{for(k=o.w||0;k<s+c;k+=65535){var Y=k+65535;Y>=s&&(l[u/8|0]=c,Y=s),u=Ht(l,u+1,e.subarray(k,Y))}o.i=s}return Dt(a,0,i+Rt(u)+r)},Vt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),Zt=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=Vt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}},Kt=function(e,t,n,i,r){if(!r&&(r={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new at(o.length+e.length);s.set(o),s.set(e,o.length),e=s,r.w=o.length}return Yt(e,null==t.level?6:t.level,null==t.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,i,r)},Jt=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},Qt=function(e,t,n){for(var i=e(),r=e.toString(),o=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<i.length;++s){var a=i[s],l=o[s];if("function"==typeof a){t+=";"+l+"=";var c=a.toString();if(a.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var h in t+=c,a.prototype)t+=";"+l+".prototype."+h+"="+a.prototype[h].toString();else t+=c}else n[l]=a}return t},en=[],tn=function(e,t,n,i){if(!en[n]){for(var r="",o={},s=e.length-1,a=0;a<s;++a)r=Qt(e[a],r,o);en[n]={c:Qt(e[s],r,o),e:o}}var l=Jt({},en[n].e);return function(e,t,n,i,r){var o=new Worker(st[t]||(st[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var i=new Error(n[0]);i.code=n[1],i.stack=n[2],r(i,null)}else r(null,t)},o.postMessage(n,i),o}(en[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,l,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(l),i)},nn=function(){return[at,lt,ct,ut,ht,dt,gt,yt,Tt,Lt,bt,Bt,Et,Mt,_t,It,Rt,Dt,Pt,Ft,wn,an,ln]},rn=function(){return[at,lt,ct,ut,ht,dt,mt,wt,zt,Ct,At,kt,bt,Xt,Gt,Et,Ot,Nt,$t,Wt,Ut,jt,Ht,qt,Rt,Dt,Yt,Kt,yn,an]},on=function(){return[pn,vn,fn,Zt,Vt]},sn=function(){return[gn,mn]},an=function(e){return postMessage(e,[e.buffer])},ln=function(e){return e&&{out:e.size&&new at(e.size),dictionary:e.dictionary}},cn=function(e,t,n,i,r,o){var s=tn(n,i,r,function(e,t){s.terminate(),o(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},un=function(e,t){return e[t]|e[t+1]<<8},hn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},dn=function(e,t){return hn(e,t)+4294967296*hn(e,t+4)},fn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},pn=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&fn(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}},gn=function(e){31==e[0]&&139==e[1]&&8==e[2]||Pt(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=2+(e[10]|e[11]<<8));for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(2&t)},mn=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},vn=function(e){return 10+(e.filename?e.filename.length+1:0)};function yn(e,t){return Kt(e,t||{},0,0)}function wn(e,t){return Ft(e,{i:2},t&&t.out,t&&t.dictionary)}function bn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Pt(7),cn(e,t,[rn,on,function(){return[Sn]}],function(e){return an(Sn(e.data[0],e.data[1]))},2,n)}function Sn(e,t){t||(t={});var n=Zt(),i=e.length;n.p(e);var r=Kt(e,t,vn(t),8),o=r.length;return pn(r,t),fn(r,o-8,n.d()),fn(r,o-4,i),r}function xn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Pt(7),cn(e,t,[nn,sn,function(){return[En]}],function(e){return an(En(e.data[0],e.data[1]))},3,n)}function En(e,t){var n=gn(e);return n+8>e.length&&Pt(6,"invalid gzip data"),Ft(e.subarray(n,-8),{i:2},t&&t.out||new at(mn(e)),t&&t.dictionary)}var Cn=function(e,t,n,i){for(var r in e){var o=e[r],s=t+r,a=i;Array.isArray(o)&&(a=Jt(i,o[1]),o=o[0]),o instanceof at?n[s]=[o,a]:(n[s+="/"]=[new at(0),a],Cn(o,s,n,i))}},kn="undefined"!=typeof TextEncoder&&new TextEncoder,zn="undefined"!=typeof TextDecoder&&new TextDecoder;try{zn.decode(Gt,{stream:!0})}catch(e){}function Tn(e,t){if(kn)return kn.encode(e);for(var n=e.length,i=new at(e.length+(e.length>>1)),r=0,o=function(e){i[r++]=e},s=0;s<n;++s){if(r+5>i.length){var a=new at(r+8+(n-s<<1));a.set(i),i=a}var l=e.charCodeAt(s);l<128||t?o(l):l<2048?(o(192|l>>6),o(128|63&l)):l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>18),o(128|l>>12&63),o(128|l>>6&63),o(128|63&l)):(o(224|l>>12),o(128|l>>6&63),o(128|63&l))}return Dt(i,0,r)}function An(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}if(zn)return zn.decode(e);var r=function(e){for(var t="",n=0;;){var i=e[n++],r=(i>127)+(i>223)+(i>239);if(n+r>e.length)return{s:t,r:Dt(e,n-1)};r?3==r?(i=((15&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|i>>10,56320|1023&i)):t+=1&r?String.fromCharCode((31&i)<<6|63&e[n++]):String.fromCharCode((15&i)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(i)}}(e),o=r.s;return(n=r.r).length&&Pt(8),o}var Ln=function(e,t){return t+30+un(e,t+26)+un(e,t+28)},Mn=function(e,t,n){var i=un(e,t+28),r=An(e.subarray(t+46,t+46+i),!(2048&un(e,t+8))),o=t+46+i,s=hn(e,t+20),a=n&&4294967295==s?_n(e,o):[s,hn(e,t+24),hn(e,t+42)],l=a[0],c=a[1],u=a[2];return[un(e,t+10),l,c,r,o+un(e,t+30)+un(e,t+32),u]},_n=function(e,t){for(;1!=un(e,t);t+=4+un(e,t+2));return[dn(e,t+12),dn(e,t+4),dn(e,t+20)]},In=function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&Pt(9),t+=i+4}return t},Rn=function(e,t,n,i,r,o,s,a){var l=i.length,c=n.extra,u=a&&a.length,h=In(c);fn(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=r&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var d=new Date(null==n.mtime?Date.now():n.mtime),f=d.getFullYear()-1980;if((f<0||f>119)&&Pt(10),fn(e,t,f<<25|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>1),t+=4,-1!=o&&(fn(e,t,n.crc),fn(e,t+4,o<0?-o-2:o),fn(e,t+8,n.size)),fn(e,t+12,l),fn(e,t+14,h),t+=16,null!=s&&(fn(e,t,u),fn(e,t+6,n.attrs),fn(e,t+10,s),t+=14),e.set(i,t),t+=l,h)for(var p in c){var g=c[p],m=g.length;fn(e,t,+p),fn(e,t+2,m),e.set(g,t+4),t+=4+m}return u&&(e.set(a,t),t+=u),t},Dn=function(e,t,n,i,r){fn(e,t,101010256),fn(e,t+8,n),fn(e,t+10,n),fn(e,t+12,i),fn(e,t+16,r)};function Bn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Pt(7);var i={};Cn(e,"",i,t);var r=Object.keys(i),o=r.length,s=0,a=0,l=o,c=new Array(o),u=[],h=function(){for(var e=0;e<u.length;++e)u[e]()},d=function(e,t){Pn(function(){n(e,t)})};Pn(function(){d=n});var f=function(){var e=new at(a+22),t=s,n=a-s;a=0;for(var i=0;i<l;++i){var r=c[i];try{var o=r.c.length;Rn(e,a,r,r.f,r.u,o);var u=30+r.f.length+In(r.extra),h=a+u;e.set(r.c,h),Rn(e,s,r,r.f,r.u,o,a,r.m),s+=16+u+(r.m?r.m.length:0),a=h+o}catch(e){return d(e,null)}}Dn(e,s,c.length,n,t),d(null,e)};o||f();for(var p=function(e){var t=r[e],n=i[t],l=n[0],p=n[1],g=Zt(),m=l.length;g.p(l);var v=Tn(t),y=v.length,w=p.comment,b=w&&Tn(w),S=b&&b.length,x=In(p.extra),E=0==p.level?0:8,C=function(n,i){if(n)h(),d(n,null);else{var r=i.length;c[e]=Jt(p,{size:m,crc:g.d(),c:i,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:E}),s+=30+y+x+r,a+=76+2*(y+x)+(S||0)+r,--o||f()}};if(y>65535&&C(Pt(11,0,1),null),E)if(m<16e4)try{C(null,yn(l,p))}catch(e){C(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Pt(7),cn(e,t,[rn],function(e){return an(yn(e.data[0],e.data[1]))},0,n)}(l,p,C));else C(null,l)},g=0;g<l;++g)p(g);return h}var Pn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Fn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Pt(7);var i=[],r=function(){for(var e=0;e<i.length;++e)i[e]()},o={},s=function(e,t){Pn(function(){n(e,t)})};Pn(function(){s=n});for(var a=e.length-22;101010256!=hn(e,a);--a)if(!a||e.length-a>65558)return s(Pt(13,0,1),null),r;var l=un(e,a+8);if(l){var c=l,u=hn(e,a+16),h=4294967295==u||65535==c;if(h){var d=hn(e,a-12);(h=101075792==hn(e,d))&&(c=l=hn(e,d+32),u=hn(e,d+48))}for(var f=t&&t.filter,p=function(t){var n=Mn(e,u,h),a=n[0],c=n[1],d=n[2],p=n[3],g=n[4],m=n[5],v=Ln(e,m);u=g;var y=function(e,t){e?(r(),s(e,null)):(t&&(o[p]=t),--l||s(null,o))};if(!f||f({name:p,size:c,originalSize:d,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+c);if(d<524288||c>.8*d)try{y(null,wn(w,{out:new at(d)}))}catch(e){y(e,null)}else i.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Pt(7),cn(e,t,[nn],function(e){return an(wn(e.data[0],ln(e.data[1])))},1,n)}(w,{size:d},y))}else y(Pt(14,"unknown compression type "+a,1),null);else y(null,Dt(e,v,v+c));else y(null,null)},g=0;g<c;++g)p()}else s(null,{});return r}function On(e){return{all:e=e||new Map,on(t,n){const i=e.get(t);i?i.push(n):e.set(t,[n])},off(t,n){const i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let i=e.get(t);i&&i.slice().map(e=>{e(n)}),i=e.get("*"),i&&i.slice().map(e=>{e(t,n)})}}}const Nn=On(),$n={HproseServiceErrorEvent:"HproseServiceError",WebAPIErrorEvent:"WebAPIError",AlertInfoEvent:"AlertInfoEvent",CommonWarnEvent:"CommonWarnEvent",WidgetLoadedEvent:"WidgetLoaded",WidgetLoaded:"WidgetLoaded",WidgetToUnloadEvent:"WidgetToUnloadEvent",WidgetUnLoadedEvent:"WidgetUnLoaded",WidgetLoadedErrorEvent:"WidgetLoadedError",WidgetVisibleChanged:"WidgetVisibleChanged",AxiosRequestErrorEvent:"AxiosRequestErrorEvent",LayoutContainerLoaded:"LayoutContainerLoaded",ModalContainerWidget_LoadModal:"ModalContainerWidget_LoadModal",ModalContainerWidget_CloseModal:"ModalContainerWidget_CloseModal",WidgetClosed:"WidgetClosed"};function Wn(e){var t={filename:"",directory:"",basename:"",extension:""},n=function(e){return-1==e.indexOf("/")&&-1!=e.indexOf("\\")?"\\":"/"}(e),i=e.split(n),r=i.pop(),o=/\.([a-z][a-z0-9]*)$/i,s=o.test(r)?o.exec(r)[0]:"";return s||r.includes("*")?(t.filename=r,t.extension=s?s.slice(1):"",t.basename=r.slice(0,r.length-s.length),t.directory=i.join(n)):t.directory=r?e:i.join(n),t}function Un(e){return Wn(e).basename}function jn(e){return Wn(e).extension}function Hn(e){var t=Wn(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function qn(e,t){var n=Hn(e);return t?n+"."+t:n}function Xn(e){var t=jn(e);return t?Hn(e)+"."+t.toLowerCase():e}function Gn(e){return e.reduce(function(e,t,n){return e=0===n?Un(t):Yn(e,t)},"")}function Yn(e,t){var n;return e&&t&&(n=Vn(e,t).replace(/[-_]$/,"")),n||""}function Vn(e,t){for(var n=0,i=e.length;n<i&&e[n]===t[n];n++);return e.substr(0,n)}const Zn=(e,t)=>{Kn(e,t)};function Kn(e,t){const n=globalThis.URL||globalThis.webkitURL||window,i=new Blob([e]),r=n.createObjectURL(i),o=document.createElement("a");o.href=r,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(r),setTimeout(function(){n.revokeObjectURL(r),document.body.removeChild(o)},400)}const Jn=(e,t)=>{const n=JSON.stringify(e,null,2);t?Zn(n,t+".json"):Nn.emit($n.CommonWarnEvent,"参数JsonID不能为空!")},Qn=(e,t,n)=>{e.get(t,{responseType:"blob"}).then(function(e){Zn(e.data,n)}).catch(e=>{console.warn(e),Nn.emit($n.CommonWarnEvent,"下载文件报错!")})};async function ei(e,t,n){var i,r=function(e){var t=jn(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(globalThis.showSaveFilePicker){i=await globalThis.showSaveFilePicker(r);var o=await i.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}class ti{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==globalThis.document}static encodeGBK(e){const t=O.encode(e,"ISO-8859-1");return O.decode(t,"gbk")}static async saveZipFromFiles(e,t){const n=[];for(let e=0;e<t.length;e++){const i=t[e],r=i.name,o=await et.readFilePromise(i,"ArrayBuffer"),s=new Uint8Array(o);n.push({filename:r,content:s})}n.length>0&&ti.zipAsync(n,function(t,n){if(t)throw t;Kn(new Blob([n]),e)})}static saveZipFile(e,t){ti.zipAsync(t,function(t,n){if(t)throw t;Kn(new Blob([n]),e)})}static saveZipFileSync(e,t){const n=ti.zipSync(t);return!!n&&(Kn(new Blob([n]),e),!0)}static unzipSync(e){let t;if(t=e instanceof ArrayBuffer?new Uint8Array(e):e,!ti.runningInBrowser())return;const n=function(e,t){for(var n={},i=e.length-22;101010256!=hn(e,i);--i)(!i||e.length-i>65558)&&Pt(13);var r=un(e,i+8);if(!r)return{};var o=hn(e,i+16),s=4294967295==o||65535==r;if(s){var a=hn(e,i-12);(s=101075792==hn(e,a))&&(r=hn(e,a+32),o=hn(e,a+48))}for(var l=t&&t.filter,c=0;c<r;++c){var u=Mn(e,o,s),h=u[0],d=u[1],f=u[2],p=u[3],g=u[4],m=u[5],v=Ln(e,m);o=g,l&&!l({name:p,size:d,originalSize:f,compression:h})||(h?8==h?n[p]=wn(e.subarray(v,v+d),{out:new at(f)}):Pt(14,"unknown compression type "+h):n[p]=Dt(e,v,v+d))}return n}(t,{filter:ti.fflateFilter});return ti.fflatePostprocess(n)}static async readZipFromFile(e){const t={content:await et.readFilePromise(e,"ArrayBuffer"),name:e.name};return ti.readZipFile(t)}static async readZipFile(e){const t=await ti.unzipAsync.promise(e.content);return Object.keys(t).reduce(function(e,n){return e.push({filename:n,content:t[n]}),e},[])}static unzipAsync(e,t){if(!ti.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let n;n=e instanceof ArrayBuffer?new Uint8Array(e):e,Fn(n,{filter:ti.fflateFilter},function(e,n){e&&t(e),t(null,ti.fflatePostprocess(n))})}static zipSync(e){if(!ti.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},i=[];Cn(e,"",n,t);var r=0,o=0;for(var s in n){var a=n[s],l=a[0],c=a[1],u=0==c.level?0:8,h=(E=Tn(s)).length,d=c.comment,f=d&&Tn(d),p=f&&f.length,g=In(c.extra);h>65535&&Pt(11);var m=u?yn(l,c):l,v=m.length,y=Zt();y.p(l),i.push(Jt(c,{size:l.length,crc:y.d(),c:m,f:E,m:f,u:h!=s.length||f&&d.length!=p,o:r,compression:u})),r+=30+h+g+v,o+=76+2*(h+g)+(p||0)+v}for(var w=new at(o+22),b=r,S=o-r,x=0;x<i.length;++x){var E=i[x];Rn(w,E.o,E,E.f,E.u,E.c.length);var C=30+E.f.length+In(E.extra);w.set(E.c,E.o+C),Rn(w,r,E,E.f,E.u,E.c.length,E.o,E.m),r+=16+C+(E.m?E.m.length:0)}return Dn(w,r,i.length,S,b),w}(ti.fflatePreprocess(e))}static zipAsync(e,t){Bn(ti.fflatePreprocess(e),{},t)}static fflateFilter(e){return ti.isImportableZipPath(e.name)}static fflatePostprocess(e){return Object.keys(e).reduce(function(t,n){const i=Wn(n).filename,r=ti.encodeGBK(i),o=e[n];return t[r]=o,t},{})}static isImportableZipPath(e){const t=Wn(e),n=jn(e).toLowerCase();return"gz"!=n&&"zip"!=n&&!/^__MACOSX/.test(e)&&"."!=t.filename[0]}static fflatePreprocess(e){const t={};return e.forEach(e=>{"string"==typeof e.content?e.content=Tn(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content}),t}}class ni{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static isGzipped(e){return e.length>2&&e.buffer instanceof ArrayBuffer&&31==e[0]&&139==e[1]}static gzipSync(e,t){return"string"==typeof e&&(e=Tn(e)),ni.runningInBrowser()?Sn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=Tn(e)),!ni.runningInBrowser())return;return et.promisify(bn)(n,t)}static async readGzipFromFile(e){const t={content:await et.readFilePromise(e,"ArrayBuffer"),name:e.name};return ni.readGzipFile(t)}static readGzipFile(e){var t=e.name.replace(/\.gz$/,"");return[{name:t,content:ni.gunzipSync(e.content,t)}]}static async gunzipAsync(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t=t||{},!ni.runningInBrowser())return;var n=et.promisify(xn);let i=await n(e,t);return t.filename&&(i=An(i)),i}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=En(e);return t&&(n=An(n)),n}}class ii{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(Be(e)||Ie(e)?n=new Date(e):Me(e)&&(n=e),!n))throw"date对象为空";const i=n.getFullYear(),r=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return t.replace("YYYY",String(i)).replace("MM",r).replace("DD",o)}static formatToTime(e,t="HH:mm:ss"){let n=new Date;if(e&&(Be(e)||Ie(e)?n=new Date(e):Me(e)&&(n=e),!n))throw"date对象为空";const i=String(n.getHours()).padStart(2,"0"),r=String(n.getMinutes()).padStart(2,"0"),o=String(n.getSeconds()).padStart(2,"0");return t.replace("HH",i).replace("mm",r).replace("ss",o)}static formatToDateTime(e,t="YYYY-MM-DD HH:mm:ss"){let n=new Date;if(e&&(Be(e)||Ie(e)?n=new Date(e):Me(e)&&(n=e),!n))throw"date对象为空";return this.formatToDate(n,t.split(" ")[0])+" "+this.formatToTime(n,t.split(" ")[1])}static formatStringDateTime(e){let t=`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`;if(14===e.length){t=`${t} ${e.substring(8,10)}:${e.substring(10,12)}:${e.substring(12,14)}`}return t}}let ri=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){ri=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var oi=2654435769;function si(e,t){var n=e.length,i=n<<2;if(t){var r=e[n-1];if(r<(i-=4)-3||r>i)return null;i=r}for(var o=new Uint8Array(i),s=0;s<i;++s)o[s]=e[s>>2]>>((3&s)<<3);return o}function ai(e,t){var n,i=e.length,r=i>>2;3&i&&++r,t?(n=new Uint32Array(r+1))[r]=i:n=new Uint32Array(r);for(var o=0;o<i;++o)n[o>>2]|=e[o]<<((3&o)<<3);return n}function li(e){return 4294967295&e}function ci(e,t,n,i,r,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&i^r]^n)}function ui(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function hi(e){for(var t=e.length,n=new Uint8Array(3*t),i=0,r=0;r<t;r++){var o=e.charCodeAt(r);if(o<128)n[i++]=o;else if(o<2048)n[i++]=192|o>>6,n[i++]=128|63&o;else{if(!(o<55296||o>57343)){if(r+1<t){var s=e.charCodeAt(r+1);if(o<56320&&56320<=s&&s<=57343){var a=65536+((1023&o)<<10|1023&s);n[i++]=240|a>>18,n[i++]=128|a>>12&63,n[i++]=128|a>>6&63,n[i++]=128|63&a,r++;continue}}throw new Error("Malformed string")}n[i++]=224|o>>12,n[i++]=128|o>>6&63,n[i++]=128|63&o}}return n.subarray(0,i)}function di(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),i=0,r=0,o=e.length;i<t&&r<o;i++){var s=e[r++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[i]=s;break;case 12:case 13:if(!(r<o))throw new Error("Unfinished UTF-8 octet sequence");n[i]=(31&s)<<6|63&e[r++];break;case 14:if(!(r+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[i]=(15&s)<<12|(63&e[r++])<<6|63&e[r++];break;case 15:if(!(r+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[i++]=a>>10&1023|55296,n[i]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return i<t&&(n.length=i),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],i=new Array(32768),r=0,o=0,s=e.length;r<t&&o<s;r++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:i[r]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");i[r]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");i[r]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var l=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=l&&l<=1048575))throw new Error("Character outside valid Unicode range: 0x"+l.toString(16));i[r++]=l>>10&1023|55296,i[r]=1023&l|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(r>=32766){var c=r+1;i.length=c,n.push(String.fromCharCode.apply(String,i)),t-=c,r=-1}}return r>0&&(i.length=r,n.push(String.fromCharCode.apply(String,i))),n.join("")}(e,t)}function fi(e){var t=e.length;if(0===t)return"";var n=ri?e:function(e){for(var t=e.length,n=new Array(e.length),i=0;i<t;++i)n[i]=e[i];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var i=32767&t,r=t>>15,o=new Array(i?r+1:r),s=0;s<r;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return i&&(o[r]=String.fromCharCode.apply(String,n.subarray(r<<15,t))),o.join("")}function pi(e,t){return"string"==typeof e&&(e=hi(e)),"string"==typeof t&&(t=hi(t)),null==e||0===e.length?e:si(function(e,t){var n,i,r,o,s,a,l=e.length,c=l-1;for(i=e[c],r=0,a=0|Math.floor(6+52/l);a>0;--a){for(o=(r=li(r+oi))>>>2&3,s=0;s<c;++s)n=e[s+1],i=e[s]=li(e[s]+ci(r,n,i,s,o,t));n=e[0],i=e[c]=li(e[c]+ci(r,n,i,c,o,t))}return e}(ai(e,!0),ai(ui(t),!1)),!1)}function gi(e,t){return"string"==typeof e&&(e=function(e){for(var t=globalThis.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i}(e)),"string"==typeof t&&(t=hi(t)),null==e||0===e.length?e:si(function(e,t){var n,i,r,o,s,a=e.length,l=a-1;for(n=e[0],r=li(Math.floor(6+52/a)*oi);0!==r;r=li(r-oi)){for(o=r>>>2&3,s=l;s>0;--s)i=e[s-1],n=e[s]=li(e[s]-ci(r,n,i,s,o,t));i=e[l],n=e[0]=li(e[0]-ci(r,n,i,0,o,t))}return e}(ai(e,!1),ai(ui(t),!1)),!0)}const mi={toBytes:hi,toString:di,encrypt:pi,encryptToString:function(e,t){return globalThis.btoa(fi(pi(e,t)))},decrypt:gi,decryptToString:function(e,t){return di(gi(e,t))}},vi=e=>{const t="1.23452384164.123412416";null!==document.getElementById(t)&&document.body.removeChild(document.getElementById(t));const n=document.createElement("canvas");n.width=200,n.height=130;const i=n.getContext("2d");i.rotate(-20*Math.PI/180),i.font="12px Vedana",i.fillStyle="rgba(200, 200, 200, 0.30)",i.textBaseline="middle",i.fillText(e,n.width/10,n.height/2);const r=document.createElement("div");return r.id=t,r.style.pointerEvents="none",r.style.top="0px",r.style.left="0px",r.style.position="fixed",r.style.zIndex="10000000",r.style.width=`${document.documentElement.clientWidth}px`,r.style.height=`${document.documentElement.clientHeight}px`,r.style.background=`url(${n.toDataURL("image/png")}) left top repeat`,document.body.appendChild(r),t},yi={set:e=>{let t=vi(e);null===document.getElementById(t)&&(t=vi(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};var wi,bi={exports:{}},Si=bi.exports;var xi=(wi||(wi=1,function(e){var t,n;t=Si,n=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],r={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var n=this.getLevel(),r=0;r<i.length;r++){var o=i[r];this[o]=r<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(l.call(this),this[e].apply(this,arguments))}}function u(i,r,o){return function(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&n?a:void 0!==console[i]?s(console,i):void 0!==console.log?s(console,"log"):e)}(i)||c.apply(this,arguments)}function h(e,n){var s,a,c,h=this,d="loglevel";function f(){var e;if(typeof window!==t&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,i=encodeURIComponent(d),r=n.indexOf(i+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r+i.length+1))[1])}catch(e){}return void 0===h.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==h.levels[t.toUpperCase()]&&(t=h.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=h.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),h.name=e,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=n||u,h.getLevel=function(){return null!=c?c:null!=a?a:s},h.setLevel=function(e,n){return c=p(e),!1!==n&&function(e){var n=(i[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(c),l.call(h)},h.setDefaultLevel=function(e){a=p(e),f()||h.setLevel(e,!1)},h.resetLevel=function(){c=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(h)},h.enableAll=function(e){h.setLevel(h.levels.TRACE,e)},h.disableAll=function(e){h.setLevel(h.levels.SILENT,e)},h.rebuild=function(){if(o!==h&&(s=p(o.getLevel())),l.call(h),o===h)for(var e in r)r[e].rebuild()},s=p(o?o.getLevel():"WARN");var g=f();null!=g&&(c=p(g)),l.call(h)}(o=new h).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=r[e];return t||(t=r[e]=new h(e,o.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=d),o},o.getLoggers=function(){return r},o.default=o,o},e.exports?e.exports=n():t.log=n()}(bi)),bi.exports);class Ei{message;eventBus;constructor(e,t=void 0){e&&(this.message=e),t&&(this.eventBus=t)}msg(e,t=3,n="success"){if(this.message)if("function"==typeof this.message)this.message({type:n,message:e,duration:t});else switch(n){case"info":this.message.info(e,t);break;case"success":this.message.success(e,t);break;case"warning":this.message.warn?this.message.warn(e,t):this.message.warning&&this.message.warning(e,t);break;case"error":this.message.error(e,t)}else{switch(n){case"info":case"success":console.log(e);break;case"warning":console.warn(e);break;case"error":n="dark",console.error(e)}this.eventBus&&this.eventBus.emit($n.AlertInfoEvent,{type:n,info:e})}}info(e,t=3){this.msg(e,t,"info")}warn(e,t=3){this.msg(e,t,"warning")}err(e,t=3){this.msg(e,t,"error")}success(e,t=3){this.msg(e,t,"success")}}let Ci=globalThis.SysConfig,ki=!1,zi=!1;Function.prototype.promise=function(...e){const t=this;return function(){const n=e||[];return new Promise((i,r)=>{n.push(function(e,t){e?r(e):i(t)}),t.apply(t,e)})}()};const Ti={Config:globalThis.SysConfig,EventBus:Nn,DefaultProxyClient:null,Axios:$,Message:new Ei(void 0,Nn),LayoutMap:new Map,getLayoutManager:e=>{if(!Li.WidgetConfigList||0===Li.WidgetConfigList.length)return;const t=Li.WidgetConfigList.find(t=>t.id===e);if(t){const e=t.layoutID;if(e&&Li.LayoutMap.has(e))return Li.LayoutMap.get(e)}},Logger:e=>{ki||(Ci.UI.ProductLog?xi.enableAll():xi.setDefaultLevel("warn"),ki=!0);const t=e||"default";return xi.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout(()=>{document.getElementById("apploading")?.remove()},300),zi=!0;else if(e)if(zi){const t=`加载Widget:${e}……`;Nn.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},Ai="99,111,110,115,116,32,118,97,108,105,100,75,101,121,115,61,91,39,54,65,50,53,51,65,69,70,54,54,68,48,69,56,65,66,57,54,49,55,49,55,51,49,50,52,50,66,65,70,53,65,39,44,39,66,54,53,48,52,57,53,55,54,55,49,49,56,66,50,70,50,50,48,55,67,66,52,69,70,51,49,51,52,49,65,68,39,44,39,54,66,52,66,57,49,65,67,52,51,56,70,70,57,69,54,65,69,52,68,49,49,70,48,50,70,56,51,50,68,51,52,39,44,39,70,54,69,52,57,50,52,57,57,69,70,57,57,48,65,49,50,66,57,66,57,55,48,66,54,57,68,69,68,49,48,70,39,44,39,57,67,55,55,56,67,66,69,66,56,54,51,70,68,68,52,70,49,66,65,51,56,49,52,50,69,48,52,53,53,69,49,39,44,39,70,66,66,55,57,67,57,66,51,57,53,70,65,70,55,49,53,56,50,50,65,70,52,50,52,57,54,56,70,48,54,67,39,44,39,53,57,51,66,67,70,68,50,54,70,48,53,53,53,65,53,50,57,51,67,68,49,49,56,55,49,56,53,49,68,52,52,39,44,39,50,48,54,55,69,66,51,54,57,55,69,55,49,67,53,49,53,68,68,68,54,49,65,53,52,70,67,57,51,53,53,69,39,44,39,70,52,65,50,68,67,69,65,48,53,56,69,68,52,55,48,53,67,67,52,70,54,69,66,51,70,67,70,48,66,53,66,39,93,59,105,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,38,38,118,97,108,105,100,75,101,121,115,46,105,110,100,101,120,79,102,40,83,121,115,67,111,110,102,105,103,46,75,69,89,41,62,61,48,41,123,99,111,110,115,111,108,101,46,108,111,103,40,39,117,115,105,110,103,32,97,117,116,104,111,114,105,122,101,100,32,120,102,114,97,109,101,108,105,98,46,84,104,97,110,107,32,121,111,117,33,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,101,108,115,101,32,105,102,40,33,83,121,115,67,111,110,102,105,103,46,75,69,89,41,123,105,102,40,110,101,119,32,68,97,116,101,40,50,48,50,55,44,49,44,49,41,60,110,101,119,32,68,97,116,101,40,41,41,123,105,102,40,99,111,110,102,105,114,109,40,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,116,114,105,97,108,32,104,97,115,32,101,120,112,105,114,101,100,46,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,46,32,83,101,108,101,99,116,32,79,75,32,116,111,32,110,97,118,105,103,97,116,101,32,116,111,32,116,104,101,32,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,32,85,82,76,46,39,41,41,123,108,111,99,97,116,105,111,110,46,104,114,101,102,61,39,104,116,116,112,115,58,47,47,103,105,116,104,117,98,46,99,111,109,47,122,111,114,114,111,119,109,39,125,101,108,115,101,123,116,104,114,111,119,39,84,104,101,32,116,114,105,97,108,32,112,101,114,105,111,100,32,104,97,115,32,101,120,112,105,114,101,100,33,39,59,125,125,101,108,115,101,123,99,111,110,115,111,108,101,46,108,111,103,40,39,84,104,101,32,116,114,105,97,108,32,100,101,97,100,108,105,110,101,32,102,111,114,32,116,104,105,115,32,120,102,114,97,109,101,108,105,98,32,108,105,98,114,97,114,121,32,105,115,32,74,97,110,117,97,114,121,32,49,44,32,50,48,50,55,46,39,41,59,114,101,116,117,114,110,32,103,108,111,98,79,98,106,125,125,116,104,114,111,119,39,84,104,101,32,88,70,114,97,109,101,108,105,98,32,75,69,89,32,105,115,32,105,110,118,97,108,105,100,33,32,84,111,32,112,117,114,99,104,97,115,101,32,97,32,102,117,108,108,32,118,101,114,115,105,111,110,32,112,108,101,97,115,101,32,99,111,110,116,97,99,116,58,122,111,114,114,111,119,109,64,49,50,54,46,99,111,109,32,33,39,59".split(",").map(e=>Number(e));new Function("globObj","isdev",String.fromCharCode(...Ai));const Li=Ti;let Mi;function _i(e){if(!e){if(Mi)return Mi;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new N.HubConnectionBuilder).configureLogging(N.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then(()=>{Li.Logger().info("启动SignalR连接!")}),t.onclose(async()=>{Li.Logger().info("断开SignalR连接!")}),t.onreconnecting(()=>{Li.Logger().warn("SignalR服务已断线,重连中...!")}),t.onreconnected(()=>{Li.Logger().warn("SignalR重连成功!")}),Mi||(Mi=t),t}function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ri,Di,Bi={exports:{}},Pi=Bi.exports={};function Fi(){throw new Error("setTimeout has not been defined")}function Oi(){throw new Error("clearTimeout has not been defined")}function Ni(e){if(Ri===setTimeout)return setTimeout(e,0);if((Ri===Fi||!Ri)&&setTimeout)return Ri=setTimeout,setTimeout(e,0);try{return Ri(e,0)}catch(t){try{return Ri.call(null,e,0)}catch(t){return Ri.call(this,e,0)}}}!function(){try{Ri="function"==typeof setTimeout?setTimeout:Fi}catch(e){Ri=Fi}try{Di="function"==typeof clearTimeout?clearTimeout:Oi}catch(e){Di=Oi}}();var $i,Wi=[],Ui=!1,ji=-1;function Hi(){Ui&&$i&&(Ui=!1,$i.length?Wi=$i.concat(Wi):ji=-1,Wi.length&&qi())}function qi(){if(!Ui){var e=Ni(Hi);Ui=!0;for(var t=Wi.length;t;){for($i=Wi,Wi=[];++ji<t;)$i&&$i[ji].run();ji=-1,t=Wi.length}$i=null,Ui=!1,function(e){if(Di===clearTimeout)return clearTimeout(e);if((Di===Oi||!Di)&&clearTimeout)return Di=clearTimeout,clearTimeout(e);try{return Di(e)}catch(t){try{return Di.call(null,e)}catch(t){return Di.call(this,e)}}}(e)}}function Xi(e,t){this.fun=e,this.array=t}function Gi(){}Pi.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Wi.push(new Xi(e,t)),1!==Wi.length||Ui||Ni(qi)},Xi.prototype.run=function(){this.fun.apply(null,this.array)},Pi.title="browser",Pi.browser=!0,Pi.env={},Pi.argv=[],Pi.version="",Pi.versions={},Pi.on=Gi,Pi.addListener=Gi,Pi.once=Gi,Pi.off=Gi,Pi.removeListener=Gi,Pi.removeAllListeners=Gi,Pi.emit=Gi,Pi.prependListener=Gi,Pi.prependOnceListener=Gi,Pi.listeners=function(e){return[]},Pi.binding=function(e){throw new Error("process.binding is not supported")},Pi.cwd=function(){return"/"},Pi.chdir=function(e){throw new Error("process.chdir is not supported")},Pi.umask=function(){return 0};const Yi=Ii(Bi.exports),Vi="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,Zi=new Set,Ki="object"==typeof Yi&&Yi?Yi:{},Ji=(e,t,n,i)=>{"function"==typeof Ki.emitWarning?Ki.emitWarning(e,t,n,i):console.error(`[${n}] ${t}: ${e}`)};let Qi=globalThis.AbortController,er=globalThis.AbortSignal;if(void 0===Qi){er=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},Qi=class{constructor(){t()}signal=new er;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==Ki.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,Ji("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}const tr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),nr=e=>tr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ir:null:null;class ir extends Array{constructor(e){super(e),this.fill(0)}}class rr{heap;length;static#e=!1;static create(e){const t=nr(e);if(!t)return[];rr.#e=!0;const n=new rr(e,t);return rr.#e=!1,n}constructor(e,t){if(!rr.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class or{#t;#n;#i;#r;#o;#s;#a;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#u;#h;#d;#f;#p;#g;#m;#v;#y;#w;#b;#S;#x;#E;#C;#k;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#S,sizes:e.#w,keyMap:e.#u,keyList:e.#h,valList:e.#d,next:e.#f,prev:e.#p,get head(){return e.#g},get tail(){return e.#m},free:e.#v,isBackgroundFetch:t=>e.#z(t),backgroundFetch:(t,n,i,r)=>e.#T(t,n,i,r),moveToTail:t=>e.#A(t),indexes:t=>e.#L(t),rindexes:t=>e.#M(t),isStale:t=>e.#_(t)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#s}get memoMethod(){return this.#a}get dispose(){return this.#i}get onInsert(){return this.#r}get disposeAfter(){return this.#o}constructor(e){const{max:t=0,ttl:n,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:l,onInsert:c,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:d,maxSize:f=0,maxEntrySize:p=0,sizeCalculation:g,fetchMethod:m,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:S,ignoreFetchAbort:x}=e;if(0!==t&&!tr(t))throw new TypeError("max option must be a nonnegative integer");const E=t?nr(t):Array;if(!E)throw new Error("invalid max value: "+t);if(this.#t=t,this.#n=f,this.maxEntrySize=p||this.#n,this.sizeCalculation=g,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw new TypeError("memoMethod must be a function if defined");if(this.#a=v,void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#s=m,this.#E=!!m,this.#u=new Map,this.#h=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#f=new E(t),this.#p=new E(t),this.#g=0,this.#m=0,this.#v=rr.create(t),this.#l=0,this.#c=0,"function"==typeof l&&(this.#i=l),"function"==typeof c&&(this.#r=c),"function"==typeof u?(this.#o=u,this.#y=[]):(this.#o=void 0,this.#y=void 0),this.#x=!!this.#i,this.#k=!!this.#r,this.#C=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!x,0!==this.maxEntrySize){if(0!==this.#n&&!tr(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!tr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=tr(i)||0===i?i:1,this.ttlAutopurge=!!r,this.ttl=n||0,this.ttl){if(!tr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(0===this.#t&&0===this.ttl&&0===this.#n)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#n){const e="LRU_CACHE_UNBOUNDED";if((e=>!Zi.has(e))(e)){Zi.add(e);Ji("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,or)}}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#R(){const e=new ir(this.#t),t=new ir(this.#t);this.#S=e,this.#b=t,this.#D=(n,i,r=Vi.now())=>{if(t[n]=0!==i?r:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout(()=>{this.#_(n)&&this.#B(this.#h[n],"expire")},i+1);e.unref&&e.unref()}},this.#P=n=>{t[n]=0!==e[n]?Vi.now():0},this.#F=(r,o)=>{if(e[o]){const s=e[o],a=t[o];if(!s||!a)return;r.ttl=s,r.start=a,r.now=n||i();const l=r.now-a;r.remainingTTL=s-l}};let n=0;const i=()=>{const e=Vi.now();if(this.ttlResolution>0){n=e;const t=setTimeout(()=>n=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const o=this.#u.get(r);if(void 0===o)return 0;const s=e[o],a=t[o];if(!s||!a)return 1/0;return s-((n||i())-a)},this.#_=r=>{const o=t[r],s=e[r];return!!s&&!!o&&(n||i())-o>s}}#P=()=>{};#F=()=>{};#D=()=>{};#_=()=>!1;#I(){const e=new ir(this.#t);this.#c=0,this.#w=e,this.#O=t=>{this.#c-=e[t],e[t]=0},this.#N=(e,t,n,i)=>{if(this.#z(t))return 0;if(!tr(n)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(n=i(t,e),!tr(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#$=(t,n,i)=>{if(e[t]=n,this.#n){const n=this.#n-e[t];for(;this.#c>n;)this.#W(!0)}this.#c+=e[t],i&&(i.entrySize=n,i.totalCalculatedSize=this.#c)}}#O=e=>{};#$=(e,t,n)=>{};#N=(e,t,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#L({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#m;this.#U(t)&&(!e&&this.#_(t)||(yield t),t!==this.#g);)t=this.#p[t]}*#M({allowStale:e=this.allowStale}={}){if(this.#l)for(let t=this.#g;this.#U(t)&&(!e&&this.#_(t)||(yield t),t!==this.#m);)t=this.#f[t]}#U(e){return void 0!==e&&this.#u.get(this.#h[e])===e}*entries(){for(const e of this.#L())void 0===this.#d[e]||void 0===this.#h[e]||this.#z(this.#d[e])||(yield[this.#h[e],this.#d[e]])}*rentries(){for(const e of this.#M())void 0===this.#d[e]||void 0===this.#h[e]||this.#z(this.#d[e])||(yield[this.#h[e],this.#d[e]])}*keys(){for(const e of this.#L()){const t=this.#h[e];void 0===t||this.#z(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#M()){const t=this.#h[e];void 0===t||this.#z(this.#d[e])||(yield t)}}*values(){for(const e of this.#L()){void 0===this.#d[e]||this.#z(this.#d[e])||(yield this.#d[e])}}*rvalues(){for(const e of this.#M()){void 0===this.#d[e]||this.#z(this.#d[e])||(yield this.#d[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const n of this.#L()){const i=this.#d[n],r=this.#z(i)?i.__staleWhileFetching:i;if(void 0!==r&&e(r,this.#h[n],this))return this.get(this.#h[n],t)}}forEach(e,t=this){for(const n of this.#L()){const i=this.#d[n],r=this.#z(i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,this.#h[n],this)}}rforEach(e,t=this){for(const n of this.#M()){const i=this.#d[n],r=this.#z(i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,this.#h[n],this)}}purgeStale(){let e=!1;for(const t of this.#M({allowStale:!0}))this.#_(t)&&(this.#B(this.#h[t],"expire"),e=!0);return e}info(e){const t=this.#u.get(e);if(void 0===t)return;const n=this.#d[t],i=this.#z(n)?n.__staleWhileFetching:n;if(void 0===i)return;const r={value:i};if(this.#S&&this.#b){const e=this.#S[t],n=this.#b[t];if(e&&n){const t=e-(Vi.now()-n);r.ttl=t,r.start=Date.now()}}return this.#w&&(r.size=this.#w[t]),r}dump(){const e=[];for(const t of this.#L({allowStale:!0})){const n=this.#h[t],i=this.#d[t],r=this.#z(i)?i.__staleWhileFetching:i;if(void 0===r||void 0===n)continue;const o={value:r};if(this.#S&&this.#b){o.ttl=this.#S[t];const e=Vi.now()-this.#b[t];o.start=Math.floor(Date.now()-e)}this.#w&&(o.size=this.#w[t]),e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=Vi.now()-e}this.set(t,n.value,n)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;const{ttl:i=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:a}=n;let{noUpdateTTL:l=this.noUpdateTTL}=n;const c=this.#N(e,t,n.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#B(e,"set"),this;let u=0===this.#l?void 0:this.#u.get(e);if(void 0===u)u=0===this.#l?this.#m:0!==this.#v.length?this.#v.pop():this.#l===this.#t?this.#W(!1):this.#l,this.#h[u]=e,this.#d[u]=t,this.#u.set(e,u),this.#f[this.#m]=u,this.#p[u]=this.#m,this.#m=u,this.#l++,this.#$(u,c,a),a&&(a.set="add"),l=!1,this.#k&&this.#r?.(t,e,"add");else{this.#A(u);const n=this.#d[u];if(t!==n){if(this.#E&&this.#z(n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;void 0===t||o||(this.#x&&this.#i?.(t,e,"set"),this.#C&&this.#y?.push([t,e,"set"]))}else o||(this.#x&&this.#i?.(n,e,"set"),this.#C&&this.#y?.push([n,e,"set"]));if(this.#O(u),this.#$(u,c,a),this.#d[u]=t,a){a.set="replace";const e=n&&this.#z(n)?n.__staleWhileFetching:n;void 0!==e&&(a.oldValue=e)}}else a&&(a.set="update");this.#k&&this.onInsert?.(t,e,t===n?"update":"replace")}if(0===i||this.#S||this.#R(),this.#S&&(l||this.#D(u,i,r),a&&this.#F(a,u)),!o&&this.#C&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#o?.(...t)}return this}pop(){try{for(;this.#l;){const e=this.#d[this.#g];if(this.#W(!0),this.#z(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#C&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#o?.(...t)}}}#W(e){const t=this.#g,n=this.#h[t],i=this.#d[t];return this.#E&&this.#z(i)?i.__abortController.abort(new Error("evicted")):(this.#x||this.#C)&&(this.#x&&this.#i?.(i,n,"evict"),this.#C&&this.#y?.push([i,n,"evict"])),this.#O(t),e&&(this.#h[t]=void 0,this.#d[t]=void 0,this.#v.push(t)),1===this.#l?(this.#g=this.#m=0,this.#v.length=0):this.#g=this.#f[t],this.#u.delete(n),this.#l--,t}has(e,t={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=t,r=this.#u.get(e);if(void 0!==r){const e=this.#d[r];if(this.#z(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#_(r))return n&&this.#P(r),i&&(i.has="hit",this.#F(i,r)),!0;i&&(i.has="stale",this.#F(i,r))}else i&&(i.has="miss");return!1}peek(e,t={}){const{allowStale:n=this.allowStale}=t,i=this.#u.get(e);if(void 0===i||!n&&this.#_(i))return;const r=this.#d[i];return this.#z(r)?r.__staleWhileFetching:r}#T(e,t,n,i){const r=void 0===t?void 0:this.#d[t];if(this.#z(r))return r;const o=new Qi,{signal:s}=n;s?.addEventListener("abort",()=>o.abort(s.reason),{signal:o.signal});const a={signal:o.signal,options:n,context:i},l=(i,r=!1)=>{const{aborted:s}=o.signal,l=n.ignoreFetchAbort&&void 0!==i;if(n.status&&(s&&!r?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),s&&!l&&!r)return c(o.signal.reason);const h=u;return this.#d[t]===u&&(void 0===i?h.__staleWhileFetching?this.#d[t]=h.__staleWhileFetching:this.#B(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,i,a.options))),i},c=i=>{const{aborted:r}=o.signal,s=r&&n.allowStaleOnFetchAbort,a=s||n.allowStaleOnFetchRejection,l=a||n.noDeleteOnFetchRejection,c=u;if(this.#d[t]===u){!l||void 0===c.__staleWhileFetching?this.#B(e,"fetch"):s||(this.#d[t]=c.__staleWhileFetching)}if(a)return n.status&&void 0!==c.__staleWhileFetching&&(n.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw i};n.status&&(n.status.fetchDispatched=!0);const u=new Promise((t,i)=>{const s=this.#s?.(e,r,a);s&&s instanceof Promise&&s.then(e=>t(void 0===e?void 0:e),i),o.signal.addEventListener("abort",()=>{n.ignoreFetchAbort&&!n.allowStaleOnFetchAbort||(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})}).then(l,e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),c(e))),h=Object.assign(u,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return void 0===t?(this.set(e,h,{...a.options,status:void 0}),t=this.#u.get(e)):this.#d[t]=h,h}#z(e){if(!this.#E)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Qi}async fetch(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:v}=t;if(!this.#E)return m&&(m.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:m});const y={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:f,ignoreFetchAbort:d,status:m,signal:v};let w=this.#u.get(e);if(void 0===w){m&&(m.fetch="miss");const t=this.#T(e,w,y,p);return t.__returned=t}{const t=this.#d[w];if(this.#z(t)){const e=n&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const r=this.#_(w);if(!g&&!r)return m&&(m.fetch="hit"),this.#A(w),i&&this.#P(w),m&&this.#F(m,w),t;const o=this.#T(e,w,y,p),s=void 0!==o.__staleWhileFetching&&n;return m&&(m.fetch=r?"stale":"refresh",s&&r&&(m.returnedStale=!0)),s?o.__staleWhileFetching:o.__returned=o}}async forceFetch(e,t={}){const n=await this.fetch(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e,t={}){const n=this.#a;if(!n)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:r,...o}=t,s=this.get(e,o);if(!r&&void 0!==s)return s;const a=n(e,s,{options:o,context:i});return this.set(e,a,o),a}get(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=t,s=this.#u.get(e);if(void 0!==s){const t=this.#d[s],a=this.#z(t);return o&&this.#F(o,s),this.#_(s)?(o&&(o.get="stale"),a?(o&&n&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),n?t.__staleWhileFetching:void 0):(r||this.#B(e,"expire"),o&&n&&(o.returnedStale=!0),n?t:void 0)):(o&&(o.get="hit"),a?t.__staleWhileFetching:(this.#A(s),i&&this.#P(s),t))}o&&(o.get="miss")}#j(e,t){this.#p[t]=e,this.#f[e]=t}#A(e){e!==this.#m&&(e===this.#g?this.#g=this.#f[e]:this.#j(this.#p[e],this.#f[e]),this.#j(this.#m,e),this.#m=e)}delete(e){return this.#B(e,"delete")}#B(e,t){let n=!1;if(0!==this.#l){const i=this.#u.get(e);if(void 0!==i)if(n=!0,1===this.#l)this.#H(t);else{this.#O(i);const n=this.#d[i];if(this.#z(n)?n.__abortController.abort(new Error("deleted")):(this.#x||this.#C)&&(this.#x&&this.#i?.(n,e,t),this.#C&&this.#y?.push([n,e,t])),this.#u.delete(e),this.#h[i]=void 0,this.#d[i]=void 0,i===this.#m)this.#m=this.#p[i];else if(i===this.#g)this.#g=this.#f[i];else{const e=this.#p[i];this.#f[e]=this.#f[i];const t=this.#f[i];this.#p[t]=this.#p[i]}this.#l--,this.#v.push(i)}}if(this.#C&&this.#y?.length){const e=this.#y;let t;for(;t=e?.shift();)this.#o?.(...t)}return n}clear(){return this.#H("delete")}#H(e){for(const t of this.#M({allowStale:!0})){const n=this.#d[t];if(this.#z(n))n.__abortController.abort(new Error("deleted"));else{const i=this.#h[t];this.#x&&this.#i?.(n,i,e),this.#C&&this.#y?.push([n,i,e])}}if(this.#u.clear(),this.#d.fill(void 0),this.#h.fill(void 0),this.#S&&this.#b&&(this.#S.fill(0),this.#b.fill(0)),this.#w&&this.#w.fill(0),this.#g=0,this.#m=0,this.#v.length=0,this.#c=0,this.#l=0,this.#C&&this.#y){const e=this.#y;let t;for(;t=e?.shift();)this.#o?.(...t)}}}class sr{static defaultOptions={max:1e3,maxAge:18e5};static cache=new or(this.defaultOptions);static createCache(e=this.defaultOptions){return new or(e)}static set(e,t,n=this.cache){let i=n;i||(i=this.cache),i.set(e,t)}static get(e,t=this.cache){let n=t;return n||(n=this.cache),n.get(e)}static remove(e,t=this.cache){let n=t;return n||(n=this.cache),n.del(e)}static has(e,t=this.cache){let n=t;return n||(n=this.cache),n.has(e)}static count(e=this.cache){let t=e;return t||(t=this.cache),t.size}static maxSize(e=this.cache){let t=e;return t||(t=this.cache),t.max}static peek(e,t=this.cache){let n=t;return n||(n=this.cache),n.peek(e)}static keys(e=this.cache){let t=e;return t||(t=this.cache),t.keys()}static clear(e=this.cache){let t=e;t||(t=this.cache),t.clear()}}function ar(e){const t=e.toLowerCase().replace(/rgb?a?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(t[3]||"1"),i=Math.floor(n*parseInt(t[0])+255*(1-n)),r=Math.floor(n*parseInt(t[1])+255*(1-n)),o=Math.floor(n*parseInt(t[2])+255*(1-n));return"#"+("0"+i.toString(16)).slice(-2)+("0"+r.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)}function lr(e){var t=e.toLowerCase();if(gr(e)){if(4===t.length){for(var n="#",i=1;i<4;i+=1){const e=t.slice(i,i+1);n+=e.concat(e)}t=n}var r=[];for(i=1;i<7;i+=2)r.push(parseInt("0x"+t.slice(i,i+2)));return"rgb("+r.join(",")+")"}return t}function cr(e){const t=e;if(4===t.length){let e="#";for(var n=1;n<4;n+=1){const i=t.slice(n,n+1);e+=i.concat(i)}return e}return t}var ur,hr;function dr(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?ur.Hex:"r"===t||"("===t?ur.RGBA:"h"===t?ur.Hsla:ur.RGBA}function fr(e){if(!e)return;var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(!t)return;var n,i,r,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=i=r=a;else{var l=a<=.5?a*(s+1):a+s-a*s,c=2*a-l;n=pr(c,l,o+1/3),i=pr(c,l,o),r=pr(c,l,o-1/3)}return`rgba(${n=Math.round(255*n)},${i=Math.round(255*i)},${r=Math.round(255*r)},${t[4]?parseFloat(t[4]):1})`}function pr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gr(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function mr(e,t,n){const i=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(i.length-7)).join("0")+i}function vr(e){let t=e.toLowerCase();if(gr(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function yr(e){if(!gr(e))return;const[t,n,i]=vr(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e));return.299*t+.578*n+.114*i<192}function wr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Cr(e.substring(0,2),t)}${Cr(e.substring(2,4),t)}${Cr(e.substring(4,6),t)}`}function br(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Sr(e.substring(0,2),t)}${Sr(e.substring(2,4),t)}${Sr(e.substring(4,6),t)}`}function Sr(e,t){const n=parseInt(e,16)+t,i=n>255?255:n;return i.toString(16).length>1?i.toString(16):`0${i.toString(16)}`}function xr(e,t,n){const i=[e,t,n].map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*i[0]+.7152*i[1]+.0722*i[2]}function Er(e){const t=vr(e.substring(1));var n,i;return(n=t.split(","),i=[0,0,0],(xr(~~n[0],~~n[1],~~n[2])+.05)/(xr(i[0],i[1],i[2])+.05))>=12?"#000000":"#FFFFFF"}function Cr(e,t){const n=parseInt(e,16)-t,i=n<0?0:n;return i.toString(16).length>1?i.toString(16):`0${i.toString(16)}`}function kr(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${zr}毫秒`)}function zr(e){return new Promise(t=>setTimeout(t,e))}(hr=ur||(ur={}))[hr.RGBA=0]="RGBA",hr[hr.Hex=1]="Hex",hr[hr.Hsla=2]="Hsla";const Tr="access_token",Ar=new nt("user",globalThis.localStorage);function Lr(){return Ar.get(Tr)}function Mr(){Ar.remove(Tr)}function _r(){const e=Lr();return e?.refresh}function Ir(e,t,n,i="json",r){const o={baseURL:Li.Config?.ServiceURL.DefaultWebAPI,timeout:6e4,params:e,paramsSerializer:{serialize:function(e){return W.stringify(e,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+Lr()?.token},responseType:i,cancelToken:r};if(n)for(let e in n)o.headers[e]=n[e];return Li.SystemID&&(o.headers.sysid=Li.SystemID,Li.SystemGroup&&(o.headers.sysgroup=Li.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function Rr(e,t,n,i,r="json",o,s){const a=Ir(n,t,i,r,o);return s&&s>=2e4&&(a.timeout=s),Li.Axios?.get(e,a).catch(function(t){Dr(t,a.baseURL,e,"Get")})}function Dr(e,t,n,i="Get"){const r=`${t}${n}`;if(e&&e.response){let t=!1;const n=e.response.status;switch(n){case 400:e.message="错误请求";break;case 401:e.message="未授权,请重新登录";break;case 403:e.message="拒绝访问";break;case 404:e.message="请求错误,未找到该资源";break;case 405:e.message="请求方法未允许";break;case 408:e.message="请求超时";break;case 500:const n=e.response.data;if(n){const i=n.indexOf(":"),r=n.indexOf("\n");if(i>0&&r-i>2){const o=n.substring(i+2,r);o.indexOf("System.Exception")>0?e.message="后台服务内部出错!":(t=!0,e.message=o)}else t=!0,e.message=n}else e.message="服务器端出错";break;case 501:e.message="网络未实现";break;case 502:e.message="网络错误";break;case 503:e.message="服务不可用";break;case 504:e.message="网络超时";break;case 505:e.message="http版本不支持该请求";break;default:e.message=`连接错误${e.response.status}`}let i={address:r,code:n,isExceptionInfo:t,message:e.message,result:e.response.data};if(Li.EventBus.emit($n.AxiosRequestErrorEvent,i),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function Br(e,t,n,i,r,o="json",s){const a=Ir(i,t,r,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const l=function(e){let t=new FormData;e&&Object.keys(e).forEach(n=>{if(!e)return;let i=e[n];null!=i&&(Fe(i)?i.forEach(e=>{t.append(n,$r(e))}):t.append(n,$r(i)))});return t}(n);return Li.Axios?.post(e,l,a).catch(function(e){Dr(e,t,a.baseURL,"Post")})}function Pr(e,t,n,i,r,o="json",s){const a=Ir(i,t,r,o);return s&&s>=2e4&&(a.timeout=s),Li.Axios?.post(e,n,a).catch(function(n){Dr(n,t,e,"Post")})}function Fr(e,t,n=!1){return e.startsWith("http")?Rr("",e,t):n||t?Rr(e,void 0,t):Rr(e,"",void 0)}function Or(e,t){return Br(e,void 0,t)}function Nr(e,t){return Li.Axios?.get(e,{params:t}).catch(function(t){Dr(t,e,"","外部Get")})}function $r(e){return e instanceof Blob?e:e.toString()}function Wr(e,t,n){const i=t??tt.getFileName(e);Rr("",e,n,void 0,"blob").then(e=>{e.data&&Zn(e.data,i)})}var Ur,jr,Hr,qr,Xr,Gr,Yr,Vr,Zr,Kr={exports:{}};function Jr(){return jr?Ur:(jr=1,e="undefined"!=typeof window?window:void 0!==me?me:"undefined"!=typeof self?self:{},Ur=e);var e}function Qr(){if(qr)return Hr;qr=1,Hr=function(t){if(!t)return!1;var n=e.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return Hr}function eo(){if(Gr)return Xr;Gr=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return Xr=function(n){if(!n)return{};for(var i=Object.create(null),r=e(n).split("\n"),o=0;o<r.length;o++){var s=r[o],a=s.indexOf(":"),l=e(s.slice(0,a)).toLowerCase(),c=e(s.slice(a+1));void 0===i[l]?i[l]=c:t(i[l])?i[l].push(c):i[l]=[i[l],c]}return i},Xr}var to=function(){if(Zr)return Kr.exports;Zr=1;var e=Jr(),t=Qr(),n=eo(),i=function(){if(Vr)return Yr;Vr=1,Yr=function(){for(var t={},n=0;n<arguments.length;n++){var i=arguments[n];for(var r in i)e.call(i,r)&&(t[r]=i[r])}return t};var e=Object.prototype.hasOwnProperty;return Yr}();function r(e,n,r){var o=e;return t(n)?(r=n,"string"==typeof e&&(o={uri:e})):o=i(n,{uri:e}),o.callback=r,o}function o(e,t,n){return s(t=r(e,t,n))}function s(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,i=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function s(e){return clearTimeout(h),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,i(e,y)}function a(){if(!c){var t;clearTimeout(h),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:r(),statusCode:t,method:f,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(o.headers=n(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,o,o.body)}}var l,c,u=e.xhr||null;u||(u=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var h,d=u.url=e.uri||e.url,f=u.method=e.method||"GET",p=e.body||e.data,g=u.headers=e.headers||{},m=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=s,u.onprogress=function(){},u.onabort=function(){c=!0},u.ontimeout=s,u.open(f,d,!m,e.username,e.password),m||(u.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(h=setTimeout(function(){if(!c){c=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}},e.timeout)),u.setRequestHeader)for(l in g)g.hasOwnProperty(l)&&u.setRequestHeader(l,g[l]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}return Kr.exports=o,Kr.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,n,i){return(n=r(t,n,i)).method=e.toUpperCase(),s(n)}}),Kr.exports}();const no=ve(to),io=[200,201,202,204,308],ro=[408,502,503,504];class oo{endpoint;file;headers;method;chunkSize;attempts;delayBeforeAttempt;md5;chunkCount;chunkByteSize;cacheSize=3;currentMaxIndex=0;maxFileBytes;endpointValue;totalChunks;attemptCount;offline;paused;success;isResumed=!1;mapXhrRequest;okRecordList;eventTarget;fileName;constructor(e){this.endpoint=e.endpoint,this.file=e.file,this.fileName=encodeURI(this.file.name),this.headers=e.headers||{},this.method=e.method||"PUT",this.chunkSize=e.chunkSize||5120,this.attempts=e.attempts||5,this.delayBeforeAttempt=e.delayBeforeAttempt||1,this.md5=e.md5||"",null!=e.threadNumber&&e.threadNumber>=2&&(this.cacheSize=e.threadNumber),this.maxFileBytes=1024*(e.maxFileSize||0),this.chunkCount=0,this.chunkByteSize=1024*this.chunkSize,this.totalChunks=Math.ceil(this.file.size/this.chunkByteSize),this.attemptCount=0,this.offline=!1,this.paused=!1,this.success=!1,this.mapXhrRequest=new Map,this.okRecordList=[],this.eventTarget=On(),this.validateOptions(),this.getEndpoint().then(()=>{for(let e=0;e<this.cacheSize;e++){const t=e;if(t<this.totalChunks){const e=100*t;e>0?zr(e).then(e=>{this.sendChunks(t)}):this.sendChunks(t)}}}),"undefined"!=typeof window&&(window.addEventListener("online",()=>{this.offline&&(this.offline=!1,this.dispatch("online"),this.sendChunks())}),window.addEventListener("offline",()=>{this.offline=!0,this.dispatch("offline")}))}on(e,t){this.eventTarget.on(e,t)}abort(){this.pause(),this.mapXhrRequest.size>0&&(this.mapXhrRequest.forEach((e,t)=>{e&&e.abort()}),this.mapXhrRequest.clear())}pause(){this.paused=!0}async resume(){this.paused=!1,this.isResumed=!0;for(let e=0;e<this.totalChunks;e++){if(this.mapXhrRequest.size>=this.cacheSize){const e=500*(this.mapXhrRequest.size-this.cacheSize+1);await zr(e)}this.sendChunks(e)}}dispatch(e,t){this.eventTarget.emit(e,t)}validateOptions(){if(!this.endpoint||"function"!=typeof this.endpoint&&"string"!=typeof this.endpoint)throw new TypeError("endpoint必须为:文件上传URL字符串,或返回地址的函数!");if(!(this.file instanceof File))throw new TypeError("file必须为文件对象");if(this.headers&&"object"!=typeof this.headers)throw new TypeError("文件头必须为对象或空!");if(this.chunkSize&&("number"!=typeof this.chunkSize||this.chunkSize<=0||this.chunkSize%256!=0))throw new TypeError("chunkSize必须大于0,并是256的整数倍");if(this.maxFileBytes>0&&this.maxFileBytes<this.file.size)throw new Error(`文件大小超过最大允许值:(${this.file.size} > ${this.maxFileBytes})`);if(this.attempts&&("number"!=typeof this.attempts||this.attempts<=0))throw new TypeError("重试次数必须为正数!");if(this.delayBeforeAttempt&&("number"!=typeof this.delayBeforeAttempt||this.delayBeforeAttempt<0))throw new TypeError("延时重试时间必须为正数!默认为1")}getEndpoint(){return"string"==typeof this.endpoint?(this.endpointValue=this.endpoint,Promise.resolve(this.endpoint)):this.endpoint(this.file).then(e=>(this.endpointValue=e,this.endpointValue))}getChunk(e=0){return new Promise(t=>{const n=1===this.totalChunks?this.file.size:this.chunkByteSize,i=n*e,r=new FileReader;r.onload=function(){if(null!==this.result){const n=new Blob([this.result],{type:"application/octet-stream"});t({chunkIndex:e,chunkContent:n})}else t(void 0)},r.readAsArrayBuffer(this.file.slice(i,i+n))})}xhrPromise(e){return new Promise((t,n)=>{const i=e.headers,r=Number(i.ChunkIndex),o=no({...e},(e,i)=>(this.mapXhrRequest.delete(r),e?n(e):t(i)));this.mapXhrRequest.set(r,o)})}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,i=n+t.size-1,r={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${i}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:r,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){if(this.paused||this.offline||this.success)return;this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then(e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}}).then(t=>{if(t)if(io.includes(t.statusCode)){const n=JSON.parse(t.body).RESULTVALUE;if(n.STATE){this.attemptCount=0,this.chunkCount=this.chunkCount+1;const e=Math.round(n.INDEX/this.chunkByteSize);this.mapXhrRequest.delete(e),this.dispatch("chunkSuccess",{chunkCount:this.chunkCount,attempts:this.attemptCount,chunkNumber:e}),this.okRecordList.push(e),this.chunkCount<this.totalChunks&&!this.isResumed&&this.currentMaxIndex<this.totalChunks-1&&(this.currentMaxIndex++,this.sendChunks(this.currentMaxIndex));const t=100*this.chunkCount/this.totalChunks;this.dispatch("progress",t),n.END&&(this.success=!0,this.dispatch("success",this.fileName),this.okRecordList.length=0)}else{const t=`服务器错误:${n.NAME},停止上传。`;console.log(t),this.dispatch("error",{message:t,chunkNumber:e,attempts:0}),this.mapXhrRequest.delete(e),zr(1e3).then(t=>this.sendChunks(e))}}else if(null!=t&&ro.includes(t.statusCode)){if(this.paused||this.offline)return}else{if(this.paused||this.offline)return;console.log(`服务器错误:${t?.statusCode},停止上传。`),this.dispatch("error",{message:`服务器错误:${t?.statusCode},停止上传。`,chunkNumber:this.chunkCount,attempts:this.attemptCount})}else console.warn("上传失败的索引为:"+e)}).catch(e=>{!this.paused&&this.offline}))}}const so=e=>new oo(e);const ao=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,i=t.scrollTop,r=t.clientLeft,o=t.clientTop,s=globalThis.scrollX,a=globalThis.scrollY,l=this.getBoundingClientRect(e),{left:c,top:u,width:h,height:d}=l,f=c+s-((s||n)-(r||0)),p=u+a-((a||i)-(o||0)),g=globalThis.document.documentElement.clientWidth,m=globalThis.document.documentElement.clientHeight;return{left:f,top:p,right:g-h-f,bottom:m-d-p,rightIncludeBody:g-f,bottomIncludeBody:m-p}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach(i=>{n[`${i}${tt.UpperFirst(e)}`]=t}),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const i=function(...r){n&&n.apply(this,r),this.off(e,t,i)};this.on(e,t,i)}};class lo{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!tt.isNullOrEmpty(e)){if(lo.httpTransport||(lo.httpTransport=new Y),this.client=new U(e),!this.client)throw Error("Hprose Client初始化错误");this.hproseURL=e,this.init()}}init(){this.client&&this.client.useServiceAsync().then(e=>{this.hproseProxy=e}).catch(e=>{String(e).indexOf("find this method ~")>0?(this.hproseProxy=this.client?.useService(),console.warn("旧版本不支持useServiceAsync")):Nn.emit($n.HproseServiceErrorEvent,"初始化默认Hprose!"),console.warn(e)})}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}}class co{hproseClient;hpProxyObj;defaultContext=new j;constructor(e){this.hproseClient=new lo(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const i=n.httpRequestHeaders,r=Lr();r&&(i.token=r.token),Li.SystemID&&(i.sysid=Li.SystemID,Li.SystemGroup&&(i.sysgroup=Li.SystemGroup));return new j(n)}async getHproseProxy(){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");if(!this.hpProxyObj){const e=await this.hproseClient.getProxy();this.hpProxyObj=e}return this.hpProxyObj||Nn.emit($n.HproseServiceErrorEvent,"HproseProxy对象为空,无法调用Hprose方法!"),this.hpProxyObj}async hproseInvoke(e,t,n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");return await this.hproseClient.invoke(e,t,n)}async hproseInvokeContext(e,t,...n){if(!this.hproseClient)throw new Error("HproseClient对象为构建,无法调用Hprose方法");const i=Lr();return console.log(i,"userToken3"),i&&(t||(t=new j({httpRequestHeaders:{token:i.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new H(e).toBytes(),n=await(this.hproseClient.client?.request(t,this.defaultContext));return n?this.hproseClient.client?.codec.decode(n,this.defaultContext):n}encodeRequest(e,...t){const n=this.hproseClient.client?.codec,i=n?.encode(e,t,this.defaultContext);return H.toString(i)}}const uo=new Map,ho=function(e,t,n){Li.Config?.ServiceURL&&Li.Config?.ServiceURL.DefaultHproseAPI&&(Li.Config.DefaultHproseAPI=Li.Config?.ServiceURL.DefaultHproseAPI,Li.DefaultProxyClient=new co(Li.Config?.ServiceURL.DefaultHproseAPI));const i=Li.Config.UI.GrayMode;i&&et.setGrayMode(i);const r=new Ei(e,Li.EventBus);Li.Message=r,Li.SystemID=t,Li.SystemGroup=n,Li.EventBus.on($n.HproseServiceErrorEvent,e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)}),Li.EventBus.on($n.WebAPIErrorEvent,e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)}),Li.EventBus.on($n.AxiosRequestErrorEvent,e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)}),Li.EventBus.on($n.CommonWarnEvent,e=>{r.warn(e)})};function fo(e){if(e&&tt.isNotEmpty(e)){if(uo.has(e))return uo.get(e);{const t=new co(e);return uo.set(e,t),t}}}function po(e){const t=fo(e);return t&&(Li.DefaultProxyClient=t),t}const go=a({isLock:!1,lockTime:0});function mo(e){go.isLock=e,e&&(Mr(),console.log("锁屏了……"))}function vo(){return go.isLock}let yo;function wo(){clearInterval(yo);globalThis.location.href.indexOf("/login")>0||go.isLock||(mo(!1),go.lockTime=function(){let e=3600;return Li.Config.UI?.LockTime&&Li.Config.UI?.LockTime>=10&&(e=Li.Config.UI.LockTime),e}(),yo=setInterval(()=>{if(go.lockTime--,go.lockTime<=0)return mo(!0),clearInterval(yo)},1e3))}function bo(){wo(),document.addEventListener("mousedown",wo),document.addEventListener("mousemove",wo)}function So(){document.removeEventListener("mousedown",wo),document.removeEventListener("mousemove",wo)}function xo(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Eo,Co={exports:{}};
|
|
2
2
|
/*!
|
|
3
3
|
localForage -- Offline Storage, Improved
|
|
4
4
|
Version 1.10.0
|
|
5
5
|
https://localforage.github.io/localForage
|
|
6
6
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
7
|
-
*/var Gi=(Xi||(Xi=1,Yi.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(!a&&qi)return qi(s);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o=qi,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}function d(e){1!==l.push(e)||r||n()}t.exports=d}).call(this,void 0!==ge?ge:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var r=e(1);function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}function s(){t(i,r)}var a=p(s);"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}function m(e){return e instanceof this?e:o.resolve(new this(i),e)}function g(e){var t=new this(i);return o.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){function c(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(l,s))}t.resolve(e).then(c,function(e){r||(r=!0,o.reject(l,e))})}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=-1,a=new this(i);++s<n;)c(e[s]);return a;function c(e){t.resolve(e).then(function(e){r||(r=!0,o.resolve(a,e))},function(e){r||(r=!0,o.reject(a,e))})}}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?d(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=m,l.reject=g,l.all=v,l.race=y},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==ge?ge:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var s=o();function a(){try{if(!s||!s.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}function c(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var l=Promise;function u(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function d(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function h(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function f(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,g={},v=Object.prototype.toString,y="readonly",w="readwrite";function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function S(e){return new l(function(t){var n=e.transaction(p,w),r=c([""]);n.objectStore(p).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}function x(e){return"boolean"==typeof m?l.resolve(m):S(e).then(function(e){return m=e})}function C(e){var t=g[e.name],n={};n.promise=new l(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function E(e){var t=g[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function k(e,t){var n=g[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function z(e,t){return new l(function(n,r){if(g[e.name]=g[e.name]||B(),e.db){if(!t)return n(e.db);C(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var o=s.open.apply(s,i);t&&(o.onupgradeneeded=function(t){var n=o.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(p)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),o.onerror=function(e){e.preventDefault(),r(o.error)},o.onsuccess=function(){var t=o.result;t.onversionchange=function(e){e.target.close()},n(t),E(e)}})}function M(e){return z(e,!1)}function A(e){return z(e,!0)}function I(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function L(e){return new l(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function R(e){return c([b(atob(e.data))],{type:e.type})}function _(e){return e&&e.__local_forage_encoded_blob}function T(e){var t=this,n=t._initReady().then(function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return d(n,e,e),n}function D(e){C(e);for(var t=g[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,M(e).then(function(t){return e.db=t,I(e)?A(e):t}).then(function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}).catch(function(t){throw k(e,t),t})}function P(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return l.resolve().then(function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),A(e)}).then(function(){return D(e).then(function(){P(e,t,n,r-1)})}).catch(n);n(i)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function N(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=g[n.name];i||(i=B(),g[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=T);var o=[];function s(){return l.resolve()}for(var a=0;a<i.forages.length;a++){var c=i.forages[a];c!==t&&o.push(c._initReady().catch(s))}var u=i.forages.slice(0);return l.all(o).then(function(){return n.db=i.db,M(n)}).then(function(e){return n.db=e,I(n,t._defaultConfig.version)?A(n):e}).then(function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})}function $(e,t){var n=this;e=h(e);var r=new l(function(t,r){n.ready().then(function(){P(n._dbInfo,y,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),_(e)&&(e=R(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return u(r,t),r}function O(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){P(n._dbInfo,y,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;_(r)&&(r=R(r));var i=e(r,n.key,a++);void 0!==i?t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return u(r,t),r}function U(e,t,n){var r=this;e=h(e);var i=new l(function(n,i){var o;r.ready().then(function(){return o=r._dbInfo,"[object Blob]"===v.call(t)?x(o.db).then(function(e){return e?t:L(t)}):t}).then(function(t){P(r._dbInfo,w,function(o,s){if(o)return i(o);try{var a=s.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=a.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return u(i,n),i}function W(e,t){var n=this;e=h(e);var r=new l(function(t,r){n.ready().then(function(){P(n._dbInfo,w,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(s.error)},o.onabort=function(){var e=s.error?s.error:s.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return u(r,t),r}function j(e){var t=this,n=new l(function(e,n){t.ready().then(function(){P(t._dbInfo,w,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function F(e){var t=this,n=new l(function(e,n){t.ready().then(function(){P(t._dbInfo,y,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function H(e,t){var n=this,r=new l(function(t,r){e<0?t(null):n.ready().then(function(){P(n._dbInfo,y,function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName),a=!1,c=s.openKeyCursor();c.onsuccess=function(){var n=c.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return u(r,t),r}function q(e){var t=this,n=new l(function(e,n){t.ready().then(function(){P(t._dbInfo,y,function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function X(e,t){t=f.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var o=e.name===n.name&&i._dbInfo.db?l.resolve(i._dbInfo.db):M(e).then(function(t){var n=g[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t});r=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;C(e);var r=g[e.name],i=r.forages;t.close();for(var o=0;o<i.length;o++){var a=i[o];a._dbInfo.db=null,a._dbInfo.version=n}var c=new l(function(t,r){var i=s.open(e.name,n);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}});return c.then(function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,E(n._dbInfo)}}).catch(function(t){throw(k(e,t)||l.resolve()).catch(function(){}),t})}}):o.then(function(t){C(e);var n=g[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;var o=new l(function(t,n){var r=s.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}});return o.then(function(e){n.db=e;for(var t=0;t<r.length;t++)E(r[t]._dbInfo)}).catch(function(t){throw(k(e,t)||l.resolve()).catch(function(){}),t})})}else r=l.reject("Invalid arguments");return u(r,t),r}var Y={_driver:"asyncStorage",_initStorage:N,_support:a(),iterate:O,getItem:$,setItem:U,removeItem:W,clear:j,length:F,key:H,keys:q,dropInstance:X};function G(){return"function"==typeof openDatabase}var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z="~~local_forage_type~",K=/^~~local_forage_type~([^~]+)~/,J="__lfsc__:",Q=J.length,ee="arbf",te="blob",ne="si08",re="ui08",ie="uic8",oe="si16",se="si32",ae="ur16",ce="ui32",le="fl32",ue="fl64",de=Q+ee.length,he=Object.prototype.toString;function fe(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=V.indexOf(e[t]),r=V.indexOf(e[t+1]),i=V.indexOf(e[t+2]),o=V.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function pe(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=V[n[t]>>2],r+=V[(3&n[t])<<4|n[t+1]>>4],r+=V[(15&n[t+1])<<2|n[t+2]>>6],r+=V[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function me(e,t){var n="";if(e&&(n=he.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===he.call(e.buffer))){var r,i=J;e instanceof ArrayBuffer?(r=e,i+=ee):(r=e.buffer,"[object Int8Array]"===n?i+=ne:"[object Uint8Array]"===n?i+=re:"[object Uint8ClampedArray]"===n?i+=ie:"[object Int16Array]"===n?i+=oe:"[object Uint16Array]"===n?i+=ae:"[object Int32Array]"===n?i+=se:"[object Uint32Array]"===n?i+=ce:"[object Float32Array]"===n?i+=le:"[object Float64Array]"===n?i+=ue:t(new Error("Failed to get type for BinaryArray"))),t(i+pe(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n=Z+e.type+"~"+pe(this.result);t(J+te+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}}function ge(e){if(e.substring(0,Q)!==J)return JSON.parse(e);var t,n=e.substring(de),r=e.substring(Q,de);if(r===te&&K.test(n)){var i=n.match(K);t=i[1],n=n.substring(i[0].length)}var o=fe(n);switch(r){case ee:return o;case te:return c([o],{type:t});case ne:return new Int8Array(o);case re:return new Uint8Array(o);case ie:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case ae:return new Uint16Array(o);case se:return new Int32Array(o);case ce:return new Uint32Array(o);case le:return new Float32Array(o);case ue:return new Float64Array(o);default:throw new Error("Unkown type: "+r)}}var ve={serialize:me,deserialize:ge,stringToBuffer:fe,bufferToString:pe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function we(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new l(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){ye(i,n,function(){t._dbInfo=n,e()},function(e,t){r(t)})},r)});return n.serializer=ve,i}function be(e,t,n,r,i,o){e.executeSql(n,r,i,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,a){a.rows.length?o(e,s):ye(e,t,function(){e.executeSql(n,r,i,o)},o)},o):o(e,s)},o)}function Se(e,t){var n=this;e=h(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){be(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function xe(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){be(n,i,"SELECT * FROM "+i.storeName,[],function(n,r){for(var o=r.rows,s=o.length,a=0;a<s;a++){var c=o.item(a),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,a+1)))return void t(l)}t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ce(e,t,n,r){var i=this;e=h(e);var o=new l(function(o,s){i.ready().then(function(){void 0===t&&(t=null);var a=t,c=i._dbInfo;c.serializer.serialize(t,function(t,l){l?s(l):c.db.transaction(function(n){be(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(a)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(Ce.apply(i,[e,a,n,r-1]));s(t)}})})}).catch(s)});return u(o,n),o}function Ee(e,t,n){return Ce.apply(this,[e,t,n,1])}function ke(e,t){var n=this;e=h(e);var r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){be(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function ze(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){be(t,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Me(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){be(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Ae(e,t){var n=this,r=new l(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){be(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return u(r,t),r}function Ie(e){var t=this,n=new l(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){be(t,r,"SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Le(e){return new l(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})},function(e,t){n(t)})},function(e){n(e)})})}function Re(e,t){t=f.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return r=e.name?new l(function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Le(r))}).then(function(e){return new l(function(t,n){e.db.transaction(function(r){function i(e){return new l(function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],s=0,a=e.storeNames.length;s<a;s++)o.push(i(e.storeNames[s]));l.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):l.reject("Invalid arguments"),u(r,t),r}var _e={_driver:"webSQLStorage",_initStorage:we,_support:G(),iterate:xe,getItem:Se,setItem:Ee,removeItem:ke,clear:ze,length:Me,key:Ae,keys:Ie,dropInstance:Re};function Te(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function De(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Pe(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}function Be(){return!Pe()||localStorage.length>0}function Ne(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=De(e,t._defaultConfig),Be()?(t._dbInfo=n,n.serializer=ve,l.resolve()):l.reject()}function $e(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return u(n,e),n}function Oe(e,t){var n=this;e=h(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return u(r,t),r}function Ue(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a<o;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),s++)))return l}}});return u(r,t),r}function We(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return u(r,t),r}function je(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r});return u(n,e),n}function Fe(e){var t=this.keys().then(function(e){return e.length});return u(t,e),t}function He(e,t){var n=this;e=h(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return u(r,t),r}function qe(e,t,n){var r=this;e=h(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new l(function(i,o){var s=r._dbInfo;s.serializer.serialize(t,function(t,r){if(r)o(r);else try{localStorage.setItem(s.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return u(i,n),i}function Xe(e,t){if(t=f.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new l(function(t){e.storeName?t(De(e,i._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):l.reject("Invalid arguments"),u(r,t),r}var Ye={_driver:"localStorageWrapper",_initStorage:Ne,_support:Te(),iterate:Ue,getItem:Oe,setItem:qe,removeItem:He,clear:$e,length:Fe,key:We,keys:je,dropInstance:Xe},Ge=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ve=function(e,t){for(var n=e.length,r=0;r<n;){if(Ge(e[r],t))return!0;r++}return!1},Ze=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Ke={},Je={},Qe={INDEXEDDB:Y,WEBSQL:_e,LOCALSTORAGE:Ye},et=[Qe.INDEXEDDB._driver,Qe.WEBSQL._driver,Qe.LOCALSTORAGE._driver],tt=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function it(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function ot(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Ze(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var st=function(){function e(t){for(var n in i(this,e),Qe)if(Qe.hasOwnProperty(n)){var r=Qe[n],o=r._driver;this[n]=o,Ke[o]||this.defineDriver(r)}this._defaultConfig=ot({},rt),this._config=ot({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new l(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=nt.concat("_initStorage"),s=0,a=o.length;s<a;s++){var c=o[s];if((!Ve(tt,c)||e[c])&&"function"!=typeof e[c])return void n(i)}var d=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=l.reject(t);return u(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var i=tt[n];e[i]||(e[i]=t(i))}};d();var h=function(n){Ke[r]&&console.info("Redefining LocalForage driver: "+r),Ke[r]=e,Je[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(e){n(e)}});return d(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Ke[e]?l.resolve(Ke[e]):l.reject(new Error("Driver not found."));return d(r,t,n),r},e.prototype.getSerializer=function(e){var t=l.resolve(ve);return d(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return d(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Ze(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function s(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}function a(e){return function(){var t=0;function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(s).catch(n)}o();var a=new Error("No available storage method found.");return r._driverSet=l.reject(a),r._driverSet}return n()}}var c=null!==this._driverSet?this._driverSet.catch(function(){return l.resolve()}):l.resolve();return this._driverSet=c.then(function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=a(i)})}).catch(function(){o();var e=new Error("No available storage method found.");return r._driverSet=l.reject(e),r._driverSet}),d(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Je[e]},e.prototype._extend=function(e){ot(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)it(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),at=new st;t.exports=at},{3:3}]},{},[4])(4)),Yi.exports);const Vi=ve(Gi);var Zi,Ki={exports:{}};Zi=()=>{const e="object"==typeof window?window:void 0;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,n=!1;const r=e.WebStreamsPolyfill||{};let i=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint;const o={createWriteStream:function(e,r,a){let c={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},l=0,u=null,d=null;if(Number.isFinite(r)?([a,r]=[r,a],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):r&&r.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),c.size=a,c.writableStrategy=r):c=r||{},!i){t||(t=s(o.mitm)),u=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const r={transferringReadable:n,pathname:c.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};c.size&&(r.headers["Content-Length"]=c.size);const i=[r,"*",[u.port2]];if(n){const e=void 0;d=new o.TransformStream(e,c.writableStrategy,c.readableStrategy);const t=d.readable;u.port1.postMessage({readableStream:t},[t])}u.port1.onmessage=e=>{e.data.download?(t.isPopup&&(t.remove(),t=null,s(o.mitm)),s(e.data.download)):e.data.abort&&(h=[],u.port1.postMessage("abort"),u.port1.onmessage=null,u.port1.close(),u.port2.close(),u=null)},t.loaded?t.postMessage(...i):t.addEventListener("load",()=>{t.postMessage(...i)},{once:!0})}let h=[];return!i&&d&&d.writable||new o.WritableStream({write(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i?h.push(e):(u.port1.postMessage(e),l+=e.length)},close(){if(i){const t=new Blob(h,{type:"application/octet-stream; charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}else u.port1.postMessage("end")},abort(){h=[],u.port1.postMessage("abort"),u.port1.onmessage=null,u.port1.close(),u.port2.close(),u=null}},c.writableStrategy)},WritableStream:e.WritableStream||r.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"./mitm.html"};function s(e){if(!e)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...e)=>t.contentWindow.postMessage(...e),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}try{new Response(new ReadableStream),"serviceWorker"in navigator||(i=!0)}catch(e){i=!0}return(e=>{try{e()}catch(e){}})(()=>{const{readable:e}=new TransformStream,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(o,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})}),o},void 0!==Ki?Ki.exports=Zi():"function"==typeof define&&"object"==typeof define.amd?define(Zi):(void 0).streamSaver=Zi();const Ji=(null==Ki.exports?{}:Ki.exports).default||Ki.exports;class Qi{fileID;downloadURL;ChunkUnitM=1048576;chunkByteSize;totalChunks=1;currentDB;keys;fileMetaData=null;finishNum=0;eventTarget;cancelSource;isStarting=!1;fileName;cacheSize=6;requestTimeout=6e4;constructor(e,t,n=3,r=6,i=6e4){this.fileID=e,this.downloadURL=t,this.chunkByteSize=n*this.ChunkUnitM,this.eventTarget=$n(),this.initIndexDB(),r>=3&&(this.cacheSize=r),i>this.requestTimeout&&(this.requestTimeout=i)}on(e,t){this.eventTarget.on(e,t)}dispatch(e,t){this.eventTarget.emit(e,t)}dispatchError(e){this.eventTarget.emit("error",e)}dispatchInfo(e){this.eventTarget.emit("info",e)}async queryDownloadFileMeta(e,t="",n){this.dispatchInfo("开始获取文件信息");const r=await ri(t,e,n);let i=null;return r&&200===r.status&&(i=r.data),i}async getIFileMeta(){if(null===this.fileMetaData){const e=await(this.currentDB?.getItem("fileinfo"));this.fileMetaData=e||null}return this.fileMetaData}initIndexDB(){this.currentDB=Vi.createInstance({name:this.fileID,driver:Vi.INDEXEDDB})}async init(e){if(this.finishNum=0,e){const t="fileinfo";this.fileMetaData={id:e.id,name:e.name,length:e.length,downloadID:e.downloadID,chunkSize:this.chunkByteSize},this.fileName=e.name,this.currentDB?.setItem(t,this.fileMetaData)}if(null!=this.fileMetaData){const e=this.fileMetaData.chunkSize;null!=e&&e>0&&(this.chunkByteSize=e)}this.fileMetaData&&(this.totalChunks=Math.ceil(this.fileMetaData.length/this.chunkByteSize)),this.dispatchInfo("完成初始化文件信息,总分片:"+this.totalChunks),this.currentDB&&(this.keys=await this.currentDB.keys())}getTotalChunks(){return this.totalChunks}pause(){this.cancelSource&&this.isStarting&&(this.cancelSource.cancel(),this.isStarting=!1),this.dispatchInfo("已暂停下载任务")}restart(){this.dispatchInfo("正在重启下载任务"),this.download()}delete(){this.cancelSource&&this.cancelSource.cancel(),Vi.dropInstance({name:this.fileID}),this.currentDB=void 0,this.keys&&(this.keys.length=0,this.keys=void 0),this.finishNum=0,this.downloadProgress(),this.outputProgress(0),this.dispatchInfo("已删除下载任务")}sleep(e){return new Promise(t=>setTimeout(t,e))}async download(e,t,n){let r=e;if(!r&&this.downloadURL&&(r=this.downloadURL),!r)throw Error("下载URL不能为空!");this.currentDB||this.initIndexDB();const i=Ar.Axios.CancelToken;this.cancelSource=i.source(),this.isStarting=!0;const o={key:this.fileMetaData?.downloadID},s=n??o;let a=0;const c=this.cacheSize;let l=0;for(let e=0;e<this.totalChunks;e++){if(this.keys){const t=this.keys?.indexOf(e.toString());if(t>=0){a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());continue}}const n=e*this.chunkByteSize;let i=n+this.chunkByteSize-1;this.fileMetaData&&i>this.fileMetaData.length&&(i=this.fileMetaData.length-1);const o={range:`bytes=${n}-${i}`};for(;l>=c;)await this.sleep(200);const u=e.toString();this.dispatchInfo(`开始下载分片${e+1}/${this.totalChunks}`),l++,ri(r,t,s,o,"arraybuffer",this.cancelSource?.token,this.requestTimeout).then(async e=>{const t=e.data;l--,await(this.currentDB?.setItem(u,t)),a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());const n=parseInt(u)+1;this.dispatchInfo(`完成下载分片${n}/${this.totalChunks}`),this.savefile()}).catch(e=>{l--;const t=parseInt(u)+1;this.dispatchError(`下载第${t})个分片内容失败!`)})}this.finishNum===this.totalChunks&&this.savefile()}downloadProgress(){const e=100*this.finishNum/this.totalChunks;this.dispatch("downloadProgress",e)}outputProgress(e){const t=100*e/this.totalChunks;this.dispatch("saveProgress",t)}async savefile(){if(this.finishNum===this.totalChunks){if(!this.fileName)return void this.dispatchError("下载错误:文件名为空!");this.dispatchInfo("开始保存下载文件:"+this.fileName);const e=Ji.createWriteStream(this.fileName).getWriter();let t=0;for(let n=0;n<this.totalChunks;n++){const r=n.toString();let i=await(this.currentDB?.getItem(r));if(i||(i=await(this.currentDB?.getItem(r))),!i)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);let o=new Response(i).body;if(null===o)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);const s=o.getReader();for(;;){const{done:t,value:n}=await s.read();if(t)break;await e.write(n)}t++,this.outputProgress(t),this.dispatchInfo(`完成第${n+1}个分片输出`)}e.close(),Vi.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}}function eo(e,t){let n="",r="";for(const e in t)n+=e+"="+encodeURIComponent(t[e])+"&";return n=n.replace(/&$/,""),r=/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n,r}function to(e={},t={}){let n;for(n in t)Le(t[n])?e[n]=to(e[n],t[n]):e[n]=t[n];return e}function no(e,t,n={name:void 0}){const r=e.resolve({path:t,query:n});window.open(r.href,"_blank")}function ro(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function io(e,t="/"){if(e)return e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`}function oo(e,t){e.getRoutes().find(e=>"/"===e.path)||e.addRoute({name:"/",path:"/",redirect:t.path})}function so(e){const t=[];let n=[];return Object.keys(e).forEach(t=>{const r=e[t];r&&n.push(...r)}),n=n.sort((e,t)=>{let n=0,r=0;return e.meta&&(n=null!=e.meta.index?Number(e.meta.index):100),t.meta&&(r=null!=t.meta.index?Number(t.meta.index):100),n-r}),t.push(...n),n.length=0,t}function ao(e,t=!1){let n=[];for(const t in e){const r=e[t];r&&r.length>0&&(n.push(...r),r.length=0),delete e[t]}return t&&(n=n.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n}function co(e,t=!1){const n=[];let r=[];return Object.keys(e).forEach(t=>{const n=e[t];n&&r.push(...n)}),t&&(r=r.sort((e,t)=>{let n=0,r=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(r=Number(t.index)),n-r})),n.push(...r),r.length=0,n}const lo=new Map;function uo(e,t=!1){if(t&&lo.size>0)return lo;lo.clear();for(const t in e){const n=e[t];n&&n.length>0&&(n.forEach(e=>{let t;const n=e.layoutID;lo.has(n)&&(t=lo.get(n)),t||(t=new Array,lo.set(n,t)),t&&t.push(e)}),n.length=0),delete e[t]}return lo}function ho(e,t="/"){let n=t;if(e.redirect&&e.children){n=e.path.startsWith(t)?e.path:t.endsWith("/")?t+e.path:t+"/"+e.path;return ho(e.children[0],n)}n=e.path.startsWith(t)?e.path:`${t}/${e.path}`;return{title:e.meta?.title,fullPath:n,path:e.path,icon:e.meta?.icon,keepAlive:e.meta?.keepAlive,name:e.name}}function fo(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let e of t){const t=po(e);t&&n.push(t)}return n}(e.bussinessRoutes),n=function(e){if(!e)return;const t=e;if(t&&t.length>0){const e=[];return t.forEach(t=>{const n=mo(t);n&&e.push(n)}),e}return}(e.widgetMenuConfig),r=function(e){if(!e)return;if(e.length>0){const t=[];return e.forEach(e=>{const n=function(e){if(!e)return;return{id:e.id,label:e.label,layoutID:e.layoutID,container:e.container,preload:e.preload,afterid:e.afterid,bindid:e.bindid,group:e.group}}(e);n&&t.push(n)}),t}return}(e.widgetConfig),i=(o=e.functionList)&&o.length>0?o:void 0;var o;const s=e.pkgObject.version,a=e.pkgObject.name,c=function(e,t){const n=`${e}_${t}`;return et.MD5(n)}(a,s);return{id:c,name:Ar.Config.UI.SiteTitle,group:Ar.Config.UI.Group,product:a,version:s,routes:t,widgetMenu:n,widgets:r,functions:i}}function po(e){if(e){let t=0;e.meta?.hidden&&(t=1);let n={path:e.path,name:e.name,title:e.meta?.title,type:t,index:e.meta?.index};if(e.children){const t=[];for(let n of e.children){const e=po(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function mo(e){if(!e)return;const t={name:e.name,index:e.index,path:e.path,type:e.type};return e.children&&e.children.length>0&&(t.children=[],e.children.forEach(e=>{const n=mo(e);n&&t.children?.push(n)})),t}function go(e,t="IconifyList.ts"){let n="",r="const iconlist={\n";let i=0;if(e.forEach(e=>{const t=e.split(":");if(t&&2===t.length){const o="icon"+i;n+=`import ${o} from '~icons/${t[0]}/${t[1]}'\n`,r+=`\t'${e}':${o},\n`,i++}}),i>0){r+="};\n";Zn(n+r+"export default iconlist;","IconifyList.ts")}}function vo(e,t){const n=fo(e);Jn(n,t),Ar.Message?.msg("导出系统功能权限文件成功!")}function yo(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function wo(e){let t=bo(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function bo(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function So(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function xo(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function Co(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function Eo(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function ko(e){let t=bo(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function zo(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function Mo(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){let r=(e+="00").indexOf(".");r>=0&&(e=e.substring(0,r)+e.substr(r+1,2)),t=t.substr(t.length-e.length);for(let r=0;r<e.length;r++)n+="零壹贰叁肆伍陆柒捌玖".substr(e.substr(r,1),1)+t.substr(r,1);return n=n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元")}function Ao(e){return!!/^((12[0-9])|(13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0|1,5-9]))\d{8}$/.test(e)}function Io(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function Lo(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function Ro(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function _o(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function To(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function Do(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function Po(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Bo(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function No(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function $o(e){return!!/^[1-9][0-9]{5}$/.test(e)}function Oo(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function Uo(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}function Wo(e){e&&Ar.EventBus.emit(Un.ModalContainerWidget_LoadModal,e)}function jo(e){Ar.EventBus.emit(Un.ModalContainerWidget_CloseModal,e)}function Fo(e,t){const n={};return Object.keys(e).filter(e=>t.includes(e)).forEach(t=>{n[t]=e[t]}),n}let Ho=[];const qo=()=>{setTimeout(async()=>{const e=await async function(){const e=await async function(e){const t=/<script.*src=["'](?<src>[^"']+)/gm,n=[];let r;for(;r=t.exec(e);)n.push(r.groups?.src??"");return n}(await fetch("/").then(e=>e.text()));if(!Ho.length)return Ho=e,!1;if(e.length!==Ho.length)return Ho=e,!0;for(let t=0;t<Ho.length;t++)if(Ho[t]!==e[t])return Ho=e,!0;return!1}();if(e){confirm("页面有更新,点击确定刷新页面?")&&location.reload()}else qo()},5e3)},Xo=new Set;function Yo(e){return null!==e?parseFloat(e):0}function Go(e){const t=window.getComputedStyle(e),n=Math.ceil([t.paddingLeft,t.width,t.paddingRight].map(Yo).reduce((e,t)=>e+t)),r=Math.ceil([t.paddingTop,t.height,t.paddingBottom].map(Yo).reduce((e,t)=>e+t));return{width:n,height:r}}class Vo{width;height;constructor(e,t){this.width=e,this.height=t}}function Zo(e){const t=e.windowEl;if(t){const e=parseFloat(t.style.left||"NaN"),n=parseFloat(t.style.top||"NaN");if(!isNaN(e)&&!isNaN(n))return{left:e,top:n}}return null}function Ko(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}window.addEventListener("resize",e=>{Xo.forEach(e=>{e&&Ee(e.fixPosition)&&e.fixPosition()})});const Jo=[],Qo=e({name:"VWindow",props:{windowStyle:{type:Object,required:!0},isOpen:{type:Boolean,required:!1,default:!0},title:{type:String,required:!0,default:""},closeButton:{type:Boolean,required:!1,default:!0},resizable:{type:Boolean,required:!1,default:!1},isScrollable:{type:Boolean,required:!1,default:!1},padding:{type:Number,required:!1,default:8},activateWhenOpen:{type:Boolean,required:!1,default:!0},positionHint:{type:String,required:!1,default:""},zGroup:{type:Number,required:!1,default:1},overflow:{type:String,required:!1,default:"visible"},minWidth:{type:Number,required:!1,default:1},minHeight:{type:Number,required:!1,default:0},maxWidth:{type:Number,required:!1,default:0},maxHeight:{type:Number,required:!1,default:0},height:{type:Number,required:!1},width:{type:Number,required:!1},top:{type:Number,required:!1},left:{type:Number,required:!1}},components:{myButton:me},setup(e,{emit:n}){const r=c();if(!r)return;const{proxy:i}=r;let o=0;let s,a,p;const m=t(e.isOpen),g=()=>{Jo.push(i),p=new se(e.zGroup,v),e.isOpen&&(f(()=>{0==o++&&(k(i),function(){const t=y.value,{width:n,height:r}=Z(t);let o,s;if(void 0!==e.left!=(void 0!==e.top))throw new Error("Either of left or top is specified. Both must be set or not set.");if("number"==typeof e.left)o=e.left,s=e.top;else{const t=e.positionHint||"auto";switch(t){case"auto":{let e=20,t=50,n=0;do{if(Jo.every(n=>{if(!n.isOpen||i==n)return!0;const r=Zo(n);if(null==r)return!0;const{left:o,top:s}=r;return Ko(o,s,e,t)>16}))break;e=(e+40)%(window.innerWidth-200),t=(t+40)%(window.innerHeight-200)}while(++n<100);o=e,s=t}break;case"center":o=(window.innerWidth-n)/2,s=(window.innerHeight-r)/2,console.log(o,s,window.innerWidth,window.innerHeight,"111111");break;default:try{const e=t.split("/").map(Number);if(2!=e.length)throw null;const[i,a]=e;if(!isFinite(i)||!isFinite(a))throw null;o=i>=0?i:window.innerWidth-n+i,s=a>=0?a:window.innerHeight-r+a}catch(e){throw new Error(`invalid position string: ${t}`)}}}t&&(t.style.left=`${o}px`,t.style.top=`${s}px`)}()),e.resizable&&z(),A(),s=new te(w.value,y.value,{onMove:()=>A(),onMoveStart:()=>n("move-start"),onMoveEnd:()=>n("move-end")}),e.resizable&&function(){const{height:t}=Z(w.value);a=new ne(y.value,{onResize:()=>z(),onResizeStart:()=>n("resize-start"),onResizeEnd:()=>n("resize-end"),minWidth:e.minWidth,minHeight:e.minHeight+t,maxWidth:e.maxWidth,maxHeight:e.maxHeight?e.maxHeight+t:void 0})}()}),e.activateWhenOpen&&S()),Xo.add(i)};function v(e){x.value.zIndex=`${e}`}const y=t(null),w=t(null),b=t(null);function S(){p.raise(),n("activate")}const x=t({...e.windowStyle.window,zIndex:"auto",overflow:e.overflow}),C=l(()=>e.windowStyle.titlebar),E=l(()=>{const t={...e.windowStyle.content};return e.resizable?t.padding="0":null!=e.padding&&(t.padding=`${e.padding}px`),e.isScrollable&&(t.overflow="auto"),t});function k(e){const{width:t,height:n,top:r,left:i}=e,o=y;if(o&&null!=t&&(o.value.style.width=`${t}px`),null!=n){const e=w.value;if(e){const t=Go(e).height;o.value.style.height=`${n+t}px`}}o&&null!=i&&(o.value.style.left=`${i}px`),o&&null!=r&&(o.value.style.top=`${r}px`)}function z(e=!0){const t=y.value,r=w.value,i=b.value;if(i&&t&&r){const{width:o,height:s}=Go(i),{width:a,height:c}=Go(t),l=Go(r).height,u=a-(i.offsetWidth-o),d=c-l-(i.offsetHeight-s);i.style.width=`${u}px`,i.style.height=`${d}px`,M(),n("resize",new Vo(u,d)),e&&(n("update:width",u),n("update:height",d))}}function M(){const e=y.value;if(e){const t=e.getBoundingClientRect();t.left<0&&(x.value.left="0px"),t.top<0&&(x.value.top="0px"),t.right>window.innerWidth&&(x.value.left=window.innerWidth-t.width+"px"),t.bottom>window.innerHeight&&(x.value.top=window.innerHeight-t.height+"px")}}function A(e=!0){M();const t=y.value;if(t){const{left:r,top:i}=t.getBoundingClientRect();e&&(n("update:left",r),n("update:top",i))}}return u(()=>e.isOpen,e=>{m.value=e}),u(()=>e.zGroup,e=>{p.group=e}),u(()=>e.width,e=>{k({width:e}),z(!1)}),u(()=>e.height,e=>{k({height:e}),z(!1)}),d(()=>{g()}),h(()=>{Xo.delete(this),p.unregister(),a&&a.teardown(),s&&s.teardown(),Jo.splice(Jo.indexOf(i),1)}),{isOpen:m,windowEl:y,titlebar:w,content:b,activate:S,styleWindow:x,styleTitlebar:C,styleContent:E,closeButtonClick:function(){m.value=!1,n("closebuttonclick")},fixPosition:M}}}),es={class:"title"};const ts=fe(Qo,[["render",function(e,t,i,a,c,l){const u=p("myButton");return r(),m(g,{name:"fade",onAfterLeave:t[2]||(t[2]=t=>e.$emit("close")),onAfterEnter:t[3]||(t[3]=t=>e.$emit("open"))},{default:v(()=>[y(w("div",{class:"window",style:o(e.styleWindow),ref:"windowEl",onMousedown:t[0]||(t[0]=(...t)=>e.activate&&e.activate(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.activate&&e.activate(...t))},[w("div",{class:"titlebar",style:o(e.styleTitlebar),ref:"titlebar"},[w("div",es,[e.$slots.title?s(e.$slots,"title",{key:0}):(r(),n(S,{key:1},[x(C(e.title),1)],64))]),e.closeButton?(r(),m(u,{key:0,windowStyle:e.windowStyle,onClick:e.closeButtonClick},{default:v(()=>t[4]||(t[4]=[x("×")])),_:1,__:[4]},8,["windowStyle","onClick"])):b("",!0)],4),w("div",{class:"content",style:o(e.styleContent),ref:"content"},[s(e.$slots,"default")],4)],36),[[E,e.isOpen]])]),_:3})}]]);var ns,rs;(rs=ns||(ns={}))[rs.StyleBlack=0]="StyleBlack",rs[rs.StyleWhite=1]="StyleWhite",rs[rs.StyleMetal=2]="StyleMetal",rs[rs.StyleGrayblue=3]="StyleGrayblue";const is={window:{color:"#fff",boxShadow:"0 0 6pt rgba(255, 255, 255, 0.75)",backgroundColor:"rgba(31, 31, 31, 0.9)"},titlebar:{backgroundColor:"rgba(63, 63, 63, 0.9)"},content:{},button:{color:"white"},buttonHover:{backgroundColor:"rgba(255, 255, 255, 0.25)"},buttonActive:{color:"black",backgroundColor:"rgba(255, 255, 255, 0.5)"}},os={window:{color:"#000",boxShadow:"0 2pt 4pt rgba(0, 0, 0, 0.5)",backgroundColor:"rgba(239, 239, 239, 0.95)"},titlebar:{backgroundColor:"rgba(191, 191, 191, 0.9)"},content:{},button:{color:"#000"},buttonHover:{backgroundColor:"rgba(0, 0, 0, 0.25)"},buttonActive:{color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.5)"}},ss={window:{color:"#000",boxShadow:"0 4pt 8pt rgba(0, 0, 0, 0.5)",background:"linear-gradient(to bottom, rgb(215, 215, 215), rgb(191, 191, 191))"},titlebar:{background:"linear-gradient(to bottom, rgb(215, 215, 215), rgb(191, 191, 191))"},content:{},button:{color:"#000"},buttonHover:{backgroundColor:"rgba(0, 0, 0, 0.25)"},buttonActive:{color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.5)"}},as={window:{color:"#fff",fontSize:"14px",boxShadow:"0 0 3pt rgba(255, 255, 255, 0.75)",backgroundColor:"rgba(4,51,81,0.6)",borderRadius:"5px"},titlebar:{backgroundColor:"rgba(4,51,81,0.8)",border:"1px solid rgba(153, 153, 153, 0.5)",borderRadius:"5px",fontSize:"16px",fontWeight:400,color:"#fff"},content:{},button:{color:"white",fontSize:"18px"},buttonHover:{backgroundColor:"rgba(255, 255, 255, 0.25)"},buttonActive:{color:"black",backgroundColor:"rgba(255, 255, 255, 0.5)"}},cs=ts;var ls,us;(us=ls||(ls={}))[us.top=0]="top",us[us.bottom=1]="bottom",us[us.centerBack=2]="centerBack",us[us.centerMain=3]="centerMain",us[us.centerFront=4]="centerFront",us[us.left=5]="left",us[us.right=6]="right";class ds{layoutState;layoutMap=new Map;preConditionMap=new Map;widgetsLoadedSet=new Set;widgetConfigDiction=new Map;_LayoutID;_mapItemRefs;constructor(e,t,n,r){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=r,Ar.RightWidgetConfigMap){const e=Ar.RightWidgetConfigMap.get(t);e&&e.forEach(e=>{if(this.widgetConfigDiction.set(e.id,e),e.afterid)if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}else{const e=Ar.WidgetConfigList??n;e&&e.forEach(e=>{if(e.layoutID===t&&(this.widgetConfigDiction.set(e.id,e),e.afterid))if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}}getLayoutID(){return this._LayoutID}getWidgetConfigMap(){return this.widgetConfigDiction}preloadWidgets(){if(this.widgetConfigDiction.size>0)for(const[e,t]of this.widgetConfigDiction)t.preload&&!t.afterid&&this._loadWidget(t)}async loadWidget(e){if(!e)return;let t;if(Le(e)?t=e:Pe(e)&&(t=this.widgetConfigDiction.get(e)),t){if(t.afterid){if(this.isWidgetLoaded(t.afterid))return this._loadWidget(t);{let e=function(t){t.layoutID===n._LayoutID&&t.widgetID===r&&(n._loadWidget(i),Ar.EventBus.off(Un.WidgetLoadedEvent,e))};const n=this,r=t.afterid,i=t;return Ar.EventBus.on(Un.WidgetLoadedEvent,e),this.loadWidget(t.afterid)}}return this._loadWidget(t)}}loadOtherDependenceWidgets(e){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);t?.forEach(e=>{e.preload&&this._loadWidget(e)})}}_loadWidget(e){if(!this.widgetsLoadedSet.has(e.id))return e.component?e.component().then(t=>{if(t.default){const n=k(t.default);n.id=e.id,e.layout&&(n.style=e.layout),e.cssClass&&(n.cssClass=e.cssClass),e.layoutID&&(n.layoutID=e.layoutID),e.label&&(n.label=e.label),e.jsURL&&(n.jsURL=e.jsURL),e.cssURL&&(n.cssURL=e.cssURL);this.getContainerComponents(e.container).value.set(e.id,n),this.widgetsLoadedSet.add(e.id),f().then(()=>{Ar.EventBus.emit(Un.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),this.loadOtherDependenceWidgets(e.id)})}}).catch(t=>{Ar.Logger().error("加载Widget失败!",e,t),Ar.EventBus.emit(Un.WidgetLoadedErrorEvent,e)}):void 0;this.changeWidgetVisible(e.id,!0)}hasDependentWidgets(e){let t=!1;if(this.preConditionMap.has(e)){const n=this.preConditionMap.get(e);if(n)for(const e of n)if(this.isWidgetLoaded(e.id)){t=!0;break}}return t}unloadWidget(e){if(!e)return;if(!this.isWidgetLoaded(e))return;const t=this.widgetConfigDiction.get(e);if(t){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);if(t)for(const e of t)this.unloadWidget(e.id)}this.getContainerComponents(t.container).value.delete(e),this.widgetsLoadedSet.delete(e),this._mapItemRefs&&this._mapItemRefs.delete(e),Ar.EventBus.emit(Un.WidgetUnLoadedEvent,{layoutID:this._LayoutID,widgetID:e})}}isWidgetLoaded(e){return this.widgetsLoadedSet.has(e)}splitTwoContainer(e=!1){const t=this.layoutState.centerMainContainer.value,n=this.layoutState.centerBackContainer.value;e?(t&&(t.style.left="0",t.style.width="100%"),n&&(n.style.width="100%")):(t&&(t.style.left="50%",t.style.width="50%"),n&&(n.style.width="50%"))}getLayoutContainer(e){switch(e){case ls.top:return this.layoutState.topContainer.value;case ls.bottom:return this.layoutState.bottomContainer.value;case ls.left:return this.layoutState.leftContainer.value;case ls.right:return this.layoutState.rightContainer.value;case ls.centerBack:return this.layoutState.centerBackContainer.value;case ls.centerMain:return this.layoutState.centerMainContainer.value;case ls.centerFront:return this.layoutState.centerFrontContainer.value}}changeContainerVisible(e,t=!1){const n=this.getLayoutContainer(e);n&&(n.style.visibility=t?"visible":"hidden")}changeWidgetVisible(e,t=!1){const n=this.getWidgetComponent(e);n&&n.changeVisible&&n.changeVisible(t)}isWidgetVisible(e){const t=this.getWidgetComponent(e);return!!t&&(!t.isShow||t.isShow.value)}getWidgetComponent(e){if(this.widgetsLoadedSet.has(e)&&this._mapItemRefs){return this._mapItemRefs.get(e)}}getWigetItem(e){return this.widgetConfigDiction.get(e)}getGroupWigetItems(e){const t=[];for(const[n,r]of this.widgetConfigDiction)r.group===e&&t.push(r);return t}getContainerComponents(e){if(this.layoutMap.has(e))return this.layoutMap.get(e);{const n=t(new Map);return this.layoutMap.set(e,n),n}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach(t=>{e.push(t)}),e}unloadAllWidgets(e){const t=[];this.widgetsLoadedSet.forEach(n=>{if(e&&e.length>0){e.findIndex(e=>e===n)<0&&t.push(n)}else t.push(n)}),t.forEach(e=>this.unloadWidget(e))}unloadWidgets(e){e&&e.length>0&&e.forEach(e=>{this.unloadWidget(e)})}static getLayoutManager(e,t){if(t){const n=t.find(t=>t.id===e);if(n&&n.layoutID){return Ar.LayoutMap.get(n.layoutID)}}}}const hs=fe(e({name:"SuspenseWithError",setup(){const e=t(null);return z(t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0)),{error:e}}}),[["render",function(e,t,n,i,o,a){return e.error?s(e.$slots,"error",{key:0},()=>[x(C(e.error),1)]):(r(),m(M,{key:1},{default:v(()=>[s(e.$slots,"default")]),fallback:v(()=>[s(e.$slots,"fallback",{},()=>[t[0]||(t[0]=w("div",null,"加载中……",-1))])]),_:3}))}]]),fs=e({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,t)=>{const n=p("router-view");return r(),m(hs,null,{default:v(()=>[A(n,null,{default:v(({Component:e,route:t})=>[(r(),m(I,null,[t.meta.keepAlive?(r(),m(L(e),{key:t.name})):b("",!0)],1024)),t.meta.keepAlive?b("",!0):(r(),m(L(e),{key:t.name}))]),_:1})]),_:1})}}),ps=["id"],ms=fe(e({__name:"layout",props:{widgetConfig:{type:Array,required:!1,default:void 0},layoutID:{type:String,default:"layoutDefault"},layoutStyle:{type:Object},enableRouterView:{type:Boolean,default:!0}},emits:["containerLoaded"],setup(e,{emit:i}){const a=e,c=i,h=a.layoutID,f=t(h),p=t(),g=t(),v=t(),y=t(),x=t(),C=t(),E=t(),k=t(a.enableRouterView);u(()=>a.enableRouterView,()=>{k.value=a.enableRouterView});const z=new Map,M=(e,t)=>{e&&z.set(t,e)},I=new ds({topContainer:p,centerBackContainer:g,centerMainContainer:v,centerFrontContainer:y,bottomContainer:x,leftContainer:C,rightContainer:E},h,a.widgetConfig,z),D=U(ls.top),P=U(ls.centerBack),B=U(ls.centerFront),N=U(ls.left),$=U(ls.right),O=U(ls.bottom);function U(e){return I?.getContainerComponents(e)}const W=l(()=>a.layoutStyle);return d(()=>{I&&(h?Ar.LayoutMap.set(h,I):(Ar.LayoutManager=I,Ar.LayoutMap.set("",I)),I.preloadWidgets(),c("containerLoaded",{layoutID:h,layoutManager:I}),Ar.EventBus.emit(Un.LayoutContainerLoaded,{layoutID:h,layoutManager:I}))}),(e,t)=>(r(),n("div",{id:f.value,class:"layoutContainer",style:o(W.value)},[w("div",{ref_key:"topContainer",ref:p,class:"topContainer"},[s(e.$slots,"top",{},void 0,!0),(r(!0),n(S,null,R(_(D),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",null,[k.value?(r(),n("div",{key:0,ref_key:"centerMainContainer",ref:v,class:"centerdiv mainContainer"},[s(e.$slots,"main",{},()=>[A(fs)],!0)],512)):b("",!0),w("div",{ref_key:"centerBackContainer",ref:g,class:"centerdiv backContainer"},[s(e.$slots,"back",{},void 0,!0),(r(!0),n(S,null,R(_(P),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"centerFrontContainer",ref:y,class:"centerdiv centerFrontContainer"},[s(e.$slots,"front",{},void 0,!0),(r(!0),n(S,null,R(_(B),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"leftContainer",ref:C,class:"leftContainer"},[s(e.$slots,"left",{},void 0,!0),(r(!0),n(S,null,R(_(N),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"rightContainer",ref:E,class:"rightContainer"},[s(e.$slots,"right",{},void 0,!0),(r(!0),n(S,null,R(_($),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512)]),w("div",{ref_key:"bottomContainer",ref:x,class:"bottomContainer"},[s(e.$slots,"bottom",{},void 0,!0),(r(!0),n(S,null,R(_(O),([e,t])=>(r(),m(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:T(t.cssClass)},null,8,["style","class"]))),128))],512),s(e.$slots,"default",{},void 0,!0)],12,ps))}}),[["__scopeId","data-v-318009ad"]]),gs=e({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(e,t)=>{const n=p("router-view");return r(),m(hs,null,{default:v(()=>[A(n,null,{default:v(({Component:t,route:n})=>[A(D,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:v(()=>[(r(),m(I,null,[n.meta.keepAlive?(r(),m(L(t),{key:n.name})):b("",!0)],1024)),n.meta.keepAlive?b("",!0):(r(),m(L(t),{key:n.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}),vs=new Map,ys=t(new Map);class ws{static ZIndexMax=1;static addWindowPanel(e){vs.set(e.id,e)}static removeWindowPanel(e){vs.has(e)&&(vs.delete(e),ys.value.delete(e))}static minimizeWindowPanel(e){vs.has(e)&&ys.value.set(e,-1)}static openWindowPanel(e){vs.has(e)&&ys.value.set(e,1)}}const bs={width:1024,height:1024,body:'<path fill="currentColor" fill-rule="evenodd" d="M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"/>'},Ss={width:1024,height:1024,body:'<path fill="currentColor" d="M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"/>'},xs={width:1024,height:1024,body:'<path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"/>'},Cs={width:1024,height:1024,body:'<path fill="currentColor" d="M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"/>'},Es=["src"],ks={key:1,class:"paneltitle"},zs={class:"dragPanelBar"},Ms={class:"dragPanelContent"},As={class:"drag-pointer-group"},Is=fe(e({__name:"XWindow",props:{top:{type:[String,Number],default:0},left:{type:[String,Number],default:0},nWidth:{type:[String,Number],default:"300px"},nHeight:{type:[String,Number],default:"400px"},icon:{type:String,default:"img/logo.png"},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!0},hasMax:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},pid:{type:String,default:""},tag:{type:[String,Array,Object,Number],default:""}},emits:["close","open","loaded","minimize"],setup(e,{expose:a,emit:c}){const h=it(),f=e,p=c,S=t(),x=t(),k=l(()=>f.isDark),z=t({x:0,y:0}),M=250,A=100,I=t({width:0,height:0}),L=e=>{S.value&&(S.value.style.left=`${e.x}px`,S.value.style.top=`${e.y}px`)};u(()=>z.value,e=>{L(e)});const R=e=>{S.value&&(S.value.style.width=`${e.width}px`,S.value.style.height=`${e.height}px`)};u(()=>I.value,e=>{R(e)});const D={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(D.refs).forEach(([e,t])=>{t.value&&t.value.addEventListener("mousedown",t=>{D.mouseDown(t,e)})})},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),D.startingEdges={left:z.value.x,top:z.value.y,right:z.value.x+I.value.width,bottom:z.value.y+I.value.height},D.newEdges={...D.startingEdges},D.clickStart={x:e.clientX,y:e.clientY},D.eventListenerController=new AbortController,document.addEventListener("mousemove",e=>{D.mouseMove(e,t)},{signal:D.eventListenerController.signal}),document.addEventListener("mouseup",e=>{D.mouseUp(e,t)},{signal:D.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=D.startingEdges&&null!=D.newEdges&&null!=D.clickStart&&D.refs[t].value){if(e.preventDefault(),console.log("mouseMove",t),t.toLowerCase().includes("north")){D.newEdges.top=Math.max(D.startingEdges.top+e.clientY-D.clickStart.y,0);const t=D.newEdges.bottom-D.newEdges.top-A;t<0&&(D.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(D.newEdges.bottom=Math.min(D.startingEdges.bottom+e.clientY-D.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){D.newEdges.left=Math.max(D.startingEdges.left+e.clientX-D.clickStart.x,0);const t=D.newEdges.right-D.newEdges.left-M;t<0&&(D.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(D.newEdges.right=Math.min(D.startingEdges.right+e.clientX-D.clickStart.x,document.body.clientWidth));D.update()}},update:()=>{null!=D.newEdges&&null!=D.startingEdges&&(z.value={x:Math.max(D.newEdges.left,0),y:Math.max(D.newEdges.top,0)},I.value={width:Math.min(Math.max(D.newEdges.right-D.newEdges.left,M),document.body.clientWidth),height:Math.min(Math.max(D.newEdges.bottom-D.newEdges.top,A),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=D.startingEdges&&(console.log("mouseUp",t),e.preventDefault(),D.startingEdges=null,D.newEdges=null,D.clickStart=null,D.eventListenerController&&(D.eventListenerController.abort(),D.eventListenerController=null))},refs:{northWest:t(null),north:t(null),northEast:t(null),west:t(null),east:t(null),southWest:t(null),south:t(null),southEast:t(null)}},B={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),console.log("mouseDown"),B.startingMouse={x:e.clientX,y:e.clientY},B.startingPosition=z.value,document.addEventListener("mousemove",B.mouseMove),document.addEventListener("mouseup",B.mouseUp))},mouseMove:e=>{B.startingMouse&&B.startingPosition&&(e.preventDefault(),z.value={x:Math.min(Math.max(B.startingPosition.x+e.clientX-B.startingMouse.x,0),document.body.clientWidth-I.value.width),y:Math.max(B.startingPosition.y+e.clientY-B.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&B.startingMouse&&B.startingPosition&&(e.preventDefault(),B.startingMouse=null,B.startingPosition=null,console.log("mouseUp"),document.removeEventListener("mousemove",B.mouseMove),document.removeEventListener("mouseup",B.mouseUp))}};function N(e){return{id:h,icon:f.icon,title:f.title,pid:f.pid,data:e??f.tag}}const $=t(1),O=l(()=>!(-1===ys.value.get(h))),U=t(!1),W=t(!0),j=l(()=>"z-index:"+$.value);function F(){$.value<=ws.ZIndexMax&&(ws.ZIndexMax+=1,$.value=ws.ZIndexMax)}function H(){p("minimize",N()),ws.minimizeWindowPanel(h)}function q(){U.value=!U.value}function X(){p("close",N(!1)),ws.removeWindowPanel(h),W.value=!1}const Y=l(()=>U.value?Cs:xs),G={id:h,isShow:O,close:X,open:function(){p("open",N(!0)),W.value=!0},showHidePanel:H};function Z(e){if(_e(e))return e;{const t=Number(e);if(t==t)return t;if(e.endsWith("px")){const t=e.substring(0,e.length-2);return Number(t)}if(e.endsWith("%")){const t=e.substring(0,e.length-1);return Number(t)/100*document.body.clientWidth}return 300}}return a(G),d(()=>{!function(){let e=96;if(f.hasMin||(e-=32),f.hasMax||(e-=32),f.hasClose||(e-=32),et.setCssVar("--right-bar-width",e+"px",x.value),!x.value)return;const t=_e(f.titleHeight)?f.titleHeight+"px":f.titleHeight;x.value.style.height=t,x.value.style.lineHeight=t}(),function(){const e=N(G);ws.addWindowPanel(e),p("loaded",e)}(),z.value.x=Z(f.left),z.value.y=Z(f.top),L(z.value),I.value={width:Z(f.nWidth),height:Z(f.nHeight)},R(I.value),D.mount()}),P(()=>{ws.removeWindowPanel(h)}),(t,a)=>(r(),m(g,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:v(()=>[W.value?y((r(),n("div",{key:0,ref_key:"dragPanelRef",ref:S,class:T(["dragWindowPanel",{maxPanel:U.value,dragWindowPanel_dark:k.value}]),style:o(j.value)},[w("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:x,onMousedown:a[0]||(a[0]=(...e)=>B.mouseDown&&B.mouseDown(...e)),onClick:i(F,["stop"])},[s(t.$slots,"title",{},()=>[f.icon?(r(),n("img",{key:0,src:f.icon,width:"24",height:"24"},null,8,Es)):b("",!0),f.title?(r(),n("span",ks,C(f.title),1)):b("",!0)],!0),w("div",zs,[e.hasMin?(r(),m(_(V),{key:0,icon:_(Ss),onClick:i(H,["stop"])},null,8,["icon"])):b("",!0),e.hasMax?(r(),m(_(V),{key:1,icon:Y.value,onClick:i(q,["stop"])},null,8,["icon"])):b("",!0),e.hasClose?(r(),m(_(V),{key:2,icon:_(bs),onClick:i(X,["stop"])},null,8,["icon"])):b("",!0)])],544),w("div",Ms,[s(t.$slots,"default",{},void 0,!0)]),w("div",As,[w("div",{class:"cursor-nw-resize",ref:D.refs.northWest},null,512),w("div",{class:"cursor-n-resize",ref:D.refs.north},null,512),w("div",{class:"cursor-ne-resize",ref:D.refs.northEast},null,512),w("div",{class:"cursor-w-resize",ref:D.refs.west},null,512),a[1]||(a[1]=w("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),w("div",{class:"cursor-e-resize",ref:D.refs.east},null,512),w("div",{class:"cursor-sw-resize",ref:D.refs.southWest},null,512),w("div",{class:"cursor-s-resize",ref:D.refs.south},null,512),w("div",{class:"cursor-se-resize",ref:D.refs.southEast},null,512)])],6)),[[E,O.value]]):b("",!0)]),_:3}))}}),[["__scopeId","data-v-d7d4a2b7"]]),Ls={class:"adivider"},Rs={class:"contentText"},_s=fe(e({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){B(e=>({"1dc34ba7":i.value}));const t=e,i=l(()=>Or(t.color)||Br(t.color)?t.color:"#888"),a=l(()=>"left"!=t.align?"flex:1;":"width:40px;"),c=l(()=>"right"!=t.align?"flex:1;":"width:40px;");return(e,t)=>(r(),n("div",Ls,[w("div",{class:"line",style:o(a.value)},null,4),w("div",Rs,[s(e.$slots,"default",{},void 0,!0)]),w("div",{class:"line",style:o(c.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),Ts={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(e),i),r);let s=[t,t+1],a=this.panes[s[0]]||null,c=this.panes[s[1]]||null;const l=a.max<100&&o>=a.max+n.prevPanesSize,u=c.max<100&&o<=100-(c.max+this.sumNextPanesSize(t+1));if(l||u)l?(a.size=a.max,c.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,o);if(!e)return;({sums:n,panesToResize:s}=e),a=this.panes[s[0]]||null,c=this.panes[s[1]]||null}null!==a&&(a.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),null!==c&&(c.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((t,i)=>{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),void 0===r[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((t,i)=>{i>n&&i<r[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),void 0===r[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((t,r)=>{r<this.panesCount-1&&r>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(e,t,n=!1){const r=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=e=>this.onMouseDown(e,r),"undefined"!=typeof window&&"ontouchstart"in window&&(i.ontouchstart=e=>this.onMouseDown(e,r)),i.onclick=e=>this.onSplitterClick(e,r+1)),this.dblClickSplitter&&(i.ondblclick=e=>this.onSplitterDblClick(e,r+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let t=0;e.forEach(e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([e,t])=>n[e]=t)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((e,t)=>e.index=t),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((e,t)=>e.index=t),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some(e=>null!==e.givenSize||e.min||e.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,null!==i.size&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let i=100;e>.1&&(this.panes.forEach(t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-r),t.max),t.min)),i-=t.size}),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e}={}){let t=100/this.panesCount,n=0;const r=[],i=[];e&&null!==e.givenSize&&(t=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(e=>{n-=e.size,e.size>=e.max&&r.push(e.id),e.size<=e.min&&i.push(e.id)}),Math.abs(n)<.1||(this.panes.forEach(o=>{e&&null!==e.givenSize&&e.id===o.id||(o.size=Math.max(Math.min(t,o.max),o.min)),n-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&i.push(o.id)}),n>.1&&this.readjustSizes(n,r,i))},readjustSizes(e,t,n){let r;r=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(i=>{if(e>0&&!t.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return N("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Ds={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};const Ps=fe(Ds,[["render",function(e,t,i,a,c,l){return r(),n("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>l.onPaneClick(t,e._.uid)),style:o(e.style)},[s(e.$slots,"default")],4)}]]);function Bs(e){const t=new q(new H);t.serialize(e);return t.stream.toString()}function Ns(e){if(null==e||""===e)return e;return new X(new H(e)).deserialize()}class $s{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new $s;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new H,r=new q(n,this.simple,this.utc),i=t;this.simple;var o=0;for(var s in i)o++;o>0&&(n.writeByte(72),r.serialize(i),r.reset()),e instanceof Error?(n.writeByte(69),r.serialize(this.debug&&e.stack?e.stack:e.message)):(n.writeByte(82),r.serialize(e)),n.writeByte(122);const a=n.takeBytes();return this.textDecoder.decode(a)}decodeRequest(e,t={}){const n=this.textEncoder.encode(e);if(0===n.length)return["~",[]];var r=new H(n),i=new X(r,!1);i.longType=this.longType,i.dictType=this.dictType;var o=r.readByte();if(console.log("tag",o),72===o){var s=i.deserialize(this.nullType);for(var a in s)t[a]=s[a];i.reset(),o=r.readByte()}switch(o){case 67:return[i.deserialize(String),this.decodeArguments(i)];case 122:return["~",[]];default:throw new Error("Invalid request:\r\n"+r.toString())}}decodeArguments(e){var t=e.stream;let n=[];if(97===t.readByte()){e.reset();var r=Y.readCount(t);const o=new Array(r).fill(this.nullType);n=new Array(r),e.addReference(n);for(var i=0;i<r;++i)n[i]=e.deserialize(o[i]);t.readByte()}return n}encodeRequest(e,t,n={}){var r=new H,i=new q(r,this.simple,this.utc),o=n;this.simple&&(o.simple=!0);var s=0;for(var a in o)s++;s>0&&(r.writeByte(72),i.serialize(o),i.reset()),r.writeByte(67),i.serialize(e),t.length>0&&(i.reset(),i.serialize(t)),r.writeByte(122);const c=r.takeBytes();return this.textDecoder.decode(c)}decodeResponse(e,t={}){const n=this.textEncoder.encode(e);var r=new H(n),i=new X(r,!1);i.longType=this.longType,i.dictType=this.dictType;var o=r.readByte();if(72===o){var s=i.deserialize();for(var a in s)t[a]=s[a];i.reset(),o=r.readByte()}switch(o){case 82:return t.simple&&(i.simple=!0),console.log(o,"9999999999"),i.deserialize();case 69:throw new Error(i.deserialize(String));case 122:return;default:throw new Error("Invalid response:\r\n"+r.toString())}}}const Os=new Map,Us=new Map;let Ws;const js={getDefaultClient(){if(Ws||(Ws=new Ti(SysConfig.ServiceURL.DefaultHproseAPI)),!Ws)throw Error("HproseProxy对象为空");return Ws},registerHprose(e,t){const n=Us.get(e);if(!n){const n=new Ti(t);Os.set(e,n)}return n},getHprose:e=>Us?.get(e),getProxyHprose:e=>Os.get(e),unregisterHprose(e){Os.get(e)&&(Us.delete(e),Os.delete(e))}},Fs=5e3,Hs=36e5,qs={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},Xs="access_token",Ys=Ar?.Config.ServiceURL.LoginAuthURL;function Gs(){const e=ti();e&&ri(qs.RefreshToken,Ys,{refreshToken:e}).then(e=>{Zs(e.data)})}function Vs(){const e=Jr.getJsonObject(Xs);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=Fs?Gs():setTimeout(Gs,n-Fs))}function Zs(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=Hs?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=Qr();t?(t.token=e.accessToken.tokenContent,t.expire=e.accessToken.expires,t.refresh=e.refreshToken.tokenContent):t={token:e.accessToken.tokenContent,expire:e.accessToken.expires,refresh:e.refreshToken.tokenContent},Jr.set(Xs,t,n/1e3),Vs()}else Jr.remove(Xs)}const Ks="Wm314243",Js=Ar?.Config.ServiceURL.LoginAuthURL;async function Qs(e){const t={username:e.username,pwd:gr.encryptToString(e.pwd,Ks)},n=await ri(qs.Login,Js,t),r=n?.data;return r&&(Zs(r.doubletoken),Oi(!1)),r}function ea(e){const t={oldpwd:gr.encryptToString(e.oldpwd,Ks),newpwd:gr.encryptToString(e.newpwd,Ks)};return ri(qs.ChangeMyPwd,Js,t)}function ta(e){return gr.encryptToString(e,Ks)}function na(){const e=Qr();e&&(si(qs.Logout,Js,{token:e.token,reftoken:e.refresh}),ei())}function ra(e){return ri(qs.CheckToken,Js,{token:e})}var ia,oa;(oa=ia||(ia={}))[oa.Widget=0]="Widget",oa[oa.Route=1]="Route",oa[oa.URL=2]="URL",oa[oa.Action=3]="Action";const sa="ROLE_SYSTEM_RIGHT",aa=new nt("",sessionStorage);function ca(){return aa.get(sa)}function la(e){aa.set(sa,e)}function ua(){aa.remove(sa)}function da(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(da(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function ha(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&ha(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function fa(e,t,n="name"){e&&t&&e.forEach(e=>{const r=t.find(t=>t[n]===e[n]);r&&(e.children?r.children&&fa(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))})}function pa(e,t,n,r="name"){const i=e[n],o=t[n];i?o&&fa(i,o,r):o&&(e[n]=o)}function ma(e){if(e&&e.length>0){const t=e.length;let n,r=!1;if(t>0){r=Le(e[0]);const i=r?e[0]:JSON.parse(e[0]);if(t>1)for(let t=1;t<e.length;t++){const n=e[t],o=r?n:JSON.parse(n);pa(i,o,"routes","name"),pa(i,o,"widgetMenu","name"),pa(i,o,"widgets","id"),pa(i,o,"functions","id")}n=i}return n&&(da(n.routes),da(n.widgetMenu),da(n.widgets),da(n.functions)),n}}const ga=[],va=[],ya=[];function wa(){return ca()}async function ba(e,t=!1){ua();const n=qs.GetSystemRights,r=Ar?.Config.ServiceURL.LoginAuthURL,i=await ri(n,r,{systemid:e});if(!i||!i.data)return void Ar.Message?.warn("无法获取功能授权列表!");const o=i.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return la(e),e}{const e=ma(o);return la(e),e}}}function Sa(e,t){const n={...e};return n.meta||(n.meta={}),null!=t.index&&(n.meta.index=t.index),null!=t.title&&(n.meta.title=t.title),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.path===t.path);if(r){const e=Sa(r,t);e&&n.children?.push(e)}})),n}function xa(e,t=2){if(0===t)return e;const n=wa();return n&&n.routes?(ya.length>0||e.forEach(e=>{const t=n.routes?.find(t=>t.name===e.name);if(t){const n=Sa(e,t);n&&ya.push(n)}}),ya):void 0}function Ca(e,t){const n={...e};return null!=t.index&&(n.index=t.index),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const r=e.children?.find(e=>e.name===t.name);if(r){const e=Ca(r,t);e&&n.children?.push(e)}})),n}function Ea(e,t=2){if(0===t)return e;const n=wa();return n&&n.widgetMenu?(va.length>0||e.forEach(e=>{const t=n.widgetMenu?.find(t=>t.name===e.name);if(t){const n=Ca(e,t);n&&va.push(n)}}),va):void 0}function ka(e,t=2){if(0===t)return e;const n=wa();return n&&n.widgets?(ga.length>0||e?.forEach(e=>{const t=n.widgets?.find(t=>t.id===e.id);t&&ga.push(e)}),ga):void 0}function za(e,t=2){if(0===t&&(Ar.RightWidgetConfigMap=e,Ar.RightWidgetConfigMap&&Ar.RightWidgetConfigMap.size>0))return Ar.RightWidgetConfigMap;const n=wa();if(n&&n.widgets){const t=new Map;if(n.widgets.forEach(e=>{const n=e.layoutID;if(n){let r;t.has(n)&&(r=t.get(n)),r||(r=new Array,t.set(n,r)),r&&r.push(e)}}),n.widgets.length=0,t.size>0){const n=new Map;for(const[r,i]of t){const t=e.get(r);if(t){const e=new Array;t.forEach(t=>{i.findIndex(e=>e.id===t.id)>=0&&e.push(t)}),e.length>0&&n.set(r,e),t.length=0}}return t.clear(),Ar.RightWidgetConfigMap=n,n}return}}function Ma(e,t=2){if(0===t)return e;const n=wa();return n?n.functions:void 0}const Aa={mounted(e,t){const n=t.value,r=n&&n.container&&document.querySelector(n.container)||document.querySelector("#map3dContainer")||document.body,i=n&&n.selector&&e.querySelector(n.selector)||e.querySelector(".drag-el")||e;i!==e&&i.classList.add("ls-draggable"),i.onmousedown=function(t){e.style.transition="none";const n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,o=r.offsetWidth,s=r.offsetHeight,a=e.offsetWidth,c=e.offsetHeight;"100"!==e.style.zIndex&&(e.style.zIndex=100),r.onmousemove=function(t){let r=t.clientX-n,l=t.clientY-i;r<0&&(r=0),l<0&&(l=0),r>o-a&&(r=o-a),l>s-c&&(l=s-c),e.style.left=r+"px",e.style.top=l+"px"},r.onmouseup=function(t){r.onmousemove=r.onmouseup=null,e.style.transition="all 0.3s"}}}};function Ia(e){e.directive("drag",Aa)}const La={beforeMount(e,t){let n=null,r=0;const i=()=>t?.value(),o=()=>{Date.now()-r<100&&i(),n&&clearInterval(n),n=null};Ri.on(e,"mousedown",e=>{0===e.button&&(r=Date.now(),Ri.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(i,100))})}};function Ra(e){e.directive("repeatClick",La)}const _a={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const r=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?document.documentElement.scrollHeight>document.documentElement.clientHeight?window.innerHeight:document.documentElement.clientHeight:Math.min(document.documentElement.clientHeight,window.innerHeight)},i=function(e,t){if(function(e){const t=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+r(),i=function(e){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),o=i+e.clientHeight;return i<n&&o>=t}(e)){e.style.visibility="visible";for(const n in t)e.style[n]=t[n];"none"!=e.style["animation-name"]&&(e.style["animation-duration"]||(e.style["animation-duration"]="1s")),e.parentNode.removeEventListener("scroll",s)}};let o=Date.now();const s=function(){Date.now()-o>=100&&(i(e,n),o=Date.now())};setTimeout(function(){i(e,n)},1),e.parentNode.addEventListener("scroll",s)}};function Ta(e){e.directive("wow",_a)}
|
|
7
|
+
*/var ko=(Eo||(Eo=1,Co.exports=function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){if(!a&&xo)return xo(s);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return r(n||e)},c,c.exports,e,t,n,i)}return n[s].exports}for(var o=xo,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){(function(e){var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,s=new r(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}i=!1}function h(e){1!==c.push(e)||i||n()}t.exports=h}).call(this,void 0!==me?me:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){var i=e(1);function r(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){i(function(){var i;try{i=t(n)}catch(t){return o.reject(e,t)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)})}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}function s(){t(r,i)}var a=p(s);"error"===a.status&&i(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}function g(e){return e instanceof this?e:o.resolve(new this(r),e)}function m(e){var t=new this(r);return o.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(e[l],l);return c;function u(e,r){function l(e){s[r]=e,++a!==n||i||(i=!0,o.resolve(c,s))}t.resolve(e).then(l,function(e){i||(i=!0,o.reject(c,e))})}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var s=-1,a=new this(r);++s<n;)l(e[s]);return a;function l(e){t.resolve(e).then(function(e){i||(i=!0,o.resolve(a,e))},function(e){i||(i=!0,o.reject(a,e))})}}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(r);return this.state!==l?h(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=a,e.outcome=t;for(var r=-1,s=e.queue.length;++r<s;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},c.resolve=g,c.reject=m,c.all=v,c.race=y},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==me?me:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var s=o();function a(){try{if(!s||!s.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}function l(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(r){if("TypeError"!==r.name)throw r;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),i=0;i<e.length;i+=1)n.append(e[i]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var c=Promise;function u(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function h(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function d(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function f(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",g=void 0,m={},v=Object.prototype.toString,y="readonly",w="readwrite";function b(e){for(var t=e.length,n=new ArrayBuffer(t),i=new Uint8Array(n),r=0;r<t;r++)i[r]=e.charCodeAt(r);return n}function S(e){return new c(function(t){var n=e.transaction(p,w),i=l([""]);n.objectStore(p).put(i,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}function x(e){return"boolean"==typeof g?c.resolve(g):S(e).then(function(e){return g=e})}function E(e){var t=m[e.name],n={};n.promise=new c(function(e,t){n.resolve=e,n.reject=t}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function C(e){var t=m[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function k(e,t){var n=m[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function z(e,t){return new c(function(n,i){if(m[e.name]=m[e.name]||P(),e.db){if(!t)return n(e.db);E(e),e.db.close()}var r=[e.name];t&&r.push(e.version);var o=s.open.apply(s,r);t&&(o.onupgradeneeded=function(t){var n=o.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(p)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),o.onerror=function(e){e.preventDefault(),i(o.error)},o.onsuccess=function(){var t=o.result;t.onversionchange=function(e){e.target.close()},n(t),C(e)}})}function T(e){return z(e,!1)}function A(e){return z(e,!0)}function L(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),i=e.version<e.db.version,r=e.version>e.db.version;if(i&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),r||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function M(e){return new c(function(t,n){var i=new FileReader;i.onerror=n,i.onloadend=function(n){var i=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:i,type:e.type})},i.readAsBinaryString(e)})}function _(e){return l([b(atob(e.data))],{type:e.type})}function I(e){return e&&e.__local_forage_encoded_blob}function R(e){var t=this,n=t._initReady().then(function(){var e=m[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return h(n,e,e),n}function D(e){E(e);for(var t=m[e.name],n=t.forages,i=0;i<n.length;i++){var r=n[i];r._dbInfo.db&&(r._dbInfo.db.close(),r._dbInfo.db=null)}return e.db=null,T(e).then(function(t){return e.db=t,L(e)?A(e):t}).then(function(i){e.db=t.db=i;for(var r=0;r<n.length;r++)n[r]._dbInfo.db=i}).catch(function(t){throw k(e,t),t})}function B(e,t,n,i){void 0===i&&(i=1);try{var r=e.db.transaction(e.storeName,t);n(null,r)}catch(r){if(i>0&&(!e.db||"InvalidStateError"===r.name||"NotFoundError"===r.name))return c.resolve().then(function(){if(!e.db||"NotFoundError"===r.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),A(e)}).then(function(){return D(e).then(function(){B(e,t,n,i-1)})}).catch(n);n(r)}}function P(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(e){var t=this,n={db:null};if(e)for(var i in e)n[i]=e[i];var r=m[n.name];r||(r=P(),m[n.name]=r),r.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=R);var o=[];function s(){return c.resolve()}for(var a=0;a<r.forages.length;a++){var l=r.forages[a];l!==t&&o.push(l._initReady().catch(s))}var u=r.forages.slice(0);return c.all(o).then(function(){return n.db=r.db,T(n)}).then(function(e){return n.db=e,L(n,t._defaultConfig.version)?A(n):e}).then(function(e){n.db=r.db=e,t._dbInfo=n;for(var i=0;i<u.length;i++){var o=u[i];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}})}function O(e,t){var n=this;e=d(e);var i=new c(function(t,i){n.ready().then(function(){B(n._dbInfo,y,function(r,o){if(r)return i(r);try{var s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),I(e)&&(e=_(e)),t(e)},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return u(i,t),i}function N(e,t){var n=this,i=new c(function(t,i){n.ready().then(function(){B(n._dbInfo,y,function(r,o){if(r)return i(r);try{var s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var i=n.value;I(i)&&(i=_(i));var r=e(i,n.key,a++);void 0!==r?t(r):n.continue()}else t()},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return u(i,t),i}function $(e,t,n){var i=this;e=d(e);var r=new c(function(n,r){var o;i.ready().then(function(){return o=i._dbInfo,"[object Blob]"===v.call(t)?x(o.db).then(function(e){return e?t:M(t)}):t}).then(function(t){B(i._dbInfo,w,function(o,s){if(o)return r(o);try{var a=s.objectStore(i._dbInfo.storeName);null===t&&(t=void 0);var l=a.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){var e=l.error?l.error:l.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return u(r,n),r}function W(e,t){var n=this;e=d(e);var i=new c(function(t,i){n.ready().then(function(){B(n._dbInfo,w,function(r,o){if(r)return i(r);try{var s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){i(s.error)},o.onabort=function(){var e=s.error?s.error:s.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return u(i,t),i}function U(e){var t=this,n=new c(function(e,n){t.ready().then(function(){B(t._dbInfo,w,function(i,r){if(i)return n(i);try{var o=r.objectStore(t._dbInfo.storeName).clear();r.oncomplete=function(){e()},r.onabort=r.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function j(e){var t=this,n=new c(function(e,n){t.ready().then(function(){B(t._dbInfo,y,function(i,r){if(i)return n(i);try{var o=r.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function H(e,t){var n=this,i=new c(function(t,i){e<0?t(null):n.ready().then(function(){B(n._dbInfo,y,function(r,o){if(r)return i(r);try{var s=o.objectStore(n._dbInfo.storeName),a=!1,l=s.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},l.onerror=function(){i(l.error)}}catch(e){i(e)}})}).catch(i)});return u(i,t),i}function q(e){var t=this,n=new c(function(e,n){t.ready().then(function(){B(t._dbInfo,y,function(i,r){if(i)return n(i);try{var o=r.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return u(n,e),n}function X(e,t){t=f.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var i,r=this;if(e.name){var o=e.name===n.name&&r._dbInfo.db?c.resolve(r._dbInfo.db):T(e).then(function(t){var n=m[e.name],i=n.forages;n.db=t;for(var r=0;r<i.length;r++)i[r]._dbInfo.db=t;return t});i=e.storeName?o.then(function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;E(e);var i=m[e.name],r=i.forages;t.close();for(var o=0;o<r.length;o++){var a=r[o];a._dbInfo.db=null,a._dbInfo.version=n}var l=new c(function(t,i){var r=s.open(e.name,n);r.onerror=function(e){r.result.close(),i(e)},r.onupgradeneeded=function(){r.result.deleteObjectStore(e.storeName)},r.onsuccess=function(){var e=r.result;e.close(),t(e)}});return l.then(function(e){i.db=e;for(var t=0;t<r.length;t++){var n=r[t];n._dbInfo.db=e,C(n._dbInfo)}}).catch(function(t){throw(k(e,t)||c.resolve()).catch(function(){}),t})}}):o.then(function(t){E(e);var n=m[e.name],i=n.forages;t.close();for(var r=0;r<i.length;r++)i[r]._dbInfo.db=null;var o=new c(function(t,n){var i=s.deleteDatabase(e.name);i.onerror=function(){var e=i.result;e&&e.close(),n(i.error)},i.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},i.onsuccess=function(){var e=i.result;e&&e.close(),t(e)}});return o.then(function(e){n.db=e;for(var t=0;t<i.length;t++)C(i[t]._dbInfo)}).catch(function(t){throw(k(e,t)||c.resolve()).catch(function(){}),t})})}else i=c.reject("Invalid arguments");return u(i,t),i}var G={_driver:"asyncStorage",_initStorage:F,_support:a(),iterate:N,getItem:O,setItem:$,removeItem:W,clear:U,length:j,key:H,keys:q,dropInstance:X};function Y(){return"function"==typeof openDatabase}var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z="~~local_forage_type~",K=/^~~local_forage_type~([^~]+)~/,J="__lfsc__:",Q=J.length,ee="arbf",te="blob",ne="si08",ie="ui08",re="uic8",oe="si16",se="si32",ae="ur16",le="ui32",ce="fl32",ue="fl64",he=Q+ee.length,de=Object.prototype.toString;function fe(e){var t,n,i,r,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=V.indexOf(e[t]),i=V.indexOf(e[t+1]),r=V.indexOf(e[t+2]),o=V.indexOf(e[t+3]),u[l++]=n<<2|i>>4,u[l++]=(15&i)<<4|r>>2,u[l++]=(3&r)<<6|63&o;return c}function pe(e){var t,n=new Uint8Array(e),i="";for(t=0;t<n.length;t+=3)i+=V[n[t]>>2],i+=V[(3&n[t])<<4|n[t+1]>>4],i+=V[(15&n[t+1])<<2|n[t+2]>>6],i+=V[63&n[t+2]];return n.length%3==2?i=i.substring(0,i.length-1)+"=":n.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}function ge(e,t){var n="";if(e&&(n=de.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var i,r=J;e instanceof ArrayBuffer?(i=e,r+=ee):(i=e.buffer,"[object Int8Array]"===n?r+=ne:"[object Uint8Array]"===n?r+=ie:"[object Uint8ClampedArray]"===n?r+=re:"[object Int16Array]"===n?r+=oe:"[object Uint16Array]"===n?r+=ae:"[object Int32Array]"===n?r+=se:"[object Uint32Array]"===n?r+=le:"[object Float32Array]"===n?r+=ce:"[object Float64Array]"===n?r+=ue:t(new Error("Failed to get type for BinaryArray"))),t(r+pe(i))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n=Z+e.type+"~"+pe(this.result);t(J+te+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}}function me(e){if(e.substring(0,Q)!==J)return JSON.parse(e);var t,n=e.substring(he),i=e.substring(Q,he);if(i===te&&K.test(n)){var r=n.match(K);t=r[1],n=n.substring(r[0].length)}var o=fe(n);switch(i){case ee:return o;case te:return l([o],{type:t});case ne:return new Int8Array(o);case ie:return new Uint8Array(o);case re:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case ae:return new Uint16Array(o);case se:return new Int32Array(o);case le:return new Uint32Array(o);case ce:return new Float32Array(o);case ue:return new Float64Array(o);default:throw new Error("Unkown type: "+i)}}var ve={serialize:ge,deserialize:me,stringToBuffer:fe,bufferToString:pe};function ye(e,t,n,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,i)}function we(e){var t=this,n={db:null};if(e)for(var i in e)n[i]="string"!=typeof e[i]?e[i].toString():e[i];var r=new c(function(e,i){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return i(e)}n.db.transaction(function(r){ye(r,n,function(){t._dbInfo=n,e()},function(e,t){i(t)})},i)});return n.serializer=ve,r}function be(e,t,n,i,r,o){e.executeSql(n,i,r,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,a){a.rows.length?o(e,s):ye(e,t,function(){e.executeSql(n,i,r,o)},o)},o):o(e,s)},o)}function Se(e,t){var n=this;e=d(e);var i=new c(function(t,i){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){be(n,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var i=n.rows.length?n.rows.item(0).value:null;i&&(i=r.serializer.deserialize(i)),t(i)},function(e,t){i(t)})})}).catch(i)});return u(i,t),i}function xe(e,t){var n=this,i=new c(function(t,i){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){be(n,r,"SELECT * FROM "+r.storeName,[],function(n,i){for(var o=i.rows,s=o.length,a=0;a<s;a++){var l=o.item(a),c=l.value;if(c&&(c=r.serializer.deserialize(c)),void 0!==(c=e(c,l.key,a+1)))return void t(c)}t()},function(e,t){i(t)})})}).catch(i)});return u(i,t),i}function Ee(e,t,n,i){var r=this;e=d(e);var o=new c(function(o,s){r.ready().then(function(){void 0===t&&(t=null);var a=t,l=r._dbInfo;l.serializer.serialize(t,function(t,c){c?s(c):l.db.transaction(function(n){be(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){o(a)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(i>0)return void o(Ee.apply(r,[e,a,n,i-1]));s(t)}})})}).catch(s)});return u(o,n),o}function Ce(e,t,n){return Ee.apply(this,[e,t,n,1])}function ke(e,t){var n=this;e=d(e);var i=new c(function(t,i){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){be(n,r,"DELETE FROM "+r.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){i(t)})})}).catch(i)});return u(i,t),i}function ze(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var i=t._dbInfo;i.db.transaction(function(t){be(t,i,"DELETE FROM "+i.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Te(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var i=t._dbInfo;i.db.transaction(function(t){be(t,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(t,n){var i=n.rows.item(0).c;e(i)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Ae(e,t){var n=this,i=new c(function(t,i){n.ready().then(function(){var r=n._dbInfo;r.db.transaction(function(n){be(n,r,"SELECT key FROM "+r.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var i=n.rows.length?n.rows.item(0).key:null;t(i)},function(e,t){i(t)})})}).catch(i)});return u(i,t),i}function Le(e){var t=this,n=new c(function(e,n){t.ready().then(function(){var i=t._dbInfo;i.db.transaction(function(t){be(t,i,"SELECT key FROM "+i.storeName,[],function(t,n){for(var i=[],r=0;r<n.rows.length;r++)i.push(n.rows.item(r).key);e(i)},function(e,t){n(t)})})}).catch(n)});return u(n,e),n}function Me(e){return new c(function(t,n){e.transaction(function(i){i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var r=[],o=0;o<i.rows.length;o++)r.push(i.rows.item(o).name);t({db:e,storeNames:r})},function(e,t){n(t)})},function(e){n(e)})})}function _e(e,t){t=f.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var i,r=this;return i=e.name?new c(function(t){var i;i=e.name===n.name?r._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:i,storeNames:[e.storeName]}):t(Me(i))}).then(function(e){return new c(function(t,n){e.db.transaction(function(i){function r(e){return new c(function(t,n){i.executeSql("DROP TABLE IF EXISTS "+e,[],function(){t()},function(e,t){n(t)})})}for(var o=[],s=0,a=e.storeNames.length;s<a;s++)o.push(r(e.storeNames[s]));c.all(o).then(function(){t()}).catch(function(e){n(e)})},function(e){n(e)})})}):c.reject("Invalid arguments"),u(i,t),i}var Ie={_driver:"webSQLStorage",_initStorage:we,_support:Y(),iterate:xe,getItem:Se,setItem:Ce,removeItem:ke,clear:ze,length:Te,key:Ae,keys:Le,dropInstance:_e};function Re(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function De(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Be(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}function Pe(){return!Be()||localStorage.length>0}function Fe(e){var t=this,n={};if(e)for(var i in e)n[i]=e[i];return n.keyPrefix=De(e,t._defaultConfig),Pe()?(t._dbInfo=n,n.serializer=ve,c.resolve()):c.reject()}function Oe(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);0===i.indexOf(e)&&localStorage.removeItem(i)}});return u(n,e),n}function Ne(e,t){var n=this;e=d(e);var i=n.ready().then(function(){var t=n._dbInfo,i=localStorage.getItem(t.keyPrefix+e);return i&&(i=t.serializer.deserialize(i)),i});return u(i,t),i}function $e(e,t){var n=this,i=n.ready().then(function(){for(var t=n._dbInfo,i=t.keyPrefix,r=i.length,o=localStorage.length,s=1,a=0;a<o;a++){var l=localStorage.key(a);if(0===l.indexOf(i)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(r),s++)))return c}}});return u(i,t),i}function We(e,t){var n=this,i=n.ready().then(function(){var t,i=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(i.keyPrefix.length)),t});return u(i,t),i}function Ue(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,i=[],r=0;r<n;r++){var o=localStorage.key(r);0===o.indexOf(e.keyPrefix)&&i.push(o.substring(e.keyPrefix.length))}return i});return u(n,e),n}function je(e){var t=this.keys().then(function(e){return e.length});return u(t,e),t}function He(e,t){var n=this;e=d(e);var i=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return u(i,t),i}function qe(e,t,n){var i=this;e=d(e);var r=i.ready().then(function(){void 0===t&&(t=null);var n=t;return new c(function(r,o){var s=i._dbInfo;s.serializer.serialize(t,function(t,i){if(i)o(i);else try{localStorage.setItem(s.keyPrefix+e,t),r(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}})})});return u(r,n),r}function Xe(e,t){if(t=f.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var i,r=this;return i=e.name?new c(function(t){e.storeName?t(De(e,r._defaultConfig)):t(e.name+"/")}).then(function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}}):c.reject("Invalid arguments"),u(i,t),i}var Ge={_driver:"localStorageWrapper",_initStorage:Fe,_support:Re(),iterate:$e,getItem:Ne,setItem:qe,removeItem:He,clear:Oe,length:je,key:We,keys:Ue,dropInstance:Xe},Ye=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ve=function(e,t){for(var n=e.length,i=0;i<n;){if(Ye(e[i],t))return!0;i++}return!1},Ze=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Ke={},Je={},Qe={INDEXEDDB:G,WEBSQL:Ie,LOCALSTORAGE:Ge},et=[Qe.INDEXEDDB._driver,Qe.WEBSQL._driver,Qe.LOCALSTORAGE._driver],tt=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),it={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function rt(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function ot(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Ze(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var st=function(){function e(t){for(var n in r(this,e),Qe)if(Qe.hasOwnProperty(n)){var i=Qe[n],o=i._driver;this[n]=o,Ke[o]||this.defineDriver(i)}this._defaultConfig=ot({},it),this._config=ot({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":i(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var i=new c(function(t,n){try{var i=e._driver,r=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(r);for(var o=nt.concat("_initStorage"),s=0,a=o.length;s<a;s++){var l=o[s];if((!Ve(tt,l)||e[l])&&"function"!=typeof e[l])return void n(r)}var h=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=c.reject(t);return u(n,arguments[arguments.length-1]),n}},n=0,i=tt.length;n<i;n++){var r=tt[n];e[r]||(e[r]=t(r))}};h();var d=function(n){Ke[i]&&console.info("Redefining LocalForage driver: "+i),Ke[i]=e,Je[i]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,n):d(!!e._support):d(!0)}catch(e){n(e)}});return h(i,t,n),i},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var i=Ke[e]?c.resolve(Ke[e]):c.reject(new Error("Driver not found."));return h(i,t,n),i},e.prototype.getSerializer=function(e){var t=c.resolve(ve);return h(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return h(n,e,e),n},e.prototype.setDriver=function(e,t,n){var i=this;Ze(e)||(e=[e]);var r=this._getSupportedDrivers(e);function o(){i._config.driver=i.driver()}function s(e){return i._extend(e),o(),i._ready=i._initStorage(i._config),i._ready}function a(e){return function(){var t=0;function n(){for(;t<e.length;){var r=e[t];return t++,i._dbInfo=null,i._ready=null,i.getDriver(r).then(s).catch(n)}o();var a=new Error("No available storage method found.");return i._driverSet=c.reject(a),i._driverSet}return n()}}var l=null!==this._driverSet?this._driverSet.catch(function(){return c.resolve()}):c.resolve();return this._driverSet=l.then(function(){var e=r[0];return i._dbInfo=null,i._ready=null,i.getDriver(e).then(function(e){i._driver=e._driver,o(),i._wrapLibraryMethodsWithReady(),i._initDriver=a(r)})}).catch(function(){o();var e=new Error("No available storage method found.");return i._driverSet=c.reject(e),i._driverSet}),h(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Je[e]},e.prototype._extend=function(e){ot(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];this.supports(r)&&t.push(r)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)rt(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),at=new st;t.exports=at},{3:3}]},{},[4])(4)),Co.exports);const zo=ve(ko);var To,Ao={exports:{}};To=()=>{const e=globalThis;e.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,n=!1;const i=e.WebStreamsPolyfill||{};let r=/constructor/i.test(e.HTMLElement)||!!e.safari||!!e.WebKitPoint;const o={createWriteStream:function(e,i,a){let l={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},c=0,u=null,h=null;if(Number.isFinite(i)?([a,i]=[i,a],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),l.size=a,l.writableStrategy=i):i&&i.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),l.size=a,l.writableStrategy=i):l=i||{},!r){t||(t=s(o.mitm)),u=new MessageChannel,e=encodeURIComponent(e.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const i={transferringReadable:n,pathname:l.pathname||Math.random().toString().slice(-6)+"/"+e,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+e}};l.size&&(i.headers["Content-Length"]=l.size);const r=[i,"*",[u.port2]];if(n){const e=void 0;h=new o.TransformStream(e,l.writableStrategy,l.readableStrategy);const t=h.readable;u.port1.postMessage({readableStream:t},[t])}u.port1.onmessage=e=>{e.data.download?(t.isPopup&&(t.remove(),t=null,s(o.mitm)),s(e.data.download)):e.data.abort&&(d=[],u.port1.postMessage("abort"),u.port1.onmessage=null,u.port1.close(),u.port2.close(),u=null)},t.loaded?t.postMessage(...r):t.addEventListener("load",()=>{t.postMessage(...r)},{once:!0})}let d=[];return!r&&h&&h.writable||new o.WritableStream({write(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");r?d.push(e):(u.port1.postMessage(e),c+=e.length)},close(){if(r){const t=new Blob(d,{type:"application/octet-stream; charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.click()}else u.port1.postMessage("end")},abort(){d=[],u.port1.postMessage("abort"),u.port1.onmessage=null,u.port1.close(),u.port2.close(),u=null}},l.writableStrategy)},WritableStream:e.WritableStream||i.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"./mitm.html"};function s(e){if(!e)throw new Error("meh");const t=document.createElement("iframe");return t.hidden=!0,t.src=e,t.loaded=!1,t.name="iframe",t.isIframe=!0,t.postMessage=(...e)=>t.contentWindow.postMessage(...e),t.addEventListener("load",()=>{t.loaded=!0},{once:!0}),document.body.appendChild(t),t}try{new Response(new ReadableStream),"serviceWorker"in navigator||(r=!0)}catch(e){r=!0}return(e=>{try{e()}catch(e){}})(()=>{const{readable:e}=new TransformStream,t=new MessageChannel;t.port1.postMessage(e,[e]),t.port1.close(),t.port2.close(),n=!0,Object.defineProperty(o,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})}),o},void 0!==Ao?Ao.exports=To():"function"==typeof define&&"object"==typeof define.amd?define(To):(void 0).streamSaver=To();const Lo=(null==Ao.exports?{}:Ao.exports).default||Ao.exports;class Mo{fileID;downloadURL;ChunkUnitM=1048576;chunkByteSize;totalChunks=1;currentDB;keys;fileMetaData=null;finishNum=0;eventTarget;cancelSource;isStarting=!1;fileName;cacheSize=6;requestTimeout=6e4;constructor(e,t,n=3,i=6,r=6e4){this.fileID=e,this.downloadURL=t,this.chunkByteSize=n*this.ChunkUnitM,this.eventTarget=On(),this.initIndexDB(),i>=3&&(this.cacheSize=i),r>this.requestTimeout&&(this.requestTimeout=r)}on(e,t){this.eventTarget.on(e,t)}dispatch(e,t){this.eventTarget.emit(e,t)}dispatchError(e){this.eventTarget.emit("error",e)}dispatchInfo(e){this.eventTarget.emit("info",e)}async queryDownloadFileMeta(e,t="",n){this.dispatchInfo("开始获取文件信息");const i=await Rr(t,e,n);let r=null;return i&&200===i.status&&(r=i.data),r}async getIFileMeta(){if(null===this.fileMetaData){const e=await(this.currentDB?.getItem("fileinfo"));this.fileMetaData=e||null}return this.fileMetaData}initIndexDB(){this.currentDB=zo.createInstance({name:this.fileID,driver:zo.INDEXEDDB})}async init(e){if(this.finishNum=0,e){const t="fileinfo";this.fileMetaData={id:e.id,name:e.name,length:e.length,downloadID:e.downloadID,chunkSize:this.chunkByteSize},this.fileName=e.name,this.currentDB?.setItem(t,this.fileMetaData)}if(null!=this.fileMetaData){const e=this.fileMetaData.chunkSize;null!=e&&e>0&&(this.chunkByteSize=e)}this.fileMetaData&&(this.totalChunks=Math.ceil(this.fileMetaData.length/this.chunkByteSize)),this.dispatchInfo("完成初始化文件信息,总分片:"+this.totalChunks),this.currentDB&&(this.keys=await this.currentDB.keys())}getTotalChunks(){return this.totalChunks}pause(){this.cancelSource&&this.isStarting&&(this.cancelSource.cancel(),this.isStarting=!1),this.dispatchInfo("已暂停下载任务")}restart(){this.dispatchInfo("正在重启下载任务"),this.download()}delete(){this.cancelSource&&this.cancelSource.cancel(),zo.dropInstance({name:this.fileID}),this.currentDB=void 0,this.keys&&(this.keys.length=0,this.keys=void 0),this.finishNum=0,this.downloadProgress(),this.outputProgress(0),this.dispatchInfo("已删除下载任务")}sleep(e){return new Promise(t=>setTimeout(t,e))}async download(e,t,n){let i=e;if(!i&&this.downloadURL&&(i=this.downloadURL),!i)throw Error("下载URL不能为空!");this.currentDB||this.initIndexDB();const r=Li.Axios.CancelToken;this.cancelSource=r.source(),this.isStarting=!0;const o={key:this.fileMetaData?.downloadID},s=n??o;let a=0;const l=this.cacheSize;let c=0;for(let e=0;e<this.totalChunks;e++){if(this.keys){const t=this.keys?.indexOf(e.toString());if(t>=0){a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());continue}}const n=e*this.chunkByteSize;let r=n+this.chunkByteSize-1;this.fileMetaData&&r>this.fileMetaData.length&&(r=this.fileMetaData.length-1);const o={range:`bytes=${n}-${r}`};for(;c>=l;)await this.sleep(200);const u=e.toString();this.dispatchInfo(`开始下载分片${e+1}/${this.totalChunks}`),c++,Rr(i,t,s,o,"arraybuffer",this.cancelSource?.token,this.requestTimeout).then(async e=>{const t=e.data;c--,await(this.currentDB?.setItem(u,t)),a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());const n=parseInt(u)+1;this.dispatchInfo(`完成下载分片${n}/${this.totalChunks}`),this.savefile()}).catch(e=>{c--;const t=parseInt(u)+1;this.dispatchError(`下载第${t})个分片内容失败!`)})}this.finishNum===this.totalChunks&&this.savefile()}downloadProgress(){const e=100*this.finishNum/this.totalChunks;this.dispatch("downloadProgress",e)}outputProgress(e){const t=100*e/this.totalChunks;this.dispatch("saveProgress",t)}async savefile(){if(this.finishNum===this.totalChunks){if(!this.fileName)return void this.dispatchError("下载错误:文件名为空!");this.dispatchInfo("开始保存下载文件:"+this.fileName);const e=Lo.createWriteStream(this.fileName).getWriter();let t=0;for(let n=0;n<this.totalChunks;n++){const i=n.toString();let r=await(this.currentDB?.getItem(i));if(r||(r=await(this.currentDB?.getItem(i))),!r)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);let o=new Response(r).body;if(null===o)return void this.dispatchError(`输出分片第${n+1})个内容为空,错误退出!`);const s=o.getReader();for(;;){const{done:t,value:n}=await s.read();if(t)break;await e.write(n)}t++,this.outputProgress(t),this.dispatchInfo(`完成第${n+1}个分片输出`)}e.close(),zo.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}}function _o(e,t){let n="",i="";for(const e in t)n+=e+"="+encodeURIComponent(t[e])+"&";return n=n.replace(/&$/,""),i=/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n,i}function Io(e={},t={}){let n;for(n in t)Me(t[n])?e[n]=Io(e[n],t[n]):e[n]=t[n];return e}function Ro(e,t,n={name:void 0}){const i=e.resolve({path:t,query:n});globalThis.open(i.href,"_blank")}function Do(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function Bo(e,t="/"){if(e)return e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`}function Po(e,t){e.getRoutes().find(e=>"/"===e.path)||e.addRoute({name:"/",path:"/",redirect:t.path})}function Fo(e){const t=[];let n=[];return Object.keys(e).forEach(t=>{const i=e[t];i&&n.push(...i)}),n=n.sort((e,t)=>{let n=0,i=0;return e.meta&&(n=null!=e.meta.index?Number(e.meta.index):100),t.meta&&(i=null!=t.meta.index?Number(t.meta.index):100),n-i}),t.push(...n),n.length=0,t}function Oo(e,t=!1){let n=[];for(const t in e){const i=e[t];i&&i.length>0&&(n.push(...i),i.length=0),delete e[t]}return t&&(n=n.sort((e,t)=>{let n=0,i=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(i=Number(t.index)),n-i})),n}function No(e,t=!1){const n=[];let i=[];return Object.keys(e).forEach(t=>{const n=e[t];n&&i.push(...n)}),t&&(i=i.sort((e,t)=>{let n=0,i=0;return null!=e.index&&(n=Number(e.index)),null!=t.index&&(i=Number(t.index)),n-i})),n.push(...i),i.length=0,n}const $o=new Map;function Wo(e,t=!1){if(t&&$o.size>0)return $o;$o.clear();for(const t in e){const n=e[t];n&&n.length>0&&(n.forEach(e=>{let t;const n=e.layoutID;$o.has(n)&&(t=$o.get(n)),t||(t=new Array,$o.set(n,t)),t&&t.push(e)}),n.length=0),delete e[t]}return $o}function Uo(e,t="/"){let n=t;if(e.redirect&&e.children){n=e.path.startsWith(t)?e.path:t.endsWith("/")?t+e.path:t+"/"+e.path;return Uo(e.children[0],n)}n=e.path.startsWith(t)?e.path:`${t}/${e.path}`;return{title:e.meta?.title,fullPath:n,path:e.path,icon:e.meta?.icon,keepAlive:e.meta?.keepAlive,name:e.name}}function jo(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let e of t){const t=Ho(e);t&&n.push(t)}return n}(e.bussinessRoutes),n=function(e){if(!e)return;const t=e;if(t&&t.length>0){const e=[];return t.forEach(t=>{const n=qo(t);n&&e.push(n)}),e}return}(e.widgetMenuConfig),i=function(e){if(!e)return;if(e.length>0){const t=[];return e.forEach(e=>{const n=function(e){if(!e)return;return{id:e.id,label:e.label,layoutID:e.layoutID,container:e.container,preload:e.preload,afterid:e.afterid,bindid:e.bindid,group:e.group}}(e);n&&t.push(n)}),t}return}(e.widgetConfig),r=(o=e.functionList)&&o.length>0?o:void 0;var o;const s=e.pkgObject.version,a=e.pkgObject.name,l=function(e,t){const n=`${e}_${t}`;return et.MD5(n)}(a,s);return{id:l,name:Li.Config.UI.SiteTitle,group:Li.Config.UI.Group,product:a,version:s,routes:t,widgetMenu:n,widgets:i,functions:r}}function Ho(e){if(e){let t=0;e.meta?.hidden&&(t=1);let n={path:e.path,name:e.name,title:e.meta?.title,type:t,index:e.meta?.index};if(e.children){const t=[];for(let n of e.children){const e=Ho(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function qo(e){if(!e)return;const t={name:e.name,index:e.index,path:e.path,type:e.type};return e.children&&e.children.length>0&&(t.children=[],e.children.forEach(e=>{const n=qo(e);n&&t.children?.push(n)})),t}function Xo(e,t="IconifyList.ts"){let n="",i="const iconlist={\n";let r=0;if(e.forEach(e=>{const t=e.split(":");if(t&&2===t.length){const o="icon"+r;n+=`import ${o} from '~icons/${t[0]}/${t[1]}'\n`,i+=`\t'${e}':${o},\n`,r++}}),r>0){i+="};\n";Zn(n+i+"export default iconlist;","IconifyList.ts")}}function Go(e,t){const n=jo(e);Jn(n,t),Li.Message?.msg("导出系统功能权限文件成功!")}function Yo(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function Vo(e){let t=Zo(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function Zo(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function Ko(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function Jo(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function Qo(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function es(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function ts(e){let t=Zo(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function ns(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function is(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){let i=(e+="00").indexOf(".");i>=0&&(e=e.substring(0,i)+e.substr(i+1,2)),t=t.substr(t.length-e.length);for(let i=0;i<e.length;i++)n+="零壹贰叁肆伍陆柒捌玖".substr(e.substr(i,1),1)+t.substr(i,1);return n=n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元")}function rs(e){return!!/^((12[0-9])|(13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0|1,5-9]))\d{8}$/.test(e)}function os(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function ss(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function as(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function ls(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function cs(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function us(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function hs(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function ds(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function fs(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function ps(e){return!!/^[1-9][0-9]{5}$/.test(e)}function gs(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function ms(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}function vs(e){e&&Li.EventBus.emit($n.ModalContainerWidget_LoadModal,e)}function ys(e){Li.EventBus.emit($n.ModalContainerWidget_CloseModal,e)}function ws(e,t){const n={};return Object.keys(e).filter(e=>t.includes(e)).forEach(t=>{n[t]=e[t]}),n}let bs=[];const Ss=()=>{setTimeout(async()=>{const e=await async function(){const e=await async function(e){const t=/<script.*src=["'](?<src>[^"']+)/gm,n=[];let i;for(;i=t.exec(e);)n.push(i.groups?.src??"");return n}(await fetch("/").then(e=>e.text()));if(!bs.length)return bs=e,!1;if(e.length!==bs.length)return bs=e,!0;for(let t=0;t<bs.length;t++)if(bs[t]!==e[t])return bs=e,!0;return!1}();if(e){confirm("页面有更新,点击确定刷新页面?")&&location.reload()}else Ss()},5e3)},xs=new Set;function Es(e){return null!==e?parseFloat(e):0}function Cs(e){const t=globalThis.getComputedStyle(e),n=Math.ceil([t.paddingLeft,t.width,t.paddingRight].map(Es).reduce((e,t)=>e+t)),i=Math.ceil([t.paddingTop,t.height,t.paddingBottom].map(Es).reduce((e,t)=>e+t));return{width:n,height:i}}class ks{width;height;constructor(e,t){this.width=e,this.height=t}}function zs(e){const t=e.windowEl;if(t){const e=parseFloat(t.style.left||"NaN"),n=parseFloat(t.style.top||"NaN");if(!isNaN(e)&&!isNaN(n))return{left:e,top:n}}return null}function Ts(e,t,n,i){const r=e-n,o=t-i;return r*r+o*o}globalThis.addEventListener("resize",e=>{xs.forEach(e=>{e&&Ce(e.fixPosition)&&e.fixPosition()})});const As=[],Ls=e({name:"VWindow",props:{windowStyle:{type:Object,required:!0},isOpen:{type:Boolean,required:!1,default:!0},title:{type:String,required:!0,default:""},closeButton:{type:Boolean,required:!1,default:!0},resizable:{type:Boolean,required:!1,default:!1},isScrollable:{type:Boolean,required:!1,default:!1},padding:{type:Number,required:!1,default:8},activateWhenOpen:{type:Boolean,required:!1,default:!0},positionHint:{type:String,required:!1,default:""},zGroup:{type:Number,required:!1,default:1},overflow:{type:String,required:!1,default:"visible"},minWidth:{type:Number,required:!1,default:1},minHeight:{type:Number,required:!1,default:0},maxWidth:{type:Number,required:!1,default:0},maxHeight:{type:Number,required:!1,default:0},height:{type:Number,required:!1},width:{type:Number,required:!1},top:{type:Number,required:!1},left:{type:Number,required:!1}},components:{myButton:ge},setup(e,{emit:n}){const i=l();if(!i)return;const{proxy:r}=i;let o=0;let s,a,p;const g=t(e.isOpen),m=()=>{As.push(r),p=new se(e.zGroup,v),e.isOpen&&(f(()=>{0==o++&&(k(r),function(){const t=y.value,{width:n,height:i}=Z(t);let o,s;if(void 0!==e.left!=(void 0!==e.top))throw new Error("Either of left or top is specified. Both must be set or not set.");if("number"==typeof e.left)o=e.left,s=e.top;else{const t=e.positionHint||"auto";switch(t){case"auto":{let e=20,t=50,n=0;do{if(As.every(n=>{if(!n.isOpen||r==n)return!0;const i=zs(n);if(null==i)return!0;const{left:o,top:s}=i;return Ts(o,s,e,t)>16}))break;e=(e+40)%(globalThis.innerWidth-200),t=(t+40)%(globalThis.innerHeight-200)}while(++n<100);o=e,s=t}break;case"center":o=(globalThis.innerWidth-n)/2,s=(globalThis.innerHeight-i)/2,console.log(o,s,globalThis.innerWidth,globalThis.innerHeight,"111111");break;default:try{const e=t.split("/").map(Number);if(2!=e.length)throw null;const[r,a]=e;if(!isFinite(r)||!isFinite(a))throw null;o=r>=0?r:globalThis.innerWidth-n+r,s=a>=0?a:globalThis.innerHeight-i+a}catch(e){throw new Error(`invalid position string: ${t}`)}}}t&&(t.style.left=`${o}px`,t.style.top=`${s}px`)}()),e.resizable&&z(),A(),s=new te(w.value,y.value,{onMove:()=>A(),onMoveStart:()=>n("move-start"),onMoveEnd:()=>n("move-end")}),e.resizable&&function(){const{height:t}=Z(w.value);a=new ne(y.value,{onResize:()=>z(),onResizeStart:()=>n("resize-start"),onResizeEnd:()=>n("resize-end"),minWidth:e.minWidth,minHeight:e.minHeight+t,maxWidth:e.maxWidth,maxHeight:e.maxHeight?e.maxHeight+t:void 0})}()}),e.activateWhenOpen&&S()),xs.add(r)};function v(e){x.value.zIndex=`${e}`}const y=t(null),w=t(null),b=t(null);function S(){p.raise(),n("activate")}const x=t({...e.windowStyle.window,zIndex:"auto",overflow:e.overflow}),E=c(()=>e.windowStyle.titlebar),C=c(()=>{const t={...e.windowStyle.content};return e.resizable?t.padding="0":null!=e.padding&&(t.padding=`${e.padding}px`),e.isScrollable&&(t.overflow="auto"),t});function k(e){const{width:t,height:n,top:i,left:r}=e,o=y;if(o&&null!=t&&(o.value.style.width=`${t}px`),null!=n){const e=w.value;if(e){const t=Cs(e).height;o.value.style.height=`${n+t}px`}}o&&null!=r&&(o.value.style.left=`${r}px`),o&&null!=i&&(o.value.style.top=`${i}px`)}function z(e=!0){const t=y.value,i=w.value,r=b.value;if(r&&t&&i){const{width:o,height:s}=Cs(r),{width:a,height:l}=Cs(t),c=Cs(i).height,u=a-(r.offsetWidth-o),h=l-c-(r.offsetHeight-s);r.style.width=`${u}px`,r.style.height=`${h}px`,T(),n("resize",new ks(u,h)),e&&(n("update:width",u),n("update:height",h))}}function T(){const e=y.value;if(e){const t=e.getBoundingClientRect();t.left<0&&(x.value.left="0px"),t.top<0&&(x.value.top="0px"),t.right>globalThis.innerWidth&&(x.value.left=globalThis.innerWidth-t.width+"px"),t.bottom>globalThis.innerHeight&&(x.value.top=globalThis.innerHeight-t.height+"px")}}function A(e=!0){T();const t=y.value;if(t){const{left:i,top:r}=t.getBoundingClientRect();e&&(n("update:left",i),n("update:top",r))}}return u(()=>e.isOpen,e=>{g.value=e}),u(()=>e.zGroup,e=>{p.group=e}),u(()=>e.width,e=>{k({width:e}),z(!1)}),u(()=>e.height,e=>{k({height:e}),z(!1)}),h(()=>{m()}),d(()=>{xs.delete(this),p.unregister(),a&&a.teardown(),s&&s.teardown(),As.splice(As.indexOf(r),1)}),{isOpen:g,windowEl:y,titlebar:w,content:b,activate:S,styleWindow:x,styleTitlebar:E,styleContent:C,closeButtonClick:function(){g.value=!1,n("closebuttonclick")},fixPosition:T}}}),Ms={class:"title"};const _s=fe(Ls,[["render",function(e,t,r,a,l,c){const u=p("myButton");return i(),g(m,{name:"fade",onAfterLeave:t[2]||(t[2]=t=>e.$emit("close")),onAfterEnter:t[3]||(t[3]=t=>e.$emit("open"))},{default:v(()=>[y(w("div",{class:"window",style:o(e.styleWindow),ref:"windowEl",onMousedown:t[0]||(t[0]=(...t)=>e.activate&&e.activate(...t)),onTouchstart:t[1]||(t[1]=(...t)=>e.activate&&e.activate(...t))},[w("div",{class:"titlebar",style:o(e.styleTitlebar),ref:"titlebar"},[w("div",Ms,[e.$slots.title?s(e.$slots,"title",{key:0}):(i(),n(S,{key:1},[x(E(e.title),1)],64))]),e.closeButton?(i(),g(u,{key:0,windowStyle:e.windowStyle,onClick:e.closeButtonClick},{default:v(()=>t[4]||(t[4]=[x("×",-1)])),_:1,__:[4]},8,["windowStyle","onClick"])):b("",!0)],4),w("div",{class:"content",style:o(e.styleContent),ref:"content"},[s(e.$slots,"default")],4)],36),[[C,e.isOpen]])]),_:3})}]]);var Is,Rs;(Rs=Is||(Is={}))[Rs.StyleBlack=0]="StyleBlack",Rs[Rs.StyleWhite=1]="StyleWhite",Rs[Rs.StyleMetal=2]="StyleMetal",Rs[Rs.StyleGrayblue=3]="StyleGrayblue";const Ds={window:{color:"#fff",boxShadow:"0 0 6pt rgba(255, 255, 255, 0.75)",backgroundColor:"rgba(31, 31, 31, 0.9)"},titlebar:{backgroundColor:"rgba(63, 63, 63, 0.9)"},content:{},button:{color:"white"},buttonHover:{backgroundColor:"rgba(255, 255, 255, 0.25)"},buttonActive:{color:"black",backgroundColor:"rgba(255, 255, 255, 0.5)"}},Bs={window:{color:"#000",boxShadow:"0 2pt 4pt rgba(0, 0, 0, 0.5)",backgroundColor:"rgba(239, 239, 239, 0.95)"},titlebar:{backgroundColor:"rgba(191, 191, 191, 0.9)"},content:{},button:{color:"#000"},buttonHover:{backgroundColor:"rgba(0, 0, 0, 0.25)"},buttonActive:{color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.5)"}},Ps={window:{color:"#000",boxShadow:"0 4pt 8pt rgba(0, 0, 0, 0.5)",background:"linear-gradient(to bottom, rgb(215, 215, 215), rgb(191, 191, 191))"},titlebar:{background:"linear-gradient(to bottom, rgb(215, 215, 215), rgb(191, 191, 191))"},content:{},button:{color:"#000"},buttonHover:{backgroundColor:"rgba(0, 0, 0, 0.25)"},buttonActive:{color:"#fff",backgroundColor:"rgba(0, 0, 0, 0.5)"}},Fs={window:{color:"#fff",fontSize:"14px",boxShadow:"0 0 3pt rgba(255, 255, 255, 0.75)",backgroundColor:"rgba(4,51,81,0.6)",borderRadius:"5px"},titlebar:{backgroundColor:"rgba(4,51,81,0.8)",border:"1px solid rgba(153, 153, 153, 0.5)",borderRadius:"5px",fontSize:"16px",fontWeight:400,color:"#fff"},content:{},button:{color:"white",fontSize:"18px"},buttonHover:{backgroundColor:"rgba(255, 255, 255, 0.25)"},buttonActive:{color:"black",backgroundColor:"rgba(255, 255, 255, 0.5)"}},Os=_s;var Ns,$s;($s=Ns||(Ns={}))[$s.top=0]="top",$s[$s.bottom=1]="bottom",$s[$s.centerBack=2]="centerBack",$s[$s.centerMain=3]="centerMain",$s[$s.centerFront=4]="centerFront",$s[$s.left=5]="left",$s[$s.right=6]="right";class Ws{layoutState;layoutMap=new Map;preConditionMap=new Map;widgetsLoadedSet=new Set;widgetConfigDiction=new Map;_LayoutID;_mapItemRefs;constructor(e,t,n,i){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=i,Li.RightWidgetConfigMap){const e=Li.RightWidgetConfigMap.get(t);e&&e.forEach(e=>{if(this.widgetConfigDiction.set(e.id,e),e.afterid)if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}else{const e=Li.WidgetConfigList??n;e&&e.forEach(e=>{if(e.layoutID===t&&(this.widgetConfigDiction.set(e.id,e),e.afterid))if(this.preConditionMap.has(e.afterid))this.preConditionMap.get(e.afterid)?.add(e);else{const t=new Set;t.add(e),this.preConditionMap.set(e.afterid,t)}})}}getLayoutID(){return this._LayoutID}getWidgetConfigMap(){return this.widgetConfigDiction}preloadWidgets(){if(this.widgetConfigDiction.size>0)for(const[e,t]of this.widgetConfigDiction)t.preload&&!t.afterid&&this._loadWidget(t)}async loadWidget(e){if(!e)return;let t;if(Me(e)?t=e:Be(e)&&(t=this.widgetConfigDiction.get(e)),t){if(t.afterid){if(this.isWidgetLoaded(t.afterid))return this._loadWidget(t);{let e=function(t){t.layoutID===n._LayoutID&&t.widgetID===i&&(n._loadWidget(r),Li.EventBus.off($n.WidgetLoadedEvent,e))};const n=this,i=t.afterid,r=t;return Li.EventBus.on($n.WidgetLoadedEvent,e),this.loadWidget(t.afterid)}}return this._loadWidget(t)}}loadOtherDependenceWidgets(e){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);t?.forEach(e=>{e.preload&&this._loadWidget(e)})}}_loadWidget(e){if(!this.widgetsLoadedSet.has(e.id))return e.component?e.component().then(t=>{if(t.default){const n=k(t.default);n.id=e.id,e.layout&&(n.style=e.layout),e.cssClass&&(n.cssClass=e.cssClass),e.layoutID&&(n.layoutID=e.layoutID),e.label&&(n.label=e.label),e.jsURL&&(n.jsURL=e.jsURL),e.cssURL&&(n.cssURL=e.cssURL);this.getContainerComponents(e.container).value.set(e.id,n),this.widgetsLoadedSet.add(e.id),f().then(()=>{Li.EventBus.emit($n.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),this.loadOtherDependenceWidgets(e.id)})}}).catch(t=>{Li.Logger().error("加载Widget失败!",e,t),Li.EventBus.emit($n.WidgetLoadedErrorEvent,e)}):void 0;this.changeWidgetVisible(e.id,!0)}hasDependentWidgets(e){let t=!1;if(this.preConditionMap.has(e)){const n=this.preConditionMap.get(e);if(n)for(const e of n)if(this.isWidgetLoaded(e.id)){t=!0;break}}return t}unloadWidget(e){if(!e)return;if(!this.isWidgetLoaded(e))return;const t=this.widgetConfigDiction.get(e);if(t){if(this.preConditionMap.has(e)){const t=this.preConditionMap.get(e);if(t)for(const e of t)this.unloadWidget(e.id)}this.getContainerComponents(t.container).value.delete(e),this.widgetsLoadedSet.delete(e),this._mapItemRefs&&this._mapItemRefs.delete(e),Li.EventBus.emit($n.WidgetUnLoadedEvent,{layoutID:this._LayoutID,widgetID:e})}}isWidgetLoaded(e){return this.widgetsLoadedSet.has(e)}splitTwoContainer(e=!1){const t=this.layoutState.centerMainContainer.value,n=this.layoutState.centerBackContainer.value;e?(t&&(t.style.left="0",t.style.width="100%"),n&&(n.style.width="100%")):(t&&(t.style.left="50%",t.style.width="50%"),n&&(n.style.width="50%"))}getLayoutContainer(e){switch(e){case Ns.top:return this.layoutState.topContainer.value;case Ns.bottom:return this.layoutState.bottomContainer.value;case Ns.left:return this.layoutState.leftContainer.value;case Ns.right:return this.layoutState.rightContainer.value;case Ns.centerBack:return this.layoutState.centerBackContainer.value;case Ns.centerMain:return this.layoutState.centerMainContainer.value;case Ns.centerFront:return this.layoutState.centerFrontContainer.value}}changeContainerVisible(e,t=!1){const n=this.getLayoutContainer(e);n&&(n.style.visibility=t?"visible":"hidden")}changeWidgetVisible(e,t=!1){const n=this.getWidgetComponent(e);n&&n.changeVisible&&n.changeVisible(t)}isWidgetVisible(e){const t=this.getWidgetComponent(e);return!!t&&(!t.isShow||t.isShow.value)}getWidgetComponent(e){if(this.widgetsLoadedSet.has(e)&&this._mapItemRefs){return this._mapItemRefs.get(e)}}getWigetItem(e){return this.widgetConfigDiction.get(e)}getGroupWigetItems(e){const t=[];for(const[n,i]of this.widgetConfigDiction)i.group===e&&t.push(i);return t}getContainerComponents(e){if(this.layoutMap.has(e))return this.layoutMap.get(e);{const n=t(new Map);return this.layoutMap.set(e,n),n}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach(t=>{e.push(t)}),e}unloadAllWidgets(e){const t=[];this.widgetsLoadedSet.forEach(n=>{if(e&&e.length>0){e.findIndex(e=>e===n)<0&&t.push(n)}else t.push(n)}),t.forEach(e=>this.unloadWidget(e))}unloadWidgets(e){e&&e.length>0&&e.forEach(e=>{this.unloadWidget(e)})}static getLayoutManager(e,t){if(t){const n=t.find(t=>t.id===e);if(n&&n.layoutID){return Li.LayoutMap.get(n.layoutID)}}}}const Us=fe(e({name:"SuspenseWithError",setup(){const e=t(null);return z(t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0)),{error:e}}}),[["render",function(e,t,n,r,o,a){return e.error?s(e.$slots,"error",{key:0},()=>[x(E(e.error),1)]):(i(),g(T,{key:1},{default:v(()=>[s(e.$slots,"default")]),fallback:v(()=>[s(e.$slots,"fallback",{},()=>[t[0]||(t[0]=w("div",null,"加载中……",-1))])]),_:3}))}]]),js=e({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,t)=>{const n=p("router-view");return i(),g(Us,null,{default:v(()=>[A(n,null,{default:v(({Component:e,route:t})=>[(i(),g(L,null,[t.meta.keepAlive?(i(),g(M(e),{key:t.name})):b("",!0)],1024)),t.meta.keepAlive?b("",!0):(i(),g(M(e),{key:t.name}))]),_:1})]),_:1})}}),Hs=["id"],qs=fe(e({__name:"layout",props:{widgetConfig:{type:Array,required:!1,default:void 0},layoutID:{type:String,default:"layoutDefault"},layoutStyle:{type:Object},enableRouterView:{type:Boolean,default:!0}},emits:["containerLoaded"],setup(e,{emit:r}){const a=e,l=r,d=a.layoutID,f=t(d),p=t(),m=t(),v=t(),y=t(),x=t(),E=t(),C=t(),k=t(a.enableRouterView);u(()=>a.enableRouterView,()=>{k.value=a.enableRouterView});const z=new Map,T=(e,t)=>{e&&z.set(t,e)},L=new Ws({topContainer:p,centerBackContainer:m,centerMainContainer:v,centerFrontContainer:y,bottomContainer:x,leftContainer:E,rightContainer:C},d,a.widgetConfig,z),D=$(Ns.top),B=$(Ns.centerBack),P=$(Ns.centerFront),F=$(Ns.left),O=$(Ns.right),N=$(Ns.bottom);function $(e){return L?.getContainerComponents(e)}const W=c(()=>a.layoutStyle);return h(()=>{L&&(d?Li.LayoutMap.set(d,L):(Li.LayoutManager=L,Li.LayoutMap.set("",L)),L.preloadWidgets(),l("containerLoaded",{layoutID:d,layoutManager:L}),Li.EventBus.emit($n.LayoutContainerLoaded,{layoutID:d,layoutManager:L}))}),(e,t)=>(i(),n("div",{id:f.value,class:"layoutContainer",style:o(W.value)},[w("div",{ref_key:"topContainer",ref:p,class:"topContainer"},[s(e.$slots,"top",{},void 0,!0),(i(!0),n(S,null,_(I(D),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",null,[k.value?(i(),n("div",{key:0,ref_key:"centerMainContainer",ref:v,class:"centerdiv mainContainer"},[s(e.$slots,"main",{},()=>[A(js)],!0)],512)):b("",!0),w("div",{ref_key:"centerBackContainer",ref:m,class:"centerdiv backContainer"},[s(e.$slots,"back",{},void 0,!0),(i(!0),n(S,null,_(I(B),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"centerFrontContainer",ref:y,class:"centerdiv centerFrontContainer"},[s(e.$slots,"front",{},void 0,!0),(i(!0),n(S,null,_(I(P),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"leftContainer",ref:E,class:"leftContainer"},[s(e.$slots,"left",{},void 0,!0),(i(!0),n(S,null,_(I(F),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",{ref_key:"rightContainer",ref:C,class:"rightContainer"},[s(e.$slots,"right",{},void 0,!0),(i(!0),n(S,null,_(I(O),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512)]),w("div",{ref_key:"bottomContainer",ref:x,class:"bottomContainer"},[s(e.$slots,"bottom",{},void 0,!0),(i(!0),n(S,null,_(I(N),([e,t])=>(i(),g(M(t),{ref_for:!0,ref:t=>T(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),s(e.$slots,"default",{},void 0,!0)],12,Hs))}}),[["__scopeId","data-v-318009ad"]]),Xs=e({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(e,t)=>{const n=p("router-view");return i(),g(Us,null,{default:v(()=>[A(n,null,{default:v(({Component:t,route:n})=>[A(D,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:v(()=>[(i(),g(L,null,[n.meta.keepAlive?(i(),g(M(t),{key:n.name})):b("",!0)],1024)),n.meta.keepAlive?b("",!0):(i(),g(M(t),{key:n.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}),Gs=new Map,Ys=t(new Map);class Vs{static ZIndexMax=1;static addWindowPanel(e){Gs.set(e.id,e)}static removeWindowPanel(e){Gs.has(e)&&(Gs.delete(e),Ys.value.delete(e))}static minimizeWindowPanel(e){Gs.has(e)&&Ys.value.set(e,-1)}static openWindowPanel(e){Gs.has(e)&&Ys.value.set(e,1)}}const Zs={width:1024,height:1024,body:'<path fill="currentColor" fill-rule="evenodd" d="M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926L224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512L166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"/>'},Ks={width:1024,height:1024,body:'<path fill="currentColor" d="M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"/>'},Js={width:1024,height:1024,body:'<path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"/>'},Qs={width:1024,height:1024,body:'<path fill="currentColor" d="M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"/>'},ea=["src"],ta={key:1,class:"paneltitle"},na={class:"dragPanelBar"},ia={class:"dragPanelContent"},ra={class:"drag-pointer-group"},oa=fe(e({__name:"XWindow",props:{top:{type:[String,Number],default:0},left:{type:[String,Number],default:0},nWidth:{type:[String,Number],default:"300px"},nHeight:{type:[String,Number],default:"400px"},icon:{type:String,default:"img/logo.png"},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!0},hasMax:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!0},isDark:{type:Boolean,default:!1},pid:{type:String,default:""},tag:{type:[String,Array,Object,Number],default:""}},emits:["close","open","loaded","minimize"],setup(e,{expose:a,emit:l}){const d=rt(),f=e,p=l,S=t(),x=t(),k=c(()=>f.isDark),z=t({x:0,y:0}),T=250,A=100,L=t({width:0,height:0}),M=e=>{S.value&&(S.value.style.left=`${e.x}px`,S.value.style.top=`${e.y}px`)};u(()=>z.value,e=>{M(e)});const _=e=>{S.value&&(S.value.style.width=`${e.width}px`,S.value.style.height=`${e.height}px`)};u(()=>L.value,e=>{_(e)});const D={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(D.refs).forEach(([e,t])=>{t.value&&t.value.addEventListener("mousedown",t=>{D.mouseDown(t,e)})})},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),D.startingEdges={left:z.value.x,top:z.value.y,right:z.value.x+L.value.width,bottom:z.value.y+L.value.height},D.newEdges={...D.startingEdges},D.clickStart={x:e.clientX,y:e.clientY},D.eventListenerController=new AbortController,document.addEventListener("mousemove",e=>{D.mouseMove(e,t)},{signal:D.eventListenerController.signal}),document.addEventListener("mouseup",e=>{D.mouseUp(e,t)},{signal:D.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=D.startingEdges&&null!=D.newEdges&&null!=D.clickStart&&D.refs[t].value){if(e.preventDefault(),console.log("mouseMove",t),t.toLowerCase().includes("north")){D.newEdges.top=Math.max(D.startingEdges.top+e.clientY-D.clickStart.y,0);const t=D.newEdges.bottom-D.newEdges.top-A;t<0&&(D.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(D.newEdges.bottom=Math.min(D.startingEdges.bottom+e.clientY-D.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){D.newEdges.left=Math.max(D.startingEdges.left+e.clientX-D.clickStart.x,0);const t=D.newEdges.right-D.newEdges.left-T;t<0&&(D.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(D.newEdges.right=Math.min(D.startingEdges.right+e.clientX-D.clickStart.x,document.body.clientWidth));D.update()}},update:()=>{null!=D.newEdges&&null!=D.startingEdges&&(z.value={x:Math.max(D.newEdges.left,0),y:Math.max(D.newEdges.top,0)},L.value={width:Math.min(Math.max(D.newEdges.right-D.newEdges.left,T),document.body.clientWidth),height:Math.min(Math.max(D.newEdges.bottom-D.newEdges.top,A),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=D.startingEdges&&(console.log("mouseUp",t),e.preventDefault(),D.startingEdges=null,D.newEdges=null,D.clickStart=null,D.eventListenerController&&(D.eventListenerController.abort(),D.eventListenerController=null))},refs:{northWest:t(null),north:t(null),northEast:t(null),west:t(null),east:t(null),southWest:t(null),south:t(null),southEast:t(null)}},P={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),console.log("mouseDown"),P.startingMouse={x:e.clientX,y:e.clientY},P.startingPosition=z.value,document.addEventListener("mousemove",P.mouseMove),document.addEventListener("mouseup",P.mouseUp))},mouseMove:e=>{P.startingMouse&&P.startingPosition&&(e.preventDefault(),z.value={x:Math.min(Math.max(P.startingPosition.x+e.clientX-P.startingMouse.x,0),document.body.clientWidth-L.value.width),y:Math.max(P.startingPosition.y+e.clientY-P.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&P.startingMouse&&P.startingPosition&&(e.preventDefault(),P.startingMouse=null,P.startingPosition=null,console.log("mouseUp"),document.removeEventListener("mousemove",P.mouseMove),document.removeEventListener("mouseup",P.mouseUp))}};function F(e){return{id:d,icon:f.icon,title:f.title,pid:f.pid,data:e??f.tag}}const O=t(1),N=c(()=>!(-1===Ys.value.get(d))),$=t(!1),W=t(!0),U=c(()=>"z-index:"+O.value);function j(){O.value<=Vs.ZIndexMax&&(Vs.ZIndexMax+=1,O.value=Vs.ZIndexMax)}function H(){p("minimize",F()),Vs.minimizeWindowPanel(d)}function q(){$.value=!$.value}function X(){p("close",F(!1)),Vs.removeWindowPanel(d),W.value=!1}const G=c(()=>$.value?Qs:Js),Y={id:d,isShow:N,close:X,open:function(){p("open",F(!0)),W.value=!0},showHidePanel:H};function Z(e){if(Ie(e))return e;{const t=Number(e);if(t==t)return t;if(e.endsWith("px")){const t=e.substring(0,e.length-2);return Number(t)}if(e.endsWith("%")){const t=e.substring(0,e.length-1);return Number(t)/100*document.body.clientWidth}return 300}}return a(Y),h(()=>{!function(){let e=96;if(f.hasMin||(e-=32),f.hasMax||(e-=32),f.hasClose||(e-=32),et.setCssVar("--right-bar-width",e+"px",x.value),!x.value)return;const t=Ie(f.titleHeight)?f.titleHeight+"px":f.titleHeight;x.value.style.height=t,x.value.style.lineHeight=t}(),function(){const e=F(Y);Vs.addWindowPanel(e),p("loaded",e)}(),z.value.x=Z(f.left),z.value.y=Z(f.top),M(z.value),L.value={width:Z(f.nWidth),height:Z(f.nHeight)},_(L.value),D.mount()}),B(()=>{Vs.removeWindowPanel(d)}),(t,a)=>(i(),g(m,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:v(()=>[W.value?y((i(),n("div",{key:0,ref_key:"dragPanelRef",ref:S,class:R(["dragWindowPanel",{maxPanel:$.value,dragWindowPanel_dark:k.value}]),style:o(U.value)},[w("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:x,onMousedown:a[0]||(a[0]=(...e)=>P.mouseDown&&P.mouseDown(...e)),onClick:r(j,["stop"])},[s(t.$slots,"title",{},()=>[f.icon?(i(),n("img",{key:0,src:f.icon,width:"24",height:"24"},null,8,ea)):b("",!0),f.title?(i(),n("span",ta,E(f.title),1)):b("",!0)],!0),w("div",na,[e.hasMin?(i(),g(I(V),{key:0,icon:I(Ks),onClick:r(H,["stop"])},null,8,["icon"])):b("",!0),e.hasMax?(i(),g(I(V),{key:1,icon:G.value,onClick:r(q,["stop"])},null,8,["icon"])):b("",!0),e.hasClose?(i(),g(I(V),{key:2,icon:I(Zs),onClick:r(X,["stop"])},null,8,["icon"])):b("",!0)])],544),w("div",ia,[s(t.$slots,"default",{},void 0,!0)]),w("div",ra,[w("div",{class:"cursor-nw-resize",ref:D.refs.northWest},null,512),w("div",{class:"cursor-n-resize",ref:D.refs.north},null,512),w("div",{class:"cursor-ne-resize",ref:D.refs.northEast},null,512),w("div",{class:"cursor-w-resize",ref:D.refs.west},null,512),a[1]||(a[1]=w("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),w("div",{class:"cursor-e-resize",ref:D.refs.east},null,512),w("div",{class:"cursor-sw-resize",ref:D.refs.southWest},null,512),w("div",{class:"cursor-s-resize",ref:D.refs.south},null,512),w("div",{class:"cursor-se-resize",ref:D.refs.southEast},null,512)])],6)),[[C,N.value]]):b("",!0)]),_:3}))}}),[["__scopeId","data-v-d7d4a2b7"]]),sa={class:"adivider"},aa={class:"contentText"},la=fe(e({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){P(e=>({"1dc34ba7":r.value}));const t=e,r=c(()=>gr(t.color)||dr(t.color)?t.color:"#888"),a=c(()=>"left"!=t.align?"flex:1;":"width:40px;"),l=c(()=>"right"!=t.align?"flex:1;":"width:40px;");return(e,t)=>(i(),n("div",sa,[w("div",{class:"line",style:o(a.value)},null,4),w("div",aa,[s(e.$slots,"default",{},void 0,!0)]),w("div",{class:"line",style:o(l.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),ca={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((e,i)=>(e.size=i===t?e.max:e.min,i!==t&&(n+=e.min),e)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:n.prevPanesSize),r=100-(this.pushOtherPanes?0:n.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(e),r),i);let s=[t,t+1],a=this.panes[s[0]]||null,l=this.panes[s[1]]||null;const c=a.max<100&&o>=a.max+n.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(t+1));if(c||u)c?(a.size=a.max,l.size=Math.max(100-a.max-n.prevPanesSize-n.nextPanesSize,0)):(a.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,o);if(!e)return;({sums:n,panesToResize:s}=e),a=this.panes[s[0]]||null,l=this.panes[s[1]]||null}null!==a&&(a.size=Math.min(Math.max(o-n.prevPanesSize-n.prevReachedMinPanes,a.min),a.max)),null!==l&&(l.size=Math.min(Math.max(100-o-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,i=[n,n+1];return t<e.prevPanesSize+this.panes[i[0]].min&&(i[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,i[0]<n&&this.panes.forEach((t,r)=>{r>i[0]&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),void 0===i[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((t,i)=>{i>0&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,i[1]>n+1&&this.panes.forEach((t,r)=>{r>n&&r<i[1]&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),e.nextPanesSize=this.sumNextPanesSize(i[1]-1),void 0===i[1])?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((t,i)=>{i<this.panesCount-1&&i>=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,n,i)=>t+(i<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,i)=>t+(i>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.")})},addSplitter(e,t,n=!1){const i=e-1,r=document.createElement("div");r.classList.add("splitpanes__splitter"),n||(r.onmousedown=e=>this.onMouseDown(e,i),"undefined"!=typeof window&&"ontouchstart"in window&&(r.ontouchstart=e=>this.onMouseDown(e,i)),r.onclick=e=>this.onSplitterClick(e,i+1)),this.dblClickSplitter&&(r.ondblclick=e=>this.onSplitterDblClick(e,i+1)),t.parentNode.insertBefore(r,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let t=0;e.forEach(e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([e,t])=>n[e]=t)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const n=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(i)?100:i,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((e,t)=>e.index=t),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(t=>t.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((e,t)=>e.index=t),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))})})},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some(e=>null!==e.givenSize||e.min||e.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],i=[];this.panes.forEach(r=>{r.size=Math.max(Math.min(e,r.max),r.min),t-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&i.push(r.id)}),t>.1&&this.readjustSizes(t,n,i)},initialPanesSizing(){let e=100;const t=[],n=[];let i=0;this.panes.forEach(r=>{e-=r.size,null!==r.size&&i++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&n.push(r.id)});let r=100;e>.1&&(this.panes.forEach(t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-i),t.max),t.min)),r-=t.size}),r>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e}={}){let t=100/this.panesCount,n=0;const i=[],r=[];e&&null!==e.givenSize&&(t=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(e=>{n-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&r.push(e.id)}),Math.abs(n)<.1||(this.panes.forEach(o=>{e&&null!==e.givenSize&&e.id===o.id||(o.size=Math.max(Math.min(t,o.max),o.min)),n-=o.size,o.size>=o.max&&i.push(o.id),o.size<=o.min&&r.push(o.id)}),n>.1&&this.readjustSizes(n,i,r))},readjustSizes(e,t,n){let i;i=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(r=>{if(e>0&&!t.includes(r.id)){const t=Math.max(Math.min(r.size+i,r.max),r.min),n=t-r.size;e-=n,r.size=t}else if(!n.includes(r.id)){const t=Math.max(Math.min(r.size+i,r.max),r.min),n=t-r.size;e-=n,r.size=t}r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.updatePaneComponents(),this.$emit("ready"),this.ready=!0},render(){return F("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},ua={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:10},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};const ha=fe(ua,[["render",function(e,t,r,a,l,c){return i(),n("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>c.onPaneClick(t,e._.uid)),style:o(e.style)},[s(e.$slots,"default")],4)}]]);function da(e){const t=new q(new H);t.serialize(e);return t.stream.toString()}function fa(e){if(null==e||""===e)return e;return new X(new H(e)).deserialize()}class pa{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new pa;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new H,i=new q(n,this.simple,this.utc),r=t;this.simple;var o=0;for(var s in r)o++;o>0&&(n.writeByte(72),i.serialize(r),i.reset()),e instanceof Error?(n.writeByte(69),i.serialize(this.debug&&e.stack?e.stack:e.message)):(n.writeByte(82),i.serialize(e)),n.writeByte(122);const a=n.takeBytes();return this.textDecoder.decode(a)}decodeRequest(e,t={}){const n=this.textEncoder.encode(e);if(0===n.length)return["~",[]];var i=new H(n),r=new X(i,!1);r.longType=this.longType,r.dictType=this.dictType;var o=i.readByte();if(console.log("tag",o),72===o){var s=r.deserialize(this.nullType);for(var a in s)t[a]=s[a];r.reset(),o=i.readByte()}switch(o){case 67:return[r.deserialize(String),this.decodeArguments(r)];case 122:return["~",[]];default:throw new Error("Invalid request:\r\n"+i.toString())}}decodeArguments(e){var t=e.stream;let n=[];if(97===t.readByte()){e.reset();var i=G.readCount(t);const o=new Array(i).fill(this.nullType);n=new Array(i),e.addReference(n);for(var r=0;r<i;++r)n[r]=e.deserialize(o[r]);t.readByte()}return n}encodeRequest(e,t,n={}){var i=new H,r=new q(i,this.simple,this.utc),o=n;this.simple&&(o.simple=!0);var s=0;for(var a in o)s++;s>0&&(i.writeByte(72),r.serialize(o),r.reset()),i.writeByte(67),r.serialize(e),t.length>0&&(r.reset(),r.serialize(t)),i.writeByte(122);const l=i.takeBytes();return this.textDecoder.decode(l)}decodeResponse(e,t={}){const n=this.textEncoder.encode(e);var i=new H(n),r=new X(i,!1);r.longType=this.longType,r.dictType=this.dictType;var o=i.readByte();if(72===o){var s=r.deserialize();for(var a in s)t[a]=s[a];r.reset(),o=i.readByte()}switch(o){case 82:return t.simple&&(r.simple=!0),console.log(o,"9999999999"),r.deserialize();case 69:throw new Error(r.deserialize(String));case 122:return;default:throw new Error("Invalid response:\r\n"+i.toString())}}}const ga=new Map,ma=new Map;let va;const ya={getDefaultClient(){if(va||(va=new co(SysConfig?.ServiceURL.DefaultHproseAPI)),!va)throw Error("HproseProxy对象为空");return va},registerHprose(e,t){const n=ma.get(e);if(!n){const n=new co(t);ga.set(e,n)}return n},getHprose:e=>ma?.get(e),getProxyHprose:e=>ga.get(e),unregisterHprose(e){ga.get(e)&&(ma.delete(e),ga.delete(e))}},wa=5e3,ba=36e5,Sa={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},xa="access_token",Ea=Li?.Config?.ServiceURL.LoginAuthURL;function Ca(){const e=_r();e&&Rr(Sa.RefreshToken,Ea,{refreshToken:e}).then(e=>{za(e.data)})}function ka(){const e=Ar.getJsonObject(xa);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=wa?Ca():setTimeout(Ca,n-wa))}function za(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=ba?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=Lr();t?(t.token=e.accessToken.tokenContent,t.expire=e.accessToken.expires,t.refresh=e.refreshToken.tokenContent):t={token:e.accessToken.tokenContent,expire:e.accessToken.expires,refresh:e.refreshToken.tokenContent},Ar.set(xa,t,n/1e3),ka()}else Ar.remove(xa)}const Ta="Wm314243",Aa=Li?.Config?.ServiceURL.LoginAuthURL;async function La(e){const t={username:e.username,pwd:mi.encryptToString(e.pwd,Ta)},n=await Rr(Sa.Login,Aa,t),i=n?.data;return i&&(za(i.doubletoken),mo(!1)),i}function Ma(e){const t={oldpwd:mi.encryptToString(e.oldpwd,Ta),newpwd:mi.encryptToString(e.newpwd,Ta)};return Rr(Sa.ChangeMyPwd,Aa,t)}function _a(e){return mi.encryptToString(e,Ta)}function Ia(){const e=Lr();e&&(Pr(Sa.Logout,Aa,{token:e.token,reftoken:e.refresh}),Mr())}function Ra(e){return Rr(Sa.CheckToken,Aa,{token:e})}var Da,Ba;(Ba=Da||(Da={}))[Ba.Widget=0]="Widget",Ba[Ba.Route=1]="Route",Ba[Ba.URL=2]="URL",Ba[Ba.Action=3]="Action";const Pa="ROLE_SYSTEM_RIGHT",Fa=new nt("",globalThis.sessionStorage);function Oa(){return Fa.get(Pa)}function Na(e){Fa.set(Pa,e)}function $a(){Fa.remove(Pa)}function Wa(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(Wa(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function Ua(e,t,n="name"){e&&t&&e.forEach(e=>{const i=t.find(t=>t[n]===e[n]);i&&(e.children?i.children&&Ua(e.children,i.children,n):i.children&&0!==i.children.length||i.selected&&(e.selected=i.selected))})}function ja(e,t,n="name"){e&&t&&e.forEach(e=>{const i=t.find(t=>t[n]===e[n]);i&&(e.children?i.children&&ja(e.children,i.children,n):i.children&&0!==i.children.length||i.selected&&(e.selected=i.selected))})}function Ha(e,t,n,i="name"){const r=e[n],o=t[n];r?o&&ja(r,o,i):o&&(e[n]=o)}function qa(e){if(e&&e.length>0){const t=e.length;let n,i=!1;if(t>0){i=Me(e[0]);const r=i?e[0]:JSON.parse(e[0]);if(t>1)for(let t=1;t<e.length;t++){const n=e[t],o=i?n:JSON.parse(n);Ha(r,o,"routes","name"),Ha(r,o,"widgetMenu","name"),Ha(r,o,"widgets","id"),Ha(r,o,"functions","id")}n=r}return n&&(Wa(n.routes),Wa(n.widgetMenu),Wa(n.widgets),Wa(n.functions)),n}}const Xa=[],Ga=[],Ya=[];function Va(){return Oa()}async function Za(e,t=!1){$a();const n=Sa.GetSystemRights,i=Li?.Config?.ServiceURL.LoginAuthURL,r=await Rr(n,i,{systemid:e});if(!r||!r.data)return void Li.Message?.warn("无法获取功能授权列表!");const o=r.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return Na(e),e}{const e=qa(o);return Na(e),e}}}function Ka(e,t){const n={...e};return n.meta||(n.meta={}),null!=t.index&&(n.meta.index=t.index),null!=t.title&&(n.meta.title=t.title),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const i=e.children?.find(e=>e.path===t.path);if(i){const e=Ka(i,t);e&&n.children?.push(e)}})),n}function Ja(e,t=2){if(0===t)return e;const n=Va();return n&&n.routes?(Ya.length>0||e.forEach(e=>{const t=n.routes?.find(t=>t.name===e.name);if(t){const n=Ka(e,t);n&&Ya.push(n)}}),Ya):void 0}function Qa(e,t){const n={...e};return null!=t.index&&(n.index=t.index),e.children&&(n.children=[],t.children&&t.children.forEach(t=>{const i=e.children?.find(e=>e.name===t.name);if(i){const e=Qa(i,t);e&&n.children?.push(e)}})),n}function el(e,t=2){if(0===t)return e;const n=Va();return n&&n.widgetMenu?(Ga.length>0||e.forEach(e=>{const t=n.widgetMenu?.find(t=>t.name===e.name);if(t){const n=Qa(e,t);n&&Ga.push(n)}}),Ga):void 0}function tl(e,t=2){if(0===t)return e;const n=Va();return n&&n.widgets?(Xa.length>0||e?.forEach(e=>{const t=n.widgets?.find(t=>t.id===e.id);t&&Xa.push(e)}),Xa):void 0}function nl(e,t=2){if(0===t&&(Li.RightWidgetConfigMap=e,Li.RightWidgetConfigMap&&Li.RightWidgetConfigMap.size>0))return Li.RightWidgetConfigMap;const n=Va();if(n&&n.widgets){const t=new Map;if(n.widgets.forEach(e=>{const n=e.layoutID;if(n){let i;t.has(n)&&(i=t.get(n)),i||(i=new Array,t.set(n,i)),i&&i.push(e)}}),n.widgets.length=0,t.size>0){const n=new Map;for(const[i,r]of t){const t=e.get(i);if(t){const e=new Array;t.forEach(t=>{r.findIndex(e=>e.id===t.id)>=0&&e.push(t)}),e.length>0&&n.set(i,e),t.length=0}}return t.clear(),Li.RightWidgetConfigMap=n,n}return}}function il(e,t=2){if(0===t)return e;const n=Va();return n?n.functions:void 0}const rl={mounted(e,t){const n=t.value,i=n&&n.container&&document.querySelector(n.container)||document.querySelector("#map3dContainer")||document.body,r=n&&n.selector&&e.querySelector(n.selector)||e.querySelector(".drag-el")||e;r!==e&&r.classList.add("ls-draggable"),r.onmousedown=function(t){e.style.transition="none";const n=t.clientX-e.offsetLeft,r=t.clientY-e.offsetTop,o=i.offsetWidth,s=i.offsetHeight,a=e.offsetWidth,l=e.offsetHeight;"100"!==e.style.zIndex&&(e.style.zIndex=100),i.onmousemove=function(t){let i=t.clientX-n,c=t.clientY-r;i<0&&(i=0),c<0&&(c=0),i>o-a&&(i=o-a),c>s-l&&(c=s-l),e.style.left=i+"px",e.style.top=c+"px"},i.onmouseup=function(t){i.onmousemove=i.onmouseup=null,e.style.transition="all 0.3s"}}}};function ol(e){e.directive("drag",rl)}const sl={beforeMount(e,t){let n=null,i=0;const r=()=>t?.value(),o=()=>{Date.now()-i<100&&r(),n&&clearInterval(n),n=null};ao.on(e,"mousedown",e=>{0===e.button&&(i=Date.now(),ao.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(r,100))})}};function al(e){e.directive("repeatClick",sl)}const ll={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const i=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?document.documentElement.scrollHeight>document.documentElement.clientHeight?globalThis.innerHeight:document.documentElement.clientHeight:Math.min(document.documentElement.clientHeight,globalThis.innerHeight)},r=function(e,t){if(function(e){const t=globalThis.scrollY||globalThis.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+i(),r=function(e){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),o=r+e.clientHeight;return r<n&&o>=t}(e)){e.style.visibility="visible";for(const n in t)e.style[n]=t[n];"none"!=e.style["animation-name"]&&(e.style["animation-duration"]||(e.style["animation-duration"]="1s")),e.parentNode.removeEventListener("scroll",s)}};let o=Date.now();const s=function(){Date.now()-o>=100&&(r(e,n),o=Date.now())};setTimeout(function(){r(e,n)},1),e.parentNode.addEventListener("scroll",s)}};function cl(e){e.directive("wow",ll)}
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
*/const
|
|
12
|
+
*/const ul=Symbol("Comlink.proxy"),hl=Symbol("Comlink.endpoint"),dl=Symbol("Comlink.releaseProxy"),fl=Symbol("Comlink.finalizer"),pl=Symbol("Comlink.thrown"),gl=e=>"object"==typeof e&&null!==e||"function"==typeof e,ml=new Map([["proxy",{canHandle:e=>gl(e)&&e[ul],serialize(e){const{port1:t,port2:n}=new MessageChannel;return vl(e,t),[n,[n]]},deserialize:e=>(e.start(),wl(e))}],["throw",{canHandle:e=>gl(e)&&pl in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function vl(e,t=globalThis,n=["*"]){t.addEventListener("message",function i(r){if(!r||!r.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map(Al);let c;try{const t=a.slice(0,-1).reduce((e,t)=>e[t],e),n=a.reduce((e,t)=>e[t],e);switch(s){case"GET":c=n;break;case"SET":t[a.slice(-1)[0]]=Al(r.data.value),c=!0;break;case"APPLY":c=n.apply(t,l);break;case"CONSTRUCT":c=function(e){return Object.assign(e,{[ul]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;vl(e,n),c=function(e,t){return zl.set(e,t),e}(t,[t])}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[pl]:0}}Promise.resolve(c).catch(e=>({value:e,[pl]:0})).then(n=>{const[r,a]=Tl(n);t.postMessage(Object.assign(Object.assign({},r),{id:o}),a),"RELEASE"===s&&(t.removeEventListener("message",i),yl(t),fl in e&&"function"==typeof e[fl]&&e[fl]())}).catch(e=>{const[n,i]=Tl({value:new TypeError("Unserializable return value"),[pl]:0});t.postMessage(Object.assign(Object.assign({},n),{id:o}),i)})}),t.start&&t.start()}function yl(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function wl(e,t){const n=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const i=n.get(t.id);if(i)try{i(t)}finally{n.delete(t.id)}}),Cl(e,n,[],t)}function bl(e){if(e)throw new Error("Proxy has been released and is not useable")}function Sl(e){return Ll(e,new Map,{type:"RELEASE"}).then(()=>{yl(e)})}const xl=new WeakMap,El="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(xl.get(e)||0)-1;xl.set(e,t),0===t&&Sl(e)});function Cl(e,t,n=[],i=function(){}){let r=!1;const o=new Proxy(i,{get(i,s){if(bl(r),s===dl)return()=>{!function(e){El&&El.unregister(e)}(o),Sl(e),t.clear(),r=!0};if("then"===s){if(0===n.length)return{then:()=>o};const i=Ll(e,t,{type:"GET",path:n.map(e=>e.toString())}).then(Al);return i.then.bind(i)}return Cl(e,t,[...n,s])},set(i,o,s){bl(r);const[a,l]=Tl(s);return Ll(e,t,{type:"SET",path:[...n,o].map(e=>e.toString()),value:a},l).then(Al)},apply(i,o,s){bl(r);const a=n[n.length-1];if(a===hl)return Ll(e,t,{type:"ENDPOINT"}).then(Al);if("bind"===a)return Cl(e,t,n.slice(0,-1));const[l,c]=kl(s);return Ll(e,t,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:l},c).then(Al)},construct(i,o){bl(r);const[s,a]=kl(o);return Ll(e,t,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:s},a).then(Al)}});return function(e,t){const n=(xl.get(t)||0)+1;xl.set(t,n),El&&El.register(e,t,e)}(o,e),o}function kl(e){const t=e.map(Tl);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const zl=new WeakMap;function Tl(e){for(const[t,n]of ml)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:"HANDLER",name:t,value:i},r]}return[{type:"RAW",value:e},zl.get(e)||[]]}function Al(e){switch(e.type){case"HANDLER":return ml.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Ll(e,t,n,i){return new Promise(r=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(o,r),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),i)})}var Ml=Symbol("getEndpoint"),_l=e=>{const t=wl(e);return new Proxy(t,{get:(t,n,i)=>n===Ml?e:Reflect.get(t,n,i)})};const Il=_l(new Worker(new URL("/assets/worker-XXTEA-BTkdAuVi.js",import.meta.url),{type:"module"})),Rl=_l(new Worker(new URL("/assets/worker-xmath-DUFCrWrO.js",import.meta.url),{type:"module"})),Dl=_l(new Worker(new URL("/assets/worker-webcache-JMcB6mHT.js",import.meta.url),{type:"module"})),Bl=On();function Pl(e){e.addEventListener("message",({data:e})=>{Bl.emit(e.reqID,e)})}async function Fl(e,t,n){return new Promise((i,r)=>{const o=String(Date.now())+String(Math.random());e.postMessage({reqID:o,op:t,args:n}),Bl.on(o,e=>{"ok"===e.status?i(e.result):r(e.result)})})}function Ol(e,t){const n={};for(const i in e){const r=e[i];if(r)for(const e in r){const i=""+e;n[e]=(...e)=>Fl(t,i,e)}}return n}export{la as ADivider,Mo as BigFileDownload,ii as DayjsTool,Zn as Download,ur as EnumColor,oo as FileUpload,_i as GetSignalRClient,Li as Global,ya as GlobalHprose,Nn as GlobalMitt,ni as GzipTool,et as H5Tool,lo as HproseClient,pa as HproseRPCCodec,Qn as HttpDownload,Jn as JsonDownload,qs as LayoutContainer,Ns as LayoutContainerEnum,Ws as LayoutManager,go as LockState,Da as MenuItemEnum,Ys as MinWindowMap,_o as ObjToUrlParams,Ro as OpenRouterURL,ha as Pane,co as ProxyClient,js as RouterTransition,Xs as RouterTransitionAnimate,Kn as SaveAs,ei as SaveToSelectedFile,ca as Splitpanes,nt as Storage,tt as StringUtils,Ds as StyleBlack,Fs as StyleGrayblue,Ps as StyleMetal,Bs as StyleWhite,Us as SuspenseWithError,$n as SysEvents,wa as TOKEN_REFRESH_TIME,ba as TOKEN_VALID_TIMESPAN,Sa as USER_TOKEN_API,_s as VWindow,yi as WaterMark,sr as WebCacheTool,ks as WindowResizeEvent,Os as WindowType,Gs as WindowsMap,oa as XWindow,Vs as XWindowManager,mi as XXTEA,ti as ZipTool,Ss as autoRefresh,Er as calculateBestTextColor,Ma as changeMyPWD,Po as checkAddDefaultRoute,ka as checkDoRefreshToken,Ra as checkToken,Mr as clearLocalToken,$a as clearRight,yr as colorIsDark,so as createFileUpload,wr as darken,Io as deepMerge,zr as delay,fa as deserialize,ys as doCloseModal,vs as doLoadModal,Ca as doRefreshToken,mo as doSetLock,rl as dragDirective,jo as exportSystemRights,ws as filterObj,Vn as findStringPrefix,Fr as get,Gn as getCommonFileBase,Va as getCurrentSystemRight,Nr as getData,Wr as getDownload,_a as getEncryptPWD,Un as getFileBase,jn as getFileExtension,il as getFunctions,ar as getHexColor,Lr as getLocalToken,vo as getLockState,cr as getLongHexColor,Hn as getPathBase,fo as getProxyClient,lr as getRGBColor,fr as getRGBColorFromHSLA,_r as getRefreshToken,Oa as getRight,Bo as getRouteURL,Ja as getRoutes,Za as getSystemRoleRight,Uo as getTabRouteData,Do as getVueURL,tl as getWidgetConfig,nl as getWidgetConfigMap,el as getWidgetMenus,Wo as globFilterLayoutWidgetConfig,Oo as globFilterObjects,No as globFilterObjectsOld,Wa as handleNodes,vr as hexToRGB,ho as init,po as initDefaultProxyClient,Pl as initWorker,Ee as is,Fe as isArray,Re as isAsyncFunction,Pe as isBoolean,Oe as isClient,_e as isDate,ke as isDef,$e as isElement,je as isEmpty,dr as isEnumColor,He as isError,Ce as isFunction,gr as isHexColor,Ue as isImageDom,Ye as isMap,Te as isNull,Ae as isNullAndUnDef,Le as isNullOrUnDef,Ie as isNumber,Me as isObjectX,De as isPromise,We as isServer,Be as isString,Ze as isStringLikeJson,Ke as isStringLikeKml,Ge as isSymbol,ze as isUnDef,Ve as isValidURL,Xe as isWeakMap,qe as isWeakSet,Ne as isWindow,ao as jquery,br as lighten,La as login,Ia as logout,qa as mergeFilterRoleSysRight,Yn as mergeNames,Ua as mergeNodes,Ha as mergeNodesAll,ot as newGuid,bo as onLockListener,Wn as parseLocalPath,Or as post,Fo as recursiveRoutes,Ol as registerWorkerSerivces,sl as repeatDirective,qn as replaceFileExtension,Rr as requestGet,Br as requestPost,Pr as requestPostBody,mr as rgbToHex,da as serialize,za as setLocalToken,Na as setRight,ol as setupDragDirective,al as setupRepeatDirective,cl as setupWowDirective,kr as sleep,it as storage,Ar as storageHelper,Xn as toLowerCaseExtension,So as unLockListener,rt as uuid,Ko as verifiyNumberInteger,ss as verifyAccount,es as verifyAndSpace,ms as verifyCarNum,Jo as verifyCnAndSpace,hs as verifyEmail,Qo as verifyEnAndSpace,fs as verifyFullName,us as verifyIPAddress,ds as verifyIdCard,is as verifyNumberCnUppercase,ts as verifyNumberComma,Zo as verifyNumberIntegerAndFloat,Yo as verifyNumberPercentage,Vo as verifyNumberPercentageFloat,as as verifyPassword,ls as verifyPasswordPowerful,cs as verifyPasswordStrength,rs as verifyPhone,ps as verifyPostalCode,os as verifyTelPhone,ns as verifyTextColor,gs as verifyUrl,Dl as webCacheWorker,ll as wowDirective,Xo as writeIconifyList,Go as writeSysRoleRight,Rl as xmathWorker,Il as xxteaWorker};
|