xframelib 1.0.5 → 1.0.6
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 +1 -0
- package/dist/assets/worker-XXTEA-CMYO_oW7.js +6 -0
- package/dist/assets/worker-bigimage-ULYc5DiH.js +6 -0
- package/dist/assets/worker-webcache-c92UWvGr.js +6 -0
- package/dist/assets/worker-xmath-DRrB1AaK.js +14 -0
- package/dist/controls/xwindow/XWindow.vue.d.ts +8 -4
- package/dist/index.css +17 -69
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -3
- package/dist/utils/H5Tool.d.ts +1 -1
- package/package.json +14 -14
- package/dist/assets/worker-XXTEA-BTkdAuVi.js +0 -6
- package/dist/assets/worker-bigimage-DeV0Ac8X.js +0 -6
- package/dist/assets/worker-webcache-BLs0AAZo.js +0 -6
- package/dist/assets/worker-xmath-BJNVXVMo.js +0 -15
- package/dist/controls/vuewindow/SinglePointerEvent.d.ts +0 -23
- package/dist/controls/vuewindow/dom.d.ts +0 -16
- package/dist/controls/vuewindow/draggable_helper.d.ts +0 -20
- package/dist/controls/vuewindow/index.d.ts +0 -5
- package/dist/controls/vuewindow/resizable_helper.d.ts +0 -16
- package/dist/controls/vuewindow/style.d.ts +0 -110
- package/dist/controls/vuewindow/window/Button.vue.d.ts +0 -29
- package/dist/controls/vuewindow/window/index.vue.d.ts +0 -239
- package/dist/controls/vuewindow/window/utils.d.ts +0 -17
- package/dist/controls/vuewindow/z_element.d.ts +0 -11
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 z,onErrorCaptured as k,Suspense as M,createVNode as T,KeepAlive as A,resolveDynamicComponent as L,renderList as _,unref as I,normalizeClass as R,TransitionGroup as D,onUnmounted as B,useCssVars as P,h as F}from"vue";import N from"iconv-lite";export{default as iconv}from"iconv-lite";import*as O 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 G,ValueReader as X}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 ze=e=>void 0!==e,ke=e=>!ze(e);function Me(e){return null===e}function Te(e){return ke(e)&&Me(e)}function Ae(e){return ke(e)||Me(e)}const Le=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")&&Le(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 Ne=()=>"undefined"!=typeof window,Oe=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:!!Le(e)&&"{}"===JSON.stringify(e))}function He(e){return Ee(e,"Error")}function qe(e){return Ee(e,"WeakSet")}function Ge(e){return Ee(e,"WeakMap")}function Xe(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":(Le(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)}static deepCopy(e){return structuredClone(e)}}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 zt=new at(32);for(St=0;St<32;++St)zt[St]=5;var kt=Et(Ct,9,0),Mt=Et(Ct,9,1),Tt=Et(zt,5,0),At=Et(zt,5,1),Lt=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[(L=Rt(h)+4)-4]|e[L-3]<<8,b=L+w;if(b>r){l&&Pt(0);break}a&&c(d+w),n.set(e.subarray(L,b),d),t.b=d+=w,t.p=h=8*b,t.f=u;continue}if(1==y)f=Mt,p=At,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),z=new at(19),k=0;k<x;++k)z[dt[k]]=_t(e,h+3*k,7);h+=3*x;var M=Lt(z),T=(1<<M)-1,A=Et(z,M,1);for(k=0;k<E;){var L,_=A[_t(e,h,T)];if(h+=15&_,(L=_>>4)<16)C[k++]=L;else{var I=0,R=0;for(16==L?(R=3+_t(e,h,3),h+=2,I=C[k-1]):17==L?(R=3+_t(e,h,7),h+=3):18==L&&(R=11+_t(e,h,127),h+=7);R--;)C[k++]=I}}var D=C.subarray(0,S),B=C.subarray(S);g=Lt(D),m=Lt(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,N=h;;N=h){var O=(I=f[It(e,h)&P])>>4;if((h+=15&I)>v){l&&Pt(0);break}if(I||Pt(2),O<256)n[d++]=O;else{if(256==O){N=h,f=null;break}var $=O-254;if(O>264){var W=ut[k=O-257];$=_t(e,h,(1<<W)-1)+gt[k],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,G=Math.min(B,H);for(q+d<0&&Pt(3);d<G;++d)n[d]=i[q+d]}for(;d<H;++d)n[d]=n[d-B]}}t.l=f,t.p=N,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)},Nt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},Ot=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:Xt,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){Nt(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 z=$t(E,7),k=z.t,M=z.l,T=19;T>4&&!k[dt[T-1]];--T);var A,L,_,I,R=c+5<<3,D=jt(r,Ct)+jt(o,zt)+s,B=jt(r,d)+jt(o,g)+s+14+3*T+jt(E,k)+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(Nt(t,u,1+(B<D)),u+=2,B<D){A=Et(d,f,0),L=d,_=Et(g,m,0),I=g;var P=Et(k,M,0);Nt(t,u,w-257),Nt(t,u+5,x-1),Nt(t,u+10,T-4),u+=14;for(C=0;C<T;++C)Nt(t,u+3*C,k[dt[C]]);u+=3*T;for(var F=[y,S],N=0;N<2;++N){var O=F[N];for(C=0;C<O.length;++C){var $=31&O[C];Nt(t,u,P[$]),u+=k[$],$>15&&(Nt(t,u,O[C]>>5&127),u+=O[C]>>12)}}}else A=kt,L=Ct,_=Tt,I=zt;for(C=0;C<a;++C){var W=i[C];if(W>255){Ot(t,u,A[($=W>>18&31)+257]),u+=L[$+257],$>7&&(Nt(t,u,W>>23&31),u+=ut[$]);var U=31&W;Ot(t,u,_[U]),u+=I[U],U>3&&(Ot(t,u,W>>5&8191),u+=ht[U])}else Ot(t,u,A[W]),u+=L[W]}return Ot(t,u,A[256]),u+L[256]},Gt=new ct([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xt=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=Gt[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,z=o.i||0,k=0,M=o.w||0,T=0;z+2<s;++z){var A=w(z),L=32767&z,_=m[A];if(g[L]=_,m[A]=L,M<=z){var I=s-z;if((E>7e3||k>24576)&&(I>423||!c)){u=qt(e,l,0,b,S,x,C,k,T,z-T,u),k=E=C=0,T=z;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=L-_&32767;if(I>2&&A==w(z-F))for(var N=Math.min(d,I)-1,O=Math.min(32767,z),$=Math.min(258,I);F<=O&&--P&&L!=_;){if(e[z+D]==e[z+D-F]){for(var W=0;W<$&&e[z+W]==e[z+W-F];++W);if(W>D){if(D=W,B=F,W>N)break;var U=Math.min(F,W-2),j=0;for(R=0;R<U;++R){var H=z-F+R&32767,q=H-g[H]&32767;q>j&&(j=q,_=H)}}}F+=(L=_)-(_=g[L])&32767}if(B){b[k++]=268435456|mt[D]<<18|wt[B];var G=31&mt[D],X=31&wt[B];C+=ut[G]+ht[X],++S[257+G],++x[X],M=z+D,++E}else b[k++]=e[z],++S[e[z]]}}for(z=Math.max(z,M);z<s;++z)b[k++]=e[z],++S[e[z]];u=qt(e,l,c,b,S,x,C,k,T,z-T,u),c||(o.r=7&u|l[u/8|0]<<3,u-=7,o.h=m,o.p=g,o.i=z,o.w=M)}else{for(z=o.w||0;z<s+c;z+=65535){var Y=z+65535;Y>=s&&(l[u/8|0]=c,Y=s),u=Ht(l,u+1,e.subarray(z,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,Mt,At,bt,Bt,Et,Lt,_t,It,Rt,Dt,Pt,Ft,wn,an,ln]},rn=function(){return[at,lt,ct,ut,ht,dt,mt,wt,kt,Ct,Tt,zt,bt,Gt,Xt,Et,Nt,Ot,$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))}},zn="undefined"!=typeof TextEncoder&&new TextEncoder,kn="undefined"!=typeof TextDecoder&&new TextDecoder;try{kn.decode(Xt,{stream:!0})}catch(e){}function Mn(e,t){if(zn)return zn.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 Tn(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(kn)return kn.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 An=function(e,t){return t+30+un(e,t+26)+un(e,t+28)},Ln=function(e,t,n){var i=un(e,t+28),r=Tn(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=Mn(t),y=v.length,w=p.comment,b=w&&Mn(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=Ln(e,u,h),a=n[0],c=n[1],d=n[2],p=n[3],g=n[4],m=n[5],v=An(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 Nn(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 On=Nn(),$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 Gn(e){var t=jn(e);return t?Hn(e)+"."+t.toLowerCase():e}function Xn(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"):On.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),On.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=N.encode(e,"ISO-8859-1");return N.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=Ln(e,o,s),h=u[0],d=u[1],f=u[2],p=u[3],g=u[4],m=u[5],v=An(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=Mn(s)).length,d=c.comment,f=d&&Mn(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=Mn(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=Mn(e)),ni.runningInBrowser()?Sn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=Mn(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=Tn(i)),i}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=En(e);return t&&(n=Tn(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):Le(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):Le(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):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 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,zi=!1,ki=!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 Mi={Config:globalThis.SysConfig,EventBus:On,DefaultProxyClient:null,Axios:$,Message:new Ei(void 0,On),LayoutMap:new Map,getLayoutManager:e=>{if(!Ai.WidgetConfigList||0===Ai.WidgetConfigList.length)return;const t=Ai.WidgetConfigList.find(t=>t.id===e);if(t){const e=t.layoutID;if(e&&Ai.LayoutMap.has(e))return Ai.LayoutMap.get(e)}},Logger:e=>{zi||(Ci.UI.ProductLog?xi.enableAll():xi.setDefaultLevel("warn"),zi=!0);const t=e||"default";return xi.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout(()=>{document.getElementById("apploading")?.remove()},300),ki=!0;else if(e)if(ki){const t=`加载Widget:${e}……`;On.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},Ti="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(...Ti));const Ai=Mi;let Li;function _i(e){if(!e){if(Li)return Li;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(()=>{Ai.Logger().info("启动SignalR连接!")}),t.onclose(async()=>{Ai.Logger().info("断开SignalR连接!")}),t.onreconnecting(()=>{Ai.Logger().warn("SignalR服务已断线,重连中...!")}),t.onreconnected(()=>{Ai.Logger().warn("SignalR重连成功!")}),Li||(Li=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 Ni(){throw new Error("clearTimeout has not been defined")}function Oi(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:Ni}catch(e){Di=Ni}}();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=Oi(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===Ni||!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 Gi(e,t){this.fun=e,this.array=t}function Xi(){}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 Gi(e,t)),1!==Wi.length||Ui||Oi(qi)},Gi.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=Xi,Pi.addListener=Xi,Pi.once=Xi,Pi.off=Xi,Pi.removeListener=Xi,Pi.removeAllListeners=Xi,Pi.emit=Xi,Pi.prependListener=Xi,Pi.prependOnceListener=Xi,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;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#u;#h;#d;#f;#p;#g;#m;#v;#y;#w;#b;#S;#x;#E;#C;#z;#k;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#x,sizes:e.#b,keyMap:e.#h,keyList:e.#d,valList:e.#f,next:e.#p,prev:e.#g,get head(){return e.#m},get tail(){return e.#v},free:e.#y,isBackgroundFetch:t=>e.#M(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.#_(t),isStale:t=>e.#I(t)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#c}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,perf:E}=e;if(void 0!==E&&"function"!=typeof E?.now)throw new TypeError("perf option must have a now() method if specified");if(this.#l=E??Vi,0!==t&&!tr(t))throw new TypeError("max option must be a nonnegative integer");const C=t?nr(t):Array;if(!C)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.#C=!!m,this.#h=new Map,this.#d=new Array(t).fill(void 0),this.#f=new Array(t).fill(void 0),this.#p=new C(t),this.#g=new C(t),this.#m=0,this.#v=0,this.#y=rr.create(t),this.#c=0,this.#u=0,"function"==typeof l&&(this.#i=l),"function"==typeof c&&(this.#r=c),"function"==typeof u?(this.#o=u,this.#w=[]):(this.#o=void 0,this.#w=void 0),this.#E=!!this.#i,this.#k=!!this.#r,this.#z=!!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.#R()}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.#D()}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.#h.has(e)?1/0:0}#D(){const e=new ir(this.#t),t=new ir(this.#t);this.#x=e,this.#S=t,this.#B=(n,i,r=this.#l.now())=>{if(t[n]=0!==i?r:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout(()=>{this.#I(n)&&this.#P(this.#d[n],"expire")},i+1);e.unref&&e.unref()}},this.#F=n=>{t[n]=0!==e[n]?this.#l.now():0},this.#N=(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=this.#l.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.#h.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.#I=r=>{const o=t[r],s=e[r];return!!s&&!!o&&(n||i())-o>s}}#F=()=>{};#N=()=>{};#B=()=>{};#I=()=>!1;#R(){const e=new ir(this.#t);this.#u=0,this.#b=e,this.#O=t=>{this.#u-=e[t],e[t]=0},this.#$=(e,t,n,i)=>{if(this.#M(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.#W=(t,n,i)=>{if(e[t]=n,this.#n){const n=this.#n-e[t];for(;this.#u>n;)this.#U(!0)}this.#u+=e[t],i&&(i.entrySize=n,i.totalCalculatedSize=this.#u)}}#O=e=>{};#W=(e,t,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.#c)for(let t=this.#v;this.#j(t)&&(!e&&this.#I(t)||(yield t),t!==this.#m);)t=this.#g[t]}*#_({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#j(t)&&(!e&&this.#I(t)||(yield t),t!==this.#v);)t=this.#p[t]}#j(e){return void 0!==e&&this.#h.get(this.#d[e])===e}*entries(){for(const e of this.#L())void 0===this.#f[e]||void 0===this.#d[e]||this.#M(this.#f[e])||(yield[this.#d[e],this.#f[e]])}*rentries(){for(const e of this.#_())void 0===this.#f[e]||void 0===this.#d[e]||this.#M(this.#f[e])||(yield[this.#d[e],this.#f[e]])}*keys(){for(const e of this.#L()){const t=this.#d[e];void 0===t||this.#M(this.#f[e])||(yield t)}}*rkeys(){for(const e of this.#_()){const t=this.#d[e];void 0===t||this.#M(this.#f[e])||(yield t)}}*values(){for(const e of this.#L()){void 0===this.#f[e]||this.#M(this.#f[e])||(yield this.#f[e])}}*rvalues(){for(const e of this.#_()){void 0===this.#f[e]||this.#M(this.#f[e])||(yield this.#f[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const n of this.#L()){const i=this.#f[n],r=this.#M(i)?i.__staleWhileFetching:i;if(void 0!==r&&e(r,this.#d[n],this))return this.get(this.#d[n],t)}}forEach(e,t=this){for(const n of this.#L()){const i=this.#f[n],r=this.#M(i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,this.#d[n],this)}}rforEach(e,t=this){for(const n of this.#_()){const i=this.#f[n],r=this.#M(i)?i.__staleWhileFetching:i;void 0!==r&&e.call(t,r,this.#d[n],this)}}purgeStale(){let e=!1;for(const t of this.#_({allowStale:!0}))this.#I(t)&&(this.#P(this.#d[t],"expire"),e=!0);return e}info(e){const t=this.#h.get(e);if(void 0===t)return;const n=this.#f[t],i=this.#M(n)?n.__staleWhileFetching:n;if(void 0===i)return;const r={value:i};if(this.#x&&this.#S){const e=this.#x[t],n=this.#S[t];if(e&&n){const t=e-(this.#l.now()-n);r.ttl=t,r.start=Date.now()}}return this.#b&&(r.size=this.#b[t]),r}dump(){const e=[];for(const t of this.#L({allowStale:!0})){const n=this.#d[t],i=this.#f[t],r=this.#M(i)?i.__staleWhileFetching:i;if(void 0===r||void 0===n)continue;const o={value:r};if(this.#x&&this.#S){o.ttl=this.#x[t];const e=this.#l.now()-this.#S[t];o.start=Math.floor(Date.now()-e)}this.#b&&(o.size=this.#b[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=this.#l.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.#$(e,t,n.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let u=0===this.#c?void 0:this.#h.get(e);if(void 0===u)u=0===this.#c?this.#v:0!==this.#y.length?this.#y.pop():this.#c===this.#t?this.#U(!1):this.#c,this.#d[u]=e,this.#f[u]=t,this.#h.set(e,u),this.#p[this.#v]=u,this.#g[u]=this.#v,this.#v=u,this.#c++,this.#W(u,c,a),a&&(a.set="add"),l=!1,this.#k&&this.#r?.(t,e,"add");else{this.#A(u);const n=this.#f[u];if(t!==n){if(this.#C&&this.#M(n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;void 0===t||o||(this.#E&&this.#i?.(t,e,"set"),this.#z&&this.#w?.push([t,e,"set"]))}else o||(this.#E&&this.#i?.(n,e,"set"),this.#z&&this.#w?.push([n,e,"set"]));if(this.#O(u),this.#W(u,c,a),this.#f[u]=t,a){a.set="replace";const e=n&&this.#M(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.#x||this.#D(),this.#x&&(l||this.#B(u,i,r),a&&this.#N(a,u)),!o&&this.#z&&this.#w){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}return this}pop(){try{for(;this.#c;){const e=this.#f[this.#m];if(this.#U(!0),this.#M(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#z&&this.#w){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}}}#U(e){const t=this.#m,n=this.#d[t],i=this.#f[t];return this.#C&&this.#M(i)?i.__abortController.abort(new Error("evicted")):(this.#E||this.#z)&&(this.#E&&this.#i?.(i,n,"evict"),this.#z&&this.#w?.push([i,n,"evict"])),this.#O(t),e&&(this.#d[t]=void 0,this.#f[t]=void 0,this.#y.push(t)),1===this.#c?(this.#m=this.#v=0,this.#y.length=0):this.#m=this.#p[t],this.#h.delete(n),this.#c--,t}has(e,t={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=t,r=this.#h.get(e);if(void 0!==r){const e=this.#f[r];if(this.#M(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#I(r))return n&&this.#F(r),i&&(i.has="hit",this.#N(i,r)),!0;i&&(i.has="stale",this.#N(i,r))}else i&&(i.has="miss");return!1}peek(e,t={}){const{allowStale:n=this.allowStale}=t,i=this.#h.get(e);if(void 0===i||!n&&this.#I(i))return;const r=this.#f[i];return this.#M(r)?r.__staleWhileFetching:r}#T(e,t,n,i){const r=void 0===t?void 0:this.#f[t];if(this.#M(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,d=this.#f[t];return(d===u||l&&r&&void 0===d)&&(void 0===i?void 0!==h.__staleWhileFetching?this.#f[t]=h.__staleWhileFetching:this.#P(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.#f[t]===u){!l||void 0===c.__staleWhileFetching?this.#P(e,"fetch"):s||(this.#f[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.#h.get(e)):this.#f[t]=h,h}#M(e){if(!this.#C)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.#C)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.#h.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.#f[w];if(this.#M(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.#I(w);if(!g&&!r)return m&&(m.fetch="hit"),this.#A(w),i&&this.#F(w),m&&this.#N(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.#h.get(e);if(void 0!==s){const t=this.#f[s],a=this.#M(t);return o&&this.#N(o,s),this.#I(s)?(o&&(o.get="stale"),a?(o&&n&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),n?t.__staleWhileFetching:void 0):(r||this.#P(e,"expire"),o&&n&&(o.returnedStale=!0),n?t:void 0)):(o&&(o.get="hit"),a?t.__staleWhileFetching:(this.#A(s),i&&this.#F(s),t))}o&&(o.get="miss")}#H(e,t){this.#g[t]=e,this.#p[e]=t}#A(e){e!==this.#v&&(e===this.#m?this.#m=this.#p[e]:this.#H(this.#g[e],this.#p[e]),this.#H(this.#v,e),this.#v=e)}delete(e){return this.#P(e,"delete")}#P(e,t){let n=!1;if(0!==this.#c){const i=this.#h.get(e);if(void 0!==i)if(n=!0,1===this.#c)this.#q(t);else{this.#O(i);const n=this.#f[i];if(this.#M(n)?n.__abortController.abort(new Error("deleted")):(this.#E||this.#z)&&(this.#E&&this.#i?.(n,e,t),this.#z&&this.#w?.push([n,e,t])),this.#h.delete(e),this.#d[i]=void 0,this.#f[i]=void 0,i===this.#v)this.#v=this.#g[i];else if(i===this.#m)this.#m=this.#p[i];else{const e=this.#g[i];this.#p[e]=this.#p[i];const t=this.#p[i];this.#g[t]=this.#g[i]}this.#c--,this.#y.push(i)}}if(this.#z&&this.#w?.length){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}return n}clear(){return this.#q("delete")}#q(e){for(const t of this.#_({allowStale:!0})){const n=this.#f[t];if(this.#M(n))n.__abortController.abort(new Error("deleted"));else{const i=this.#d[t];this.#E&&this.#i?.(n,i,e),this.#z&&this.#w?.push([n,i,e])}}if(this.#h.clear(),this.#f.fill(void 0),this.#d.fill(void 0),this.#x&&this.#S&&(this.#x.fill(0),this.#S.fill(0)),this.#b&&this.#b.fill(0),this.#m=0,this.#v=0,this.#y.length=0,this.#u=0,this.#c=0,this.#z&&this.#w){const e=this.#w;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()}}class ar{static CharCodes=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"];static matrix2=[[3,4],[1,2]];static matrix3=[[7,8,9],[4,5,6],[1,2,3]];static matrix4=[["21","22","23","24","25"],["16","17","18","19","20"],["11","12","13","14","15"],["06","07","08","09","10"],["01","02","03","04","05"]];static matrix5=[["C","D"],["A","B"]];static dmsToDecimal(e){let t=1;if(e.direction)switch(e.direction){case"W":case"S":t=-1;break;default:t=1}return(Math.abs(e.degrees)+e.minutes/60+e.seconds/3600)*t}static xToDMS(e,t="E"){let n=t;e<0&&(n="W");const i=Math.abs(e);return this.decimalToDms(i,n)}static yToDMS(e,t="N"){let n=t;e<0&&(n="S");const i=Math.abs(e);return this.decimalToDms(i,n)}static decimalToDms(e,t){const n=Math.floor(e),i=60*(e-n),r=Math.floor(i);return{degrees:n,minutes:r,seconds:60*(i-r),direction:t}}static prefixInteger(e,t){return(Array(t).join("0")+e).slice(-t)}static serializeGrid1(e,t){const n="W"===e.direction?-1:1,i=2*e.degrees+Math.floor(e.minutes/30+1),r=this.prefixInteger(i*n+360,3),o="S"===t.direction?1:-1,s=(2*t.degrees+Math.floor(t.minutes/30+1))*o+180;return`${r}${this.CharCodes[Math.floor(s/24)]+this.CharCodes[s%24]}`}static deserializeGrid1(e){const t=e.substring(0,3);let n=Number.parseInt(t)-360,i="E";n<0&&(i="W",n=Math.abs(n)),n-=1;const r=Math.floor(n/2),o={degrees:r,minutes:30*(n-2*r),seconds:0,direction:i},s=e.substring(3,4),a=e.substring(4,5);let l=24*this.CharCodes.indexOf(s)+this.CharCodes.indexOf(a)-180,c="S";l<0&&(c="N",l=Math.abs(l)),l-=1;const u=Math.floor(l/2);return[o,{degrees:u,minutes:30*(l-2*u),seconds:0,direction:c}]}static serializeGrid2(e,t){const n=e.minutes%30,i=Math.floor(n/15),r=t.minutes%30,o=Math.floor(r/15);return this.matrix2[o][i]}static deserializeGrid2(e){return this.deserializeGrid6(e)}static serializeGrid3(e,t){const n=e.minutes%15,i=Math.floor(n/5),r=t.minutes%15,o=Math.floor(r/5);return this.matrix3[o][i]}static deserializeGrid3(e){return this.deserializeGrid7(e)}static serializeGrid4(e,t){const n=e.minutes%5,i=t.minutes%5;return this.matrix4[i][n]}static deserializeGrid4(e){return this.deserializeGrid8(e)}static serializeGrid5(e,t){const n=Math.floor(e.seconds/30),i=Math.floor(t.seconds/30);return this.matrix5[i][n]}static deserializeGrid5(e){let t=0,n=0;switch(e){case"C":t=0,n=0;break;case"D":t=1,n=0;break;case"A":t=0,n=1;break;case"B":t=1,n=1}return[30*t,30*n]}static serializeGrid6(e,t){const n=e.seconds%30,i=Math.floor(n/15),r=t.seconds%30,o=Math.floor(r/15);return this.matrix2[o][i]}static deserializeGrid6(e){let t=0,n=0;switch(e){case"3":t=0,n=0;break;case"4":t=1,n=0;break;case"1":t=0,n=1;break;case"2":t=1,n=1}return[15*t,15*n]}static serializeGrid7(e,t){const n=e.seconds%15,i=Math.floor(n/5),r=t.seconds%15,o=Math.floor(r/5);return this.matrix3[o][i]}static deserializeGrid7(e){const t=Number.parseInt(e);let n=!1,i=0,r=0;for(let e=0;e<3;e++){for(let o=0;o<3;o++)if(this.matrix3[e][o]===t){i=e,r=o,n=!0;break}if(n)break}return[5*r,5*i]}static serializeGrid8(e,t){const n=Math.floor(e.seconds%5),i=Math.floor(t.seconds%5);return this.matrix4[i][n]}static deserializeGrid8(e){let t=!1,n=0,i=0;for(let r=0;r<5;r++){for(let o=0;o<5;o++)if(this.matrix4[r][o]===e){n=r,i=o,t=!0;break}if(t)break}return[i,n]}static serializeGrid9(e,t){const n=Math.floor(1e3*(e.seconds-Math.floor(e.seconds))),i=Math.floor(n/125),r=Math.floor(1e3*(t.seconds-Math.floor(t.seconds))),o=Math.floor(r/125);return this.prefixInteger(8*(7-o)+i+1,2)}static deserializeGrid9(e){const t=Number.parseInt(e)-1,n=7-Math.floor(t/8);return[.125*(t-8*(7-n)),.125*n]}static serializeWarGrid(e,t,n=1){let i=this.serializeGrid1(e,t);return n>=2&&(i+=this.serializeGrid2(e,t),n>=3&&(i+=this.serializeGrid3(e,t),n>=4&&(i+=this.serializeGrid4(e,t),n>=5&&(i+=this.serializeGrid5(e,t),n>=6&&(i+=this.serializeGrid6(e,t),n>=7&&(i+=this.serializeGrid7(e,t),n>=8&&(i+=this.serializeGrid8(e,t),n>=9&&(i+=this.serializeGrid9(e,t))))))))),i}static deserializeWarGrid(e){const t=e.length;if(t<5)throw new Error("编码长度不小于5个");const[n,i]=this.deserializeGrid1(e);let r=[0,0];return t>=6&&(r=this.deserializeGrid2(e.substring(5,6)),n.minutes+=r[0],i.minutes+=r[1],t>=7&&(r=this.deserializeGrid3(e.substring(6,7)),n.minutes+=r[0],i.minutes+=r[1],t>=9&&(r=this.deserializeGrid4(e.substring(7,9)),n.minutes+=r[0],i.minutes+=r[1],t>=10&&(r=this.deserializeGrid5(e.substring(9,10)),n.seconds+=r[0],i.seconds+=r[1],t>=11&&(r=this.deserializeGrid6(e.substring(10,11)),n.seconds+=r[0],i.seconds+=r[1],t>=12&&(r=this.deserializeGrid7(e.substring(11,12)),n.seconds+=r[0],i.seconds+=r[1],t>=14&&(r=this.deserializeGrid8(e.substring(12,14)),n.seconds+=r[0],i.seconds+=r[1],t>=16&&(r=this.deserializeGrid9(e.substring(14,16)),n.seconds+=r[0],i.seconds+=r[1])))))))),[n,i]}}function lr(e,t){const n={};return Object.keys(e).filter(e=>t.includes(e)).forEach(t=>{n[t]=e[t]}),n}function cr(e=100,t=0){return Math.floor(Math.random()*(e-t+1))+t}function ur(e){if(!e)return;const t=e.length;if(0===t)return;return e[Math.floor(Math.random()*t)]}function hr(e,t="image/png"){let n=t,i="";const r=e.split(",");if(2===r.length){const e=r[0]?.match(/:(.*?);/);n=e[1],i=atob(r[1])}else i=atob(r[0]);let o=i.length;const s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);return new Blob([s],{type:n})}function dr(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=n,i.readAsDataURL(e)})}function fr(e,t,n){return e.split(t).join(n)}function pr(e,t=2){const n=Math.pow(10,t);return Math.round(e*n)/n}function gr(e,t=!0,n=!0){const i=n?e>0?"E":"W":e>0?"N":"S",r=Math.floor(e),o=60*(e-r),s=Math.floor(o),a=60*(o-s);if(t)return`${i}:${r}°${s}′${a.toFixed(3)}″`;return{degree:r*(e>0?1:-1),minute:s,second:a}}function mr(e,t=3){const n=Math.floor(e),i=60*(e-n),r=Math.floor(i);return`${n} ${r} ${(60*(i-r)).toFixed(t)}`}function vr(e,t=3){const n=Math.floor(e),i=60*(e-n),r=Math.floor(i);return{degree:n,minute:r,second:pr(60*(i-r),t)}}function yr(e,t,n){return e+t/60+n/3600}function wr(e,t=-1){const n=e.split(" ");if(!n||3!=n.length)return-1;const i=Number(n[0]),r=Number(n[1]),o=Number(n[2]);return i===Number.NaN||r===Number.NaN||o===Number.NaN?-1:-1!=t?pr(i+r/60+o/3600,t):i+r/60+o/3600}function br(e){const t=e.match(/^([EWNS]):?(\d+)[°ºd](\d+)[′'m](\d+\.?\d*)[″"s]?$/i);if(!t)return NaN;let n=parseFloat(t[2])+parseFloat(t[3])/60+parseFloat(t[4])/3600;return(e.toUpperCase().startsWith("W")||e.toUpperCase().startsWith("S"))&&(n=-n),n}const Sr=Object.freeze(Object.defineProperty({__proto__:null,base64ToBlob:hr,blobToDataURL:dr,convertDecimalism:gr,convertDecimalismData:vr,convertDecimalismSpacing:mr,convertToDecimalism:yr,convertToDecimalismByString:wr,convertToDecimalismByString2:br,filterObj:lr,getRandomInt:cr,getRandomItem:ur,replaceAll:fr,reserveDecimal:pr},Symbol.toStringTag,{value:"Module"}));function xr(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 Er(e){var t=e.toLowerCase();if(Lr(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 zr,kr;function Mr(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?zr.Hex:"r"===t||"("===t?zr.RGBA:"h"===t?zr.Hsla:zr.RGBA}function Tr(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=Ar(c,l,o+1/3),i=Ar(c,l,o),r=Ar(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 Ar(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 Lr(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function _r(e,t,n){const i=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(i.length-7)).join("0")+i}function Ir(e){let t=e.toLowerCase();if(Lr(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 Rr(e){if(!Lr(e))return;const[t,n,i]=Ir(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map(e=>Number(e));return.299*t+.578*n+.114*i<192}function Dr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Or(e.substring(0,2),t)}${Or(e.substring(2,4),t)}${Or(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),`#${Pr(e.substring(0,2),t)}${Pr(e.substring(2,4),t)}${Pr(e.substring(4,6),t)}`}function Pr(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 Fr(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 Nr(e){const t=Ir(e.substring(1));var n,i;return(n=t.split(","),i=[0,0,0],(Fr(~~n[0],~~n[1],~~n[2])+.05)/(Fr(i[0],i[1],i[2])+.05))>=12?"#000000":"#FFFFFF"}function Or(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 $r(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${Wr}毫秒`)}function Wr(e){return new Promise(t=>setTimeout(t,e))}(kr=zr||(zr={}))[kr.RGBA=0]="RGBA",kr[kr.Hex=1]="Hex",kr[kr.Hsla=2]="Hsla";const Ur="access_token",jr=new nt("user",globalThis.localStorage);function Hr(){return jr.get(Ur)}function qr(){jr.remove(Ur)}function Gr(){const e=Hr();return e?.refresh}function Xr(e,t,n,i="json",r){const o={baseURL:Ai.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 "+Hr()?.token},responseType:i,cancelToken:r};if(n)for(let e in n)o.headers[e]=n[e];return Ai.SystemID&&(o.headers.sysid=Ai.SystemID,Ai.SystemGroup&&(o.headers.sysgroup=Ai.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function Yr(e,t,n,i,r="json",o,s){const a=Xr(n,t,i,r,o);return s&&s>=2e4&&(a.timeout=s),Ai.Axios?.get(e,a).catch(function(t){Vr(t,a.baseURL,e,"Get")})}function Vr(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(Ai.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 Zr(e,t,n,i,r,o="json",s){const a=Xr(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,to(e))}):t.append(n,to(i)))});return t}(n);return Ai.Axios?.post(e,l,a).catch(function(e){Vr(e,t,a.baseURL,"Post")})}function Kr(e,t,n,i,r,o="json",s){const a=Xr(i,t,r,o);return s&&s>=2e4&&(a.timeout=s),Ai.Axios?.post(e,n,a).catch(function(n){Vr(n,t,e,"Post")})}function Jr(e,t,n=!1){return e.startsWith("http")?Yr("",e,t):n||t?Yr(e,void 0,t):Yr(e,"",void 0)}function Qr(e,t){return Zr(e,void 0,t)}function eo(e,t){return Ai.Axios?.get(e,{params:t}).catch(function(t){Vr(t,e,"","外部Get")})}function to(e){return e instanceof Blob?e:e.toString()}function no(e,t,n){const i=t??tt.getFileName(e);Yr("",e,n,void 0,"blob").then(e=>{e.data&&Zn(e.data,i)})}var io,ro,oo,so,ao,lo,co,uo,ho,fo={exports:{}};function po(){return ro?io:(ro=1,e="undefined"!=typeof window?window:void 0!==me?me:"undefined"!=typeof self?self:{},io=e);var e}function go(){if(so)return oo;so=1,oo=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 oo}function mo(){if(lo)return ao;lo=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return ao=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},ao}var vo=function(){if(ho)return fo.exports;ho=1;var e=po(),t=go(),n=mo(),i=function(){if(uo)return co;uo=1,co=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 co}();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 fo.exports=o,fo.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)}}),fo.exports}();const yo=ve(vo),wo=[200,201,202,204,308],bo=[408,502,503,504];class So{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=Nn(),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?Wr(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 Wr(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=yo({...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(wo.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),Wr(1e3).then(t=>this.sendChunks(e))}}else if(null!=t&&bo.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 xo=e=>new So(e);const Eo=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 Co{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!tt.isNullOrEmpty(e)){if(Co.httpTransport||(Co.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")):On.emit($n.HproseServiceErrorEvent,"初始化默认Hprose!")})}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 zo{hproseClient;hpProxyObj;defaultContext=new j;constructor(e){this.hproseClient=new Co(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const i=n.httpRequestHeaders,r=Hr();r&&(i.token=r.token),Ai.SystemID&&(i.sysid=Ai.SystemID,Ai.SystemGroup&&(i.sysgroup=Ai.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||On.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=Hr();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 ko=new Map,Mo=function(e,t,n){Ai.Config?.ServiceURL&&Ai.Config?.ServiceURL.DefaultHproseAPI&&(Ai.Config.DefaultHproseAPI=Ai.Config?.ServiceURL.DefaultHproseAPI,Ai.DefaultProxyClient=new zo(Ai.Config?.ServiceURL.DefaultHproseAPI));const i=Ai.Config.UI.GrayMode;i&&et.setGrayMode(i);const r=new Ei(e,Ai.EventBus);Ai.Message=r,Ai.SystemID=t,Ai.SystemGroup=n,Ai.EventBus.on($n.HproseServiceErrorEvent,e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)}),Ai.EventBus.on($n.WebAPIErrorEvent,e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)}),Ai.EventBus.on($n.AxiosRequestErrorEvent,e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)}),Ai.EventBus.on($n.CommonWarnEvent,e=>{r.warn(e)})};function To(e){if(e&&tt.isNotEmpty(e)){if(ko.has(e))return ko.get(e);{const t=new zo(e);return ko.set(e,t),t}}}function Ao(e){const t=To(e);return t&&(Ai.DefaultProxyClient=t),t}const Lo=a({isLock:!1,lockTime:0});function _o(e){Lo.isLock=e,e&&(qr(),console.log("锁屏了……"))}function Io(){return Lo.isLock}let Ro;function Do(){clearInterval(Ro);globalThis.location.href.indexOf("/login")>0||Lo.isLock||(_o(!1),Lo.lockTime=function(){let e=3600;return Ai.Config.UI?.LockTime&&Ai.Config.UI?.LockTime>=10&&(e=Ai.Config.UI.LockTime),e}(),Ro=setInterval(()=>{if(Lo.lockTime--,Lo.lockTime<=0)return _o(!0),clearInterval(Ro)},1e3))}function Bo(){Do(),document.addEventListener("mousedown",Do),document.addEventListener("mousemove",Do)}function Po(){document.removeEventListener("mousedown",Do),document.removeEventListener("mousemove",Do)}function Fo(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 No,Oo={exports:{}};
|
|
1
|
+
import{markRaw as e,nextTick as t,ref as n,defineComponent as r,onErrorCaptured as i,renderSlot as o,createBlock as s,createTextVNode as a,toDisplayString as l,openBlock as c,Suspense as u,withCtx as h,createElementVNode as f,resolveComponent as d,createVNode as p,createCommentVNode as g,KeepAlive as m,resolveDynamicComponent as v,watch as y,computed as w,onMounted as b,createElementBlock as S,normalizeStyle as C,Fragment as E,renderList as x,unref as k,normalizeClass as M,TransitionGroup as z,reactive as T,onUnmounted as A,Transition as _,withDirectives as R,withModifiers as I,vShow as L,useCssVars as D,h as P}from"vue";import N from"axios";import{Client as O,ClientContext as B}from"@hprose/rpc-core";import{ByteStream as F,Writer as W,Reader as U,ValueReader as j}from"@hprose/io";import{HttpTransport as $}from"@hprose/rpc-html5";import H from"iconv-lite";export{default as iconv}from"iconv-lite";import*as G from"@microsoft/signalr";import q from"qs";import{Icon as X}from"@iconify/vue";function V(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 K=V();var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J,Q={exports:{}},ee=Q.exports,te=(J||(J=1,function(e){var t,n;t=ee,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 l(){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 c(e){return function(){typeof console!==t&&(l.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)||c.apply(this,arguments)}function h(e,n){var s,a,c,h=this,f="loglevel";function d(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(f),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.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?f+=":"+e:"symbol"==typeof e&&(f=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=(r[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+n+";"}catch(e){}}}(c),l.call(h)},h.setDefaultLevel=function(e){a=p(e),d()||h.setLevel(e,!1)},h.resetLevel=function(){c=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; 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 i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var g=d();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=i[e];return t||(t=i[e]=new h(e,o.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=f),o},o.getLoggers=function(){return i},o.default=o,o},e.exports?e.exports=n():t.log=n()}(Q)),Q.exports);const ne={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"};class re{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(ne.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 ie=globalThis.SysConfig,oe=!1,se=!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 ae={Config:globalThis.SysConfig,EventBus:K,DefaultProxyClient:null,Axios:N,Message:new re(void 0,K),LayoutMap:new Map,getLayoutManager:e=>{if(!ce.WidgetConfigList||0===ce.WidgetConfigList.length)return;const t=ce.WidgetConfigList.find((t=>t.id===e));if(t){const e=t.layoutID;if(e&&ce.LayoutMap.has(e))return ce.LayoutMap.get(e)}},Logger:e=>{oe||(ie.UI.ProductLog?te.enableAll():te.setDefaultLevel("warn"),oe=!0);const t=e||"default";return te.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout((()=>{document.getElementById("apploading")?.remove()}),300),se=!0;else if(e)if(se){const t=`加载Widget:${e}……`;K.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},le="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(...le));const ce=ae;var ue=(e=>(e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.centerBack=2]="centerBack",e[e.centerMain=3]="centerMain",e[e.centerFront=4]="centerFront",e[e.left=5]="left",e[e.right=6]="right",e))(ue||{});const he=Object.prototype.toString;function fe(e,t){return he.call(e)===`[object ${t}]`}function de(e){return fe(e,"Function")}const pe=e=>void 0!==e,ge=e=>!pe(e);function me(e){return null===e}function ve(e){return ge(e)&&me(e)}function ye(e){return ge(e)||me(e)}const we=e=>null!=e&&null!==e&&fe(e,"Object");function be(e){return fe(e,"Date")}function Se(e){return fe(e,"Number")}function Ce(e){return fe(e,"AsyncFunction")}function Ee(e){return fe(e,"Promise")&&we(e)&&de(e.then)&&de(e.catch)}function xe(e){return fe(e,"String")}function ke(e){return!0===e||!1===e||fe(e,"Boolean")}function Me(e){return e&&Array.isArray(e)}const ze=()=>"undefined"!=typeof window,Te=e=>"undefined"!=typeof window&&fe(e,"Window"),Ae=e=>he.call(e).startsWith("[object HTML")&&!!e.tagName,_e="undefined"==typeof window;function Re(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function Ie(e){return null==e||(xe(e)||Me(e)?0===e.length:!!we(e)&&"{}"===JSON.stringify(e))}function Le(e){return fe(e,"Error")}function De(e){return fe(e,"WeakSet")}function Pe(e){return fe(e,"WeakMap")}function Ne(e){return fe(e,"Symbol")}function Oe(e){return fe(e,"Map")}const Be=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 Fe(e){return/^\s*[{[]/.test(String(e))}function We(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}class Ue{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 je{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!Ue.isNullOrEmpty(e)){if(je.httpTransport||(je.httpTransport=new $),this.client=new O(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")):K.emit(ne.HproseServiceErrorEvent,"初始化默认Hprose!")}))}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 $e{constructor(e="",t=globalThis.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 He=new $e("",globalThis.localStorage),Ge="access_token",qe=new $e("user",globalThis.localStorage);function Xe(){return qe.get(Ge)}function Ve(){qe.remove(Ge)}function Ke(){const e=Xe();return e?.refresh}class Ye{hproseClient;hpProxyObj;defaultContext=new B;constructor(e){this.hproseClient=new je(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=Xe();return i&&(r.token=i.token),ce.SystemID&&(r.sysid=ce.SystemID,ce.SystemGroup&&(r.sysgroup=ce.SystemGroup)),new B(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||K.emit(ne.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=Xe();return console.log(r,"userToken3"),r&&(t||(t=new B({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new F(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 F.toString(r)}}var Ze,Je={exports:{}},Qe=(Ze||(Ze=1,Je.exports=function(){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(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 n(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 i(e){var r,i,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=c;r+=64)t(u,n(e.substring(r-64,r)));for(i=(e=e.substring(r-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=0;r<i;r+=1)o[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(o[r>>2]|=128<<(r%4<<3),r>55)for(t(u,o),r=0;r<16;r+=1)o[r]=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,t(u,o),u}function o(e){var n,i,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=c;n+=64)t(u,r(e.subarray(n-64,n)));for(i=(e=n-64<c?e.subarray(n-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<i;n+=1)o[n>>2]|=e[n]<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(t(u,o),n=0;n<16;n+=1)o[n]=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,t(u,o),u}function s(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function a(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function c(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 u(){this.reset()}return a(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(t,n){var r,i,o,s,a=this.byteLength,l=e(t,a),c=a;return undefined!==n&&(c=e(n,a)),l>c?new ArrayBuffer(0):(r=c-l,i=new ArrayBuffer(r),o=new Uint8Array(i),s=new Uint8Array(this,l,r),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(l(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var r,i=this._buff.length;for(r=64;r<=i;r+=64)t(this._hash,n(this._buff.substring(r-64,r)));return this._buff=this._buff.substring(r-64),this},u.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=a(this._hash),e&&(n=c(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,n){var r,i,o,s=n;if(e[s>>2]|=128<<(s%4<<3),s>55)for(t(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,t(this._hash,e)},u.hash=function(e,t){return u.hashBinary(l(e),t)},u.hashBinary=function(e,t){var n=a(i(e));return t?c(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var n,i=function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e)),n.set(new Uint8Array(t),e.byteLength),n}(this._buff.buffer,e),o=i.length;for(this._length+=e.byteLength,n=64;n<=o;n+=64)t(this._hash,r(i.subarray(n-64,n)));return this._buff=n-64<o?new Uint8Array(i.buffer.slice(n-64)):new Uint8Array(0),this},u.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=a(this._hash),e&&(n=c(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e=u.prototype.getState.call(this);return e.buff=function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}(e.buff),e},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(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}(e.buff,!0),u.prototype.setState.call(this,e)},u.ArrayBuffer.prototype.destroy=u.prototype.destroy,u.ArrayBuffer.prototype._finish=u.prototype._finish,u.ArrayBuffer.hash=function(e,t){var n=a(o(new Uint8Array(e)));return t?c(n):n},u}()),Je.exports);const et=Z(Qe),tt=[];let nt;class rt{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){rt.addHandler(window,"resize",e)}static offWindowResizeHandler(e){rt.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 r=new window.ActiveXObject("WScript.Shell");null!==r&&r.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!!rt.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=rt.isFullScreen();e(t)})):document.addEventListener("MSFullscreenChange",(function(){const t=rt.isFullScreen();e(t)}))}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==tt.indexOf(t))return;tt.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,rt.stringifyCircularHandler);return tt.length=0,t}static jsonParse(e){const t=rt.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,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=new et.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result);const n=o.end(!1);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 l=new et.ArrayBuffer,c=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;c.readAsArrayBuffer(r.call(i,e,t))}c.onload=function(e){if(l.append(e.target?.result),a++,a<s)u();else{const e=l.end(!1);t({isOK:!0,data:e})}},c.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return et.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})):rt.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{return document.execCommand("copy"),n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(e){if(!navigator.clipboard)return rt.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){rt.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");globalThis.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=xe(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"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(xe(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(!Ae(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){rt.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 xe(e)?r=(Fe(e)?"json":We(e)&&"kml")||"text":(we(e)&&e.type||Me(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(Be(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;nt=t=>{n.pasteEventHanlder(t,e)},rt.addHandler(t,"paste",nt)}static offPasteHandler(e=document){nt&&rt.removeHandler(e,"paste",nt)}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)}static deepCopy(e){return structuredClone(e)}}const it=new Map,ot=function(e,t,n){ce.Config?.ServiceURL&&ce.Config?.ServiceURL.DefaultHproseAPI&&(ce.Config.DefaultHproseAPI=ce.Config?.ServiceURL.DefaultHproseAPI,ce.DefaultProxyClient=new Ye(ce.Config?.ServiceURL.DefaultHproseAPI));const r=ce.Config.UI.GrayMode;r&&rt.setGrayMode(r);const i=new re(e,ce.EventBus);ce.Message=i,ce.SystemID=t,ce.SystemGroup=n,ce.EventBus.on(ne.HproseServiceErrorEvent,(e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)})),ce.EventBus.on(ne.WebAPIErrorEvent,(e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)})),ce.EventBus.on(ne.AxiosRequestErrorEvent,(e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)})),ce.EventBus.on(ne.CommonWarnEvent,(e=>{i.warn(e)}))};function st(e){if(e&&Ue.isNotEmpty(e)){if(it.has(e))return it.get(e);{const t=new Ye(e);return it.set(e,t),t}}}function at(e){const t=st(e);return t&&(ce.DefaultProxyClient=t),t}class lt{constructor(e,t,n,r){if(this.layoutState=e,this._LayoutID=t,this._mapItemRefs=r,ce.RightWidgetConfigMap){const e=ce.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=ce.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)}}))}}layoutMap=new Map;preConditionMap=new Map;widgetsLoadedSet=new Set;widgetConfigDiction=new Map;_LayoutID;_mapItemRefs;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(we(e)?t=e:xe(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),ce.EventBus.off(ne.WidgetLoadedEvent,e))};const n=this,r=t.afterid,i=t;return ce.EventBus.on(ne.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(n){if(!this.widgetsLoadedSet.has(n.id))return n.component?n.component().then((r=>{if(r.default){const i=e(r.default);i.id=n.id,n.layout&&(i.style=n.layout),n.cssClass&&(i.cssClass=n.cssClass),n.layoutID&&(i.layoutID=n.layoutID),n.label&&(i.label=n.label),n.jsURL&&(i.jsURL=n.jsURL),n.cssURL&&(i.cssURL=n.cssURL),this.getContainerComponents(n.container).value.set(n.id,i),this.widgetsLoadedSet.add(n.id),t().then((()=>{ce.EventBus.emit(ne.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:n.id}),this.loadOtherDependenceWidgets(n.id)}))}})).catch((e=>{ce.Logger().error("加载Widget失败!",n,e),ce.EventBus.emit(ne.WidgetLoadedErrorEvent,n)})):void 0;this.changeWidgetVisible(n.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),ce.EventBus.emit(ne.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 ue.top:return this.layoutState.topContainer.value;case ue.bottom:return this.layoutState.bottomContainer.value;case ue.left:return this.layoutState.leftContainer.value;case ue.right:return this.layoutState.rightContainer.value;case ue.centerBack:return this.layoutState.centerBackContainer.value;case ue.centerMain:return this.layoutState.centerMainContainer.value;case ue.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 t=n(new Map);return this.layoutMap.set(e,t),t}}getWidgetLoadedIDList(){const e=[];return this.widgetsLoadedSet.forEach((t=>{e.push(t)})),e}unloadAllWidgets(e){const t=[];this.widgetsLoadedSet.forEach((n=>{e&&e.length>0?e.findIndex((e=>e===n))<0&&t.push(n):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 ce.LayoutMap.get(n.layoutID)}}}const ct=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},ut=ct(r({name:"SuspenseWithError",setup(){const e=n(null);return i((t=>(e.value="当前页面存在问题,无法渲染……",console.error("onErrorCaptured",t),!0))),{error:e}}}),[["render",function(e,t,n,r,i,d){return e.error?o(e.$slots,"error",{key:0},(()=>[a(l(e.error),1)])):(c(),s(u,{key:1},{default:h((()=>[o(e.$slots,"default")])),fallback:h((()=>[o(e.$slots,"fallback",{},(()=>[t[0]||(t[0]=f("div",null,"加载中……",-1))]))])),_:3}))}]]),ht=r({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,t)=>{const n=d("router-view");return c(),s(ut,null,{default:h((()=>[p(n,null,{default:h((({Component:e,route:t})=>[(c(),s(m,null,[t.meta.keepAlive?(c(),s(v(e),{key:t.name})):g("",!0)],1024)),t.meta.keepAlive?g("",!0):(c(),s(v(e),{key:t.name}))])),_:1})])),_:1})}}),ft=["id"],dt=ct(r({__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:t}){const r=e,i=t,a=r.layoutID,l=n(a),u=n(),h=n(),d=n(),m=n(),z=n(),T=n(),A=n(),_=n(r.enableRouterView);y((()=>r.enableRouterView),(()=>{_.value=r.enableRouterView}));const R=new Map,I=(e,t)=>{e&&R.set(t,e)},L=new lt({topContainer:u,centerBackContainer:h,centerMainContainer:d,centerFrontContainer:m,bottomContainer:z,leftContainer:T,rightContainer:A},a,r.widgetConfig,R),D=W(ue.top),P=W(ue.centerBack),N=W(ue.centerFront),O=W(ue.left),B=W(ue.right),F=W(ue.bottom);function W(e){return L?.getContainerComponents(e)}const U=w((()=>r.layoutStyle));return b((()=>{L&&(a?ce.LayoutMap.set(a,L):(ce.LayoutManager=L,ce.LayoutMap.set("",L)),L.preloadWidgets(),i("containerLoaded",{layoutID:a,layoutManager:L}),ce.EventBus.emit(ne.LayoutContainerLoaded,{layoutID:a,layoutManager:L}))})),(e,t)=>(c(),S("div",{id:l.value,class:"layoutContainer",style:C(U.value)},[f("div",{ref_key:"topContainer",ref:u,class:"topContainer"},[o(e.$slots,"top",{},void 0,!0),(c(!0),S(E,null,x(k(D),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512),f("div",null,[_.value?(c(),S("div",{key:0,ref_key:"centerMainContainer",ref:d,class:"centerdiv mainContainer"},[o(e.$slots,"main",{},(()=>[p(ht)]),!0)],512)):g("",!0),f("div",{ref_key:"centerBackContainer",ref:h,class:"centerdiv backContainer"},[o(e.$slots,"back",{},void 0,!0),(c(!0),S(E,null,x(k(P),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512),f("div",{ref_key:"centerFrontContainer",ref:m,class:"centerdiv centerFrontContainer"},[o(e.$slots,"front",{},void 0,!0),(c(!0),S(E,null,x(k(N),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512),f("div",{ref_key:"leftContainer",ref:T,class:"leftContainer"},[o(e.$slots,"left",{},void 0,!0),(c(!0),S(E,null,x(k(O),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512),f("div",{ref_key:"rightContainer",ref:A,class:"rightContainer"},[o(e.$slots,"right",{},void 0,!0),(c(!0),S(E,null,x(k(B),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512)]),f("div",{ref_key:"bottomContainer",ref:z,class:"bottomContainer"},[o(e.$slots,"bottom",{},void 0,!0),(c(!0),S(E,null,x(k(F),(([e,t])=>(c(),s(v(t),{ref_for:!0,ref:t=>I(t,e),key:e,style:C(t.style),class:M(t.cssClass)},null,8,["style","class"])))),128))],512),o(e.$slots,"default",{},void 0,!0)],12,ft))}}),[["__scopeId","data-v-318009ad"]]),pt=r({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(t,n)=>{const r=d("router-view");return c(),s(ut,null,{default:h((()=>[p(r,null,{default:h((({Component:t,route:n})=>[p(z,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:h((()=>[(c(),s(m,null,[n.meta.keepAlive?(c(),s(v(t),{key:n.name})):g("",!0)],1024)),n.meta.keepAlive?g("",!0):(c(),s(v(t),{key:n.name}))])),_:2},1032,["enter-active-class","leave-active-class"])])),_:1})])),_:1})}});function gt(){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 mt(){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 vt={},yt=Uint8Array,wt=Uint16Array,bt=Int32Array,St=new yt([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]),Ct=new yt([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]),Et=new yt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xt=function(e,t){for(var n=new wt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new bt(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}},kt=xt(St,2),Mt=kt.b,zt=kt.r;Mt[28]=258,zt[258]=28;for(var Tt=xt(Ct,0),At=Tt.b,_t=Tt.r,Rt=new wt(32768),It=0;It<32768;++It){var Lt=(43690&It)>>1|(21845&It)<<1;Lt=(61680&(Lt=(52428&Lt)>>2|(13107&Lt)<<2))>>4|(3855&Lt)<<4,Rt[It]=((65280&Lt)>>8|(255&Lt)<<8)>>1}var Dt=function(e,t,n){for(var r=e.length,i=0,o=new wt(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new wt(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new wt(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],h=a[e[i]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)s[Rt[h]>>l]=c}else for(s=new wt(r),i=0;i<r;++i)e[i]&&(s[i]=Rt[a[e[i]-1]++]>>15-e[i]);return s},Pt=new yt(288);for(It=0;It<144;++It)Pt[It]=8;for(It=144;It<256;++It)Pt[It]=9;for(It=256;It<280;++It)Pt[It]=7;for(It=280;It<288;++It)Pt[It]=8;var Nt=new yt(32);for(It=0;It<32;++It)Nt[It]=5;var Ot=Dt(Pt,9,0),Bt=Dt(Pt,9,1),Ft=Dt(Nt,5,0),Wt=Dt(Nt,5,1),Ut=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},jt=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)},Ht=function(e){return(e+7)/8|0},Gt=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new yt(e.subarray(t,n))},qt=["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"],Xt=function(e,t,n){var r=new Error(t||qt[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xt),!n)throw r;return r},Vt=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new yt(0);var s=!n,a=s||2!=t.i,l=t.i;s&&(n=new yt(3*i));var c=function(e){var t=n.length;if(e>t){var r=new yt(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,h=t.p||0,f=t.b||0,d=t.l,p=t.d,g=t.m,m=t.n,v=8*i;do{if(!d){u=jt(e,h,1);var y=jt(e,h+1,3);if(h+=3,!y){var w=e[(_=Ht(h)+4)-4]|e[_-3]<<8,b=_+w;if(b>i){l&&Xt(0);break}a&&c(f+w),n.set(e.subarray(_,b),f),t.b=f+=w,t.p=h=8*b,t.f=u;continue}if(1==y)d=Bt,p=Wt,g=9,m=5;else if(2==y){var S=jt(e,h,31)+257,C=jt(e,h+10,15)+4,E=S+jt(e,h+5,31)+1;h+=14;for(var x=new yt(E),k=new yt(19),M=0;M<C;++M)k[Et[M]]=jt(e,h+3*M,7);h+=3*C;var z=Ut(k),T=(1<<z)-1,A=Dt(k,z,1);for(M=0;M<E;){var _,R=A[jt(e,h,T)];if(h+=15&R,(_=R>>4)<16)x[M++]=_;else{var I=0,L=0;for(16==_?(L=3+jt(e,h,3),h+=2,I=x[M-1]):17==_?(L=3+jt(e,h,7),h+=3):18==_&&(L=11+jt(e,h,127),h+=7);L--;)x[M++]=I}}var D=x.subarray(0,S),P=x.subarray(S);g=Ut(D),m=Ut(P),d=Dt(D,g,1),p=Dt(P,m,1)}else Xt(1);if(h>v){l&&Xt(0);break}}a&&c(f+131072);for(var N=(1<<g)-1,O=(1<<m)-1,B=h;;B=h){var F=(I=d[$t(e,h)&N])>>4;if((h+=15&I)>v){l&&Xt(0);break}if(I||Xt(2),F<256)n[f++]=F;else{if(256==F){B=h,d=null;break}var W=F-254;if(F>264){var U=St[M=F-257];W=jt(e,h,(1<<U)-1)+Mt[M],h+=U}var j=p[$t(e,h)&O],$=j>>4;if(j||Xt(3),h+=15&j,P=At[$],$>3&&(U=Ct[$],P+=$t(e,h)&(1<<U)-1,h+=U),h>v){l&&Xt(0);break}a&&c(f+131072);var H=f+W;if(f<P){var G=o-P,q=Math.min(P,H);for(G+f<0&&Xt(3);f<q;++f)n[f]=r[G+f]}for(;f<H;++f)n[f]=n[f-P]}}t.l=d,t.p=B,t.b=f,t.f=u,d&&(u=1,t.m=g,t.d=p,t.n=m)}while(!u);return f!=n.length&&s?Gt(n,0,f):n.subarray(0,f)},Kt=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Yt=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},Zt=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:on,l:0};if(1==i){var s=new yt(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!=i-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 f=o[0].s;for(r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var d=new wt(f+1),p=Jt(n[u-1],d,0);if(p>t){r=0;var g=0,m=p-t,v=1<<m;for(o.sort((function(e,t){return d[t.s]-d[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(d[y]>t))break;g+=v-(1<<p-d[y]),d[y]=t}for(g>>=m;g>0;){var w=o[r].s;d[w]<t?g-=1<<t-d[w]++-1:++r}for(;r>=0&&g;--r){var b=o[r].s;d[b]==t&&(--d[b],++g)}p=t}return{t:new yt(d),l:p}},Jt=function(e,t,n){return-1==e.s?Math.max(Jt(e.l,t,n+1),Jt(e.r,t,n+1)):t[e.s]=n},Qt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new wt(++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}},en=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tn=function(e,t,n){var r=n.length,i=Ht(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)},nn=function(e,t,n,r,i,o,s,a,l,c,u){Kt(t,u++,n),++i[256];for(var h=Zt(i,15),f=h.t,d=h.l,p=Zt(o,15),g=p.t,m=p.l,v=Qt(f),y=v.c,w=v.n,b=Qt(g),S=b.c,C=b.n,E=new wt(19),x=0;x<y.length;++x)++E[31&y[x]];for(x=0;x<S.length;++x)++E[31&S[x]];for(var k=Zt(E,7),M=k.t,z=k.l,T=19;T>4&&!M[Et[T-1]];--T);var A,_,R,I,L=c+5<<3,D=en(i,Pt)+en(o,Nt)+s,P=en(i,f)+en(o,g)+s+14+3*T+en(E,M)+2*E[16]+3*E[17]+7*E[18];if(l>=0&&L<=D&&L<=P)return tn(t,u,e.subarray(l,l+c));if(Kt(t,u,1+(P<D)),u+=2,P<D){A=Dt(f,d,0),_=f,R=Dt(g,m,0),I=g;var N=Dt(M,z,0);for(Kt(t,u,w-257),Kt(t,u+5,C-1),Kt(t,u+10,T-4),u+=14,x=0;x<T;++x)Kt(t,u+3*x,M[Et[x]]);u+=3*T;for(var O=[y,S],B=0;B<2;++B){var F=O[B];for(x=0;x<F.length;++x){var W=31&F[x];Kt(t,u,N[W]),u+=M[W],W>15&&(Kt(t,u,F[x]>>5&127),u+=F[x]>>12)}}}else A=Ot,_=Pt,R=Ft,I=Nt;for(x=0;x<a;++x){var U=r[x];if(U>255){Yt(t,u,A[257+(W=U>>18&31)]),u+=_[W+257],W>7&&(Kt(t,u,U>>23&31),u+=St[W]);var j=31&U;Yt(t,u,R[j]),u+=I[j],j>3&&(Yt(t,u,U>>5&8191),u+=Ct[j])}else Yt(t,u,A[U]),u+=_[U]}return Yt(t,u,A[256]),u+_[256]},rn=new bt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),on=new yt(0),sn=function(e,t,n,r,i,o){var s=o.z||e.length,a=new yt(r+s+5*(1+Math.ceil(s/7e3))+i),l=a.subarray(r,a.length-i),c=o.l,u=7&(o.r||0);if(t){u&&(l[0]=o.r>>3);for(var h=rn[t-1],f=h>>13,d=8191&h,p=(1<<n)-1,g=o.p||new wt(32768),m=o.h||new wt(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 bt(25e3),S=new wt(288),C=new wt(32),E=0,x=0,k=o.i||0,M=0,z=o.w||0,T=0;k+2<s;++k){var A=w(k),_=32767&k,R=m[A];if(g[_]=R,m[A]=_,z<=k){var I=s-k;if((E>7e3||M>24576)&&(I>423||!c)){u=nn(e,l,0,b,S,C,x,M,T,k-T,u),M=E=x=0,T=k;for(var L=0;L<286;++L)S[L]=0;for(L=0;L<30;++L)C[L]=0}var D=2,P=0,N=d,O=_-R&32767;if(I>2&&A==w(k-O))for(var B=Math.min(f,I)-1,F=Math.min(32767,k),W=Math.min(258,I);O<=F&&--N&&_!=R;){if(e[k+D]==e[k+D-O]){for(var U=0;U<W&&e[k+U]==e[k+U-O];++U);if(U>D){if(D=U,P=O,U>B)break;var j=Math.min(O,U-2),$=0;for(L=0;L<j;++L){var H=k-O+L&32767,G=H-g[H]&32767;G>$&&($=G,R=H)}}}O+=(_=R)-(R=g[_])&32767}if(P){b[M++]=268435456|zt[D]<<18|_t[P];var q=31&zt[D],X=31&_t[P];x+=St[q]+Ct[X],++S[257+q],++C[X],z=k+D,++E}else b[M++]=e[k],++S[e[k]]}}for(k=Math.max(k,z);k<s;++k)b[M++]=e[k],++S[e[k]];u=nn(e,l,c,b,S,C,x,M,T,k-T,u),c||(o.r=7&u|l[u/8|0]<<3,u-=7,o.h=m,o.p=g,o.i=k,o.w=z)}else{for(k=o.w||0;k<s+c;k+=65535){var V=k+65535;V>=s&&(l[u/8|0]=c,V=s),u=tn(l,u+1,e.subarray(k,V))}o.i=s}return Gt(a,0,r+Ht(u)+i)},an=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}(),ln=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=an[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},cn=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new yt(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return sn(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)},un=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},hn=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],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},fn=[],dn=function(){return[yt,wt,bt,St,Ct,Et,Mt,At,Bt,Wt,Rt,qt,Dt,Ut,jt,$t,Ht,Gt,Xt,Vt,An,vn,yn]},pn=function(){return[yt,wt,bt,St,Ct,Et,zt,_t,Ot,Pt,Ft,Nt,Rt,rn,on,Dt,Kt,Yt,Zt,Jt,Qt,en,tn,nn,Ht,Gt,sn,cn,Tn,vn]},gn=function(){return[xn,zn,En,ln,an]},mn=function(){return[kn,Mn]},vn=function(e){return postMessage(e,[e.buffer])},yn=function(e){return e&&{out:e.size&&new yt(e.size),dictionary:e.dictionary}},wn=function(e,t,n,r,i,o){var s=function(e,t,n,r){if(!fn[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=hn(e[a],i,o);fn[n]={c:hn(e[s],i,o),e:o}}var l=un({},fn[n].e);return function(e,t,n,r,i){var o=new Worker(vt[t]||(vt[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}(fn[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),r)}(n,r,i,(function(e,t){s.terminate(),o(e,t)}));return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},bn=function(e,t){return e[t]|e[t+1]<<8},Sn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Cn=function(e,t){return Sn(e,t)+4294967296*Sn(e,t+4)},En=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},xn=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&&En(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)}},kn=function(e){31==e[0]&&139==e[1]&&8==e[2]||Xt(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)},Mn=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zn=function(e){return 10+(e.filename?e.filename.length+1:0)};function Tn(e,t){return cn(e,t||{},0,0)}function An(e,t){return Vt(e,{i:2},t&&t.out,t&&t.dictionary)}function _n(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Xt(7),wn(e,t,[pn,gn,function(){return[Rn]}],(function(e){return vn(Rn(e.data[0],e.data[1]))}),2,n)}function Rn(e,t){t||(t={});var n=ln(),r=e.length;n.p(e);var i=cn(e,t,zn(t),8),o=i.length;return xn(i,t),En(i,o-8,n.d()),En(i,o-4,r),i}function In(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Xt(7),wn(e,t,[dn,mn,function(){return[Ln]}],(function(e){return vn(Ln(e.data[0],e.data[1]))}),3,n)}function Ln(e,t){var n=kn(e);return n+8>e.length&&Xt(6,"invalid gzip data"),Vt(e.subarray(n,-8),{i:2},t&&t.out||new yt(Mn(e)),t&&t.dictionary)}var Dn=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=un(r,o[1]),o=o[0]),o instanceof yt?n[s]=[o,a]:(n[s+="/"]=[new yt(0),a],Dn(o,s,n,r))}},Pn="undefined"!=typeof TextEncoder&&new TextEncoder,Nn="undefined"!=typeof TextDecoder&&new TextDecoder;try{Nn.decode(on,{stream:!0})}catch(e){}function On(e,t){if(Pn)return Pn.encode(e);for(var n=e.length,r=new yt(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 yt(i+8+(n-s<<1));a.set(r),r=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 Gt(r,0,i)}function Bn(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(Nn)return Nn.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:Gt(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&&Xt(8),o}var Fn=function(e,t){return t+30+bn(e,t+26)+bn(e,t+28)},Wn=function(e,t,n){var r=bn(e,t+28),i=Bn(e.subarray(t+46,t+46+r),!(2048&bn(e,t+8))),o=t+46+r,s=Sn(e,t+20),a=n&&4294967295==s?Un(e,o):[s,Sn(e,t+24),Sn(e,t+42)],l=a[0],c=a[1],u=a[2];return[bn(e,t+10),l,c,i,o+bn(e,t+30)+bn(e,t+32),u]},Un=function(e,t){for(;1!=bn(e,t);t+=4+bn(e,t+2));return[Cn(e,t+12),Cn(e,t+4),Cn(e,t+20)]},jn=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Xt(9),t+=r+4}return t},$n=function(e,t,n,r,i,o,s,a){var l=r.length,c=n.extra,u=a&&a.length,h=jn(c);En(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 f=new Date(null==n.mtime?Date.now():n.mtime),d=f.getFullYear()-1980;if((d<0||d>119)&&Xt(10),En(e,t,d<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>1),t+=4,-1!=o&&(En(e,t,n.crc),En(e,t+4,o<0?-o-2:o),En(e,t+8,n.size)),En(e,t+12,l),En(e,t+14,h),t+=16,null!=s&&(En(e,t,u),En(e,t+6,n.attrs),En(e,t+10,s),t+=14),e.set(r,t),t+=l,h)for(var p in c){var g=c[p],m=g.length;En(e,t,+p),En(e,t+2,m),e.set(g,t+4),t+=4+m}return u&&(e.set(a,t),t+=u),t},Hn=function(e,t,n,r,i){En(e,t,101010256),En(e,t+8,n),En(e,t+10,n),En(e,t+12,r),En(e,t+16,i)};var Gn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function qn(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 Xn(e){return qn(e).basename}function Vn(e){return qn(e).extension}function Kn(e){var t=qn(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function Yn(e,t){var n=Kn(e);return t?n+"."+t:n}function Zn(e){var t=Vn(e);return t?Kn(e)+"."+t.toLowerCase():e}function Jn(e){return e.reduce((function(e,t,n){return 0===n?Xn(t):Qn(e,t)}),"")}function Qn(e,t){var n;return e&&t&&(n=er(e,t).replace(/[-_]$/,"")),n||""}function er(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substr(0,n)}const tr=(e,t)=>{nr(e,t)};function nr(e,t){const n=globalThis.URL||globalThis.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 rr=(e,t)=>{const n=JSON.stringify(e,null,2);t?tr(n,t+".json"):K.emit(ne.CommonWarnEvent,"参数JsonID不能为空!")},ir=(e,t,n)=>{e.get(t,{responseType:"blob"}).then((function(e){tr(e.data,n)})).catch((e=>{console.warn(e),K.emit(ne.CommonWarnEvent,"下载文件报错!")}))};async function or(e,t,n){var r,i=function(e){var t=Vn(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){r=await globalThis.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 sr{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==globalThis.document}static encodeGBK(e){const t=H.encode(e,"ISO-8859-1");return H.decode(t,"gbk")}static async saveZipFromFiles(e,t){const n=[];for(let r=0;r<t.length;r++){const e=t[r],i=e.name,o=await rt.readFilePromise(e,"ArrayBuffer"),s=new Uint8Array(o);n.push({filename:i,content:s})}n.length>0&&sr.zipAsync(n,(function(t,n){if(t)throw t;nr(new Blob([n]),e)}))}static saveZipFile(e,t){sr.zipAsync(t,(function(t,n){if(t)throw t;nr(new Blob([n]),e)}))}static saveZipFileSync(e,t){const n=sr.zipSync(t);return!!n&&(nr(new Blob([n]),e),!0)}static unzipSync(e){let t;if(t=e instanceof ArrayBuffer?new Uint8Array(e):e,!sr.runningInBrowser())return;const n=function(e,t){for(var n={},r=e.length-22;101010256!=Sn(e,r);--r)(!r||e.length-r>65558)&&Xt(13);var i=bn(e,r+8);if(!i)return{};var o=Sn(e,r+16),s=4294967295==o||65535==i;if(s){var a=Sn(e,r-12);(s=101075792==Sn(e,a))&&(i=Sn(e,a+32),o=Sn(e,a+48))}for(var l=t&&t.filter,c=0;c<i;++c){var u=Wn(e,o,s),h=u[0],f=u[1],d=u[2],p=u[3],g=u[4],m=u[5],v=Fn(e,m);o=g,l&&!l({name:p,size:f,originalSize:d,compression:h})||(h?8==h?n[p]=An(e.subarray(v,v+f),{out:new yt(d)}):Xt(14,"unknown compression type "+h):n[p]=Gt(e,v,v+f))}return n}(t,{filter:sr.fflateFilter});return sr.fflatePostprocess(n)}static async readZipFromFile(e){const t={content:await rt.readFilePromise(e,"ArrayBuffer"),name:e.name};return sr.readZipFile(t)}static async readZipFile(e){const t=await sr.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(!sr.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let n;n=e instanceof ArrayBuffer?new Uint8Array(e):e,function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Xt(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Gn((function(){n(e,t)}))};Gn((function(){s=n}));for(var a=e.length-22;101010256!=Sn(e,a);--a)if(!a||e.length-a>65558)return s(Xt(13,0,1),null),i;var l=bn(e,a+8);if(l){var c=l,u=Sn(e,a+16),h=4294967295==u||65535==c;if(h){var f=Sn(e,a-12);(h=101075792==Sn(e,f))&&(c=l=Sn(e,f+32),u=Sn(e,f+48))}for(var d=t&&t.filter,p=function(t){var n=Wn(e,u,h),a=n[0],c=n[1],f=n[2],p=n[3],g=n[4],m=n[5],v=Fn(e,m);u=g;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--l||s(null,o))};if(!d||d({name:p,size:c,originalSize:f,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+c);if(f<524288||c>.8*f)try{y(null,An(w,{out:new yt(f)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Xt(7),wn(e,t,[dn],(function(e){return vn(An(e.data[0],yn(e.data[1])))}),1,n)}(w,{size:f},y))}else y(Xt(14,"unknown compression type "+a,1),null);else y(null,Gt(e,v,v+c));else y(null,null)},g=0;g<c;++g)p()}else s(null,{})}(n,{filter:sr.fflateFilter},(function(e,n){e&&t(e),t(null,sr.fflatePostprocess(n))}))}static zipSync(e){if(!sr.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];Dn(e,"",n,t);var i=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=On(s)).length,f=c.comment,d=f&&On(f),p=d&&d.length,g=jn(c.extra);h>65535&&Xt(11);var m=u?Tn(l,c):l,v=m.length,y=ln();y.p(l),r.push(un(c,{size:l.length,crc:y.d(),c:m,f:E,m:d,u:h!=s.length||d&&f.length!=p,o:i,compression:u})),i+=30+h+g+v,o+=76+2*(h+g)+(p||0)+v}for(var w=new yt(o+22),b=i,S=o-i,C=0;C<r.length;++C){var E=r[C];$n(w,E.o,E,E.f,E.u,E.c.length);var x=30+E.f.length+jn(E.extra);w.set(E.c,E.o+x),$n(w,i,E,E.f,E.u,E.c.length,E.o,E.m),i+=16+x+(E.m?E.m.length:0)}return Hn(w,i,r.length,S,b),w}(sr.fflatePreprocess(e))}static zipAsync(e,t){!function(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Xt(7);var r={};Dn(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,l=o,c=new Array(o),u=[],h=function(){for(var e=0;e<u.length;++e)u[e]()},f=function(e,t){Gn((function(){n(e,t)}))};Gn((function(){f=n}));var d=function(){var e=new yt(a+22),t=s,n=a-s;a=0;for(var r=0;r<l;++r){var i=c[r];try{var o=i.c.length;$n(e,a,i,i.f,i.u,o);var u=30+i.f.length+jn(i.extra),h=a+u;e.set(i.c,h),$n(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=h+o}catch(e){return f(e,null)}}Hn(e,s,c.length,n,t),f(null,e)};o||d();for(var p=function(e){var t=i[e],n=r[t],l=n[0],p=n[1],g=ln(),m=l.length;g.p(l);var v=On(t),y=v.length,w=p.comment,b=w&&On(w),S=b&&b.length,C=jn(p.extra),E=0==p.level?0:8,x=function(n,r){if(n)h(),f(n,null);else{var i=r.length;c[e]=un(p,{size:m,crc:g.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:E}),s+=30+y+C+i,a+=76+2*(y+C)+(S||0)+i,--o||d()}};if(y>65535&&x(Xt(11,0,1),null),E)if(m<16e4)try{x(null,Tn(l,p))}catch(e){x(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Xt(7),wn(e,t,[pn],(function(e){return vn(Tn(e.data[0],e.data[1]))}),0,n)}(l,p,x));else x(null,l)},g=0;g<l;++g)p(g)}(sr.fflatePreprocess(e),{},t)}static fflateFilter(e){return sr.isImportableZipPath(e.name)}static fflatePostprocess(e){return Object.keys(e).reduce((function(t,n){const r=qn(n).filename,i=sr.encodeGBK(r),o=e[n];return t[i]=o,t}),{})}static isImportableZipPath(e){const t=qn(e),n=Vn(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=On(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content})),t}}class ar{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=On(e)),ar.runningInBrowser()?Rn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=On(e)),ar.runningInBrowser())return rt.promisify(_n)(n,t)}static async readGzipFromFile(e){const t={content:await rt.readFilePromise(e,"ArrayBuffer"),name:e.name};return ar.readGzipFile(t)}static readGzipFile(e){var t=e.name.replace(/\.gz$/,"");return[{name:t,content:ar.gunzipSync(e.content,t)}]}static async gunzipAsync(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t=t||{},!ar.runningInBrowser())return;var n=rt.promisify(In);let r=await n(e,t);return t.filename&&(r=Bn(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=Ln(e);return t&&(n=Bn(n)),n}}class lr{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(xe(e)||Se(e)?n=new Date(e):we(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&&(xe(e)||Se(e)?n=new Date(e):we(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&&(xe(e)||Se(e)?n=new Date(e):we(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)}`;return 14===e.length&&(t=`${t} ${e.substring(8,10)}:${e.substring(10,12)}:${e.substring(12,14)}`),t}}let cr=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){cr=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var ur=2654435769;function hr(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 fr(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 dr(e){return 4294967295&e}function pr(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function gr(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function mr(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 vr(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 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));r[i++]=l>>10&1023|55296,r[i]=1023&l|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var c=i+1;r.length=c,n.push(String.fromCharCode.apply(String,r)),t-=c,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function yr(e,t){return"string"==typeof e&&(e=mr(e)),"string"==typeof t&&(t=mr(t)),null==e||0===e.length?e:hr(function(e,t){var n,r,i,o,s,a,l=e.length,c=l-1;for(r=e[c],i=0,a=0|Math.floor(6+52/l);a>0;--a){for(o=(i=dr(i+ur))>>>2&3,s=0;s<c;++s)n=e[s+1],r=e[s]=dr(e[s]+pr(i,n,r,s,o,t));n=e[0],r=e[c]=dr(e[c]+pr(i,n,r,c,o,t))}return e}(fr(e,!0),fr(gr(t),!1)),!1)}function wr(e,t){return"string"==typeof e&&(e=function(e){for(var t=globalThis.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=mr(t)),null==e||0===e.length?e:hr(function(e,t){var n,r,i,o,s,a=e.length,l=a-1;for(n=e[0],i=dr(Math.floor(6+52/a)*ur);0!==i;i=dr(i-ur)){for(o=i>>>2&3,s=l;s>0;--s)r=e[s-1],n=e[s]=dr(e[s]-pr(i,n,r,s,o,t));r=e[l],n=e[0]=dr(e[0]-pr(i,n,r,0,o,t))}return e}(fr(e,!1),fr(gr(t),!1)),!0)}const br={toBytes:mr,toString:vr,encrypt:yr,encryptToString:function(e,t){return globalThis.btoa(function(e){var t=e.length;if(0===t)return"";var n=cr?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("")}(yr(e,t)))},decrypt:wr,decryptToString:function(e,t){return vr(wr(e,t))}},Sr=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},Cr={set:e=>{let t=Sr(e);null===document.getElementById(t)&&(t=Sr(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};let Er;function xr(e){if(!e){if(Er)return Er;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new G.HubConnectionBuilder).configureLogging(G.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then((()=>{ce.Logger().info("启动SignalR连接!")})),t.onclose((async()=>{ce.Logger().info("断开SignalR连接!")})),t.onreconnecting((()=>{ce.Logger().warn("SignalR服务已断线,重连中...!")})),t.onreconnected((()=>{ce.Logger().warn("SignalR重连成功!")})),Er||(Er=t),t}var kr,Mr,zr={exports:{}},Tr=zr.exports={};function Ar(){throw new Error("setTimeout has not been defined")}function _r(){throw new Error("clearTimeout has not been defined")}function Rr(e){if(kr===setTimeout)return setTimeout(e,0);if((kr===Ar||!kr)&&setTimeout)return kr=setTimeout,setTimeout(e,0);try{return kr(e,0)}catch(t){try{return kr.call(null,e,0)}catch(t){return kr.call(this,e,0)}}}!function(){try{kr="function"==typeof setTimeout?setTimeout:Ar}catch(e){kr=Ar}try{Mr="function"==typeof clearTimeout?clearTimeout:_r}catch(e){Mr=_r}}();var Ir,Lr=[],Dr=!1,Pr=-1;function Nr(){Dr&&Ir&&(Dr=!1,Ir.length?Lr=Ir.concat(Lr):Pr=-1,Lr.length&&Or())}function Or(){if(!Dr){var e=Rr(Nr);Dr=!0;for(var t=Lr.length;t;){for(Ir=Lr,Lr=[];++Pr<t;)Ir&&Ir[Pr].run();Pr=-1,t=Lr.length}Ir=null,Dr=!1,function(e){if(Mr===clearTimeout)return clearTimeout(e);if((Mr===_r||!Mr)&&clearTimeout)return Mr=clearTimeout,clearTimeout(e);try{return Mr(e)}catch(t){try{return Mr.call(null,e)}catch(t){return Mr.call(this,e)}}}(e)}}function Br(e,t){this.fun=e,this.array=t}function Fr(){}Tr.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];Lr.push(new Br(e,t)),1!==Lr.length||Dr||Rr(Or)},Br.prototype.run=function(){this.fun.apply(null,this.array)},Tr.title="browser",Tr.browser=!0,Tr.env={},Tr.argv=[],Tr.version="",Tr.versions={},Tr.on=Fr,Tr.addListener=Fr,Tr.once=Fr,Tr.off=Fr,Tr.removeListener=Fr,Tr.removeAllListeners=Fr,Tr.emit=Fr,Tr.prependListener=Fr,Tr.prependOnceListener=Fr,Tr.listeners=function(e){return[]},Tr.binding=function(e){throw new Error("process.binding is not supported")},Tr.cwd=function(){return"/"},Tr.chdir=function(e){throw new Error("process.chdir is not supported")},Tr.umask=function(){return 0};const Wr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(zr.exports),Ur="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,jr=new Set,$r="object"==typeof Wr&&Wr?Wr:{},Hr=(e,t,n,r)=>{"function"==typeof $r.emitWarning?$r.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)};let Gr=globalThis.AbortController,qr=globalThis.AbortSignal;if(void 0===Gr){qr=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},Gr=class{constructor(){t()}signal=new qr;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"!==$r.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,Hr("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 Xr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Vr=e=>Xr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Kr:null:null;class Kr extends Array{constructor(e){super(e),this.fill(0)}}class Yr{heap;length;static#e=!1;static create(e){const t=Vr(e);if(!t)return[];Yr.#e=!0;const n=new Yr(e,t);return Yr.#e=!1,n}constructor(e,t){if(!Yr.#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 Zr{#t;#n;#r;#i;#o;#s;#a;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#u;#h;#f;#d;#p;#g;#m;#v;#y;#w;#b;#S;#C;#E;#x;#k;#M;static unsafeExposeInternals(e){return{starts:e.#S,ttls:e.#C,sizes:e.#b,keyMap:e.#h,keyList:e.#f,valList:e.#d,next:e.#p,prev:e.#g,get head(){return e.#m},get tail(){return e.#v},free:e.#y,isBackgroundFetch:t=>e.#z(t),backgroundFetch:(t,n,r,i)=>e.#T(t,n,r,i),moveToTail:t=>e.#A(t),indexes:t=>e.#_(t),rindexes:t=>e.#R(t),isStale:t=>e.#I(t)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#u}get size(){return this.#c}get fetchMethod(){return this.#s}get memoMethod(){return this.#a}get dispose(){return this.#r}get onInsert(){return this.#i}get disposeAfter(){return this.#o}constructor(e){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:s,allowStale:a,dispose:l,onInsert:c,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:f,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:g,fetchMethod:m,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:S,ignoreFetchAbort:C,perf:E}=e;if(void 0!==E&&"function"!=typeof E?.now)throw new TypeError("perf option must have a now() method if specified");if(this.#l=E??Ur,0!==t&&!Xr(t))throw new TypeError("max option must be a nonnegative integer");const x=t?Vr(t):Array;if(!x)throw new Error("invalid max value: "+t);if(this.#t=t,this.#n=d,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.#x=!!m,this.#h=new Map,this.#f=new Array(t).fill(void 0),this.#d=new Array(t).fill(void 0),this.#p=new x(t),this.#g=new x(t),this.#m=0,this.#v=0,this.#y=Yr.create(t),this.#c=0,this.#u=0,"function"==typeof l&&(this.#r=l),"function"==typeof c&&(this.#i=c),"function"==typeof u?(this.#o=u,this.#w=[]):(this.#o=void 0,this.#w=void 0),this.#E=!!this.#r,this.#M=!!this.#i,this.#k=!!this.#o,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!S,this.ignoreFetchAbort=!!C,0!==this.maxEntrySize){if(0!==this.#n&&!Xr(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!Xr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#L()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.ttlResolution=Xr(r)||0===r?r:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!Xr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}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";(e=>!jr.has(e))(e)&&(jr.add(e),Hr("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,Zr))}}getRemainingTTL(e){return this.#h.has(e)?1/0:0}#D(){const e=new Kr(this.#t),t=new Kr(this.#t);this.#C=e,this.#S=t,this.#P=(n,r,i=this.#l.now())=>{if(t[n]=0!==r?i:0,e[n]=r,0!==r&&this.ttlAutopurge){const e=setTimeout((()=>{this.#I(n)&&this.#N(this.#f[n],"expire")}),r+1);e.unref&&e.unref()}},this.#O=n=>{t[n]=0!==e[n]?this.#l.now():0},this.#B=(i,o)=>{if(e[o]){const s=e[o],a=t[o];if(!s||!a)return;i.ttl=s,i.start=a,i.now=n||r();const l=i.now-a;i.remainingTTL=s-l}};let n=0;const r=()=>{const e=this.#l.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=i=>{const o=this.#h.get(i);if(void 0===o)return 0;const s=e[o],a=t[o];return s&&a?s-((n||r())-a):1/0},this.#I=i=>{const o=t[i],s=e[i];return!!s&&!!o&&(n||r())-o>s}}#O=()=>{};#B=()=>{};#P=()=>{};#I=()=>!1;#L(){const e=new Kr(this.#t);this.#u=0,this.#b=e,this.#F=t=>{this.#u-=e[t],e[t]=0},this.#W=(e,t,n,r)=>{if(this.#z(t))return 0;if(!Xr(n)){if(!r)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 r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!Xr(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#U=(t,n,r)=>{if(e[t]=n,this.#n){const n=this.#n-e[t];for(;this.#u>n;)this.#j(!0)}this.#u+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#u)}}#F=e=>{};#U=(e,t,n)=>{};#W=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#_({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#v;this.#$(t)&&(!e&&this.#I(t)||(yield t),t!==this.#m);)t=this.#g[t]}*#R({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#$(t)&&(!e&&this.#I(t)||(yield t),t!==this.#v);)t=this.#p[t]}#$(e){return void 0!==e&&this.#h.get(this.#f[e])===e}*entries(){for(const e of this.#_())void 0===this.#d[e]||void 0===this.#f[e]||this.#z(this.#d[e])||(yield[this.#f[e],this.#d[e]])}*rentries(){for(const e of this.#R())void 0===this.#d[e]||void 0===this.#f[e]||this.#z(this.#d[e])||(yield[this.#f[e],this.#d[e]])}*keys(){for(const e of this.#_()){const t=this.#f[e];void 0===t||this.#z(this.#d[e])||(yield t)}}*rkeys(){for(const e of this.#R()){const t=this.#f[e];void 0===t||this.#z(this.#d[e])||(yield t)}}*values(){for(const e of this.#_())void 0===this.#d[e]||this.#z(this.#d[e])||(yield this.#d[e])}*rvalues(){for(const e of this.#R())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.#_()){const r=this.#d[n],i=this.#z(r)?r.__staleWhileFetching:r;if(void 0!==i&&e(i,this.#f[n],this))return this.get(this.#f[n],t)}}forEach(e,t=this){for(const n of this.#_()){const r=this.#d[n],i=this.#z(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}rforEach(e,t=this){for(const n of this.#R()){const r=this.#d[n],i=this.#z(r)?r.__staleWhileFetching:r;void 0!==i&&e.call(t,i,this.#f[n],this)}}purgeStale(){let e=!1;for(const t of this.#R({allowStale:!0}))this.#I(t)&&(this.#N(this.#f[t],"expire"),e=!0);return e}info(e){const t=this.#h.get(e);if(void 0===t)return;const n=this.#d[t],r=this.#z(n)?n.__staleWhileFetching:n;if(void 0===r)return;const i={value:r};if(this.#C&&this.#S){const e=this.#C[t],n=this.#S[t];if(e&&n){const t=e-(this.#l.now()-n);i.ttl=t,i.start=Date.now()}}return this.#b&&(i.size=this.#b[t]),i}dump(){const e=[];for(const t of this.#_({allowStale:!0})){const n=this.#f[t],r=this.#d[t],i=this.#z(r)?r.__staleWhileFetching:r;if(void 0===i||void 0===n)continue;const o={value:i};if(this.#C&&this.#S){o.ttl=this.#C[t];const e=this.#l.now()-this.#S[t];o.start=Math.floor(Date.now()-e)}this.#b&&(o.size=this.#b[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=this.#l.now()-e}this.set(t,n.value,n)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;const{ttl:r=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:a}=n;let{noUpdateTTL:l=this.noUpdateTTL}=n;const c=this.#W(e,t,n.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#N(e,"set"),this;let u=0===this.#c?void 0:this.#h.get(e);if(void 0===u)u=0===this.#c?this.#v:0!==this.#y.length?this.#y.pop():this.#c===this.#t?this.#j(!1):this.#c,this.#f[u]=e,this.#d[u]=t,this.#h.set(e,u),this.#p[this.#v]=u,this.#g[u]=this.#v,this.#v=u,this.#c++,this.#U(u,c,a),a&&(a.set="add"),l=!1,this.#M&&this.#i?.(t,e,"add");else{this.#A(u);const n=this.#d[u];if(t!==n){if(this.#x&&this.#z(n)){n.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=n;void 0===t||o||(this.#E&&this.#r?.(t,e,"set"),this.#k&&this.#w?.push([t,e,"set"]))}else o||(this.#E&&this.#r?.(n,e,"set"),this.#k&&this.#w?.push([n,e,"set"]));if(this.#F(u),this.#U(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.#M&&this.onInsert?.(t,e,t===n?"update":"replace")}if(0===r||this.#C||this.#D(),this.#C&&(l||this.#P(u,r,i),a&&this.#B(a,u)),!o&&this.#k&&this.#w){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}return this}pop(){try{for(;this.#c;){const e=this.#d[this.#m];if(this.#j(!0),this.#z(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#k&&this.#w){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}}}#j(e){const t=this.#m,n=this.#f[t],r=this.#d[t];return this.#x&&this.#z(r)?r.__abortController.abort(new Error("evicted")):(this.#E||this.#k)&&(this.#E&&this.#r?.(r,n,"evict"),this.#k&&this.#w?.push([r,n,"evict"])),this.#F(t),e&&(this.#f[t]=void 0,this.#d[t]=void 0,this.#y.push(t)),1===this.#c?(this.#m=this.#v=0,this.#y.length=0):this.#m=this.#p[t],this.#h.delete(n),this.#c--,t}has(e,t={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=this.#h.get(e);if(void 0!==i){const e=this.#d[i];if(this.#z(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#I(i))return n&&this.#O(i),r&&(r.has="hit",this.#B(r,i)),!0;r&&(r.has="stale",this.#B(r,i))}else r&&(r.has="miss");return!1}peek(e,t={}){const{allowStale:n=this.allowStale}=t,r=this.#h.get(e);if(void 0===r||!n&&this.#I(r))return;const i=this.#d[r];return this.#z(i)?i.__staleWhileFetching:i}#T(e,t,n,r){const i=void 0===t?void 0:this.#d[t];if(this.#z(i))return i;const o=new Gr,{signal:s}=n;s?.addEventListener("abort",(()=>o.abort(s.reason)),{signal:o.signal});const a={signal:o.signal,options:n,context:r},l=(r,i=!1)=>{const{aborted:s}=o.signal,l=n.ignoreFetchAbort&&void 0!==r;if(n.status&&(s&&!i?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),s&&!l&&!i)return c(o.signal.reason);const h=u,f=this.#d[t];return(f===u||l&&i&&void 0===f)&&(void 0===r?void 0!==h.__staleWhileFetching?this.#d[t]=h.__staleWhileFetching:this.#N(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,a.options))),r},c=r=>{const{aborted:i}=o.signal,s=i&&n.allowStaleOnFetchAbort,a=s||n.allowStaleOnFetchRejection,l=a||n.noDeleteOnFetchRejection,c=u;if(this.#d[t]===u&&(l&&void 0!==c.__staleWhileFetching?s||(this.#d[t]=c.__staleWhileFetching):this.#N(e,"fetch")),a)return n.status&&void 0!==c.__staleWhileFetching&&(n.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw r};n.status&&(n.status.fetchDispatched=!0);const u=new Promise(((t,r)=>{const s=this.#s?.(e,i,a);s&&s instanceof Promise&&s.then((e=>t(void 0===e?void 0:e)),r),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:i,__returned:void 0});return void 0===t?(this.set(e,h,{...a.options,status:void 0}),t=this.#h.get(e)):this.#d[t]=h,h}#z(e){if(!this.#x)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Gr}async fetch(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=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:f=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:m,signal:v}=t;if(!this.#x)return m&&(m.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:m});const y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:s,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:d,ignoreFetchAbort:f,status:m,signal:v};let w=this.#h.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 i=this.#I(w);if(!g&&!i)return m&&(m.fetch="hit"),this.#A(w),r&&this.#O(w),m&&this.#B(m,w),t;const o=this.#T(e,w,y,p),s=void 0!==o.__staleWhileFetching&&n;return m&&(m.fetch=i?"stale":"refresh",s&&i&&(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:r,forceRefresh:i,...o}=t,s=this.get(e,o);if(!i&&void 0!==s)return s;const a=n(e,s,{options:o,context:r});return this.set(e,a,o),a}get(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,s=this.#h.get(e);if(void 0!==s){const t=this.#d[s],a=this.#z(t);return o&&this.#B(o,s),this.#I(s)?(o&&(o.get="stale"),a?(o&&n&&void 0!==t.__staleWhileFetching&&(o.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||this.#N(e,"expire"),o&&n&&(o.returnedStale=!0),n?t:void 0)):(o&&(o.get="hit"),a?t.__staleWhileFetching:(this.#A(s),r&&this.#O(s),t))}o&&(o.get="miss")}#H(e,t){this.#g[t]=e,this.#p[e]=t}#A(e){e!==this.#v&&(e===this.#m?this.#m=this.#p[e]:this.#H(this.#g[e],this.#p[e]),this.#H(this.#v,e),this.#v=e)}delete(e){return this.#N(e,"delete")}#N(e,t){let n=!1;if(0!==this.#c){const r=this.#h.get(e);if(void 0!==r)if(n=!0,1===this.#c)this.#G(t);else{this.#F(r);const n=this.#d[r];if(this.#z(n)?n.__abortController.abort(new Error("deleted")):(this.#E||this.#k)&&(this.#E&&this.#r?.(n,e,t),this.#k&&this.#w?.push([n,e,t])),this.#h.delete(e),this.#f[r]=void 0,this.#d[r]=void 0,r===this.#v)this.#v=this.#g[r];else if(r===this.#m)this.#m=this.#p[r];else{const e=this.#g[r];this.#p[e]=this.#p[r];const t=this.#p[r];this.#g[t]=this.#g[r]}this.#c--,this.#y.push(r)}}if(this.#k&&this.#w?.length){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}return n}clear(){return this.#G("delete")}#G(e){for(const t of this.#R({allowStale:!0})){const n=this.#d[t];if(this.#z(n))n.__abortController.abort(new Error("deleted"));else{const r=this.#f[t];this.#E&&this.#r?.(n,r,e),this.#k&&this.#w?.push([n,r,e])}}if(this.#h.clear(),this.#d.fill(void 0),this.#f.fill(void 0),this.#C&&this.#S&&(this.#C.fill(0),this.#S.fill(0)),this.#b&&this.#b.fill(0),this.#m=0,this.#v=0,this.#y.length=0,this.#u=0,this.#c=0,this.#k&&this.#w){const e=this.#w;let t;for(;t=e?.shift();)this.#o?.(...t)}}}class Jr{static defaultOptions={max:1e3,maxAge:18e5};static cache=new Zr(this.defaultOptions);static createCache(e=this.defaultOptions){return new Zr(e)}static set(e,t,n=this.cache){let r=n;r||(r=this.cache),r.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()}}class Qr{static CharCodes=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"];static matrix2=[[3,4],[1,2]];static matrix3=[[7,8,9],[4,5,6],[1,2,3]];static matrix4=[["21","22","23","24","25"],["16","17","18","19","20"],["11","12","13","14","15"],["06","07","08","09","10"],["01","02","03","04","05"]];static matrix5=[["C","D"],["A","B"]];static dmsToDecimal(e){let t=1;if(e.direction)switch(e.direction){case"W":case"S":t=-1;break;default:t=1}return(Math.abs(e.degrees)+e.minutes/60+e.seconds/3600)*t}static xToDMS(e,t="E"){let n=t;e<0&&(n="W");const r=Math.abs(e);return this.decimalToDms(r,n)}static yToDMS(e,t="N"){let n=t;e<0&&(n="S");const r=Math.abs(e);return this.decimalToDms(r,n)}static decimalToDms(e,t){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degrees:n,minutes:i,seconds:60*(r-i),direction:t}}static prefixInteger(e,t){return(Array(t).join("0")+e).slice(-t)}static serializeGrid1(e,t){const n="W"===e.direction?-1:1,r=2*e.degrees+Math.floor(e.minutes/30+1),i=this.prefixInteger(r*n+360,3),o="S"===t.direction?1:-1,s=(2*t.degrees+Math.floor(t.minutes/30+1))*o+180;return`${i}${this.CharCodes[Math.floor(s/24)]+this.CharCodes[s%24]}`}static deserializeGrid1(e){const t=e.substring(0,3);let n=Number.parseInt(t)-360,r="E";n<0&&(r="W",n=Math.abs(n)),n-=1;const i=Math.floor(n/2),o={degrees:i,minutes:30*(n-2*i),seconds:0,direction:r},s=e.substring(3,4),a=e.substring(4,5);let l=24*this.CharCodes.indexOf(s)+this.CharCodes.indexOf(a)-180,c="S";l<0&&(c="N",l=Math.abs(l)),l-=1;const u=Math.floor(l/2);return[o,{degrees:u,minutes:30*(l-2*u),seconds:0,direction:c}]}static serializeGrid2(e,t){const n=e.minutes%30,r=Math.floor(n/15),i=t.minutes%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid2(e){return this.deserializeGrid6(e)}static serializeGrid3(e,t){const n=e.minutes%15,r=Math.floor(n/5),i=t.minutes%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid3(e){return this.deserializeGrid7(e)}static serializeGrid4(e,t){const n=e.minutes%5,r=t.minutes%5;return this.matrix4[r][n]}static deserializeGrid4(e){return this.deserializeGrid8(e)}static serializeGrid5(e,t){const n=Math.floor(e.seconds/30),r=Math.floor(t.seconds/30);return this.matrix5[r][n]}static deserializeGrid5(e){let t=0,n=0;switch(e){case"C":t=0,n=0;break;case"D":t=1,n=0;break;case"A":t=0,n=1;break;case"B":t=1,n=1}return[30*t,30*n]}static serializeGrid6(e,t){const n=e.seconds%30,r=Math.floor(n/15),i=t.seconds%30,o=Math.floor(i/15);return this.matrix2[o][r]}static deserializeGrid6(e){let t=0,n=0;switch(e){case"3":t=0,n=0;break;case"4":t=1,n=0;break;case"1":t=0,n=1;break;case"2":t=1,n=1}return[15*t,15*n]}static serializeGrid7(e,t){const n=e.seconds%15,r=Math.floor(n/5),i=t.seconds%15,o=Math.floor(i/5);return this.matrix3[o][r]}static deserializeGrid7(e){const t=Number.parseInt(e);let n=!1,r=0,i=0;for(let o=0;o<3;o++){for(let e=0;e<3;e++)if(this.matrix3[o][e]===t){r=o,i=e,n=!0;break}if(n)break}return[5*i,5*r]}static serializeGrid8(e,t){const n=Math.floor(e.seconds%5),r=Math.floor(t.seconds%5);return this.matrix4[r][n]}static deserializeGrid8(e){let t=!1,n=0,r=0;for(let i=0;i<5;i++){for(let o=0;o<5;o++)if(this.matrix4[i][o]===e){n=i,r=o,t=!0;break}if(t)break}return[r,n]}static serializeGrid9(e,t){const n=Math.floor(1e3*(e.seconds-Math.floor(e.seconds))),r=Math.floor(n/125),i=Math.floor(1e3*(t.seconds-Math.floor(t.seconds))),o=Math.floor(i/125);return this.prefixInteger(8*(7-o)+r+1,2)}static deserializeGrid9(e){const t=Number.parseInt(e)-1,n=7-Math.floor(t/8);return[.125*(t-8*(7-n)),.125*n]}static serializeWarGrid(e,t,n=1){let r=this.serializeGrid1(e,t);return n>=2&&(r+=this.serializeGrid2(e,t),n>=3&&(r+=this.serializeGrid3(e,t),n>=4&&(r+=this.serializeGrid4(e,t),n>=5&&(r+=this.serializeGrid5(e,t),n>=6&&(r+=this.serializeGrid6(e,t),n>=7&&(r+=this.serializeGrid7(e,t),n>=8&&(r+=this.serializeGrid8(e,t),n>=9&&(r+=this.serializeGrid9(e,t))))))))),r}static deserializeWarGrid(e){const t=e.length;if(t<5)throw new Error("编码长度不小于5个");const[n,r]=this.deserializeGrid1(e);let i=[0,0];return t>=6&&(i=this.deserializeGrid2(e.substring(5,6)),n.minutes+=i[0],r.minutes+=i[1],t>=7&&(i=this.deserializeGrid3(e.substring(6,7)),n.minutes+=i[0],r.minutes+=i[1],t>=9&&(i=this.deserializeGrid4(e.substring(7,9)),n.minutes+=i[0],r.minutes+=i[1],t>=10&&(i=this.deserializeGrid5(e.substring(9,10)),n.seconds+=i[0],r.seconds+=i[1],t>=11&&(i=this.deserializeGrid6(e.substring(10,11)),n.seconds+=i[0],r.seconds+=i[1],t>=12&&(i=this.deserializeGrid7(e.substring(11,12)),n.seconds+=i[0],r.seconds+=i[1],t>=14&&(i=this.deserializeGrid8(e.substring(12,14)),n.seconds+=i[0],r.seconds+=i[1],t>=16&&(i=this.deserializeGrid9(e.substring(14,16)),n.seconds+=i[0],r.seconds+=i[1])))))))),[n,r]}}function ei(e,t){const n={};return Object.keys(e).filter((e=>t.includes(e))).forEach((t=>{n[t]=e[t]})),n}function ti(e=100,t=0){return Math.floor(Math.random()*(e-t+1))+t}function ni(e){if(!e)return;const t=e.length;return 0!==t?e[Math.floor(Math.random()*t)]:void 0}function ri(e,t="image/png"){let n=t,r="";const i=e.split(",");if(2===i.length){const e=i[0]?.match(/:(.*?);/);n=e[1],r=atob(i[1])}else r=atob(i[0]);let o=r.length;const s=new Uint8Array(o);for(;o--;)s[o]=r.charCodeAt(o);return new Blob([s],{type:n})}function ii(e){return new Promise(((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)}))}function oi(e,t,n){return e.split(t).join(n)}function si(e,t=2){const n=Math.pow(10,t);return Math.round(e*n)/n}function ai(e,t=!0,n=!0){const r=n?e>0?"E":"W":e>0?"N":"S",i=Math.floor(e),o=60*(e-i),s=Math.floor(o),a=60*(o-s);return t?`${r}:${i}°${s}′${a.toFixed(3)}″`:{degree:i*(e>0?1:-1),minute:s,second:a}}function li(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return`${n} ${i} ${(60*(r-i)).toFixed(t)}`}function ci(e,t=3){const n=Math.floor(e),r=60*(e-n),i=Math.floor(r);return{degree:n,minute:i,second:si(60*(r-i),t)}}function ui(e,t,n){return e+t/60+n/3600}function hi(e,t=-1){const n=e.split(" ");if(!n||3!=n.length)return-1;const r=Number(n[0]),i=Number(n[1]),o=Number(n[2]);return r===Number.NaN||i===Number.NaN||o===Number.NaN?-1:-1!=t?si(r+i/60+o/3600,t):r+i/60+o/3600}function fi(e){const t=e.match(/^([EWNS]):?(\d+)[°ºd](\d+)[′'m](\d+\.?\d*)[″"s]?$/i);if(!t)return NaN;let n=parseFloat(t[2])+parseFloat(t[3])/60+parseFloat(t[4])/3600;return(e.toUpperCase().startsWith("W")||e.toUpperCase().startsWith("S"))&&(n=-n),n}const di=Object.freeze(Object.defineProperty({__proto__:null,base64ToBlob:ri,blobToDataURL:ii,convertDecimalism:ai,convertDecimalismData:ci,convertDecimalismSpacing:li,convertToDecimalism:ui,convertToDecimalismByString:hi,convertToDecimalismByString2:fi,filterObj:ei,getRandomInt:ti,getRandomItem:ni,replaceAll:oi,reserveDecimal:si},Symbol.toStringTag,{value:"Module"}));function pi(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 gi(e){var t=e.toLowerCase();if(Si(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 mi(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 vi=(e=>(e[e.RGBA=0]="RGBA",e[e.Hex=1]="Hex",e[e.Hsla=2]="Hsla",e))(vi||{});function yi(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?1:"r"===t||"("===t?0:"h"===t?2:0}function wi(e){if(e){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){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 l=a<=.5?a*(s+1):a+s-a*s,c=2*a-l;n=bi(c,l,o+1/3),r=bi(c,l,o),i=bi(c,l,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 bi(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 Si(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function Ci(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function Ei(e){let t=e.toLowerCase();if(Si(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 xi(e){if(!Si(e))return;const[t,n,r]=Ei(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map((e=>Number(e)));return.299*t+.578*n+.114*r<192}function ki(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${_i(e.substring(0,2),t)}${_i(e.substring(2,4),t)}${_i(e.substring(4,6),t)}`}function Mi(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${zi(e.substring(0,2),t)}${zi(e.substring(2,4),t)}${zi(e.substring(4,6),t)}`}function zi(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 Ti(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 Ai(e){var t,n;return n=[0,0,0],(Ti(~~(t=Ei(e.substring(1)).split(","))[0],~~t[1],~~t[2])+.05)/(Ti(n[0],n[1],n[2])+.05)>=12?"#000000":"#FFFFFF"}function _i(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 Ri(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${Ii}毫秒`)}function Ii(e){return new Promise((t=>setTimeout(t,e)))}function Li(e,t,n,r="json",i){const o={baseURL:ce.Config?.ServiceURL.DefaultWebAPI,timeout:6e4,params:e,paramsSerializer:{serialize:function(e){return q.stringify(e,{indices:!1,arrayFormat:"repeat"})}},headers:{"Content-Type":"application/json",Authorization:"bearer "+Xe()?.token},responseType:r,cancelToken:i};if(n)for(let s in n)o.headers[s]=n[s];return ce.SystemID&&(o.headers.sysid=ce.SystemID,ce.SystemGroup&&(o.headers.sysgroup=ce.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function Di(e,t,n,r,i="json",o,s){const a=Li(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),ce.Axios?.get(e,a).catch((function(t){Pi(t,a.baseURL,e,"Get")}))}function Pi(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(ce.EventBus.emit(ne.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function Ni(e,t,n,r,i,o="json",s){const a=Li(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const l=function(e){let t=new FormData;return e&&Object.keys(e).forEach((n=>{if(!e)return;let r=e[n];null!=r&&(Me(r)?r.forEach((e=>{t.append(n,Ui(e))})):t.append(n,Ui(r)))})),t}(n);return ce.Axios?.post(e,l,a).catch((function(e){Pi(e,t,a.baseURL,"Post")}))}function Oi(e,t,n,r,i,o="json",s){const a=Li(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),ce.Axios?.post(e,n,a).catch((function(n){Pi(n,t,e,"Post")}))}function Bi(e,t,n=!1){return e.startsWith("http")?Di("",e,t):n||t?Di(e,void 0,t):Di(e,"",void 0)}function Fi(e,t){return Ni(e,void 0,t)}function Wi(e,t){return ce.Axios?.get(e,{params:t}).catch((function(t){Pi(t,e,"","外部Get")}))}function Ui(e){return e instanceof Blob?e:e.toString()}function ji(e,t,n){const r=t??Ue.getFileName(e);Di("",e,n,void 0,"blob").then((e=>{e.data&&tr(e.data,r)}))}var $i,Hi,Gi,qi,Xi,Vi,Ki,Yi,Zi,Ji={exports:{}};var Qi=function(){if(Zi)return Ji.exports;Zi=1;var e=function(){return Hi?$i:(Hi=1,e="undefined"!=typeof window?window:void 0!==Y?Y:"undefined"!=typeof self?self:{},$i=e);var e}(),t=function(){if(qi)return Gi;qi=1,Gi=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 Gi}(),n=function(){if(Vi)return Xi;Vi=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")},t=function(e){return"[object Array]"===Object.prototype.toString.call(e)};return Xi=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(":"),l=e(s.slice(0,a)).toLowerCase(),c=e(s.slice(a+1));void 0===r[l]?r[l]=c:t(r[l])?r[l].push(c):r[l]=[r[l],c]}return r},Xi}(),r=function(){if(Yi)return Ki;Yi=1,Ki=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 Ki}();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(h),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(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:i(),statusCode:t,method:d,headers:{},url:f,rawRequest:u},u.getAllResponseHeaders&&(o.headers=n(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(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,f=u.url=e.uri||e.url,d=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:d,url:f,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(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(d,f,!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 Ji.exports=o,Ji.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)}})),Ji.exports}();const eo=Z(Qi),to=[200,201,202,204,308],no=[408,502,503,504];class ro{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=V(),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?Ii(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 Ii(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=eo({...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){this.paused||this.offline||this.success||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(to.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),Ii(1e3).then((t=>this.sendChunks(e)))}}else if(null!=t&&no.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 io=e=>new ro(e),oo=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=globalThis.scrollX,a=globalThis.scrollY,l=this.getBoundingClientRect(e),{left:c,top:u,width:h,height:f}=l,d=c+s-((s||n)-(i||0)),p=u+a-((a||r)-(o||0)),g=globalThis.document.documentElement.clientWidth,m=globalThis.document.documentElement.clientHeight;return{left:d,top:p,right:g-h-d,bottom:m-f-p,rightIncludeBody:g-d,bottomIncludeBody:m-p}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach((r=>{n[`${r}${Ue.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)}},so=T({isLock:!1,lockTime:0});function ao(e){so.isLock=e,e&&(Ve(),console.log("锁屏了……"))}function lo(){return so.isLock}let co;function uo(){clearInterval(co),globalThis.location.href.indexOf("/login")>0||so.isLock||(ao(!1),so.lockTime=function(){let e=3600;return ce.Config.UI?.LockTime&&ce.Config.UI?.LockTime>=10&&(e=ce.Config.UI.LockTime),e}(),co=setInterval((()=>{if(so.lockTime--,so.lockTime<=0)return ao(!0),clearInterval(co)}),1e3))}function ho(){uo(),document.addEventListener("mousedown",uo),document.addEventListener("mousemove",uo)}function fo(){document.removeEventListener("mousedown",uo),document.removeEventListener("mousemove",uo)}function po(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 go,mo={exports:{}},vo=(go||(go=1,mo.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(!a&&po)return po(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){return i(t[s][1][e]||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=po,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 l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==Y?Y:"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"],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!==i&&d(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){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 f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(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))}var s=p((function(){t(i,r)}));"error"===s.status&&r(s.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}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(i);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(f,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)d(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},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(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,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){t.resolve(e).then((function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(c,s))}),(function(e){r||(r=!0,o.reject(c,e))}))}},c.race=function(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;)l(e[s]);return a;function l(e){t.resolve(e).then((function(e){r||(r=!0,o.resolve(a,e))}),(function(e){r||(r=!0,o.reject(a,e))}))}}},{1:1}],3:[function(e,t,n){(function(t){"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==Y?Y:"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};var o=function(){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}}();function s(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 a=Promise;function l(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function u(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function h(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",d=void 0,p={},g=Object.prototype.toString,m="readonly",v="readwrite";function y(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 w(e){return"boolean"==typeof d?a.resolve(d):function(e){return new a((function(t){var n=e.transaction(f,v),r=s([""]);n.objectStore(f).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}))}(e).then((function(e){return d=e}))}function b(e){var t=p[e.name],n={};n.promise=new a((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 S(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function C(e,t){var n=p[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function E(e,t){return new a((function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);b(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var s=o.open.apply(o,i);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}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.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},n(t),S(e)}}))}function x(e){return E(e,!1)}function k(e){return E(e,!0)}function M(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 z(e){return s([y(atob(e.data))],{type:e.type})}function T(e){return e&&e.__local_forage_encoded_blob}function A(e){var t=this,n=t._initReady().then((function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(n,e,e),n}function _(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 a.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),k(e)})).then((function(){return function(e){b(e);for(var t=p[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,x(e).then((function(t){return e.db=t,M(e)?k(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 C(e,t),t}))}(e).then((function(){_(e,t,n,r-1)}))})).catch(n);n(i)}}var R={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=p[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},p[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=A);var o=[];function s(){return a.resolve()}for(var l=0;l<i.forages.length;l++){var c=i.forages[l];c!==t&&o.push(c._initReady().catch(s))}var u=i.forages.slice(0);return a.all(o).then((function(){return n.db=i.db,x(n)})).then((function(e){return n.db=e,M(n,t._defaultConfig.version)?k(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)}}))},_support:function(){try{if(!o||!o.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}}(),iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){_(n._dbInfo,m,(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;T(r)&&(r=z(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 l(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){_(n._dbInfo,m,(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),T(e)&&(e=z(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=new a((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===g.call(t)?w(o.db).then((function(e){return e?t:function(e){return new a((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)}))}(t)})):t})).then((function(t){_(r._dbInfo,v,(function(o,s){if(o)return i(o);try{var a=s.objectStore(r._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;i(e)}}catch(e){i(e)}}))})).catch(i)}));return l(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){_(n._dbInfo,v,(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 l(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){_(t._dbInfo,v,(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 l(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){_(t._dbInfo,m,(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 l(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){e<0?t(null):n.ready().then((function(){_(n._dbInfo,m,(function(i,o){if(i)return r(i);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(){r(l.error)}}catch(e){r(e)}}))})).catch(r)}));return l(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){_(t._dbInfo,m,(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 l(n,e),n},dropInstance:function(e,t){t=h.apply(this,arguments);var n,r=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){var i=e.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):x(e).then((function(t){var n=p[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));n=e.storeName?i.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;b(e);var r=p[e.name],i=r.forages;t.close();for(var s=0;s<i.length;s++){var l=i[s];l._dbInfo.db=null,l._dbInfo.version=n}var c=new a((function(t,r){var i=o.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,S(n._dbInfo)}})).catch((function(t){throw(C(e,t)||a.resolve()).catch((function(){})),t}))}})):i.then((function(t){b(e);var n=p[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;var s=new a((function(t,n){var r=o.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 s.then((function(e){n.db=e;for(var t=0;t<r.length;t++)S(r[t]._dbInfo)})).catch((function(t){throw(C(e,t)||a.resolve()).catch((function(){})),t}))}))}else n=a.reject("Invalid arguments");return l(n,t),n}};var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=/^~~local_forage_type~([^~]+)~/,D="__lfsc__:",P="arbf",N="blob",O="si08",B="ui08",F="uic8",W="si16",U="si32",j="ur16",$="ui32",H="fl32",G="fl64",q=Object.prototype.toString;function X(e){var t,n,r,i,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=I.indexOf(e[t]),r=I.indexOf(e[t+1]),i=I.indexOf(e[t+2]),o=I.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}function V(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=I[n[t]>>2],r+=I[(3&n[t])<<4|n[t+1]>>4],r+=I[(15&n[t+1])<<2|n[t+2]>>6],r+=I[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}var K={serialize:function(e,t){var n="";if(e&&(n=q.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===q.call(e.buffer))){var r,i=D;e instanceof ArrayBuffer?(r=e,i+=P):(r=e.buffer,"[object Int8Array]"===n?i+=O:"[object Uint8Array]"===n?i+=B:"[object Uint8ClampedArray]"===n?i+=F:"[object Int16Array]"===n?i+=W:"[object Uint16Array]"===n?i+=j:"[object Int32Array]"===n?i+=U:"[object Uint32Array]"===n?i+=$:"[object Float32Array]"===n?i+=H:"[object Float64Array]"===n?i+=G:t(new Error("Failed to get type for BinaryArray"))),t(i+V(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+V(this.result);t(D+N+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)}},deserialize:function(e){if(e.substring(0,9)!==D)return JSON.parse(e);var t,n=e.substring(13),r=e.substring(9,13);if(r===N&&L.test(n)){var i=n.match(L);t=i[1],n=n.substring(i[0].length)}var o=X(n);switch(r){case P:return o;case N:return s([o],{type:t});case O:return new Int8Array(o);case B:return new Uint8Array(o);case F:return new Uint8ClampedArray(o);case W:return new Int16Array(o);case j:return new Uint16Array(o);case U:return new Int32Array(o);case $:return new Uint32Array(o);case H:return new Float32Array(o);case G:return new Float64Array(o);default:throw new Error("Unkown type: "+r)}},stringToBuffer:X,bufferToString:V};function Y(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Z(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):Y(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,s)}),o)}function J(e,t,n,r){var i=this;e=u(e);var o=new a((function(o,s){i.ready().then((function(){void 0===t&&(t=null);var a=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,c){c?s(c):l.db.transaction((function(n){Z(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(r>0)return void o(J.apply(i,[e,a,n,r-1]));s(t)}}))}))})).catch(s)}));return l(o,n),o}var Q={_driver:"webSQLStorage",_initStorage:function(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 a((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){Y(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=K,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,s=o.length,a=0;a<s;a++){var l=o.item(a),c=l.value;if(c&&(c=i.serializer.deserialize(c)),void 0!==(c=e(c,l.key,a+1)))return void t(c)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r},getItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(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 l(r,t),r},setItem:function(e,t,n){return J.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=u(e);var r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return l(r,t),r},clear:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return l(n,e),n},length:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(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 l(n,e),n},key:function(e,t){var n=this,r=new a((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Z(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 l(r,t),r},keys:function(e){var t=this,n=new a((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Z(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 l(n,e),n},dropInstance:function(e,t){t=h.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 a((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(function(e){return new a((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)}))}))}(r))})).then((function(e){return new a((function(t,n){e.db.transaction((function(r){function i(e){return new a((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],s=0,l=e.storeNames.length;s<l;s++)o.push(i(e.storeNames[s]));a.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):a.reject("Invalid arguments"),l(r,t),r}};function ee(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function te(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var ne={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=ee(e,this._defaultConfig),te()?(this._dbInfo=t,t.serializer=K,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(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 l=localStorage.key(a);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(i),s++)))return c}}}));return l(r,t),r},getItem:function(e,t){var n=this;e=u(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 l(r,t),r},setItem:function(e,t,n){var r=this;e=u(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new a((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 l(i,n),i},removeItem:function(e,t){var n=this;e=u(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return l(r,t),r},clear:function(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 l(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return l(t,e),t},key:function(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 l(r,t),r},keys:function(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 l(n,e),n},dropInstance:function(e,t){if(t=h.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 a((function(t){e.storeName?t(ee(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)}})):a.reject("Invalid arguments"),l(r,t),r}},re=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},ie=function(e,t){for(var n=e.length,r=0;r<n;){if(re(e[r],t))return!0;r++}return!1},oe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},se={},ae={},le={INDEXEDDB:R,WEBSQL:Q,LOCALSTORAGE:ne},ce=[le.INDEXEDDB._driver,le.WEBSQL._driver,le.LOCALSTORAGE._driver],ue=["dropInstance"],he=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ue),fe={description:"",driver:ce.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function de(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function pe(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(oe(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var ge=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),le)if(le.hasOwnProperty(n)){var r=le[n],i=r._driver;this[n]=i,se[i]||this.defineDriver(r)}this._defaultConfig=pe({},fe),this._config=pe({},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 a((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=he.concat("_initStorage"),s=0,c=o.length;s<c;s++){var u=o[s];if((!ie(ue,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=a.reject(t);return l(n,arguments[arguments.length-1]),n}},n=0,r=ue.length;n<r;n++){var i=ue[n];e[i]||(e[i]=t(i))}}();var h=function(n){se[r]&&console.info("Redefining LocalForage driver: "+r),se[r]=e,ae[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 c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=se[e]?a.resolve(se[e]):a.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=a.resolve(K);return c(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 c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;oe(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}var l=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=l.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=function(e){return function(){var t=0;return 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 l=new Error("No available storage method found.");return r._driverSet=a.reject(l),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=a.reject(e),r._driverSet})),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){pe(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=he.length;e<t;e++)de(this,he[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),me=new ge;t.exports=me},{3:3}]},{},[4])(4)),mo.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 $o=(No||(No=1,Oo.exports=function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){if(!a&&Fo)return Fo(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=Fo,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 z(e,t){var n=m[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function k(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 M(e){return k(e,!1)}function T(e){return k(e,!0)}function A(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 L(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,M(e).then(function(t){return e.db=t,A(e)?T(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 z(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),T(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,M(n)}).then(function(e){return n.db=e,A(n,t._defaultConfig.version)?T(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 N(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 O(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:L(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 G(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):M(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(z(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(z(e,t)||c.resolve()).catch(function(){}),t})})}else i=c.reject("Invalid arguments");return u(i,t),i}var X={_driver:"asyncStorage",_initStorage:F,_support:a(),iterate:O,getItem:N,setItem:$,removeItem:W,clear:U,length:j,key:H,keys:q,dropInstance:G};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 ze(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 ke(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 Me(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 Te(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 Ae(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 Le(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(Le(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:ze,clear:ke,length:Me,key:Te,keys:Ae,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 Ne(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 Oe(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 Ge(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 Xe={_driver:"localStorageWrapper",_initStorage:Fe,_support:Re(),iterate:$e,getItem:Oe,setItem:qe,removeItem:He,clear:Ne,length:je,key:We,keys:Ue,dropInstance:Ge},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:X,WEBSQL:Ie,LOCALSTORAGE:Xe},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)),Oo.exports);const Wo=ve($o);var Uo,jo={exports:{}};Uo=()=>{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=null,a=null){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!==jo?jo.exports=Uo():"function"==typeof define&&"object"==typeof define.amd?define(Uo):(void 0).streamSaver=Uo();const Ho=(null==jo.exports?{}:jo.exports).default||jo.exports;class qo{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=Nn(),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 Yr(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=Wo.createInstance({name:this.fileID,driver:Wo.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(),Wo.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=Ai.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++,Yr(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=Ho.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(),Wo.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}}function Go(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 Xo(e={},t={}){let n;for(n in t)Le(t[n])?e[n]=Xo(e[n],t[n]):e[n]=t[n];return e}function Yo(e,t,n={name:void 0}){const i=e.resolve({path:t,query:n});globalThis.open(i.href,"_blank")}function Vo(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function Zo(e,t="/"){if(e)return e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`}function Ko(e,t){e.getRoutes().find(e=>"/"===e.path)||e.addRoute({name:"/",path:"/",redirect:t.path})}function Jo(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 Qo(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 es(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 ts=new Map;function ns(e,t=!1){if(t&&ts.size>0)return ts;ts.clear();for(const t in e){const n=e[t];n&&n.length>0&&(n.forEach(e=>{let t;const n=e.layoutID;ts.has(n)&&(t=ts.get(n)),t||(t=new Array,ts.set(n,t)),t&&t.push(e)}),n.length=0),delete e[t]}return ts}function is(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 is(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 rs(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let e of t){const t=os(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=ss(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:Ai.Config.UI.SiteTitle,group:Ai.Config.UI.Group,product:a,version:s,routes:t,widgetMenu:n,widgets:i,functions:r}}function os(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=os(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function ss(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=ss(e);n&&t.children?.push(n)})),t}function as(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 ls(e,t){const n=rs(e);Jn(n,t),Ai.Message?.msg("导出系统功能权限文件成功!")}function cs(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 us(e){let t=hs(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function hs(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 ds(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 fs(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function ps(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function gs(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function ms(e){let t=hs(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function vs(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function ys(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 ws(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 bs(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 xs(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function Es(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 zs(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 ks(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 Ms(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 Ts(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function As(e){return!!/^[1-9][0-9]{5}$/.test(e)}function Ls(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 _s(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 Is(e){e&&Ai.EventBus.emit($n.ModalContainerWidget_LoadModal,e)}function Rs(e){Ai.EventBus.emit($n.ModalContainerWidget_CloseModal,e)}let Ds=[];const Bs=()=>{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(!Ds.length)return Ds=e,!1;if(e.length!==Ds.length)return Ds=e,!0;for(let t=0;t<Ds.length;t++)if(Ds[t]!==e[t])return Ds=e,!0;return!1}();if(e){confirm("页面有更新,点击确定刷新页面?")&&location.reload()}else Bs()},5e3)},Ps=new Set;function Fs(e){return null!==e?parseFloat(e):0}function Ns(e){const t=globalThis.getComputedStyle(e),n=Math.ceil([t.paddingLeft,t.width,t.paddingRight].map(Fs).reduce((e,t)=>e+t)),i=Math.ceil([t.paddingTop,t.height,t.paddingBottom].map(Fs).reduce((e,t)=>e+t));return{width:n,height:i}}class Os{width;height;constructor(e,t){this.width=e,this.height=t}}function $s(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 Ws(e,t,n,i){const r=e-n,o=t-i;return r*r+o*o}globalThis.addEventListener("resize",e=>{Ps.forEach(e=>{e&&Ce(e.fixPosition)&&e.fixPosition()})});const Us=[],js=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=()=>{Us.push(r),p=new se(e.zGroup,v),e.isOpen&&(f(()=>{0==o++&&(z(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(Us.every(n=>{if(!n.isOpen||r==n)return!0;const i=$s(n);if(null==i)return!0;const{left:o,top:s}=i;return Ws(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&&k(),T(),s=new te(w.value,y.value,{onMove:()=>T(),onMoveStart:()=>n("move-start"),onMoveEnd:()=>n("move-end")}),e.resizable&&function(){const{height:t}=Z(w.value);a=new ne(y.value,{onResize:()=>k(),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()),Ps.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 z(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=Ns(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 k(e=!0){const t=y.value,i=w.value,r=b.value;if(r&&t&&i){const{width:o,height:s}=Ns(r),{width:a,height:l}=Ns(t),c=Ns(i).height,u=a-(r.offsetWidth-o),h=l-c-(r.offsetHeight-s);r.style.width=`${u}px`,r.style.height=`${h}px`,M(),n("resize",new Os(u,h)),e&&(n("update:width",u),n("update:height",h))}}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>globalThis.innerWidth&&(x.value.left=globalThis.innerWidth-t.width+"px"),t.bottom>globalThis.innerHeight&&(x.value.top=globalThis.innerHeight-t.height+"px")}}function T(e=!0){M();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=>{z({width:e}),k(!1)}),u(()=>e.height,e=>{z({height:e}),k(!1)}),h(()=>{m()}),d(()=>{Ps.delete(this),p.unregister(),a&&a.teardown(),s&&s.teardown(),Us.splice(Us.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:M}}}),Hs={class:"title"};const qs=fe(js,[["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",Hs,[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},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 Gs,Xs;(Xs=Gs||(Gs={}))[Xs.StyleBlack=0]="StyleBlack",Xs[Xs.StyleWhite=1]="StyleWhite",Xs[Xs.StyleMetal=2]="StyleMetal",Xs[Xs.StyleGrayblue=3]="StyleGrayblue";const Ys={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)"}},Vs={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)"}},Zs={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)"}},Ks={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)"}},Js=qs;var Qs,ea;(ea=Qs||(Qs={}))[ea.top=0]="top",ea[ea.bottom=1]="bottom",ea[ea.centerBack=2]="centerBack",ea[ea.centerMain=3]="centerMain",ea[ea.centerFront=4]="centerFront",ea[ea.left=5]="left",ea[ea.right=6]="right";class ta{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,Ai.RightWidgetConfigMap){const e=Ai.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=Ai.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: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),Ai.EventBus.off($n.WidgetLoadedEvent,e))};const n=this,i=t.afterid,r=t;return Ai.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=z(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(()=>{Ai.EventBus.emit($n.WidgetLoadedEvent,{layoutID:this._LayoutID,widgetID:e.id}),this.loadOtherDependenceWidgets(e.id)})}}).catch(t=>{Ai.Logger().error("加载Widget失败!",e,t),Ai.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),Ai.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 Qs.top:return this.layoutState.topContainer.value;case Qs.bottom:return this.layoutState.bottomContainer.value;case Qs.left:return this.layoutState.leftContainer.value;case Qs.right:return this.layoutState.rightContainer.value;case Qs.centerBack:return this.layoutState.centerBackContainer.value;case Qs.centerMain:return this.layoutState.centerMainContainer.value;case Qs.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 Ai.LayoutMap.get(n.layoutID)}}}}const na=fe(e({name:"SuspenseWithError",setup(){const e=t(null);return k(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(M,{key:1},{default:v(()=>[s(e.$slots,"default")]),fallback:v(()=>[s(e.$slots,"fallback",{},()=>[t[0]||(t[0]=w("div",null,"加载中……",-1))])]),_:3}))}]]),ia=e({name:"RouterTransition",__name:"RouterTransition",setup:e=>(e,t)=>{const n=p("router-view");return i(),g(na,null,{default:v(()=>[T(n,null,{default:v(({Component:e,route:t})=>[(i(),g(A,null,[t.meta.keepAlive?(i(),g(L(e),{key:t.name})):b("",!0)],1024)),t.meta.keepAlive?b("",!0):(i(),g(L(e),{key:t.name}))]),_:1})]),_:1})}}),ra=["id"],oa=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(),z=t(a.enableRouterView);u(()=>a.enableRouterView,()=>{z.value=a.enableRouterView});const k=new Map,M=(e,t)=>{e&&k.set(t,e)},A=new ta({topContainer:p,centerBackContainer:m,centerMainContainer:v,centerFrontContainer:y,bottomContainer:x,leftContainer:E,rightContainer:C},d,a.widgetConfig,k),D=$(Qs.top),B=$(Qs.centerBack),P=$(Qs.centerFront),F=$(Qs.left),N=$(Qs.right),O=$(Qs.bottom);function $(e){return A?.getContainerComponents(e)}const W=c(()=>a.layoutStyle);return h(()=>{A&&(d?Ai.LayoutMap.set(d,A):(Ai.LayoutManager=A,Ai.LayoutMap.set("",A)),A.preloadWidgets(),l("containerLoaded",{layoutID:d,layoutManager:A}),Ai.EventBus.emit($n.LayoutContainerLoaded,{layoutID:d,layoutManager:A}))}),(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(L(t),{ref_for:!0,ref:t=>M(t,e),key:e,style:o(t.style),class:R(t.cssClass)},null,8,["style","class"]))),128))],512),w("div",null,[z.value?(i(),n("div",{key:0,ref_key:"centerMainContainer",ref:v,class:"centerdiv mainContainer"},[s(e.$slots,"main",{},()=>[T(ia)],!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(L(t),{ref_for:!0,ref:t=>M(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(L(t),{ref_for:!0,ref:t=>M(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(L(t),{ref_for:!0,ref:t=>M(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(N),([e,t])=>(i(),g(L(t),{ref_for:!0,ref:t=>M(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(O),([e,t])=>(i(),g(L(t),{ref_for:!0,ref:t=>M(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,ra))}}),[["__scopeId","data-v-318009ad"]]),sa=e({name:"RouterTransition",__name:"RouterTransitionAnimate",props:{enterActive:{default:"animated fadeIn"},leaveActive:{default:"animated fadeOut"}},setup:e=>(t,n)=>{const r=p("router-view");return i(),g(na,null,{default:v(()=>[T(r,null,{default:v(({Component:t,route:n})=>[T(D,{appear:"","enter-active-class":e.enterActive,"leave-active-class":e.leaveActive},{default:v(()=>[(i(),g(A,null,[n.meta.keepAlive?(i(),g(L(t),{key:n.name})):b("",!0)],1024)),n.meta.keepAlive?b("",!0):(i(),g(L(t),{key:n.name}))]),_:2},1032,["enter-active-class","leave-active-class"])]),_:1})]),_:1})}}),aa=new Map,la=t(new Map);class ca{static ZIndexMax=1;static addWindowPanel(e){aa.set(e.id,e)}static removeWindowPanel(e){aa.has(e)&&(aa.delete(e),la.value.delete(e))}static minimizeWindowPanel(e){aa.has(e)&&la.value.set(e,-1)}static openWindowPanel(e){aa.has(e)&&la.value.set(e,1)}}const ua={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"/>'},ha={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"/>'},da={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"/>'},fa={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"/>'},pa=["src"],ga={key:1,class:"paneltitle"},ma={class:"dragPanelBar"},va={class:"dragPanelContent"},ya={class:"drag-pointer-group"},wa=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(),z=c(()=>f.isDark),k=t({x:0,y:0}),M=250,T=100,A=t({width:0,height:0}),L=e=>{S.value&&(S.value.style.left=`${e.x}px`,S.value.style.top=`${e.y}px`)};u(()=>k.value,e=>{L(e)});const _=e=>{S.value&&(S.value.style.width=`${e.width}px`,S.value.style.height=`${e.height}px`)};u(()=>A.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:k.value.x,top:k.value.y,right:k.value.x+A.value.width,bottom:k.value.y+A.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-T;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&&(k.value={x:Math.max(D.newEdges.left,0),y:Math.max(D.newEdges.top,0)},A.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,T),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=k.value,document.addEventListener("mousemove",P.mouseMove),document.addEventListener("mouseup",P.mouseUp))},mouseMove:e=>{P.startingMouse&&P.startingPosition&&(e.preventDefault(),k.value={x:Math.min(Math.max(P.startingPosition.x+e.clientX-P.startingMouse.x,0),document.body.clientWidth-A.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 N=t(1),O=c(()=>!(-1===la.value.get(d))),$=t(!1),W=t(!0),U=c(()=>"z-index:"+N.value);function j(){N.value<=ca.ZIndexMax&&(ca.ZIndexMax+=1,N.value=ca.ZIndexMax)}function H(){p("minimize",F()),ca.minimizeWindowPanel(d)}function q(){$.value=!$.value}function G(){p("close",F(!1)),ca.removeWindowPanel(d),W.value=!1}const X=c(()=>$.value?fa:da),Y={id:d,isShow:O,close:G,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);ca.addWindowPanel(e),p("loaded",e)}(),k.value.x=Z(f.left),k.value.y=Z(f.top),L(k.value),A.value={width:Z(f.nWidth),height:Z(f.nHeight)},_(A.value),D.mount()}),B(()=>{ca.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:z.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,pa)):b("",!0),f.title?(i(),n("span",ga,E(f.title),1)):b("",!0)],!0),w("div",ma,[e.hasMin?(i(),g(I(V),{key:0,icon:I(ha),onClick:r(H,["stop"])},null,8,["icon"])):b("",!0),e.hasMax?(i(),g(I(V),{key:1,icon:X.value,onClick:r(q,["stop"])},null,8,["icon"])):b("",!0),e.hasClose?(i(),g(I(V),{key:2,icon:I(ua),onClick:r(G,["stop"])},null,8,["icon"])):b("",!0)])],544),w("div",va,[s(t.$slots,"default",{},void 0,!0)]),w("div",ya,[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,O.value]]):b("",!0)]),_:3}))}}),[["__scopeId","data-v-d7d4a2b7"]]),ba={class:"adivider"},Sa={class:"contentText"},xa=fe(e({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){P(e=>({v1dc34ba7:r.value}));const t=e,r=c(()=>Lr(t.color)||Mr(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",ba,[w("div",{class:"line",style:o(a.value)},null,4),w("div",Sa,[s(e.$slots,"default",{},void 0,!0)]),w("div",{class:"line",style:o(l.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),Ea={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())}},Ca={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 za=fe(Ca,[["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 ka(e){const t=new q(new H);t.serialize(e);return t.stream.toString()}function Ma(e){if(null==e||""===e)return e;return new G(new H(e)).deserialize()}class Ta{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new Ta;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 G(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=X.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 G(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 Aa=new Map,La=new Map;let _a;const Ia={getDefaultClient(){if(_a||(_a=new zo(SysConfig?.ServiceURL.DefaultHproseAPI)),!_a)throw Error("HproseProxy对象为空");return _a},registerHprose(e,t){const n=La.get(e);if(!n){const n=new zo(t);Aa.set(e,n)}return n},getHprose:e=>La?.get(e),getProxyHprose:e=>Aa.get(e),unregisterHprose(e){Aa.get(e)&&(La.delete(e),Aa.delete(e))}},Ra=5e3,Da=36e5,Ba={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},Pa="access_token",Fa=Ai?.Config?.ServiceURL.LoginAuthURL;function Na(){const e=Gr();e&&Yr(Ba.RefreshToken,Fa,{refreshToken:e}).then(e=>{$a(e.data)})}function Oa(){const e=jr.getJsonObject(Pa);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=Ra?Na():setTimeout(Na,n-Ra))}function $a(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=Da?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=Hr();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(Pa,t,n/1e3),Oa()}else jr.remove(Pa)}const Wa="Wm314243",Ua=Ai?.Config?.ServiceURL.LoginAuthURL;async function ja(e){const t={username:e.username,pwd:mi.encryptToString(e.pwd,Wa)},n=await Yr(Ba.Login,Ua,t),i=n?.data;return i&&($a(i.doubletoken),_o(!1)),i}function Ha(e){const t={oldpwd:mi.encryptToString(e.oldpwd,Wa),newpwd:mi.encryptToString(e.newpwd,Wa)};return Yr(Ba.ChangeMyPwd,Ua,t)}function qa(e){return mi.encryptToString(e,Wa)}function Ga(){const e=Hr();e&&(Kr(Ba.Logout,Ua,{token:e.token,reftoken:e.refresh}),qr())}function Xa(e){return Yr(Ba.CheckToken,Ua,{token:e})}var Ya,Va;(Va=Ya||(Ya={}))[Va.Widget=0]="Widget",Va[Va.Route=1]="Route",Va[Va.URL=2]="URL",Va[Va.Action=3]="Action";const Za="ROLE_SYSTEM_RIGHT",Ka=new nt("",globalThis.sessionStorage);function Ja(){return Ka.get(Za)}function Qa(e){Ka.set(Za,e)}function el(){Ka.remove(Za)}function tl(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(tl(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function nl(e,t,n="name"){e&&t&&e.forEach(e=>{const i=t.find(t=>t[n]===e[n]);i&&(e.children?i.children&&nl(e.children,i.children,n):i.children&&0!==i.children.length||i.selected&&(e.selected=i.selected))})}function il(e,t,n="name"){e&&t&&e.forEach(e=>{const i=t.find(t=>t[n]===e[n]);i&&(e.children?i.children&&il(e.children,i.children,n):i.children&&0!==i.children.length||i.selected&&(e.selected=i.selected))})}function rl(e,t,n,i="name"){const r=e[n],o=t[n];r?o&&il(r,o,i):o&&(e[n]=o)}function ol(e){if(e&&e.length>0){const t=e.length;let n,i=!1;if(t>0){i=Le(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);rl(r,o,"routes","name"),rl(r,o,"widgetMenu","name"),rl(r,o,"widgets","id"),rl(r,o,"functions","id")}n=r}return n&&(tl(n.routes),tl(n.widgetMenu),tl(n.widgets),tl(n.functions)),n}}const sl=[],al=[],ll=[];function cl(){return Ja()}async function ul(e,t=!1){el();const n=Ba.GetSystemRights,i=Ai?.Config?.ServiceURL.LoginAuthURL,r=await Yr(n,i,{systemid:e});if(!r||!r.data)return void Ai.Message?.warn("无法获取功能授权列表!");const o=r.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return Qa(e),e}{const e=ol(o);return Qa(e),e}}}function hl(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=hl(i,t);e&&n.children?.push(e)}})),n}function dl(e,t=2){if(0===t)return e;const n=cl();return n&&n.routes?(ll.length>0||e.forEach(e=>{const t=n.routes?.find(t=>t.name===e.name);if(t){const n=hl(e,t);n&&ll.push(n)}}),ll):void 0}function fl(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=fl(i,t);e&&n.children?.push(e)}})),n}function pl(e,t=2){if(0===t)return e;const n=cl();return n&&n.widgetMenu?(al.length>0||e.forEach(e=>{const t=n.widgetMenu?.find(t=>t.name===e.name);if(t){const n=fl(e,t);n&&al.push(n)}}),al):void 0}function gl(e,t=2){if(0===t)return e;const n=cl();return n&&n.widgets?(sl.length>0||e?.forEach(e=>{const t=n.widgets?.find(t=>t.id===e.id);t&&sl.push(e)}),sl):void 0}function ml(e,t=2){if(0===t&&(Ai.RightWidgetConfigMap=e,Ai.RightWidgetConfigMap&&Ai.RightWidgetConfigMap.size>0))return Ai.RightWidgetConfigMap;const n=cl();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(),Ai.RightWidgetConfigMap=n,n}return}}function vl(e,t=2){if(0===t)return e;const n=cl();return n?n.functions:void 0}const yl={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 wl(e){e.directive("drag",yl)}const bl={beforeMount(e,t){let n=null,i=0;const r=()=>t?.value(),o=()=>{Date.now()-i<100&&r(),n&&clearInterval(n),n=null};Eo.on(e,"mousedown",e=>{0===e.button&&(i=Date.now(),Eo.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(r,100))})}};function Sl(e){e.directive("repeatClick",bl)}const xl={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 El(e){e.directive("wow",xl)}
|
|
7
|
+
*/const yo=Z(vo);var wo,bo={exports:{}};wo=()=>{const e=globalThis;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=null,a=null){let l={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},c=0,u=null,h=null;if(Number.isFinite(r)?([a,r]=[r,a],console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),l.size=a,l.writableStrategy=r):r&&r.highWaterMark?(console.warn("[StreamSaver] Deprecated pass an object as 2nd argument when creating a write stream"),l.size=a,l.writableStrategy=r):l=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: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&&(r.headers["Content-Length"]=l.size);const i=[r,"*",[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&&(f=[],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 f=[];return!i&&h&&h.writable||new o.WritableStream({write(e){if(!(e instanceof Uint8Array))throw new TypeError("Can only write Uint8Arrays");i?f.push(e):(u.port1.postMessage(e),c+=e.length)},close(){if(i){const t=new Blob(f,{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(){f=[],u.port1.postMessage("abort"),u.port1.onmessage=null,u.port1.close(),u.port2.close(),u=null}},l.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(()=>{try{(()=>{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})})()}catch(e){}})(),o},void 0!==bo?bo.exports=wo():"function"==typeof define&&"object"==typeof define.amd?define(wo):(void 0).streamSaver=wo();const So=(null==bo.exports?{}:bo.exports).default||bo.exports;class Co{constructor(e,t,n=3,r=6,i=6e4){this.fileID=e,this.downloadURL=t,this.chunkByteSize=n*this.ChunkUnitM,this.eventTarget=V(),this.initIndexDB(),r>=3&&(this.cacheSize=r),i>this.requestTimeout&&(this.requestTimeout=i)}ChunkUnitM=1048576;chunkByteSize;totalChunks=1;currentDB;keys;fileMetaData=null;finishNum=0;eventTarget;cancelSource;isStarting=!1;fileName;cacheSize=6;requestTimeout=6e4;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 Di(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=yo.createInstance({name:this.fileID,driver:yo.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(),yo.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=ce.Axios.CancelToken;this.cancelSource=i.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 u=0;u<this.totalChunks;u++){if(this.keys){const e=this.keys?.indexOf(u.toString());if(e>=0){a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());continue}}const e=u*this.chunkByteSize;let n=e+this.chunkByteSize-1;this.fileMetaData&&n>this.fileMetaData.length&&(n=this.fileMetaData.length-1);const i={range:`bytes=${e}-${n}`};for(;c>=l;)await this.sleep(200);const o=u.toString();this.dispatchInfo(`开始下载分片${u+1}/${this.totalChunks}`),c++,Di(r,t,s,i,"arraybuffer",this.cancelSource?.token,this.requestTimeout).then((async e=>{const t=e.data;c--,await(this.currentDB?.setItem(o,t)),a++,a>this.finishNum&&(this.finishNum=a,this.downloadProgress());const n=parseInt(o)+1;this.dispatchInfo(`完成下载分片${n}/${this.totalChunks}`),this.savefile()})).catch((e=>{c--;const t=parseInt(o)+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=So.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(),yo.dropInstance({name:this.fileID}),this.dispatch("success"),this.isStarting=!1,this.dispatchInfo("完成文件下载")}}}function Eo(e,t){let n="",r="";for(const i in t)n+=i+"="+encodeURIComponent(t[i])+"&";return n=n.replace(/&$/,""),r=/\?$/.test(e)?e+n:e.replace(/\/?$/,"?")+n,r}function xo(e={},t={}){let n;for(n in t)we(t[n])?e[n]=xo(e[n],t[n]):e[n]=t[n];return e}function ko(e,t,n={name:void 0}){const r=e.resolve({path:t,query:n});globalThis.open(r.href,"_blank")}function Mo(e){let t=e;if(e.endsWith("/")){if(e.endsWith("/#/"))return t;t=e+"#/"}else t=e+"/#/"}function zo(e,t="/"){if(e)return e.startsWith("/")?e.startsWith(t)?e:`${t}${e}`:"/"===t?`${t}${e}`:`${t}/${e}`}function To(e,t){e.getRoutes().find((e=>"/"===e.path))||e.addRoute({name:"/",path:"/",redirect:t.path})}function Ao(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 _o(e,t=!1){let n=[];for(const r in e){const t=e[r];t&&t.length>0&&(n.push(...t),t.length=0),delete e[r]}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 Ro(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 Io=new Map;function Lo(e,t=!1){if(t&&Io.size>0)return Io;Io.clear();for(const n in e){const t=e[n];t&&t.length>0&&(t.forEach((e=>{let t;const n=e.layoutID;Io.has(n)&&(t=Io.get(n)),t||(t=new Array,Io.set(n,t)),t&&t.push(e)})),t.length=0),delete e[n]}return Io}function Do(e,t="/"){let n=t;return e.redirect&&e.children?(n=e.path.startsWith(t)?e.path:t.endsWith("/")?t+e.path:t+"/"+e.path,Do(e.children[0],n)):(n=e.path.startsWith(t)?e.path:`${t}/${e.path}`,{title:e.meta?.title,fullPath:n,path:e.path,icon:e.meta?.icon,keepAlive:e.meta?.keepAlive,name:e.name})}function Po(e){const t=function(e){if(!e)return;const t=e,n=[];if(t)for(let r of t){const e=No(r);e&&n.push(e)}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=Oo(t);n&&e.push(n)})),e}}(e.widgetMenuConfig),r=function(e){if(e&&e.length>0){const t=[];return e.forEach((e=>{const n=function(e){if(e)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}}(e.widgetConfig),i=(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 rt.MD5(n)}(a,s);return{id:l,name:ce.Config.UI.SiteTitle,group:ce.Config.UI.Group,product:a,version:s,routes:t,widgetMenu:n,widgets:r,functions:i}}function No(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=No(n);e&&t.push(e)}t.length>0&&(n.children=t)}return n}}function Oo(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=Oo(e);n&&t.children?.push(n)}))),t}function Bo(e,t="IconifyList.ts"){let n="",r="const iconlist={\n",i=0;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",tr(n+r+"export default iconlist;","IconifyList.ts"))}function Fo(e,t){const n=Po(e);rr(n,t),ce.Message?.msg("导出系统功能权限文件成功!")}function Wo(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 Uo(e){let t=jo(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function jo(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 $o(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 Ho(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function Go(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function qo(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function Xo(e){let t=jo(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function Vo(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function Ko(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 i=0;i<e.length;i++)n+="零壹贰叁肆伍陆柒捌玖".substr(e.substr(i,1),1)+t.substr(i,1);return n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元")}function Yo(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 Zo(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function Jo(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function Qo(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function es(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function ts(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 ns(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 rs(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 is(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 os(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function ss(e){return!!/^[1-9][0-9]{5}$/.test(e)}function as(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 ls(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 cs(e){e&&ce.EventBus.emit(ne.ModalContainerWidget_LoadModal,e)}function us(e){ce.EventBus.emit(ne.ModalContainerWidget_CloseModal,e)}let hs=[];const fs=()=>{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(!hs.length)return hs=e,!1;if(e.length!==hs.length)return hs=e,!0;for(let t=0;t<hs.length;t++)if(hs[t]!==e[t])return hs=e,!0;return!1}();e?confirm("页面有更新,点击确定刷新页面?")&&location.reload():fs()}),5e3)},ds=new Map,ps=n(new Map);class gs{static ZIndexMax=1;static addWindowPanel(e){ds.set(e.id,e)}static removeWindowPanel(e){ds.has(e)&&(ds.delete(e),ps.value.delete(e))}static minimizeWindowPanel(e){ds.has(e)&&ps.value.set(e,-1)}static openWindowPanel(e){ds.has(e)&&ps.value.set(e,1)}}const ms={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"/>'},vs={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"/>'},ys={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"/>'},ws={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"/>'},bs=["src"],Ss={key:1,class:"paneltitle"},Cs={class:"dragPanelBar"},Es={class:"dragPanelContent"},xs={class:"drag-pointer-group"},ks=ct(r({__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:""},title:{type:String,default:""},titleHeight:{type:[String,Number],default:"40px"},hasMin:{type:Boolean,default:!1},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:t,emit:r}){const i=gt(),a=e,u=r,d=n(),p=n(),m=w((()=>a.isDark)),v=n({x:0,y:0}),E=n({width:0,height:0}),x=e=>{d.value&&(d.value.style.left=`${e.x}px`,d.value.style.top=`${e.y}px`)};y((()=>v.value),(e=>{x(e)}));const z=e=>{d.value&&(d.value.style.width=`${e.width}px`,d.value.style.height=`${e.height}px`)};y((()=>E.value),(e=>{z(e)}));const T={eventListenerController:null,startingEdges:null,newEdges:null,clickStart:null,mount:()=>{Object.entries(T.refs).forEach((([e,t])=>{t.value&&t.value.addEventListener("mousedown",(t=>{T.mouseDown(t,e)}))}))},mouseDown:(e,t)=>{0==e.button&&(e.preventDefault(),T.startingEdges={left:v.value.x,top:v.value.y,right:v.value.x+E.value.width,bottom:v.value.y+E.value.height},T.newEdges={...T.startingEdges},T.clickStart={x:e.clientX,y:e.clientY},T.eventListenerController=new AbortController,document.addEventListener("mousemove",(e=>{T.mouseMove(e,t)}),{signal:T.eventListenerController.signal}),document.addEventListener("mouseup",(e=>{T.mouseUp(e,t)}),{signal:T.eventListenerController.signal}))},mouseMove:(e,t)=>{if(null!=T.startingEdges&&null!=T.newEdges&&null!=T.clickStart&&T.refs[t].value){if(e.preventDefault(),console.log("mouseMove",t),t.toLowerCase().includes("north")){T.newEdges.top=Math.max(T.startingEdges.top+e.clientY-T.clickStart.y,0);const t=T.newEdges.bottom-T.newEdges.top-100;t<0&&(T.newEdges.top+=t)}else t.toLowerCase().includes("south")&&(T.newEdges.bottom=Math.min(T.startingEdges.bottom+e.clientY-T.clickStart.y,document.body.clientHeight));if(t.toLowerCase().includes("west")){T.newEdges.left=Math.max(T.startingEdges.left+e.clientX-T.clickStart.x,0);const t=T.newEdges.right-T.newEdges.left-250;t<0&&(T.newEdges.left+=t)}else t.toLowerCase().includes("east")&&(T.newEdges.right=Math.min(T.startingEdges.right+e.clientX-T.clickStart.x,document.body.clientWidth));T.update()}},update:()=>{null!=T.newEdges&&null!=T.startingEdges&&(v.value={x:Math.max(T.newEdges.left,0),y:Math.max(T.newEdges.top,0)},E.value={width:Math.min(Math.max(T.newEdges.right-T.newEdges.left,250),document.body.clientWidth),height:Math.min(Math.max(T.newEdges.bottom-T.newEdges.top,100),document.body.clientHeight)})},mouseUp:(e,t)=>{0==e.button&&null!=T.startingEdges&&(console.log("mouseUp",t),e.preventDefault(),T.startingEdges=null,T.newEdges=null,T.clickStart=null,T.eventListenerController&&(T.eventListenerController.abort(),T.eventListenerController=null))},refs:{northWest:n(null),north:n(null),northEast:n(null),west:n(null),east:n(null),southWest:n(null),south:n(null),southEast:n(null)}},D={startingMouse:null,startingPosition:null,mouseDown:e=>{0==e.button&&(e.preventDefault(),console.log("mouseDown"),D.startingMouse={x:e.clientX,y:e.clientY},D.startingPosition=v.value,document.addEventListener("mousemove",D.mouseMove),document.addEventListener("mouseup",D.mouseUp))},mouseMove:e=>{D.startingMouse&&D.startingPosition&&(e.preventDefault(),v.value={x:Math.min(Math.max(D.startingPosition.x+e.clientX-D.startingMouse.x,0),document.body.clientWidth-E.value.width),y:Math.max(D.startingPosition.y+e.clientY-D.startingMouse.y,0)})},mouseUp:e=>{0==e.button&&D.startingMouse&&D.startingPosition&&(e.preventDefault(),D.startingMouse=null,D.startingPosition=null,console.log("mouseUp"),document.removeEventListener("mousemove",D.mouseMove),document.removeEventListener("mouseup",D.mouseUp))}};function P(e){return{id:i,icon:a.icon,title:a.title,pid:a.pid,data:e??a.tag}}const N=n(1),O=w((()=>!(-1===ps.value.get(i)))),B=n(!1),F=n(!0),W=w((()=>"z-index:"+N.value));function U(){N.value<=gs.ZIndexMax&&(gs.ZIndexMax+=1,N.value=gs.ZIndexMax)}function j(){u("minimize",P()),gs.minimizeWindowPanel(i)}function $(){B.value=!B.value}function H(){u("close",P(!1)),gs.removeWindowPanel(i),F.value=!1}const G=w((()=>B.value?ws:ys)),q={id:i,isShow:O,close:H,open:function(){u("open",P(!0)),F.value=!0},showHidePanel:j,updatePosition:x};function V(e){if(Se(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 t(q),b((()=>{!function(){let e=96;if(a.hasMin||(e-=32),a.hasMax||(e-=32),a.hasClose||(e-=32),rt.setCssVar("--right-bar-width",e+"px",p.value),!p.value)return;const t=Se(a.titleHeight)?a.titleHeight+"px":a.titleHeight;p.value.style.height=t,p.value.style.lineHeight=t}(),function(){const e=P(q);gs.addWindowPanel(e),u("loaded",e)}(),v.value.x=V(a.left),v.value.y=V(a.top),x(v.value),E.value={width:V(a.nWidth),height:V(a.nHeight)},z(E.value),T.mount()})),A((()=>{gs.removeWindowPanel(i)})),(t,n)=>(c(),s(_,{appear:"","enter-active-class":"animated zoomIn","leave-active-class":"animated zoomOut"},{default:h((()=>[F.value?R((c(),S("div",{key:0,ref_key:"dragPanelRef",ref:d,class:M(["dragWindowPanel",{maxPanel:B.value,dragWindowPanel_dark:m.value}]),style:C(W.value)},[f("div",{class:"dragPanelTitle",ref_key:"dragPanelTitleRef",ref:p,onMousedown:n[0]||(n[0]=(...e)=>D.mouseDown&&D.mouseDown(...e)),onClick:I(U,["stop"])},[o(t.$slots,"title",{},(()=>[a.icon?(c(),S("img",{key:0,src:a.icon,width:"24",height:"24"},null,8,bs)):g("",!0),a.title?(c(),S("span",Ss,l(a.title),1)):g("",!0)]),!0),f("div",Cs,[e.hasMin?(c(),s(k(X),{key:0,icon:k(vs),onClick:I(j,["stop"])},null,8,["icon"])):g("",!0),e.hasMax?(c(),s(k(X),{key:1,icon:G.value,onClick:I($,["stop"])},null,8,["icon"])):g("",!0),e.hasClose?(c(),s(k(X),{key:2,icon:k(ms),onClick:I(H,["stop"])},null,8,["icon"])):g("",!0)])],544),f("div",Es,[o(t.$slots,"default",{},void 0,!0)]),f("div",xs,[f("div",{class:"cursor-nw-resize",ref:T.refs.northWest},null,512),f("div",{class:"cursor-n-resize",ref:T.refs.north},null,512),f("div",{class:"cursor-ne-resize",ref:T.refs.northEast},null,512),f("div",{class:"cursor-w-resize",ref:T.refs.west},null,512),n[1]||(n[1]=f("span",{style:{"pointer-events":"all",visibility:"hidden"}},null,-1)),f("div",{class:"cursor-e-resize",ref:T.refs.east},null,512),f("div",{class:"cursor-sw-resize",ref:T.refs.southWest},null,512),f("div",{class:"cursor-s-resize",ref:T.refs.south},null,512),f("div",{class:"cursor-se-resize",ref:T.refs.southEast},null,512)])],6)),[[L,O.value]]):g("",!0)])),_:3}))}}),[["__scopeId","data-v-7681d6fe"]]),Ms={class:"adivider"},zs={class:"contentText"},Ts=ct(r({__name:"ADivider",props:{align:{type:String,default:"left"},color:{type:String,default:"#888"}},setup(e){D((e=>({v1dc34ba7:n.value})));const t=e,n=w((()=>Si(t.color)||yi(t.color)?t.color:"#888")),r=w((()=>"left"!=t.align?"flex:1;":"width:40px;")),i=w((()=>"right"!=t.align?"flex:1;":"width:40px;"));return(e,t)=>(c(),S("div",Ms,[f("div",{class:"line",style:C(r.value)},null,4),f("div",zs,[o(e.$slots,"default",{},void 0,!0)]),f("div",{class:"line",style:C(i.value)},null,4)]))}}),[["__scopeId","data-v-133ad44f"]]),As={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,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,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 P("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},_s={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})}}},Rs=ct(_s,[["render",function(e,t,n,r,i,s){return c(),S("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=t=>s.onPaneClick(t,e._.uid)),style:C(e.style)},[o(e.$slots,"default")],4)}]]);function Is(e){const t=new W(new F);return t.serialize(e),t.stream.toString()}function Ls(e){return null==e||""===e?e:new U(new F(e)).deserialize()}class Ds{debug=!1;simple=!1;utc=!1;longType="number";dictType="object";nullType=void 0;static Instance=new Ds;textEncoder=new TextEncoder;textDecoder=new TextDecoder;constructor(){}encodeResponse(e,t={}){var n=new F,r=new W(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 F(n),i=new U(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=j.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 F,i=new W(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 l=r.takeBytes();return this.textDecoder.decode(l)}decodeResponse(e,t={}){const n=this.textEncoder.encode(e);var r=new F(n),i=new U(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 Ps=new Map,Ns=new Map;let Os;const Bs={getDefaultClient(){if(Os||(Os=new Ye(SysConfig?.ServiceURL.DefaultHproseAPI)),!Os)throw Error("HproseProxy对象为空");return Os},registerHprose(e,t){const n=Ns.get(e);if(!n){const n=new Ye(t);Ps.set(e,n)}return n},getHprose:e=>Ns?.get(e),getProxyHprose:e=>Ps.get(e),unregisterHprose(e){Ps.get(e)&&(Ns.delete(e),Ps.delete(e))}},Fs=5e3,Ws=36e5,Us={Login:"/api/User/Login",ChangeMyPwd:"/api/User/ChangeMyPwd",Logout:"/api/Check/ExitLogin",RefreshToken:"/api/Check/RefreshToken",CheckToken:"/api/Check/CheckToken",GetSystemRights:"/api/System/GetSystem"},js="access_token",$s=ce?.Config?.ServiceURL.LoginAuthURL;function Hs(){const e=Ke();e&&Di(Us.RefreshToken,$s,{refreshToken:e}).then((e=>{qs(e.data)}))}function Gs(){const e=qe.getJsonObject(js);if(!e)return;const t=(new Date).getTime(),n=new Date(e.expire).getTime()-t;n>0&&(n<=Fs?Hs():setTimeout(Hs,n-Fs))}function qs(e){const t=(new Date).getTime();let n=new Date(e.accessToken.expires).getTime()-t;if(n>=Ws?(n=18e5,console.warn("客户端时间与服务器不一致:过去时间!")):n<-6e5&&(n=18e5,console.warn("客户端时间与服务器不一致:未来时间!")),n>0){let t=Xe();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},qe.set(js,t,n/1e3),Gs()}else qe.remove(js)}const Xs="Wm314243",Vs=ce?.Config?.ServiceURL.LoginAuthURL;async function Ks(e){const t={username:e.username,pwd:br.encryptToString(e.pwd,Xs)},n=await Di(Us.Login,Vs,t),r=n?.data;return r&&(qs(r.doubletoken),ao(!1)),r}function Ys(e){const t={oldpwd:br.encryptToString(e.oldpwd,Xs),newpwd:br.encryptToString(e.newpwd,Xs)};return Di(Us.ChangeMyPwd,Vs,t)}function Zs(e){return br.encryptToString(e,Xs)}function Js(){const e=Xe();e&&(Oi(Us.Logout,Vs,{token:e.token,reftoken:e.refresh}),Ve())}function Qs(e){return Di(Us.CheckToken,Vs,{token:e})}var ea=(e=>(e[e.Widget=0]="Widget",e[e.Route=1]="Route",e[e.URL=2]="URL",e[e.Action=3]="Action",e))(ea||{});const ta="ROLE_SYSTEM_RIGHT",na=new $e("",globalThis.sessionStorage);function ra(){return na.get(ta)}function ia(e){na.set(ta,e)}function oa(){na.remove(ta)}function sa(e){if(e)for(let t=0;t<e.length;t++){const n=e[t];n.children&&n.children.length>0?(sa(n.children),0===n.children.length&&(e.splice(t,1),t--)):n.selected||(e.splice(t,1),t--)}}function aa(e,t,n="name"){e&&t&&e.forEach((e=>{const r=t.find((t=>t[n]===e[n]));r&&(e.children?r.children&&aa(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))}))}function la(e,t,n="name"){e&&t&&e.forEach((e=>{const r=t.find((t=>t[n]===e[n]));r&&(e.children?r.children&&la(e.children,r.children,n):r.children&&0!==r.children.length||r.selected&&(e.selected=r.selected))}))}function ca(e,t,n,r="name"){const i=e[n],o=t[n];i?o&&la(i,o,r):o&&(e[n]=o)}function ua(e){if(e&&e.length>0){const t=e.length;let n,r=!1;if(t>0){r=we(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);ca(i,o,"routes","name"),ca(i,o,"widgetMenu","name"),ca(i,o,"widgets","id"),ca(i,o,"functions","id")}n=i}return n&&(sa(n.routes),sa(n.widgetMenu),sa(n.widgets),sa(n.functions)),n}}const ha=[],fa=[],da=[];function pa(){return ra()}async function ga(e,t=!1){oa();const n=Us.GetSystemRights,r=ce?.Config?.ServiceURL.LoginAuthURL,i=await Di(n,r,{systemid:e});if(!i||!i.data)return void ce.Message?.warn("无法获取功能授权列表!");const o=i.data;if(o&&o.length>0){if(t){const e=JSON.parse(o[0]);return ia(e),e}{const e=ua(o);return ia(e),e}}}function ma(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=ma(r,t);e&&n.children?.push(e)}}))),n}function va(e,t=2){if(0===t)return e;const n=pa();return n&&n.routes?(da.length>0||e.forEach((e=>{const t=n.routes?.find((t=>t.name===e.name));if(t){const n=ma(e,t);n&&da.push(n)}})),da):void 0}function ya(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=ya(r,t);e&&n.children?.push(e)}}))),n}function wa(e,t=2){if(0===t)return e;const n=pa();return n&&n.widgetMenu?(fa.length>0||e.forEach((e=>{const t=n.widgetMenu?.find((t=>t.name===e.name));if(t){const n=ya(e,t);n&&fa.push(n)}})),fa):void 0}function ba(e,t=2){if(0===t)return e;const n=pa();return n&&n.widgets?(ha.length>0||e?.forEach((e=>{const t=n.widgets?.find((t=>t.id===e.id));t&&ha.push(e)})),ha):void 0}function Sa(e,t=2){if(0===t&&(ce.RightWidgetConfigMap=e,ce.RightWidgetConfigMap&&ce.RightWidgetConfigMap.size>0))return ce.RightWidgetConfigMap;const n=pa();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(),ce.RightWidgetConfigMap=n,n}}else;}function Ca(e,t=2){if(0===t)return e;const n=pa();return n?n.functions:void 0}const Ea={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,l=e.offsetHeight;"100"!==e.style.zIndex&&(e.style.zIndex=100),r.onmousemove=function(t){let r=t.clientX-n,c=t.clientY-i;r<0&&(r=0),c<0&&(c=0),r>o-a&&(r=o-a),c>s-l&&(c=s-l),e.style.left=r+"px",e.style.top=c+"px"},r.onmouseup=function(t){r.onmousemove=r.onmouseup=null,e.style.transition="all 0.3s"}}}};function xa(e){e.directive("drag",Ea)}const ka={beforeMount(e,t){let n=null,r=0;const i=()=>t?.value(),o=()=>{Date.now()-r<100&&i(),n&&clearInterval(n),n=null};oo.on(e,"mousedown",(e=>{0===e.button&&(r=Date.now(),oo.once(document,"mouseup",o),n&&clearInterval(n),n=setInterval(i,100))}))}};function Ma(e){e.directive("repeatClick",ka)}const za={mounted(e,t){const n=t.value;e.style.visibility="hidden",e.style["animation-name"]="none";const r=function(e,t){if(function(e){const t=globalThis.scrollY||globalThis.pageYOffset||document.documentElement.scrollTop||e.parentNode.scrollTop,n=t+(/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){let t;for(;void 0===e.offsetTop;)e=e.parentNode;for(t=e.offsetTop;e=e.offsetParent;)t+=e.offsetTop;return t}(e),i=r+e.clientHeight;return r<n&&i>=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",o)}};let i=Date.now();const o=function(){Date.now()-i>=100&&(r(e,n),i=Date.now())};setTimeout((function(){r(e,n)}),1),e.parentNode.addEventListener("scroll",o)}};function Ta(e){e.directive("wow",za)}
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
*/const
|
|
12
|
+
*/const Aa=Symbol("Comlink.proxy"),_a=Symbol("Comlink.endpoint"),Ra=Symbol("Comlink.releaseProxy"),Ia=Symbol("Comlink.finalizer"),La=Symbol("Comlink.thrown"),Da=e=>"object"==typeof e&&null!==e||"function"==typeof e,Pa=new Map([["proxy",{canHandle:e=>Da(e)&&e[Aa],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Na(e,t),[n,[n]]},deserialize:e=>(e.start(),Ba(e))}],["throw",{canHandle:e=>Da(e)&&La 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 Na(e,t=globalThis,n=["*"]){t.addEventListener("message",(function r(i){if(!i||!i.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,i.origin))return void console.warn(`Invalid origin '${i.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(Xa);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]]=Xa(i.data.value),c=!0;break;case"APPLY":c=n.apply(t,l);break;case"CONSTRUCT":c=function(e){return Object.assign(e,{[Aa]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;Na(e,n),c=function(e,t){return Ga.set(e,t),e}(t,[t])}break;case"RELEASE":c=void 0;break;default:return}}catch(e){c={value:e,[La]:0}}Promise.resolve(c).catch((e=>({value:e,[La]:0}))).then((n=>{const[i,a]=qa(n);t.postMessage(Object.assign(Object.assign({},i),{id:o}),a),"RELEASE"===s&&(t.removeEventListener("message",r),Oa(t),Ia in e&&"function"==typeof e[Ia]&&e[Ia]())})).catch((e=>{const[n,r]=qa({value:new TypeError("Unserializable return value"),[La]:0});t.postMessage(Object.assign(Object.assign({},n),{id:o}),r)}))})),t.start&&t.start()}function Oa(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function Ba(e,t){const n=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const r=n.get(t.id);if(r)try{r(t)}finally{n.delete(t.id)}})),$a(e,n,[],t)}function Fa(e){if(e)throw new Error("Proxy has been released and is not useable")}function Wa(e){return Va(e,new Map,{type:"RELEASE"}).then((()=>{Oa(e)}))}const Ua=new WeakMap,ja="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(Ua.get(e)||0)-1;Ua.set(e,t),0===t&&Wa(e)}));function $a(e,t,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(r,s){if(Fa(i),s===Ra)return()=>{!function(e){ja&&ja.unregister(e)}(o),Wa(e),t.clear(),i=!0};if("then"===s){if(0===n.length)return{then:()=>o};const r=Va(e,t,{type:"GET",path:n.map((e=>e.toString()))}).then(Xa);return r.then.bind(r)}return $a(e,t,[...n,s])},set(r,o,s){Fa(i);const[a,l]=qa(s);return Va(e,t,{type:"SET",path:[...n,o].map((e=>e.toString())),value:a},l).then(Xa)},apply(r,o,s){Fa(i);const a=n[n.length-1];if(a===_a)return Va(e,t,{type:"ENDPOINT"}).then(Xa);if("bind"===a)return $a(e,t,n.slice(0,-1));const[l,c]=Ha(s);return Va(e,t,{type:"APPLY",path:n.map((e=>e.toString())),argumentList:l},c).then(Xa)},construct(r,o){Fa(i);const[s,a]=Ha(o);return Va(e,t,{type:"CONSTRUCT",path:n.map((e=>e.toString())),argumentList:s},a).then(Xa)}});return function(e,t){const n=(Ua.get(t)||0)+1;Ua.set(t,n),ja&&ja.register(e,t,e)}(o,e),o}function Ha(e){const t=e.map(qa);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const Ga=new WeakMap;function qa(e){for(const[t,n]of Pa)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},Ga.get(e)||[]]}function Xa(e){switch(e.type){case"HANDLER":return Pa.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Va(e,t,n,r){return new Promise((i=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)}))}var Ka=Symbol("getEndpoint"),Ya=e=>{const t=Ba(e);return new Proxy(t,{get:(t,n,r)=>n===Ka?e:Reflect.get(t,n,r)})};const Za=Ya(new Worker(new URL("/assets/worker-XXTEA-CMYO_oW7.js",import.meta.url),{type:"module"})),Ja=Ya(new Worker(new URL("/assets/worker-xmath-DRrB1AaK.js",import.meta.url),{type:"module"})),Qa=Ya(new Worker(new URL("/assets/worker-webcache-c92UWvGr.js",import.meta.url),{type:"module"})),el=Ya(new Worker(new URL("/assets/worker-bigimage-ULYc5DiH.js",import.meta.url),{type:"module"})),tl=V();function nl(e){e.addEventListener("message",(({data:e})=>{tl.emit(e.reqID,e)}))}async function rl(e,t,n){return new Promise(((r,i)=>{const o=String(Date.now())+String(Math.random());e.postMessage({reqID:o,op:t,args:n}),tl.on(o,(e=>{"ok"===e.status?r(e.result):i(e.result)}))}))}function il(e,t){const n={};for(const r in e){const i=e[r];if(i)for(const e in i){const r=""+e;n[e]=(...e)=>rl(t,r,e)}}return n}export{Ts as ADivider,Co as BigFileDownload,di as CommonTool,lr as DayjsTool,tr as Download,vi as EnumColor,ro as FileUpload,xr as GetSignalRClient,ce as Global,Bs as GlobalHprose,K as GlobalMitt,ar as GzipTool,rt as H5Tool,je as HproseClient,Ds as HproseRPCCodec,ir as HttpDownload,rr as JsonDownload,dt as LayoutContainer,ue as LayoutContainerEnum,lt as LayoutManager,so as LockState,ea as MenuItemEnum,ps as MinWindowMap,Eo as ObjToUrlParams,ko as OpenRouterURL,Rs as Pane,Ye as ProxyClient,ht as RouterTransition,pt as RouterTransitionAnimate,nr as SaveAs,or as SaveToSelectedFile,As as Splitpanes,$e as Storage,Ue as StringUtils,ut as SuspenseWithError,ne as SysEvents,Fs as TOKEN_REFRESH_TIME,Ws as TOKEN_VALID_TIMESPAN,Us as USER_TOKEN_API,Qr as WarGridTool,Cr as WaterMark,Jr as WebCacheTool,ds as WindowsMap,ks as XWindow,gs as XWindowManager,br as XXTEA,sr as ZipTool,fs as autoRefresh,ri as base64ToBlob,el as bigImageWorker,ii as blobToDataURL,Ai as calculateBestTextColor,Ys as changeMyPWD,To as checkAddDefaultRoute,Gs as checkDoRefreshToken,Qs as checkToken,Ve as clearLocalToken,oa as clearRight,xi as colorIsDark,ai as convertDecimalism,ci as convertDecimalismData,li as convertDecimalismSpacing,ui as convertToDecimalism,hi as convertToDecimalismByString,fi as convertToDecimalismByString2,io as createFileUpload,ki as darken,xo as deepMerge,Ii as delay,Ls as deserialize,us as doCloseModal,cs as doLoadModal,Hs as doRefreshToken,ao as doSetLock,Ea as dragDirective,Po as exportSystemRights,ei as filterObj,er as findStringPrefix,Bi as get,Jn as getCommonFileBase,pa as getCurrentSystemRight,Wi as getData,ji as getDownload,Zs as getEncryptPWD,Xn as getFileBase,Vn as getFileExtension,Ca as getFunctions,pi as getHexColor,Xe as getLocalToken,lo as getLockState,mi as getLongHexColor,Kn as getPathBase,st as getProxyClient,gi as getRGBColor,wi as getRGBColorFromHSLA,ti as getRandomInt,ni as getRandomItem,Ke as getRefreshToken,ra as getRight,zo as getRouteURL,va as getRoutes,ga as getSystemRoleRight,Do as getTabRouteData,Mo as getVueURL,ba as getWidgetConfig,Sa as getWidgetConfigMap,wa as getWidgetMenus,Lo as globFilterLayoutWidgetConfig,_o as globFilterObjects,Ro as globFilterObjectsOld,sa as handleNodes,Ei as hexToRGB,ot as init,at as initDefaultProxyClient,nl as initWorker,fe as is,Me as isArray,Ce as isAsyncFunction,ke as isBoolean,ze as isClient,be as isDate,pe as isDef,Ae as isElement,Ie as isEmpty,yi as isEnumColor,Le as isError,de as isFunction,Si as isHexColor,Re as isImageDom,Oe as isMap,me as isNull,ve as isNullAndUnDef,ye as isNullOrUnDef,Se as isNumber,we as isObjectX,Ee as isPromise,_e as isServer,xe as isString,Fe as isStringLikeJson,We as isStringLikeKml,Ne as isSymbol,ge as isUnDef,Be as isValidURL,Pe as isWeakMap,De as isWeakSet,Te as isWindow,oo as jquery,Mi as lighten,Ks as login,Js as logout,ua as mergeFilterRoleSysRight,Qn as mergeNames,aa as mergeNodes,ca as mergeNodesAll,V as mitt,mt as newGuid,ho as onLockListener,qn as parseLocalPath,Fi as post,Ao as recursiveRoutes,il as registerWorkerSerivces,ka as repeatDirective,oi as replaceAll,Yn as replaceFileExtension,Di as requestGet,Ni as requestPost,Oi as requestPostBody,si as reserveDecimal,Ci as rgbToHex,Is as serialize,qs as setLocalToken,ia as setRight,xa as setupDragDirective,Ma as setupRepeatDirective,Ta as setupWowDirective,Ri as sleep,He as storage,qe as storageHelper,Zn as toLowerCaseExtension,fo as unLockListener,gt as uuid,$o as verifiyNumberInteger,Jo as verifyAccount,qo as verifyAndSpace,ls as verifyCarNum,Ho as verifyCnAndSpace,rs as verifyEmail,Go as verifyEnAndSpace,os as verifyFullName,ns as verifyIPAddress,is as verifyIdCard,Ko as verifyNumberCnUppercase,Xo as verifyNumberComma,jo as verifyNumberIntegerAndFloat,Wo as verifyNumberPercentage,Uo as verifyNumberPercentageFloat,Qo as verifyPassword,es as verifyPasswordPowerful,ts as verifyPasswordStrength,Yo as verifyPhone,ss as verifyPostalCode,Zo as verifyTelPhone,Vo as verifyTextColor,as as verifyUrl,Qa as webCacheWorker,za as wowDirective,Bo as writeIconifyList,Fo as writeSysRoleRight,Ja as xmathWorker,Za as xxteaWorker};
|