xframelib 0.9.9 → 1.0.1

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 CHANGED
@@ -13,6 +13,7 @@
13
13
 
14
14
  > 基于 VUE3+Hprose+Typescript+Widget 的前端框架,与ElementUI、AntDesign VUE、Quasar等界面库无关,一直是来源于项目和服务于项目。
15
15
 
16
+ - v1.0.1 更新依赖库版本,修改复制粘贴与textarea粘贴功能冲突问题;
16
17
  - v0.9.9 修改init方法,使用Global.Config.ServiceURL.IconServiceURL注册自己的IconAPIProvider(解决内网时xwindow组件无按钮符号) ;
17
18
  - v0.9.8 移除streamsaver依赖库,改为内部引用,解决弹框请求mitm.html导致无法下载文件的问题(http下的IP:端口请求会出现域安全问题);
18
19
  - v0.9.7 解决v0.9.6使用useTemplateRef后导致LayoutManager不断报警告问题:client-entry.js:313 [Vue warn] Set operation on key "value" failed: target is readonly. RefImpl
package/dist/index.css CHANGED
@@ -130,6 +130,23 @@
130
130
  margin-top: 1px;
131
131
  }
132
132
 
133
+ .adivider {
134
+ width: 100%;
135
+ margin: 10px 0;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-items: center;
139
+ }
140
+
141
+ .adivider .line {
142
+ border: v-bind(lineColor) 1px solid;
143
+ }
144
+
145
+ .adivider .contentText {
146
+ background-color: inherit;
147
+ font-size: 18px;
148
+ }
149
+
133
150
  .layoutContainer {
134
151
  position: relative;
135
152
  width: 100%;
@@ -236,66 +253,6 @@
236
253
  z-index: var(--layout-centerfront-zindex);
237
254
  }
238
255
 
239
- .adivider {
240
- width: 100%;
241
- margin: 10px 0;
242
- display: flex;
243
- align-items: center;
244
- justify-items: center;
245
- }
246
-
247
- .adivider .line {
248
- border: v-bind(lineColor) 1px solid;
249
- }
250
-
251
- .adivider .contentText {
252
- background-color: inherit;
253
- font-size: 18px;
254
- }
255
-
256
- .window {
257
- display: flex;
258
- flex-flow: column;
259
- position: absolute;
260
- border-radius: 4pt 4pt 0 0;
261
- }
262
-
263
- .titlebar {
264
- display: flex;
265
- flex-flow: row nowrap;
266
- border-radius: 4pt 4pt 0 0;
267
- font-family: sans-serif;
268
- padding: 0.5em;
269
- flex: 0 0 auto;
270
- }
271
-
272
- .title {
273
- flex-grow: 1;
274
- white-space: nowrap;
275
- overflow: hidden;
276
- text-overflow: ellipsis;
277
- }
278
-
279
- .content {
280
- flex-grow: 1;
281
- padding: 0.5em;
282
- }
283
-
284
- .draggable-handle {
285
- cursor: move;
286
- }
287
-
288
- .fade-enter,
289
- .fade-leave-to {
290
- opacity: 0;
291
- transform: scale(0.9);
292
- }
293
-
294
- .fade-enter-active,
295
- .fade-leave-active {
296
- transition: 0.2s;
297
- }
298
-
299
256
  .iconify {
300
257
  color: #000;
301
258
  }
@@ -450,6 +407,49 @@
450
407
  cursor: s-resize;
451
408
  }
452
409
 
410
+ .window {
411
+ display: flex;
412
+ flex-flow: column;
413
+ position: absolute;
414
+ border-radius: 4pt 4pt 0 0;
415
+ }
416
+
417
+ .titlebar {
418
+ display: flex;
419
+ flex-flow: row nowrap;
420
+ border-radius: 4pt 4pt 0 0;
421
+ font-family: sans-serif;
422
+ padding: 0.5em;
423
+ flex: 0 0 auto;
424
+ }
425
+
426
+ .title {
427
+ flex-grow: 1;
428
+ white-space: nowrap;
429
+ overflow: hidden;
430
+ text-overflow: ellipsis;
431
+ }
432
+
433
+ .content {
434
+ flex-grow: 1;
435
+ padding: 0.5em;
436
+ }
437
+
438
+ .draggable-handle {
439
+ cursor: move;
440
+ }
441
+
442
+ .fade-enter,
443
+ .fade-leave-to {
444
+ opacity: 0;
445
+ transform: scale(0.9);
446
+ }
447
+
448
+ .fade-enter-active,
449
+ .fade-leave-active {
450
+ transition: 0.2s;
451
+ }
452
+
453
453
  .btn {
454
454
  background-color: transparent;
455
455
  border: none;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{defineComponent as e,ref as t,createElementBlock as n,openBlock as r,withModifiers as i,normalizeStyle as o,renderSlot as s,reactive as a,getCurrentInstance as c,computed as l,watch as u,onMounted as d,onBeforeUnmount as h,nextTick as f,resolveComponent as p,createBlock as m,Transition as g,withCtx as v,withDirectives as y,createElementVNode as w,createCommentVNode as b,Fragment as S,createTextVNode as x,toDisplayString as C,vShow as E,markRaw as k,onErrorCaptured as z,Suspense as M,createVNode as A,KeepAlive as I,resolveDynamicComponent as L,renderList as R,unref as _,normalizeClass as T,TransitionGroup as D,onUnmounted as P,useCssVars as B,h as N}from"vue";import $ from"iconv-lite";export{default as iconv}from"iconv-lite";import*as U from"@microsoft/signalr";import O from"axios";import W from"qs";import{addAPIProvider as j,Icon as F}from"@iconify/vue";import{Client as H,ClientContext as q}from"@hprose/rpc-core";import{ByteStream as X,Writer as Y,Reader as G,ValueReader as V}from"@hprose/io";import{HttpTransport as Z}from"@hprose/rpc-html5";function K(e){return window.TouchEvent&&e instanceof TouchEvent}class J{e;constructor(e){this.e=e}stopPropagation(){this.e.stopPropagation()}preventDefault(){this.e.preventDefault()}get clientX(){return K(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientX:this.e.clientX}get clientY(){return K(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientY:this.e.clientY}get clientCoord(){return new Q(this.clientX,this.clientY)}static bindDown(e,t,n,r=!1){const i=e=>{t(new J(e))},o=e=>{1===e.touches.length&&t(new J(e)),e.touches.length>1&&n&&n(new J(e))};return e.addEventListener("mousedown",i,r),e.addEventListener("touchstart",o,r),()=>{e.removeEventListener("mousedown",i,r),e.removeEventListener("touchstart",o,r)}}static bindMove(e,t,n=!1){const r=e=>{t(new J(e))},i=e=>{1===e.touches.length&&t(new J(e))};return e.addEventListener("mousemove",r,n),e.addEventListener("touchmove",i,n),()=>{e.removeEventListener("mousemove",r,n),e.removeEventListener("touchmove",i,n)}}static bindUp(e,t,n=!1){const r=e=>{t(new J(e))},i=e=>{0===e.touches.length&&t(new J(e))};return e.addEventListener("mouseup",r,n),e.addEventListener("touchend",i,n),()=>{e.removeEventListener("mouseup",r,n),e.removeEventListener("touchend",i,n)}}originalEvent({mouse:e,touch:t}){K(this.e)?t&&t(this.e):e&&e(this.e)}}class Q{x;y;constructor(e,t){this.x=e,this.y=t}clone(){return new Q(this.x,this.y)}}class ee{handle;container;options;unbindDown;unbindMove;unbindUp;constructor(e,t,n={}){this.handle=e,this.container=t,this.options=n,e&&(this.unbindDown=J.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=J.bindMove(document,this.mousemove),this.unbindUp=J.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 te{_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=ie(this._group),n=ie(e);t.splice(t.indexOf(this),1),n.push(this),se()}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(ie(this._group)),se()}}const ne=new Map,re=0;function ie(e){return ne.has(e)||ne.set(e,[]),ne.get(e)}function oe(e,t){return e>t?-oe(t,e):e<0&&t>=0?1:e-t}function se(){let e=re;for(const t of function(e){const t=[];return e.forEach(((e,n)=>t.push(n))),t}(ne).sort(oe))for(const n of ie(t))e!=n.zIndex&&(n.zIndex=e,n.onChange(e)),e++}function ae(e){if(e){const{width:t,height:n}=e.style;e.style.width="auto",e.style.height="auto";const r=ce(e);return e.style.width=t,e.style.height=n,r}return{width:0,height:0,top:0,left:0,bottom:0,right:0}}function ce(e){const t=e.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left;return{width:n,height:r,top:i,left:o,bottom:i+r,right:o+n}}class le{container;options;handles;constructor(e,t){if(this.container=e,this.options=t,e&&t){this.handles=ue.map((t=>new t(e,this)));const{width:n,height:r}=ae(e),i=t.maxWidth||window.innerWidth,o=t.maxHeight||window.innerHeight;let s=!1;(n<t.minWidth||n>i)&&(e.style.width=`${he(n,t.minWidth,i)}px`,s=!0),(r<t.minHeight||r>o)&&(e.style.height=`${he(r,t.minHeight,o)}px`,s=!0),s&&t.onResize&&t.onResize()}}teardown(){this.handles?.forEach((e=>e.teardown()))}}const ue=[];class de{container;helper;handle;handleSize=8;unbindDown;unbindMove;unbindUp;constructor(e,t){this.container=e,this.helper=t,this.handle=this.createHandleElement(),this.unbindDown=J.bindDown(this.handle,this.mousedown)}teardown(){this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove(),this.handle.parentElement.removeChild(this.handle)}x0;y0;left0;top0;width0;height0;mousedown=e=>{e.preventDefault(),e.stopPropagation();const{left:t,top:n,width:r,height:i}=ce(this.container);this.x0=e.clientX,this.y0=e.clientY,this.left0=t,this.top0=n,this.width0=r,this.height0=i,this.calcSafeBoundaries(),this.helper.options&&this.helper.options.onResizeStart&&this.helper.options.onResizeStart(),this.unbindMove=J.bindMove(document,this.mousemove),this.unbindUp=J.bindUp(document,this.mouseup)};minLeft;maxLeft;minRight;maxRight;minTop;maxTop;minBottom;maxBottom;calcSafeBoundaries(){if(!this.helper.options)return;const{left:e,top:t,right:n,bottom:r}=ce(this.container),i=this.helper.options,o=i.maxWidth||window.innerWidth,s=i.maxHeight||window.innerHeight;this.minLeft=Math.max(n-o,0),this.maxLeft=n-i.minWidth,this.minRight=e+i.minWidth,this.maxRight=Math.min(e+o,window.innerWidth),this.minTop=Math.max(r-s,0),this.maxTop=r-i.minHeight,this.minBottom=t+i.minHeight,this.maxBottom=Math.min(t+s,window.innerHeight)}mousemove=e=>{e.preventDefault(),e.stopPropagation(),this.setPosition(e),this.fixPosition(),this.helper.options&&this.helper.options.onResize&&this.helper.options.onResize()};fixPosition(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=ce(this.container),s=this.helper.options;s&&(n<this.minLeft?(this.container.style.width=e+n-this.minLeft+"px",this.container.style.left=`${this.minLeft}px`):n>this.maxLeft?(this.container.style.width=`${s.minWidth}px`,this.container.style.left=`${this.maxLeft}px`):i<this.minRight?this.container.style.width=`${s.minWidth}px`:i>this.maxRight&&(this.container.style.width=this.maxRight-n+"px"),r<this.minTop?(this.container.style.height=t+r-this.minTop+"px",this.container.style.top=`${this.minTop}px`):r>this.maxTop?(this.container.style.height=`${s.minHeight}px`,this.container.style.top=`${this.maxTop}px`):o<this.minBottom?this.container.style.height=`${s.minHeight}px`:o>this.maxBottom&&(this.container.style.height=this.maxBottom-r+"px"))}mouseup=e=>{e.preventDefault(),e.stopPropagation(),this.helper.options&&this.helper.options.onResizeEnd&&this.helper.options.onResizeEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0};createHandleElement(){const e=document.createElement("div"),t=e.style;return t.position="absolute",this.applyStyle(t),this.container.appendChild(e),e}}function he(e,t,n){return e<t?t:e>n?n:e}ue.push(class extends de{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 de{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 de{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 de{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 de{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 de{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 de{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 de{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"}});const fe=e({name:"",props:{disabled:{type:Boolean,default:!1},windowStyle:{type:Object,required:!0}},components:{},setup(e){const n=t(!1),r=t(!1);return{hover:n,active:r,style:function(){let t=e.windowStyle.button;return n.value&&(t={...t,...this.windowStyle.buttonHover}),r.value&&(t={...t,...this.windowStyle.buttonActive}),t},mouseup:function(e){this.active&&this.$emit("click")},mousedown:function(e){e.preventDefault(),r.value=!0;const t=J.bindUp(document,(()=>{r.value=!1,t()}))}}}}),pe=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},me=["disabled"];const ge=pe(fe,[["render",function(e,t,a,c,l,u){return r(),n("div",{class:"btn",style:o(e.style()),onMouseenter:t[0]||(t[0]=t=>e.hover=!0),onMouseleave:t[1]||(t[1]=t=>e.hover=!1),onMousedown:t[2]||(t[2]=i(((...t)=>e.mousedown&&e.mousedown(...t)),["stop"])),onTouchstart:t[3]||(t[3]=i(((...t)=>e.mousedown&&e.mousedown(...t)),["stop"])),onMouseup:t[4]||(t[4]=(...t)=>e.mouseup&&e.mouseup(...t)),onTouchend:t[5]||(t[5]=(...t)=>e.mouseup&&e.mouseup(...t)),disabled:e.disabled},[s(e.$slots,"default",{},void 0,!0)],44,me)}],["__scopeId","data-v-2231c0f9"]]);var ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var we,be={exports:{}};var Se=(we||(we=1,be.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function s(e){var t,r,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function h(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),r}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return c(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),p.prototype.append=function(e){return this.appendBinary(l(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(l(e),t)},p.hashBinary=function(e,t){var n=c(o(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=h(this._buff.buffer,e),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=d(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=c(s(new Uint8Array(e)));return t?f(n):n},p}()),be.exports);const xe=ye(Se),Ce=Object.prototype.toString;function Ee(e,t){return Ce.call(e)===`[object ${t}]`}function ke(e){return Ee(e,"Function")}const ze=e=>void 0!==e,Me=e=>!ze(e);function Ae(e){return null===e}function Ie(e){return Me(e)&&Ae(e)}function Le(e){return Me(e)||Ae(e)}const Re=e=>null!=e&&null!==e&&Ee(e,"Object");function _e(e){return Ee(e,"Date")}function Te(e){return Ee(e,"Number")}function De(e){return Ee(e,"AsyncFunction")}function Pe(e){return Ee(e,"Promise")&&Re(e)&&ke(e.then)&&ke(e.catch)}function Be(e){return Ee(e,"String")}function Ne(e){return!0===e||!1===e||Ee(e,"Boolean")}function $e(e){return e&&Array.isArray(e)}const Ue=()=>"undefined"!=typeof window,Oe=e=>"undefined"!=typeof window&&Ee(e,"Window"),We=e=>Ce.call(e).startsWith("[object HTML")&&!!e.tagName,je="undefined"==typeof window;function Fe(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function He(e){return null==e||(Be(e)||$e(e)?0===e.length:!!Re(e)&&"{}"===JSON.stringify(e))}function qe(e){return Ee(e,"Error")}function Xe(e){return Ee(e,"WeakSet")}function Ye(e){return Ee(e,"WeakMap")}function Ge(e){return Ee(e,"Symbol")}function Ve(e){return Ee(e,"Map")}const Ze=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 Ke(e){return/^\s*[{[]/.test(String(e))}function Je(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}const Qe=[];let et;class tt{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){tt.addHandler(window,"resize",e)}static offWindowResizeHandler(e){tt.removeHandler(window,"resize",e)}static fullscreenEnabled(){const e=window.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=window.document;let t=window.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(window.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=window.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=window.document.documentElement){let t=e;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new window.ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=window.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return window.document.fullscreenElement||window.document.webkitFullscreenElement||window.document.mozFullscreenElement||window.document.msFullscreenElement}static isFullScreen(){return!!tt.fullScreenElement()}static onFullScreenChanged(e){let t;"onfullscreenchange"in window.document?t="fullscreenchange":"onwebkitfullscreenchange"in window.document?t="webkitfullscreenchange":"onmozfullscreenchange"in window.document&&(t="mozfullscreenchange"),t?document.addEventListener(t,(function(){const t=tt.isFullScreen();e(t)})):document.addEventListener("MSFullscreenChange",(function(){const t=tt.isFullScreen();e(t)}))}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Qe.indexOf(t))return;Qe.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,tt.stringifyCircularHandler);return Qe.length=0,t}static jsonParse(e){const t=tt.jsonStringify(e);if(t.length>1){return JSON.parse(t)}}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=window.URL?t=window.URL.createObjectURL(e):null!=window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e;const o=new xe.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result);const n=o.end();t({isOK:!0,data:n})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=i.size?i.size:2097152;s.readAsArrayBuffer(r.call(i,0,e))}()}static getFileMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=2097152,s=Math.ceil(i.size/o);let a=0;const c=new xe.ArrayBuffer,l=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;l.readAsArrayBuffer(r.call(i,e,t))}l.onload=function(e){if(c.append(e.target?.result),a++,a<s)u();else{const e=c.end();t({isOK:!0,data:e})}},l.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return xe.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})):tt.copyTextByCommand(e);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{document.execCommand("copy");return n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(e){if(!navigator.clipboard)return tt.copyElementTextByCommand(e);const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();return n.rangeCount>0&&n.removeAllRanges(),n.addRange(t),navigator.clipboard.writeText(n).then((function(){return n.removeRange(t),!0}),(function(e){return n.removeRange(t),console.error("Clipboard复制文本错误",e),!1}))}static setGrayMode(e){tt.toggleClass(e,"grayMode",document.documentElement)}static toggleClass(e,t,n){const r=n||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");window.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=Be(e)?document.getElementById(e):e,r){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&r.addEventListener("ev",(e=>{n(e)}),!1),r.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e,r=Math.random();return e+Math.round(r*n)}static merge(e={},t={}){let n,r,i,o;for(e||(e={}),r=0,i=t.length;r<i;r++)for(n in o=t[r],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}()}static debounce(e,t){let n=null;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}static throttle(e,t){let n=!0;return function(){if(!n)return!1;n=!1,setTimeout((()=>{e(),n=!0}),t)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}static create(e,t,n){let r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,r=n.length;t<r;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),i.appendChild(o),r&&r.appendChild(i),i}static parseDom(e,t=!0,n=""){t=t??!1;let r=document.createElement("div");return r.className=n||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,n){let r=this.create("video",t,n),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let o=this.create("source","",r);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),r}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise(((r,i)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,"),n=e.substring(t+3);r(n)}else r(o.result);else i(o)},o.onerror=function(){i(o)}}))}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise(((n,r)=>{t.push((function(e,t){e?r(e):n(t)})),e.apply(this,t)}))}}static wait(e){return new Promise((t=>setTimeout(t,e)))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(e,t){if(!e)throw Error("传入Element对象不能为空!");let n;if(Be(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(!We(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){tt.blockEvent(e),t(e.dataTransfer.files)}),!1))}static getInputElement(){var e=document.activeElement;return!e||"INPUT"!=e.tagName&&"true"!=e.contentEditable?null:e}static guessPasteTextToFileName(e,t){let n,r=t;return Be(e)?r=(Ke(e)?"json":Je(e)&&"kml")||"text":(Re(e)&&e.type||$e(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(Ze(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){const t=this;et=n=>{t.pasteEventHanlder(n,e)},tt.addHandler(document,"paste",et)}static offPasteHandler(){et&&tt.removeHandler(document,"paste",et)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}}class nt{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 rt{prefixKey;storage;constructor(e="",t=localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const t=JSON.parse(n),{value:r,expire:i}=t;if(null===i||i>=Date.now())return r;this.remove(this.getKey(e))}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(this.getKey(e))}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,r=t.length;n<r;n++){const r=t[n].split("=");if(r[0]===this.getKey(e))return r[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}}const it=new rt("",localStorage);function ot(){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 st(){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 at={},ct=Uint8Array,lt=Uint16Array,ut=Int32Array,dt=new ct([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 ct([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]),ft=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pt=function(e,t){for(var n=new lt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new ut(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}},mt=pt(dt,2),gt=mt.b,vt=mt.r;gt[28]=258,vt[258]=28;for(var yt=pt(ht,0),wt=yt.b,bt=yt.r,St=new lt(32768),xt=0;xt<32768;++xt){var Ct=(43690&xt)>>1|(21845&xt)<<1;Ct=(61680&(Ct=(52428&Ct)>>2|(13107&Ct)<<2))>>4|(3855&Ct)<<4,St[xt]=((65280&Ct)>>8|(255&Ct)<<8)>>1}var Et=function(e,t,n){for(var r=e.length,i=0,o=new lt(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new lt(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new lt(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[St[d]>>c]=l}else for(s=new lt(r),i=0;i<r;++i)e[i]&&(s[i]=St[a[e[i]-1]++]>>15-e[i]);return s},kt=new ct(288);for(xt=0;xt<144;++xt)kt[xt]=8;for(xt=144;xt<256;++xt)kt[xt]=9;for(xt=256;xt<280;++xt)kt[xt]=7;for(xt=280;xt<288;++xt)kt[xt]=8;var zt=new ct(32);for(xt=0;xt<32;++xt)zt[xt]=5;var Mt=Et(kt,9,0),At=Et(kt,9,1),It=Et(zt,5,0),Lt=Et(zt,5,1),Rt=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 r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Tt=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Dt=function(e){return(e+7)/8|0},Pt=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new ct(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"],Nt=function(e,t,n){var r=new Error(t||Bt[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Nt),!n)throw r;return r},$t=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new ct(0);var s=!n,a=s||2!=t.i,c=t.i;s&&(n=new ct(3*i));var l=function(e){var t=n.length;if(e>t){var r=new ct(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,h=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,v=8*i;do{if(!f){u=_t(e,d,1);var y=_t(e,d+1,3);if(d+=3,!y){var w=e[(L=Dt(d)+4)-4]|e[L-3]<<8,b=L+w;if(b>i){c&&Nt(0);break}a&&l(h+w),n.set(e.subarray(L,b),h),t.b=h+=w,t.p=d=8*b,t.f=u;continue}if(1==y)f=At,p=Lt,m=9,g=5;else if(2==y){var S=_t(e,d,31)+257,x=_t(e,d+10,15)+4,C=S+_t(e,d+5,31)+1;d+=14;for(var E=new ct(C),k=new ct(19),z=0;z<x;++z)k[ft[z]]=_t(e,d+3*z,7);d+=3*x;var M=Rt(k),A=(1<<M)-1,I=Et(k,M,1);for(z=0;z<C;){var L,R=I[_t(e,d,A)];if(d+=15&R,(L=R>>4)<16)E[z++]=L;else{var _=0,T=0;for(16==L?(T=3+_t(e,d,3),d+=2,_=E[z-1]):17==L?(T=3+_t(e,d,7),d+=3):18==L&&(T=11+_t(e,d,127),d+=7);T--;)E[z++]=_}}var D=E.subarray(0,S),P=E.subarray(S);m=Rt(D),g=Rt(P),f=Et(D,m,1),p=Et(P,g,1)}else Nt(1);if(d>v){c&&Nt(0);break}}a&&l(h+131072);for(var B=(1<<m)-1,N=(1<<g)-1,$=d;;$=d){var U=(_=f[Tt(e,d)&B])>>4;if((d+=15&_)>v){c&&Nt(0);break}if(_||Nt(2),U<256)n[h++]=U;else{if(256==U){$=d,f=null;break}var O=U-254;if(U>264){var W=dt[z=U-257];O=_t(e,d,(1<<W)-1)+gt[z],d+=W}var j=p[Tt(e,d)&N],F=j>>4;j||Nt(3),d+=15&j;P=wt[F];if(F>3){W=ht[F];P+=Tt(e,d)&(1<<W)-1,d+=W}if(d>v){c&&Nt(0);break}a&&l(h+131072);var H=h+O;if(h<P){var q=o-P,X=Math.min(P,H);for(q+h<0&&Nt(3);h<X;++h)n[h]=r[q+h]}for(;h<H;++h)n[h]=n[h-P]}}t.l=f,t.p=$,t.b=h,t.f=u,f&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u);return h!=n.length&&s?Pt(n,0,h):n.subarray(0,h)},Ut=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Ot=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Wt=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:Gt,l:0};if(1==i){var s=new ct(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var f=new lt(h+1),p=jt(n[u-1],f,0);if(p>t){r=0;var m=0,g=p-t,v=1<<g;for(o.sort((function(e,t){return f[t.s]-f[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(f[y]>t))break;m+=v-(1<<p-f[y]),f[y]=t}for(m>>=g;m>0;){var w=o[r].s;f[w]<t?m-=1<<t-f[w]++-1:++r}for(;r>=0&&m;--r){var b=o[r].s;f[b]==t&&(--f[b],++m)}p=t}return{t:new ct(f),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},Ft=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lt(++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}},Ht=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},qt=function(e,t,n){var r=n.length,i=Dt(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)},Xt=function(e,t,n,r,i,o,s,a,c,l,u){Ut(t,u++,n),++i[256];for(var d=Wt(i,15),h=d.t,f=d.l,p=Wt(o,15),m=p.t,g=p.l,v=Ft(h),y=v.c,w=v.n,b=Ft(m),S=b.c,x=b.n,C=new lt(19),E=0;E<y.length;++E)++C[31&y[E]];for(E=0;E<S.length;++E)++C[31&S[E]];for(var k=Wt(C,7),z=k.t,M=k.l,A=19;A>4&&!z[ft[A-1]];--A);var I,L,R,_,T=l+5<<3,D=Ht(i,kt)+Ht(o,zt)+s,P=Ht(i,h)+Ht(o,m)+s+14+3*A+Ht(C,z)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&T<=D&&T<=P)return qt(t,u,e.subarray(c,c+l));if(Ut(t,u,1+(P<D)),u+=2,P<D){I=Et(h,f,0),L=h,R=Et(m,g,0),_=m;var B=Et(z,M,0);Ut(t,u,w-257),Ut(t,u+5,x-1),Ut(t,u+10,A-4),u+=14;for(E=0;E<A;++E)Ut(t,u+3*E,z[ft[E]]);u+=3*A;for(var N=[y,S],$=0;$<2;++$){var U=N[$];for(E=0;E<U.length;++E){var O=31&U[E];Ut(t,u,B[O]),u+=z[O],O>15&&(Ut(t,u,U[E]>>5&127),u+=U[E]>>12)}}}else I=Mt,L=kt,R=It,_=zt;for(E=0;E<a;++E){var W=r[E];if(W>255){Ot(t,u,I[(O=W>>18&31)+257]),u+=L[O+257],O>7&&(Ut(t,u,W>>23&31),u+=dt[O]);var j=31&W;Ot(t,u,R[j]),u+=_[j],j>3&&(Ot(t,u,W>>5&8191),u+=ht[j])}else Ot(t,u,I[W]),u+=L[W]}return Ot(t,u,I[256]),u+L[256]},Yt=new ut([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gt=new ct(0),Vt=function(e,t,n,r,i,o){var s=o.z||e.length,a=new ct(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=o.l,u=7&(o.r||0);if(t){u&&(c[0]=o.r>>3);for(var d=Yt[t-1],h=d>>13,f=8191&d,p=(1<<n)-1,m=o.p||new lt(32768),g=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 ut(25e3),S=new lt(288),x=new lt(32),C=0,E=0,k=o.i||0,z=0,M=o.w||0,A=0;k+2<s;++k){var I=w(k),L=32767&k,R=g[I];if(m[L]=R,g[I]=L,M<=k){var _=s-k;if((C>7e3||z>24576)&&(_>423||!l)){u=Xt(e,c,0,b,S,x,E,z,A,k-A,u),z=C=E=0,A=k;for(var T=0;T<286;++T)S[T]=0;for(T=0;T<30;++T)x[T]=0}var D=2,P=0,B=f,N=L-R&32767;if(_>2&&I==w(k-N))for(var $=Math.min(h,_)-1,U=Math.min(32767,k),O=Math.min(258,_);N<=U&&--B&&L!=R;){if(e[k+D]==e[k+D-N]){for(var W=0;W<O&&e[k+W]==e[k+W-N];++W);if(W>D){if(D=W,P=N,W>$)break;var j=Math.min(N,W-2),F=0;for(T=0;T<j;++T){var H=k-N+T&32767,q=H-m[H]&32767;q>F&&(F=q,R=H)}}}N+=(L=R)-(R=m[L])&32767}if(P){b[z++]=268435456|vt[D]<<18|bt[P];var X=31&vt[D],Y=31&bt[P];E+=dt[X]+ht[Y],++S[257+X],++x[Y],M=k+D,++C}else b[z++]=e[k],++S[e[k]]}}for(k=Math.max(k,M);k<s;++k)b[z++]=e[k],++S[e[k]];u=Xt(e,c,l,b,S,x,E,z,A,k-A,u),l||(o.r=7&u|c[u/8|0]<<3,u-=7,o.h=g,o.p=m,o.i=k,o.w=M)}else{for(k=o.w||0;k<s+l;k+=65535){var G=k+65535;G>=s&&(c[u/8|0]=l,G=s),u=qt(c,u+1,e.subarray(k,G))}o.i=s}return Pt(a,0,r+Dt(u)+i)},Zt=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}(),Kt=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Zt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},Jt=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new ct(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return Vt(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)},Qt=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},en=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],c=o[s];if("function"==typeof a){t+=";"+c+"=";var l=a.toString();if(a.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var d in t+=l,a.prototype)t+=";"+c+".prototype."+d+"="+a.prototype[d].toString();else t+=l}else n[c]=a}return t},tn=[],nn=function(e,t,n,r){if(!tn[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=en(e[a],i,o);tn[n]={c:en(e[s],i,o),e:o}}var c=Qt({},tn[n].e);return function(e,t,n,r,i){var o=new Worker(at[t]||(at[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}(tn[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),r)},rn=function(){return[ct,lt,ut,dt,ht,ft,gt,wt,At,Lt,St,Bt,Et,Rt,_t,Tt,Dt,Pt,Nt,$t,bn,cn,ln]},on=function(){return[ct,lt,ut,dt,ht,ft,vt,bt,Mt,kt,It,zt,St,Yt,Gt,Et,Ut,Ot,Wt,jt,Ft,Ht,qt,Xt,Dt,Pt,Vt,Jt,wn,cn]},sn=function(){return[mn,yn,pn,Kt,Zt]},an=function(){return[gn,vn]},cn=function(e){return postMessage(e,[e.buffer])},ln=function(e){return e&&{out:e.size&&new ct(e.size),dictionary:e.dictionary}},un=function(e,t,n,r,i,o){var s=nn(n,r,i,(function(e,t){s.terminate(),o(e,t)}));return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},dn=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},fn=function(e,t){return hn(e,t)+4294967296*hn(e,t+4)},pn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},mn=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&&pn(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)}},gn=function(e){31==e[0]&&139==e[1]&&8==e[2]||Nt(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)},vn=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},yn=function(e){return 10+(e.filename?e.filename.length+1:0)};function wn(e,t){return Jt(e,t||{},0,0)}function bn(e,t){return $t(e,{i:2},t&&t.out,t&&t.dictionary)}function Sn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[on,sn,function(){return[xn]}],(function(e){return cn(xn(e.data[0],e.data[1]))}),2,n)}function xn(e,t){t||(t={});var n=Kt(),r=e.length;n.p(e);var i=Jt(e,t,yn(t),8),o=i.length;return mn(i,t),pn(i,o-8,n.d()),pn(i,o-4,r),i}function Cn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[rn,an,function(){return[En]}],(function(e){return cn(En(e.data[0],e.data[1]))}),3,n)}function En(e,t){var n=gn(e);return n+8>e.length&&Nt(6,"invalid gzip data"),$t(e.subarray(n,-8),{i:2},t&&t.out||new ct(vn(e)),t&&t.dictionary)}var kn=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=Qt(r,o[1]),o=o[0]),o instanceof ct?n[s]=[o,a]:(n[s+="/"]=[new ct(0),a],kn(o,s,n,r))}},zn="undefined"!=typeof TextEncoder&&new TextEncoder,Mn="undefined"!=typeof TextDecoder&&new TextDecoder;try{Mn.decode(Gt,{stream:!0})}catch(e){}function An(e,t){if(zn)return zn.encode(e);for(var n=e.length,r=new ct(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 ct(i+8+(n-s<<1));a.set(r),r=a}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|63&c)):(o(224|c>>12),o(128|c>>6&63),o(128|63&c))}return Pt(r,0,i)}function In(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(Mn)return Mn.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:Pt(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&&Nt(8),o}var Ln=function(e,t){return t+30+dn(e,t+26)+dn(e,t+28)},Rn=function(e,t,n){var r=dn(e,t+28),i=In(e.subarray(t+46,t+46+r),!(2048&dn(e,t+8))),o=t+46+r,s=hn(e,t+20),a=n&&4294967295==s?_n(e,o):[s,hn(e,t+24),hn(e,t+42)],c=a[0],l=a[1],u=a[2];return[dn(e,t+10),c,l,i,o+dn(e,t+30)+dn(e,t+32),u]},_n=function(e,t){for(;1!=dn(e,t);t+=4+dn(e,t+2));return[fn(e,t+12),fn(e,t+4),fn(e,t+20)]},Tn=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Nt(9),t+=r+4}return t},Dn=function(e,t,n,r,i,o,s,a){var c=r.length,l=n.extra,u=a&&a.length,d=Tn(l);pn(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&Nt(10),pn(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=o&&(pn(e,t,n.crc),pn(e,t+4,o<0?-o-2:o),pn(e,t+8,n.size)),pn(e,t+12,c),pn(e,t+14,d),t+=16,null!=s&&(pn(e,t,u),pn(e,t+6,n.attrs),pn(e,t+10,s),t+=14),e.set(r,t),t+=c,d)for(var p in l){var m=l[p],g=m.length;pn(e,t,+p),pn(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(a,t),t+=u),t},Pn=function(e,t,n,r,i){pn(e,t,101010256),pn(e,t+8,n),pn(e,t+10,n),pn(e,t+12,r),pn(e,t+16,i)};function Bn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Nt(7);var r={};kn(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,c=o,l=new Array(o),u=[],d=function(){for(var e=0;e<u.length;++e)u[e]()},h=function(e,t){Nn((function(){n(e,t)}))};Nn((function(){h=n}));var f=function(){var e=new ct(a+22),t=s,n=a-s;a=0;for(var r=0;r<c;++r){var i=l[r];try{var o=i.c.length;Dn(e,a,i,i.f,i.u,o);var u=30+i.f.length+Tn(i.extra),d=a+u;e.set(i.c,d),Dn(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=d+o}catch(e){return h(e,null)}}Pn(e,s,l.length,n,t),h(null,e)};o||f();for(var p=function(e){var t=i[e],n=r[t],c=n[0],p=n[1],m=Kt(),g=c.length;m.p(c);var v=An(t),y=v.length,w=p.comment,b=w&&An(w),S=b&&b.length,x=Tn(p.extra),C=0==p.level?0:8,E=function(n,r){if(n)d(),h(n,null);else{var i=r.length;l[e]=Qt(p,{size:g,crc:m.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:C}),s+=30+y+x+i,a+=76+2*(y+x)+(S||0)+i,--o||f()}};if(y>65535&&E(Nt(11,0,1),null),C)if(g<16e4)try{E(null,wn(c,p))}catch(e){E(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[on],(function(e){return cn(wn(e.data[0],e.data[1]))}),0,n)}(c,p,E));else E(null,c)},m=0;m<c;++m)p(m);return d}var Nn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function $n(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Nt(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Nn((function(){n(e,t)}))};Nn((function(){s=n}));for(var a=e.length-22;101010256!=hn(e,a);--a)if(!a||e.length-a>65558)return s(Nt(13,0,1),null),i;var c=dn(e,a+8);if(c){var l=c,u=hn(e,a+16),d=4294967295==u||65535==l;if(d){var h=hn(e,a-12);(d=101075792==hn(e,h))&&(l=c=hn(e,h+32),u=hn(e,h+48))}for(var f=t&&t.filter,p=function(t){var n=Rn(e,u,d),a=n[0],l=n[1],h=n[2],p=n[3],m=n[4],g=n[5],v=Ln(e,g);u=m;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--c||s(null,o))};if(!f||f({name:p,size:l,originalSize:h,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+l);if(h<524288||l>.8*h)try{y(null,bn(w,{out:new ct(h)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[rn],(function(e){return cn(bn(e.data[0],ln(e.data[1])))}),1,n)}(w,{size:h},y))}else y(Nt(14,"unknown compression type "+a,1),null);else y(null,Pt(e,v,v+l));else y(null,null)},m=0;m<l;++m)p()}else s(null,{});return i}function Un(e){return{all:e=e||new Map,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map((e=>{e(n)})),r=e.get("*"),r&&r.slice().map((e=>{e(t,n)}))}}}const On=Un(),Wn={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 jn(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 Fn(e){return jn(e).basename}function Hn(e){return jn(e).extension}function qn(e){var t=jn(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function Xn(e,t){var n=qn(e);return t?n+"."+t:n}function Yn(e){var t=Hn(e);return t?qn(e)+"."+t.toLowerCase():e}function Gn(e){return e.reduce((function(e,t,n){return e=0===n?Fn(t):Vn(e,t)}),"")}function Vn(e,t){var n;return e&&t&&(n=Zn(e,t).replace(/[-_]$/,"")),n||""}function Zn(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substr(0,n)}const Kn=(e,t)=>{Jn(e,t)};function Jn(e,t){const n=window.URL||window.webkitURL||window,r=new Blob([e]),i=n.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(i),setTimeout((function(){n.revokeObjectURL(i),document.body.removeChild(o)}),400)}const Qn=(e,t)=>{const n=JSON.stringify(e,null,2);t?Kn(n,t+".json"):On.emit(Wn.CommonWarnEvent,"参数JsonID不能为空!")},er=(e,t,n)=>{e.get(t,{responseType:"blob"}).then((function(e){Kn(e.data,n)})).catch((e=>{console.warn(e),On.emit(Wn.CommonWarnEvent,"下载文件报错!")}))};async function tr(e,t,n){var r,i=function(e){var t=Hn(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(window.showSaveFilePicker){r=await window.showSaveFilePicker(i);var o=await r.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}class nr{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static encodeGBK(e){const t=$.encode(e,"ISO-8859-1");return $.decode(t,"gbk")}static async saveZipFromFiles(e,t){const n=[];for(let e=0;e<t.length;e++){const r=t[e],i=r.name,o=await tt.readFilePromise(r,"ArrayBuffer"),s=new Uint8Array(o);n.push({filename:i,content:s})}n.length>0&&nr.zipAsync(n,(function(t,n){if(t)throw t;Jn(new Blob([n]),e)}))}static saveZipFile(e,t){nr.zipAsync(t,(function(t,n){if(t)throw t;Jn(new Blob([n]),e)}))}static saveZipFileSync(e,t){const n=nr.zipSync(t);return!!n&&(Jn(new Blob([n]),e),!0)}static unzipSync(e){let t;if(t=e instanceof ArrayBuffer?new Uint8Array(e):e,!nr.runningInBrowser())return;const n=function(e,t){for(var n={},r=e.length-22;101010256!=hn(e,r);--r)(!r||e.length-r>65558)&&Nt(13);var i=dn(e,r+8);if(!i)return{};var o=hn(e,r+16),s=4294967295==o||65535==i;if(s){var a=hn(e,r-12);(s=101075792==hn(e,a))&&(i=hn(e,a+32),o=hn(e,a+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Rn(e,o,s),d=u[0],h=u[1],f=u[2],p=u[3],m=u[4],g=u[5],v=Ln(e,g);o=m,c&&!c({name:p,size:h,originalSize:f,compression:d})||(d?8==d?n[p]=bn(e.subarray(v,v+h),{out:new ct(f)}):Nt(14,"unknown compression type "+d):n[p]=Pt(e,v,v+h))}return n}(t,{filter:nr.fflateFilter});return nr.fflatePostprocess(n)}static async readZipFromFile(e){const t={content:await tt.readFilePromise(e,"ArrayBuffer"),name:e.name};return nr.readZipFile(t)}static async readZipFile(e){const t=await nr.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(!nr.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let n;n=e instanceof ArrayBuffer?new Uint8Array(e):e,$n(n,{filter:nr.fflateFilter},(function(e,n){e&&t(e),t(null,nr.fflatePostprocess(n))}))}static zipSync(e){if(!nr.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];kn(e,"",n,t);var i=0,o=0;for(var s in n){var a=n[s],c=a[0],l=a[1],u=0==l.level?0:8,d=(C=An(s)).length,h=l.comment,f=h&&An(h),p=f&&f.length,m=Tn(l.extra);d>65535&&Nt(11);var g=u?wn(c,l):c,v=g.length,y=Kt();y.p(c),r.push(Qt(l,{size:c.length,crc:y.d(),c:g,f:C,m:f,u:d!=s.length||f&&h.length!=p,o:i,compression:u})),i+=30+d+m+v,o+=76+2*(d+m)+(p||0)+v}for(var w=new ct(o+22),b=i,S=o-i,x=0;x<r.length;++x){var C=r[x];Dn(w,C.o,C,C.f,C.u,C.c.length);var E=30+C.f.length+Tn(C.extra);w.set(C.c,C.o+E),Dn(w,i,C,C.f,C.u,C.c.length,C.o,C.m),i+=16+E+(C.m?C.m.length:0)}return Pn(w,i,r.length,S,b),w}(nr.fflatePreprocess(e))}static zipAsync(e,t){Bn(nr.fflatePreprocess(e),{},t)}static fflateFilter(e){return nr.isImportableZipPath(e.name)}static fflatePostprocess(e){return Object.keys(e).reduce((function(t,n){const r=jn(n).filename,i=nr.encodeGBK(r),o=e[n];return t[i]=o,t}),{})}static isImportableZipPath(e){const t=jn(e),n=Hn(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=An(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content})),t}}class rr{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=An(e)),rr.runningInBrowser()?xn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=An(e)),!rr.runningInBrowser())return;return tt.promisify(Sn)(n,t)}static async readGzipFromFile(e){const t={content:await tt.readFilePromise(e,"ArrayBuffer"),name:e.name};return rr.readGzipFile(t)}static readGzipFile(e){var t=e.name.replace(/\.gz$/,"");return[{name:t,content:rr.gunzipSync(e.content,t)}]}static async gunzipAsync(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t=t||{},!rr.runningInBrowser())return;var n=tt.promisify(Cn);let r=await n(e,t);return t.filename&&(r=In(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=En(e);return t&&(n=In(n)),n}}class ir{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(Be(e)||Te(e)?n=new Date(e):Re(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&&(Be(e)||Te(e)?n=new Date(e):Re(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&&(Be(e)||Te(e)?n=new Date(e):Re(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 or=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){or=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var sr=2654435769;function ar(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 cr(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 lr(e){return 4294967295&e}function ur(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function dr(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function hr(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 fr(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),r=0,i=0,o=e.length;r<t&&i<o;r++){var s=e[i++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[r]=s;break;case 12:case 13:if(!(i<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(31&s)<<6|63&e[i++];break;case 14:if(!(i+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(15&s)<<12|(63&e[i++])<<6|63&e[i++];break;case 15:if(!(i+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[r++]=a>>10&1023|55296,n[r]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return r<t&&(n.length=r),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],r=new Array(32768),i=0,o=0,s=e.length;i<t&&o<s;i++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r[i]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));r[i++]=c>>10&1023|55296,r[i]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var l=i+1;r.length=l,n.push(String.fromCharCode.apply(String,r)),t-=l,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function pr(e){var t=e.length;if(0===t)return"";var n=or?e:function(e){for(var t=e.length,n=new Array(e.length),r=0;r<t;++r)n[r]=e[r];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var r=32767&t,i=t>>15,o=new Array(r?i+1:i),s=0;s<i;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return r&&(o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,t))),o.join("")}function mr(e,t){return"string"==typeof e&&(e=hr(e)),"string"==typeof t&&(t=hr(t)),null==e||0===e.length?e:ar(function(e,t){var n,r,i,o,s,a,c=e.length,l=c-1;for(r=e[l],i=0,a=0|Math.floor(6+52/c);a>0;--a){for(o=(i=lr(i+sr))>>>2&3,s=0;s<l;++s)n=e[s+1],r=e[s]=lr(e[s]+ur(i,n,r,s,o,t));n=e[0],r=e[l]=lr(e[l]+ur(i,n,r,l,o,t))}return e}(cr(e,!0),cr(dr(t),!1)),!1)}function gr(e,t){return"string"==typeof e&&(e=function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}(e)),"string"==typeof t&&(t=hr(t)),null==e||0===e.length?e:ar(function(e,t){var n,r,i,o,s,a=e.length,c=a-1;for(n=e[0],i=lr(Math.floor(6+52/a)*sr);0!==i;i=lr(i-sr)){for(o=i>>>2&3,s=c;s>0;--s)r=e[s-1],n=e[s]=lr(e[s]-ur(i,n,r,s,o,t));r=e[c],n=e[0]=lr(e[0]-ur(i,n,r,0,o,t))}return e}(cr(e,!1),cr(dr(t),!1)),!0)}const vr={toBytes:hr,toString:fr,encrypt:mr,encryptToString:function(e,t){return window.btoa(pr(mr(e,t)))},decrypt:gr,decryptToString:function(e,t){return fr(gr(e,t))}},yr=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},wr={set:e=>{let t=yr(e);null===document.getElementById(t)&&(t=yr(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};var br,Sr={exports:{}},xr=Sr.exports;var Cr=(br||(br=1,function(e){var t,n;t=xr,n=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?a:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}(r)||l.apply(this,arguments)}function d(e,n){var s,a,l,d=this,h="loglevel";function f(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(h),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=n||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,n){return l=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{return void(window.localStorage[h]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+n+";"}catch(e){}}}(l),c.call(d)},d.setDefaultLevel=function(e){a=p(e),f()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,function(){if(typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(s=p(o.getLevel())),c.call(d),o===d)for(var e in i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var m=f();null!=m&&(l=p(m)),c.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new d(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o},e.exports?e.exports=n():t.log=n()}(Sr)),Sr.exports);class Er{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(Wn.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 kr=!1,zr=!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 Mr={Config:SysConfig,EventBus:On,DefaultProxyClient:null,Axios:O,Message:new Er(void 0,On),LayoutMap:new Map,getLayoutManager:e=>{if(!Ir.WidgetConfigList||0===Ir.WidgetConfigList.length)return;const t=Ir.WidgetConfigList.find((t=>t.id===e));if(t){const e=t.layoutID;if(e&&Ir.LayoutMap.has(e))return Ir.LayoutMap.get(e)}},Logger:e=>{kr||(SysConfig.UI.ProductLog?Cr.enableAll():Cr.setDefaultLevel("warn"),kr=!0);const t=e||"default";return Cr.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout((()=>{document.getElementById("apploading")?.remove()}),300),zr=!0;else if(e)if(zr){const t=`加载Widget:${e}……`;On.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},Ar="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(...Ar));const Ir=Mr;let Lr;function Rr(e){if(!e){if(Lr)return Lr;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new U.HubConnectionBuilder).configureLogging(U.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then((()=>{Ir.Logger().info("启动SignalR连接!")})),t.onclose((async()=>{Ir.Logger().info("断开SignalR连接!")})),t.onreconnecting((()=>{Ir.Logger().warn("SignalR服务已断线,重连中...!")})),t.onreconnected((()=>{Ir.Logger().warn("SignalR重连成功!")})),Lr||(Lr=t),t}function _r(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 Tr(e){var t=e.toLowerCase();if(Or(e)){if(4===t.length){for(var n="#",r=1;r<4;r+=1){const e=t.slice(r,r+1);n+=e.concat(e)}t=n}var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return"rgb("+i.join(",")+")"}return t}function Dr(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 Pr,Br;function Nr(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?Pr.Hex:"r"===t||"("===t?Pr.RGBA:"h"===t?Pr.Hsla:Pr.RGBA}function $r(e){if(!e)return;var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(!t)return;var n,r,i,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=r=i=a;else{var c=a<=.5?a*(s+1):a+s-a*s,l=2*a-c;n=Ur(l,c,o+1/3),r=Ur(l,c,o),i=Ur(l,c,o-1/3)}return`rgba(${n=Math.round(255*n)},${r=Math.round(255*r)},${i=Math.round(255*i)},${t[4]?parseFloat(t[4]):1})`}function Ur(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Or(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function Wr(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function jr(e){let t=e.toLowerCase();if(Or(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function Fr(e){if(!Or(e))return;const[t,n,r]=jr(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map((e=>Number(e)));return.299*t+.578*n+.114*r<192}function Hr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Vr(e.substring(0,2),t)}${Vr(e.substring(2,4),t)}${Vr(e.substring(4,6),t)}`}function qr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Xr(e.substring(0,2),t)}${Xr(e.substring(2,4),t)}${Xr(e.substring(4,6),t)}`}function Xr(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 Yr(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 Gr(e){const t=jr(e.substring(1));var n,r;return(n=t.split(","),r=[0,0,0],(Yr(~~n[0],~~n[1],~~n[2])+.05)/(Yr(r[0],r[1],r[2])+.05))>=12?"#000000":"#FFFFFF"}function Vr(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 Zr(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${Kr}毫秒`)}function Kr(e){return new Promise((t=>setTimeout(t,e)))}(Br=Pr||(Pr={}))[Br.RGBA=0]="RGBA",Br[Br.Hex=1]="Hex",Br[Br.Hsla=2]="Hsla";const Jr="access_token",Qr=new rt("user",localStorage);function ei(){return Qr.get(Jr)}function ti(){Qr.remove(Jr)}function ni(){const e=ei();return e?.refresh}function ri(e,t,n,r="json",i){const o={baseURL:Ir.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 "+ei()?.token},responseType:r,cancelToken:i};if(n)for(let e in n)o.headers[e]=n[e];return Ir.SystemID&&(o.headers.sysid=Ir.SystemID,Ir.SystemGroup&&(o.headers.sysgroup=Ir.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function ii(e,t,n,r,i="json",o,s){const a=ri(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),Ir.Axios?.get(e,a).catch((function(t){oi(t,a.baseURL,e,"Get")}))}function oi(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(Ir.EventBus.emit(Wn.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function si(e,t,n,r,i,o="json",s){const a=ri(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const c=function(e){let t=new FormData;e&&Object.keys(e).forEach((n=>{if(!e)return;let r=e[n];null!=r&&($e(r)?r.forEach((e=>{t.append(n,di(e))})):t.append(n,di(r)))}));return t}(n);return Ir.Axios?.post(e,c,a).catch((function(e){oi(e,t,a.baseURL,"Post")}))}function ai(e,t,n,r,i,o="json",s){const a=ri(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),Ir.Axios?.post(e,n,a).catch((function(n){oi(n,t,e,"Post")}))}function ci(e,t,n=!1){return e.startsWith("http")?ii("",e,t):n||t?ii(e,void 0,t):ii(e,"",void 0)}function li(e,t){return si(e,void 0,t)}function ui(e,t){return Ir.Axios?.get(e,{params:t}).catch((function(t){oi(t,e,"","外部Get")}))}function di(e){return e instanceof Blob?e:e.toString()}function hi(e,t,n){const r=t??nt.getFileName(e);ii("",e,n,void 0,"blob").then((e=>{e.data&&Kn(e.data,r)}))}var fi,pi,mi,gi,vi,yi,wi,bi,Si,xi={exports:{}};function Ci(){return pi?fi:(pi=1,e="undefined"!=typeof window?window:void 0!==ve?ve:"undefined"!=typeof self?self:{},fi=e);var e}function Ei(){if(gi)return mi;gi=1,mi=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 mi}function ki(){if(yi)return vi;yi=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return vi=function(t){if(!t)return{};for(var n,r={},i=e(t).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),c=e(s.slice(0,a)).toLowerCase(),l=e(s.slice(a+1));void 0===r[c]?r[c]=l:(n=r[c],"[object Array]"===Object.prototype.toString.call(n)?r[c].push(l):r[c]=[r[c],l])}return r},vi}var zi=function(){if(Si)return xi.exports;Si=1;var e=Ci(),t=Ei(),n=ki(),r=function(){if(bi)return wi;bi=1,wi=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 wi}();function i(e,n,i){var o=e;return t(n)?(i=n,"string"==typeof e&&(o={uri:e})):o=r(n,{uri:e}),o.callback=i,o}function o(e,t,n){return s(t=i(e,t,n))}function s(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,r=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function i(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function s(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,y)}function a(){if(!l){var t;clearTimeout(d),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:i(),statusCode:t,method:f,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(o.headers=n(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(s,o,o.body)}}var c,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var d,h=u.url=e.uri||e.url,f=u.method=e.method||"GET",p=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:h,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=s,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=s,u.open(f,h,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout((function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}}),e.timeout)),u.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&u.setRequestHeader(c,m[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}return xi.exports=o,xi.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)}})),xi.exports}();const Mi=ye(zi),Ai=[200,201,202,204,308],Ii=[408,502,503,504];class Li{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=Un(),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?Kr(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 Kr(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=Mi({...e},((e,r)=>(this.mapXhrRequest.delete(i),e?n(e):t(r))));this.mapXhrRequest.set(i,o)}))}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,r=n+t.size-1,i={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${r}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:i,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){if(this.paused||this.offline||this.success)return;this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then((e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}})).then((t=>{if(t)if(Ai.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),Kr(1e3).then((t=>this.sendChunks(e)))}}else if(null!=t&&Ii.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 Ri=e=>new Li(e);const _i=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,s=window.pageXOffset,a=window.pageYOffset,c=this.getBoundingClientRect(e),{left:l,top:u,width:d,height:h}=c,f=l+s-((s||n)-(i||0)),p=u+a-((a||r)-(o||0)),m=window.document.documentElement.clientWidth,g=window.document.documentElement.clientHeight;return{left:f,top:p,right:m-d-f,bottom:g-h-p,rightIncludeBody:m-f,bottomIncludeBody:g-p}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach((r=>{n[`${r}${nt.UpperFirst(e)}`]=t})),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const r=function(...i){n&&n.apply(this,i),this.off(e,t,r)};this.on(e,t,r)}};class Ti{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!nt.isNullOrEmpty(e)){if(Ti.httpTransport||(Ti.httpTransport=new Z),this.client=new H(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(Wn.HproseServiceErrorEvent,"初始化默认Hprose!"),console.warn(e)}))}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}}class Di{hproseClient;hpProxyObj;defaultContext=new q;constructor(e){this.hproseClient=new Ti(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=ei();i&&(r.token=i.token),Ir.SystemID&&(r.sysid=Ir.SystemID,Ir.SystemGroup&&(r.sysgroup=Ir.SystemGroup));return new q(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(Wn.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=ei();return console.log(r,"userToken3"),r&&(t||(t=new q({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new X(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 X.toString(r)}}const Pi=new Map,Bi=function(e,t,n){Ir.Config.ServiceURL&&Ir.Config.ServiceURL.DefaultHproseAPI&&(Ir.Config.DefaultHproseAPI=Ir.Config.ServiceURL.DefaultHproseAPI,Ir.DefaultProxyClient=new Di(Ir.Config.ServiceURL.DefaultHproseAPI));const r=Ir.Config.UI.GrayMode;r&&tt.setGrayMode(r);const i=new Er(e,Ir.EventBus);Ir.Message=i,Ir.SystemID=t,Ir.SystemGroup=n,Ir.EventBus.on(Wn.HproseServiceErrorEvent,(e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)})),Ir.EventBus.on(Wn.WebAPIErrorEvent,(e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)})),Ir.EventBus.on(Wn.AxiosRequestErrorEvent,(e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)})),Ir.EventBus.on(Wn.CommonWarnEvent,(e=>{i.warn(e)})),Ir.Config.ServiceURL.IconServiceURL&&j("",{resources:[Ir.Config.ServiceURL.IconServiceURL]})};function Ni(e){if(e&&nt.isNotEmpty(e)){if(Pi.has(e))return Pi.get(e);{const t=new Di(e);return Pi.set(e,t),t}}}function $i(e){const t=Ni(e);return t&&(Ir.DefaultProxyClient=t),t}const Ui=a({isLock:!1,lockTime:0});function Oi(e){Ui.isLock=e,e&&(ti(),console.log("锁屏了……"))}function Wi(){return Ui.isLock}let ji;function Fi(){clearInterval(ji);window.location.href.indexOf("/login")>0||Ui.isLock||(Oi(!1),Ui.lockTime=function(){let e=3600;return Ir.Config.UI?.LockTime&&Ir.Config.UI?.LockTime>=10&&(e=Ir.Config.UI.LockTime),e}(),ji=setInterval((()=>{if(Ui.lockTime--,Ui.lockTime<=0)return Oi(!0),clearInterval(ji)}),1e3))}function Hi(){Fi(),document.addEventListener("mousedown",Fi),document.addEventListener("mousemove",Fi)}function qi(){document.removeEventListener("mousedown",Fi),document.removeEventListener("mousemove",Fi)}function Xi(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 Yi,Gi={exports:{}};
1
+ import{defineComponent as e,ref as t,createElementBlock as n,openBlock as r,withModifiers as i,normalizeStyle as o,renderSlot as s,reactive as a,getCurrentInstance as c,computed as l,watch as u,onMounted as d,onBeforeUnmount as h,nextTick as f,resolveComponent as p,createBlock as m,Transition as g,withCtx as v,withDirectives as y,createElementVNode as w,createCommentVNode as b,Fragment as S,createTextVNode as x,toDisplayString as C,vShow as E,markRaw as k,onErrorCaptured as z,Suspense as M,createVNode as A,KeepAlive as I,resolveDynamicComponent as L,renderList as R,unref as _,normalizeClass as T,TransitionGroup as D,onUnmounted as P,useCssVars as B,h as N}from"vue";import $ from"iconv-lite";export{default as iconv}from"iconv-lite";import*as U from"@microsoft/signalr";import O from"axios";import W from"qs";import{addAPIProvider as j,Icon as F}from"@iconify/vue";import{Client as H,ClientContext as q}from"@hprose/rpc-core";import{ByteStream as X,Writer as Y,Reader as G,ValueReader as V}from"@hprose/io";import{HttpTransport as Z}from"@hprose/rpc-html5";function K(e){return window.TouchEvent&&e instanceof TouchEvent}class J{e;constructor(e){this.e=e}stopPropagation(){this.e.stopPropagation()}preventDefault(){this.e.preventDefault()}get clientX(){return K(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientX:this.e.clientX}get clientY(){return K(this.e)?("touchend"===this.e.type?this.e.changedTouches:this.e.touches).item(0).clientY:this.e.clientY}get clientCoord(){return new Q(this.clientX,this.clientY)}static bindDown(e,t,n,r=!1){const i=e=>{t(new J(e))},o=e=>{1===e.touches.length&&t(new J(e)),e.touches.length>1&&n&&n(new J(e))};return e.addEventListener("mousedown",i,r),e.addEventListener("touchstart",o,r),()=>{e.removeEventListener("mousedown",i,r),e.removeEventListener("touchstart",o,r)}}static bindMove(e,t,n=!1){const r=e=>{t(new J(e))},i=e=>{1===e.touches.length&&t(new J(e))};return e.addEventListener("mousemove",r,n),e.addEventListener("touchmove",i,n),()=>{e.removeEventListener("mousemove",r,n),e.removeEventListener("touchmove",i,n)}}static bindUp(e,t,n=!1){const r=e=>{t(new J(e))},i=e=>{0===e.touches.length&&t(new J(e))};return e.addEventListener("mouseup",r,n),e.addEventListener("touchend",i,n),()=>{e.removeEventListener("mouseup",r,n),e.removeEventListener("touchend",i,n)}}originalEvent({mouse:e,touch:t}){K(this.e)?t&&t(this.e):e&&e(this.e)}}class Q{x;y;constructor(e,t){this.x=e,this.y=t}clone(){return new Q(this.x,this.y)}}class ee{handle;container;options;unbindDown;unbindMove;unbindUp;constructor(e,t,n={}){this.handle=e,this.container=t,this.options=n,e&&(this.unbindDown=J.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=J.bindMove(document,this.mousemove),this.unbindUp=J.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 te{_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=ie(this._group),n=ie(e);t.splice(t.indexOf(this),1),n.push(this),se()}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(ie(this._group)),se()}}const ne=new Map,re=0;function ie(e){return ne.has(e)||ne.set(e,[]),ne.get(e)}function oe(e,t){return e>t?-oe(t,e):e<0&&t>=0?1:e-t}function se(){let e=re;for(const t of function(e){const t=[];return e.forEach(((e,n)=>t.push(n))),t}(ne).sort(oe))for(const n of ie(t))e!=n.zIndex&&(n.zIndex=e,n.onChange(e)),e++}function ae(e){if(e){const{width:t,height:n}=e.style;e.style.width="auto",e.style.height="auto";const r=ce(e);return e.style.width=t,e.style.height=n,r}return{width:0,height:0,top:0,left:0,bottom:0,right:0}}function ce(e){const t=e.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left;return{width:n,height:r,top:i,left:o,bottom:i+r,right:o+n}}class le{container;options;handles;constructor(e,t){if(this.container=e,this.options=t,e&&t){this.handles=ue.map((t=>new t(e,this)));const{width:n,height:r}=ae(e),i=t.maxWidth||window.innerWidth,o=t.maxHeight||window.innerHeight;let s=!1;(n<t.minWidth||n>i)&&(e.style.width=`${he(n,t.minWidth,i)}px`,s=!0),(r<t.minHeight||r>o)&&(e.style.height=`${he(r,t.minHeight,o)}px`,s=!0),s&&t.onResize&&t.onResize()}}teardown(){this.handles?.forEach((e=>e.teardown()))}}const ue=[];class de{container;helper;handle;handleSize=8;unbindDown;unbindMove;unbindUp;constructor(e,t){this.container=e,this.helper=t,this.handle=this.createHandleElement(),this.unbindDown=J.bindDown(this.handle,this.mousedown)}teardown(){this.unbindDown(),this.unbindUp&&this.unbindUp(),this.unbindMove&&this.unbindMove(),this.handle.parentElement.removeChild(this.handle)}x0;y0;left0;top0;width0;height0;mousedown=e=>{e.preventDefault(),e.stopPropagation();const{left:t,top:n,width:r,height:i}=ce(this.container);this.x0=e.clientX,this.y0=e.clientY,this.left0=t,this.top0=n,this.width0=r,this.height0=i,this.calcSafeBoundaries(),this.helper.options&&this.helper.options.onResizeStart&&this.helper.options.onResizeStart(),this.unbindMove=J.bindMove(document,this.mousemove),this.unbindUp=J.bindUp(document,this.mouseup)};minLeft;maxLeft;minRight;maxRight;minTop;maxTop;minBottom;maxBottom;calcSafeBoundaries(){if(!this.helper.options)return;const{left:e,top:t,right:n,bottom:r}=ce(this.container),i=this.helper.options,o=i.maxWidth||window.innerWidth,s=i.maxHeight||window.innerHeight;this.minLeft=Math.max(n-o,0),this.maxLeft=n-i.minWidth,this.minRight=e+i.minWidth,this.maxRight=Math.min(e+o,window.innerWidth),this.minTop=Math.max(r-s,0),this.maxTop=r-i.minHeight,this.minBottom=t+i.minHeight,this.maxBottom=Math.min(t+s,window.innerHeight)}mousemove=e=>{e.preventDefault(),e.stopPropagation(),this.setPosition(e),this.fixPosition(),this.helper.options&&this.helper.options.onResize&&this.helper.options.onResize()};fixPosition(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=ce(this.container),s=this.helper.options;s&&(n<this.minLeft?(this.container.style.width=e+n-this.minLeft+"px",this.container.style.left=`${this.minLeft}px`):n>this.maxLeft?(this.container.style.width=`${s.minWidth}px`,this.container.style.left=`${this.maxLeft}px`):i<this.minRight?this.container.style.width=`${s.minWidth}px`:i>this.maxRight&&(this.container.style.width=this.maxRight-n+"px"),r<this.minTop?(this.container.style.height=t+r-this.minTop+"px",this.container.style.top=`${this.minTop}px`):r>this.maxTop?(this.container.style.height=`${s.minHeight}px`,this.container.style.top=`${this.maxTop}px`):o<this.minBottom?this.container.style.height=`${s.minHeight}px`:o>this.maxBottom&&(this.container.style.height=this.maxBottom-r+"px"))}mouseup=e=>{e.preventDefault(),e.stopPropagation(),this.helper.options&&this.helper.options.onResizeEnd&&this.helper.options.onResizeEnd(),this.unbindUp(),this.unbindMove(),this.unbindUp=this.unbindMove=void 0};createHandleElement(){const e=document.createElement("div"),t=e.style;return t.position="absolute",this.applyStyle(t),this.container.appendChild(e),e}}function he(e,t,n){return e<t?t:e>n?n:e}ue.push(class extends de{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 de{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 de{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 de{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 de{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 de{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 de{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 de{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"}});const fe=e({name:"",props:{disabled:{type:Boolean,default:!1},windowStyle:{type:Object,required:!0}},components:{},setup(e){const n=t(!1),r=t(!1);return{hover:n,active:r,style:function(){let t=e.windowStyle.button;return n.value&&(t={...t,...this.windowStyle.buttonHover}),r.value&&(t={...t,...this.windowStyle.buttonActive}),t},mouseup:function(e){this.active&&this.$emit("click")},mousedown:function(e){e.preventDefault(),r.value=!0;const t=J.bindUp(document,(()=>{r.value=!1,t()}))}}}}),pe=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},me=["disabled"];const ge=pe(fe,[["render",function(e,t,a,c,l,u){return r(),n("div",{class:"btn",style:o(e.style()),onMouseenter:t[0]||(t[0]=t=>e.hover=!0),onMouseleave:t[1]||(t[1]=t=>e.hover=!1),onMousedown:t[2]||(t[2]=i(((...t)=>e.mousedown&&e.mousedown(...t)),["stop"])),onTouchstart:t[3]||(t[3]=i(((...t)=>e.mousedown&&e.mousedown(...t)),["stop"])),onMouseup:t[4]||(t[4]=(...t)=>e.mouseup&&e.mouseup(...t)),onTouchend:t[5]||(t[5]=(...t)=>e.mouseup&&e.mouseup(...t)),disabled:e.disabled},[s(e.$slots,"default",{},void 0,!0)],44,me)}],["__scopeId","data-v-2231c0f9"]]);var ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var we,be={exports:{}};var Se=(we||(we=1,be.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function s(e){var t,r,o,s,a,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(r=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,o[14]=a,o[15]=c,n(u,o),u}function a(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function h(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),r}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return c(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,s,a,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,l,i),s.set(a),o)}}(),p.prototype.append=function(e){return this.appendBinary(l(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,e),s=0;s<16;s+=1)e[s]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(l(e),t)},p.hashBinary=function(e,t){var n=c(o(e));return t?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=h(this._buff.buffer,e),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=d(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=c(s(new Uint8Array(e)));return t?f(n):n},p}()),be.exports);const xe=ye(Se),Ce=Object.prototype.toString;function Ee(e,t){return Ce.call(e)===`[object ${t}]`}function ke(e){return Ee(e,"Function")}const ze=e=>void 0!==e,Me=e=>!ze(e);function Ae(e){return null===e}function Ie(e){return Me(e)&&Ae(e)}function Le(e){return Me(e)||Ae(e)}const Re=e=>null!=e&&null!==e&&Ee(e,"Object");function _e(e){return Ee(e,"Date")}function Te(e){return Ee(e,"Number")}function De(e){return Ee(e,"AsyncFunction")}function Pe(e){return Ee(e,"Promise")&&Re(e)&&ke(e.then)&&ke(e.catch)}function Be(e){return Ee(e,"String")}function Ne(e){return!0===e||!1===e||Ee(e,"Boolean")}function $e(e){return e&&Array.isArray(e)}const Ue=()=>"undefined"!=typeof window,Oe=e=>"undefined"!=typeof window&&Ee(e,"Window"),We=e=>Ce.call(e).startsWith("[object HTML")&&!!e.tagName,je="undefined"==typeof window;function Fe(e){return e&&["IMAGE","IMG"].includes(e.tagName)}function He(e){return null==e||(Be(e)||$e(e)?0===e.length:!!Re(e)&&"{}"===JSON.stringify(e))}function qe(e){return Ee(e,"Error")}function Xe(e){return Ee(e,"WeakSet")}function Ye(e){return Ee(e,"WeakMap")}function Ge(e){return Ee(e,"Symbol")}function Ve(e){return Ee(e,"Map")}const Ze=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 Ke(e){return/^\s*[{[]/.test(String(e))}function Je(e){return e.includes("<kml ")&&e.includes('xmlns="http://www.opengis.net/kml/')}const Qe=[];let et;class tt{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){tt.addHandler(window,"resize",e)}static offWindowResizeHandler(e){tt.removeHandler(window,"resize",e)}static fullscreenEnabled(){const e=window.document;return document.fullscreenEnabled||window.fullScreen||e.mozFullscreenEnabled||e.webkitIsFullScreen}static fullScreen(e,t){if(t){const e=window.document;let t=window.document.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitCancelFullScreen;if(void 0!==t&&t)t.call(window.document);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}else{let t=e;t||(t=window.document.documentElement);let n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(void 0!==n&&n)n.call(t);else if(void 0!==window.ActiveXObject){let e=new window.ActiveXObject("WScript.Shell");null!=e&&e.SendKeys("{F11}")}}}static requestFullScreen(e=window.document.documentElement){let t=e;var n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new window.ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}}static exitFullScreen(){const e=window.document;var t=document.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.webkitExitFullscreen;if(t)t.call(document);else if(void 0!==window.ActiveXObject){var n=new window.ActiveXObject("WScript.Shell");null!==n&&n.SendKeys("{F11}")}}static fullScreenElement(){return window.document.fullscreenElement||window.document.webkitFullscreenElement||window.document.mozFullscreenElement||window.document.msFullscreenElement}static isFullScreen(){return!!tt.fullScreenElement()}static onFullScreenChanged(e){let t;"onfullscreenchange"in window.document?t="fullscreenchange":"onwebkitfullscreenchange"in window.document?t="webkitfullscreenchange":"onmozfullscreenchange"in window.document&&(t="mozfullscreenchange"),t?document.addEventListener(t,(function(){const t=tt.isFullScreen();e(t)})):document.addEventListener("MSFullscreenChange",(function(){const t=tt.isFullScreen();e(t)}))}static stringifyCircularHandler(e,t){if("object"==typeof t&&null!==t){if(-1!==Qe.indexOf(t))return;Qe.push(t)}return t}static jsonStringify(e){if(!e)return"";const t=JSON.stringify(e,tt.stringifyCircularHandler);return Qe.length=0,t}static jsonParse(e){const t=tt.jsonStringify(e);if(t.length>1){return JSON.parse(t)}}static getObjectURL(e){let t;const n=window;return null!=n.createObjcectURL?t=n.createOjcectURL(e):null!=window.URL?t=window.URL.createObjectURL(e):null!=window.webkitURL&&(t=window.webkitURL.createObjectURL(e)),t}static getFileShortMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e;const o=new xe.ArrayBuffer,s=new FileReader;s.onload=function(e){o.append(e.target?.result);const n=o.end();t({isOK:!0,data:n})},s.onerror=function(){const e="计算文件简单摘要错误!";console.warn(e),t({isOK:!1,data:e})},function(){const e=2097152>=i.size?i.size:2097152;s.readAsArrayBuffer(r.call(i,0,e))}()}static getFileMD5(e,t){const n=File.prototype,r=n.slice||n.mozSlice||n.webkitSlice,i=e,o=2097152,s=Math.ceil(i.size/o);let a=0;const c=new xe.ArrayBuffer,l=new FileReader;function u(){const e=a*o,t=e+o>=i.size?i.size:e+o;l.readAsArrayBuffer(r.call(i,e,t))}l.onload=function(e){if(c.append(e.target?.result),a++,a<s)u();else{const e=c.end();t({isOK:!0,data:e})}},l.onerror=function(){const e=`${i.name}:计算文件简单摘要错误!`;console.warn(e),t({isOK:!1,data:e})},u()}static MD5(e,t=!1){return xe.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})):tt.copyTextByCommand(e);static copyElementTextByCommand(e){const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();n.rangeCount>0&&n.removeAllRanges(),n.addRange(t);try{document.execCommand("copy");return n.removeRange(t),!0}catch(e){return n.removeRange(t),console.error("Command复制文本错误",e),!1}}static copyElementText(e){if(!navigator.clipboard)return tt.copyElementTextByCommand(e);const t=document.createRange();t.selectNode(document.getElementById(e));const n=window.getSelection();return n.rangeCount>0&&n.removeAllRanges(),n.addRange(t),navigator.clipboard.writeText(n).then((function(){return n.removeRange(t),!0}),(function(e){return n.removeRange(t),console.error("Clipboard复制文本错误",e),!1}))}static setGrayMode(e){tt.toggleClass(e,"grayMode",document.documentElement)}static toggleClass(e,t,n){const r=n||document.body;let{className:i}=r;i=i.replace(t,""),r.className=e?`${i} ${t} `:i}static setCssVar(e,t,n=document.documentElement){n.style.setProperty(e,t)}static dispatchWindowResize(){const e=new Event("resize");window.dispatchEvent(e)}static dispatchElementEvent(e,t="click",n){let r;if(r=Be(e)?document.getElementById(e):e,r){const e=new Event(t,{bubbles:!0,cancelable:!0});n&&r.addEventListener("ev",(e=>{n(e)}),!1),r.dispatchEvent(e)}}static getRandomNum(e,t){var n=t-e,r=Math.random();return e+Math.round(r*n)}static merge(e={},t={}){let n,r,i,o;for(e||(e={}),r=0,i=t.length;r<i;r++)for(n in o=t[r],o)e[n]=o[n];return e}static setOptions(e,t){e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{});for(let n in t)e.options[n]=t[n];return e.options}static formatNum(e,t){let n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}static trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}static splitWords(e){return this.trim(e).split(/\s+/)}static emptyImageUrl(){return function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}()}static debounce(e,t){let n=null;return function(){n&&clearTimeout(n),n=setTimeout(e,t)}}static throttle(e,t){let n=!0;return function(){if(!n)return!1;n=!1,setTimeout((()=>{e(),n=!0}),t)}}static dataURLtoBlob(e){let t=e.split(",");if(!t||0===t.length)return;let n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}static getElement(e){return"string"==typeof e?document.getElementById(e):e}static getStyle(e,t){let n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){let r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}static create(e,t,n){let r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}static removeElement(e){let t=e.parentNode;t&&t.removeChild(e)}static emptyElement(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static hasClass(e,t){if(void 0!==e.classList)return e.classList.contains(t);let n=this.getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}static addClass(e,t){if(void 0!==e.classList){let n=this.splitWords(t);for(let t=0,r=n.length;t<r;t++)e.classList.add(n[t])}else if(!this.hasClass(e,t)){let n=this.getClass(e);this.setClass(e,(n?n+" ":"")+t)}}static removeClass(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,this.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}static setClass(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}static getClass(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}static createSvgElement(e,t,n,r){let i=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");i.setAttribute("class","svg-path"),i.setAttribute("width",e),i.setAttribute("height",t),i.setAttribute("viewBox",`0 0 ${e} ${t}`);let o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",n),i.appendChild(o),r&&r.appendChild(i),i}static parseDom(e,t=!0,n=""){t=t??!1;let r=document.createElement("div");return r.className=n||"",r.innerHTML=e,t?r:r.childNodes}static createVideoHTML(e,t,n){let r=this.create("video",t,n),i=this.create("source","",r);i.setAttribute("src",e),i.setAttribute("type","video/map4");let o=this.create("source","",r);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),r}static readFilePromise(e,t="ArrayBuffer",n="UTF-8"){return new Promise(((r,i)=>{const o=new FileReader;switch(t){case"ArrayBuffer":o.readAsArrayBuffer(e);break;case"Text":o.readAsText(e,n);break;case"BinaryString":o.readAsBinaryString(e);break;case"DataURL":case"FileBytes":o.readAsDataURL(e)}o.onload=function(){if(o.result)if("FileBytes"===t){const e=o.result,t=e.indexOf("64,"),n=e.substring(t+3);r(n)}else r(o.result);else i(o)},o.onerror=function(){i(o)}}))}static readFileBytes(e){return this.readFilePromise(e,"FileBytes")}static promisify(e,...t){return function(){return new Promise(((n,r)=>{t.push((function(e,t){e?r(e):n(t)})),e.apply(this,t)}))}}static wait(e){return new Promise((t=>setTimeout(t,e)))}static blockEvent(e){e.preventDefault(),e.stopPropagation()}static bindDropFileHanlder(e,t){if(!e)throw Error("传入Element对象不能为空!");let n;if(Be(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(!We(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){tt.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 Be(e)?r=(Ke(e)?"json":Je(e)&&"kml")||"text":(Re(e)&&e.type||$e(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(Ze(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;et=t=>{n.pasteEventHanlder(t,e)},tt.addHandler(t,"paste",et)}static offPasteHandler(e=document){et&&tt.removeHandler(e,"paste",et)}static loadScript(e){var t=document.createElement("script");t.type="text/javascript",t.src=e,document.head.appendChild(t)}static loadJsCode(e){var t=document.createElement("script");t.type="text/javascript";try{t.appendChild(document.createTextNode(e))}catch(n){t.text=e}document.body.appendChild(t)}}class nt{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 rt{prefixKey;storage;constructor(e="",t=localStorage){this.prefixKey=e,this.storage=t}getKey(e){return`${this.prefixKey}${e}`.toUpperCase()}set(e,t,n=604800){const r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+1e3*n:null});this.storage.setItem(this.getKey(e),r)}get(e,t=null){const n=this.storage.getItem(this.getKey(e));if(n)try{const t=JSON.parse(n),{value:r,expire:i}=t;if(null===i||i>=Date.now())return r;this.remove(this.getKey(e))}catch(e){return t}return t}getJsonObject(e){const t=this.storage.getItem(this.getKey(e));if(t)try{const n=JSON.parse(t);if(null===n.expire||n.expire>=Date.now())return n;this.remove(this.getKey(e))}catch(e){return}}remove(e){this.storage.removeItem(this.getKey(e))}clear(){this.storage.clear()}setCookie(e,t,n=604800){document.cookie=`${this.getKey(e)}=${t}; Max-Age=${n}`}getCookie(e){const t=document.cookie.split("; ");for(let n=0,r=t.length;n<r;n++){const r=t[n].split("=");if(r[0]===this.getKey(e))return r[1]}return""}removeCookie(e){this.setCookie(e,1,-1)}clearCookie(){const e=document.cookie.match(/[^ =;]+(?==)/g);if(e)for(let t=e.length;t--;)document.cookie=e[t]+"=0;expire="+new Date(0).toUTCString()}}const it=new rt("",localStorage);function ot(){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 st(){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 at={},ct=Uint8Array,lt=Uint16Array,ut=Int32Array,dt=new ct([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 ct([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]),ft=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pt=function(e,t){for(var n=new lt(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new ut(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}},mt=pt(dt,2),gt=mt.b,vt=mt.r;gt[28]=258,vt[258]=28;for(var yt=pt(ht,0),wt=yt.b,bt=yt.r,St=new lt(32768),xt=0;xt<32768;++xt){var Ct=(43690&xt)>>1|(21845&xt)<<1;Ct=(61680&(Ct=(52428&Ct)>>2|(13107&Ct)<<2))>>4|(3855&Ct)<<4,St[xt]=((65280&Ct)>>8|(255&Ct)<<8)>>1}var Et=function(e,t,n){for(var r=e.length,i=0,o=new lt(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new lt(t);for(i=1;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new lt(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=a[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)s[St[d]>>c]=l}else for(s=new lt(r),i=0;i<r;++i)e[i]&&(s[i]=St[a[e[i]-1]++]>>15-e[i]);return s},kt=new ct(288);for(xt=0;xt<144;++xt)kt[xt]=8;for(xt=144;xt<256;++xt)kt[xt]=9;for(xt=256;xt<280;++xt)kt[xt]=7;for(xt=280;xt<288;++xt)kt[xt]=8;var zt=new ct(32);for(xt=0;xt<32;++xt)zt[xt]=5;var Mt=Et(kt,9,0),At=Et(kt,9,1),It=Et(zt,5,0),Lt=Et(zt,5,1),Rt=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 r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},Tt=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Dt=function(e){return(e+7)/8|0},Pt=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new ct(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"],Nt=function(e,t,n){var r=new Error(t||Bt[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Nt),!n)throw r;return r},$t=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new ct(0);var s=!n,a=s||2!=t.i,c=t.i;s&&(n=new ct(3*i));var l=function(e){var t=n.length;if(e>t){var r=new ct(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,h=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,v=8*i;do{if(!f){u=_t(e,d,1);var y=_t(e,d+1,3);if(d+=3,!y){var w=e[(L=Dt(d)+4)-4]|e[L-3]<<8,b=L+w;if(b>i){c&&Nt(0);break}a&&l(h+w),n.set(e.subarray(L,b),h),t.b=h+=w,t.p=d=8*b,t.f=u;continue}if(1==y)f=At,p=Lt,m=9,g=5;else if(2==y){var S=_t(e,d,31)+257,x=_t(e,d+10,15)+4,C=S+_t(e,d+5,31)+1;d+=14;for(var E=new ct(C),k=new ct(19),z=0;z<x;++z)k[ft[z]]=_t(e,d+3*z,7);d+=3*x;var M=Rt(k),A=(1<<M)-1,I=Et(k,M,1);for(z=0;z<C;){var L,R=I[_t(e,d,A)];if(d+=15&R,(L=R>>4)<16)E[z++]=L;else{var _=0,T=0;for(16==L?(T=3+_t(e,d,3),d+=2,_=E[z-1]):17==L?(T=3+_t(e,d,7),d+=3):18==L&&(T=11+_t(e,d,127),d+=7);T--;)E[z++]=_}}var D=E.subarray(0,S),P=E.subarray(S);m=Rt(D),g=Rt(P),f=Et(D,m,1),p=Et(P,g,1)}else Nt(1);if(d>v){c&&Nt(0);break}}a&&l(h+131072);for(var B=(1<<m)-1,N=(1<<g)-1,$=d;;$=d){var U=(_=f[Tt(e,d)&B])>>4;if((d+=15&_)>v){c&&Nt(0);break}if(_||Nt(2),U<256)n[h++]=U;else{if(256==U){$=d,f=null;break}var O=U-254;if(U>264){var W=dt[z=U-257];O=_t(e,d,(1<<W)-1)+gt[z],d+=W}var j=p[Tt(e,d)&N],F=j>>4;j||Nt(3),d+=15&j;P=wt[F];if(F>3){W=ht[F];P+=Tt(e,d)&(1<<W)-1,d+=W}if(d>v){c&&Nt(0);break}a&&l(h+131072);var H=h+O;if(h<P){var q=o-P,X=Math.min(P,H);for(q+h<0&&Nt(3);h<X;++h)n[h]=r[q+h]}for(;h<H;++h)n[h]=n[h-P]}}t.l=f,t.p=$,t.b=h,t.f=u,f&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u);return h!=n.length&&s?Pt(n,0,h):n.subarray(0,h)},Ut=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Ot=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},Wt=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:Gt,l:0};if(1==i){var s=new ct(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};u!=i-1;)a=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var f=new lt(h+1),p=jt(n[u-1],f,0);if(p>t){r=0;var m=0,g=p-t,v=1<<g;for(o.sort((function(e,t){return f[t.s]-f[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(f[y]>t))break;m+=v-(1<<p-f[y]),f[y]=t}for(m>>=g;m>0;){var w=o[r].s;f[w]<t?m-=1<<t-f[w]++-1:++r}for(;r>=0&&m;--r){var b=o[r].s;f[b]==t&&(--f[b],++m)}p=t}return{t:new ct(f),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},Ft=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lt(++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}},Ht=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},qt=function(e,t,n){var r=n.length,i=Dt(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)},Xt=function(e,t,n,r,i,o,s,a,c,l,u){Ut(t,u++,n),++i[256];for(var d=Wt(i,15),h=d.t,f=d.l,p=Wt(o,15),m=p.t,g=p.l,v=Ft(h),y=v.c,w=v.n,b=Ft(m),S=b.c,x=b.n,C=new lt(19),E=0;E<y.length;++E)++C[31&y[E]];for(E=0;E<S.length;++E)++C[31&S[E]];for(var k=Wt(C,7),z=k.t,M=k.l,A=19;A>4&&!z[ft[A-1]];--A);var I,L,R,_,T=l+5<<3,D=Ht(i,kt)+Ht(o,zt)+s,P=Ht(i,h)+Ht(o,m)+s+14+3*A+Ht(C,z)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&T<=D&&T<=P)return qt(t,u,e.subarray(c,c+l));if(Ut(t,u,1+(P<D)),u+=2,P<D){I=Et(h,f,0),L=h,R=Et(m,g,0),_=m;var B=Et(z,M,0);Ut(t,u,w-257),Ut(t,u+5,x-1),Ut(t,u+10,A-4),u+=14;for(E=0;E<A;++E)Ut(t,u+3*E,z[ft[E]]);u+=3*A;for(var N=[y,S],$=0;$<2;++$){var U=N[$];for(E=0;E<U.length;++E){var O=31&U[E];Ut(t,u,B[O]),u+=z[O],O>15&&(Ut(t,u,U[E]>>5&127),u+=U[E]>>12)}}}else I=Mt,L=kt,R=It,_=zt;for(E=0;E<a;++E){var W=r[E];if(W>255){Ot(t,u,I[(O=W>>18&31)+257]),u+=L[O+257],O>7&&(Ut(t,u,W>>23&31),u+=dt[O]);var j=31&W;Ot(t,u,R[j]),u+=_[j],j>3&&(Ot(t,u,W>>5&8191),u+=ht[j])}else Ot(t,u,I[W]),u+=L[W]}return Ot(t,u,I[256]),u+L[256]},Yt=new ut([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gt=new ct(0),Vt=function(e,t,n,r,i,o){var s=o.z||e.length,a=new ct(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),l=o.l,u=7&(o.r||0);if(t){u&&(c[0]=o.r>>3);for(var d=Yt[t-1],h=d>>13,f=8191&d,p=(1<<n)-1,m=o.p||new lt(32768),g=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 ut(25e3),S=new lt(288),x=new lt(32),C=0,E=0,k=o.i||0,z=0,M=o.w||0,A=0;k+2<s;++k){var I=w(k),L=32767&k,R=g[I];if(m[L]=R,g[I]=L,M<=k){var _=s-k;if((C>7e3||z>24576)&&(_>423||!l)){u=Xt(e,c,0,b,S,x,E,z,A,k-A,u),z=C=E=0,A=k;for(var T=0;T<286;++T)S[T]=0;for(T=0;T<30;++T)x[T]=0}var D=2,P=0,B=f,N=L-R&32767;if(_>2&&I==w(k-N))for(var $=Math.min(h,_)-1,U=Math.min(32767,k),O=Math.min(258,_);N<=U&&--B&&L!=R;){if(e[k+D]==e[k+D-N]){for(var W=0;W<O&&e[k+W]==e[k+W-N];++W);if(W>D){if(D=W,P=N,W>$)break;var j=Math.min(N,W-2),F=0;for(T=0;T<j;++T){var H=k-N+T&32767,q=H-m[H]&32767;q>F&&(F=q,R=H)}}}N+=(L=R)-(R=m[L])&32767}if(P){b[z++]=268435456|vt[D]<<18|bt[P];var X=31&vt[D],Y=31&bt[P];E+=dt[X]+ht[Y],++S[257+X],++x[Y],M=k+D,++C}else b[z++]=e[k],++S[e[k]]}}for(k=Math.max(k,M);k<s;++k)b[z++]=e[k],++S[e[k]];u=Xt(e,c,l,b,S,x,E,z,A,k-A,u),l||(o.r=7&u|c[u/8|0]<<3,u-=7,o.h=g,o.p=m,o.i=k,o.w=M)}else{for(k=o.w||0;k<s+l;k+=65535){var G=k+65535;G>=s&&(c[u/8|0]=l,G=s),u=qt(c,u+1,e.subarray(k,G))}o.i=s}return Pt(a,0,r+Dt(u)+i)},Zt=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}(),Kt=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=Zt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}},Jt=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new ct(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return Vt(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)},Qt=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},en=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],c=o[s];if("function"==typeof a){t+=";"+c+"=";var l=a.toString();if(a.prototype)if(-1!=l.indexOf("[native code]")){var u=l.indexOf(" ",8)+1;t+=l.slice(u,l.indexOf("(",u))}else for(var d in t+=l,a.prototype)t+=";"+c+".prototype."+d+"="+a.prototype[d].toString();else t+=l}else n[c]=a}return t},tn=[],nn=function(e,t,n,r){if(!tn[n]){for(var i="",o={},s=e.length-1,a=0;a<s;++a)i=en(e[a],i,o);tn[n]={c:en(e[s],i,o),e:o}}var c=Qt({},tn[n].e);return function(e,t,n,r,i){var o=new Worker(at[t]||(at[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}(tn[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),r)},rn=function(){return[ct,lt,ut,dt,ht,ft,gt,wt,At,Lt,St,Bt,Et,Rt,_t,Tt,Dt,Pt,Nt,$t,bn,cn,ln]},on=function(){return[ct,lt,ut,dt,ht,ft,vt,bt,Mt,kt,It,zt,St,Yt,Gt,Et,Ut,Ot,Wt,jt,Ft,Ht,qt,Xt,Dt,Pt,Vt,Jt,wn,cn]},sn=function(){return[mn,yn,pn,Kt,Zt]},an=function(){return[gn,vn]},cn=function(e){return postMessage(e,[e.buffer])},ln=function(e){return e&&{out:e.size&&new ct(e.size),dictionary:e.dictionary}},un=function(e,t,n,r,i,o){var s=nn(n,r,i,(function(e,t){s.terminate(),o(e,t)}));return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},dn=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},fn=function(e,t){return hn(e,t)+4294967296*hn(e,t+4)},pn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},mn=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&&pn(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)}},gn=function(e){31==e[0]&&139==e[1]&&8==e[2]||Nt(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)},vn=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},yn=function(e){return 10+(e.filename?e.filename.length+1:0)};function wn(e,t){return Jt(e,t||{},0,0)}function bn(e,t){return $t(e,{i:2},t&&t.out,t&&t.dictionary)}function Sn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[on,sn,function(){return[xn]}],(function(e){return cn(xn(e.data[0],e.data[1]))}),2,n)}function xn(e,t){t||(t={});var n=Kt(),r=e.length;n.p(e);var i=Jt(e,t,yn(t),8),o=i.length;return mn(i,t),pn(i,o-8,n.d()),pn(i,o-4,r),i}function Cn(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[rn,an,function(){return[En]}],(function(e){return cn(En(e.data[0],e.data[1]))}),3,n)}function En(e,t){var n=gn(e);return n+8>e.length&&Nt(6,"invalid gzip data"),$t(e.subarray(n,-8),{i:2},t&&t.out||new ct(vn(e)),t&&t.dictionary)}var kn=function(e,t,n,r){for(var i in e){var o=e[i],s=t+i,a=r;Array.isArray(o)&&(a=Qt(r,o[1]),o=o[0]),o instanceof ct?n[s]=[o,a]:(n[s+="/"]=[new ct(0),a],kn(o,s,n,r))}},zn="undefined"!=typeof TextEncoder&&new TextEncoder,Mn="undefined"!=typeof TextDecoder&&new TextDecoder;try{Mn.decode(Gt,{stream:!0})}catch(e){}function An(e,t){if(zn)return zn.encode(e);for(var n=e.length,r=new ct(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 ct(i+8+(n-s<<1));a.set(r),r=a}var c=e.charCodeAt(s);c<128||t?o(c):c<2048?(o(192|c>>6),o(128|63&c)):c>55295&&c<57344?(o(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++s))>>18),o(128|c>>12&63),o(128|c>>6&63),o(128|63&c)):(o(224|c>>12),o(128|c>>6&63),o(128|63&c))}return Pt(r,0,i)}function In(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(Mn)return Mn.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:Pt(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&&Nt(8),o}var Ln=function(e,t){return t+30+dn(e,t+26)+dn(e,t+28)},Rn=function(e,t,n){var r=dn(e,t+28),i=In(e.subarray(t+46,t+46+r),!(2048&dn(e,t+8))),o=t+46+r,s=hn(e,t+20),a=n&&4294967295==s?_n(e,o):[s,hn(e,t+24),hn(e,t+42)],c=a[0],l=a[1],u=a[2];return[dn(e,t+10),c,l,i,o+dn(e,t+30)+dn(e,t+32),u]},_n=function(e,t){for(;1!=dn(e,t);t+=4+dn(e,t+2));return[fn(e,t+12),fn(e,t+4),fn(e,t+20)]},Tn=function(e){var t=0;if(e)for(var n in e){var r=e[n].length;r>65535&&Nt(9),t+=r+4}return t},Dn=function(e,t,n,r,i,o,s,a){var c=r.length,l=n.extra,u=a&&a.length,d=Tn(l);pn(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(o<0&&8),e[t++]=i&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&Nt(10),pn(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=o&&(pn(e,t,n.crc),pn(e,t+4,o<0?-o-2:o),pn(e,t+8,n.size)),pn(e,t+12,c),pn(e,t+14,d),t+=16,null!=s&&(pn(e,t,u),pn(e,t+6,n.attrs),pn(e,t+10,s),t+=14),e.set(r,t),t+=c,d)for(var p in l){var m=l[p],g=m.length;pn(e,t,+p),pn(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(a,t),t+=u),t},Pn=function(e,t,n,r,i){pn(e,t,101010256),pn(e,t+8,n),pn(e,t+10,n),pn(e,t+12,r),pn(e,t+16,i)};function Bn(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Nt(7);var r={};kn(e,"",r,t);var i=Object.keys(r),o=i.length,s=0,a=0,c=o,l=new Array(o),u=[],d=function(){for(var e=0;e<u.length;++e)u[e]()},h=function(e,t){Nn((function(){n(e,t)}))};Nn((function(){h=n}));var f=function(){var e=new ct(a+22),t=s,n=a-s;a=0;for(var r=0;r<c;++r){var i=l[r];try{var o=i.c.length;Dn(e,a,i,i.f,i.u,o);var u=30+i.f.length+Tn(i.extra),d=a+u;e.set(i.c,d),Dn(e,s,i,i.f,i.u,o,a,i.m),s+=16+u+(i.m?i.m.length:0),a=d+o}catch(e){return h(e,null)}}Pn(e,s,l.length,n,t),h(null,e)};o||f();for(var p=function(e){var t=i[e],n=r[t],c=n[0],p=n[1],m=Kt(),g=c.length;m.p(c);var v=An(t),y=v.length,w=p.comment,b=w&&An(w),S=b&&b.length,x=Tn(p.extra),C=0==p.level?0:8,E=function(n,r){if(n)d(),h(n,null);else{var i=r.length;l[e]=Qt(p,{size:g,crc:m.d(),c:r,f:v,m:b,u:y!=t.length||b&&w.length!=S,compression:C}),s+=30+y+x+i,a+=76+2*(y+x)+(S||0)+i,--o||f()}};if(y>65535&&E(Nt(11,0,1),null),C)if(g<16e4)try{E(null,wn(c,p))}catch(e){E(e,null)}else u.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[on],(function(e){return cn(wn(e.data[0],e.data[1]))}),0,n)}(c,p,E));else E(null,c)},m=0;m<c;++m)p(m);return d}var Nn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function $n(e,t,n){n||(n=t,t={}),"function"!=typeof n&&Nt(7);var r=[],i=function(){for(var e=0;e<r.length;++e)r[e]()},o={},s=function(e,t){Nn((function(){n(e,t)}))};Nn((function(){s=n}));for(var a=e.length-22;101010256!=hn(e,a);--a)if(!a||e.length-a>65558)return s(Nt(13,0,1),null),i;var c=dn(e,a+8);if(c){var l=c,u=hn(e,a+16),d=4294967295==u||65535==l;if(d){var h=hn(e,a-12);(d=101075792==hn(e,h))&&(l=c=hn(e,h+32),u=hn(e,h+48))}for(var f=t&&t.filter,p=function(t){var n=Rn(e,u,d),a=n[0],l=n[1],h=n[2],p=n[3],m=n[4],g=n[5],v=Ln(e,g);u=m;var y=function(e,t){e?(i(),s(e,null)):(t&&(o[p]=t),--c||s(null,o))};if(!f||f({name:p,size:l,originalSize:h,compression:a}))if(a)if(8==a){var w=e.subarray(v,v+l);if(h<524288||l>.8*h)try{y(null,bn(w,{out:new ct(h)}))}catch(e){y(e,null)}else r.push(function(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&Nt(7),un(e,t,[rn],(function(e){return cn(bn(e.data[0],ln(e.data[1])))}),1,n)}(w,{size:h},y))}else y(Nt(14,"unknown compression type "+a,1),null);else y(null,Pt(e,v,v+l));else y(null,null)},m=0;m<l;++m)p()}else s(null,{});return i}function Un(e){return{all:e=e||new Map,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map((e=>{e(n)})),r=e.get("*"),r&&r.slice().map((e=>{e(t,n)}))}}}const On=Un(),Wn={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 jn(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 Fn(e){return jn(e).basename}function Hn(e){return jn(e).extension}function qn(e){var t=jn(e);return t.extension?e.slice(0,e.length-t.extension.length-1):e}function Xn(e,t){var n=qn(e);return t?n+"."+t:n}function Yn(e){var t=Hn(e);return t?qn(e)+"."+t.toLowerCase():e}function Gn(e){return e.reduce((function(e,t,n){return e=0===n?Fn(t):Vn(e,t)}),"")}function Vn(e,t){var n;return e&&t&&(n=Zn(e,t).replace(/[-_]$/,"")),n||""}function Zn(e,t){for(var n=0,r=e.length;n<r&&e[n]===t[n];n++);return e.substr(0,n)}const Kn=(e,t)=>{Jn(e,t)};function Jn(e,t){const n=window.URL||window.webkitURL||window,r=new Blob([e]),i=n.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),n.revokeObjectURL(i),setTimeout((function(){n.revokeObjectURL(i),document.body.removeChild(o)}),400)}const Qn=(e,t)=>{const n=JSON.stringify(e,null,2);t?Kn(n,t+".json"):On.emit(Wn.CommonWarnEvent,"参数JsonID不能为空!")},er=(e,t,n)=>{e.get(t,{responseType:"blob"}).then((function(e){Kn(e.data,n)})).catch((e=>{console.warn(e),On.emit(Wn.CommonWarnEvent,"下载文件报错!")}))};async function tr(e,t,n){var r,i=function(e){var t=Hn(e).toLowerCase(),n={};return"kml"==t?n["application/vnd.google-earth.kml+xml"]=[".kml"]:"svg"===t?n["image/svg+xml"]=[".svg"]:"zip"===t?n["application/zip"]=[".zip"]:"txt"===t||"csv"===t||"tsv"===t||"tab"===t?n["text/csv"]=[".csv",".tsv",".tab",".txt"]:"json"===t||"geojson"===t||"topojson"===t?n["application/json"]=[".json",".geojson",".topojson"]:n["application/octet-stream"]=["."+t],{suggestedName:e,types:[{description:"Files",accept:n}]}}(e);try{if(window.showSaveFilePicker){r=await window.showSaveFilePicker(i);var o=await r.createWritable();await o.write(t),await o.close()}}catch(e){return void("SecurityError"==e.name?(console.warn(e.message),n(e.message)):"AbortError"==e.name?n():(console.error(e.name,e.message,e),n("Save failed for an unknown reason")))}n()}class nr{static runningInBrowser(){return"undefined"!=typeof window&&void 0!==window.document}static encodeGBK(e){const t=$.encode(e,"ISO-8859-1");return $.decode(t,"gbk")}static async saveZipFromFiles(e,t){const n=[];for(let e=0;e<t.length;e++){const r=t[e],i=r.name,o=await tt.readFilePromise(r,"ArrayBuffer"),s=new Uint8Array(o);n.push({filename:i,content:s})}n.length>0&&nr.zipAsync(n,(function(t,n){if(t)throw t;Jn(new Blob([n]),e)}))}static saveZipFile(e,t){nr.zipAsync(t,(function(t,n){if(t)throw t;Jn(new Blob([n]),e)}))}static saveZipFileSync(e,t){const n=nr.zipSync(t);return!!n&&(Jn(new Blob([n]),e),!0)}static unzipSync(e){let t;if(t=e instanceof ArrayBuffer?new Uint8Array(e):e,!nr.runningInBrowser())return;const n=function(e,t){for(var n={},r=e.length-22;101010256!=hn(e,r);--r)(!r||e.length-r>65558)&&Nt(13);var i=dn(e,r+8);if(!i)return{};var o=hn(e,r+16),s=4294967295==o||65535==i;if(s){var a=hn(e,r-12);(s=101075792==hn(e,a))&&(i=hn(e,a+32),o=hn(e,a+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Rn(e,o,s),d=u[0],h=u[1],f=u[2],p=u[3],m=u[4],g=u[5],v=Ln(e,g);o=m,c&&!c({name:p,size:h,originalSize:f,compression:d})||(d?8==d?n[p]=bn(e.subarray(v,v+h),{out:new ct(f)}):Nt(14,"unknown compression type "+d):n[p]=Pt(e,v,v+h))}return n}(t,{filter:nr.fflateFilter});return nr.fflatePostprocess(n)}static async readZipFromFile(e){const t={content:await tt.readFilePromise(e,"ArrayBuffer"),name:e.name};return nr.readZipFile(t)}static async readZipFile(e){const t=await nr.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(!nr.runningInBrowser())throw new Error("Async unzipping only supported in the browser");let n;n=e instanceof ArrayBuffer?new Uint8Array(e):e,$n(n,{filter:nr.fflateFilter},(function(e,n){e&&t(e),t(null,nr.fflatePostprocess(n))}))}static zipSync(e){if(!nr.runningInBrowser())throw new Error("Async zipping only supported in the browser");return function(e,t){t||(t={});var n={},r=[];kn(e,"",n,t);var i=0,o=0;for(var s in n){var a=n[s],c=a[0],l=a[1],u=0==l.level?0:8,d=(C=An(s)).length,h=l.comment,f=h&&An(h),p=f&&f.length,m=Tn(l.extra);d>65535&&Nt(11);var g=u?wn(c,l):c,v=g.length,y=Kt();y.p(c),r.push(Qt(l,{size:c.length,crc:y.d(),c:g,f:C,m:f,u:d!=s.length||f&&h.length!=p,o:i,compression:u})),i+=30+d+m+v,o+=76+2*(d+m)+(p||0)+v}for(var w=new ct(o+22),b=i,S=o-i,x=0;x<r.length;++x){var C=r[x];Dn(w,C.o,C,C.f,C.u,C.c.length);var E=30+C.f.length+Tn(C.extra);w.set(C.c,C.o+E),Dn(w,i,C,C.f,C.u,C.c.length,C.o,C.m),i+=16+E+(C.m?C.m.length:0)}return Pn(w,i,r.length,S,b),w}(nr.fflatePreprocess(e))}static zipAsync(e,t){Bn(nr.fflatePreprocess(e),{},t)}static fflateFilter(e){return nr.isImportableZipPath(e.name)}static fflatePostprocess(e){return Object.keys(e).reduce((function(t,n){const r=jn(n).filename,i=nr.encodeGBK(r),o=e[n];return t[i]=o,t}),{})}static isImportableZipPath(e){const t=jn(e),n=Hn(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=An(e.content):e.content instanceof ArrayBuffer&&(e.content=new Uint8Array(e.content)),t[e.filename]=e.content})),t}}class rr{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=An(e)),rr.runningInBrowser()?xn(e,t):void 0}static async gzipAsync(e,t){let n;if("string"==typeof e&&(n=An(e)),!rr.runningInBrowser())return;return tt.promisify(Sn)(n,t)}static async readGzipFromFile(e){const t={content:await tt.readFilePromise(e,"ArrayBuffer"),name:e.name};return rr.readGzipFile(t)}static readGzipFile(e){var t=e.name.replace(/\.gz$/,"");return[{name:t,content:rr.gunzipSync(e.content,t)}]}static async gunzipAsync(e,t){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),t=t||{},!rr.runningInBrowser())return;var n=tt.promisify(Cn);let r=await n(e,t);return t.filename&&(r=In(r)),r}static gunzipSync(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));let n=En(e);return t&&(n=In(n)),n}}class ir{static formatToDate(e,t="YYYY-MM-DD"){let n=new Date;if(e&&(Be(e)||Te(e)?n=new Date(e):Re(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&&(Be(e)||Te(e)?n=new Date(e):Re(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&&(Be(e)||Te(e)?n=new Date(e):Re(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 or=!0;try{String.fromCharCode.apply(String,[1,2])}catch(e){or=!1,Object.defineProperty(Array.prototype,"subarray",{value:Array.prototype.slice})}var sr=2654435769;function ar(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 cr(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 lr(e){return 4294967295&e}function ur(e,t,n,r,i,o){return(n>>>5^t<<2)+(t>>>3^n<<4)^(e^t)+(o[3&r^i]^n)}function dr(e){if(e.length<16){var t=new Uint8Array(16);t.set(e),e=t}return e}function hr(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 fr(e){var t=e.length;return 0===t?"":t<32767?function(e,t){for(var n=new Array(t),r=0,i=0,o=e.length;r<t&&i<o;r++){var s=e[i++];switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n[r]=s;break;case 12:case 13:if(!(i<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(31&s)<<6|63&e[i++];break;case 14:if(!(i+1<o))throw new Error("Unfinished UTF-8 octet sequence");n[r]=(15&s)<<12|(63&e[i++])<<6|63&e[i++];break;case 15:if(!(i+2<o))throw new Error("Unfinished UTF-8 octet sequence");var a=((7&s)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;if(!(0<=a&&a<=1048575))throw new Error("Character outside valid Unicode range: 0x"+a.toString(16));n[r++]=a>>10&1023|55296,n[r]=1023&a|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+s.toString(16))}}return r<t&&(n.length=r),String.fromCharCode.apply(String,n)}(e,t):function(e,t){for(var n=[],r=new Array(32768),i=0,o=0,s=e.length;i<t&&o<s;i++){var a=e[o++];switch(a>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:r[i]=a;break;case 12:case 13:if(!(o<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(31&a)<<6|63&e[o++];break;case 14:if(!(o+1<s))throw new Error("Unfinished UTF-8 octet sequence");r[i]=(15&a)<<12|(63&e[o++])<<6|63&e[o++];break;case 15:if(!(o+2<s))throw new Error("Unfinished UTF-8 octet sequence");var c=((7&a)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++])-65536;if(!(0<=c&&c<=1048575))throw new Error("Character outside valid Unicode range: 0x"+c.toString(16));r[i++]=c>>10&1023|55296,r[i]=1023&c|56320;break;default:throw new Error("Bad UTF-8 encoding 0x"+a.toString(16))}if(i>=32766){var l=i+1;r.length=l,n.push(String.fromCharCode.apply(String,r)),t-=l,i=-1}}return i>0&&(r.length=i,n.push(String.fromCharCode.apply(String,r))),n.join("")}(e,t)}function pr(e){var t=e.length;if(0===t)return"";var n=or?e:function(e){for(var t=e.length,n=new Array(e.length),r=0;r<t;++r)n[r]=e[r];return n}(e);if(t<65535)return String.fromCharCode.apply(String,n);for(var r=32767&t,i=t>>15,o=new Array(r?i+1:i),s=0;s<i;++s)o[s]=String.fromCharCode.apply(String,n.subarray(s<<15,s+1<<15));return r&&(o[i]=String.fromCharCode.apply(String,n.subarray(i<<15,t))),o.join("")}function mr(e,t){return"string"==typeof e&&(e=hr(e)),"string"==typeof t&&(t=hr(t)),null==e||0===e.length?e:ar(function(e,t){var n,r,i,o,s,a,c=e.length,l=c-1;for(r=e[l],i=0,a=0|Math.floor(6+52/c);a>0;--a){for(o=(i=lr(i+sr))>>>2&3,s=0;s<l;++s)n=e[s+1],r=e[s]=lr(e[s]+ur(i,n,r,s,o,t));n=e[0],r=e[l]=lr(e[l]+ur(i,n,r,l,o,t))}return e}(cr(e,!0),cr(dr(t),!1)),!1)}function gr(e,t){return"string"==typeof e&&(e=function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r}(e)),"string"==typeof t&&(t=hr(t)),null==e||0===e.length?e:ar(function(e,t){var n,r,i,o,s,a=e.length,c=a-1;for(n=e[0],i=lr(Math.floor(6+52/a)*sr);0!==i;i=lr(i-sr)){for(o=i>>>2&3,s=c;s>0;--s)r=e[s-1],n=e[s]=lr(e[s]-ur(i,n,r,s,o,t));r=e[c],n=e[0]=lr(e[0]-ur(i,n,r,0,o,t))}return e}(cr(e,!1),cr(dr(t),!1)),!0)}const vr={toBytes:hr,toString:fr,encrypt:mr,encryptToString:function(e,t){return window.btoa(pr(mr(e,t)))},decrypt:gr,decryptToString:function(e,t){return fr(gr(e,t))}},yr=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},wr={set:e=>{let t=yr(e);null===document.getElementById(t)&&(t=yr(e))},del:()=>{let e="1.23452384164.123412416";null!==document.getElementById(e)&&document.body.removeChild(document.getElementById(e))}};var br,Sr={exports:{}},xr=Sr.exports;var Cr=(br||(br=1,function(e){var t,n;t=xr,n=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],i={},o=null;function s(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var n=this.getLevel(),i=0;i<r.length;i++){var o=r[i];this[o]=i<n?e:this.methodFactory(o,n,this.name)}if(this.log=this.debug,typeof console===t&&n<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function u(r,i,o){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?a:void 0!==console[r]?s(console,r):void 0!==console.log?s(console,"log"):e)}(r)||l.apply(this,arguments)}function d(e,n){var s,a,l,d=this,h="loglevel";function f(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=encodeURIComponent(h),i=n.indexOf(r+"=");-1!==i&&(e=/^([^;]+)/.exec(n.slice(i+r.length+1))[1])}catch(e){}return void 0===d.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==d.levels[t.toUpperCase()]&&(t=d.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=n||u,d.getLevel=function(){return null!=l?l:null!=a?a:s},d.setLevel=function(e,n){return l=p(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{return void(window.localStorage[h]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+n+";"}catch(e){}}}(l),c.call(d)},d.setDefaultLevel=function(e){a=p(e),f()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,function(){if(typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(s=p(o.getLevel())),c.call(d),o===d)for(var e in i)i[e].rebuild()},s=p(o?o.getLevel():"WARN");var m=f();null!=m&&(l=p(m)),c.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new d(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o},e.exports?e.exports=n():t.log=n()}(Sr)),Sr.exports);class Er{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(Wn.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 kr=!1,zr=!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 Mr={Config:SysConfig,EventBus:On,DefaultProxyClient:null,Axios:O,Message:new Er(void 0,On),LayoutMap:new Map,getLayoutManager:e=>{if(!Ir.WidgetConfigList||0===Ir.WidgetConfigList.length)return;const t=Ir.WidgetConfigList.find((t=>t.id===e));if(t){const e=t.layoutID;if(e&&Ir.LayoutMap.has(e))return Ir.LayoutMap.get(e)}},Logger:e=>{kr||(SysConfig.UI.ProductLog?Cr.enableAll():Cr.setDefaultLevel("warn"),kr=!0);const t=e||"default";return Cr.getLogger(t)},Loading:(e="end")=>{if("end"===e)setTimeout((()=>{document.getElementById("apploading")?.remove()}),300),zr=!0;else if(e)if(zr){const t=`加载Widget:${e}……`;On.emit("statusmessage",t)}else{const t=document.getElementById("app-loading-info");t&&(t.innerHTML=`正在加载:${e}……`)}}},Ar="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(...Ar));const Ir=Mr;let Lr;function Rr(e){if(!e){if(Lr)return Lr;throw new Error("首次构建,signalrURL参数不能为空!")}const t=(new U.HubConnectionBuilder).configureLogging(U.LogLevel.Information).withUrl(e).withAutomaticReconnect({nextRetryDelayInMilliseconds:()=>5e3}).build();return t.keepAliveIntervalInMilliseconds=15e3,t.serverTimeoutInMilliseconds=18e5,t.start().then((()=>{Ir.Logger().info("启动SignalR连接!")})),t.onclose((async()=>{Ir.Logger().info("断开SignalR连接!")})),t.onreconnecting((()=>{Ir.Logger().warn("SignalR服务已断线,重连中...!")})),t.onreconnected((()=>{Ir.Logger().warn("SignalR重连成功!")})),Lr||(Lr=t),t}function _r(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 Tr(e){var t=e.toLowerCase();if(Or(e)){if(4===t.length){for(var n="#",r=1;r<4;r+=1){const e=t.slice(r,r+1);n+=e.concat(e)}t=n}var i=[];for(r=1;r<7;r+=2)i.push(parseInt("0x"+t.slice(r,r+2)));return"rgb("+i.join(",")+")"}return t}function Dr(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 Pr,Br;function Nr(e){if("object"==typeof e||!e)return;const t=e.toLowerCase().substring(0,1);return"#"===t?Pr.Hex:"r"===t||"("===t?Pr.RGBA:"h"===t?Pr.Hsla:Pr.RGBA}function $r(e){if(!e)return;var t=e.toLowerCase().match(/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i);if(!t)return;var n,r,i,o=(parseFloat(t[1])%360+360)%360/360,s=parseFloat(t[2])/(/%$/.test(t[2])?100:1),a=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===s)n=r=i=a;else{var c=a<=.5?a*(s+1):a+s-a*s,l=2*a-c;n=Ur(l,c,o+1/3),r=Ur(l,c,o),i=Ur(l,c,o-1/3)}return`rgba(${n=Math.round(255*n)},${r=Math.round(255*r)},${i=Math.round(255*i)},${t[4]?parseFloat(t[4]):1})`}function Ur(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Or(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/.test(e)}function Wr(e,t,n){const r=(e<<16|t<<8|n).toString(16);return"#"+new Array(Math.abs(r.length-7)).join("0")+r}function jr(e){let t=e.toLowerCase();if(Or(e)){if(4===t.length){let e="#";for(let n=1;n<4;n+=1)e+=t.slice(n,n+1).concat(t.slice(n,n+1));t=e}const e=[];for(let n=1;n<7;n+=2)e.push(parseInt("0x"+t.slice(n,n+2)));return"RGB("+e.join(",")+")"}return t}function Fr(e){if(!Or(e))return;const[t,n,r]=jr(e).replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",").map((e=>Number(e)));return.299*t+.578*n+.114*r<192}function Hr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Vr(e.substring(0,2),t)}${Vr(e.substring(2,4),t)}${Vr(e.substring(4,6),t)}`}function qr(e,t){return e=e.indexOf("#")>=0?e.substring(1,e.length):e,t=Math.trunc(255*t/100),`#${Xr(e.substring(0,2),t)}${Xr(e.substring(2,4),t)}${Xr(e.substring(4,6),t)}`}function Xr(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 Yr(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 Gr(e){const t=jr(e.substring(1));var n,r;return(n=t.split(","),r=[0,0,0],(Yr(~~n[0],~~n[1],~~n[2])+.05)/(Yr(r[0],r[1],r[2])+.05))>=12?"#000000":"#FFFFFF"}function Vr(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 Zr(e){const t=(new Date).getTime();let n=(new Date).getTime();for(;n-t<e;)n=(new Date).getTime();console.log(`强制等待${Kr}毫秒`)}function Kr(e){return new Promise((t=>setTimeout(t,e)))}(Br=Pr||(Pr={}))[Br.RGBA=0]="RGBA",Br[Br.Hex=1]="Hex",Br[Br.Hsla=2]="Hsla";const Jr="access_token",Qr=new rt("user",localStorage);function ei(){return Qr.get(Jr)}function ti(){Qr.remove(Jr)}function ni(){const e=ei();return e?.refresh}function ri(e,t,n,r="json",i){const o={baseURL:Ir.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 "+ei()?.token},responseType:r,cancelToken:i};if(n)for(let e in n)o.headers[e]=n[e];return Ir.SystemID&&(o.headers.sysid=Ir.SystemID,Ir.SystemGroup&&(o.headers.sysgroup=Ir.SystemGroup)),void 0!==t&&(o.baseURL=t),o}function ii(e,t,n,r,i="json",o,s){const a=ri(n,t,r,i,o);return s&&s>=2e4&&(a.timeout=s),Ir.Axios?.get(e,a).catch((function(t){oi(t,a.baseURL,e,"Get")}))}function oi(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(Ir.EventBus.emit(Wn.AxiosRequestErrorEvent,r),t)throw new Error(e.message)}else{if(e?.message)throw new Error(e.message);console.error(e,"Http请求错误!")}}function si(e,t,n,r,i,o="json",s){const a=ri(r,t,i,o);s&&s>=2e4&&(a.timeout=s),a.headers["Content-Type"]="multipart/form-data";const c=function(e){let t=new FormData;e&&Object.keys(e).forEach((n=>{if(!e)return;let r=e[n];null!=r&&($e(r)?r.forEach((e=>{t.append(n,di(e))})):t.append(n,di(r)))}));return t}(n);return Ir.Axios?.post(e,c,a).catch((function(e){oi(e,t,a.baseURL,"Post")}))}function ai(e,t,n,r,i,o="json",s){const a=ri(r,t,i,o);return s&&s>=2e4&&(a.timeout=s),Ir.Axios?.post(e,n,a).catch((function(n){oi(n,t,e,"Post")}))}function ci(e,t,n=!1){return e.startsWith("http")?ii("",e,t):n||t?ii(e,void 0,t):ii(e,"",void 0)}function li(e,t){return si(e,void 0,t)}function ui(e,t){return Ir.Axios?.get(e,{params:t}).catch((function(t){oi(t,e,"","外部Get")}))}function di(e){return e instanceof Blob?e:e.toString()}function hi(e,t,n){const r=t??nt.getFileName(e);ii("",e,n,void 0,"blob").then((e=>{e.data&&Kn(e.data,r)}))}var fi,pi,mi,gi,vi,yi,wi,bi,Si,xi={exports:{}};function Ci(){return pi?fi:(pi=1,e="undefined"!=typeof window?window:void 0!==ve?ve:"undefined"!=typeof self?self:{},fi=e);var e}function Ei(){if(gi)return mi;gi=1,mi=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 mi}function ki(){if(yi)return vi;yi=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return vi=function(t){if(!t)return{};for(var n,r={},i=e(t).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),c=e(s.slice(0,a)).toLowerCase(),l=e(s.slice(a+1));void 0===r[c]?r[c]=l:(n=r[c],"[object Array]"===Object.prototype.toString.call(n)?r[c].push(l):r[c]=[r[c],l])}return r},vi}var zi=function(){if(Si)return xi.exports;Si=1;var e=Ci(),t=Ei(),n=ki(),r=function(){if(bi)return wi;bi=1,wi=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 wi}();function i(e,n,i){var o=e;return t(n)?(i=n,"string"==typeof e&&(o={uri:e})):o=r(n,{uri:e}),o.callback=i,o}function o(e,t,n){return s(t=i(e,t,n))}function s(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,r=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function i(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function s(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,y)}function a(){if(!l){var t;clearTimeout(d),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var o=y,s=null;return 0!==t?(o={body:i(),statusCode:t,method:f,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(o.headers=n(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(s,o,o.body)}}var c,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var d,h=u.url=e.uri||e.url,f=u.method=e.method||"GET",p=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:h,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=s,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=s,u.open(f,h,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout((function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}}),e.timeout)),u.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&u.setRequestHeader(c,m[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}return xi.exports=o,xi.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)}})),xi.exports}();const Mi=ye(zi),Ai=[200,201,202,204,308],Ii=[408,502,503,504];class Li{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=Un(),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?Kr(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 Kr(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=Mi({...e},((e,r)=>(this.mapXhrRequest.delete(i),e?n(e):t(r))));this.mapXhrRequest.set(i,o)}))}sendChunk(e,t){if(!t)return;const n=e*this.chunkByteSize,r=n+t.size-1,i={...this.headers,FileName:this.fileName,FileMD5:this.md5,ChunkIndex:e.toString(),"Content-Type":this.file.type,"Content-Range":`bytes ${n}-${r}/${this.file.size}`};return this.dispatch("attempt",{chunkNumber:e,chunkSize:t.size}),this.endpointValue?this.xhrPromise({headers:i,url:this.endpointValue,method:this.method,body:t}):(console.warn("文件上传endpointValue不能为空!"),void this.dispatch("error",{message:"文件上传endpointValue不能为空!取消上传!",chunk:e,attempts:this.attemptCount}))}sendChunks(e=0){if(this.paused||this.offline||this.success)return;this.okRecordList.indexOf(e)<0&&(this.currentMaxIndex<e&&(this.currentMaxIndex=e),this.getChunk(e).then((e=>{if(e){const{chunkIndex:t,chunkContent:n}=e;return this.sendChunk(t,n)}})).then((t=>{if(t)if(Ai.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),Kr(1e3).then((t=>this.sendChunks(e)))}}else if(null!=t&&Ii.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 Ri=e=>new Li(e);const _i=new class{hasClass(e,t){return e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}addClass(e,t){this.hasClass(e,t)||(e.className+=" "+t)}removeClass(e,t){if(this.hasClass(e,t)){const n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}toggleClass(e,t){this.hasClass(e,t)?this.removeClass(e,t):this.addClass(e,t)}setCSSProperty(e,t,n){e?.style.setProperty(t,n)}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():0}getViewportOffset(e){const t=document.documentElement,n=t.scrollLeft,r=t.scrollTop,i=t.clientLeft,o=t.clientTop,s=window.pageXOffset,a=window.pageYOffset,c=this.getBoundingClientRect(e),{left:l,top:u,width:d,height:h}=c,f=l+s-((s||n)-(i||0)),p=u+a-((a||r)-(o||0)),m=window.document.documentElement.clientWidth,g=window.document.documentElement.clientHeight;return{left:f,top:p,right:m-d-f,bottom:g-h-p,rightIncludeBody:m-f,bottomIncludeBody:g-p}}hackCss(e,t){const n={};return["webkit","Moz","ms","OT"].forEach((r=>{n[`${r}${nt.UpperFirst(e)}`]=t})),{...n,[e]:t}}on(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}off(e,t,n){e&&t&&n&&e.removeEventListener(t,n,!1)}once(e,t,n){const r=function(...i){n&&n.apply(this,i),this.off(e,t,r)};this.on(e,t,r)}};class Ti{hproseURL;client;hproseProxy;static httpTransport;constructor(e){if(e&&!nt.isNullOrEmpty(e)){if(Ti.httpTransport||(Ti.httpTransport=new Z),this.client=new H(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(Wn.HproseServiceErrorEvent,"初始化默认Hprose!"),console.warn(e)}))}async getProxy(){if(!this.hproseProxy)try{this.client&&(this.hproseProxy=await this.client.useServiceAsync())}catch(e){console.warn(e),this.hproseProxy=this.client?.useService()}return this.hproseProxy}async invoke(e,t,n){if(this.client)return await this.client.invoke(e,t,n)}encode(e,t,n){return this.client?this.client.codec.encode(e,t,n):void 0}decode(e,t){return this.client?this.client.codec.decode(e,t):void 0}}class Di{hproseClient;hpProxyObj;defaultContext=new q;constructor(e){this.hproseClient=new Ti(e),this.hpProxyObj=null}getClientContext(e,t){const n={};t&&(n.requestHeaders=t),n.httpRequestHeaders=e||{};const r=n.httpRequestHeaders,i=ei();i&&(r.token=i.token),Ir.SystemID&&(r.sysid=Ir.SystemID,Ir.SystemGroup&&(r.sysgroup=Ir.SystemGroup));return new q(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(Wn.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=ei();return console.log(r,"userToken3"),r&&(t||(t=new q({httpRequestHeaders:{token:r.token}}))),await this.hproseClient.invoke(e,n,t)}async hproseInvokeEncode(e){const t=new X(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 X.toString(r)}}const Pi=new Map,Bi=function(e,t,n){Ir.Config.ServiceURL&&Ir.Config.ServiceURL.DefaultHproseAPI&&(Ir.Config.DefaultHproseAPI=Ir.Config.ServiceURL.DefaultHproseAPI,Ir.DefaultProxyClient=new Di(Ir.Config.ServiceURL.DefaultHproseAPI));const r=Ir.Config.UI.GrayMode;r&&tt.setGrayMode(r);const i=new Er(e,Ir.EventBus);Ir.Message=i,Ir.SystemID=t,Ir.SystemGroup=n,Ir.EventBus.on(Wn.HproseServiceErrorEvent,(e=>{const t=`当前后台业务服务不可用!${e}`;console.warn("Hprose请求错误",t)})),Ir.EventBus.on(Wn.WebAPIErrorEvent,(e=>{const t=`WebAPI后台服务不可用!${e}`;console.warn("WebAPI请求错误",t)})),Ir.EventBus.on(Wn.AxiosRequestErrorEvent,(e=>{const t=`Http请求'${e.code}'错误: ${e.message}`;console.warn("Http请求错误",t)})),Ir.EventBus.on(Wn.CommonWarnEvent,(e=>{i.warn(e)})),Ir.Config.ServiceURL.IconServiceURL&&j("",{resources:[Ir.Config.ServiceURL.IconServiceURL]})};function Ni(e){if(e&&nt.isNotEmpty(e)){if(Pi.has(e))return Pi.get(e);{const t=new Di(e);return Pi.set(e,t),t}}}function $i(e){const t=Ni(e);return t&&(Ir.DefaultProxyClient=t),t}const Ui=a({isLock:!1,lockTime:0});function Oi(e){Ui.isLock=e,e&&(ti(),console.log("锁屏了……"))}function Wi(){return Ui.isLock}let ji;function Fi(){clearInterval(ji);window.location.href.indexOf("/login")>0||Ui.isLock||(Oi(!1),Ui.lockTime=function(){let e=3600;return Ir.Config.UI?.LockTime&&Ir.Config.UI?.LockTime>=10&&(e=Ir.Config.UI.LockTime),e}(),ji=setInterval((()=>{if(Ui.lockTime--,Ui.lockTime<=0)return Oi(!0),clearInterval(ji)}),1e3))}function Hi(){Fi(),document.addEventListener("mousedown",Fi),document.addEventListener("mousemove",Fi)}function qi(){document.removeEventListener("mousedown",Fi),document.removeEventListener("mousemove",Fi)}function Xi(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 Yi,Gi={exports:{}};
2
2
  /*!
3
3
  localForage -- Offline Storage, Improved
4
4
  Version 1.10.0
@@ -362,11 +362,11 @@ export default class H5Tool {
362
362
  * 如果 div 元素不可编辑,通常情况下是无法触发 paste 事件的。只有设置了 contenteditable="true" 的元素,才会在用户粘贴内容时触发该事件.
363
363
  * @param onPasteCallback 粘贴的回调函数
364
364
  */
365
- static onPasteHandler(onPasteCallback: (pasteContent: string | Array<File> | undefined) => {}): void;
365
+ static onPasteHandler(onPasteCallback: (pasteContent: string | Array<File> | undefined) => {}, inputElement?: Window | HTMLElement | any): void;
366
366
  /**
367
367
  * 移除document粘贴处理事件
368
368
  */
369
- static offPasteHandler(): void;
369
+ static offPasteHandler(inputElement?: Window | HTMLElement | any): void;
370
370
  /**
371
371
  * 动态写入引入js文件
372
372
  * @param url
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "0.9.9",
3
+ "version": "1.0.1",
4
4
  "description": "积累的前端开发基础库,来源于项目和服务于项目。",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
@@ -32,7 +32,7 @@
32
32
  "@hprose/rpc-html5": "^3.0.10",
33
33
  "@iconify/vue": "^5.0.0",
34
34
  "@microsoft/signalr": "^8.0.7",
35
- "axios": "^1.9.0",
35
+ "axios": "^1.10.0",
36
36
  "fflate": "^0.8.2",
37
37
  "iconv-lite": "^0.6.3",
38
38
  "localforage": "^1.10.0",
@@ -43,27 +43,27 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@rollup/plugin-alias": "^5.1.1",
46
- "@rollup/plugin-commonjs": "^28.0.3",
46
+ "@rollup/plugin-commonjs": "^28.0.6",
47
47
  "@rollup/plugin-json": "^6.1.0",
48
48
  "@rollup/plugin-node-resolve": "^16.0.1",
49
49
  "@rollup/plugin-terser": "^0.4.4",
50
- "@rollup/plugin-typescript": "^12.1.2",
51
- "@vitejs/plugin-vue": "^5.2.4",
50
+ "@rollup/plugin-typescript": "^12.1.3",
51
+ "@vitejs/plugin-vue": "^6.0.0",
52
52
  "esbuild": "^0.25.5",
53
53
  "rollup-plugin-copy": "^3.5.0",
54
54
  "rollup-plugin-esbuild": "^6.2.1",
55
55
  "rollup-plugin-scss": "^4.0.1",
56
56
  "rollup-plugin-typescript2": "^0.36.0",
57
57
  "rollup-plugin-vue": "^6.0.0",
58
- "sass": "^1.89.0",
58
+ "sass": "^1.89.2",
59
59
  "typescript": "^5.8.3",
60
60
  "vite": "^6.3.5",
61
61
  "vite-plugin-comlink": "^5.1.0",
62
62
  "vite-plugin-commonjs": "^0.10.4",
63
63
  "vite-plugin-dts": "^4.5.4",
64
64
  "vite-plugin-node-polyfills": "^0.23.0",
65
- "vite-plugin-static-copy": "^3.0.0",
66
- "vue": "^3.5.16",
65
+ "vite-plugin-static-copy": "^3.0.2",
66
+ "vue": "^3.5.17",
67
67
  "vue-router": "^4.5.1"
68
68
  }
69
69
  }